Accept deferrable kwarg for schema editor SQL

Using the current master and trying to run migrations on Django 3.1.4 results in the following error:
(0.102) QUERY = 'CREATE TABLE [wagtailcore_workflowtask] ([id] int IDENTITY (1, 1) NOT NULL PRIMARY KEY, [sort_order] int NULL, [task_id] int NOT NULL, [workflow_id] int NOT NULL)' - PARAMS = (); args=None
  Applying wagtailcore.0047_add_workflow_models...Traceback (most recent call last):
  File "./manage.py", line 17, in <module>
    execute_from_command_line(sys.argv)
[...]
  File "lib/python3.8/site-packages/django/db/migrations/operations/models.py", line 808, in database_forwards
    schema_editor.add_constraint(model, self.constraint)
  File "lib/python3.8/site-packages/django/db/backends/base/schema.py", line 360, in add_constraint
    sql = constraint.create_sql(model, self)
  File "lib/python3.8/site-packages/django/db/models/constraints.py", line 118, in create_sql
    return schema_editor._create_unique_sql(
TypeError: _create_unique_sql() got an unexpected keyword argument 'deferrable'

This PR adds the keyword arg to the function definition so it will be accepted.  It also adjusts the implementation of this function to match that of the BaseDatabaseSchemaEditor, checking for deferrable support and handling invalid situations.  The result is effectively the same, an empty string passed to the Statement() calls.

This patch helped me to resolve issue #63

Please rebase this against master and fix the failing tests on Django 2.2 and 3.0

Please rebase this against master and fix the failing tests on Django 2.2 and 3.0

@OskarPersson sure, can do. Will be into next week some time when I’ll have an environment to work on it

@OskarPersson sure, can do. Will be into next week some time when I’ll have an environment to work on it

Rebased the PR and tests are now passing on 2.2 and 3.0.  Had to add a version number check since the Statement constructor requires deferrable in 3.1 but fails with the kwarg present in earlier versions.

Rebased the PR and tests are now passing on 2.2 and 3.0.  Had to add a version number check since the Statement constructor requires deferrable in 3.1 but fails with the kwarg present in earlier versions.

Thanks!

Thanks!

Thanks it worked for me

Can you create a new build and update the package at https://pypi.org/project/django-mssql-backend/ ?
Until the package is updated https://github.com/ESSolutions/django-mssql-backend/issues/63 will remain out there in the wild. I just ran into it today.

@svbfromnl https://github.com/microsoft/mssql-django features this fix (just not backwards compatible for < Django 3.1 at the moment); installable via PyPI @ https://pypi.org/project/mssql-django/.
I've opened https://github.com/microsoft/mssql-django/pull/9 to re-add support for older Django.

@davidjb Thanks for this fix! However, the current version of mssql-django 1.0a5 does not contain the feature. Could you build the package with it?

@tlugo-deacero As best I can tell it does (https://github.com/microsoft/mssql-django/blob/dev/mssql/schema.py#L704-L706) -- just that it's not backwards compatible with < Django 3.1.  I switched my active project over to using mssql-django and my migrations and database ORM run okay without the errors seen here.
Note that I'm not a maintainer of that package, just a contributor -- https://github.com/microsoft/mssql-django/pull/9 (to add Django < 3.1 support as was added here in #86) isn't yet merged so feel free to add a comment or 👍 over there.

This issue is stille happening to me, Im using Django 3.1

@svbfromnl https://github.com/microsoft/mssql-django features this fix (just not backwards compatible for < Django 3.1 at the moment); installable via PyPI @ https://pypi.org/project/mssql-django/.
I've opened microsoft/mssql-django#9 to re-add support for older Django.

The last version is from 2016
The package looks a bit deprecated

@luizfelipevbll Last version of mssql-django is out from 19 Mar 2021 (https://pypi.org/project/mssql-django/#history) - it's being actively worked on and I use it with Django 3.1 at present.

@luizfelipevbll Last version of mssql-django is out from 19 Mar 2021 (https://pypi.org/project/mssql-django/#history) - it's being actively worked on and I use it with Django 3.1 at present.

Shit, I was looking in the wrong pkg django-mssql istead of mssql-django
Is mssql-django 1.0b1 stable for production?

@luizfelipevbll Not with that latest packaged version, no -- doesn't support Django 3.2 and has issues with certain DB/ORM operations (in particular you'd be interested in https://github.com/microsoft/mssql-django/pull/9 which re-adds on aspect of Django 3.1 support). The dev version has these fixes, plus those that fix https://github.com/microsoft/mssql-django/issues/25 for Django 3.2 support.  I'm not using Django 3.2 at this point, so can't comment more than I've read on the issue tracker.


Send quick data poll if "pending frame" bit was set in ack but no data frame received.

This commit makes the following changes:

A new callback DataPollTimeoutHandler is added to Mac::Receiver
class  which is used to indicate when a data request command (data
poll) timeout occurs, i.e., when the ack in response to a data
request command indicated a frame is pending but no frame was
received after the timeout interval.

Adds new logic in MeshForwarder to send quick data polls (up to
a fixed number of attempts) if a data poll timeout happens.

Codecov Report

Merging #1437 into master will decrease coverage by -0.06%.
The diff coverage is 92.85%.

@@            Coverage Diff             @@
##           master    #1437      +/-   ##
==========================================
- Coverage   70.52%   70.47%   -0.06%
==========================================
  Files         142      142
  Lines       19328    19341      +13
  Branches     2366     2369       +3
==========================================
- Hits        13632    13630       -2
- Misses       4804     4816      +12
- Partials      892      895       +3

Impacted Files
Coverage Δ

src/core/thread/mesh_forwarder.hpp
0% <ø> (ø)
:white_check_mark:

src/core/thread/mesh_forwarder.cpp
76.66% <100%> (+0.88%)
:white_check_mark:

src/core/mac/mac.cpp
79.02% <100%> (-0.09%)
:x:

src/core/mac/mac.hpp
94.11% <80%> (-5.89%)
:x:

src/core/mac/mac_whitelist.cpp
75% <0%> (-15.39%)
:x:

src/core/net/udp6.cpp
82% <0%> (-2%)
:x:

src/core/thread/network_data.cpp
87.54% <0%> (-1.14%)
:x:

src/core/api/thread_api.cpp
45.45% <0%> (-0.87%)
:x:

src/core/thread/mle_router.cpp
79.43% <0%> (-0.59%)
:x:

examples/platforms/posix/radio.c
78.15% <0%> (-0.43%)
:x:

... and 6 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 1eb61a4...c6d9607. Read the comment docs.

Re-based on master to fix the merge conflict...


Allow for URI-escaped strings in base64 src data

Some software produces HTML containing tags that specify their data in base64, but URI-escaped (which is a bad idea, but it nonetheless happens). That is to say, the '+' character is replaced by '%2B'.
The usual result is the exception 'binascii.Error: Incorrect padding' being thrown, or if the padding is correct by chance, the converted data is corrupted.

Coverage increased (+0.05%) to 49.823% when pulling 4d9028cb1378a1be1613fd7be0421d08c2e911f9 on tcbennun:master into 494870316a0af70450d4814500265fd2e0171fae on xhtml2pdf:master.

Cool, I uploaded a new release with this changes and other pull request.


nixos/shells-environment: also expose raw variable values

For non-POSIX shells that won't source /etc/set-environment
Description of changes

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)
[x] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Needs a bunch more work to be useful for nushell, so closing for now.


Game Patches

Allow administrators to submit patches for games. How would this work? Ideas:

Upon upload of a full archive, admins could set a checkbox of "this archive is a patch". This would analyze the primary archive and checksum all files, separating changed files into a patch archive. Original archive would be modified to include this patch. Would need a way to track versions of the game installed and handle that hierarchy.
Simple upload of a minimal archive. Prompt end users to update their game since they haven't downloaded the latest archive.
Force users to redownload the game. "Patching" would just serve as a notification that their game is out of date.

Closing in favor of project management: https://github.com/users/pathartl/projects/1/views/1?pane=issue&itemId=35771104


support subqueries

Problem

It would be nice to have support for some types of SQL subqueries or joins.
Of course you can fetch all data and filter/map locally, but leveraging the DB's query optimizer seems like the preferable approach.
Example (select start of running todos):
select *, (select "start" from "Time" where "todoId" = "id" and "end" is null order by "start" desc limit 1) from "Todo";

model Todo {
  id        Int      @id @default(autoincrement())
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
  text      String
  done      Boolean  @default(false)
  time      Int      @default(0)
  times     Time[]
}

model Time {
  todoId Int
  todo   Todo      @relation(fields: [todoId], references: [id])
  start  DateTime  @default(now())
  end    DateTime?
  @@id([todoId, start])
}

Suggested solution

Something like the following with implicit limit 1 and where-conjunct for the relation:
db.todo.findMany({ select_include: {
  times: {
    select: { start: true },
    where: { end: null },
    orderBy: { start: 'desc' },
  }
}});

Alternatively some generic sub-select without the need for a relation.
I don't know how hard it is to type correctly, but seems like the returned payload types could just be &ed together.
Alternatives

Get all times:
const todos = await db.todo.findMany({ include: { times: { orderBy: { start: 'desc' } } } });
// for each todo:
  const time = todo.times[0];
  const start = time?.end === null ? time.start : null;
  // ...

Better (same as limit 1? performance?), but still have to get result via times:
const todos = await db.todo.findMany({ include: {
  times: {
    select: { start: true },
    where: { end: null },
    orderBy: { start: 'desc' },
    take: 1,
  }
}});
// for each todo:
  const time = todo.times[0];
  const start = time?.start;
  // ...

Is there any possibility this feature will be implemented any time soon?
We are considering migrating to Prisma, but without this, it's not possible for us.
At least for a start would help to be able to use raw SQL for subqueries in conditions, such as:

db.todo.findMany({ where: {
  id: {
    in: prisma.$subQueryRaw("SELECT todoId FROM Time WHERE start > $1", start)
  }
}});

Any plan/update on this? This is a much needed feature.

I would also like to see this on insert queries. Assuming my aggregate is correct, then something like:
prisma.childObject.create({
  data: {
     value,
     parentId,
     somethingDependent: prisma.childObject.aggregate({
        where: {
            parentId,
         },
       _max: {
            somethingDependent: true
        }
    }) ?? 0
  }
})


LSTM: Training: failed to write checkpoint

 lstmtraining -U ~/tesstutorial/khm/khm.unicharset \
  --script_dir ../langdata  --debug_interval 0  \
 --continue_from ~/tesstutorial/khmlayer1_from_khm/khm.lstm  \
 --append_index 3 --net_spec '[Lbx256 O1c105]'  \
 --model_output ~/tesstutorial/khmlayer1_from_khm/khm
  --train_listfile ~/tesstutorial/khm/khm.training_files.txt \
  --target_error_rate 0.01

Loaded file /home/shree/tesstutorial/khmlayer1_from_khm/khm.lstm, unpacking...
Warning: LSTMTrainer deserialized an LSTMRecognizer!
Continuing from /home/shree/tesstutorial/khmlayer1_from_khm/khm.lstm
Appending a new network to an old one!!Setting unichar properties
Setting properties for script Common
Setting properties for script Latin
Setting properties for script Khmer
Warning: given outputs 105 not equal to unicharset of 155.
Num outputs,weights in serial:
  Lbx256:512, 657408
  Fc155:155, 79515
Total weights = 736923
Built network:[1,0,0,1[C5,5Ft16]Mp3,3Lfys64Lbx256Fc155] from request [Lbx256 O1c105]
Training parameters:
  Debug interval = 0, weights = 0.1, learning rate = 0.0001, momentum=0.9
Loaded 538/538 pages (1-538) of document /home/shree/tesstutorial/khm/khm.Leelawadee_UI_Bold.exp0.lstmf
Loaded 392/392 pages (1-392) of document /home/shree/tesstutorial/khm/khm.Noto_Sans_Khmer_UI_Bold.exp0.lstmf
Loaded 497/497 pages (1-497) of document /home/shree/tesstutorial/khm/khm.Noto_Serif_Khmer.exp0.lstmf
Loaded 396/396 pages (1-396) of document /home/shree/tesstutorial/khm/khm.Noto_Sans_Khmer_Bold.exp0.lstmf
Loaded 535/535 pages (1-535) of document /home/shree/tesstutorial/khm/khm.Leelawadee_UI.exp0.lstmf
Loaded 389/389 pages (1-389) of document /home/shree/tesstutorial/khm/khm.Noto_Sans_Khmer.exp0.lstmf
Loaded 402/402 pages (1-402) of document /home/shree/tesstutorial/khm/khm.Noto_Sans_Khmer_UI.exp0.lstmf
Loaded 491/491 pages (1-491) of document /home/shree/tesstutorial/khm/khm.Noto_Serif_Khmer_Bold.exp0.lstmf
At iteration 100/100/100, Mean rms=5.299%, delta=54.358%, char train=110.625%, word train=100%, skip ratio=0%,  New worst char error = 110.625 failed to write checkpoint.

2 Percent improvement time=1299, best error was 100 @ 0
At iteration 1299/1300/1301, Mean rms=4.903%, delta=47.404%, char train=98.596%, word train=99.748%, skip ratio=0.1%,  New best char error = 98.596 failed to write checkpoint.

note: using  --append_index 3 --net_spec '[Lbx256 O1c105]'  \

2 Percent improvement time=1090, best error was 20.094 @ 6275
At iteration 7365/7400/7408, Mean rms=1.661%, delta=5.067%, char train=18.026%, word train=64.079%, skip ratio=0%,  New best char error = 18.026 failed to write best m
odel:/home/shree/tesstutorial/khmlayer1_from_khm/khm18.026_7365.lstm failed to write checkpoint.

For some reason /home/shree/tesstutorial/khmlayer1_from_khm/ did not have appropriate write priviledge causing the error.

Hello @Shreeshrii
Do you know how to set learning rate by hand??

@yoyoshuang I don't think tesseract allows for that from command line. There maybe some config variables, but I have no idea about it.

failed to write checkpoint

The output directory needs to be created before running the lstmtraining command.
If directory does not exist, you will get this error - see eg. below
2 Percent improvement time=63, best error was 100 @ 0
At iteration 63/100/100, Mean rms=0.718%, delta=2.212%, char train=5.292%, word train=17.556%, skip ratio=0%,  New best char error = 5.292 Transitioned to stage 1 failed
 to write best model:../tesstutorial/san_deva/san_deva5.292_63.checkpoint failed to write checkpoint.


Test data load script after new folder structure implement & update readme

Test the load_data.py script with the new folder structure, and update the readme with data import steps.

The load_data.py scripts correctly loads data using the new folder structure. The readme.md has been updated.


How to set titile CDATA

I notice there is one method called content to generate description with CDATA quoted. However, I want to put the title into CDATA, can you do that?

e.g.
<item>
      <title><![CDATA[article title]]></title>
      <link>"article url"</link>
      <pubDate>publication date</pubDate>
</item>

This is not supported at the moment. But pull requests are welcome.


Better error when accessing column accessor properties before init

Pull Request Description (replace this text with your description)
Closes #572

Adds a better warning message when trying to access properties on Column Accessor before initialization.

I think it could be useful to handle the uninitialized schema case on the __repr__ as well. Currently if you do series.ww before initializing it errors with TypeError: 'NoneType' object is not subscriptable as well. Not sure if a better error message or some other handling is best, though

I think it could be useful to handle the uninitialized schema case on the __repr__ as well. Currently if you do series.ww before initializing it errors with TypeError: 'NoneType' object is not subscriptable as well. Not sure if a better error message or some other handling is best, though

I think this case should be handled by default without changes to the code, but it is probably better to explicitly catch this in the code. Since __repr__ uses self.logical_type, it will still raise the error if not initialized. I added a test case to cover this.


Added show password feature in login page

Related Issue
Issue solved: #302

Information about the related issue

Closes: #
Describe the changes you've made

Type of change
What sort of change have you made:

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Code style update (formatting, local variables)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update.
[ ] This change requires a documentation update

How Has This Been Tested?

Checklist

[ ] My code follows the guidelines of this project.
[ ] I have performed a self-review of my own code.
[ ] I have commented on my code, particularly wherever it was hard to understand.
[ ] I have made corresponding changes to the documentation.
[ ] My changes generate no new warnings.
[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] Any dependent changes have been merged and published in downstream modules.

Screenshots (if applicable)

Original
Updated

original screenshot
updated screenshot

Code of Conduct

[x] I agree to follow this project's Code of Conduct

@Deepu178 Hey, can you please review it

@SubhamB2003 I would recommend you to install the dependencies using yarn package manager not npm. Looking for the changes

Hey, can I also add the preloading screen in there and you can increase the level here?

@SubhamB2003 just remove the yarn.lock file and commit the changes

@SubhamB2003 just remove the yarn.lock file and commit the changes

Done

Thanks @SubhamB2003 for making the contribution to the project. let's solve another issue !

Thanks @SubhamB2003 for making the contribution to the project. let's solve another issue !

Hey, please the labels
Another thing can I add the preloading screen to this project?

@SubhamB2003  You can create an issue for this if already not created. I'll see it if not assigned to anyone then I'll assign you.

@SubhamB2003 You can create an issue for this if already not created. I'll see it if not assigned to anyone then I'll assign you.

ok


Add descriptive info under General up top

Thanks! Reminder to publish one of your GitHub org memberships to avoid @cfdreddbot's complaints.


PRO-862 db module

@boutell I plan to have a whole reference page for environment variables like APOS_MONGODB_LOG_LEVEL and APOS_MONGODB_URI. I don't think they belong in module reference pages since they aren't used there. They related to the module and come from it, but I don't think it's the most logical place for newbies to look for that info.

If it's only consulted in the one module I personally think that indicates
it should be included in that module's reference, in addition to anywhere
else you feel it makes sense.
On Wed, Sep 8, 2021 at 2:31 PM Alex Bea @.***> wrote:

@boutell https://github.com/boutell I plan to have a whole reference
page for environment variables like APOS_MONGODB_LOG_LEVEL and
APOS_MONGODB_URI. I don't think they belong in module reference pages since
they aren't used there. They related to the module and come from it, but I
don't think it's the most logical place for newbies to look for that info.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/apostrophecms/a3-docs/pull/134#issuecomment-915473375,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAH27IANOPRGOKTSBJAOC3UA6TY3ANCNFSM5DTC3HYQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--
THOMAS BOUTELL | CHIEF TECHNOLOGY OFFICER
APOSTROPHECMS | apostrophecms.com | he/him/his

I stole the example from MongoDB docs to be safe.


Cannot get browser console.log statements

Howdy!
I'm testing out the example shown here: https://github.com/juliemr/protractor-demo/blob/master/howtos/browserlog/spec.js but I can see only the result of console.error | warning statements, not from console.log
Is this only me or there's some problem?
I'm using: "protractor": "1.8.0"
The output that I get:
[launcher] Running 1 instances of WebDriver
log: []
slow calculator
  should pass a normal test - pass
log: [ { level: { value: 1000, name: 'SEVERE' },
    message: 'console-api 240:62 error from test',
    timestamp:<PHONE_NUMBER>491,
    type: '' } ]
  should fail when the console has errors - FAILURE EXPECTED - pass
log: []
  should pass when the console has non-error logs - pass

Finished in 6.489 seconds
3 tests, 1 assertion, 0 failures

[launcher] 0 instance(s) of WebDriver still running
[launcher] chrome #1 passed

With the following code:
describe('slow calculator', function() {
  var firstNum = element(by.model('first'));
  var secondNum = element(by.model('second'));
  var goButton = element(by.id('gobutton'));
  var result = element(by.binding('latest'));

  beforeEach(function() {
    browser.get('http://juliemr.github.io/protractor-demo/');
  });

  afterEach(function() {
    browser.manage().logs().get('browser').then(function(browserLog) {
      // expect(browserLog.length).toEqual(0);
      // Uncomment to actually see the log.
      console.log('log: ' + require('util').inspect(browserLog, {colors: true}));
    });
  });

  it('should pass a normal test', function() {
    firstNum.sendKeys('1');
    secondNum.sendKeys('2');
    goButton.click();
    expect(result.getText()).toEqual('3');
  });

  it('should fail when the console has errors - FAILURE EXPECTED', function() {
    browser.executeScript(function() {console.error('error from test')});
  });

  it('should pass when the console has non-error logs', function() {
    browser.executeScript(function() {console.log('hi!')});
  })
});

That spec specifically says console.log is not captured: https://github.com/juliemr/protractor-demo/blob/master/howtos/browserlog/spec.js#L30

@hankduan oh, I misinterpreted that O_O Maybe I should rest for today...
P.S. Is there someway to read the browser console.log() statements then?

Not that I'm aware of. You should ask this on stackoverflow to see if anyone has other solutions.


Just use https://github.com/alextrv/enhanced-h264ify

https://github.com/alextrv/enhanced-h264ify
This one seems to be dead

Is that official or just your assumption?

I meant to say it seems to be

So what exactly got improved at the other location,does it worth switching?
So far i'm happy,to be honest with what is offered here.

It is more customizable, say if your device supports hardware VP8 you could enable that. Though that repo does seem dead too, I might end up making my own fork to try and address some of the suggestions.

You good with Java? Not relevant to this here but i really need some help making a simple UserScript,but it shure need somebody skillfull.

Java? No. JavaScript? Barely, I can only do some simple things to existing code

Well,doesn't hurt to ask 😉  Thanks though 👍

@d]

Is that official or just your assumption?

https://github.com/erkserkserks/h264ify/pull/77#issuecomment-859947060

But @alextrv no update linked twice these repo...

@krystian3w we need another maintainer ugh


Generalized ajax, allows json etc

Similar in spirit to the PR of @mwotton, this generalizes ajax with a ToAjax class. Instances allow the request body to be a list of pairs (as in the original code), or a String, a Text, or an aeson Object. A suitable default content type is chosen depending on the type of the data; it can be overridden in AjaxSettings. The response can be a string or an object, and is returned as an aeson Value. Obviously this does introduce a dependency on aeson, but since ghcjs-base depends on aeson I don't see a problem with this.
I've made a yesod-based test framework for ghcjs-jquery ajax calls: https://github.com/TobyGoodwin/ghcjs-jquery-test (It's fairly minimal so far; I'm happy to accept PRs, and of course track any changes that go into ghcjs-jquery.)

In the first version of this PR, the only HTTP method allowed was POST. This was obviously just an oversight. :-)
That's now fixed in f4d9651. This also adds an instance for () when you have no data to send in the ajax request. There's a slightly ugly defaulting method (better ideas anyone?), so that GET is chosen by default when the input is (), and POST is the default for other data. These can of course be overridden in the usual way.
I now have an application (the old "todo" standby) working with ajax calls to a REST API. (The API was originally developed for an Ember implementation, so it's at least vaguely realistic.) Sample ajax calls from this application look reasonable to me:
retrieve = do
  r <- ajax ajaxUrl () def
  ...

update t = do
  r <- ajax (ajaxUrlTodo t) (toJSON t) def { asMethod = PUT }
  ...

looks pretty good to me, but I don't like the defaulting. Is it that
onerous to just pass GET/POST/PUT? it's very little extra code in the
normal case, and has the benefit of simplicity - if someone really really
wants to not have to specify, it'd be simpler for them to write an ajaxGet
function anyway.
mark
On Sun, Mar 15, 2015 at 4:51 AM Toby Goodwin<EMAIL_ADDRESS>wrote:

In the first version of this PR, the only HTTP method allowed was POST.
This was obviously just an oversight. :-)
That's now fixed in f4d9651
https://github.com/ghcjs/ghcjs-jquery/commit/f4d96514d70567a99ff7e3d38e9abeaad5e4785e.
This also adds an instance for () when you have no data to send in the
ajax request. There's a slightly ugly defaulting method (better ideas
anyone?), so that GET is chosen by default when the input is (), and POST
is the default for other data. These can of course be overridden in the
usual way.
I now have an application (the old "todo" standby) working with ajax calls
to a REST API. (The API was originally developed for an Ember
implementation, so it's at least vaguely realistic.) Sample ajax calls from
this application look reasonable to me:
retrieve = do
r <- ajax ajaxUrl () def
...
update t = do
r <- ajax (ajaxUrlTodo t) (toJSON t) def { asMethod = PUT }
...
—
Reply to this email directly or view it on GitHub
https://github.com/ghcjs/ghcjs-jquery/pull/5#issuecomment-80735396.

Yes, you're right. (I did say it was ugly!) That's tidied up now. I've made GET the default method, as it was before (and is in jQuery, and in any case is the "safest" default). Also, we no longer need the ToJSRef instance for AjaxSettings, nor the ToJSString instance for Method--show works fine (this isn't considered poor style, is it?)
And then peering at the diff, I noticed that I was ignoring asIfModified and asCache (and using the silly name type, when any jQuery we care about understands method just as well). So the second commit sorts those out.
Hmm... should we allow HEAD as a method?


