Capability to merge duplicate person entries

This PR solves #193.

On Thu, Mar 12, 2015 at 09:23:39PM -0700, Nick Young wrote:

capability to merge duplicate person entries

I prefer:
type(primary_object)
to:
primary_object.class
since it's usually best to avoid accessing stuff with leading
underscores (PEP 8 has a single leading underscore for internal use,
and double leading underscores for name mangling 1.  Best to avoid
using both from code outside the class implementation unless you have
to).
You could also like use QuerySet.update(…) for some of the foreign key
manipulation.
Minor tweaks aside, I'm not sure how I feel about merge_model_objects.
On the one hand, it's nice to have a generic implementation.  On the
other, its a fairly complicated implementation and I'm not sure it
hits all the corner cases (e.g. hardcoding '' as a missing value makes
me a bit jumpy, but it might be fine).  I don't expect us to be
merging models besides Person frequently, so it might be simpler (and
generic enough for our purposes) to write a model-merging function
specific to Person.  Or maybe the generic merger could be split out
into a separate library with it's own unit tests, and we could just
add it to requirements.txt?  Then I wouldn't have to worry about the
details of the implementation ;).

I looked through your code and I have 3 general notes, although I might have missed something important.

The UI is not clear on what is being merged into what. What's happening with non-empty values?
There should be some extensive tests against util.merge_model_objects
There are many PEP8 style violations (see https://github.com/swcarpentry/amy/pull/229#discussion_r27514733)

Please let me know if you have time and will to fix these, otherwise I may be able to come up with a PR against your PR sometime during Easter.

Regarding 1: That's possibly because I wasn't clear what should be merged into what. Replacing empty values with non-empty values seems obvious, but what should happen with non-empty values? Should I provide toggles in the interface such that the user can pick which is the correct value?
I've pushed some fixes for 3, see the commits above ^

Hey @neon-ninja,
thanks for your commits!
Now we're only left with two issues:

better UI
more tests against util.merge_model_objects.

I personally feel that a good UI for this feature is the hardest part.
@neon-ninja:

Replacing empty values with non-empty values seems obvious

Yes, that's definitely a good strategy - we lose no data.

but what should happen with non-empty values?

I'd use a notion of "more important" vs "less important" model instance. Values from the "more important" object would always overwrite non-empty values in the "less important" object.
This solution, however, limits us to only 2 objects engaged in the merge.

Should I provide toggles in the interface such that the user can pick which is the correct value?

I think it would be too much effort.

If so that would also involve rewriting merge_model_objects

Yes, even with my proposed solution ("most/less important"). And I think  that we'd have to have a new view with radio buttons for user to select a more important person.
@neon-ninja, @wking can you perhaps think of any other solution?

On Wed, Apr 01, 2015 at 01:34:05PM -0700, Piotr Banaszkiewicz wrote:

better UI
…
This solution, however, limits us to only 2 objects engaged in the merge.
…
Yes, even with my proposed solution ("most/less important"). And I
think that we'd have to have a new view with radio buttons for user
to select a more important person.

I doubt we have cases where we really care all that much about which
is the most important.  Personally, I'm happy switching on GitHub ID
(since that will be the eventual user login mechanism, see #70).
Conflicting GitHub IDs would cause merge attempts to error out.  If no
entry defined a GitHub ID or only one entry did, then we just squash
everything down preferring the oldest entry (measured by lowest
Person.id), since that's the most likely to have received previous
editing.

more tests against util.merge_model_objects.

It's always good to have more tests ;).
I'm still skeptical that the auto-merge logic is worth the trouble
1.  But it's not my maintenance burden, so if @pbanaszkiewicz is
comfortable I'm fine moving ahead with this.

I'd use a notion of "more important" vs "less important" model instance. Values from the "more important" object would always overwrite non-empty values in the "less important" object.

preferring the oldest entry (measured by lowest
Person.id)

Note that is how merge_model_objects operates currently - it takes a more important primary_object and merges in a list of alias_objects. As this is currently, the lower id will be the primary_object as Person.objects.filter implicitly returns in order of id.

On Wed, Apr 01, 2015 at 03:39:23PM -0700, Nick Young wrote:

Note that is how merge_model_objects operates currently - it takes a
more important primary_object and merges in a list of
alias_objects. As this is currently, the lower id will be the
primary_object as Person.objects.filter implicitly returns in order
of id.

But it's missing an explicit radio (to make Piotr happy) or a GitHub
ID check (to make me happy).  As far as I understand anyway, since I
haven't actually looked at the code recently.

Merges now fail if there's conflicting github ids and I've added a radio on the confirm screen to select which object is primary. Also updated my test to test for foreign key merge. To summarise the tests:
test_merge_duplicate_persons tests that a merge successfully overwrites empty values with non-empty values, foreign keys are moved across (using a Badge), and the primary's non-empty value persists in the case of 2 non-empty values.
test_merge_fails_when_fields_not_set checks that a merge will fail if the user doesn't select two matching entries
test_merge_fails_when_github_mismatch checks that a merge will fail when two matching entries have nonmatching non-empty github ids
Is there anything else I should test for?

Hi @neon-ninja and @wking,
you're both right, I forgot about this simple assumption: the newest data for the same person is probably the correct one. Based on this assumption we can make the newest Person object (ie. having biggest ID) "more important" (using my logic). However…
@wking:

Conflicting GitHub IDs would cause merge attempts to error out.

Right now it's impossible to have more than one Person with the same GitHub ID (except for empty values) because Person.github is unique.
I think we might have chosen a bad direction here. I think we should handle duplicates in the bulk upload. Or loosen up Person.github restriction, but I'm not convinced about that solution.

On Thu, Apr 02, 2015 at 01:33:33PM -0700, Piotr Banaszkiewicz wrote:

you're both right, I forgot about this simple assumption: the newest
data for the same person is probably the correct one. Based on this
assumption we can make the newest Person object (ie. having
biggest ID) "more important" (using my logic). However…

Heh, I was assuming that the oldest information was probaby correct
;) 1.

Conflicting GitHub IDs would cause merge attempts to error out.

Right now it's impossible to have more than one Person with the same
GitHub ID (except for empty values) because Person.github is
unique.

Good point.  So we don't need special handling in a post-upload merge
handler.

I think we might have chosen a bad direction here. I think we should
handle duplicates in the bulk upload. Or loosen up Person.github
restriction, but I'm not convinced about that solution.

Regardless of how well you clean bulk-upload data, you're still going
to get duplicate Person entries in the live database.  Maybe not so
many that you need a dedicated tool to merge them?  I don't know.
Anyhow, I'd rather we slept on this until we get per-Person logins
(#70).  Do we really care about duplicates enough to have admins spend
time de-duping?
I think we should it to users to de-dup themselves.  If the Person has
a GitHub ID, authorizing the user to edit the user-editable portions
of the entry is easy.  Where a GitHub ID is missing, they'll either
need to contact an admin to get one assigned, and in that case, the
admin might need trigger a merge (between the entry without a GitHub
ID and the entry that already uses the appropriate ID).  But in this
case, all the merge logic has to do is update any foreign keys and
delete the GitHub-ID-less entry.  We can leave it to the user to
(re)populate the other data as they see fit.

Anyhow, I'd rather we slept on this until we get per-Person logins (#70).

I'll hold on with my thoughts on this issue till tomorrow. Need to rethink some stuff.

In #193 Greg described a case of merging two duplicate records that exist in the database.
In that case the current solution would be exactly what we need (and I prefer this solution).
However, we might as well detect duplicates during bulk-upload. This would mean we'd have to make bulk upload even more complicated than it is right now. Additionally, we don't provide GitHub IDs during bulk-upload, which means 1) many people won't have it assigned, 2) we should toss out GH ID checking from the de-duplication code.
I'd stick to the current solution, but with some important changes:

toss out GH checking and rely only on names
separate tests for the view and for underlying function merge_model_objects
provide excellent coverage for merge_model_objects

These issues are yet to be fixed:

proper breadcrumbs
clear UI indicator for the primary merge object

@pbanaszkiewicz is https://github.com/neon-ninja/amy/commit/b812c8db8e48ebf4e365a90c97b8d28365e3f936 what you meant by >proper breadcrumbs ?

clear UI indicator for the primary merge object

^ note there is now a radio button to indicate the primary - is this not sufficiently clear?

Perhaps we should add some help text describing what the primary object is? Something like:
"The primary object is the main object during the merge - if the primary object and the duplicate objects have conflicting values for a field, the value for the primary object is the one that will persist in the newly merged object"

Is this one going to be incorporated, or has it gone stale?

I'd leave it for discussion until we figure out what do we want to do and how do we want to do it. I'm not sold on current implementation and I'd like more feedback from admins regarding merging.
We can have discussion in #193.


Use space for rust files in editorconfig

This matches what is expected by rustfmt and what is explained in the CONTRIBUTING.md guidelines.

LGTM! ❤


fix(cemu): add ltcg, stdexcept

Motivation for this change
Fixes CEmu.
ZHF: #144627
Things done

Built on platform(s)

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

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

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

[X] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[X] Tested basic functionality of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.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.

@luc65r I should have searched first, I now see you tried to fix this previously in #114577
I expect this will have the same MacOS issues you encountered. Should this package get marked as broken on darwin?

Should this package get marked as broken on darwin?

If you can't test on darwin, I think so.

Please fix ec09e96 to follow https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#submitting-changes.
cemu: add link-time-compile-gen, stdexcept

@thiagokokada Fixed, thanks!

Could you also squash 7493baa and fefdd46? Because it seems fefdd46 just do part what is done on 7493baa, just in another way.

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

1 package built:

cemu


Selecting a custom field

If i try to select a user-defined fields like this
https://:50000/b1s/v1/BusinessPartners?$top=1&$select=CardCode, U_DOCUMENTO
{
"odata.metadata": "https://:50000/b1s/v1/$metadata#BusinessPartners",
"value": [
{
"CardCode": "PL17919001",
"U_DOCUMENTO": "19001"
}
]
}
this code returns error
B1SLayer.SLException: Property 'U_Documento' of 'BusinessPartner' is invalid
List bpList = await _serviceLayer
.Request("BusinessPartners")
.WithTimeout(TimeSpan.FromSeconds(3000))
.Select("CardCode, CardType, CardName, Address, Phone1, EmailAddress, U_Documento")
.WithPageSize(10)
.GetAsync<List>();
How can I select that kind of fieds?

Hello @ICESA-Proyectos, how are you doing?
So if you run the request in an app like Postman it will return correctly?
Did you try to use the name of your UDF in capital letters using the B1SLayer?
I am wondering if the UDF name could be case-sensitive, you know?

Hi, @ICESA-Proyectos. Like @joaoantoniomartinsfilho said, the fields you select for the request are indeed case-sensitive. So if your field is called U_DOCUMENTO, this is what needs to be specified in your request when using B1SLayer.

Hi guys thanks for your help, I was out of office.
I never noticed the fields were case sensitive, after fixing that little detail the fields were imported without any problem
Thanks


[FLINK-25909][runtime][security] Add HBaseDelegationTokenProvider

What is the purpose of the change
Basically this is a revamp of #20206 (seems like it's discontinued) with minor modifications and additional testing so copy-pasting the description.
This PR adds HBaseDelegationTokenProvider to obtain HBase delegation tokens using the new delegation token framework.
Brief change log

Add HBaseDelegationTokenProvider
Add HBaseDelegationTokenProvider into the META-INFO service registration

Verifying this change
This provider functionality will be covered by some existing tests. But We don't have dedicated tests to test the HBase delegation token obtaining. I think we may need to add new end-to-end tests to cover it.
Manually tests on Yarn, detailed: Test Gist
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): no
The serializers: no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? no
If yes, how is the feature documented? All documentation is intended to be added in FLINK-25911 when everything works as a whole

