fix(module): rc9 compatibility issues

Will fix #90 and #91
@Baroshem
Types of changes

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

Not a module author, but it might be helpful to add a message in docs that says rc 9 of nuxt is required  version in order to function?

It looks that addAutoImportDir() is also (soft) depreciated and changed to addImportsDir()
Source: https://github.com/nuxt/framework/pull/7158

The autoImports hook was deprecated, or am I wrong?

They renamed utils:

Updated kit utils:
Soft deprecated (type only) addAutoImport to addImports and addAutoImportDir to addImportsDir for consistency

Ah okay thank you, I will update this.

Hey folks,
thanks for this PR. I am back from holidays and will merge this PR and release a new version so that you could use it without errors tomorrow.
Thanks for the patience.

Guys, the new version has been released. You can verify now if it works correctly. I have tested it in several nuxt projects and it is working correctly :)


Drop PG10 as supported PG version

Description
Drop PG10 from the list of supported PG versions. It's end of life.
Self Check:

[ ] Attached issue to pull request
[x] Changelog entry
[ ] Type annotations are present
[ ] Code is clear and sufficiently documented
[ ] No (preventable) type errors (check using make mypy or make mypy-diff)
[ ] Sufficient test cases (reproduces the bug/tests the requested feature)
[x] Correct, in line with design
[ ] End user documentation is included or an issue is created for end-user documentation
[ ] If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see test-fixes for more info)

Processing this pull request

Merged into branches master in bc1007d8759c83c690ae158c75be4d3998f64a52

Processing #6456.


Dark Mode Toggle Button  for better UI

mentors @sanjay-kv @khushi-joshi-05
Is your feature request related to a problem? Please describe.
Continous work in light mode is frustrating and increases fatigueness in eyes , adding a feature of dark mode might increase user interaction and satisfaction
Describe the solution you'd like
A toggle button for switching between light and dark modes .
Kindly assign me this project under GSSoC'24

I'd like to handle the implementation of the dark Mode for this project, given its current high demand. Could you please assign it to me?

@maverickcodex18 Can you add multiple-color theme feature?

@maverickcodex18 Can you add multiple-color theme feature?

Can you elaborate, like user can choose a theme and website color changes accordingly?

@maverickcodex18 Can you add multiple-color theme feature?

Can you elaborate, like user can choose a theme and website color changes accordingly?

Users can get the limited colour option in which the component's colour will change accordingly.


Add configuration option to use plain() by default

I like restangular, but there are some features I dislike. I don't like that restangular appends its own methods to the objects and arrays(!). I know this is one of the principle of restangular, but personally I don't think that its a RIGHT principle.
I like new plain() method you've introduced, but I also would like to see the option to configure it to use it by default, e.g. getList, get methods return promise that will contain already a plain object.

+1

+1

+1

:+1:
I've been (minimally) using this library for 6+ months without realizing the 'big idea' of 'restangularization', which is a very cool idea but surprises you when you look at your $http response and it has all these restangular properties bundled in.
I think that fact should be mentioned in a "Critical/Minimum understanding" section of the README, not because the way it works by default is "wrong", but because people like me will miss out on perhaps the coolest part of the project.

I think that in a MVC application (where there should be a service class responsible for making the CRUD) the "retangularization" doesn't help, instead it creates problems clobbering properties and when making debugging hard.
I suggest that the "restangularization" should be an option that, If turned off, the object should be clean as it come from the server (without any clobbered properties nor additional methods).

+1

+1
Would be especially useful when having a bunch of conditions on object size sent from server, currently needs a plain() for each of them.

+1
Restangular is wonderful but in most of the cases we don't need all the methods.
A raw response without unnecessary methods additions will be a very appreciated feature.

+1

+1

:+1:

:100:

+1

This is addressed in this PR #696

Would be cool to have this merged as soon as possible.

+1

Merged. Will be in a release shortly.

@daviesgeek Any chance of the new release?


Issue on Receive+Trusted contact request flow

-screen moving back to home after accepting the receive+trusted contact request.
Uploading RPReplay_Final1605778407.zip…
-In android device I'm unable to scan the QR code. It immediately initate the new scanner.
-It was on upgraded app from 132-164.

@cakesoft-swati It looks like the link to this recording isn't downloading anything, sorry.

-Send screen: Scan the QR (Receive+Trusted contact QR)  from Android device .
-It does not jump to the next send screen,it just stays on Send(choose a recipient)screen.
[Uable to scan the QR.Tested on latest dev app version 1.3.2(170)]


Some cleanup stuff.

Wrap Python 2 stuff with python-future stuff.
Cut some missed removed commands stuff.
Change update_once to update.

Changes Unknown when pulling 861ec5026e12f89c5ca014718de8cc6a0e21e6f5 on bugfix/cleanup into ** on master**.

Changes Unknown when pulling 626c5d2382e3080644b15c587a204d5a9065b294 on bugfix/cleanup into ** on master**.

Changes Unknown when pulling 790b57f6119456dfcab66c8efb47cba8e1aa55d0 on bugfix/cleanup into ** on master**.


Fix: use assets path

This PR

[x] Uses the assets function in the views, to make this easier to configure

Thank you, @BackEndTea and @derrabus!


Vertical scrolling with Shift

Godot/OS version:
3.0 beta2, X11 Linux
Issue description:
In many other applications we can scroll vertically by holding Shift while scrolling.
It would be nice to have such functionality in the script editor.

[x] I searched the existing GitHub issues for potential duplicates.

Do you mean "horizontally"? Because vertical scroll is the default when using the mouse wheel.

Oops, it's late here... :sweat_smile:
Yes I meant horizontally.


No error shown when inlay hint command from context menu doesn't work

Testing #141166
Repro steps:

Add a non-existent command to one of the InlayHintLabelPart objects in https://github.com/jrieken/test-inlayhints (or mistype the name of a command)
Make sure the label part also has a source location
Display the context menu for an inlay hint (on my mac it's ctrl + click), and click on the command
Notice that there is no error prompt shown

Notes:

The error is shown in the developer tools
When the inlay hint only contains a command (no source location), an error message is shown

I'm not so sure if the commit fixes the described issue (and if the commit even has an effect).
Key of the descibed issue is:

Make sure the label part also has a source location

But the code is still like this:
if (part.location) {
    // ...
} else if (languages.Command.is(part.command)) {
    // ...
}

Thus, if location is set, command is ignored.
The issue also describes, that even before the fix an error was shown when location was not set.

When location is set then the command moves into the context menu and when invoking those no error handling was done.


Project Lock Request needs to be able to work equivalently to how it currently works from REGI

Currently in REGI a user can get some project locks.  When a lock is acquired the database grabs the username, os_user, machine_name and program out of the database sesssion and stores those into the lock.  The user gets back a lock id (guid).
REGI does not persist the lock_id.
If REGI gets some locks and then is killed it has no chance to return/release the locks.
When REGI starts after a crash it can query the db for project locks and realize that there are locks in the db for the current user that the current instance doesn't know about.  When that is detected REGI can prompt the user to sort it out.
If we just call the same pl/sql procs from CDA then CDA is going to pull the username, os_user, machine_name, program of the CDA server.
Unless we do something  os_user, machine_name and program will be the same for all CDA calls.
CDA might be sticking the db_user into username - to be verified.   But even if that is true its likely the database username not the REGI username.
So far one proposed solution is to refactor REQUEST_LOCK into two procedures.  One that pulls the values out of the env and one that does the actual work like:
function request_lock2(
    p_project_id      in varchar2,
    p_application_id  in varchar2,
    p_revoke_existing in varchar2 default 'F',
    p_revoke_timeout  in integer  default 30,
    p_office_id       in varchar2 default null,
    p_username        in varchar2,
    p_osuser          in varchar2,
    p_program         in varchar2,
    p_machine         in varchar2)
    return varchar2
is
    revocation_denied exception;
    already_locked    exception;
    pragma            exception_init(revocation_denied, -20998);
    pragma            exception_init(already_locked,    -00001);
    pragma            autonomous_transaction;

    l_lock_id         varchar2(40);
    l_do_lock         boolean := true;
    l_office_id       varchar2(16);
    l_already_locked  boolean := false;
    l_id              integer;
    l_queue_name      varchar2(61);
    l_text_msg        varchar2(32767);
begin
    -------------------
    -- sanity checks --
    -------------------
    if p_revoke_existing is null then
        cwms_err.raise('NULL_ARGUMENT', 'p_revoke_existing');
    end if;
    if p_revoke_timeout is null then
        cwms_err.raise('NULL_ARGUMENT', 'p_revoke_timeout');
    end if;
    -----------------
    -- do the work --
    -----------------
    if is_locked(p_project_id, p_application_id, p_office_id) = 'T' then
        if p_revoke_existing in ('T', 't') then
            begin
                revoke_lock(
                        p_project_id,
                        p_application_id,
                        p_revoke_timeout,
                        p_office_id);
            exception
                when revocation_denied then l_do_lock := false;
            end;
        else
            l_do_lock := false;
        end if;
    end if;
    if l_do_lock then
        l_lock_id := rawtohex(sys_guid());

        begin
            insert
            into at_project_lock
            ( lock_id,
              project_code,
              application_id,
              acquire_time,
              session_user,
              os_user,
              session_program,
              session_machine
            )
            values ( l_lock_id,
                     cwms_loc.get_location_code(p_office_id, p_project_id),
                     lower(p_application_id),
                     systimestamp at time zone 'UTC',
                     p_username,
                     p_osuser,
                     p_program,
                     p_machine
                   );
        exception
            when already_locked then
                ----------------------------------------------
                -- encountered a race condition and another --
                -- lock attempt beat us to the punch        --
                ----------------------------------------------
                l_already_locked := true;
        end;
        if l_already_locked then
            l_lock_id := null;
        else
            commit;
            ------------------------------
            -- publish the state change --
            ------------------------------
            l_office_id := cwms_util.get_db_office_id(p_office_id);
            l_queue_name  := l_office_id||'_'||'STATUS';
            l_text_msg := '
            <cwms_message type="State">
               <property name="new state"   type="String"> locked        </property>
               <property name="old state"   type="String"> unlocked      </property>
               <property name="action"      type="String"> lock acquired </property>
               <property name="office"      type="String"> $office       </property>
               <property name="project"     type="String"> $project      </property>
               <property name="application" type="String"> $application  </property>
               <property name="user"        type="String"> $user         </property>
            </cwms_message>';
            l_text_msg := replace(l_text_msg, '$office',      l_office_id);
            l_text_msg := replace(l_text_msg, '$project',     dbms_xmlgen.convert(p_project_id));
            l_text_msg := replace(l_text_msg, '$application', dbms_xmlgen.convert(lower(p_application_id)));
            l_text_msg := replace(l_text_msg, '$user',        cwms_util.get_user_id);
            l_id := cwms_msg.publish_message(l_text_msg, l_queue_name, true);
        end if;
    end if;
    return l_lock_id;
end request_lock2;

function request_lock(
   p_project_id      in varchar2,
   p_application_id  in varchar2,
   p_revoke_existing in varchar2 default 'F',
   p_revoke_timeout  in integer  default 30,
   p_office_id       in varchar2 default null)
   return varchar2
is
   l_username        varchar2(30);
   l_osuser          varchar2(30);
   l_program         varchar2(64);
   l_machine         varchar2(64);

begin
    select username,
           osuser,
           program,
           machine
    into l_username,
        l_osuser,
        l_program,
        l_machine
    from v$session
    where sid = sys_context('userenv', 'sid');

    return request_lock2(
        p_project_id,
        p_application_id,
        p_revoke_existing,
        p_revoke_timeout,
        p_office_id,
        l_username,
        l_osuser,
        l_program,
        l_machine);

end request_lock;

There may be downsides - not sure how to verify that users are who they claim to be.

Another possible direction is to look into whether REGI could start persisting the locks it has obtained.

@rma-psmorris

Similar database changes were made.  @MikeNeilson Before the associated Project changes can be submitted I need the database pl/sql changes pulled into a release that CDA can use.  Is that something I should do or are there existing plans to make a new db release?

We'll have to make a special release. I can take care of it tomorrow. Though the only thing required to is to have it under the "release/" branch name and the system will take care of making the artifacts (so long as you update the pom.xml in the database project.)


The title from toc_tokens ignores the smarty extension

Current actual result:
>>> import markdown
>>> md = markdown.Markdown(extensions=['toc', 'smarty'])
>>> md.convert('# *Foo* --- `bar`')
'
Foo — bar
'
>>> md.toc_tokens
[{'level': 1, 'id': 'foo-bar', 'name': 'Foo --- bar', 'children': []}]

Expected result:

[{'level': 1, 'id': 'foo-bar', 'name': 'Foo — bar', 'children': []}]

Background where I discovered this: https://github.com/mkdocs/mkdocs/issues/3357#issuecomment-1925446505
This happens because smarty runs at a lower priority than toc (unlike most other treeprocessors) and it doesn't have a chance to kick in.

https://github.com/Python-Markdown/markdown/blob/a63e6f3416f2e4fc7c2d5edb2768ceed9218df20/markdown/extensions/toc.py#L404
https://github.com/Python-Markdown/markdown/blob/a63e6f3416f2e4fc7c2d5edb2768ceed9218df20/markdown/extensions/smarty.py#L272

This other extension is presumably affected in the same way, probably among others:
https://github.com/facelessuser/pymdown-extensions/blob/8f5283f71e8833f1ba0fa0bbe2680e1ad2c6cb19/pymdownx/smartsymbols.py#L167
Something should be done so that all the rest of the treeprocessors are also applied before saving the title. Maybe postprocessors too, rather than applying the unescape functionality out-of-band.

By the way, please don't solve this by lowering the priority of the toc extension, so much stuff I made already depends on its precise priority 🥲

I didn't have much involvement in the smarty extension, which was added much later than TOC. I wonder why it was given a lower priority. @mitya57 do you recall? I seem to recall you being involved in the development of the smarty extension.
I ask why because, barring any good reason not to, I have no object in raising the priority to be before TOC.

When I added smarty treeprocessor in 47ec0cb1ea31125da1481fb82319f0a1cdfd20e1, I probably just pushed it to the end without thinking too much.
The tests pass when changing its priority, so I think it's fine to do that. Submitted PR as #1440.


The log was empty

php version : 8.1
laravel verison:8.0

Hey @gakkiismywife
Can you share the log file as well somewhere? Pastebin or just upload it here. It's usually something to do with the content of the file that might be messing up, or isn't handled properly.
Thanks!

Hey @gakkiismywife
Can you share the log file as well somewhere? Pastebin or just upload it here. It's usually something to do with the content of the file that might be messing up, or isn't handled properly.
Thanks!

{"time":"2022-09-24 11:18:15","payload":{"context":{"msg":"getTodayDiscuss","result":{"code":"100000","msg":"success","data":{"read":[{"time":"11:00","value":0},{"time":"12:00","value":0},{"time":"13:00","value":0},{"time":"14:00","value":0},{"time":"15:00","value":0},{"time":"16:00","value":0},{"time":"17:00","value":0},{"time":"18:00","value":0},{"time":"19:00","value":0},{"time":"20:00","value":0},{"time":"21:00","value":0},{"time":"22:00","value":0},{"time":"23:00","value":0},{"time":"00:00","value":0},{"time":"01:00","value":0},{"time":"02:00","value":0},{"time":"03:00","value":0},{"time":"04:00","value":0},{"time":"05:00","value":0},{"time":"06:00","value":0},{"time":"07:00","value":0},{"time":"08:00","value":0},{"time":"09:00","value":0},{"time":"10:00","value":0}],"me":[{"time":"11:00","value":0},{"time":"12:00","value":0},{"time":"13:00","value":0},{"time":"14:00","value":0},{"time":"15:00","value":0},{"time":"16:00","value":0},{"time":"17:00","value":0},{"time":"18:00","value":0},{"time":"19:00","value":0},{"time":"20:00","value":0},{"time":"21:00","value":0},{"time":"22:00","value":0},{"time":"23:00","value":0},{"time":"00:00","value":0},{"time":"01:00","value":0},{"time":"02:00","value":0},{"time":"03:00","value":0},{"time":"04:00","value":0},{"time":"05:00","value":0},{"time":"06:00","value":0},{"time":"07:00","value":0},{"time":"08:00","value":0},{"time":"09:00","value":0},{"time":"10:00","value":0}],"ori":[{"time":"11:00","value":0},{"time":"12:00","value":0},{"time":"13:00","value":0},{"time":"14:00","value":0},{"time":"15:00","value":0},{"time":"16:00","value":0},{"time":"17:00","value":0},{"time":"18:00","value":0},{"time":"19:00","value":0},{"time":"20:00","value":0},{"time":"21:00","value":0},{"time":"22:00","value":0},{"time":"23:00","value":0},{"time":"00:00","value":0},{"time":"01:00","value":0},{"time":"02:00","value":0},{"time":"03:00","value":0},{"time":"04:00","value":0},{"time":"05:00","value":0},{"time":"06:00","value":0},{"time":"07:00","value":0},{"time":"08:00","value":0},{"time":"09:00","value":0},{"time":"10:00","value":0}]}},"topic":"苹果超特斯拉成头号做空目标","monitor":{"id":151,"uuid":5252804807178616839,"name":"iPhone","start_time":"2022-09-22T16:00:00.000000Z","end_time":"2022-09-23T15:59:59.000000Z","employee_id":5247301272030445580,"organization_id":5247301272021794824,"config":{"type":2,"expression":"ios|iphone|iPhone|苹果|库克","except_expression":"16"},"created_at":"2022-09-15T06:48:21.000000Z","updated_at":"2022-09-23T02:29:50.000000Z","deleted_at":null}}},"application":"Laravel","server_addr":null,"remote_addr":"<IP_ADDRESS>","level":"INFO","target":"MonitorTopicProcess","api":"GET http://localhost","ip":"<IP_ADDRESS>","referer":null,"server_request_id":"-1","user_agent":"Symfony"}

Hey @gakkiismywife
This doesn't look like contents of a Laravel log file. It should start with a date time within square brackets, then the environment and severity level, like so:
[2022-09-22 12:34:56] local.ERROR ...


Why does configuring a GPIO require a critical section in this hal?

I'm using an stm32f042 and come from using the stm32f107. Getting started with this hal there is a different approach here in how gpio:s are acquired. Functions such as into_push_pull_output take a critical section here, whereas in other hal:s they take one or more configuration registers.
Is the current design of this hal by intention?
I was surprised to find that the example for how to blink more than one LED wraps the whole main loop in a critical section. If I am reading things correctly then the main reason for that is in how gpio:s are acquired.
I was looking a bit at restructuring this. It seems f1xx uses a different set of registers for setting up the gpio:s. But f3xx and f4xx seems more reasonably similar and could maybe be used as reference (i.e. place to shamelessly copy code from...). It seems like it would be a bit of work though, and it would cause breaking changes for users of this HAL. And maybe I'm missing an obvious/good reason for it being the way it is? So I thought it best to check here first before putting more effort into it :)
edit: Actually, after writing this and then letting go of trying to get rid of the critical section by changing the hal I came up with the following to not have the main loop inside the critical section while having more than one led:
    let (mut led_yellow, mut led_blue, mut led_red) = cortex_m::interrupt::free(move |cs| {
        let mut led_yellow = gpiob.pb3.into_push_pull_output(cs);
        led_yellow.set_high().ok();
        let mut led_blue = gpiob.pb4.into_push_pull_output(cs);
        led_blue.set_high().ok();
        let mut led_red = gpiob.pb5.into_push_pull_output(cs);
        led_red.set_high().ok();

        (led_yellow, led_blue, led_red)
    });

This does not feel that bad. So maybe I should make a PR changing the multiple-led example to this instead of changing the whole hal?

Is the current design of this hal by intention?

Yes.

I was surprised to find that the example for how to blink more than one LED wraps the whole main loop in a critical section. If I am reading things correctly then the main reason for that is in how gpio:s are acquired.

That is just laziness. There's no reason to hold the CS for the duration of the program.

And maybe I'm missing an obvious/good reason for it being the way it is? So I thought it best to check here first before putting more effort into it :)

STM32F0 doesn't have atomic operations or bit-banding. The only safe way to set up a pin is to disable interrupts because of the required read-modify-write operations. Typically initialisation (unless you need tri-stating or wild pin setup changes in the middle of the program) is limited to the early setup phase of the program when you usually hold a critical section anyway (or can simply claim you're holding one because you know interrupts are disabled), by passing in that proof to the init functions it is zero-cost.
Other possibilities would to hide the CS in the setup function itself but if you have multiple things to setup you're paying the (small) setup cost for the CS a couple of times plus some people frown upon implicit CSes due to the impact on the worst case execution time of interrupt handlers. 🤷🏻♂ Another possibility sometimes used to simply ignore the possible race in the RMW operation and hope for the best.

This does not feel that bad.

Yes, also if you you want to move out the pin to a Mutex for sharing with an interrupt handler, you can do it right on the spot (because that requires a CS, too).

So maybe I should make a PR changing the multiple-led example to this instead of changing the whole hal?

Yes, I'd appreciate that.

Thank you for a good answer! I hadn't thought about the interrupt unsafety of the modify(..) calls :)
A pull request is up, so I close this.


Inconsistent behavior of max_tokens argument in JSON Mode vs free gen mode

The bug
When using Guidance with the LlamaCpp or HF backend to generate JSON outputs in "json mode" or "json schema mode" the actual number of tokens in the output does not match the expected token count specified in the max_tokens parameter. While free-form generation respects the expected token count, JSON mode generation produces fewer tokens than expected.
To Reproduce
Give a full working code snippet that can be pasted into a notebook cell or python file. Make sure to include the LLM load step so we know which model you are using.
from llama_cpp import Llama
import guidance
from guidance import gen, json