Fanzy Zones snap to grid startup problem

Microsoft PowerToys version
.71
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
FancyZones
Steps to reproduce
I snap two windows in place (side by side) according to the grid I created. After a restart, the window on the right side will not stay in that position. When it opens up, it is automatically moved up and to the left, leaving a port of my desktop wallpaper visible on the bottom and right side of my open windows. I am then forced to re-snap that window in order for it to properly take up 50% of my screen.
✔ Expected Behavior
I was hoping that after the restart, the two windows would remain in place, where they had been previously "snapped".
❌ Actual Behavior
Despite running version .71 I continue to have the issue described in Issue #24114 (though that discussion indicates the issue was resolved in version .68). I set up the zone layout in zone editor, and snap my windows into place (two windows side by side with each taking up 50% of my single ultrawide screen). After the restart, when I open up those windows, the window on the left of the screen is in place. The window on the right side of the screen is out of position, and I can see a portion of the desktop wallpaper below the window and to the right of the window. If I then re-snap the window to the zone, it will take up the full 50% of the screen on the right-hand side.
Please let me know if further info is needed.
Other Software
No response

I believe that I have the same issue, except my Zones overlap.  I attached 2 screenshots showing the gaps and extensions.  For me it consistently occurs whenever I restart certain applications.The affected applications do not take up the whole zone.