The tests failed w/ the following issue:
2022-10-24T15:02:28.1434134Z ERROR: Could not find a version that satisfies the requirement pemja==0.2.6 (from apache-flink) (from versions: none)

Rebasing to the latest master.

I don't see any fix so just restarting it first.

@flinkbot run azure

Thanks for the explanation @gaborgsomogyi, I plan to verify based on the linked instructions.

Sorry for the delay, but finally I was able to spend some time on this and verified that the token obtain logic works as expected:
2022-11-03 11:37:08,236 INFO  org.apache.flink.runtime.security.token.HBaseDelegationTokenProvider [] - Obtaining Kerberos security token for HBase
...
2022-11-03 11:37:09,460 INFO  org.apache.flink.runtime.security.token.HBaseDelegationTokenProvider [] - Added HBase Kerberos security token to credentials.

I was running the app on YARN with an HBase 2.4.6 server on the Cloudera stack.
PR itself LGTM.


[LiveComponent][doc] Document how to deal with locales

Q
A

Bug fix?
yes

New feature?
no

Tickets
Fix #231

License
MIT

Locale was lost after any live component action. It turns out that simply by adding {_locale} to the route fixes the issue even when no locales are configured (router still seems to inject en).

Can this be achieved by adding the locale prefix when importing the route? https://symfony.com/doc/current/routing.html#route-groups-and-prefixes
I'd prefer suggesting this. Maybe a note in the docs/recipe?

@kbond it looks like you are right and your approach seems much cleaner. I will follow up on that :+1:

@kbond I don't think there is any recipe for live component (at least I couldn't find any), therefore I believe putting this in installation step instructions is enough.

Thank you Jakub!


footer links hover

The links in the footer section are hovered upon even when the cursor is not directly upon the link.
https://user-images.githubusercontent.com/75200954/121310673-3da10a80-c921-11eb-87ab-6f40d53d8b5c.mp4

@oneknucklehead I think this is how Docusaurus v1 is designed: https://v1.docusaurus.io/
Actually we are migrating to v2, in which this issue has gone: https://docusaurus.io/


fix(example): isolate modal component

clicking the close button in modal are not working because the modal is not isolated

Why does it not work? The selector should work even unisolated

i dont understand either. could it be a bug?

I have to debug a bit


[QA] xml files have no icon

Setup via docker-compose-eos-test.yml from branch fix-yml-for-rc5 on localhost
From the WEB UI:

upload an xml file and a few other items
the xml file misses its icon. BAD.

Expected behaviour: all file types have some sort of icon or placeholder. The columns should not shift.

Thank you, will be fixed with https://github.com/owncloud/phoenix/pull/4357

We will have to make a phoenix release though, to get it into ocis. So merging the linked PR is not sufficient for closing this issue.


How to perform edgeR-LRT using Libra with no biological replicates?

DE = run_de(snRNA, de_family = 'pseudobulk', de_method = 'edgeR', de_type = 'LRT',cell_type_col = "orig.ident")
This returns:
Error in mutate_at():
! Can't subset columns that don't exist.
✖ Column replicate doesn't exist.
So how can I perfrom edgeR-LRT using Libra with no biological replicates?

If you do not have biological replicates you would typically use a single-cell method (e.g., Wilcox), since pseudobulk methods require replicates. Alternatively, you could treat cells as replicates (cell_type_col = barcode) - however this will not protect you against the biases we describe in the paper.

I tried to run a single-cell method (wilcox) on a Seurat dataset (specifically ifnb, it is a PMBC dataset with 2 treatments, no biological replicates), and I also received an error "Column replicate doesn't exist". Should this be working by default?


Failure to set up environment variable correctly

I am experiencing an issue trying to run the example code for predicting ADT.  It looks like the contents of the zzz.R file might not be executing correctly?
reticulate::use_miniconda(condaenv = "r-reticulate")
library(scLinear)
library(Seurat)

pipe <- create_adt_predictor()
Error in prediction$ADTPredictor(do_log1p = do_log1p) :
  attempt to apply non-function

Same exact issue! Any updates on solutions - I was very excited to use this package?

I am working towards an approach by just running the python code directly instead of messing around with reticulate etc.
The ADT prediction function can be imported directly from perdiciton.py and then used. I still to look at it more deeply though and check this works. My current setup looks like this.
import pandas as pd
import numpy as np
import os
import scanpy as sc
import numpy as np
import scipy.sparse as sp
import anndata as ad
from evaluate import evaluate
from prediction import ADTPredictor

<code to load in and format my data>

pipe = ADTPredictor(do_log1p=False,use_vanilla_nn=False)
pipe.fit(gex_train=adata_rna_train.X.toarray(), adt_train=adata_prot_train.X.toarray(), gex_test=adata_rna_test.X.toarray(), gex_names=adata_rna_train.var_names.to_numpy(), adt_names=adata_prot_train.var_names.to_numpy())
adt_pred, adt_names = pipe.predict(adata_rna_test.X.toarray())

Thank you for reporting the Issue.
Unfortunately I was quite busy the past few weeks and did not have time to solve the Issue.
As it looks right now the problems happens if the python dependencies fail to install correctly.
This leads to a failed import of the prediction class.
I will try to upload a solution to the problem in the next few days.
Thank you for your patience.

This solved the issue for me


Change how popups are displayed

Draft, so I can get some feedback and later do some cleanup.
popup-anim2.webm
I decided to try visually stacking the popups instead of the random offset suggested by @metalgearsloth hoping for better legibility. The horizontal travel might be too much, or unnecessary entirely, but I like the stacking.
I can look into the suggestion by @EmoGarbage404 of putting the popup over the top of an entity, though that may not work for all situations.
I haven't tinkered with the game options panel before, but I could look into that too, in order to implement the suggestion by @dmnct for a control slider on how long popups stay around.
I think the legibility could be further improved by giving the engine the ability to draw text with solid outlines, but I haven't looked into how that would work yet.
Resolves #18851

Personally, I don't like the fade to the side.

This looks fun to watch visually. I like it.

This looks fun to watch visually. I like it.

Fun was the first word that popped in my head too.

I dont like the fade to side either

I put some work into making this configurable in the options window today, so I haven't forgotten about this.

Re-open when you're back from break.


Beasts of Bermuda

Module Request
Note: Please try setting up a configuration yourself before raising an issue to request a configuration:  ~~https://config.getamp.sh/~~
***There is a newer beta version available at https://iceofwraith.github.io/GenericConfigGen/
I don't understand this at all.
Game Information:
Game Title: Beasts of Bermuda
How to obtain: https://store.steampowered.com/app/719890/
Suppoted OSs: Windows
Supports RCON/Console input? Yes? Idk
I confirm:

[x] that I have searched for an existing module request for this application.
[x] that the server is an official server distributed by the games publishers/developers.
[x] that the server is available to the general public.
[x] that the server can be run headless (without a GUI).
[x] I have already attempted to create a configuration myself using the configuration tool

A template has existed for around 12 months in my dev branch

My mistake. It would be nice if more of these were moved to the official supported list so they're easy to find. I am not able to test for a few days so we can close this request.

This particular was put there because I was helping someone else to get it running. Can't recall why I left it there - I think it was a bit undercooked in terms of settings configuration and might have had console issues


Update SledStorage scan_(indexed)_data key not to contain table prefix,

prev.
Key info fetched from SledStorage scan_data & scan_indexed_data had
format of {table_name} + {data identifier}.
However, all store mut traits which handles data keys provide table_name info
so it is unnecessary for the fetched keys to have {table_name} info.
changes.
Remove {table_name} prefix info from the keys fetched from
Store::scan_data & Index::scan_indexed_data.
Apply key format changes to store mut trait impl codes.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

23 of 23 (100.0%)  changed or added relevant lines in 5 files are covered.
19 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.05%) to 97.852%

Files with Coverage Reduction
New Missed Lines
%

test-suite/src/tester.rs
19
88.89%

Totals

Change from base Build<PHONE_NUMBER>:
-0.05%

Covered Lines:
29797

Relevant Lines:
30451

💛  - Coveralls


fix: adjust vue plugin peer dependencies so it is usable with v4

Using
"@vitejs/plugin-vue": "4.0.0-alpha.0",
"vite": "4.0.0-alpha.3",

you get:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/@vitejs/plugin-vue
npm ERR!   dev<EMAIL_ADDRESS>from the root project

Closing as this isn't a change we want yet.


version 1.20.1

java.lang.NoSuchMethodException: gregfluxology.Gregfluxology.()

are you on neoforge legacy or?

forge 47.3.6
gtceu 1.4.6

just try latest forge (47.3.22)

solved


Example docker-compose.yml + Explanations

Hi,
Title says it all. It can be hard for many newbies to self-host their containers. A basic ready to launch docker-compose could increase the general usage of mumble. Tried to be neutral as possible in the compose file.

Thanks for your PR and sorry for the super late response. We already have https://github.com/mumble-voip/mumble-docker/wiki/docker_example_mumble_mumo_postgres and I think any improvements to that and/or further usage documentation should go into the wiki as well.

The wiki should have this as well, but wouldn't it be also good to additionally keep the file called as docker-compose.example.yml in the git root? I can make changes there also, it seems pretty outdated.

I would say it should be either or. Otherwise we only have code duplication that will lead to the versions becoming out of sync. But maybe the wiki could be advertised more prominently in the README?


feat: handle bigquery arrays and structs

My team uses BigQuery arrays and structs extensively.
This change adds handling for these data types.
NB: recognising prior art by wouter on https://github.com/EqualExperts/dbt-unit-testing/pull/164

Commenting for visibility - the changes seem to do what they say on the tin.

This was implemented in our latest release (0.4.0). We used a slightly different approach but your PR was very inspiring for us to implement the feature.
Thank you!

This was implemented in our latest release (0.4.0). We used a slightly different approach but your PR was very inspiring for us to implement the feature.
Thank you!


Excuse me, how to modify the value stored in indexDB?

Excuse me, how to modify the value stored in indexDB?

If this is changed, how to synchronize to indexDb

Cache should be updated by SWR via the Cache.set method, but I must admin that I didn't test such scenario.
When it doesn't I think it's a bug in SWR

In case that you are using global mutate, it's expected to not work,
From https://swr.vercel.app/docs/advanced/cache:

If a cache provider is used, the global mutate will not work for SWR hooks under that  boundary. Please use this instead.

I'm closing this as completed with https://github.com/piotr-cz/swr-idb-cache/issues/6#issuecomment-1573536710
As noted in SWR docs, you can retrieve Cache provider from SWR's config and use set method


string split with emoji can not split out emoji

have a string:
🌚🌝多么多么的

when I call split(''), it got:
[���, ���, ���, ���, 多, 么, 多, 么, 的]

which missed out emoji and got some error code.
how to split out these emojis?

Hi @jinfagang
This platform is not meant for assistance on personal code.
Please see https://flutter.dev/community for resources and asking questions like this, you may also get some help if you post it on Stack Overflow.
Closing, as this isn't an issue with Flutter itself, if you disagree please write in the comments and I will reopen it
Thank you

Ok, maybe it related with Dart encoding?


Entity query withParameters error

I'm trying to execute a query with parameters, but the generated url is wrong:
http://localhost:16746/api/v1/CountryItem?$orderby=Id&$top=10&$inlinecount=allpages?q=Sa

        let manager = new breeze.EntityManager('/api/v1');

        var query = breeze.EntityQuery
            .from('CountryItem')
            .withParameters({
                q: 'Sa'
            })
            .orderBy('id')
            .skip(0)
            .take(10)
            .inlineCount();

        manager.executeQuery(query.using(breeze.FetchStrategy.FromServer), data => {
            return data;
        });

Is this a bug or I'm doing something wrong?