llamacpp_model = Llama.from_pretrained(
    repo_id="bartowski/Phi-3.5-mini-instruct-GGUF", filename="*Q5_K_M.gguf", n_ctx=1024, n_gpu_layers=-1
)
guidance_model_state = guidance.models.LlamaCpp(
llamacpp_model, echo=False
)

# HF backend gives the same bahavior
# guidance_model_state = guidance.models.Transformers(    "meta-llama/Meta-Llama-3.1-8B-Instruct", torch_dtype=torch.bfloat16, device_map="auto")

prompt = "Convert the following dictionary to a JSON schema: {'name': 'John', 'age': 30, 'city': 'New York'} ->"

################
#
# free form generation
#
################

output_state = guidance_model_state + prompt + gen(max_tokens=5, name="output")

output = output_state["output"]

# how many tokens are output

output_byte_string = output.encode("utf-8")
num_output_tokens = len(
    guidance_model_state.engine.tokenizer.encode(output_byte_string)
)

print(f"Expected number of tokens: 5, actual number of tokens: {num_output_tokens}")

# Expected number of tokens: 5, actual number of tokens: 5 ✅

################
#
# JSON mode generation
#
################

output_state = guidance_model_state + prompt + json(max_tokens=5, name="output")

output = output_state["output"]

# how many tokens are output

output_byte_string = output.encode("utf-8")

num_output_tokens = len(
    guidance_model_state.engine.tokenizer.encode(output_byte_string)
)

print(f"Expected number of tokens: 5, actual number of tokens: {num_output_tokens}")

# Expected number of tokens: 5, actual number of tokens: 3   ❓

System info (please complete the following information):

Guidance Version (guidance.__version__): 0.2.0rc

Thanks for the quick respoonse !
I just tried to flip the order and the number also flipped.
I had
Expected number of tokens: 5, actual number of tokens: 5
Expected number of tokens: 5, actual number of tokens: 3

now
Expected number of tokens: 5, actual number of tokens: 3
Expected number of tokens: 5, actual number of tokens: 5

But I remember I did try clear the engine state, and even if I just call the json mode, I still get this issue
from llama_cpp import Llama
import guidance
from guidance import gen, json

llamacpp_model = Llama.from_pretrained(
    repo_id="bartowski/Phi-3.5-mini-instruct-GGUF", filename="*Q5_K_M.gguf", n_ctx=1024, n_gpu_layers=-1
)
guidance_model_state = guidance.models.LlamaCpp(
llamacpp_model, echo=False
)

# HF backend gives the same bahavior
# guidance_model_state = guidance.models.Transformers(    "meta-llama/Meta-Llama-3.1-8B-Instruct", torch_dtype=torch.bfloat16, device_map="auto")

prompt = "Convert the following dictionary to a JSON schema: {'name': 'John', 'age': 30, 'city': 'New York'} ->"

################
#
# JSON mode generation
#
################

output_state = guidance_model_state + prompt + json(max_tokens=5, name="output")

output = output_state["output"]

# how many tokens are output

output_byte_string = output.encode("utf-8")

num_output_tokens = len(
    guidance_model_state.engine.tokenizer.encode(output_byte_string)
)

print(f"Expected number of tokens: 5, actual number of tokens: {num_output_tokens}")

# Expected number of tokens: 5, actual number of tokens: 3   ❓

Can you paste the string of output too? max_tokens is just a maximum number, the grammar can terminate with less

{"type":

Wait I'm a bit confused -- you're measuring the length of the output, not the input here, yes?

Oh, sorry about that, that's a typo in the code above. I'm measuing the output tokens

@Harsha-Nori note that the kv cache isn't coming into play with measuring the number of tokens (although it's certainly affecting generation time on the second call)

@Saibo-creator what's your guidance and llguidance version? On latest, I can't even get the json bit to run, as we hit an exception due to the max_tokens cutting off the output

Sorry, maybe a bit orthogonal to the rest of the convo here.

This issue can be a bit frustrating when trying to determine if the model stopped because it reached the maximum output tokens. Normally, we would just check if the output tokens match the max_output_tokens value, but in this case, it’s not so straightforward. For example, with max_output_tokens=2048, the model might produce an output of around 1200 tokens and still get truncated.

llguidance=0.2.0
guidance=0.2.0rc1 with hash 958145ccc  Tue Sep 3

This is quite old version indeed

With the following version

llguidance = 0.4.1
guidance = commit 50a5c from Tue Nov 26

I get:
Traceback (most recent call last):
  File "/home/saibo/dlabscratch1/geng/JsonSchemaBench/debug/models/guidance_model_example_debug_truncation2.py", line 46, in <module>
    output_state = guidance_model_state + prompt + json(max_tokens=5, name="output")
  File "/home/saibo/infrastructure/guidance_integrated_dev/guidance/guidance/models/_model.py", line 548, in __add__
    out = lm._run_stateless(value)
  File "/home/saibo/infrastructure/guidance_integrated_dev/guidance/guidance/models/_model.py", line 754, in _run_stateless
    for chunk in gen_obj:
  File "/home/saibo/infrastructure/guidance_integrated_dev/guidance/guidance/models/_model.py", line 174, in __call__
    parser.cleanup()
  File "/home/saibo/infrastructure/guidance_integrated_dev/guidance/guidance/_parser.py", line 164, in cleanup
    raise TokenParserException(f"Unexpected stop reason: {stop_reason}")
guidance._parser.TokenParserException: Unexpected stop reason: NoExtensionBias

So it seems that the current version will yied this error message when it produces something not satsifying the constraints due to early exiting ? This is good. I can just rely on this to detect the infinite looping cases :)


Extend https redirection tests, and fix incorrect behavior

What does this PR do?
Rebuilds https redirection paths after being modified by middlewares
Motivation
Fixes #3741
More

[x] Add replacePath to context
[x] Add tests
[x] Add replacePathRegex to context
[x] Add tests
[x] Fix stripPathPrefix
[x] Added/updated tests
[x] Added/updated documentation - None needed, corrects intended behavior

Many thanks for putting this together @dtomcej! Does this PR fix a double-trailing slash when the ingress path ends with a slash? https://github.com/containous/traefik/issues/3741#issuecomment-410958581
I looked through your changes, but could not find a new test case for this, so am curious. Sorry in advance if that's a lame question – I don't know Go, so asking is the only option I have 😆
In any case, I'll be keen to test the result once the PR is merged! Is containous/traefik:experimental the right image to pull if I can't wait for 1.7.0 / 1.7.0-rc4?

I have just tried dtomcej/traefik:issue-3741 and can confirm that I no longer reproduce  https://github.com/containous/traefik/issues/3741 and https://github.com/containous/traefik/issues/3741#issuecomment-410958581 🎉
Many thanks for your work on this @dtomcej 🙌 💯


Are you still rewriting in crystal?

Yes: https://github.com/ysbaddaden/prax.cr and I should change the README notes to state that it's now been rewritten and should be (almost) complete.


Add pipeline validation topic to documentation

As a user I want to be able to run a small pipeline to confirm that

Elyra is set up properly
Runtime configurations are valid
Kubeflow/Apache Airflow is configured properly

In support of those tasks we need to create a short doc that outlines how to obtain and run the ready-to use pipeline. This new doc can then be referenced in the installation topics as a quick way to verify the setup. The existing example pipelines are not well suited for this task. See related ER https://github.com/elyra-ai/examples/issues/41

Requires update to user_guide/runtime-conf.html


windows installation

any way that can have an easy windows installation withouth having to do the usual convoluted steps or linus on windows route?

If I was aware of an easier way, it'd be in the documentation. You'd have better luck asking on r/emacs than here.


[Orbit] Swipe not working Android

for me swipe on android not working in orbit

What version of Android?

Galaxy S5. Android 5.0 Stock browser

Confirmed, and annoying...
Reverting to the jQuery Mobile swipe event still works. I'll talk to the team about it to see what we want to do.

Couldn't recreate this on a Galaxy S6 with the Android 5.0 browser. @designerno1 Were you seeing this in the Foundation documentation?

Yes in docs none of the example could be swiped on Galaxy S5 Stock browser

seems to be fixed now in 6.2.1


Pick Character list item opacity

Pick Character list item opacity doesn't change on picked state

LS-73 issue fixed, problem was in collectionView.reloadData() which was appending more cells to collectionView.
Have no idea why that happens, will check .


sharding on schema

Is your feature request related to a problem? Please describe.
We use postgres schema heavily to support multi-tenant, like schema_1 for company 1, schema_2 for company 2, they have identical table set, and other schemas like data to contain share tables. however when the business grows, the database gets bigger and bigger and tenants will compete the database resource.
Describe the solution you'd like
I want to manually shard by schema. something like (though I think it's more like locating  a target database :)
-- Grab a bunch of users from db 1
SET SHARD TO 'schema_1';
SELECT * FROM users LIMT 10;
-- similar to SELECT * FROM schema_1.users LIMT 10;

-- we can duplicate some share data on schema_1's database, so i could be queried
SET SHARD TO 'schema_1'
SELECT * FROM data.info_abc WHERE id = 1234;

we use full identifier for tables, like always include the schema part, if the routing could be done automatically, that will be much better!
and for the share data, if we can avoid duplicating them, instead auto fdw to use them will be great (but I think there will be some  performance problem)
Describe alternatives you've considered
I'm trying shardingsphere-proxy==5.1.2, haven't succeeded yet

Hey @DeoLeung , give #79 a try and let me know if it works for you.

I patch it and did a demo, which works
-- in pg 1
CREATE SCHEMA dm_1;

CREATE TABLE dm_1.test (
id INT
);

INSERT INTO dm_1.test VALUES (1), (3);

SELECT * FROM dm_1.test;

-- in pg2
CREATE SCHEMA dm_2;

CREATE TABLE dm_2.test (
id INT
);

INSERT INTO dm_2.test VALUES (2), (4);

SELECT * FROM dm_2.test;

connect to pgcat

postgres@cb1fed2d6844:/$ psql -h pgcat -p 6432
Password for user postgres:
psql (13.7 (Debian 13.7-1.pgdg110+1))
Type "help" for help.
postgres=# show databases;
ERROR:  unrecognized configuration parameter "databases"
postgres=# SHOW DATABASES;
ERROR:  unrecognized configuration parameter "databases"
postgres=# SET SHARD TO '1';
SET SHARD
postgres=# select * from test;
 id
----
  2
  4
(2 rows)

postgres=# SET SHARD TO '0';
SET SHARD
postgres=# select * from test;
 id
----
  1
  3
(2 rows)

postgres=# select * from dm_2.test;
ERROR:  relation "dm_2.test" does not exist
LINE 1: select * from dm_2.test;
                      ^
postgres=# select * from dm_1.test;
 id
----
  1
  3
(2 rows)

postgres=# SET SHARD TO '1';
SET SHARD
postgres=# select * from dm_1.test;
ERROR:  relation "dm_1.test" does not exist
LINE 1: select * from dm_1.test;
                      ^
postgres=# select * from dm_2.test;
 id
----
  2
  4
(2 rows)

postgres=#

we start to deploy one to our test cluster for some real work. further feedback may take quite a while through.
we use to dispatch our sql with full identifier(including schema), so I think we don't really need the search_path setting.
having SET SHARD  to force following queries route to a specific db is enough for our scenario at the moment.


samples: bluetooth: mesh_provisioner: push button to provision

In order to keep a flashed sample from provisioning forever, the sample
requires the user to press a button to provision a detected device.
The feature is only enabled if the board has a push button connected
via GPIO.
Signed-off-by: Håvard Reierstad<EMAIL_ADDRESS>

@jhedberg can you approve the workflow for this PR? This is a task from the Nordic Mesh team backlog that is done by one of our summer interns.

Wouldn't it be better to provision the found device only after button press?

Wouldn't it be better to provision the found device only after button press?

Well, that would work to. I don't have a strong opinion on the approach as long as we get rid of the provision forever feature. If your up for it @HaavardRei you can try to do what @PavelVPV suggested.

@PavelVPV , @Andrewpini I reworked the code using a semaphore to synchronize provisioning with a button press. Should squash the previous commits before merging if this is approved.

I see that compliance is complaining about a couple of long lines in the documentation. Please take a look and resolve it.

@HaavardRei you need to shorten lines in commit message to 75 symbols.

@PavelVPV , @alxelax It should be good now :)