Affected applications don't extend all the way to the bottom or outside of the Zones and they extend beyond middle of the Zones.
The top of the Zones snap correctly.
Using the keyboard shortcut to move the windows corrects the issue.
Once corrected the issue doesn't return until the app is restarted.
It seems to affect some but not all Microsoft applications including Outlook (not including the "new interface"), OneNote, Teams, and Edge are the apps where I see it occur.
It affects 2 different machines with different monitors that I work on.  One monitor is UW, the other is 16x9.
The issue has existed across multiple versions including 0.73 but I've only attempted to report it now as it's been an annoyance, but nothing more.
The issue surived reinstalling PowerToys, repairing Edge, and both repair options for Office.
If it matters I use the Microsoft Apps for Enterprise install of Office.

As I mentioned, it's a minor annoyance, but it's very consistent.  I've been hoping that a routine update would fix it, but that's not been the case.

I had also commented in the previous issue https://github.com/microsoft/PowerToys/issues/24114 which got closed, but I don't believe it was ever resolved despite being closed. My experience is that both FancyZones and Windows 11 Snap Window do this, and only with certain apps as mentioned above. My app list is:
Microsoft Edge
Google Chrome

Here are a couple of screenshots to show what's happening.

In order to get the windows to go back to the snapped position, I have to re-snap after each restart.

I've observed this behavior with Visual Studio and Firefox. Disabling "Move newly created windows to their last known zone" seem to resolve it, but with the drawback of losing that function.

I've observed this behavior with Visual Studio and Firefox. Disabling "Move newly created windows to their last known zone" seem to resolve it, but with the drawback of losing that function.
Edit: Debug report. PowerToysReport_2024-02-07-09-34-20.zip