Do you have the HTML error code?
Does your controller have an
IQuerable CountryItem(string q){}
or just the main
IQuerable CountryItem(){}
if so - call
EntityQuery.from('CountryItem').where('???', 'eq', 'sa').orderBy('id').skip(0).take(10).inlineCount();
If not then  Wait for Jeremy.... He's the master!
HTH
Mike

It's a Bad Request error (400), if you see the url, there are two '?' characters, server says "'allpages?q=Sa' is not a valid value for $inlinecount."
I'm not sure if it's a bug of aurelia-breeze or aurelia-http-client, so I guess I'll wait for Jeremy, thanks Myke.

 The query builder seems not to take into account the fact that a query string has already been started and so adds a second ? to the string. I got a bit lost tracing through after that though.

@darianferrer - Ahh, didn't see the double question marks - might be a bug.
I'm using Jeremys code but I am only calling withparameters for single entities, not with odata filters like your attempting.
For me, when i'm returning paged lists, i'm adding the filter on the backend for security after the user has logged into the controller, which may be a possible solution and workaround. (ie)
public class MyContext : DbContext
{
    public DbSet<CountryItem> countryitem{ get; set; }
}

[HttpGet]
public IQueryable CountryItem()
{
string name = Thread.CurrentPrincipal.Identity.Name;  //sa
IQueryable q = countryitem.Where(x => x.id == name); //client will add Skip/Take
return q;
}
HTH,
Mike

@mPisano - I found a workaround: instead of using .withParameters(), I ended using .where(), it works well:
http://localhost:16746/api/v1/CountryItem?$filter=startswith(Name%2C'Sa') eq true&$orderby=Id&$top=10&$inlinecount=allpages
I think the problem might be withParameters() not knowing there is already a query string generated, as said by @shunty-gh
Darian


Fill readme with current features

maybe only high-level features:

Tree View
command to create a "VDB" file
menu to edit ddl/sql request in editor

moved to https://issues.redhat.com/browse/FUSETOOLS2-381


Add VPCPeering to api

Signed-off-by: ruromero<EMAIL_ADDRESS>Related to: https://github.com/submariner-io/enhancements/issues/64

@dfarrell07 @skitt do you mind adding some early feedback on this changes? We will test the changes and continue working on the GCP side with the same approach.
Thanks in advance.

Thanks for taking care of this @ruromero. It all looks good to me (before testing it), thanks especially for the test coverage!

@tpantelis thanks for all your comments. I have tried to cover them all.
There's a problem I'm facing still with the aws_test package as the awsCloud struct is internal and would affect tests in aws_cloud_test, aws_suite_test, etc.

@tpantelis @skitt can we get another review?
thanks

This is an epic that hasn't been designed or discussed, please add an enhancement proposal with design to https://github.com/submariner-io/enhancements and have it reviewed before pushing implementation code

It’s been discussed on the basis of submariner-io/enhancements#64; details should be added there, I don’t think we need a new enhancement proposal.

That is not an EP, it's a bucket list of separate tasks, there's little to no technical discussion there nor is there any proposed API.

@skitt I have rebased against current devel branch and squashed all commits into one

Are we planning on working on this?

There is a new EP for this discussion: https://github.com/submariner-io/enhancements/pull/121

Closing based on recent discussion on Jul 27, 2022 - https://docs.google.com/document/d/19UzvTi9FaWK2ps8SNi-xXmw7q71LpIygBp_KmGEZ-s0/edit#
Specifically:

Proposal is to maintain current cloud-prepare code base, but not expanding much or adding new significant features/providers


/boxes/{box_id}?format=long

For "short_desc" in JSON, it returns a string with some words stuck to each other. For box_id = 3, "short_desc": "Bocandy is a Candy Subscription Box from Around the World for just $15/month.Each month, we send you a box full of candywith cool info about where it came from."
"$15/month.Each" and "candywith" are stuck to each other.

Isn't this just a database error?

I checked the database and the short_desc seems to be formatted correctly.

well that sure is strange... thanks for reporting!

np!!

non breaking spaces lol


Hover Effect, Bug, Logo size

Describe the issue: 1. he navbar looks simple, this can be more creative and effective for user experience to add hover in navbar.
2. The content of landing page is mixing with image, the last two lines of content is going to mislead image.
3. Size of logo of website is too small then navbar at least and other content of website.
How to reproduce the issue: I can add hover in navbar, Fix bug, can increase the size of logo so that logo can be seen easly.
Proof of issue(Screenshot/Location where to find the issue): Mention where to find the issue, also attach proof of issues is available

Bug :

Please assign this issue to me under gssoc21.

Hi @RuchiGitHu! You can proceed with the issue, however, the hover action is not required. So please implement the rest of the changes.
Thank you.


Update image

Corrected  docker image name to use name in Jenkins file to keep the repo up to date

Thanks, but we're gonna stick with the old names and fix the CI!

Thanks, but we're gonna stick with the old names and fix the CI!


[FEAT] Scrollbar Styles

I think we haven't given customised styles to our scrollbar.
We should custom our scrollbar as per our theme.
I want to work on this myself.
Please assign it to me and add tags for hacktoberfest-2024.

You can start working, I will assign when I get back to my pc , make sure
you star repo and follow on GitHub
On Fri, Oct 4, 2024, 11:17 AM Tanishq Mishra @.***>
wrote:

I think we haven't given customised styles to our scrollbar.
We should custom our scrollbar as per our theme.
I want to work on this myself.
Please assign it to me and add tags for hacktoberfest-2024.
—
Reply to this email directly, view it on GitHub
https://github.com/mohitahlawat2001/Loco-Musica/issues/29, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/APQVYO7PZP75XPELTHFB45LZZYTVXAVCNFSM6AAAAABPLFGPG2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGU3DKNJQGA3TOMQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Sure Thanks


I think the server should close the connection when the handler ends

Currently, if my connection handler function ends, the connection will remain open. For example:
async def main():
    await serve_websocket(foo, '<IP_ADDRESS>', 9000, ssl_context=None);

async def foo(websocket):
    pass

trio.run(main)

I would expect my returning from this function to shut down the connection. Currently, it seems I have to call await websocket.aclose myself, which seems unnecessary.

serve_listeners does close connections after the handler dies (rudely, using trio.aclose_forcefully). But i guess the issue here is that the connection's background task is hanging around and preventing that from happening? It should definitely shut down and clean up when the handler exits.

async for connection in serve_websocket(): ...

This doesn't work so well if your server wants to handle two connections at the same time :-)

I guess that's right. My handler dies, but trio-websocket wraps it (https://github.com/HyperionGray/trio-websocket/blob/master/trio_websocket/init.py#L737), and has a reader task running as well; I suppose it's a question of shutting that down, then.

async for connection in serve_websocket(): ...

This doesn't work so well if your server wants to handle two connections at the same time :-)

Well, there's:
async with trio.open_nursery() as nursery:
    async for connection in serve_websocket(...):
        nursery.start_soon(handle_connection, connection)

but indeed, this can't provide a automatic close signal to the listen loop either.  Never mind!


update mime type of .js files to text/javascript

application/javascript is being deprecated per
https://datatracker.ietf.org/doc/draft-ietf-dispatch-javascript-mjs/
add .webp for builtin

Changing application/javascript to text/javascript is good. This is already recommended by the HTML5 specification.
But I don't approve of .mjs. These default MIME types should just be a very basic set to get the simplest of HTTP deployments working. .mjs is a pretty new extension and not very common. I'm not sure there exists any standard specification yet. The one you linked is just a draft.
.webp is fine.

@straight-shoota force-pushed


Comment disappearing after last where constraint

Describe the bug
When formatting, a comment after the last where constraint disappear.
To Reproduce
When formatting the following code,  // comment on last constraint disappears. It seems to happen on the last constraint, whatever the number of constraint is.
trait MyTrait
where
    Self: Clone, // comment on first constraint
    Self: Eq, // comment on last constraint
{
}

Expected behavior
The comment should not disappear.
Meta

rustfmt version: rustfmt 1.4.18-nightly (c1e9b7b8 2020-06-13)
From where did you install rustfmt?: rustup
How do you run rustfmt: rustfmt

Thanks for the report @vincentisambart. This reproducible with rustfmt 2.0 as well


OVERLAPS word is not highlighted

Describe the bug
overlaps word is not highlighted (used in postgres)
To Reproduce
Test query:
SELECT "huddles".*
Screenshots

Versions
sql-highlight: 4.0.0
node: 16.0.0

Yup, sounds like a fair point. I'll merge your PR right away. Thanks!

@scriptcoded thank you ❤


Make a survey of languages with syntactic macros

Starting from the languages listed in https://en.wikipedia.org/wiki/Macro_(computer_science)#Syntactic_macros, make a table with the languages on the rows and capabilities on the columns.
After the table, also summarize each language in prose, pointing out tradeoffs and limitations; details that the table is too coarse to contain. Include plenty of links to resources on the web such as reference documentation and papers.
(Do not assume Wikipedia's list of languages is complete; if there are other languages that seem to fit the description of having syntactic macros, include them. For example, I'm pretty sure we also want to have SweetJS in there.)

The intent here being, of course, to explore the prior art in the field, both in order to be able to relate 007 to other things in some kind of ontology, and in order to loot and pillage find inspiration from other languages, especially those which have walked the same path and faced the same foes.

I see sweetjs in the Wiki article (though perhaps you added it?).
I’m also sad it’s now defunct.
What are the points we’re most interested aboutin other impls? :)

Looking forward to seeing this table! 👍

Just want to link this one in here: Dylan and the Lisp family tree's central core. The list of languages in that post seems worth following up on:

Common Lisp
Dylan
EuLisp
ISLISP
Goo
PLOT

It seems I might have to include Wat in my list, too.

Linking this syntax-rules primer from here, just to have it linked from somewhere. It also relates somewhat to #491.

You cannot write an infix' macro, nor can you write a macro in a nested position', i.e., an expression like ((foo x) y z) is
always considered a procedure application.  (The subexpression (foo x)
will be rewritten of course, but it will not be able to affect the
processing of subexpressions y and z.)  This will be important later
on.

The first part is untrue, for us. The second part is at opposites with some other features 007 wants.

Kernel.

And also Virtua, by the Wat author (and "the Axis of Eval" blogger).
Needless to say, some of these languages (especially the fexpr ones) are not mainstream, and I won't be able to write a lot about them. But there will still be something to say about "how does the language do macro-ish things?".

I see sweetjs in the Wiki[pedia] article (though perhaps you added it?).

No, but I think I might have missed it, or forgot it was there.

I’m also sad it’s now defunct.

Any idea why?

What are the points we’re most interested aboutin other impls? :)

For the table: approach to macro hygiene/gensyms, etc. Type of macros (procedural/pattern-matching).
For the prose, some details about how the macro system "feels", what limits it sets up for itself wrt syntax and semantics, maybe what known weaknesses it has (such as Common Lisp and accidental capture), but balance it out with what things it provides (such as anaphoric macros).

I’m also sad it’s now defunct.

Any idea why?

Probably a collection of factors: Disnet used to work at Mozilla, and they might've had time for open-source work (after all, sweetjs used to be under the mozilla github organisation). Maybe just lack of interest.
Nate Faubion, early contributor + big part of the ecosystem (made the modules for ADT, pattern matching, etc) has joined the PureScript movement.
As for the latest contributor, I don't actually know. Maybe a simple lack of time is the answer.

Also perhaps include Z in the survey, although it seems a bit buggy awesome.
HN discussion.

Also throwing this HN discussion in here.
I feel I need to get somewhat of a handle on syntax-rules, syntax-case, and syntax-parse.

I think Filter::Inject deserves to go on this list also.

The use of a string reminds me of BlackCoffee somewhat.

Also macropy.

MetaOCaml. To the extent that I've looked at it, it has quasiquotation and unquotes, and these interact with the type system.

Maybe D is worth mentioning in this context, because their official stance seems to be that they ended up not needing macros.