NEW Generate a random password if a blank password is entered

Issue https://github.com/silverstripe/silverstripe-framework/issues/10940

@GuySartorelli I've semi redone this PR


Unable to get working Windows + PHP 5.3.5

I believe I have set everything up correctly however whenever I try and view any content be it a draft, page or post there is no content rendered other then the default template. On the home page however the list of articles and pages are displayed. I do not see any errors in apache log either so I am stumped.
Running on Windows 7 using XAMPP running PHP 5.3.5
Any suggestions?

I haven't tested it on Windows but it should work. Make sure the .htaccess file is in your /public folder. Are the URL's you're clicking look correct? When you name your markdown files they should be in slug format, so article-name.markdown

Still no luck with that :( Wouldn't have thought that would cause the issue since windows it's case insensitive with file names. Will setup a VM and see what luck I have there!

Found out what was up. Its to do with restricted_file_get_contents and how it reads content_path from the config. Windows is \ and unix is / and that validation fails and returns '' each time.

Created Pull request to fix this


Download of file inside public link is named after the token

Describe the bug
Given a public link like this:

When I download the file, the downloaded file is named:
rWAjMExZgbrkhml, note there is NO extension.
Such behaviour is terrible from a usability perspective.
I imagine something like this is missing or is wrong:
https://github.com/cernbox/revaold/blob/67b606cb07160c6d937cbe05840aea70d05a30cd/ocproxy/api/api.go#L3547

@wkloucek in the video I don't see the downloaded files.
Have you checked they are downloaded with the correct name?

@wkloucek in the video I don't see the downloaded files. Have you checked they are downloaded with the correct name?

you can see them in the bottom left corner

AFAICT fixed by https://github.com/cs3org/reva/pull/2303


Making OS IDs easier to find

One of the most common questions that comes into our info inbox and that our community management team receives is: What is my OS ID? We have also received this question from multiple brands who don't understand how to get their OS IDs once they've uploaded data (although a less common use case than facilities asking for their ID).
As a shorter term work-around, we are creating a resource that specifically answers this question.
From a product perspective, we would love to have a brainstorm around how to make OS IDs more forward/findable, especially for facilities. A few thoughts from a stakeholder engagement discussion today:

Should OS IDs be bigger/more prominent on facility profiles? Right now the name is the biggest.
As we consider the single form submission process for facilities, could we take them through a process that starts by clicking a button to "Get My OS ID?" That process then leads them through sharing information and claiming and then ends with giving them their ID very clearly.
Are there other changes we could make to the platform UX to make it clearer that you can search for a facility and get an OS ID for it once found?

In general, maybe this is part of an even larger discussion about how to be more ID-forward as an organization, but these were the specific use cases/ideas we wanted to bring forward.
cc @katieashaw @mariel-oar @wonderchook

@jwalgran @obrienad , mind taking a look at this and providing an estimate?


convert to current Swift syntax

Hi @jaredchu, Thank you so much for contributing! :) As you can see above (or beneath?) your code does not compile :( I'm also not sure if we really want to remove the identifier label ... Also making the init() method fileprivate seems unnecessary to me, why do you want it to be fileprivate?

I just use xcode auto convert and it's working for me in my current project. Travis build fail because the Test functions does not match current function XCTAssert(Device.mapToDevice(identifier: "iPhone3,1").description == "iPhone 4"). I will looking for more details if I have time.


BigQuery: Use DatasetListItem for client.list_datasets

Listing datasets only includes a subset of the properties available on a
dataset. The DatasetListItem class is used to explicitly document which
features are available and to prevent confusion from trying to use the
resulting object in other contexts, like updating.
Closes #4373.

Ping. Please review.


adding viewport updates + changing favicon

added the following two updates

improved viewport message for mobile view
changed favicon

looks great!


Array.hash() returns the same value if two arrays contain different arrays

Godot version
3.3.2stable
System information
Windows 10, GLES3, RTX 3080 Ti
Issue description
Array hashing does not work as expected when they have other arrays in them. It will be easier to explain by code.
Code ->
extends Node2D

func _ready():
	var arr1 = [[3,2],[3,2]]
	var arr2 = [[3,3],[2,2]]
	print(arr1.hash())
	print(arr2.hash())
	if arr1.hash() == arr2.hash():
		print("Hashes are equal.") # Should not print that.

Output ->
2473231033
2473231033
Hashes are equal.

As you can clearly see, arrays [[3,2],[3,2]] and [[3,3],[2,2]] are not the same. But somehow they produce the same hashes. This bug is causing a big problem for my game. Any other solutions to check if arrays are equal to each other by values inside them ?
Steps to reproduce
I provided a minimal reproduction project below. You can simply create a new project and enter the code below to any node to see how it works.
extends Node2D

func _ready():
	var arr1 = [[3,2],[3,2]]
	var arr2 = [[3,3],[2,2]]
	print(arr1.hash())
	print(arr2.hash())
	if arr1.hash() == arr2.hash():
		print("Hashes are equal.") # Should not print that.

Minimal reproduction project
HashBug.zip

Any other solutions to check if arrays are equal to each other by values inside them ?

You can loop over the arrays recursively and check whether they're equal.

Array.hash() returns the same value if two arrays contain different arrays
Array hashing does not work as expected

The return value of Array.hash() can't be unique for each array as there are more unique arrays than unique int values. Collisions are unavoidable.

The return value of Array.hash() can't be unique for each array as there are more unique arrays than unique int values. Collisions are unavoidable.

We should probably review the algorithm used to avoid collisions on small arrays like the one used in the example.

Possibly related to #51023.

Code ->
extends Node2D

func _ready():
	var arr1 = [[3,2],[3,2]]
	var arr2 = [[3,3],[2,2]]
	print(arr1.hash())
	print(arr2.hash())
	if arr1.hash() == arr2.hash():
		print("Hashes are equal.") # Should not print that.

Output ->
2473231033
2473231033
Hashes are equal.

In v4.0.beta4.official [e6751549c] it prints:
4226862813
1828843824

Likely fixed in #62176. Probably can be closed but maybe more testing should be done before.


Rabin Karp Algorithm

🚀 Feature
C++ implementation of Rabin Karp Algorithm.
Have you read the Contributing Guidelines on Pull Requests?
Yes
Motivation
Rabin Karp is one of the introductory algorithms to find a pattern in a string
Pitch
Finding a pattern in a string is very helpful

Please assign this to me

I would like to do this in java

I would like to do this in java

I would like to implement it in python. Please assign it to me.

I would like to implement it in python. Please assign it to me.

@rutujadhanawade @GVictorsd go for it!

@rutujadhanawade @GVictorsd go for it!

@Neilblaze I am done with my part and I have also raised a PR. Please review and merge.
MyPR

@Neilblaze I am done with my part and I have also raised a PR. Please review and merge.
MyPR


chore(sequencer): refactor fees

Summary
Added trait for fee components to allow generic usage of them.
Background
Previously, there was a lot of boilerplate required when testing fee components, since we are usually testing them for each and every action. Additionally, this introduces a lot of room for human error, since it's easy to mismatch an action and its associated methods. This change aims to rely more heavily on trait methods and helper functions, so that generic types can be used to eliminate boilerplate and room for error.
Changes

Added new FeeComponents trait and implemented it for all fee components.
Added new type and method to FeeHandler trait.
Changed all actions in the fees request (fees::query::get_fees_for_transaction) to use helper functions with generic inputs.
Refactored fee change tests to use helper function and macro, as opposed to generated tests. The aim of this is to make it more difficult to make manual mistakes in the future, while still making debugging of these tests easier.
Refactored round trip state read/write tests.

Testing
Passing all tests
Related Issues
closes #1715

Closing in favor of https://github.com/astriaorg/astria/pull/1794


dotnet compile --native should pass app dependencies to ILC.exe

This functionality was taken out because the CoreRT framework libraries are currently only included in the AppDepSDK Nuget package.
We need to think about where the framework libraries will eventually come from, and how we deal with third party app dependencies.
Related: https://github.com/dotnet/cli/issues/255

Dupe of #1570.


Logs component from a plugin results in blank page

I have code like this in my plugin:
func handlePrint(request *service.PrintRequest) (plugin.PrintResponse, error) {
  resp := plugin.PrintResponse{}
  logCard := component.NewCard("Logs")
  logCard.SetBody(component.NewLogs("tekton-pipelines",
    "tekton-pipelines-controller-5f6d47fdd9-snlnm",
    []string{"tekton-pipelines-controller"}))
  resp.Items = append(resp.Items, component.FlexLayoutItem{
    Width: component.WidthFull,
    View:  logCard,
  })
  return resp
}

(This pod with this container is running in this namespace, and works just fine in the Pod's Logs tab)
This causes the page for this resource to be rendered blank, with no errors in the Chrome Console or in octant's output.

This is interesting. This is definitely not a scenario I envisioned when putting this together. Will take a look.

fixed with #618


Must provide at least one argument, the generator namespace to invoke.

error
Error: Must provide at least one argument, the generator namespace to invoke.     at Environment.run (/Users/johnzhu/Desktop/work_Space/yo-noive/generator-rocky/node_modules/yeoman-environment/lib/environment.js:369:23)     at Environment.run (/Users/johnzhu/.nvm/versions/node/v9.4.0/lib/node_modules/yo/node_modules/yeoman-environment/lib/environment.js:451:22)     at module.exports (/Users/johnzhu/.nvm/versions/node/v9.4.0/lib/node_modules/yo/lib/routes/run.js:19:11)     at Router.navigate (/Users/johnzhu/.nvm/versions/node/v9.4.0/lib/node_modules/yo/lib/router.js:36:32)     at inquirer.prompt.then.answer (/Users/johnzhu/.nvm/versions/node/v9.4.0/lib/node_modules/yo/lib/routes/home.js:73:13)     at <anonymous>

My environment

OS version/details: osx 10.13.1
Node version: v9.4.0
npm version: 5.6.0
Version of yo : 2.0.2

   var name = args.shift();
  if (!name) {
    return this.error(new Error('Must provide at least one argument, the generator namespace to invoke.'));
  }

I found this line in the source. what does the name mean."yo+name"=>"yo+rocky",haven't I provide the rocky name

 console.log("I'm args", args) // I'm args []
 var name = args.shift();

the log shows as above

all right, update to 2.0.0,fix it!


Use FormatInt instead of string for external id.

In gce, instance id is an integer, string(id) will convert it to binary string.  We should use a readable string.
/cc @simon3z @brendandburns

LGTM
(btw the gce instance id is usually expressed as an int base-10 and not an hex?)

Not sure, I thought it's base-10?  Anyone more familiar with GCE should have the answer.


Drop deprecated babel-preset-es2015-loose dependency

From https://www.npmjs.com/package/babel-preset-es2015-loose
This project is deprecated for users of Babel v6.13+
Updating this preset allows to drop this extra dependency from projects that depend on linkifyjs.

👍


CMake and Autotools builds broken when V2 API is disabled

Thanks @gsjaardema for bringing this to light. Greg submitted a fix in a PR, but it introduces a new header file which is not needed. config.h should have all the information needed to determine if V2 is built.
Here's the error:
nc_test4/CMakeFiles/nc_test4_tst_vars2.dir/build.make:62: recipe for target 'nc_test4/CMakeFiles/nc_test4_tst_vars2.dir/tst_vars2.c.o' failed
make[2]: *** [nc_test4/CMakeFiles/nc_test4_tst_vars2.dir/tst_vars2.c.o] Error 1
CMakeFiles/Makefile2:4131: recipe for target 'nc_test4/CMakeFiles/nc_test4_tst_vars2.dir/all' failed
make[1]: *** [nc_test4/CMakeFiles/nc_test4_tst_vars2.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
Build step 'Execute shell' marked build as failure
Finished: FAILURE

The autotools build fails like this:
tst_vars2.c: In function ‘main’:
tst_vars2.c:568:14: warning: implicit declaration of function ‘nccreate’; did you mean ‘nc_create’? [-Wimplicit-function-declaration]
       ncid = nccreate(FILE_NAME, NC_NETCDF4);
              ^~~~~~~~
              nc_create
tst_vars2.c:571:18: warning: implicit declaration of function ‘ncdimdef’; did you mean ‘nc_redef’? [-Wimplicit-function-declaration]
       dimid[0] = ncdimdef(ncid, LAT, LAT_LEN);
                  ^~~~~~~~
                  nc_redef
tst_vars2.c:571:33: error: ‘LAT’ undeclared (first use in this function)
       dimid[0] = ncdimdef(ncid, LAT, LAT_LEN);
                                 ^~~
tst_vars2.c:571:33: note: each undeclared identifier is reported only once for each function it appears in
tst_vars2.c:571:38: error: ‘LAT_LEN’ undeclared (first use in this function); did you mean ‘DIM1_LEN’?
       dimid[0] = ncdimdef(ncid, LAT, LAT_LEN);
                                      ^~~~~~~
                                      DIM1_LEN
tst_vars2.c:572:33: error: ‘LON’ undeclared (first use in this function)
       dimid[1] = ncdimdef(ncid, LON, LON_LEN);
                                 ^~~
tst_vars2.c:572:38: error: ‘LON_LEN’ undeclared (first use in this function); did you mean ‘LAT_LEN’?
       dimid[1] = ncdimdef(ncid, LON, LON_LEN);
                                      ^~~~~~~
                                      LAT_LEN
tst_vars2.c:575:15: warning: implicit declaration of function ‘ncvardef’; did you mean ‘nc_redef’? [-Wimplicit-function-declaration]
       varid = ncvardef(ncid, CXX_VAR_NAME, NC_FLOAT, VAR_DIMS2, dimid);
               ^~~~~~~~
               nc_redef
tst_vars2.c:578:7: warning: implicit declaration of function ‘ncclose’; did you mean ‘nc_close’? [-Wimplicit-function-declaration]
       ncclose(ncid);
       ^~~~~~~
       nc_close
tst_vars2.c:581:14: warning: implicit declaration of function ‘ncopen’; did you mean ‘nc_open’? [-Wimplicit-function-declaration]
       ncid = ncopen(FILE_NAME, 0);
              ^~~~~~
              nc_open
tst_vars2.c:582:7: warning: implicit declaration of function ‘ncinquire’; did you mean ‘nc_inq_var’? [-Wimplicit-function-declaration]
       ncinquire (ncid, &ndims, &nvars, &natts, &recdim);
       ^~~~~~~~~
       nc_inq_var

The config.h in both cases does include this:
/* do not build the netCDF version 2 API */
#define NO_NETCDF_2 1

The macro name is awkward, but it's a historical oddity, so we tolerate it, like the Roman-style robes we make graduates wear.
Greg also very thoughtfully submitted a fix (PR #656), but it unnecessarily introduces the netcdf_meta.h file, which is not needed and should not be used in tests.
I have fixed this on my current branch by using NO_NETCDF_2 where necessary in tst_vars2.c. I have also added some disable-v2 builds to my CI system to prevent it breaking again. ;-)
I will put my branch up for merge sometime next week.

This is now fixed in master. Thanks @gsjaardema.


fix(api): try to download JWKS in insecure mode

:tada: This PR is included in version 0.13.1 :tada:
The release is available on:

GitHub release
v0.13.1
v0.13.1

Your semantic-release bot :package::rocket:


[pt run] searching w/ Chinese characters

PowerToys Run不能使用中文搜索本地文件，如在D盘的文件使用中文都搜索不到，使用英文字母可以。
希望以后的版本支持中文搜索文件。
谢谢。
Translated:
PowerToys Run cannot use Chinese to search local files, such as files on the D disk Chinese can not be searched, using English letters can be.
 You want future releases to support Chinese search files.
 Thank you very much.

can you provide a sample file?  in theory, this should work as we just call the indexer for searching.
For "D:" drive, this works but only if it is English searching?  Correct?

我不知道我这样直接回复邮件您能否收到。如您所说。我将使用过程中的情况作了截图，在附件中。
发送自 Windows 10 版邮件https://go.microsoft.com/fwlink/?LinkId=550986应用
发件人: Clint<EMAIL_ADDRESS>发送时间: 2020年12月5日 2:20
收件人<EMAIL_ADDRESS>抄送<EMAIL_ADDRESS><EMAIL_ADDRESS>主题: Re: [microsoft/PowerToys] PowerToys Run不能使用中文搜索本地文件 (#8390)
can you provide a sample file? in theory, this should work as we just call the indexer for searching.
For "D:" drive, this works but only if it is English searching? Correct?
―
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/PowerToys/issues/8390#issuecomment-738941018, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AR7ZEYHHQUM4IRCMJUDIQW3STESARANCNFSM4UNBEJIQ.

@lieguolangzi this works for c but not d drive, correct?
@enricogior i think this should be looked into for stability.

@lieguolangzi this works for c but not d drive, correct?

1、C盘没有存储任何中文命名的文档，这个问题不了解了。
2、我将win10更新到了19042.685，将powertoys更新到了V0.27.1，之前的问题消失了，现在可以搜索中文命名的文件了，无论是C盘还是D盘。

Per user, upgrading to 19042 resolved the issue, all we do is call indexer so this was solved externally.


File based nodes thoughts

We should validate that the file exists, how often? Do we need to watch the file somehow?
Should we change the file label to just be the basename? xxx.ipynb feels a bit noisy...
If a file is renamed should the node's file path also be updated?

We should validate that the file exists, how often? Do we need to watch the file somehow?

I would think when opening the file and on running / exporting? Also saving? I think that'd be enough

So, this should be part of the pipeline validation logic, so, whenever the validation occours.

Yea, I was assuming during validation was the bare minimum. I was more wondering if we should do any file watching for when required files are renamed/moved


ipe: 7.2.24 -> 7.2.26

Description of changes

https://github.com/otfried/ipe/releases/tag/v7.2.25 (adds spellchecking using QtSpell, disabled at compile-time for now because QtSpell is not yet packaged in nixpkgs)
https://github.com/otfried/ipe/releases/tag/v7.2.26
This also introduces a new option to make TeX Live optional. Ipe tries to find LaTeX executables in PATH and some users might prefer to use their existing TeX Live installation.
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 225159 run on x86_64-linux 1

1 package built:

ipe

Result of nixpkgs-review pr 225159 run on x86_64-linux:

1 package built:
asd

Thanks!


Update busboy to 1.6.0, account for breaking changes

As in description. This accounts for breaking changes from version 1.0.0 of busboy.
Running the tests is successful.

Can we get this going? It's not nice to have vulnerabilities...

@francismeynard this update seems fine to merge?

@francismeynard
Can you please merge and release this change. It fixes vulnerabilities.

@jrose-stac Do you have another npm package published along with this change?

Hi @jrose-stac  - Have you considered forking this and publishing the package yourself under a different name? It looks like @francismeynard has abandoned this repo?

Hi, it looks like this repo was abandoned. So I did a fork and integrated the update to busboy 1.6.0.
https://github.com/travelhawk/multipart-lambda-ts-v2


[Community] [WithThreeJs] version 0.9.0

Supports built-in 3D.
Supports multiple 3D cameras.

Great to see an update!
We're planning a GDevelop release very soon, it could worth waiting for it to check nothing broke.

Does this version work well with the current version?
Do you have a small example I could use to check it before merging it?


Also call res.End() when the transfer fails, refs #22

Thanks @sspans, I'd be glad to hear your feedbacks if you test the modifications I've done recently.


"CRONO 54" detected as cron

Mozilla/5.0 (Linux; Android 5.1; CRONO 54 Build/LMY47I) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.111 Mobile Safari/537.36

I believe this also happens with Zeus:
Mozilla/5.0 (Linux; Android 4.2.1; MAJESTIC Zeus21 Build/JOP40D) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.72 Mobile Safari/537.36

Fixed, thanks 👍


report to track deleted items

Hi
do we have a report that we can run to give us a list of all change log deleted items in the last hour/day/week?
can we have a script or report to notify the admins if tehre was a bulk of deleted objects in the last hour? (someone deleted >10 devices for example)
also, can we schedule jobs to send email results?
please advice
thanks

Hello @ariel256
There has not been a ton of interest in people providing customizations(scripts/reports/etc) on request.  This is just more of a repo of people sharing what they created.


Licensing confusion

According to VERSION.txt and the chipmunk-physics.net website, all Chipmunk Pro features are now open source.
Indeed, they do seem to be included in this repo, however they still list the following copyright disclaimer:
// Copyright 2013 Howling Moon Software. All rights reserved.
// See http://chipmunk2d.net/legal.php for more information.

The legal page that the mentioned URL redirects to states that licenses are still required in order to use the Pro features, but there does not appear to be anywhere to purchase one.
I expect this is just leftover stuff that hasn't been cleaned up since the features were open sourced, but it'd be great to get the legal page changed and the source code header changed to the MIT one, just to avoid confusion and make any potential lawyers happy.

Hey Silversquirl,
You are correct that Chipmunk Pro is now open source and new licenses are not required and cannot be purchased anymore. I think we kept that legal page up as a reference, especially for people who had previously made purchases under the terms of that license.
But I agree, those headers should be updated to not point at that page anymore. Thanks for noticing that!


auto forward messages bot

how can add the api of bot in github and how can manage the bot command if i want to add a channel linkage

hi i have a telegram forward bot in python and need code to delete of the forward messages all mentions @username and all links http://t.me/........ can help please??


feat(submit): add size props

Summary
Forward size props into Submit.
Type

Feature

Summarise concisely:

Codecov Report

Merging #479 (7c46256) into main (a803710) will decrease coverage by 0.05%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##             main     #479      +/-   ##
==========================================
- Coverage   92.25%   92.20%   -0.06%
==========================================
  Files          26       26
  Lines         310      295      -15
  Branches       38       35       -3
==========================================
- Hits          286      272      -14
- Misses         13       14       +1
+ Partials       11        9       -2

Impacted Files
Coverage Δ

src/components/CheckboxField/index.tsx
100.00% <ø> (ø)

src/components/ToggleField/index.tsx
57.14% <57.14%> (ø)

src/components/Submit/index.tsx
100.00% <100.00%> (ø)

src/providers/ErrorContext/index.tsx
88.00% <0.00%> (-12.00%)
:arrow_down:

src/components/DateField/index.tsx
65.38% <0.00%> (-0.14%)
:arrow_down:

src/components/Form/index.tsx
100.00% <0.00%> (ø)

src/components/TextBoxField/index.tsx
100.00% <0.00%> (ø)

src/components/SelectableCardField/index.tsx
100.00% <0.00%> (ø)

src/components/RadioBorderedBoxField/index.tsx
100.00% <0.00%> (ø)

... and 2 more

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 f0ae497...7c46256. Read the comment docs.


Which-key not found after fresh install

Hi  I have been struggling to integrate the quarto settings into a custom lazy config and came across your you tube video so thought I would try to work up my config from your kickstarter.
I removed my config and removed the local storage for the previous lazy config. I have made no changes to your files at this stage.
After installing the configuration and letting the first setup complete installation of the language servers.  On restart I am getting this error message:
Error detected while processing /Users/jason/.config/nvim/init.lua:
Failed to load `plugins.ui`

...0.9.5/share/nvim/runtime/lua/vim/treesitter/language.lua:93: no parser for 'markdown' language, see :help treesitter-parsers

# stacktrace:
  - /usr/local/Cellar/neovim/0.9.5/share/nvim/runtime/lua/vim/treesitter/language.lua:93 _in_ **add**
  - /usr/local/Cellar/neovim/0.9.5/share/nvim/runtime/lua/vim/treesitter/query.lua:252 _in_ **parse**
  - ui.lua:233
  - ~/.config/nvim/lua/config/lazy.lua:16
  - ~/.config/nvim/init.lua:2
E5113: Error while calling lua chunk: /Users/jason/.config/nvim/lua/config/keymap.lua:1: module 'which-key' not found:
        no field package.preload['which-key']
cache_loader: module which-key not found
cache_loader_lib: module which-key not found
        no file './which-key.lua'
        no file '/usr/local/share/luajit-2.1/which-key.lua'
        no file '/usr/local/share/lua/5.1/which-key.lua'
        no file '/usr/local/share/lua/5.1/which-key/init.lua'
        no file './which-key.so'
        no file '/usr/local/lib/lua/5.1/which-key.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        /Users/jason/.config/nvim/lua/config/keymap.lua:1: in main chunk
        [C]: in function 'require'
        /Users/jason/.config/nvim/init.lua:4: in main chunk

and then:
Failed to run `init` for **vim-slime**

/Users/jason/.config/nvim/lua/plugins/quarto.lua:628: module 'which-key' not found:
^Ino field package.preload['which-key']
cache_loader: module which-key not found
cache_loader_lib: module which-key not found
^Ino file './which-key.lua'
^Ino file '/usr/local/share/luajit-2.1/which-key.lua'
^Ino file '/usr/local/share/lua/5.1/which-key.lua'
^Ino file '/usr/local/share/lua/5.1/which-key/init.lua'
^Ino file './which-key.so'
^Ino file '/usr/local/lib/lua/5.1/which-key.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'

# stacktrace:
  - quarto.lua:628 _in_ **init**
  - ~/.config/nvim/lua/config/lazy.lua:16
  - ~/.config/nvim/init.lua:2

I have a working installation of quarto but hadn't previously got it configured properly with nvim.
I realised that I hadn't removed the .local state / share from the previous installation so removed those and did a fresh install. But the errors came through again.
I'm new to nvim so forgive any obvious errors I have made.

Thanks I will take a look at the earlier release.

I haven't debugged why 3.0.0 doesn't work, just came here to report it, and seen that you already have. Good to know it is not a problem with my system. FWIW I have NeoVim 0.9.5 on Fedora39.

I wasn't able to reproduce this on my machine, but noticed that I had lost calling which-key's setup. Can you confirm if above commit fixes the issue?

I don't expect version 3 to install slower than 2, since the amount of plugins is about the same. But if you switch between versions you'll have some already installed so the second one will always be faster.

Ah, no, that was just a symptom from the config not being processed all the way through, because I was using treesitter functionality from nvim version 0.10. While I check for a fix you can use this config with the latest nvim nightly (https://github.com/neovim/neovim/releases/tag/nightly)

found the problem. Should be fixed now


Typo in markdown to list shelvesets for all users

If you don't know the name of the owner, you can type ***** to list shelvesets for all users.

I am using visual studio 2019,  the description above is incorrect, only one * needed to list shelvesets for all users. I knew you want to bold the “*” in the description,  it's **\*** via markdown not *****.
BTW, the same functionality is not available in Azure DevOps Repos.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: cfd36c9f-c60e-6191-f344-0cd8c0829bb6
Version Independent ID: 25868222-c846-1e31-9373-a741df436cb6
Content: Suspend your work and manage your shelvesets - Azure Repos
Content Source: docs/repos/tfvc/suspend-your-work-manage-your-shelvesets.md
Product: devops
Technology: devops-code-tfvc
GitHub Login: @apawast
Microsoft Alias: apawast

@ToMakeSense Thank you for the feedback.
The documentation has been updated and is pending review.
Please consider becoming a contributor.


IOError of Lexicons

Hi again William,
I appreciate your quick responses. Regarding the lexicons, I got following error:
In [1]: %run example.py
Using TensorFlow backend.
Evaluting SentProp with 100 dimensional GloVe embeddings
Evaluting only binary classification performance on General Inquirer lexicon
---------------------------------------------------------------------------
IOError                                   Traceback (most recent call last)
/socialsent-master/example.py in <module>()
      8     print "Evaluting SentProp with 100 dimensional GloVe embeddings"
      9     print "Evaluting only binary classification performance on General Inquirer lexicon"
---> 10     lexicon = lexicons.load_lexicon("inquirer", remove_neutral=True)
     11     pos_seeds, neg_seeds = seeds.hist_seeds()
     12     embeddings = create_representation("GIGA", "data/example_embeddings/glove.6B.100d.txt",

/socialsent-master/socialsent/lexicons.pyc in load_lexicon(name, remove_neutral)
    163
    164 def load_lexicon(name=constants.LEXICON, remove_neutral=True):
--> 165     lexicon = util.load_json(constants.PROCESSED_LEXICONS + name + '.json')
    166     return {w: p for w, p in lexicon.iteritems() if p != 0} if remove_neutral else lexicon
    167

/socialsent-master/socialsent/util.pyc in load_json(fname)
     32
     33 def load_json(fname):
---> 34     with open(fname) as f:
     35         return json.loads(f.read())
     36

IOError: [Errno 2] No such file or directory: '/afs/cs.stanford.edu/u/wleif/sentiment/polarity_induction/data/lexicons/inquirer.json'

I know that I have to play with paths in constant.py file. I just wanted to let you know about the bug.
Regards,
Nader

Thanks for mentioning this! I made the default DATA path relative so that you don't need to play wit the constants to load the lexicons (assuming you are running commands from the root directory of the repo).

I still get the same error. I am sure that I running from root. When I install the package using pip, it does not create any folder for lexicons or representations. There, I get the error.

Ahh I see. The pip installation was indeed messed up. The pip installation should work for the lexicon data now, as I have made that data a part of the package distribution. However, you will still need to modify constants.py for the embedding paths (and if you install via pip, then you need to make this modification wherever pip installed the source). The README now recommends the python setup.py install route rather than pip install due to this mess.
Ideally, the user should be able to pip install and then run a command to download the default word vectors, but this is a todo enhancement at this point.

I was trying to modify the constant.py for the embedding paths and realised that following folders are missed from the data folder:
LEXICONS = DATA + 'lexicon_info/'
PROCESSED_LEXICONS = DATA + 'lexicons/'
POLARITIES = DATA + 'polarities/'

The data folder in github contains just the lexicons.

Whoops, this minor follow-up slipped under my radar. I removed the LEXICONS folder because it contains info that is not useful to downstream users. The POLARITIES folder is just a default output folder (e.g., for the code in the historical dir) that should be automatically created. There is no actual data in it by default. I modified the constants.py so that the code automatically checks if that directory exists and creates it if necessary on an import.


xds: transport level re-connection

Description: recreate https://github.com/envoyproxy/envoy/pull/9676
Risk Level: mid
Testing: Unit / Integration
Docs Changes: Required
Release Notes: Required
[Optional Fixes #Issue] #9617
[Optional Deprecated:] None

\nostale


Broken link on website

On this website there is the following section:

Some users have reported issues installing on Ubuntu due to node being registered to another package. Follow the official NodeJS docs to install NodeJS so that #!/usr/bin/env node correctly resolves.

where the link (pointing to here) hasn't been working for a long while. You can see how it looked like when it last worked in 2016 over here.
I'm too much of a beginner to understand what text should be copied over or what should be done. So just letting you know.

I created a pull request for this issue: #2753.

Fixed in #2753


Changes to Fund 5 Proposal

Changes to Fund 5 Proposal
Summary : Change Problem statement to "A lack of advocacy for open source in a Fund 3 Proposal", Change Describe your solution to the problem to : "Community audit of Fund 3 Proposal", Remove all references to NFT-DAO / Token Rewards, Replace with Community Recognition Token (Ancient Kraken, New Mindflow, Tyler, Dan and Stephen) and new Output to be delivered Departees-Review - Due : 30/06/2021.
Change Problem statement to :

A lack of advocacy for open source in a Fund 3 Proposal

Change Describe your solution to the problem to :

Community audit of Fund 3 Proposal

Remove all references to NFT-DAO / Token Rewards
Reason : NFT-DAO is no longer in a position to mint a contribution NFT
Replace with Community Recognition Token
Budget Requirements : My Budget is broken into $5 for basic costs.
The minting of an ADA Non-Fungible Token (in an edition of 4) to recognize the community contribution of Ancient Kraken, New Mindflow, Tyler, Dan and Stephen.
Outputs postponed
The following outputs to be postponed due to work commitments
(3) QA of Ideascale Platform General Issues - Due : 26/05/2021 :
(4) Feedback Challenge : Open-Source Assessment Report - Due : 26/05/2021 :
(5) Project Catalyst Proposal Process Report - Due : 26/05/2021 :
Output to be delivered
(7) Departees-Review - Due : 30/06/2021
https://github.com/stephen-rowan/Governance-HOLON/tree/main/Digital-Fortress/NFT-DAO-Departees-Review

strong stuff, I'll add my review later today!


documentation deepallDIAL

will solve #65

Codecov Report

Merging #203 (2648479) into master (0e64a4a) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 2648479 differs from pull request most recent head 68a48dc. Consider uploading reports for the commit 68a48dc to get more accurate results

@@           Coverage Diff           @@
##           master     #203   +/-   ##
=======================================
  Coverage   95.33%   95.33%
=======================================
  Files         125      125
  Lines        4178     4178
=======================================
  Hits         3983     3983
  Misses        195      195

Flag
Coverage Δ

unittests
95.33% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

@smilesun
I have the fealing there are more differences between the implementation described in the paper and the implementations in domainlab. For instance the network structure (as it is described in the paper) cannot be fully trained with using the loss function
$$
\text{loss} = \text{loss on original images} + \gamma \text{ loss on adversary images}
$$
because in the paper they do use a external domain classifier (to classify natural image an adversary image) which is not respected in this loss function.
The network structure proposed in the paper is also documented in the markdown file right now. Can you check if this is the network implemented in Domainlab and if not, what is implemented instead?

From what I understand from running the test_trainer_dial.py. The network is initialised in
https://github.com/marrlab/DomainLab/blob/5b039812f427c707a431a586cc1140e0e5b137d9/domainlab/algos/builder_dial.py#L38
running the pytest function it corresponds to the "conv_bn_pool_2" network, which is also expected because this is specified in the args.
This would mean that there is actually no domain classifier involved in the whole training.

thanks for clarifying,  we could combine dial with other models in domainlab (currently this is available) so missing that part is not that important, we do not have to stick to that.

@smilesun
I started working on the documentation for DIAL. Doing so I got some questions:

the paper proposes two loss functions, one using only the classical cross entropy loss and one using the Kullback-Leibler divergence. Can one control which loss is used in Domainlab?
The paper uses two hyperparameter (r and λ) to weight the terms in the loss function. r weights the domain classification loss and λ the label classification loss in the adversary domains and the Kullback-Leibler divergence between the label output of natural domain and their adversary domains. In the code I can only find gamma_reg and I don't understand which term is seen as the regularisation term

https://github.com/marrlab/DomainLab/blob/0e64a4a2cf8bf30ec8d92de7b43964adf55f4f42/domainlab/algos/trainers/train_dial.py#L57

shall I write something about the strategy of generating the images of the adversary domain?

currently we do not support the domain classification to make it simple.

From what I understand from running the test_trainer_dial.py. The network is initialised in
https://github.com/marrlab/DomainLab/blob/5b039812f427c707a431a586cc1140e0e5b137d9/domainlab/algos/builder_dial.py#L38
running the pytest function it corresponds to the "conv_bn_pool_2" network, which is also expected because this is specified in the args.
This would mean that there is actually no domain classifier involved in the whole training.

correct observation, we can have another issue refered to this, so we can close this one.


Transition without animation when any of the animators are null

On API 14 devices getReappearAnimator() returns null which leads to a crash
when AnimatorSet attempts to play the animations.  Using the non-animated
transition code bypasses the problem without altering desired behavior.

This fixes the crash I reported in https://github.com/wdullaer/MaterialDateTimePicker/issues/307

Looks good to me


Cannot build current master branch using make clean install

Running make clean install in my existing dev environment (where an older dev build based on JupyterLab 2.2.9 was already installed) the following error is raised:
cd packages/theme && jupyter labextension install --no-build .
An error occured.
ValueError:
"<EMAIL_ADDRESS>is not compatible with the current JupyterLab
Conflicting Dependencies:
JupyterLab              Extension         Package
>=2.2.6 <2.3.0          >=3.0.0-rc.10 <4.0.0@jupyterlab/application
>=2.2.6 <2.3.0          >=3.0.0-rc.10 <4.0.0@jupyterlab/apputils
>=2.2.6 <2.3.0          >=3.0.0-rc.10 <4.0.0@jupyterlab/launcher
>=16.9.0 <16.10.0       >=17.0.1 <18.0.0  react
See the log file for details:  /var/folders/h8/l3qh8v192rv_vvggc6wyphzc0000gn/T/jupyterlab-debug-vfn6sx26.log
make: *** [install-ui] Error 1

Output from pip freeze | grep -i jupyter after the failed installation attempt
jupyter-client==6.1.7
jupyter-core==4.7.0
jupyter-server==1.0.7
jupyterlab==2.2.9
jupyterlab-pygments==0.1.2
jupyterlab-server==1.2.0
pytest-jupyter==0.0.1

The same build in a new conda environment,  where no legacy version of JupyterLab is installed, completes as expected. It appears that clean doesn't properly handle the scenario where an older version of JupyterLab (2.2.9) is already installed.

Running make install-server the log contains the following entries:
Collecting jupyterlab>==3.0.0rc10
  Using cached jupyterlab-3.0.0rc10-py3-none-any.whl (8.2 MB)
...
Requirement already satisfied, skipping upgrade: jupyterlab>==3.0.0rc10 in /Users/patti/anaconda3/envs/elyra_dev/lib/python3.7/site-packages (from elyra==2.0.0.dev0) (2.2.9)

Based on the output and checking the referenced location
drwxr-xr-x   25 patti  staff     800 Dec  1 12:55 jupyterlab
drwxr-xr-x    9 patti  staff     288 Dec  1 12:55 jupyterlab-2.2.9.dist-info

it appears that pip install --upgrade --upgrade-strategy only-if-needed dist/elyra-*-py3-none-any.whl doesn't upgrade as expected, maybe because 3.0.0.rc10 is not a stable release and --pre not specified?

To avoid the issue, clean could uninstall jupyterlab to  avoid the conflict.

@ptitzler the Elyra Makefile is designed to only touch Elyra files. In order to help with development we have the etc/scripts/clean-jupyterlab.sh script that cleans the jupyter environment. The clean script will update your jupyterlan version to the expected version for the branch you're currently on. So for devs you would want to run that script prior to make clean install when switching between elyra major versions

Ah yes. Thank you. I didn't know about the script and didn't find a reference to it in the documentation. Is there a specific reason why this is a stand-alone script instead of a task in the Makefile?


Get only hostname without intercepting the request

Hello, I wanna to intercept the host name and based on the host name I wanna drop or continue the request ( I don't care about the content at all).
I have tried the example below:
from mitmproxy import http

def request(flow: http.HTTPFlow) -> None:
    print("sending request to"+ flow.request.pretty_host)

but I'm receiving an error: Cannot establish TLS with client so is there any way to achieve this without installing custom certs ?

For this you either want to look at the TLS Server Name Indication or the HTTP Host header for cleartext communication. Long story short, this is nothing mitmproxy really supports at the moment.


Scripts containing ES6 Class are not properly parsed

Description
First off it is really great to see some work being done towards enabling ES6 classes in PlayCanvas and with the release of 1.26.0 it seems as we're getting closer but one small step might be missing.
At least it seems as the ES6 classes are not being parsed properly by the engine. Also it is not possible to attach a ES6 class script to an Enity.
Tested on a MacBook Pro 16" with fully updated macOS. Verified in Chrome Canary and Safari.
Screenshots that might help clarify the issue a bit:

Steps to Reproduce

Fork this project https://playcanvas.com/project/668763/overview/es6-script-tests
Create a new Entity in the Hierarchy
Try to attach the es6-script to the newly created Entity (not possible)

This is what happens for me when I click on Parse:

ES6-class support is just an engine-only feature for now. The Editor has yet to be updated to parse ES6 scripts. For now, if you're using the Editor, stick with ES5 scripts. Hopefully, we can implement this into the Editor soon but I don't have an ETA just yet.

@willeastcott OK, thanks for clarifying this. Fingers crossed😊

This is now fixed. Try again and let us know if you have any problems. Note the code example in the API reference for how to define ES6-based scripts:
https://developer.playcanvas.com/en/api/pc.html#registerScript


Delete TcpConnectionFactory::createDuplexConnectionFromSocket()

It's a very verbose way of doing std::make_unique<TcpDuplexConnection>(...)

TcpDuplexConnection is supposed to be an internal type, not part of the public API. The idea is that TcpConnectionFactory::createDuplexConnectionFromSocket is returning DuplexConnection base type and hiding the way how is the instance created.

TcpDuplexConnection is supposed to be an internal type, not part of the public API.

I'd argue that if it's being returned at all to the user's code and they have to use it, then it's part of the public API.  No point with bothering with passthrough functions.

To be clear what I meant:
TcpDuplexConnection is not returned to the application code. It is returned as DuplexConnection (the base type).
There is nothing interesting TcpDuplexConnection so I would rather keep it "invisible" and not allow application code to depend on this type.

Fair enough.  I didn't realize it was actually being returned as a unique_ptr<DuplexConnection>.


Dear Fredy,

sorry for bothering you but i am trying to get ID for my jablotron oasis 100, when i am using cd /usr/local/lib/node_modules/homebridge-jablotron its says that the directory is not exististing, i have followed your steps but somehow not able to get through, thx for your time and help jaromir

Hi,
This path depends on your OS, installation etc. You need to first know where your Homebridge package is installed. You can use npm list -g to list all your packages. This will result in a tree
/usr/local/lib
└─┬<EMAIL_ADDRESS>  ├──<EMAIL_ADDRESS>
Usually this is /usr/local/lib/node_modules on macOs and Linux.

perfect now i understood thank you
jaromir

Hello,
sorry to bother once again and hopefully for last time, i managed to find the folder but if i try to execute the node config-helper.js with the credentials it returns following
{
status: false,
error_status: 'not_logged_in',
checksum: '4e0a5f2250e13b14583a900483a182ab',
server_id: '5335036-1599633373',
client_id: null
}
Error: not_logged_in
at /usr/lib/node_modules/homebridge-jablotron/lib/jablotron-client.js:25:31
at IncomingMessage. (/usr/lib/node_modules/homebridge-jablotron/lib/jablotron-client.js:57:21)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1220:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
user and password are correct was trying to access the website jablonet.net and no issue there, alarm is disarmed, i am using raspberry pi3, would you have idea what i am doing wrong? thx jaromir


AC: loading web app creates registered service worker with workbox

WHEN I load my web application
THEN I should have a registered service worker using workbox

/client/webpack.config.js
// TODO: Add and configure workbox plugins for a service worker and manifest file.

done


Update Tests directory structure

Update Tests/ directory structure
Rename test files from *Spec to *Test
Add back iPad deployments for ShuffleExample (removed accidentally)
Deleted duplicate CONTRIBUTING.md file under Documentation/
Prefer UIKit imports over Foundation and CoreGraphics to avoid Swift PM build issues (from similar past experiences)
Fix some indentation issues

Codecov Report

Merging #135 (da2a5b3) into master (90adc0e) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head da2a5b3 differs from pull request most recent head 298e096. Consider uploading reports for the commit 298e096 to get more accurate results

@@          Coverage Diff           @@
##           master    #135   +/-   ##
======================================
  Coverage    84.8%   84.8%
======================================
  Files          13      13
  Lines         759     759
======================================
  Hits          644     644
  Misses        115     115

Impacted Files
Coverage Δ

...ses/SwipeCardStack/CardStackAnimationOptions.swift
100.0% <ø> (ø)

...fle/Classes/SwipeCardStack/CardStackAnimator.swift
0.0% <ø> (ø)

...Classes/SwipeCardStack/CardStackStateManager.swift
100.0% <ø> (ø)


Update README.md

Removing some extra words that were out-of-context.

Hey @bailon fixed this one in a previous merge, thanks for the catch though!


Chrome doesn't save username

Steps to Reproduce

implement a simple email/password form
input email and password
submit a form

Expected results:
Chrome saves both username (email) and password
Actual results::

Related issues:
#61301 (mentions password managers, my thinking is that these two have the same root cause)

Code sample
class EmailForm extends StatelessWidget {
  final VoidCallback onSubmitted;
  final TextEditingController emailCtrl;
  final TextEditingController passwordCtrl;

  const EmailForm({
    Key? key,
    required this.onSubmitted,
    required this.emailCtrl,
    required this.passwordCtrl,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return ConstrainedBox(
      constraints: const BoxConstraints(maxWidth: 400),
      child: Card(
        child: Padding(
          padding: const EdgeInsets.all(16),
          child: AutofillGroup(
            child: Form(
              child: Column(
                crossAxisAlignment: CrossAxisAlignment.stretch,
                mainAxisSize: MainAxisSize.min,
                children: [
                  TextField(
                    autofocus: true,
                    keyboardType: TextInputType.emailAddress,
                    autofillHints: const [
                      AutofillHints.email,
                      AutofillHints.username,
                      AutofillHints.newUsername,
                    ],
                    controller: emailCtrl,
                    decoration: const InputDecoration(
                      labelText: 'Email',
                    ),
                  ),
                  const SizedBox(height: 16),
                  TextField(
                    obscureText: true,
                    autofillHints: const [AutofillHints.password],
                    controller: passwordCtrl,
                    onSubmitted: (v) {
                      onSubmitted();
                    },
                    decoration: const InputDecoration(
                      labelText: 'Password',
                    ),
                  ),
                  const SizedBox(height: 16),
                  ElevatedButton(
                    onPressed: onSubmitted,
                    child: const Text('Sign in'),
                  ),
                ],
              ),
            ),
          ),
        ),
      ),
    );
  }
}

Logs
[✓] Flutter (Channel stable, 2.8.1, on macOS 12.0.1 21A559 darwin-x64, locale en-BY)
    • Flutter version 2.8.1 at /Users/lesnitsky/flutter-sdk
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (7 weeks ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/lesnitsky/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/lesnitsky/Library/Android/sdk
    • ANDROID_SDK_ROOT = /Users/lesnitsky/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] VS Code (version 1.63.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.34.0

[✓] Connected device (3 available)
    • Pixel 2 XL (mobile) • 711KPKN0917021 • android-arm64  • Android 11 (API 30)
    • macOS (desktop)     • macos          • darwin-x64     • macOS 12.0.1 21A559 darwin-x64
    • Chrome (web)        • chrome         • web-javascript • Google Chrome 97.0.4692.99

• No issues found!

@lesnitsky Hi,
I tried your code sample on latest master and noticed that the username is being saved properly, as below:

Channel master, 2.10.0-1.0.pre.402
Chrome (web)    • chrome • web-javascript • Google Chrome 97.0.4692.99

Duplicate #83265


bug in Multiply

First thx a lot for your great job which saved me a lot time
But I may found a big bug in your work
In your code:
def _augment_images(self, images, random_state, parents, hooks):
        input_dtypes = meta.copy_dtypes_for_restore(images)

        result = images
        nb_images = len(images)
        seeds = random_state.randint(0, 10**6, (nb_images,))
        for i in sm.xrange(nb_images):
            image = images[i].astype(np.float16)
            rs_image = ia.new_random_state(seeds[i])
            per_channel = self.per_channel.draw_sample(random_state=rs_image)
            if per_channel == 1:
                nb_channels = image.shape[2]
                samples = self.mul.draw_samples((nb_channels,), random_state=rs_image)
                for c, sample in enumerate(samples):
                    ia.do_assert(sample >= 0)
                    image[..., c] *= sample
                result[i] = image
            else:
                sample = self.mul.draw_sample(random_state=rs_image)
                ia.do_assert(sample >= 0)
                image *= sample

                result[i] = image

        # TODO make value range more flexible
        meta.clip_augmented_images_(result, 0, 255)
        meta.restore_augmented_images_dtypes_(result, input_dtypes)

You seem to cast a float16 into unit8 before 'clip_augmented_images' which usually will lead to overflow of the value
I think it should be:
 def _augment_images(self, images, random_state, parents, hooks):
        input_dtypes = meta.copy_dtypes_for_restore(images)

        result = images
        nb_images = len(images)
        seeds = random_state.randint(0, 10**6, (nb_images,))
        for i in sm.xrange(nb_images):
            image = images[i].astype(np.float16)
            rs_image = ia.new_random_state(seeds[i])
            per_channel = self.per_channel.draw_sample(random_state=rs_image)
            if per_channel == 1:
                nb_channels = image.shape[2]
                samples = self.mul.draw_samples((nb_channels,), random_state=rs_image)
                for c, sample in enumerate(samples):
                    ia.do_assert(sample >= 0)
                    image[..., c] *= sample
                result[i] = image
            else:
                sample = self.mul.draw_sample(random_state=rs_image)
                ia.do_assert(sample >= 0)
                image *= sample
                meta.clip_augmented_images_(image, 0, 255)
                result[i] = image

        # TODO make value range more flexible

        meta.restore_augmented_images_dtypes_(result, input_dtypes)

        return result

Am I right? :)

Do you mean that the clip() is too late as the result after multiply is put into the array in-place? Because at the end, the clipping happens before the dtype change.
Anways, I moved the stuff now into the loop, similar to what you suggested. Should prevent any possible overflow bugs. Btw, the latest version of the library uses float32 in Multiply... not sure why its float16 for you? Maybe an old version.


Error in XCDYoutubeVideoPlayerViewController in Swift

Hi,
I'm trying to make a controller when the user goes to this controller, player will be ready to play , when the user press the start button in the player. I added via cocoa pods the library and I add #import <XCDYouTubeKit/XCDYouTubeKit.h> in header of my swift project. But when I run it with the below code, I have an Error "Use of undeclared type 'XCDYouTubeVideoPlayerViewController' . Where is the problem??
var vidplayer : XCDYouTubeVideoPlayerViewController = XCDYoutubeVideoPlayerViewController(videoIdentifier: "6v2L2UGZJAM")         self.presentMoviePlayerViewControllerAnimated(vidplayer)         vidplayer.presentInView(uiView)         vidplayer.moviePlayer.play()

ok , I resolved it , I needed to add import import XCDYouTubeKit at the top of ViewController.swift

Glad you solved it!

i have the same problema in objective c I import #import <XCDYouTubeKit/XCDYouTubeKit.h>
without problems but i have error here  XCDYouTubeVideoPlayerViewController *videoPlayerViewController
Use of undeclared identifier 'videoPlayerViewController'
Use of undeclared identifier 'XCDYouTubeVideoPlayerViewController'
i dont know hot to resolve
cant you tell me som lead?
i added @import XCDYouTubeKit; and not work
Thanks


Update README.md

Fixed readme for the truly lazy like me.

Thanks for your laziness, but not too much since you still managed to open a PR!!!


Coverage drop comparison by overall coverage

Adds addition configuration options to facilitate calculating coverage drop by package or overall coverage.
negative_difference_by: Defines the scope for calculating a drop in code coverage. Possible values are overall and package . Evaluation by package is the default and represents the current behavior. When set to overall, the diff percentage is based on the total code coverage.
negative_difference_threshold: The percentage drop in coverage that should be allowed, in decimal form (0.05 == 5%). This sets the threshold of allowable variance in the code coverage between builds. The default is 0 (none).
Configure the number of retention days to apply to uploaded coverage assets.

Thanks!


feat: config panel

fixes #42
Added a wheel button to the upper-right corner of the viewport

Added configs in the sidenav. The conditional access to the configs are provided by #69

This is a potential starting point for @cedpeters
The sidenav can be as wide as the viewport if necessary.

@gis727 for the MVP of config I've been discussing with @cedpeters, I don't think we'll need the ability to link GitHub accounts, rather there will be a login button.
I think this is creating a good foundation 😄 could you try staging it with the branch @madelyndubuk has configured?


Cosmos DB Analytical Store Schema Reset Timeline

This Comment indicated that schema reset for the cosmos DB analytical store was on the roadmap for last year.  Is there any update on when it might become a reality?  Not being to update the schema has been causing me a lot of headaches as I am working with a bunch of dirty legacy data from an old version of an application that used numeric Ids instead of GUIDs, so all of the bad documents are defining the types in the analytical store.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: f947a93f-1c0c-0e6e-acae-0f27571019a2
Version Independent ID: b214f360-3057-010b-db69-53a489218065
Content: What is Azure Cosmos DB analytical store?
Content Source: articles/cosmos-db/analytical-store-introduction.md
Service: cosmos-db
GitHub Login: @Rodrigossz
Microsoft Alias: rosouz

It's in roadmap for the next few months but if you are in a hurry I suggest you to migrate to a new collection. #please-close

Another good option is Fabric Mirroring. Did you test it?


Devika completely frozen

Describe the bug
The problem I have is that I cannot interact with the devika UI at all and it seems as if Devika has not loaded models or projects in either.
When I try to for example open Devika settings, the UI goes into an infinite loading loop.
The backend and frontend behave normally.
To Reproduce
Steps to reproduce the behavior:

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

Expected behavior
I expected to be able to open the settings panel:

Screenshots

Desktop:

OS: Windows 11 64-bit
Browser Opera GX
Version 107.0.5045.79

Thanks for your help in advance

update all code

fetch the latest changes.