Unfortunately I already have that disabled and still no go :(

same here, that setting is disabled but did not resolve the issue for me

After running with "Move newly created windows to their last known zone" off for a while now, I instead have other windows not opening in the correct place. Damned if you do, damned if you don't. 🙃


Fix bug where Panel would throw when headerItems = null

Hoist P/R Checklist
Pull request authors: Review and check off the below. Items that do not apply can also be
checked off to indicate they have been considered. If unclear if a step is relevant, please leave
unchecked and note in comments.

[x] Caught up with develop branch as of last change.
[x] Added CHANGELOG entry, or determined not required.
[x] Reviewed for breaking changes, added breaking-change label + CHANGELOG if so.
[x] Updated doc comments / prop-types, or determined not required.
[x] Reviewed and tested on Mobile, or determined not required.
[x] Created Toolbox branch / PR, or determined not required.

If your change is still a WIP, please use the "Create draft pull request" option in the split
button below to indicate it is not ready yet for a final review.

Pull request reviewers: when merging this P/R, please consider using a squash commit to
collapse multiple intermediate commits into a single commit representing the overall feature
change. This helps keep the commit log clean and easy to scan across releases. PRs containing a
single commit should be rebased when possible.

closes #3045

👍 thanks for this too

👍 thanks for this too

Going for 3 before lunch!


Create ?

Add MFH01's file

?
On Fri, Jul 9, 2021 at 6:18 PM github-learning-lab[bot] <
@.***> wrote:

@.**[bot] requested changes on this pull request.
I was expecting your file to be named _posts/0000-01-02-MFH01.md.
Let's edit this pull request to fix both of these issues.
⌨ Activity: Fixing the file name in your pull request

Click the Files Changed tab
https://github.com/MFH01/github-slideshow/pull/3/files in this pull
request.
Verify that the only file edited is named _posts/0000-01-02-MFH01.md
.
If the file is improperly named, or not in a proper location, use
the edit function to correct it.
Above the contents of the file, select all text in the field that
contains the filename and delete it.
Continue pressing your backspace key to also delete any directory
names that exist.
Type the proper filename:

_posts/0000-01-02-MFH01.md

Scroll to the bottom and enter a commit message and commit in the Commit
Changes section.

[image: gif of changing file name in UI]
https://user-images.githubusercontent.com/9906718/112817649-f4ac1a80-9082-11eb-972f-4a6609857b20.gif
Note: You can find directions on how to move files while editing in our
documentation
https://docs.github.com/en/github/managing-files-in-a-repository/moving-a-file-to-a-new-location
.
If you would like assistance troubleshooting the issue you are
encountering, create a post on the GitHub Community
https://github.community/c/education/github-learning-lab/34/l/latest
board. You might also want to search for your issue to see if other people
have resolved it in the past.
I'll respond below when I detect a commit on this branch.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/MFH01/github-slideshow/pull/3#pullrequestreview-703423220,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUZFYWFLHK6QPFCKCCZFDODTW5YTXANCNFSM5ACXKV4A
.

I'm going backwards here?
On Fri, Jul 9, 2021 at 6:21 PM MFH @.***> wrote:

?
On Fri, Jul 9, 2021 at 6:18 PM github-learning-lab[bot] <
@.***> wrote:

@.**[bot] requested changes on this pull request.
I was expecting your file to be named _posts/0000-01-02-MFH01.md.
Let's edit this pull request to fix both of these issues.
⌨ Activity: Fixing the file name in your pull request

Click the Files Changed tab
https://github.com/MFH01/github-slideshow/pull/3/files in this pull
request.
Verify that the only file edited is named
_posts/0000-01-02-MFH01.md.
If the file is improperly named, or not in a proper location, use
the edit function to correct it.
Above the contents of the file, select all text in the field that
contains the filename and delete it.
Continue pressing your backspace key to also delete any directory
names that exist.
Type the proper filename:

_posts/0000-01-02-MFH01.md

Scroll to the bottom and enter a commit message and commit in the Commit
Changes section.

[image: gif of changing file name in UI]
https://user-images.githubusercontent.com/9906718/112817649-f4ac1a80-9082-11eb-972f-4a6609857b20.gif
Note: You can find directions on how to move files while editing in
our documentation
https://docs.github.com/en/github/managing-files-in-a-repository/moving-a-file-to-a-new-location
.
If you would like assistance troubleshooting the issue you are
encountering, create a post on the GitHub Community
https://github.community/c/education/github-learning-lab/34/l/latest
board. You might also want to search for your issue to see if other people
have resolved it in the past.
I'll respond below when I detect a commit on this branch.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/MFH01/github-slideshow/pull/3#pullrequestreview-703423220,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUZFYWFLHK6QPFCKCCZFDODTW5YTXANCNFSM5ACXKV4A
.


[FEATURE] Add Data Privacy Statement to Website

Description
The data privacy statement (Datenschutzerklärung) is a mandatory part of the website.
Tasks

[x] Create data privacy statement
[x] Add data privacy statement to KoALa website

Data privacy statement added and deployed


"Invalid syntax name." but gives me the link with working highlighting

Uploading a document e.g. with the go syntax gives the following result:
Invalid syntax name.
https://beta.qbin.io/froth-autopilot-06g5

It's still uploaded and actually has syntax highlighting.

Fixed syntax name recognition and stop request on invalid syntax name


Music tool doesn't display the correct octave

Music tool doesn't display the correct octave when loading up. Set it to the middle.

This was fixed


Missing Danish translations for Show Category

Describe the bug
The Show Category string is not displayed on Danish locale
To Reproduce
Steps to reproduce the behavior:
Change locale to dansk
Open application
Open Settings
Open Category Order
Select a category
Expected behavior
Translated string for show category is displayed
Actual Behavior
No string is displayed
Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

Device: Nexus 10
OS: Android 10

Confirm fixed as of 1.4


Update discogs extension

Description

Screencast

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Screenshot added! thanks a lot for the review.

I added inverted extension icon so it works in dark mode too


[Codelab] Update digit classifier Android app to target API level 29

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information

Android Studio version: 3.5

Describe the problem
The Android app package available from https://codelabs.developers.google.com/codelabs/digit-classifier-tflite/index.html?index=..%2F..index#2 has a targetSdkVersion of "28". This should be updated to "29".
Provide the exact sequence of commands / steps that you executed before running into the problem

Download codelab ZIP file
Open the Android Studio project: lite/codelabs/digit_classifier/android/start/
View the project's app/build.gradle file.

We're not taking advantage of any API 29 features, and 28 is the standard targetSdkVersion for the Play Store.


Fix the example ff deploy command to specify ethereum

Signed-off-by: Matthew Whitehead<EMAIL_ADDRESS>

Sorry completely missed your suggest change until today @nguyer Should all be good now.


Memory Optimization

Thank you for this project. It's really great. I'm using it in my Never Split the Party game.
Unfortunately, it's doing a ton of unnecessary memory allocation. Something like 30k of memory for each path find in my usage. With several enemies updating their paths often it was often allocating 150k per frame!
Here's how I optimized it.
Change Point from a class to a struct. Value types are allocated on stack instead of heap. They also do better in arrays since there's no reference operation.
In PathFinding._ImpFindPath make openSet and closedSet static and just clear them instead of recreating them. That makes them non-thread safe but I'm not doing anything fancy with threads I don't think.
Changed Grid.GetNeighbours to be an IEnumerable.
`
///
/// Get all the neighbors of a given tile in the grid.
///
/// Node to get neighbors for.
/// List of node neighbors.
public IEnumerable GetNeighbours(Node node, Pathfinding.DistanceType distanceType)
{
int x = 0, y = 0;
        switch (distanceType)
        {
            case Pathfinding.DistanceType.Manhattan:
                y = 0;
                for (x = -1; x <= 1; ++x)
                {
                    var neighbor = AddNodeNeighbour(x, y, node);
                    if (neighbor != null)
                        yield return neighbor;
                }

                x = 0;
                for (y = -1; y <= 1; ++y)
                {
                    var neighbor = AddNodeNeighbour(x, y, node);
                    if (neighbor != null)
                        yield return neighbor;
                }
                break;

            case Pathfinding.DistanceType.Euclidean:
                for (x = -1; x <= 1; x++)
                {
                    for (y = -1; y <= 1; y++)
                    {
                        var neighbor = AddNodeNeighbour(x, y, node);
                        if (neighbor != null)
                            yield return neighbor;
                    }
                }
                break;
        }
    }

    /// <summary>
    /// Adds the node neighbour.
    /// </summary>
    /// <returns><c>true</c>, if node neighbour was added, <c>false</c> otherwise.</returns>
    /// <param name="x">The x coordinate.</param>
    /// <param name="y">The y coordinate.</param>
    /// <param name="node">Node.</param>
    /// <param name="neighbours">Neighbours.</param>
    Node AddNodeNeighbour(int x, int y, Node node)
    {
        if (x == 0 && y == 0)
            return null;

        int checkX = node.gridX + x;
        int checkY = node.gridY + y;

        if (checkX >= 0 && checkX < gridSizeX && checkY >= 0 && checkY < gridSizeY)
        {
            return nodes[checkX, checkY];
        }

        return null;
    }

`
I might convert _ImpFindPath to be an IEnumerable as well.

Whoops. Looks like I'm actually using the code from here: https://github.com/RonenNess/UnityUtils/tree/master/Controls/PathFinding/2dTileBasedPathFinding
Which explains the mystery point class.

make openSet and closedSet static and just clear them instead of recreating them

But wouldn't that then create a race condition if multiple agents request a path at the same time?

make openSet and closedSet static and just clear them instead of recreating them

But wouldn't that then create a race condition if multiple agents request a path at the same time?

Maybe, but in Unity the user game code is all single threaded and .net has protections against collections being modified. It would throw instead of freeze.


chore: ignore git logs during new app scaffolding

Previously, running npm init vite-plugin-ssr@latest would include a few logs from git that were cluttering the scaffolder's output. This change prevents git from logging to the user's terminal when initializing the new git repository and creating the first commit.
See #478 for full details.

I think we should add a comment
I think we should whitelist the error instead of ignoring all errors

Or, optionally, we can wrap the whole git command calls in a try {} catch {} and swallow the error while showing a warning that git couldn't have been initialized.

I think we should add a comment

Yep, agreed. 👍  I can add one.

whitelist the error

I'm not quite sure what you mean by this. Is the suggestion to just ignore the log on the commit command? Or something else?
I'm not actually sure if there is an error to catch on this, or if git is just logging. I can take a look more closely at that, but my hunch is that it is just a log since the commit command successfully creates a commit.

Right now, the PR ignores all stderr logs. Instead how about we only ignore fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.?

I played with this a bit more, and trying to blocklist specific errors from logging ends up feeling a bit hacky. In this particular case, git is logging an error to stderr, but the process still succeeds so there is not anything to catch. In order to do the blocklist behavior, there were a few options I found:

We could exec instead of execSync in order to capture the stderr output, but that just returns a single string that we need to do some replacing on. Replacing and formatting the errors with newlines and such is a bit awkward.
We could use spawn to run the task, and process individual errors as they come in a stderr callback. That would involve reworking the existing code a bit more, which feels a bit overkill in this case.

As a middle ground, I've kept all git initialization commands as execSync calls , but wrapped them in try/catch. In the event that one of those commands does actually fail and exit, execSync should still throw and we will catch and log the message. If the git initialization process fails, we can also remove the possibly-bad .git directory.
This route feels the most straightforward to me, and also aligns with how other similar tools are handling this type of process. Here's the relevant code from create-react-app and create-next-app)
Let me know if you have any other thoughts!

FYI https://github.com/brillout/vite-plugin-ssr/commit/3e7750bab5e22fc00e4d88ff4291962f753733ea.


Todo: more tests

~Need to test that we get access to the same module across multiple @from invocations.~ (#11)
Need to test loading from packages, not just the REPL. (It works, just need to figure out a sensible way to test it.)
~Need to test "nested from", i.e. that we observe correct behaviour when @from-ing files which themselves use @from.~ (#11)
~Need to test dotted lookup, i.e. the variants of from ... import A.B: C~ (#11)

@Roger-luo I think once we have tests for packages we'll be in a position to go back to 4600 and say we have a spec + implementation. (And ask for any help/thoughts on resolving the __imports__ business.)

@Roger-luo I think once we have tests for packages we'll be in a position to go back to 4600 and say we have a spec + implementation. (And ask for any help/thoughts on resolving the __imports__ business.)


Enhance progress bar

Handling progress bar this way resolves issue #21 and probably enhance performance a little bit by avoiding getBoundingClientRect.

Thanks @krzysztof-grzybek 👍, merged!


fix go build command in README

go build command in README may need updating.
looks to be introduced in #19

Good catch, thanks for the PR :)


input-sys: add more FreeBSD bindings

Similar to https://github.com/Smithay/drm-rs/pull/172. Same as Linux except for va_list definition.

Fixed by https://github.com/Smithay/input.rs/pull/67


Tag acception option

#32 Default behaviour: add a tag by tapping the return key.
This option will let you add tags by tapping comma key or space key.

This is great, let's make it happen!

👍 can not wait for release with this option

This has been released https://github.com/whitesmith/WSTagsField/releases/tag/3.1.0


Feature/first fixes after publication

For this PR, I've learned how to automatically deploy tagged main updates as PyPI releases.
I've also tested the deployment of documentation to the splineops.github.io website.
Any other relatively simple fixes after first publication come here.

Could not test everything, especially the automatic publish to PyPi. The other things are ok to merge. Few questions / remarks about the automatic publishing to PyPi.
How did you test this feature? Is it through the testrepo (https://github.com/splineops/testrepo)?
Is this automatic publishing ideal? I like the concept but it also means that whenever someone pushes a v tag to main it will trigger an automatic publish to PyPi, correct?
Is there a way to review this behavior? We probably need a step-by-step guide in the README to publish a new version to PyPi. Could you draft something in the PR?

Actually the only "automation" here is the step from tagging the main branch with a new version, into having it published on PyPI. This step is just running the line:
hatch publish --user __token__ --password $PYPI_TOKEN
on .github/publish-to-pypi.yml
Otherwise, it's about running this line manually every time a PyPI release is needed. As a new release is needed every time there's a push to main + new tagging, I find it quite convenient.
It is a similar automation to that of the documentation building, using Github Actions.
Yes, I have tested it in testrepo. Though, as with Github Actions on the server, it can't be 100% tested locally or in different repos, as there are very specific variables such as in this case the $PYPI_TOKEN which is specific to this repository (you can find it in the Settings of the repo). Though, I'm confident it will work!

Thanks for the additional information.
My main question remains: what does prevent an erroneous tagging in the main branch that will trigger a new release directly submitted to PyPi?
Technically it should be "safe" as we require pull requests, reviews and tests before merging to main. Not sure there exist a way to be safe even when publishing manually. Is the strategy you selected used by other "known" projects?
For me whatever the strategy selected, we need some README info to publish to PyPi. Are you ok to draft something?
Thanks!

You got me here with this question:

My main question remains: what does prevent an erroneous tagging in the main branch that will trigger a new release directly submitted to PyPi?

Honestly, I have no idea of what an erroneous tagging could be! Could you show me an example?
As for other known solutions, I have never seen an automated mechanism so far. It seems everyone might be doing the PyPI release by hand.
What I propose: let's put aside the automated PyPI publishing for the moment, ie remove the file
.github/workflows/publish-to-pypi.yml and accept the rest of this PR, which is more important (as it involves the documentation deployment and .binder virtual machine). We'll address the PyPI automation at later stage.
Do you agree, and do you want me to do this file removing?

For me the risk is that I can personally tag any commit on main, say with v1.0.0 and this would trigger a publication on PyPi. This is somehow unsafe in my opinion.
I just googled what is the standard pipeline and maybe this what should be deployed:
https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing/building-and-testing-python#publishing-to-pypi
So if you want to get that PR quickly through, it's ok to remove the automatic publishing to PyPi. I will open an issue about that so you can build on that.
Sound good?

Perfect, I just removed the publish-to-pypi.yml.
Please check it out and accept the PR.

All good for me - PR accepted. You can proceed with merging and publishing


Update index.html

Old Report

New report with change
ref: https://getbootstrap.com/docs/4.6/components/navbar/

/azp run

Thank you for the contribution. Looks like a good improvement.


misc.

Current dependencies on/for this PR:

main

PR #651   👈

This stack of pull requests is managed by Graphite.


Support PHP8.3

Describe the feature you would like to see
Problem 1
- Root composer.json requires kreait/laravel-firebase ^5.2 -> satisfiable by kreait/laravel-firebase[5.2.0, 5.3.0, 5.4.0].
- kreait/laravel-firebase[5.2.0, ..., 5.4.0] require php ~8.1.0 || ~8.2.0 -> your php version (8.3.0) does not satisfy that requirement.

🚀  PHP 8.3 is supported since https://github.com/kreait/laravel-firebase/releases/tag/5.5.0


Implement 'Mark this node temporarily offline' for host slave

Do not provision VM slaves when the host slave is offline. Put all VM slaves offline when the host slave is put offline. Update cloud slaves offline reason with the host slave offline reason.

Thanks a lot! Merged.


Non Nullable Reference Types support seems lacking or broken

Version : 6.0.2
I figured I would try using NonNullableReferenceTypes
Given the classes:
    public class Parameters
    {
        public int RequiredInt { get; set; }

        public int? OptionalInt { get; set; }

        public DateTime RequiredDate { get; set; }

        public DateTime? OptionalDate { get; set; }

        public InnerParameters RequiredRef { get; set; } = new InnerParameters();

        public InnerParameters? OptionalRef { get; set; }
    }

    public class InnerParameters
    {
        public string RequiredString { get; set; } = "Initialized";
    }

And a controller method:
[HttpPost()]
public IAsyncResult DoThings([FromBody]Parameters input) { return this.Ok(); }

I get the following output:
    "schemas": {
        "InnerParameters": {
            "type": "object",
            "properties": {
                "requiredString": {
                    "type": "string"
                }
            },
            "additionalProperties": false
        },
        "Parameters": {
            "type": "object",
            "properties": {
                "requiredInt": {
                    "type": "integer",
                    "format": "int32"
                },
                "optionalInt": {
                    "type": "integer",
                    "format": "int32"
                },
                "requiredDate": {
                    "type": "string",
                    "format": "date-time"
                },
                "optionalDate": {
                    "type": "string",
                    "format": "date-time"
                },
                "requiredRef": {
                    "$ref": "#/components/schemas/InnerParameters"
                },
                "optionalRef": {
                    "$ref": "#/components/schemas/InnerParameters"
                }
            },
            "additionalProperties": false
        }
    }

If i turn off <nullable>enable</nullable> from my csproj file. It starts treating Nullable etc correctly.
But as long as its toggled on, nothing i do with configuration of UseNonNullableReferenceTypes does any thing.
Also, UseNonNullableReferenceTypes I would expect my optionalref to be marked with "nullable": true in the json file.
Am I missing something or is this basically broken?

Yep this looks to be broken alright - looking into it ...

Firstly, let me just state this is def beta functionality at the moment, hence why it's opt-in and not documented.
Regarding optionalRef, it cannot be marked with "nullable": true because it's a reference to a schema as opposed to an actual schema. If you want to add additional metadata (like nullable) to reference schemas, then you'll need to enable the UseAllOfToExtendReferenceSchemas setting.
That should resolve your question around the optionalRef property. However, the optionalInt property is an inline schema definition and therefore should be marked with "nullable": true". This looks to be a genuine bug whereby value types were not being handled correctly within a nullable context. I just pushed ec60046f57aaea0d4d6a4af4de26c29214502277 which should fix this. Could you please pull down the latest 6.0.3 preview build from myget.org and try it out?

I am aware its a beta feature :)
I would however expect that <nullable>enable</nullable>   should leave my Nullable as it was without the nullable context.
With the preview 6.0.3 version i get the desired behaviour. Awesome.


Where's the MOSI/label.csv ?

I find the dataset in http://immortal.multicomp.cs.cmu.edu/raw_datasets/CMU_MOSI.zip. But can't find the label.csv，why? Or It's produced by program?  If yes, where's  the program?

I met this problem when using https://github.com/thuiar/Self-MM

@ShituanHu
Hi, the label.csv is produced by ours. We integrate that in our public features. You can download them according to Datasets and Pre-trained Berts. Best wishes!

@ShituanHu We have updated instructions in https://github.com/thuiar/Self-MM


Support loading pgm files as Drawings

The pgm format is commonly used for occupancy data. It would be good for the site editor to be able to load these as drawings to spare users from the need to convert to png.

Upstream support was missing, opened https://github.com/bevyengine/bevy/pull/8601, if it gets merged the support can be added when a new version of bevy is released and we upgrade


[No Merge] Late safe mode startup after election and before state transition

Introduced suspended startup for availability mode and the diagnostic end points to query and interact with suspended servers.


Exception: Not all required packages are installed. Please install spacy

hey @tmbo  can you tell how can i solve this problem.i installed spacy,rasa-nlu,scikit and all the reuirements. but i found an error during i run my python file trainer.py ,here it is:
from rasa_nlu.converters import load_data
from rasa_nlu.config import RasaNLUConfig
from rasa_nlu.model import Trainer

training_data = load_data('C:\Users\ABC\Desktop\project\rasa_nlu-master\rasa_nlu-master\data\examples\rasa\demo-rasa.json')
trainer = Trainer(RasaNLUConfig("C:\Users\ABC\Desktop\project\rasa_nlu-master\rasa_nlu-master\config_spacy.json"))
trainer.train(training_data)
model_directory = trainer.persist('./models/') # Returns the directory the model is stored in
and the error is:
C:\Users\ABC\Desktop\project>python trainer.py
Traceback (most recent call last):
File "trainer.py", line 6, in
trainer = Trainer(RasaNLUConfig("C:\Users\ABC\Desktop\project\rasa_nlu-master\rasa_nlu-master\config_spacy.json"))
File "C:\Users\ABC\Miniconda3\lib\site-packages\rasa_nlu\model.py", line 125, in init
components.validate_requirements(config.pipeline)
File "C:\Users\ABC\Miniconda3\lib\site-packages\rasa_nlu\components.py", line 103, in validate_requirements
" ".join(failed_imports)))
Exception: Not all required packages are installed. Please install spacy

What version of spacy do you have? I had the same issue before updating to > 1.8.

i have 1.8.2 @PHLF

i think it is the latest version.

And which rasa version? Latest too? How did you install spacy? Are you using python virtual environments?

@PHLF rasa latest version and i installed spacy using conda beacuse i have windows and pip had some issues  during installation of scikit-learn . python virtual environment ,no not yet .

the reason of using conda is rasa and u know in rasa  for run the trainer model we required scikit-learn.

now i installed python virtual environment.

My point of asking you if you were using a python virtual environment was not because I wanted you to do so, but I was wondering what would make spaCy not visible from RASA if it is installed on your system. Anyway, did you use conda to create a virtual environment? Reinstall all RASA's dependencies in your virtual environment and give it another try. I'm afraid I won't be able to help you much with your issue as I don't use Windows and I never used Conda before 😐

yes i installed virtual environment using conda .and i insstalled rasa dependencies ..but it is not working.

@ashuags2 were you able to get all of this working?

No i can not ....solve this problem..
On 27 Jun 2017 10:30 p.m., "Caleb M. Keller"<EMAIL_ADDRESS>wrote:

@ashuags2 https://github.com/ashuags2 were you able to get all of this
working?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/RasaHQ/rasa_nlu/issues/412#issuecomment-311420708,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Abmlg1FPtmmhx3Kn_9ZBRZ6j4pK2cDM3ks5sITUSgaJpZM4NuIlF
.

Did you try to install Spacy following this page?

@PHLF yes , i used this page.

@ashuags2 do you still have issues with this? What happens if you open the python interactive shell within your environment and try to import spacy?

I am also facing this issue in ubuntu

What happens if you try to run import spacy in your environments python shell?

It is working fine in python shell, I am able to import and use spacy there.

There is not a lot I can do to help you fix this. The problem is that spacy isn't installed properly. Most likely you installed it in the wrong environment (e.g. in your local python instead of anaconda or in a different virtual environment).

@avi0gaur were you able to get this running?

@ashuags2 were you able to get this running as well?


Outline Client downloads blocked: how to create manual connection?

In some places in the world, the Outline Clients are not available for download because the URLs are filtered.
In that case, how can I manually create a connection to a Outline server on Mac, iOS, or Android? Or how can I add connection details to other shadowsocks clients so I can connect those clients to a Outline server?

I guess you could try a different Shadowsocks client but the real solution to this issue is requested in #66.

So is there a direct dmg file for mac ???

@daniel-fuelx : please see the workaround in https://github.com/Jigsaw-Code/outline-client/issues/148


dwalk: document --text option

Apparently dwalk has an undocumented option --text to generate a human readable output file. We should document this.

Related: https://github.com/hpc/mpifileutils/issues/129


Convert flutter ios project to swift 5.0 by default autmatically

we currently have to do it manually and it's not efficient considering it would be much better if enabled by default, also make the flutter project atleast xcode 12 compatible by default not the old version 8

The Swift version in the template has been 5.0 for the last three years (https://github.com/flutter/flutter/pull/41882, https://github.com/flutter/flutter/pull/44324). Could you elaborate on what you want to be using 5 that isn't?

also make the flutter project atleast xcode 12 compatible by default not the old version 8

What problem are you trying to solve with this proposal? (Note that it's currently 9, not 8, in the template).

i have xcode 13 installed on macbook 2013 pro, while archiving the app, it says would you like to switch to swift 5.

If you have a project that predates the update to the template, you'll need to update it yourself; it's not something we can do automatically without risking breaking products. Any new projects are already using the modern default. (Note that this is exactly the same behavior you'd get making a project in Xcode itself, where the defaults are set when you create the project.)
Closing as there's no further work on the Flutter side here.


progress bar duration update

Hi. I am playing HLS streaming with continuously generated ts segments files. The progress bar updates the duration of the HLS streaming up to now but when my current playback position is playing past parts (like 1 minute ago), the progress bar is not updating duration even tho it seems it internally keeps adding segment files and duration. Is there a way to make it keep updating even tho my current playback position is not the most recent?
or if I want to make 'Go to LIVE' button, which makes me go back to the updated most recent position, may I ask some idea on it?
Thank you.

Does following work:
await player.seek(player.state.duration);

I've tried it but it takes me to the progress bar's most recent position, not to the actual most recent position after additional segments are added while I was in past positions.

Can I request an update on this feature?


Relay: Store transfer announcements

Develop storage mechanism for storing transfer announcements.

In the current version, the transfer announcements are stored in a HashMap on the relay and are only available as long as the relay server is running.
We should clarify whether we want to do this with a database instead.


Trying to get a node that doesn't exist yields a confusing error message about missing parents

Addressed in https://github.com/jmcbroome/BTE/commit/fc0f4b36a2736b2651fcd7c616152f732ae529fd
Included in next bugfix patch


KAFKA-13875 Adjusted the output the topic describe output to include TopicID & se…

…gment.bytes
More detailed description of your change,
if necessary. The PR title and PR message become
the squashed commit message, so use a separate
comment to ping reviewers.
Summary of testing strategy (including rationale)
for the feature or bug fix. Unit and/or integration
tests are expected for any behaviour change and
system tests should be considered for larger changes.
Committer Checklist (excluded from commit message)

[X] Verify design and implementation
[X] Verify test coverage and CI build status
[X] Verify documentation (including upgrade notes)

There are no code changes in this PR. It's an update to the quickstart.html file so I think these tests failures can be ignored. This is only my second PR so please let me know if I have to do something different.

It's OK to add topicId in the docs, the segment.bytes property is not intended to be printed, this seems to be a small bug: KAFKA-13718

@dengziming I went ahead and updated the PR to remove the segment.bytes property from the sample output. I was going back and forth on if it should be removed since what the user will see vs. what we display would be different but given that this is a known bug & (at least according to the linked Jira) should be an noob friendly bug I think it makes sense to remove it as well. If I have time, I will try and take a crack at KAFKA-13718.

Yes, there is no perfect solution for this currently, I think we should first fix KAFKA-13718 and decide whether we should always print segment.bytes, and then we can merge this PR.
According to the comments of KAFKA-13718, this bug has been around for a long time, so we'd better make it bug-compatible.

My understanding of the statement "so we'd better make it [the PR] bug-compatible" means we should add back in the segment.bytes for the time being while the we in the community figure out what we would like to do with KAFKA-13718. Is that correct?
I also took a look at KAFKA-13718 but I'm unsure of where the numbers we're seeing are propagating from & how to adjust defaults. I'll reach out in the Jira about it but just sharing as a heads up.

@dengziming I went and submitted a PR for KAFKA-13718 which has since been merged into trunk. The PR (12246) keeps the kafka-topics.sh command from printing the segment.bytes values when describing the topic. Because of this, when end users now follow the quickstart, what they see and what they get should be the same from as the docs. Thanks so much.

@showuon You were correct. I went and added the "Configs:" column to the quickstart output. Great catch!


Only warn once before uploading a raw file

The buffering issue is understood (and also maybe unnecessary) after the first warning, so gate it behind a global and make it once-per-session.

Codecov Report
Patch coverage: 100.00% and project coverage change: +0.04% :tada:

Comparison is base (e2d188c) 91.95% compared to head (886bd08) 92.00%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #78      +/-   ##
==========================================
+ Coverage   91.95%   92.00%   +0.04%
==========================================
  Files           7        7
  Lines         348      350       +2
  Branches       54       54
==========================================
+ Hits          320      322       +2
  Misses         13       13
  Partials       15       15

Files Changed
Coverage Δ

src/lakefs_spec/spec.py
90.53% <100.00%> (+0.07%)
:arrow_up:

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


Improving error handling

Its quite common for someone in my team to run into an error like
err SyntaxError: Unexpected token N in JSON at position 0
    at parse (<anonymous>)
    at dedynamofy (/Users/Ro/www/passphere/lambda-api/node_modules/dynamoose/lib/Attribute.js:430:14)
 ...

In this case it comes from using JSON.parse on NaN (when it was expecting a number).
It would be great to throw a more useful error such as
err ModelError {
  name: 'ModelError',
  message: 'Attribute "total" of type "N" has an invalid value of "NaN"' }

I got this by wrapping dedynamofy in Attribute with a try catch.
There might be a better place to catch these errors, I didn't dive to deep.
Are you interested in a PR for this? Where would you like to catch the error and is ModelError the correct error to throw?

@ro-savage Sorry for the delay in anyone getting back to you. PR would be great for this. I personally can't think of a better error than ModelError. It could be a problem with the data as well tho. Maybe ParseError?? I'm not sure if I have major opinions either way. Anything more similar to the proposed new error would be better than the current.
In my opinion that sounds like the correct place to wrap it with a try catch. But I haven't looked through it quite enough to know for sure. From my knowledge of this package that sounds correct tho.
Looking forward to a PR!

@ro-savage Maybe this is also similar to #182

@fishcharlie - Looks great Charlie. Exactly what is needed.
Got caught by this again today, searching through trying to find what field is throwing the error. This would save heaps of time.


Add Phi-3 chat template

I'd like to fine tune the new Phi-3 model added yesterday, but it looks like the chat template file hasn't been updated to support it

@molbal this example doesn't show how to use the chat template with the Phi-3 model and the https://github.com/unslothai/unsloth/blob/main/unsloth/chat_templates.py file doesn't include it

I don't know that unfortunately.. Maybe its somewhere in here? https://github.com/unslothai/unsloth/pull/397 Or someone on the Discord server could help

in my tries it used it thus https://github.com/CrispStrobe/unsloth/blob/main/Phi3_ORPO_Unsloth.ipynb but now you can adapt to the non-llamafied model ofc

Any update @danielhanchen ?

@djannot Oh sorry! I actually added it in already - sorry guys forgot to update you all!

# Phi-3
phi3_template = \
    "{{ bos_token }}"\
    "{% for message in messages %}"\
        "{{'<|' + message['role'] + '|>\n' + message['content'] + '<|end|>\n'}}"\
    "{% endfor %}"\
    "{% if add_generation_prompt %}"\
        "{{ '<|assistant|>\n' }}"\
    "{% endif %}"
phi3_template_eos_token = "<|end|>"
CHAT_TEMPLATES["phi-3"] = (phi3_template, phi3_template_eos_token,)

Thanks !

I suppose it also works for Phi3 medium?


Ability to tranaslate prev and next buttons

Awesome plugin.
It would be even cooler if we could have ability to define or at least translate previous and next buttons.
Right now I' m using something like this:
jQuery(window).load(function () {
    jQuery('.tablesaw-nav-btn.left').attr('title', 'Prev');
    jQuery('.tablesaw-nav-btn.right').attr('title', 'Next');
});

You’re right, we need to expose the i18n text better.

See https://github.com/filamentgroup/tablesaw#internationalization-i18n
Available when 3.0.2 is released!


Add new resource: Project

Hi,
Would be really good, if someone can add resource - Project  (cloudstack_project) for better experience in using CS provider. It's important resource because almost always new environment in CS starting from this step.
Thank you for reviewing this issue.

Hi @3guboff! Adding support for this would require creating a new resource, but I'm currently not working with CloudStack anymore. So I'm mostly maintaining and improving the resources that already exist (in my own time) as I don't have time to work on new resources in my current job.
But If someone in the community wants to add this, I'm of course open to PRs 😉

Ok @svanharmelen, I'm started development new resource - project and it's almost done.

I'm going to close this issue as I'm about to archive this repository. Development of this provider has been moved to the Apache Foundation. Please find the new home for this provider here: https://github.com/apache/cloudstack-terraform-provider


Update gradle plugin (Dev)

Update Gradle plugin

Please make sure to test this on device too, and once in deviceRelease or deviceForTestersRelease, before approving.
Ping @ralfgehrer

Please make sure to test this on device too, and once in deviceRelease or deviceForTestersRelease, before approving.
Ping @ralfgehrer

I tested deviceForTestersRelease on a Pixel3a and it looks :ok_hand:, will merge after CI passes.

I tested deviceForTestersRelease on a Pixel3a and it looks :ok_hand:, will merge after CI passes.


fixed typo

What's in this PR?
Please provide a description of what is contained in this Pull Request.
TODOs
If there are some outstanding items you would like to complete before this PR is reviewed/merged, note them here. If not, feel free to remove this section.

[ ] TODO 1

Housekeeping Items

[ ] Did you accept and sign the Contributor License Agreement
[ ] Do you agree to the Open Source Code of Conduct?

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


Submit dependency graph to GitHub after publish

What's changed?
Added a workflow that will submit a dependency graph to the GitHub API after publish.
As per

https://github.com/gradle/actions/blob/main/dependency-submission/README.md
https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/exploring-the-dependencies-of-a-repository

What's your motivation?
Want to get insight into dependents, to surface who all are using OpenRewrite on public projects.

https://github.com/openrewrite/rewrite-docs/issues/131

Additionally this will allow us to explore dependencies and vulnerabilities from within GitHub on the Security and Insights tabs.
Anyone you would like to review specifically?
@natedanner or @sjungling, as you both frequently go through the vulnerability reports, which are also analyzed with

Figured adding it here would have the most impact; beyond this I think it might only make sense on the OSS Maven/Gradle plugins, as they are separately depended upon, or at most rewrite-recipe-bom as a catch all there.
Because of the permission needed to submit to the API I added this to a separate workflow that's only triggered after a release, not on any pull request, or attached to any other workflow.

Ok that seems to have worked: https://github.com/openrewrite/rewrite/network/dependencies
Now wait to see if we similarly see any dependents show up; which might take a while for this new version.

Also added to

https://github.com/openrewrite/rewrite-recipe-bom/pull/25
https://github.com/openrewrite/rewrite-gradle-plugin/commit/49361f7afc2150c7ce7719738ef8f77d6e77efab


When creating a service, it searches other namespaces...

[kind/bug]

What versions of software are you using?

To reproduce:
~/nodejs-ex  master ✗                                                                                238d ◒  ⍉
▶ odo project set foobar
Switched to project : foobar

~/nodejs-ex  master ✗                                                                                238d ◒
▶ odo service create mysql-persistent -p foobar
 ✗  serviceinstances.servicecatalog.k8s.io is forbidden: User "developer" cannot list serviceinstances.servicecatalog.k8s.io in the namespace "foo": no RBAC policy matched

Actual behavior
Searching in the namespace foo even though we're on the foobar project
Expected behavior
Not to error out / use foobar
Any logs, error output, etc?
▶ odo service create mysql-persistent -p foobar -v 4
I0611 11:51:44.336030    5452 preference.go:116] The configFile is /home/wikus/.odo/config.yaml
I0611 11:51:44.336072    5452 occlient.go:454] Trying to connect to server <IP_ADDRESS>:8443
I0611 11:51:44.336407    5452 occlient.go:461] Server https://<IP_ADDRESS>:8443 is up
I0611 11:51:44.345488    5452 occlient.go:384] isLoggedIn err:  <nil>
 output: "developer"