D doesn't have a preprocessor; but D provides a more scalable means to solve the same problems.

Granted, it's preprocessor/text macros they're talking about here, not real AST macros. But still.
I think the most important part of that page is the last one, about template mixins. Haven't looked deeply, but it seems that they do merit the inclusion of D in this list.

Scala has def macros (still experiemental) and deserves at place in the survey.
Rust also has macros, and the way to define them reminds me of syntax-rules a bit.

The T reference manual (and by the way, I don't know yet if T deserves a slot of its own in this survey) contains this interesting tidbit: "T's quasiquote facility, inherited from the Maclisp family of Lisp...".
Maclisp goes back a long, long way. It originated in the late 60s, and influenced Interlisp and later Common Lisp. But the claim that quasiquotes come from that language family is not backed up by the Maclisp reference manual, Revision Ø, from 1974. Maybe it was added later? Or there were variants/dialects of Maclisp, and quasiquotes weren't in the main one?

Nor does this Interlisp reference manual (also from 1974) mention quasiquotes.

Not sure if Scala def macros should « count » still, since they were deprecated for Scala 3/Dotty.

Wow, a Big Rewrite. Where have I heard that before? 😄
Anyway, unless I've missed a big announcement, it's not a question of "they were deprecated", and more a question of "they wioll haven be deprecated". We'll cross that Subinverted Plagal Past Subjunctive when we get to it.

As to how/where quasiquotes originated, The History of Lisp has much of the story. (See pp72-75.)
Of note, they were originally called "pseudoquotes". (That is, the relation to Quine's quasiquotation is not there from the start.) One of the early practitioners of the art, including of nested quasiquotes, was Alan Bawden. Searching for "alan bawden mit nested quasiquote" gives this .ps.gz, which seems on skimming to be a very nice read. (PDF version.)
On the way I also found this 1993 email where Jonathan Rees recounts Alan Bawden opining strongly that quasiquote expansion should be a part of the reader. (I don't know about other implementations, but it isn't in Bel; it's a macro. That is, you can write either \(a ,b)or(bquote (a (comma b))`, and they result in the same macro-expanded expression.)
This text mirthily quotes from Bawden's article, as well as provides a nice example of double-unquote, a defun macro:
(defmacro defun (name params &rest body)
    `(defmacro ,name ,params
        `((lambda ,`,params ,`,@body)
        ,,@params)
    )
)

I use this macro especially because something tells me @vendethiel used it as an example years ago, and now he'll smack me over the head with it. Either for being a slow learner, or for having a memory like a colander, or both.

A later reference work about MacLisp is apparently called "The Revised MACLISP Manual" but nicknamed The Pitmanual after its author, Kent M. Pitman.
This one does mention backquoting and splicing. So all in all it would seem that quasiquoting and the backquote syntax was indeed invented during the evolution of the MacLisp family of LISPs.

something tells me @vendethiel used it as an example years ago

Ah yes, here: https://github.com/masak/alma/issues/30#issuecomment-225585820 — 3.5 years ago.

and now he'll smack me over the head with it. Either for being a slow learner, or for having a memory like a colander, or both.

I don't think I do either, if anything, I'm always surprised at how much you remember was mentioned around.  To the extent I understand it even now, that is.

Groovy has macros. Apparently, they grew out of their AST Transformers, and are documented together with them here. From what I can see, they don't address hygiene at all. (I might be wrong.) Groovy's macro keyword is for quoting code, and seems to correspond to Alma's quasi keyword.

@ALANVF Agreed, after checking the documentation of all those three. Hum, somehow I was aware of those languages, but forgot to consider them for this survey. Thanks!
Also, dammit, Crystal's macros look like an impossible paradise version of Perl 6's macros. I should check them out some more.

I think they've been mentioned quite a few times over the years on IRC.
Crystal's macro system is basically a pre-proc; that lives in another stage; and doesn't have access to everything else.
Nim macro I remember us discussing (the delaying of type resolution while in expansion etc), but Julia maybe not.

F# has code quotations, which look a lot like quasiquotes-done-right to me. Even the syntax somehow feels less horrible than par for the course.

Huh. On page 18 of the "Resugaring" paper (recommended to me by @jnthn) there is actually a table not entirely unlike what I imagined for this issue. Probably would serve as a very good starting point.

Agda has "reflection" (a way to turn code into AST objects inside the program itself), as well as quoting/unquoting and macros, as can be seen in this paper. I'm surprised and intrigued, even as I don't see the whole picture. There's something called "the elaborator", and a TC monad to maintain the elaborator's context.

I just found Axel, a Haskell with Lisp syntax and macros, quoting, and quasiquoting+unquotes.

Passerine, which has a respectable pattern macro system that reminds me of Dylan's, but with metasyntax that looks more like Scheme's. Claims to be hygienic.

Nemerle. Here's a paper: Meta-programming in Nemerle.

Wyvern.


Client.c password encryption bug

Bug

good catch.  The intention of the code is good, though.   I think replacing the current
char *key = "EncryptPassword";

with smth like
const char key[] = "EncryptPassword";

would be a better fix. At least it saves the call to strlen.

Could you please explain why this is a bug??

well. it's a plain coding error.
What do you think the semantic of the existing piece of code is?
sizeof is a compile-time macro that expands to the number of bytes the variable requires. In that case it's a char*, i.e. a pointer with constant size. You're probably interested in knowing how many bytes it consumes at runtime.

Ok. Thanks for the explanation. In this case I agree with you. @m0zart89  could you please adapt your PR to the comment:
https://github.com/SoftEtherVPN/SoftEtherVPN/pull/211#issuecomment-254700676
??
Thank you

This peace of code should be fixed too:
	if (password == NULL)
	{
		password = "";
	}

@macvk  where is that??

@m0zart89 ping??????

This bug in EncryptPassword() MUST NOT modified.
This password encryption is not for security, but for just scrambling a clear text password with the fixed key (constant). This encryption is used only on the configuration file saving function.
Fixing this bug will cause fatal error on existing users of VPN Client.
Keeping this bug doesn't cause any security issue.

In this case we should close this PR. Any objections??

Wait. what?
This is a plain and obvious coding error.
This has nothing to do with what the function tries to achieve, being it for increasing the security of the software or not.
It's more about a bug that prevents this function from achieving anything useful at all.
The sizeof operator is a compile time thing. It works differently from what the author expected it to be.
If this is not being treated then a longer key will destroy the memory layout of the running program, eventually leading to exploitable conditions.
The fix is either to use the runtime strlen as proposed in this PR or to an actually array of chars so that the sizeof operator knows how big the underlying structure actually is, as proposed in https://github.com/SoftEtherVPN/SoftEtherVPN/pull/211#issuecomment-254700676.

what would prevent from crashing ... it could be some unit test :)

@moatazelmasry2
For example: Client.c, Line 5829
You can find it yourself.

Modifying the EncryptPassword() function will break the compatibility with VPN connection settings already saved in the vpn_client.config file.
I must say that the name of the EncryptPassword() is wrong. This function does not provide any security mechanism but only hiding clear-text in the configuration file, like the Caesar cipher.

My suggestion is to modify the code as the following:
src/Cedar/Client.c | 24 +++++++++++++++++++++---
1 file changed, 21 insertions(+), 3 deletions(-)
diff --git a/src/Cedar/Client.c b/src/Cedar/Client.c
index 63af4c7..699b2e1 100644
--- a/src/Cedar/Client.c
+++ b/src/Cedar/Client.c
@@ -10158,12 +10158,13 @@ char *DecryptPassword2(BUF *b)
return str;
}
-// Encrypt the password
+// Encrypt the password (just only hiding clear-text for configuration saving)
BUF *EncryptPassword(char *password)
{
UCHAR *tmp;
UINT size;

char *key = "EncryptPassword";

char *key_32bit = "Encr";
char *key_64bit = "EncryptP";
CRYPT *c;
BUF *b;
// Validate arguments
@@ -10175,7 +10176,24 @@ BUF *EncryptPassword(char *password)
size = StrLen(password) + 1;
tmp = ZeroMalloc(size);

c = NewCrypt(key, sizeof(key));

// Note: Do not modify the behavior of this code, otherwise it will break the
// compatibility with VPN connection settings already saved in the vpn_client.config
// file.
//
// This function does not provide any security mechanism but only hiding clear-text
// in the configuration file, like the Caesar cipher.

if (sizeof(void *) == 8)
{

  // 64-bit systems

  c = NewCrypt(key_64bit, 8);

}
else
{

  // 32-bit systems

  c = NewCrypt(key_32bit, 4);

}
Encrypt(c, tmp, password, size - 1);
FreeCrypt(c);

@dnobori
I understand everything from the code. It's not a critical error - this is clear.

@dnobori
Sorry, but your last modification has the same error as before. I think you must correct your fix.

I must say that the name of the EncryptPassword() is wrong. This function does not provide any security mechanism but only hiding clear-text in the configuration file, like the Caesar cipher.

The name of the function doesn't matter. What matters is the clear and obvious bug in the code.
if (sizeof(void *) == 8) don't do any of that. It's making things worse than they are right now.
Have you understood the problem in the existing piece of code? Out of four instances of a NewCrypt call, one wrongly uses he compile time sizeof rather than the runtime strlen. If you want pass on a magic 4 or 8, then fine, do that. But you must not use sizeof in this context as it's highly deceiving.
And before using any of that: char *key_32bit = "Encr"; make it a proper char array, i.e. char key_32bit[] = "Encr";. This will preserve the length of the buffer for compile time operators.

Doesn't the "if (sizeof(void *) == 8)" just check if the system is 32bit/64bit?

The suggested patch does make the code's intent clearer without breaking the compatibility.
Though perhaps the following minor change also communicates that an appropriate key size is to be used.
-char *key = "EncryptPassword";
+char key[] = "EncryptPassword";
-c = NewCrypt(key, sizeof(key));
+c = NewCrypt(key, sizeof(void *)); // 64bit = 8, 32bit = 4

What's the rationale for closing this issue? Has the bug been fixed?


[MINOR] refactor: Use  isEmpty() to replace size() == 0

What changes were proposed in this pull request?
Some collections have O(n) size method, it's a good way to use isEmpty.
Why are the changes needed?
Improve the quality of code.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
CI passed.

It's okay with me for the changes. By the way, can you check other modules for similar issues? You can change the following format:

xxxx.size() > 0
xxx.size() != 0
...

xxxx.size() > 0

Not yet. I will check.

xxxx.size() > 0

Not yet. I will check.

Checked. All are modified.


CLIc build results are not cached

Overview
The CLIc target rebuilds every time a consuming project is built regardless of whether there have been changes in CLIc sources. This is a nonblocking issue but does add about a minute to every build iteration.
Initially logging here but may need to be addressed in the CLEsperanto dependency.
Tested On
Windows 10
Visual Studio 2022
CMake 3.22.3

I believe this is due to some add_custom_target in CLIc build configuration.
I use those to run python script in charge of converting ocl kernel files into c++ header files. Although, as they are always (re)generated at each build, this trigger a full project build.
I think I managed to fix this for the next update (hopefully)

https://github.com/clEsperanto/CLIc_prototype/pull/94/commits/f24f1b2e60e6875223a533f76e80220391c0b273

Thanks for raising this issue!

@StRigaud @tbirdso thanks for working on this!
Does this behavior still exist after we have bumped the CLIc_prototype version to the HEAD of development?

I no longer see this behavior in the most recent ITKCLEsperanto build. Thank you for addressing this @StRigaud !


Fix API - JSON request bodies

During yesterday's update, Tesla appears to have adjusted what kind of requests the API will accept. Logging in is no longer possible with the current version of the module because it now requires a JSON-encoded request body (instead of urlencoded).
In this PR, I've updated all requests to the Tesla API to include some Tesla-specific headers (to prevent compatibility issues) and to send JSON bodies.
Note that the latest version of the Android app uses new OAuth client credentials. I was going to update them in this PR, but that prevents refresh tokens from working as they need to be refreshed using the same client credentials they were issued with.
If you want them, here are the new obfuscated credentials:
var _0x2dc0 = ["\x38\x31\x35\x32\x37\x63\x66\x66\x30\x36\x38\x34\x33\x63\x38\x36\x33\x34\x66\x64\x63\x30\x39\x65\x38\x61\x63\x30\x61\x62\x65\x66\x62\x34\x36\x61\x63\x38\x34\x39\x66\x33\x38\x66\x65\x31\x65\x34\x33\x31\x63\x32\x65\x66\x32\x31\x30\x36\x37\x39\x36\x33\x38\x34", "\x63\x37\x32\x35\x37\x65\x62\x37\x31\x61\x35\x36\x34\x30\x33\x34\x66\x39\x34\x31\x39\x65\x65\x36\x35\x31\x63\x37\x64\x30\x65\x35\x66\x37\x61\x61\x36\x62\x66\x62\x64\x31\x38\x62\x61\x66\x62\x35\x63\x35\x63\x30\x33\x33\x62\x30\x39\x33\x62\x62\x32\x66\x61\x33"]; var c_id = _0x2dc0[0]; var c_sec = _0x2dc0[1];

@DoctorMcKay This is strange.  I can confirm that I can't log in using the login sample.  However, my Tesla Control app in the Windows Store is still able to log in using the same credentials.  Any ideas why would TeslaJS fail and Tesla Control succeed using the same credentials?

It's not the credentials that are getting rejected, it's the application/x-www-urlencoded request bodies. The API now only accepts application/json request bodies.

Ah, I see.  Yes, I can see that the app uses application/json.  I should
have caught that earlier.
On Thu, Aug 30, 2018 at 4:13 PM Alex Corn<EMAIL_ADDRESS>wrote:

It's not the credentials that are getting rejected, it's the
application/x-www-urlencoded request bodies. The API now only accepts
application/json request bodies.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mseminatore/TeslaJS/pull/96#issuecomment-417497125,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQDQuFjYlIUfcAdgErytgz9XdUnp5Tg4ks5uWHF-gaJpZM4WT6RX
.


Support IntEffect.decompose() and fix bug in final_soqs

Bugfix: fix final_soqs for LEFT bloqs
Enable decomposition for IntEffect too
use IntEffect to fully test bugfix

@tanujkhattar can you ptal


streaming implementation request

when feed html to pup using pipe with infinite streaming content, pup do not output anything but just eat up memory. This behavior restricts pup's use in shell pipe when large input is encountered

What I think @zxytim is saying is that it would be great for pup to be pipe-friendly. A simple example:
$ ( echo '
contents
'; sleep 5 ) | pup 'p text{}'

The problem: only when the input process ends (after 5 seconds), pup returns the result. Ideally, it would echo the text right away.
That's how most UNIX tools work (| grep contents, for example).


Are you aware of any nice, programmatic way to analyze the codebase and extract text to be translated?

I am not aware of anything out of the box.  It's a pretty difficult problem.  I recently looked at eslint-plugin-m6web-i18n which seemed promising as an eslint plugin for React apps.  It does a good job recognizing react nodes with text node children, but as of now can't ignore nodes like <Text/> to allow them to use fallback text like we do.  I think a small pull request could fix that (or don't use fallback text) and that gets you a long way toward what you are looking for.
preact-i18n does provide a way to look at the running system and visually identify strings that aren't internationalized or that are, but are using the fallback text, by providing the mark attribute to <IntlProvider>.  You can provide that programmatically, or you can add a parameter of intl=show to your browser's URL set that attribute:
https://github.com/synacor/preact-i18n/blob/10c6749a3c469ddb90e00372233488c15af3b3d8/src/components/intl-provider.js#L5
https://github.com/synacor/preact-i18n/blob/10c6749a3c469ddb90e00372233488c15af3b3d8/src/components/intl-provider.js#L48-L50


\today is not \today

A pretty large number of old papers incorrectly reports the date on the pdf file, leading to output that can be extremely confusing. One example:

This seems to happen in cases where the cached PDF, as generated at the moment of submission, is deleted at some point, to save space, and is later re-compiled when a viewer, sometimes years later, asks for a copy. The problem arises because the compilation environment has a system time given by the time at which the document is re-compiled, and this feeds into the document. This can be directly, through the use of \today, as in arXiv:1001.0019 (image above), as well as implicitly, via commands that are in the class file instead of the user-written .tex file, as in arXiv:1001.0017.
The output produced by this combination of circumstances can be extremely confusing, both to generic readers as well as folks who have been using TeX and arXiv for many years. One needs to have a good understanding of how arXiv's internals work (or, at least, a level of understanding that only a small fraction of the author and reader communities have) to correctly interpret this output. And it can and does lead unsuspecting readers to mis-assign the date at which the document was written or published (one such example).
It looks to me like this can be fixed relatively easily by setting the environment variables of the compilation environment so that the system time is set to the timestamp at which (the relevant version of) the paper was submitted, which will hopefully induce TeX to produce the correct output while doing its usual thing.

Well, they could go with pdflatex -jobname myfile "\day30\month12\year2009\input myfile.tex", if that were in line with the arXiv's workflow. But the true solution IMHO is to add "do not rely on \today to the TeX submission guidelines.

@episanty Thanks for the detailed report. We've logged this as Bug ARXIVNG-2166, and will update this thread as updates are available.

@tohecz This wouldn't solve the historical backlog, which is considerable. Examples are plentiful and easy to find, particularly on categories where revtex is a widespread standard (since the class naturally encourages \date{\today}).
To go hunting for examples, choose a category, year and month (say, quant-ph for August 1996) and look at the pdfs; plenty of examples will crop up. If you want to force recompilations, look for papers that default to v2 or bigger, and ask for v1 (whose cache is more likely to have expired).

@erickpeirson Thanks for the quick response. I suspect the system ramifications make this a fairly complex problem (or at least, one where any solutions requires some extensive testing), but hopefully the fix itself will be simple. Looking forward to seeing this develop =).

@episanty I believe it would solve the issue for old articles eventually, once they all got recompiled. And that would be IMHO more than sufficient.


[feature] forget password

Implement a solution for retrieving the password, in case if somebody forgets his password.

@Ashuto7h Sure.
@Tejas1510 Should I build this feature?

@Ashuto7h Sure.
@Tejas1510 Should I build this feature?

@Ashuto7h go ahead

@Ashuto7h go ahead

@sanjay270899 since @Ashuto7h has come with the issue he will be preferred first

@sanjay270899 since @Ashuto7h has come with the issue he will be preferred first

@Ashuto7h will you be working on the issue or should I assign @sanjay270899

@Ashuto7h will you be working on the issue or should I assign @sanjay270899

You can assign it to @sanjay270899

You can assign it to @sanjay270899

Go ahead @sanjay270899

Go ahead @sanjay270899

@Tejas1510 You can close this issue if you wish.


[1.18.2] Rendering Issue

Experiencing a weird rendering issue, were random blocks and chunks are not showing block textures. Uninstalling IF and Titanium fixes the issue, and reinstalling it causes it the issue to appear again. Moving around in the world makes the area that it shows shift. Also some blocks are rotated.

Titanium is 3.5.5-37
IF is <IP_ADDRESS>-2
Forge 40.1.44 (also tried several previous versions of forge just to see if that made a difference)
Uninstalled all performance mods and rendering mods (with the exception of Flywheel, but I turned off rendering in the config)

Are there any IF machines in that area?

Yes, the Infinity Charger, but it is also happening in areas other then that. I also am trying to upload a log file, but github is being goofy

latest.zip
I guess the file was to large, so I had to compress it. Endless Journeymap spam making it large

To try to recreate the issue, I installed a new profile and added mods mentioned in the above log file. I placed Infinity chargers with infinity drill in them. Saved and restarted minecraft. The world hangs will trying to load. It wont create a crash report, but this is the log
debug.log

Mod installed are curios, IF, titanium, patchouli, and JE
latest.log
I

In all the logs I see Advent Of ascension causing issius

It must be the AOA integration you have implemented that is showing in the log, cause AOA wasn't installed when I recreated the issue. Also a couple are for Tinker's integration threw AOA, and that caused a bug in 1.18.2 with AOA being incompatible with Tinker's

Regardless, I just tested the version from the discord <IP_ADDRESS>, and it fixed the issue and the world will load now


aws-apigateway-dynamodb enable passing of methodOptions for use in addProxyMethodToApiResource

The addProxyMethodToApiResource accepts a params.methodOptions to be able to override/complement the default options defined
https://github.com/awslabs/aws-solutions-constructs/blob/dc48e482f936c856398c7e600a7805a99a3bea44/source/patterns/%40aws-solutions-constructs/core/lib/apigateway-helper.ts#L324
unfortunately the aws-apigateway-dynamodb construct does not pass this in its call the the addProxyMethodToApiResource method e.g
https://github.com/awslabs/aws-solutions-constructs/blob/dc48e482f936c856398c7e600a7805a99a3bea44/source/patterns/%40aws-solutions-constructs/aws-apigateway-dynamodb/lib/index.ts#L265
Use Case
Overriding default headers to specify CORS values would be a great use case to do it whilst overriding the default method responses.
Proposed Solution
Be able to pass in methodOptions as aditional opitional attribute . e.g : createIntegrationMethodOptions

[ ] :wave: I may be able to implement this feature request
[ ] :warning: This feature might incur a breaking change

This is a :rocket: Feature Request

Thanks, we'll take a look.


Build: Kill warnings

In the past, Riot build had 0 warnings. Now, there are 1000+.
Moreover, Xcode made the life stupidly hard to find errors among warnings.
Anyway, we should kill them.

Thanks to the fix of https://github.com/vector-im/riot-ios/issues/1898 for matrix-ios-sdk, the count is now 874 warnings. It was 1640 on 28/05/2018.


Nesting Hyprland sessions

Since Aquamarine 0.4.0 I cannot nest Hyprland sessions for debugging (it works on AQ 0.3.2).
It seems the new version cannot allocate a GBM buffer for the virtual output.
I am running a Nvidia RTX 4070 with driver version 560.35.03
My virtual monitor in hypr.conf
monitor = WAYLAND-1, 1920x1080, 0x0, 1

The relevant LOG parts are:
v0.3.2
[LOG] New aquamarine output with name WAYLAND-1
[LOG] New output with name WAYLAND-1
[LOG] Applying monitor rule for WAYLAND-1
[LOG] [AQ] GBM: Allocated a new buffer with size [Vector2D: x: 1920, y: 1080] and format XR24 with modifier<PHONE_NUMBER>20099860 aka BLOCK_LINEAR_2D,HEIGHT=4,KIND=6,GEN=2,SECTOR=1,COMPRESSION=0
[LOG] [AQ] GBM: Allocated a new buffer with size [Vector2D: x: 1920, y: 1080] and format XR24 with modifier<PHONE_NUMBER>20099860 aka BLOCK_LINEAR_2D,HEIGHT=4,KIND=6,GEN=2,SECTOR=1,COMPRESSION=0
[LOG] [AQ] Swapchain: Reconfigured a swapchain to [Vector2D: x: 1920, y: 1080] XR24 of length 2
[LOG] CMonitorState::ensureBufferPresent: no buffer, attaching one from the swapchain for modeset being possible
[LOG] Set a custom mode<EMAIL_ADDRESS>(mode not found in monitor modes)
[LOG] output WAYLAND-1 succeeded basic test on format DRM_FORMAT_XRGB8888
[LOG] Monitor WAYLAND-1 -> destroyed all render data
[LOG] arrangeMonitors: 1 to arrange
[LOG] arrangeMonitors: WAYLAND-1 explicit [0, 0]
[LOG] arrangeMonitors: WAYLAND-1 xwayland [0, 0]
[LOG] Monitor WAYLAND-1 data dump: res<EMAIL_ADDRESS>scale 1.00, transform 0, pos 0x0, 10b 0
[LOG] [AQ] GBM: Automatically selected format AR24 for new GBM buffer
[LOG] [AQ] GBM: Buffer is marked as multigpu, forcing linear
[ERR] [AQ] GBM: Allocating with modifiers and flags failed, falling back to modifiers without flags
[LOG] [AQ] GBM: Allocated a new buffer with size [Vector2D: x: 24, y: 24] and format AR24 with modifier 0 aka LINEAR
[LOG] [AQ] GBM: Automatically selected format AR24 for new GBM buffer
[LOG] [AQ] GBM: Buffer is marked as multigpu, forcing linear
[ERR] [AQ] GBM: Allocating with modifiers and flags failed, falling back to modifiers without flags
[LOG] [AQ] GBM: Allocated a new buffer with size [Vector2D: x: 24, y: 24] and format AR24 with modifier 0 aka LINEAR
[LOG] [AQ] Swapchain: Reconfigured a swapchain to [Vector2D: x: 24, y: 24] AR24 of length 2
[ERR] rbo: glCheckFramebufferStatus failed
[WARN] [AQ] Output WAYLAND-1: pending state has a non-released buffer??
[LOG] Added new monitor with name WAYLAND-1 at [0, 0] with size [1920, 1080], pointer 55bbac1f1660
[LOG] New monitor: WORKSPACEID 1, exists: 0
[LOG] [hookSystem] New hook event registered: createWorkspace
[LOG] [WLOutput (WAYLAND-1)] Registered global

v0.4.0 and 0.4.1
[LOG] New aquamarine keyboard with name wl_keyboard
[LOG] New output with name WAYLAND-1
[LOG] Applying monitor rule for WAYLAND-1
[ERR] [AQ] GBM: Allocating with modifiers failed, falling back to modifier-less allocation
[ERR] [AQ] GBM: Failed to allocate a GBM buffer: bo null
[ERR] [AQ] Couldn't allocate a gbm buffer with size [Vector2D: x: 1920, y: 1080] and format XR24
[ERR] [AQ] Swapchain: Failed acquiring a buffer
[ERR] Custom resolution FAILED, falling back to preferred
[ERR] Monitor WAYLAND-1 has NO PREFERRED MODE, and an INVALID one was requested<EMAIL_ADDRESS>[ERR] [AQ] GBM: Allocating with modifiers failed, falling back to modifier-less allocation
[ERR] [AQ] GBM: Failed to allocate a GBM buffer: bo null
[ERR] [AQ] Couldn't allocate a gbm buffer with size [Vector2D: x: 1920, y: 1080] and format XR24
[ERR] [AQ] Swapchain: Failed acquiring a buffer
[WARN] state.commit() failed in CMonitor::onCommit
[LOG] Added new monitor with name WAYLAND-1 at [-1, -1] with size [0, 0], pointer 5f5dea176f20
[LOG] New monitor: WORKSPACEID 1, exists: 0
[LOG] [hookSystem] New hook event registered: createWorkspace
[LOG] [AQ] GBM: Automatically selected format AB24 for new GBM buffer
[LOG] [AQ] GBM: Buffer is marked as multigpu, forcing linear
[ERR] [AQ] GBM: Allocating with modifiers and flags failed, falling back to modifiers without flags
[LOG] [AQ] GBM: Allocated a new buffer with size [Vector2D: x: 24, y: 24] and format AB24 with modifier 0 aka LINEAR
[LOG] [AQ] GBM: Automatically selected format AB24 for new GBM buffer
[LOG] [AQ] GBM: Buffer is marked as multigpu, forcing linear
[ERR] [AQ] GBM: Allocating with modifiers and flags failed, falling back to modifiers without flags
[LOG] [AQ] GBM: Allocated a new buffer with size [Vector2D: x: 24, y: 24] and format AB24 with modifier 0 aka LINEAR
[LOG] [AQ] Swapchain: Reconfigured a swapchain to [Vector2D: x: 24, y: 24] AB24 of length 2
[ERR] rbo: glCheckFramebufferStatus failed
[LOG] [IWaylandProtocol] Registered global [WLOutput (WAYLAND-1)]
[LOG] Applying monitor rule for WAYLAND-1
[ERR] [AQ] GBM: Allocating with modifiers failed, falling back to modifier-less allocation
[ERR] [AQ] GBM: Failed to allocate a GBM buffer: bo null
[ERR] [AQ] Couldn't allocate a gbm buffer with size [Vector2D: x: 1920, y: 1080] and format XR24
[ERR] [AQ] Swapchain: Failed acquiring a buffer
[ERR] Custom resolution FAILED, falling back to preferred
[ERR] Monitor WAYLAND-1 has NO PREFERRED MODE, and an INVALID one was requested<EMAIL_ADDRESS>[ERR] [GLES] Error in call at<EMAIL_ADDRESS>0x502
[ERR] rbo: glCheckFramebufferStatus failed
[LOG] [hookSystem] New hook event registered: render
[ERR] Failed to acquire swapchain buffer for WAYLAND-1
[ERR] renderer: couldn't beginRender()!
[LOG] [AQ] Output WAYLAND-1: wm_capabilities received
[LOG] [AQ] Output WAYLAND-1: configure toplevel with 1532x1672
[LOG] Applying monitor rule for WAYLAND-1
[ERR] [AQ] GBM: Allocating with modifiers failed, falling back to modifier-less allocation
[ERR] [AQ] GBM: Failed to allocate a GBM buffer: bo null
[ERR] [AQ] Couldn't allocate a gbm buffer with size [Vector2D: x: 1532, y: 1672] and format XR24
[ERR] [AQ] Swapchain: Failed acquiring a buffer
[ERR] Custom resolution FAILED, falling back to preferred
[ERR] Monitor WAYLAND-1 has NO PREFERRED MODE, and an INVALID one was requested<EMAIL_ADDRESS>[ERR] Failed to acquire swapchain buffer for WAYLAND-1
[ERR] renderer: couldn't beginRender()!
[LOG] [AQ] Output WAYLAND-1: configure surface with 1396

It seems the main differences are AQ cannot allocate some of the needed buffers for the WAYLAND-1 virtual monitor, and then it cannot start the renderer:
v0.4.0 and 0.4.1
[ERR] Failed to acquire swapchain buffer for WAYLAND-1
[ERR] renderer: couldn't beginRender()!
[LOG] [AQ] Output WAYLAND-1: wm_capabilities received
[LOG] [AQ] Output WAYLAND-1: configure toplevel with 1532x1672
[LOG] Applying monitor rule for WAYLAND-1
[ERR] [AQ] GBM: Allocating with modifiers failed, falling back to modifier-less allocation
[ERR] [AQ] GBM: Failed to allocate a GBM buffer: bo null
[ERR] [AQ] Couldn't allocate a gbm buffer with size [Vector2D: x: 1532, y: 1672] and format XR24
[ERR] [AQ] Swapchain: Failed acquiring a buffer
[ERR] Custom resolution FAILED, falling back to preferred
[ERR] Monitor WAYLAND-1 has NO PREFERRED MODE, and an INVALID one was requested<EMAIL_ADDRESS>[ERR] Failed to acquire swapchain buffer for WAYLAND-1
[ERR] renderer: couldn't beginRender()!
[LOG] [AQ] Output WAYLAND-1: configure surface with 1396

0.3.2
[LOG] Background created for monitor WAYLAND-1
[LOG] Renderer: checking for explicit KMS support for nvidia
[LOG] Renderer: Nvidia version file exists
[LOG] Renderer: Read nvidia version 560.35.03

[LOG] Renderer: Parsed nvidia major version: 560
[WARN] [AQ] Output WAYLAND-1: pending state has a non-released buffer??
[ERR] rbo: glCheckFramebufferStatus failed
[LOG] [hookSystem] New hook event registered: tick
[LOG] [AQ] Output WAYLAND-1: wm_capabilities received
[LOG] [AQ] Output WAYLAND-1: configure toplevel with 1532x1672
[LOG] Applying monitor rule for WAYLAND-1
[LOG] [AQ] GBM: Allocated a new buffer with size [Vector2D: x: 1532, y: 1672] and format XR24 with modifier<PHONE_NUMBER>20099860 aka BLOCK_LINEAR_2D,HEIGHT=4,KIND=6,GEN=2,SECTOR=1,COMPRESSION=0
[LOG] [AQ] GBM: Allocated a new buffer with size [Vector2D: x: 1532, y: 1672] and format XR24 with modifier<PHONE_NUMBER>20099860 aka BLOCK_LINEAR_2D,HEIGHT=4,KIND=6,GEN=2,SECTOR=1,COMPRESSION=0
[LOG] [AQ] Swapchain: Reconfigured a swapchain to [Vector2D: x: 1532, y: 1672] XR24 of length 2
[LOG] Set a custom mode<EMAIL_ADDRESS>(mode not found in monitor modes)
[LOG] output WAYLAND-1 succeeded basic test on format DRM_FORMAT_XRGB8888

can you bisect

https://github.com/hyprwm/aquamarine/commit/1e43d9a719818b06d133751f1b47e6ff9ce58d1b seems to break it.
GOOD
https://github.com/hyprwm/aquamarine/commit/8079098326bbe9f0034f499d61ec059aac4d8dcb
[LOG] New aquamarine output with name WAYLAND-1
[LOG] New output with name WAYLAND-1
[LOG] Applying monitor rule for WAYLAND-1
[LOG] [AQ] GBM: Allocated a new buffer with size [Vector2D: x: 1920, y: 1080] and format XR24 with modifier<PHONE_NUMBER>20099860 aka BLOCK_LINEAR_2D,HEIGHT=4,KIND=6,GEN=2,SECTOR=1,COMPRESSION=0
[LOG] [AQ] GBM: Allocated a new buffer with size [Vector2D: x: 1920, y: 1080] and format XR24 with modifier<PHONE_NUMBER>20099860 aka BLOCK_LINEAR_2D,HEIGHT=4,KIND=6,GEN=2,SECTOR=1,COMPRESSION=0
[LOG] [AQ] Swapchain: Reconfigured a swapchain to [Vector2D: x: 1920, y: 1080] XR24 of length 2
[LOG] CMonitorState::ensureBufferPresent: no buffer, attaching one from the swapchain for modeset being possible
[LOG] Set a custom mode<EMAIL_ADDRESS>(mode not found in monitor modes)
[LOG] output WAYLAND-1 succeeded basic test on format DRM_FORMAT_XRGB8888
[LOG] Monitor WAYLAND-1 -> destroyed all render data
[LOG] arrangeMonitors: 1 to arrange
[LOG] arrangeMonitors: WAYLAND-1 explicit [0, 0]
[LOG] arrangeMonitors: WAYLAND-1 xwayland [0, 0]
[LOG] Monitor WAYLAND-1 data dump: res<EMAIL_ADDRESS>scale 1.00, transform 0, pos 0x0, 10b 0
[LOG] [AQ] GBM: Automatically selected format AR24 for new GBM buffer
[LOG] [AQ] GBM: Buffer is marked as multigpu, forcing linear
[ERR] [AQ] GBM: Allocating with modifiers and flags failed, falling back to modifiers without flags
[LOG] [AQ] GBM: Allocated a new buffer with size [Vector2D: x: 24, y: 24] and format AR24 with modifier 0 aka LINEAR
[LOG] [AQ] GBM: Automatically selected format AR24 for new GBM buffer
[LOG] [AQ] GBM: Buffer is marked as multigpu, forcing linear
[ERR] [AQ] GBM: Allocating with modifiers and flags failed, falling back to modifiers without flags
[LOG] [AQ] GBM: Allocated a new buffer with size [Vector2D: x: 24, y: 24] and format AR24 with modifier 0 aka LINEAR
[LOG] [AQ] Swapchain: Reconfigured a swapchain to [Vector2D: x: 24, y: 24] AR24 of length 2
[ERR] rbo: glCheckFramebufferStatus failed
[WARN] [AQ] Output WAYLAND-1: pending state has a non-released buffer??
[LOG] Added new monitor with name WAYLAND-1 at [0, 0] with size [1920, 1080], pointer 5f33513d04c0

BAD
https://github.com/hyprwm/aquamarine/commit/1e43d9a719818b06d133751f1b47e6ff9ce58d1b
[LOG] New aquamarine output with name WAYLAND-1
[LOG] New output with name WAYLAND-1
[LOG] Applying monitor rule for WAYLAND-1
[ERR] [AQ] GBM: Allocating with modifiers failed, falling back to modifier-less allocation
[ERR] [AQ] GBM: Failed to allocate a GBM buffer: bo null
[ERR] [AQ] GBM: Allocating with modifiers failed, falling back to modifier-less allocation
[ERR] [AQ] GBM: Failed to allocate a GBM buffer: bo null
[LOG] [AQ] Swapchain: Reconfigured a swapchain to [Vector2D: x: 1920, y: 1080] XR24 of length 2
[LOG] CMonitorState::ensureBufferPresent: no buffer, attaching one from the swapchain for modeset being possible
[LOG] Set a custom mode<EMAIL_ADDRESS>(mode not found in monitor modes)
[LOG] output WAYLAND-1 succeeded basic test on format DRM_FORMAT_XRGB8888
error marshalling arguments for add: dup failed: Bad file descriptor
Error marshalling request: Bad file descriptor
[LOG] Monitor WAYLAND-1 -> destroyed all render data
[LOG] arrangeMonitors: 1 to arrange
[LOG] arrangeMonitors: WAYLAND-1 explicit [0, 0]
[LOG] arrangeMonitors: WAYLAND-1 xwayland [0, 0]
[LOG] Monitor WAYLAND-1 data dump: res<EMAIL_ADDRESS>scale 1.00, transform 0, pos 0x0, 10b 0
[LOG] [AQ] GBM: Automatically selected format AR24 for new GBM buffer
[LOG] [AQ] GBM: Buffer is marked as multigpu, forcing linear
[ERR] [AQ] GBM: Allocating with modifiers and flags failed, falling back to modifiers without flags
[LOG] [AQ] GBM: Allocated a new buffer with size [Vector2D: x: 24, y: 24] and format AR24 with modifier 0 aka LINEAR
[LOG] [AQ] GBM: Automatically selected format AR24 for new GBM buffer
[LOG] [AQ] GBM: Buffer is marked as multigpu, forcing linear
[ERR] [AQ] GBM: Allocating with modifiers and flags failed, falling back to modifiers without flags
[LOG] [AQ] GBM: Allocated a new buffer with size [Vector2D: x: 24, y: 24] and format AR24 with modifier 0 aka LINEAR
[LOG] [AQ] Swapchain: Reconfigured a swapchain to [Vector2D: x: 24, y: 24] AR24 of length 2
[ERR] rbo: glCheckFramebufferStatus failed
[WARN] [AQ] Output WAYLAND-1: pending state has a non-released buffer??
[LOG] Added new monitor with name WAYLAND-1 at [0, 0] with size [1920, 1080], pointer 5afd311bdf50

can you get a trace log in both cases? https://wiki.hyprland.org/Crashes-and-Bugs/#obtaining-a-trace-log

My understanding is the commit "gbm: improve trace logging around allocs " changed the logic and now the list of modifiers is different. The latest working version would use BLOCK_LINEAR_2D, HEIGHT=4,SECTOR=1,COMPRESSION=0 for the XR24 format. The new version can only find one modifier on the list for format XR24, and it's 0x0 (somewhere the list got lost or wasn't created).
BAD (just one modifier: 0)
[LOG] Applying monitor rule for WAYLAND-1
[TRACE] [AQ] GBM: Allocating a buffer: size [Vector2D: x: 1920, y: 1080], format XR24, cursor: false, multigpu: false, scanout: true
[TRACE] [AQ] GBM: Available formats: 57
[TRACE] [AQ] GBM: Using modifier-based allocation, modifiers: 1
[TRACE] [AQ] GBM: | mod 0x0
[ERR] [AQ] GBM: Allocating with modifiers failed, falling back to modifier-less allocation
[ERR] [AQ] GBM: Failed to allocate a GBM buffer: bo null
[TRACE] [AQ] GBM: Allocating a buffer: size [Vector2D: x: 1920, y: 1080], format XR24, cursor: false, multigpu: false, scanout: true
[TRACE] [AQ] GBM: Available formats: 57
[TRACE] [AQ] GBM: Using modifier-based allocation, modifiers: 1
[TRACE] [AQ] GBM: | mod 0x0
[ERR] [AQ] GBM: Allocating with modifiers failed, falling back to modifier-less allocation
[ERR] [AQ] GBM: Failed to allocate a GBM buffer: bo null
[LOG] [AQ] Swapchain: Reconfigured a swapchain to [Vector2D: x: 1920, y: 1080] XR24 of length 2
[LOG] CMonitorState::ensureBufferPresent: no buffer, attaching one from the swapchain for modeset being possible
[LOG] Set a custom mode<EMAIL_ADDRESS>(mode not found in monitor modes)
[LOG] output WAYLAND-1 succeeded basic test on format DRM_FORMAT_XRGB8888
[TRACE] [AQ] CWaylandOutput::scheduleFrame: reason 0, needsFrame false, frameScheduled false
error marshalling arguments for add: dup failed: Bad file descriptor
Error marshalling request: Bad file descriptor
[LOG] Monitor WAYLAND-1 -> destroyed all render data
[LOG] arrangeMonitors: 1 to arrange
[LOG] arrangeMonitors: WAYLAND-1 explicit [0, 0]
[LOG] arrangeMonitors: WAYLAND-1 xwayland [0, 0]
[TRACE] [AQ] CWaylandOutput::scheduleFrame: reason 6, needsFrame false, frameScheduled true
[LOG] Monitor WAYLAND-1 data dump: res<EMAIL_ADDRESS>scale 1.00, transform 0, pos 0x0, 10b 0
[TRACE] [AQ] GBM: Allocating a buffer: size [Vector2D: x: 24, y: 24], format INVALID, cursor: true, multigpu: true, scanout: true
[TRACE] [AQ] GBM: Available formats: 57
[LOG] [AQ] GBM: Automatically selected format AR24 for new GBM buffer
[LOG] [AQ] GBM: Buffer is marked as multigpu, forcing linear
[TRACE] [AQ] GBM: Using modifier-based allocation, modifiers: 1
[TRACE] [AQ] GBM: | mod 0x0
[ERR] [AQ] GBM: Allocating with modifiers and flags failed, falling back to modifiers without flags
[LOG] [AQ] GBM: Allocated a new buffer with size [Vector2D: x: 24, y: 24] and format AR24 with modifier 0 aka LINEAR
[TRACE] [AQ] GBM: Allocating a buffer: size [Vector2D: x: 24, y: 24], format INVALID, cursor: true, multigpu: true, scanout: true
[TRACE] [AQ] GBM: Available formats: 57
[LOG] [AQ] GBM: Automatically selected format AR24 for new GBM buffer
[LOG] [AQ] GBM: Buffer is marked as multigpu, forcing linear
[TRACE] [AQ] GBM: Using modifier-based allocation, modifiers: 1
[TRACE] [AQ] GBM: | mod 0x0
[ERR] [AQ] GBM: Allocating with modifiers and flags failed, falling back to modifiers without flags
[LOG] [AQ] GBM: Allocated a new buffer with size [Vector2D: x: 24, y: 24] and format AR24 with modifier 0 aka LINEAR
[LOG] [AQ] Swapchain: Reconfigured a swapchain to [Vector2D: x: 24, y: 24] AR24 of length 2
[ERR] rbo: glCheckFramebufferStatus failed
[TRACE] Failed to create cursor RB with format 875713089, mod 0
[TRACE] [pointer] hw cursor failed rendering
[TRACE] [pointer] hw transformed hotspot for WAYLAND-1: [Vector2D: x: 3, y: 1]
[TRACE] [AQ] CWaylandOutput::scheduleFrame: reason 3, needsFrame true, frameScheduled true
[TRACE] Output WAYLAND-1 rejected hardware cursors, falling back to sw
[TRACE] [AQ] CWaylandOutput::scheduleFrame: reason 6, needsFrame true, frameScheduled true
[TRACE] [AQ] CWaylandOutput::scheduleFrame: reason 3, needsFrame true, frameScheduled true
[WARN] [AQ] Output WAYLAND-1: pending state has a non-released buffer??
[LOG] Added new monitor with name WAYLAND-1 at [0, 0] with size [1920, 1080], pointer<PHONE_NUMBER>30

GOOD (explicitModifiers contains 12 modifiers)
[LOG] New aquamarine output with name WAYLAND-1
[LOG] New output with name WAYLAND-1
[LOG] Applying monitor rule for WAYLAND-1
[TRACE] [AQ] GBM: Allocating a buffer: size [Vector2D: x: 1920, y: 1080], format XR24, cursor: false, multigpu: false, scanout: true
[TRACE] [AQ] GBM: Using modifier-based allocation, modifiers: 12
[TRACE] [AQ] GBM: | mod 0x300000000606010
[TRACE] [AQ] GBM: | mod 0x300000000606011
[TRACE] [AQ] GBM: | mod 0x300000000606012
[TRACE] [AQ] GBM: | mod 0x300000000606013
[TRACE] [AQ] GBM: | mod 0x300000000606014
[TRACE] [AQ] GBM: | mod 0x300000000606015
[TRACE] [AQ] GBM: | mod 0x300000000e08010
[TRACE] [AQ] GBM: | mod 0x300000000e08011
[TRACE] [AQ] GBM: | mod 0x300000000e08012
[TRACE] [AQ] GBM: | mod 0x300000000e08013
[TRACE] [AQ] GBM: | mod 0x300000000e08014
[TRACE] [AQ] GBM: | mod 0x300000000e08015
[LOG] [AQ] GBM: Allocated a new buffer with size [Vector2D: x: 1920, y: 1080] and format XR24 with modifier<PHONE_NUMBER>20099860 aka BLOCK_LINEAR_2D,HEIGHT=4,KIND=6,GEN=2,SECTOR=1,COMPRESSION=0
[TRACE] [AQ] GBM: Allocating a buffer: size [Vector2D: x: 1920, y: 1080], format XR24, cursor: false, multigpu: false, scanout: true
[TRACE] [AQ] GBM: Using modifier-based allocation, modifiers: 12
[TRACE] [AQ] GBM: | mod 0x300000000606010
[TRACE] [AQ] GBM: | mod 0x300000000606011
[TRACE] [AQ] GBM: | mod 0x300000000606012
[TRACE] [AQ] GBM: | mod 0x300000000606013
[TRACE] [AQ] GBM: | mod 0x300000000606014
[TRACE] [AQ] GBM: | mod 0x300000000606015
[TRACE] [AQ] GBM: | mod 0x300000000e08010
[TRACE] [AQ] GBM: | mod 0x300000000e08011
[TRACE] [AQ] GBM: | mod 0x300000000e08012
[TRACE] [AQ] GBM: | mod 0x300000000e08013
[TRACE] [AQ] GBM: | mod 0x300000000e08014
[TRACE] [AQ] GBM: | mod 0x300000000e08015
[LOG] [AQ] GBM: Allocated a new buffer with size [Vector2D: x: 1920, y: 1080] and format XR24 with modifier<PHONE_NUMBER>20099860 aka BLOCK_LINEAR_2D,HEIGHT=4,KIND=6,GEN=2,SECTOR=1,COMPRESSION=0
[LOG] [AQ] Swapchain: Reconfigured a swapchain to [Vector2D: x: 1920, y: 1080] XR24 of length 2
[LOG] CMonitorState::ensureBufferPresent: no buffer, attaching one from the swapchain for modeset being possible
[LOG] Set a custom mode<EMAIL_ADDRESS>(mode not found in monitor modes)
[LOG] output WAYLAND-1 succeeded basic test on format DRM_FORMAT_XRGB8888
[TRACE] [AQ] CWaylandOutput::scheduleFrame: reason 0, needsFrame false, frameScheduled false
[LOG] Monitor WAYLAND-1 -> destroyed all render data
[LOG] arrangeMonitors: 1 to arrange
[LOG] arrangeMonitors: WAYLAND-1 explicit [0, 0]
[LOG] arrangeMonitors: WAYLAND-1 xwayland [0, 0]
[TRACE] [AQ] CWaylandOutput::scheduleFrame: reason 6, needsFrame false, frameScheduled true
[LOG] Monitor WAYLAND-1 data dump: res<EMAIL_ADDRESS>scale 1.00, transform 0, pos 0x0, 10b 0
[TRACE] [AQ] GBM: Allocating a buffer: size [Vector2D: x: 24, y: 24], format INVALID, cursor: true, multigpu: true, scanout: true
[LOG] [AQ] GBM: Automatically selected format AR24 for new GBM buffer
[LOG] [AQ] GBM: Buffer is marked as multigpu, forcing linear
[TRACE] [AQ] GBM: Using modifier-based allocation, modifiers: 1
[TRACE] [AQ] GBM: | mod 0x0
[ERR] [AQ] GBM: Allocating with modifiers and flags failed, falling back to modifiers without flags
[LOG] [AQ] GBM: Allocated a new buffer with size [Vector2D: x: 24, y: 24] and format AR24 with modifier 0 aka LINEAR
[TRACE] [AQ] GBM: Allocating a buffer: size [Vector2D: x: 24, y: 24], format INVALID, cursor: true, multigpu: true, scanout: true
[LOG] [AQ] GBM: Automatically selected format AR24 for new GBM buffer
[LOG] [AQ] GBM: Buffer is marked as multigpu, forcing linear
[TRACE] [AQ] GBM: Using modifier-based allocation, modifiers: 1
[TRACE] [AQ] GBM: | mod 0x0
[ERR] [AQ] GBM: Allocating with modifiers and flags failed, falling back to modifiers without flags
[LOG] [AQ] GBM: Allocated a new buffer with size [Vector2D: x: 24, y: 24] and format AR24 with modifier 0 aka LINEAR
[LOG] [AQ] Swapchain: Reconfigured a swapchain to [Vector2D: x: 24, y: 24] AR24 of length 2
[ERR] rbo: glCheckFramebufferStatus failed
[TRACE] Failed to create cursor RB with format 875713089, mod 0
[TRACE] [pointer] hw cursor failed rendering
[TRACE] [pointer] hw transformed hotspot for WAYLAND-1: [Vector2D: x: 3, y: 1]
[TRACE] [AQ] CWaylandOutput::scheduleFrame: reason 3, needsFrame true, frameScheduled true
[TRACE] Output WAYLAND-1 rejected hardware cursors, falling back to sw
[TRACE] [AQ] CWaylandOutput::scheduleFrame: reason 6, needsFrame true, frameScheduled true
[TRACE] [AQ] CWaylandOutput::scheduleFrame: reason 3, needsFrame true, frameScheduled true
[WARN] [AQ] Output WAYLAND-1: pending state has a non-released buffer??
[LOG] Added new monitor with name WAYLAND-1 at [0, 0] with size [1920, 1080], pointer 6507b1ee4330

yeah, this looks wrong.


[1.3.0 Coursier] unresolved dependencies

Sbt version: 1.3.0
Problem:
resolvers += Resolver.url("...", url("http://..."))
  (Patterns("[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]")).withAllowInsecureProtocol(true),

sbt 1.3.0 with Coursier enabled fails to resolve some dependencies:
[error]   not found: http://[...]/x-logback-access/0.1/x-logback-access-0.1.pom

(If this helps, .pom file is not present, as it is an ivy, not maven repository).
Disabling Coursier (ThisBuild / useCoursier := false) solves the problem.

@kamilkloch Thanks for the report.
Do you mind reporting this also to the upstream plz? (Coursier)

@eed3si9n Please check if the Coursier issue https://github.com/coursier/coursier/issues/1351 is correct. Thanks!

Update: problem persists in sbt 1.3.4. It looks that for ivy to work coursier expects url of the form
ivy:http://

yet sbt rejects it as a malformed url.
(Command-line coursier properly resolves the ivy repo with ivy:http://).

That's interesting. So maybe we can work around this by translating Ivy URL resolver to ivy:http:// style Coursier repository?

If it works both for the 'old and 'new' (coursier) artifact fetching, it would be fantastic.
FYI, quoting from the coursier web page (https://get-coursier.io/docs/cli-overview.html#usage):
Repositories starting with ivy: are assumed to be Ivy repositories, specified with an Ivy pattern, like ivy:https://repo.typesafe.com/typesafe/ivy-releases/[organisation]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]. Else, a Maven repository is assumed.

I found a workaround here: https://github.com/sbt/librarymanagement/blob/50ca3902c379cf4056ec2a677dfe7fd30c3640cc/core/src/main/scala/sbt/librarymanagement/ResolverExtra.scala#L37
Custom Ivy repo in Coursier works by setting the isMavenCompatible flag to false:
resolvers += Resolver.url("...", url("http://..."))
  (Patterns(false, "...."))


Command tracking

Objective
adds a feature command_tracking to show the original construction site of commands that panic or generate warnings. when the feature is not enabled there is no additional overhead.
before:
2023-07-23T23:52:09.574217Z  WARN bevy_ecs::world: error[B0003]: Could not despawn entity 7044v4 because
it doesn't exist in this World.

after without feature:
2023-07-23T23:52:13.024403Z  WARN bevy_ecs::world: error[B0003]: Could not despawn entity 7044v4 because
it doesn't exist in this World. (Run with `features="bevy/command_tracking"` to show the command origin)

after with --features = "bevy/command_tracking" :
2023-07-23T23:53:39.397276Z  WARN bevy_ecs::world: error[B0003]: Could not despawn entity 7044v4 because
it doesn't exist in this World. (Command origin: "crates\scene_runner\src\update_world\gltf_container.rs:157:30")

Solution
most commands now include a CallTracker member. when the feature is disabled this is a ZST, and when enabled it contains the call site from which the command was constructed.
the command apply functions pass this to entity_mut_tracked which displays the caller if it panics.
regarding the "no overhead" claim: godbolt shows no overhead for the CallTracker construction when #[inline(always)]'d, but i am not sure how to check if that's still true across crate boundaries.

Migration Guide
many commands now need a caller member, which should be ::defaulted. if you want to use your caller's origin for tracking instead of your own location, annotate your function with [track_caller].

thanks, i can't believe i didn't know about that. it doesn't have the line number, but otherwise it's better than this.
i wonder if it should be more discoverable / better documented, or is it already obvious and i just missed it?

It's very much not discoverable at all!

i'll make a pr to add this suggstion to the panic/warning messages instead


fixed two typos and included some additional info

Fixed two typos:
ANID n (DP)&n→(DP) correct is → was >
SBB (P)-A→(P) correct is A was 1
Some additional info: internal RAM 0x30-0x3F is used by the system and should not be changed, OP1-OP4 are commonly referred to as Xreg, Yreg, Zreg and Wreg in the Sharp literature with BCD values.
Thanks for creating this README. This README is the best resource for the SC61860 instruction set!

Thanks a lot for your help. Always glad to hear that people continue to find this info useful.
Do you have more information on how the system is using 0x30 - 0x3f? Might be slightly out of scope for this document, but then again I don't know of any machine other than the Sharp PCs using the SC61860.

There is some information in the following journals on memory addresses of various Sharp PC: https://www.sharp-pc-1600.de/Eng_Download_Handbuecher.html see e.g. https://www.sharp-pc-1600.de/PDF/Sharper_03_1987.pdf pages 11 and 12 that shows (34H) as internal RAM error number "ERL". Some other are listed too. I've inspected the ROMs of some of the Sharp PC and noticed that 0x30-0x3F are used by the system. I don't know the use of all of these, I only have:
ERN = 0x34                      ; error number
STATE = 0x35                    ; BASIC state 1=BREAK, 2, 4, 8, 16, 32, 64=(CUR_EXEC) is valid

CUR_EXEC_L  = 0x38              ; current program executed line address low order byte
CUR_EXEC_H  = 0x39              ; current program executed line address high order byte
CUR_START_L = 0x3E              ; current program executed start low order byte
CUR_START_H = 0x3F              ; current program executed start high order byte

SEARCH_ADDR_L = 0x3A            ; search address low order byte
SEARCH_ADDR_H = 0x3B            ; search address high order byte
SEARCH_LINE_L = 0x3C            ; search line number low order byte
SEARCH_LINE_H = 0x3D            ; search line number high order byte

I use these in some old-fashioned 80s-inspired projects, e.g. https://github.com/Robert-van-Engelen/Prolly where src/regs.asm defines the ones listed above. If some of these internal RAM registers are modified, it can hang or crash the system or make it misbehave.
Another interesting vintage CPU that I love to write code for is the ESR-L 8-bit CPU with 20-bit address space used by the Sharp E500(S), for which I have various system and CPU resources collected and included with my FORTH-500 project: https://github.com/Robert-van-Engelen/Forth500
Hope this is useful!

Thanks! Yes, that's definitely useful. I'll think about how to best
include it in the readme.
Wow, ESR-L is even stranger than ESR-H. Looks like they took some
inspiration from the 6809. Might not be a coincidence either - I faintly
remember reading somewhere that it was actually Motorola who
manufactured the chips.


add: api

针对常用的设备应用做了api接口

 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.qxz1rba seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Rails 4.2.7 uninitialized constant Bot error

Hi,
I tried to include facebook-messenger according to the documentation but I get error uninitialized constant Bot (NameError)when I start the Rails server. How should I fix it?

Hi @enderahmetyurt. Did you follow the instructions for eager loading it, too?

Yes I did all of instructions. I fixed the problem with installing master branch.

Alright, cool!


fix: adds displayNames, other standardizations

What does it do?

Adds displayNames for everything
Standardizes export statements
Refactors some of the remaining funcs to follow the component patterns
Adds a PR template
I think this finally: closes #33, closes #32, closes #31

Background

Skips over Network components as to avoid  conflicts with @ryanio's work
A draft of the style checklist

LGTM

cool!


Change upstream OWNERS

This commit changes owners of the project to people from OpenShift.

For now can we enforce git history commits with our standard prefix to make sure rebases can be smoother later?

For now can we enforce git history commits with our standard prefix to make sure rebases can be smoother later?

do you mean UPSTREAM: <carry>: ?

Yeah that's what I mean, would prefer to see the commit messages with the prefixes for now, preferably enforced by CI, then we can work out if we need them/drop it at a later date


Add GFPGAN support in the web interface

A first iteration could be to pass parameters to dream_web.py the same way as dream.py then for the -G option I suggest adding a extra_arguments field in the UI.
Then in a second iteration (if someone is motivated) it could be fully configurable in the UI.

Thanks, I was wondering if it was possible.
I'd like this too.


change expired date of one token

When user updating their information, I create a new token and I want to set invalid for previous token. What should I do?

+1

I had some ideas, see #143.


Support Python 3.13

Description
A RC for Python 3.13 is available in conda-forge. We can readily test it.
Questions/Ideas

Maybe after #223  is merged?

Python 3.13 was released on October 7, 2024: https://docs.python.org/3/whatsnew/3.13.html.
Hence, we could already support it.