I0611 11:51:44.345507    5452 context.go:342] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: context
I0611 11:51:44.345513    5452 context.go:342] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: context
I0611 11:51:44.346223    5452 context.go:342] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: output
I0611 11:51:44.346231    5452 context.go:342] Ignoring error as it usually means flag wasn't set: flag accessed but not defined: component
I0611 11:51:44.358199    5452 create.go:192] Plan default was automatically selected since it's the only one available for service mysql-persistent
I0611 11:51:44.358890    5452 cmdutils.go:26] Error:
unable to get the service list: unable to list services: unable to list ServiceInstances: serviceinstances.servicecatalog.k8s.io is forbidden: User "developer" cannot list serviceinstances.servicecatalog.k8s.io in the namespace "foo": no RBAC policy matched
 ✗  serviceinstances.servicecatalog.k8s.io is forbidden: User "developer" cannot list serviceinstances.servicecatalog.k8s.io in the namespace "foo": no RBAC policy matched

Nevermind.
This issue was caused by my configuration being messed up. Showed foo namespace still.
Closing.


Deduplicate multiple copies of parse_docker_imagestring

Rather than maintaining two slightly-out-of-sync copies of the same function, just pull in one of the copies into the other module's namespace.
Also provide some code cleanups, e.g., using raw-strings for regex.

Thanks @0xDEC0DE. Looks like the changes have broken some consumers of the parser that use wildcards and are failing your bad-chars check.
You can run tests locally with: make test-unit to see the failures. I think the failure is showing a place where that function should probably not be used since the place it's failing is in some wildcard checking code, so perhaps a flag for 'allow-wildcards' or splitting into another function that is used in the other location but doesn't do a strict check is a better solution. The usage currently expects the wildcards to be parsed correctly based on the structure, which is a slightly different check.

Thanks, I was able to get the tests passing, a new revision has been force-pushed.


Question: Best Place to Integrate Ambient Scope State/Metadata in Logging

So I've been digging around for quite a bit trying to determine the best approach to migrating functionality we've currently implemented against our own logging abstraction to Microsoft.Extensions.Logging and I'm unsure where the best place to gather up ambient state data might be.
We have a variety of AsyncLocal based diagnostic types which we use to for filtering, querying, and correlating our log data, especially across multiple services or parallelized work streams. For example, we have a DiagnosticCorrelationContext which is effectively a stack of chained IDs that can be used to identify the hierarchy of causation in commonly reused code. We also apply categories and establish Key->Value ambient properties which makes it possible to query things like UI events by the document ID of the tab they originate from.
All of our context objects tend to have access to the logger of the type that created it, but from what I've read, BeginScope only applies to the type that its created on (so an ILogger<MyObject> will only maintain scope on events logged within MyObject). If that's the case it would defeat the purpose of the metadata being ambient across the logging of all nested calls (Correlation needs to travel from class to class across assemblies and even service boundaries).
Our existing abstraction supports an IDictionary<string, string> of properties on a per log event basis which is not from ambient context, so that's the state we're passing to TState when translating calls from our logger to the MS abstraction; we will eventually phase out our abstraction altogether as we manage to weave dependency injection and the MS abstraction deeper into our codebase. Just as an additional note on this detail, we're translating our IDictionary<string, string> to an IDictionary<string, object> as that seems to be the most supported TState type across providers (I had to dig through source code and articles to find this; it sure would be nice if there was better documentation/definition to how structured logging should be treated). We had considered gathering up our ambient state and adding it into this dictionary, but then it would only apply to events logged through our abstraction and so we would never be able to fully migrate and any logging from other libraries would not correlate with ours.
Currently I'm considering the possibility of making an implementation of ILoggerFactory that acts as a decorator over the default implementation (LoggerFactory.CreateLogger is not virtual so I can't inherit and override) which then wraps the created ILogger in a decorator that calls BeginScope passing the ambient state before calling the internal log state. If this is the only approach then I wonder what the most appropriate way would be for me to do this only if IncludeScopes is set to true, though I'm honestly hoping there's a better way (all of our context objects are, themselves, disposable and I'd rather not allocate and dispose on every call to every log statement). I saw an IExternalScopeProvider type, but it's not particularly well documented; is this a route I should pursue instead?
Thanks kindly for any insight you might be able to provide.
EDIT: Typo/Formatting

So digging through source code, I'm getting the impression that the BeginScope method does in fact typically use AsyncLocal and so might serve the needs we're looking for? Perhaps we will want our context objects to simply wrap the call to BeginScope and Dispose. I'm seeing that EventSourceLogger prefers IDictionary<string, string> whereas NLog and Serilog appear to prefer IDictionary<string, object>. We'll definitely be using NLog in our initial conversion since there's some additional points of integration we've added there, though we may eventually be able to phase out those implementation-specific bits in favor of something more based around this MS abstraction.
Perhaps we would be better off using Message Templates? I wish there was an easy way to identify what the expected behaviors could be across Console, EventLog, EventSource, etc. Perhaps implementing 3rd parties like NLog and Serilog would benefit from some sort of common state extraction extensions or something that could understand basic object reflection, IDictionary<string, string> and IDictionary<string, object> or something? The EventSourceLogger seems to have the most robust implementation/configuration I've seen so far, though I don't see any signs that its documented anywhere; it might serve as a solid foundation/example for 3rd parties to use as a source of de facto standard or baseline example? Just some ideas, trying to make this a little less difficult to evaluate for the next people to come along.


Closes #45 and bump to 3.0.7

Closes #45 and bump to 3.0.7

Published to npm now as well.

Thanks!


Add support for lifetime dependence mangling

@swift-ci test

@swift-ci test

@swift-ci test

@atrick To represent lifetime dependence between parameters, I would imagine we will need a new mangling prefix followed by param indices or name references. This can be additive to the current mangling.

@swift-ci smoke test


My new message

And else one picture for your collection, from me. Plus my mini - motivational speech in welcome_wall.md

And else one picture for your collection, from me. Plus my mini - motivational speech in welcome_wall.md


unittests

Important to have unit testing of the software
this will facilitate the implementation of new database adapters

We started to test some parts of code on 4549bc293ef9288fdbcdef6b185c39b73094a7cb. Also, 4cbd42f27ccd6ec58ff5da88d886039d387f8560 has been improved test coverage. Leave this issue open until we got a better coverage (53% now).


NTP Black Rectangle.

OS: Windows XP SP3.
Supermium 126 R3 latest x32. (clean "setup" and profile)
On the "New Tab Page", move the mouse pointer to about half an inch below the omnibox.
A black rectangle will appear at a fixed position.

Is GPU acceleration (#ignore-gpu-blocklist) enabled and which GPU is in use? I am unable to reproduce this bug.

Tested again on three different pc's with XP SP3.
No GDI mode or HW Accell, all different hardware.
Clean extracted "setup" and unmodified new profile.
Went back as far as Supermium 122.0.6261.152 (R6)
Same glitch, so this is my issue if you can not reproduce.
Will try to track this down on my end and report.
Closing this as it seems to be a local issue.

Some test results.
Tested again on three different pc's with XP SP3.
No GDI mode or HW Accell, all different hardware.
Clean extracted "setup" and unmodified new profile.
Went back as far as Supermium 122.0.6261.152 (R6)
Only happens on the "New Tab" page, not on the "New Incognito Tab".
Copied clean v126 R3 x32 relevant setup and profile folders to a laptop with a clean win 11 install, same issue.
So this is not an XP SP3 glitch or related to something modified in my OS settings.
Ran out of options to resolve this.

Someone else has reported this same issue on reddit.
No reactions though...
https://www.reddit.com/r/chrome/comments/1fua7sr/random_square_appears_and_i_have_no_clue_why/

Reported on support.google.
https://support.google.com/chrome/thread/299773380?sjid=1520707220153011714-EU
https://support.google.com/chrome/thread/299462259/random-gray-square-appears-and-goes-away-on-its-own-after-2-3-seconds?hl=en
https://issues.chromium.org/issues/370690260

This is not a browser issue but something on Google's end.
With disabled internet there is no dark rectangle square.
On start Supermium with one empty new tab, six connections are made to chrome.cloudflare-dns.com.
That is where it gets the information to display certain items on the new tab page.

On first start of Supermium data is collected from Google to display certain items on the new tab page.
Something in that code (css or js) is wrong.
Closing issue.


Take Maven coords instead of YAML

... well, maybe not instead, both support something like
dependencies:
  'javax.servlet:javax.servlet-api:jar:4.0.0'

Instead of
dependencies:
  javax.servlet:
    javax.servlet-api:
      version: "4.0.0"
      lang: java

supporting both might be nice, but honestly, our main use case is scala, so how would you do  the scala? The issue in scala is that the scala version needs to be appended onto the end of the artifact id.
We can figure something out.
Wouldn't your example be: javax.servlet:javax.servlet-api:4.0.0 do we need the :jar there?

I was copy-pasting a bunch of coords from https://mvnrepository.com/, where you can request the UI to print the coords in various ways.
For projects with dozens of dependencies this might be an extra hurdle.
I don't know much about maven coords, I admit.
I'd expect the :jar to be added by default by Maven itself.

jar is an optional packaging type. For others it's mandatory. There's also classifier and I think something else.

Looked at this again, indeed I was missing a :jar somewhere in there.
My plan is to leverage mvn dependency:tree to print all dependencies in a pom.xml file and any submodules, and then more or less copy-paste the result into the YAML file that bazel-deps consumes.
@johnynek do you have a preference of how this looks like? do I allow strings instead of MavenGroup objects? or should I create a separate section (dependencies-coords?) in the YAML file?
Also, if you can give me code pointers of how to do this it'll save me a lot of time fighting with Scala :)

have you looked at this:
https://github.com/johnynek/bazel-deps/blob/master/src/scala/com/github/johnynek/bazel_deps/maven/Tool.scala#L326
which can generate WORKSPACES and BUILDs from poms?

it would be nice to document that more and maybe unify it with the main tool, but it seemed separate enough.


model name llama2-70b-4096 defined in Getting_to_know_Llama.ipynb doesn't exist in groq anymore

System Info
PyTorch version: 2.3.1+cu118
Is debug build: False
CUDA used to build PyTorch: 11.8
ROCM used to build PyTorch: N/A
OS: Microsoft Windows 11 Enterprise
GCC version: (x86_64-posix-seh, Built by strawberryperl.com project) 8.3.0
Clang version: Could not collect
CMake version: Could not collect
Libc version: N/A
Information

[x] The official example scripts
[ ] My own modified scripts

🐛 Describe the bug
model name llama2-70b-4096 defined in Getting_to_know_Llama.ipynb doesn't exist in groq anymore
Error logs
NotFoundError: Error code: 404 - {'error': {'message': 'The model llama2-70b-4096 does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'code': 'model_not_found'}}

Expected behavior
model llama2-70b-4096 invoked from groq should be succeeded.

Thanks for creating the issue. Will update the notebook soon. For now, if you need to compare Llama 2 with Llama 3, you may use Replicate's models, and this is an example of using Replicate.


New Simple Flight Mode Assignment bug

With the new "Simple Flight Mode assignment" its very easy to assign modes to switch positions. However, PX4 doesn´t accept all choices. Example shown: Although Altitude Control is chosen and showing up below, it doesn´t appear in the headline and the copter doesn´t change to Altitude, it stays in Position Control.

Further: Users are confused, that chosen Stabilize is shown as Manual in the headline.

The view in QGC (left arrow) is simulating flight mode selection based on channel values so you can test your settings. The firmware may in turn reject the mode change (the right arrow) so the toolbar may not change abd keep in sync. So these may not always be in sync.

True and QGC doesn´t report the change as well as the Copter doesn´t. So I´m convinced that the mode did not change.

QGC will only report flight modes changes by talking if the flight mode actually changes. It won't report simulated changes in Flight Mode config screen. As far as I can tell from the discussion things are working as they are supposed to. It may be confusing, but I'm not sure how else to show the user whether there flight mode settings are working other than simulating flight mode changes.

Don, QGC is working correct. The New assignment doesn´t.

Oh, sorry.

Further: Users are confused, that chosen Stabilize is shown as Manual in the headline.

This is a QGC problem. It's trying to get fancy by changing naming based in multi-rotor/fixed wing. I don' think that will really work though. Can you put in a QGC issue for that.

Yes,thx.

Matching QGC issue: https://github.com/mavlink/qgroundcontrol/issues/2969


Unhandled exception

Trying to run this program gives me this error.
Specs:
I don't know if secure boot is enabled (no option in BIOS, but this is a 2010 laptop)
UEFI
Windows 8.1 x64
4GB RAM
Intel core i5 540M
Dell latitude e6410

The current installer supports only recent Windows (and .NET) versions. Support for old versions is not planned and will not be actively maintained.

Apparently Win 8.1 is still supported so you can upgrade .Net Framework with either Windows Update or directly from https://dotnet.microsoft.com/en-us/download/dotnet-framework.


BA-324 create 50px spacer custom block

Create a custom component to standardize spacing between components

@lisafolkerson also this is a merge to master! WE wanna pop this into develop first!


refactor: improved the consistency of the frexp in transcendental

Removed the weird line {dtypes.float64: 1022, dtypes.float32: 126, dtypes.float16: 15}[v.dtype] from frexp.

so this is just shifting both by 1 and resulting compute stays the same? is there a reference to these hard coded m1, m2 constants?


Any chance you can add traps configuration?

Sorry, no plans to add such functionality at this time. Pull requests will however of course be considered.


[Map] Fix default values of Stimulus Map Controller

Q
A

Bug fix?
yes

New feature?
no

Issues
Fix #2417

License
MIT

This issue happens at doCreateMap when we called ->fitBoundsToMarkers() instead of ->center(...).
The value center was supposed to be null, but since I forgot to configure the default value of this.centerValue to null, it automatically used {} as default value (https://stimulus.hotwired.dev/reference/values#getters) and it breaks the code.
This bug has been introduced in #2385.

Should be better now, TIL Stimulus values' default value does not behave like Vue props' default value 😅
I reverted my changes and used this.has... instead, they correctly switch from false or true if they absent or not (html attributes are not rendered when their value is null).


You have a non-HTTPS site

We don't collect any login or personal data, cookies, js storage, etc, etc. I don't see why we would need encryption, it won't bring any benefits. On the other hand enforcing the site to work over HTTPS only potentially blocks access from countries with heavy internet censorship.

https://doesmysiteneedhttps.com/

I'd also add https://whynohttps.com/
@kekekeks , go check bottom links.
If you can say even 1 argument against those security experts, you are right. But I'm sorry, I know you are wrong.

If I am right, avaloniaui.net is hosted as a static website on github pages, which means enabling Let's Encrypt certificates is as simple as using a checkbox in the project's settings.

@ArmelliniFederico I might be wrong, but unfortunately not everyone has a privilege of living in a censorship-free country.
Some examples:
Time to first byte from mainland China to east coast USA:
HTTP: 0.4s
HTTPS: 5s + frequent disconnects on CSS/script/image load
From Russia to @HankG's blog: connection timeout or TLS error
That happens because analyzing and filtering HTTPS requires more resources and complex DPI which not all ISP's can afford.
So, by switching a static site to HTTPS for "I just like HTTPS" reasons we'd potentially remove the access from entire countries.

for "I just like HTTPS" reasons

Now I'm 100% sure you didn't read anything we linked to you.

Time to first byte from mainland China to east coast USA:
HTTP: 0.4s
HTTPS: 5s + frequent disconnects on CSS/script/image load

I haven't asked you to disable HTTP, just to enable HTTPS

I haven't asked you to disable HTTP, just to enable HTTPS

Ah, sure, here you go: https://avaloniaui.net/

Thanks, we can close this ✌


Tune low-bitrate chroma offset

My initial attempt at transferring the result from global optimization within the precise chroma quantization offset space to the parameters that drive od_interp_qm() didn't fully account for its rounding behavior. I updated the rounding model of my brute-force fitting code to match precisely, yielding this change.

Closing in favor of #192, which also changes the QM scale from Q4 to Q6.


Feature request: allow filtering linkedin job requests by linkedin company ID

I have a list of company ID's that I search for jobs by, along with keyword and location. Would be nice to be able to pull this programatically.

good idea. Added it, uses linkedin_company_ids parameter. e.g. linkedin_company_ids=[4456, 14336],

An easy way to look up the linkedin_company_id for your company:

Go to LinkedIn job search
Select in the filters the company of interest
Look at the field f_C in the http address

E.g. here it is for Uber:

Yes that's what we're doing in the code


Add support for PZEM-017 V1

Hi,
in my project I want to meter DC voltage in the range 0 - 15 Volts and DC current in the range of 0 - 100A.
I saw in your configuration the firmware is able to handle a PZEM-004 for AC voltage. So I tried this parameter for a PZEM-017
Version 1,  which is for DC voltage. But it doesnt work.
The reason is, the firmware asks the PZEM device to send the values of 10 registers starting with register 0. Thats correct and may work for a PZEM-004 but not for a PZEM-017. The device only has 8 registers starting at register 0.
See the following log from a PZEM-017:
Sent: 01 04 00 00 00 08 F1 CC                                                                        //ask the PZEM-017 to send 8 registers
Received: 01 04 10 04 95 00 00 00 00 00 00 00 02 00 00 00 00 00 00 21 40 //the PZEM-017 sends the contents of 8 registers
Sent: 01 04 00 00 00 09 30 0C                                                                        //ask the PZEM-017 to send 9 registers
Received: 01 84 02 C2 C1                                                                               //the PZEM-017 sends an error
Sent: 01 04 00 00 00 0A 70 0D                                                                        //ask the PZEM-017 to send 10 registers
Received: 01 84 02 C2 C1                                                                              // the PZEM-017 sends an error too
Is it possible for you, to add the PZEM-017 in your configurable firmware.
Thank you very much for your support.

Everything works great, including resetting the counter.


Serilize log edit into local files

write logs

write logs
recover writing if any write failed last time

read logs

purge logs (<= xxx_log_id)

commited, will be released in 2.0.0


helm安装配置修改

Codecov Report

Merging #146 into master will increase coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #146      +/-   ##
==========================================
+ Coverage   69.40%   69.45%   +0.04%
==========================================
  Files          76       76
  Lines        4645     4645
==========================================
+ Hits         3224     3226       +2
+ Misses       1042     1041       -1
+ Partials      379      378       -1

Impacted Files
Coverage Δ

server/mis_server.go
63.82% <0.00%> (+4.25%)
:arrow_up:

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 e8acf10...3f5e5c4. Read the comment docs.