Reusing sprite indices in animations

While reading /examples/bin/animationStates.js I found no way of reusing animation indices for different sprite states.
Imagine one would want the animation sequence [0, 1, 2, 1], where index 1 is for example standing still and 0 and 2 are using the left and the right foot to walk, then there is no way of executing this custom sprite index order? (playAnimation() only accepts starting and ending index it seems)
Or is this solved using some other facility of hexi?
Btw, thanks for a nice library!

ScrollingWorldCamera file has an example of animation states.
 elf.states = {     up: 0,     left: 9,     down: 18,     right: 27,     walkUp: [1, 8],     walkLeft: [10, 17],     walkDown: [19, 26],     walkRight: [28, 35]   };

Yes, but it seems to me that it's not allowed to customize the order of the frame indexes.
Instead of playing frame indexes [28, 29, 30, 31, 32, 33, 34, 35], I might want to play [28, 30, 32, 34, 34, 36] for example.
A good reason for being able to customize this is that tilesets sometimes does not provide frames in the same order as the animations are in order to save space. If an image in an animation appears many times it might only be placed at one single place in the tileset image file.

Hi neckutreck,,
Yes, you're correct, the feature you are requesting is currently out-of-scope.
But if anyone wishes to contribute this feature, please visit the SpriteUtilities module, and open and Issue with a proposal on how to implement it.
Here's the relevant code:
https://github.com/kittykatattack/spriteUtilities/blob/master/src/spriteUtilities.js#L133

@neckutrek Oops, I completely forgot! :smile:
You can use the frames method to supply a custom array of non-contiguous tileset frames that could be used for sequential animation frames:
https://github.com/kittykatattack/spriteUtilities#frames
...Would that work for you?

Hi,
That looks very promising, thanks!

Med vänlig hälsning / Best regards,
Marcus A Johansson
+46 (0)70 315 73 77
2016-08-29 17:44 GMT+02:00 kittykatattack<EMAIL_ADDRESS>
@neckutrek https://github.com/neckutrek Oops, I completely forgot! 😄
You can use the frames method to supply a custom array of non-contiguous
tileset frames that could be used for sequential animation frames:
https://github.com/kittykatattack/spriteUtilities#frames
...Would that work for you?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/kittykatattack/hexi/issues/15#issuecomment-243163466,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADmjhSLKwhyRjElJ5mCyrGv1gnXapkDdks5qkv5bgaJpZM4JuZjT
.


Create a command for each template

It would be helpful to create a command for each template:

It is much simpler to define the set of parameters usable only by a specific template
Create a series of APIs which are clear and easily usable by third-party developers

Implemented in dc328c8


Force user SKU quote

ProductFees() api does not encript SKU containing forward slash as described here #431
As SKU is part of URL some of the chars in SKU could yield issue with URL formatting so we get SellingApiForbiddenException due invalid URL
Fix should handle this behavior.
Also there is option to disable this conversion if needed as I imagine there will be cases where this will be problematic.
Currently it will default to True so all SKU will be quoted.

@saleweaver
Actually just wanted to check other endpoints to see how it look
As per my experience all places where SKU is part of URL will be sensitive to this and similar issues (due how URL is formatted it will most likely throw SellingApiForbiddenException as URL does not exist)
Will check it out

Thanks @abrihter. Yes, that's my experience too, when I tested it last not all endpoints behaved the same.. That might have changed by now though.

@saleweaver
I have tested behavior related to SKU on all endpoints that have SKU as part of URL and same issue can be replicated, so as far as I can see there are no exceptions
If we want to handle this at a higher level, options would be to quote all args in helpers.fill_query_params (this should work but there is some risk involved due nature of endpooints [as you stated above some endpoints could handle this in different way])
Also less elegant solution could be that, at same place (helpers.fill_query_params), we filter by path and handle just those specific paths to ensure compatibility for those tested/whitelisted endpoints
Doing it like this will force this conversion for all requests so maybe we could consider some option to to control this behavior

@zonwizard @saleweaver
I have also tested with skus with spaces and similar and only above
solution worked for me (quote was hitting same exception as before)
I was testing with US marketplace
Will test again later to confirm on this
tnx
On Wed, Mar 30, 2022, 5:27 PM zonwizard @.***> wrote:

@abrihter https://github.com/abrihter, @saleweaver
https://github.com/saleweaver,
testing this solution I've found out that it works for skus with forward
slash, but it breaks for all skus containing white spaces.
This is because quote_plus() replaces ' ' with '+' , whereas the white
space shoud be encoded with '%20' .
I tested a different solution using quote() with empty string as safe
param, instead of quote_plus()
from urllib.parse import quote
...
if force_safe_sku:
#handle forward slash issue in SKU
seller_sku = quote(seller_sku, safe='')
This works with both forward slash and white spces.
Let me know what you think.
Thanks a lot for your work.
—
Reply to this email directly, view it on GitHub
https://github.com/saleweaver/python-amazon-sp-api/pull/462#issuecomment-1083287680,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHPXS4FDQ2JOTAMUXPRPUQLVCRXGZANCNFSM5RRYOFDA
.
You are receiving this because you were mentioned.Message ID:
@.***>

@abrihter ,
for quote to work make sure to pass safe="".
Otherwise it will use the default value which is "/" as safe char and not encript it.
I tested on EU region.

@zonwizard @saleweaver
I have just tested this one (with space in SKU) and I do not have any issues (US marektplace)
Can you try this snippet so we can confirm we are on same page and we try to resolve this issue
from sp_api.api import Products

token = "Atzr|...."

sku = "sku with space"
res = Products(refresh_token=token)).get_product_pricing_for_skus([sku])
print(res.payload)

@abrihter
I've tested the Products().get_product_pricing_for_skus([sku])
and this works fine when sku contains white spaces.
In this case the sku list is passed as a parameter to the Products API and it is not part of the endpoint so the quote_plus encoding ('+' in place of ' ' ) works.
The problem arise with ProductFees().get_product_fees_estimate_for_sku because the sku is part of the ProductFees API endpoint :
/products/fees/v0/listings/{SellerSKU}/feesEstimate
In this case the right encoding for the white space  should be %20 and that's why quote_plus does not work.
Have you tested:
ProductFees().get_product_fees_estimate_for_sku("sku with space")
Let me know.

@abrihter ,
ok, great!
Thanks a lot for your help

@zonwizard
as I remember, we already discussed this in different thread
will try to link it here and we can see what can be done
On Thu, Mar 31, 2022, 9:51 AM zonwizard @.***> wrote:

@abrihter https://github.com/abrihter
I've tested the Products().get_product_pricing_for_skus([sku])
and this works fine when sku contains white spaces.
In this case the sku list is passed as a parameter to the Products API
and it is not part of the endpoint so the quote_plus encoding ('+' in place
of ' ' ) works.
The problem arise with ProductFees().get_product_fees_estimate_for_sku
because the sku is part of the ProductFees API endpoint :
/products/fees/v0/listings/{SellerSKU}/feesEstimate
In this case the right encoding for the white space should be %20 and
that's why quote_plus does not work.
Have you tested:
ProductFees().get_product_fees_estimate_for_sku("sku with space")
Let me know.
—
Reply to this email directly, view it on GitHub
https://github.com/saleweaver/python-amazon-sp-api/pull/462#issuecomment-1084221579,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHPXS4E4KCRWIJAFN5CPXMDVCVKONANCNFSM5RRYOFDA
.
You are receiving this because you were mentioned.Message ID:
@.***>


Automated Billing Pre-launch Tweaks

On /app/user/plans and /pricing, change the row order top to bottom to: Transcoding, Recording Storage, Streaming
In the pricing chart, on the Recording Storage row for Personal add "None"
In the pricing chart, on the Streaming row for Personal, change "Up to 10 concurrent viewers" to "Up to 10 concurrent viewers / account". The per account is important.
In the pricing chart, on the Transcoding and Streaming rows for Pro, change "$0.005" to " $0.005 USD" and "$0.01" to "$0.01 USD" respectively.
When I create a new account, verify, navigate back to the tab telling me to check my email /app/user/verify, click "home" (the livepeer icon in the upper left corner), and then click the dashboard button, I don't go to /app/user/ but incorrectly to /app/user/verify.
The sessions table is all messed up. Remove it. The bug is in prod too. Already ticketed

And of course, we need migration plan for existing users to move to the Personal Tier.

Thanks @wohlner. Will work through these tweaks today.

When I create a new account, verify, navigate back to the tab telling me to check my email /app/user/verify, click "home" (the livepeer icon in the upper left corner, and then click the dashboard button, I don't go to /app/user/ but incorrectly to /app/user/verify.

@wohlner this is intended behavior implemented by @iameli since we don't want a user accessing the dashboard and streaming until they verify their account, so we redirect them to the verification page until they do. Perhaps we should remove the link to the dashboard from the nav until a user verifies their email to avoid confusion. Thoughts?

Sorry, just saw this notification. @adamsoffer I agree, I don't want the user accessing the dashboard and streaming until they verify their account. But what if they verify and navigate back to the tab that was already open to /app/user/verify (not the tab that opens after they click verify in the email)? At least when they refresh that original tab, they should be able to navigate to the dashboard or be redirected to /app/user/.
What do you think? This isn't a dealbreaker for launching automated billing. Just a lil I noticed when testing.


corrections at a glance adjustments

AQCU-617

Coverage increased (+0.02%) to 86.606% when pulling 9047d98ae02706b1e9b10c7aef0f50ce594e4209 on lindsaycarr:master into cf55765c5d3dbd12d25f15936060f03303236e28 on USGS-R:master.


refactor: improve parseBody function and docs

[x] Refactored parseBody and function to improve readability and maintainability.
[x] Simplified and clarified examples in JSDoc comments
[X] Improving performance from tests

I had some problems with Deno's process.env, but I fixed them

Ready @yusukebe

@mgrithm
Thanks. Merging now.


Adjust Footer

Please add a footer to all pages that asks people to request new articles or correct dead links via the Issues page. I'm not entirely sure how to do this, but this page should help: https://just-the-docs.github.io/just-the-docs/docs/customization/#custom-footer

I have added _includes/footer_custom.html file that changes the footer for all pages, and now can be edited to the proper format.


[Tour of Beam] [Task] Learning content for "Basic Transforms" module

What needs to happen?
Create learning content and challenge for "Tour of Beam"::"Basic Transforms" module consisting of following unit:

Common Transforms / Filter
Common Transforms / Aggregation / Count
Common Transforms / Aggregation / Sum
Common Transforms / Aggregation / Mean
Common Transforms / Aggregation / Min
Common Transforms / Aggregation / Max
Common Transforms / WithKeys
Challenge/New motivating example (Numbers-based)

Issue Priority
Priority: 3

.take-issue


HasValue and != null incorrect translation to sql

I have a linq query that fails in sql because .HasValue or != null gets translated into IS NOT NULL rather than case statements.
This may reflect a misunderstanding on my part, but this seems to be the case.
linq query (note the fee_base, fee_discount, fee_latefee, those values can come from a team, and if not there the age group the team belongs to, and if not there the league the age group belongs to.  This is a coalesce, or isnull scenario except that 0 is allowed so have to test, can't coalesce)
List<Job_AvailableTeamRegistration_Detail> listJobAvailableTeams_Detail = await (
            from t in db.teams
            join j in db.Jobs on t.jobID equals j.jobID
            join ag in db.agegroups on t.agegroupID equals ag.agegroupID
            join jl in db.Job_Leagues on ag.leagueID equals jl.leagueID
            where
                t.jobID == cd.JobParams.id
                && jl.jobID == cd.JobParams.id
                && t.active == true
                && t.bAllowSelfRostering == true
            select new Job_AvailableTeamRegistration_Detail()
            {
                dob_min = t.dobMin ?? ag.dobMin ?? null,
                dob_max = t.dobMax ?? ag.dobMax ?? null,
                fee_deposit = t.perRegistrantDeposit ?? 0,
                fee_base = (t.perRegistrantFee.HasValue && t.perRegistrantFee > 0) ? t.perRegistrantFee : (ag.rosterFee.HasValue && ag.rosterFee > 0) ? ag.rosterFee : 0,
                fee_discount = (t.discountFee.HasValue && t.discountFee > 0 && DateTime.Now > t.discountFeeStart && DateTime.Now < t.discountFeeEnd) ? t.discountFee : (ag.discountFee.HasValue && ag.discountFee > 0 && DateTime.Now > ag.discountFeeStart && DateTime.Now < ag.discountFeeEnd) ? ag.discountFee : (jl.discountFee.HasValue && jl.discountFee > 0 && DateTime.Now > jl.discountFeeStart && DateTime.Now < jl.discountFeeEnd) ? jl.discountFee : 0,
                fee_latefee = (t.lateFee != null && t.lateFee > 0 && DateTime.Now > t.lateFeeStart && DateTime.Now < t.lateFeeEnd) ? t.lateFee : (ag.lateFee != null && ag.lateFee > 0 && DateTime.Now > ag.lateFeeStart && DateTime.Now < ag.lateFeeEnd) ? ag.lateFee : (jl.lateFee != null && jl.lateFee > 0 && DateTime.Now > jl.lateFeeStart && DateTime.Now < jl.lateFeeEnd) ? jl.lateFee : 0,
                gender = t.gender,
                bAddProcessingFees = j.bAddProcessingFees,
                fee_processing = 0,
                grad_year_max = t.grad_year_max ?? ag.grad_year_max ?? null,
                grad_year_min = t.grad_year_min ?? ag.grad_year_min ?? null,
                roster_count = (from c in listTeamIDCounts where c.teamID == t.teamID select c.playerCount).SingleOrDefault(),
                roster_max = t.maxCount,
                school_grade_max = t.school_grade_max ?? ag.school_grade_max ?? null,
                school_grade_min = t.school_grade_min ?? ag.school_grade_min ?? null,
                teamID = t.teamID,
                teamName = t.teamName
            }
        ).ToListAsync();

SQL SERVER 2014 sql translation:
exec sp_executesql N'SELECT [t].[dobMin], [ag].[dobMin], NULL, [t].[dobMax], [ag].[dobMax], NULL, [t].[perRegistrantDeposit], [t].[perRegistrantFee] IS NOT NULL, [t].[perRegistrantFee], [ag].[rosterFee] IS NOT NULL, [ag].[rosterFee], [t].[discountFee] IS NOT NULL, [t].[discountFee], @__Now_6 > [t].[discountFeeStart], @__Now_7 < [t].[discountFeeEnd], [ag].[discountFee] IS NOT NULL, [ag].[discountFee], @__Now_9 > [ag].[discountFeeStart], @__Now_10 < [ag].[discountFeeEnd], [jl].[discountFee] IS NOT NULL, [jl].[discountFee], @__Now_12 > [jl].[discountFeeStart], @__Now_13 < [jl].[discountFeeEnd], [t].[lateFee] IS NOT NULL, [t].[lateFee], @__Now_16 > [t].[lateFeeStart], @__Now_17 < [t].[lateFeeEnd], [ag].[lateFee] IS NOT NULL, [ag].[lateFee], @__Now_19 > [ag].[lateFeeStart], @__Now_20 < [ag].[lateFeeEnd], [jl].[lateFee] IS NOT NULL, [jl].[lateFee], @__Now_22 > [jl].[lateFeeStart], @__Now_23 < [jl].[lateFeeEnd], [t].[gender], [j].[bAddProcessingFees], [t].[grad_year_max], [ag].[grad_year_max], NULL, [t].[grad_year_min], [ag].[grad_year_min], NULL, [t].[teamID], [t].[maxCount], [t].[school_grade_max], [ag].[school_grade_max], NULL, [t].[school_grade_min], [ag].[school_grade_min], NULL, [t].[teamName]
FROM [Leagues].[teams] AS [t]
INNER JOIN [Jobs].[Jobs] AS [j] ON [t].[jobID] = [j].[jobID]
INNER JOIN [Leagues].[agegroups] AS [ag] ON [t].[agegroupID] = [ag].[agegroupID]
INNER JOIN [Jobs].[Job_Leagues] AS [jl] ON [ag].[leagueID] = [jl].[leagueID]
WHERE ([t].[jobID] = @__cd_JobParams_id_0) AND ([jl].[jobID] = @__cd_JobParams_id_1) AND ([t].[active] = 1) AND ([t].[bAllowSelfRostering] = 1)',N'@__Now_6 datetime,@__Now_7 datetime,@__Now_9 datetime,@__Now_10 datetime,@__Now_12 datetime,@__Now_13 datetime,@__Now_16 datetime,@__Now_17 datetime,@__Now_19 datetime,@__Now_20 datetime,@__Now_22 datetime,@__Now_23 datetime,@__cd_JobParams_id_0 uniqueidentifier,@__cd_JobParams_id_1 uniqueidentifier',@__Now_6='2015-06-23 09:08:52.960',@__Now_7='2015-06-23 09:08:52.960',@__Now_9='2015-06-23 09:08:52.960',@__Now_10='2015-06-23 09:08:52.960',@__Now_12='2015-06-23 09:08:52.960',@__Now_13='2015-06-23 09:08:52.960',@__Now_16='2015-06-23 09:08:52.963',@__Now_17='2015-06-23 09:08:52.963',@__Now_19='2015-06-23 09:08:52.963',@__Now_20='2015-06-23 09:08:52.963',@__Now_22='2015-06-23 09:08:52.963',@__Now_23='2015-06-23 09:08:52.963',@__cd_JobParams_id_0='2ACEA123-D57A-E311-BF81-F04DA202060B',@__cd_JobParams_id_1='2ACEA123-D57A-E311-BF81-F04DA202060B'

@toddtsic simple workaround could be to execute the projection on the client. It won't incur (much of) a perf hit since translation of joins and filter seem to be fine and therefore they can run on the server.
However we should be doing a correct translation either way, so its definitely a bug.

Thanks muamar, that's exactly what I did and yes it works just fine.  Do you know if there are any estimates of specific ef components being available esp stored procedures.  I have an important app that I want to deliver the second mvc6 go public, and this is probably the most important feature I'm missing right now.  Lack of lazy loading turns out not to be much of a problem, it makes me code more efficiently, picking my joins and exact target fields.  This issue here is also easily addressed...

perhaps @rowanmiller and/or @divega can shed more light on the timelines & schedule

We don't have a timeline to share for SPROC support. You can query from them using the new FromSql capabilities, but saving isn't supported yet. It's close to the top of our backlog but it won't be in the initial RTM for ASP.NET 5.

Thanks for the update Rowan. Is there an ETA on RTM and will the RTM advise
against production?  I'll probably be ready with a new app shortly but
won't release to clients until MS blesses the release with "can use in
production systems"...
Todd
On Mon, Jun 29, 2015 at 10:51 AM, Rowan Miller<EMAIL_ADDRESS>wrote:

We don't have a timeline to share for SPROC support. You can query from
them using the new FromSql capabilities, but saving isn't supported yet.
It's close to the top of our backlog but it won't be in the initial RTM for
ASP.NET 5.
—
Reply to this email directly or view it on GitHub
https://github.com/aspnet/EntityFramework/issues/2450#issuecomment-116774363
.

@toddtsic I can't give you the dates as it is up to the ASP.NET team to announce them (I know they are working on publically sharing the schedule). You will be fine to use it in production. We won't be recommending EF7 as a general replacement for EF6 until we have sproc support etc. but production use will be fully supported as long as you are ok with the limitations.

Hmm, I'm wondering whether I should insert EF 6x.  Do you agree with the
recipe below from so?
You need to manually set the connection string when creating the context
since it can't get it from the web.config
so you can do this
public class MyContext : DbContext {
public MyContext(string connectionString) : base(connectionString) {
}}
var context = new MyContext("myConnectionString");
if you want to get the connection string from the config.json, then try this
IConfiguration configuration = new
Configuration().AddJsonFile("config.json");var connectionString =
configuration["Data:DefaultConnection:ConnectionString"]);
and if you want to inject the context into the DI Container, then I added a
factory like this
public static class MyContextFactory{
public static MyContext GetContext() {
IConfiguration configuration = new
Configuration().AddJsonFile("config.json");
return new
MyContext(configuration["Data:DefaultConnection:ConnectionString"]);
}
}
and then added this in startup.cs
services.AddTransient((a) => MyContextFactory.GetContext());
share http://stackoverflow.com/a/29572219/5019943edit
http://stackoverflow.com/posts/29572219/edit
answered Apr 10 at 23:32
http://stackoverflow.com/users/187283/tom
Tom http://stackoverflow.com/users/187283/tom
332110
On Mon, Jun 29, 2015 at 12:05 PM, Rowan Miller<EMAIL_ADDRESS>wrote:

@toddtsic https://github.com/toddtsic I can't give you the dates as it
is up to the ASP.NET team to announce them (I know they are working on
publically sharing the schedule). You will be fine to use it in production.
We won't be recommending EF7 as a general replacement for EF6 until we have
sproc support etc. but production use will be fully supported as long as
you are ok with the limitations.
—
Reply to this email directly or view it on GitHub
https://github.com/aspnet/EntityFramework/issues/2450#issuecomment-116798367
.

similar to #3703


ERROR 1045 (28000): Access denied for user 'lsn'@'localhost' (using password: NO)

please help me solve this
ERROR 1045 (28000): Access denied for user '-p'@'localhost' (using password: NO)

Hi @vishnukanth-chittayala
Where do you get this error?

In command prompt I got while trying to connect to MySQL for my project I
did my project in spring boot
It is not allowing me to connect to database
And not allowing me to connect me as root admin
On Thu, Feb 27, 2020, 3:03 PM Flavius<EMAIL_ADDRESS>wrote:

Hi @vishnukanth-chittayala https://github.com/vishnukanth-chittayala
Where do you get this error?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/presslabs/mysql-operator/issues/485?email_source=notifications&email_token=AOUQZCNLNHFXPTK6UBAHBZ3RE6CEZA5CNFSM4K34D5IKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENDUB3Y#issuecomment-591872239,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOUQZCKCWGWRNQQDEK27KCLRE6CEZANCNFSM4K34D5IA
.

You have to let the operator create a user for you. You can do that by filling the secret with the USER PASSWORD and DATABASE keys as in this example, make sure to be base64 encoded. Also, you have to create a new cluster because once the cluster is initialized the bootstrap user is ignored.
Then in your application just connect to <cluster_name>-mysql-master using the user and password that you've already set in the secret.
Or using the MySQL client:
mysql -h <cluster_name>-mysql-master -u<user-name> -p<user-password>

Please let me know if this helps.

I tried creating new user and created a database it is running but still
not giving me permission saying access denied
Same error with finally saying yes
On Thu, Feb 27, 2020, 4:21 PM Flavius<EMAIL_ADDRESS>wrote:

You have to let the operator create a user for you. You can do that by
filling the secret with the USER PASSWORD and DATABASE keys as in this
example
https://github.com/presslabs/mysql-operator/blob/09db565ddb40d3a1a0e84c2753a4eeb42868a562/examples/example-cluster-secret.yaml#L11,
make sure to be base64 encoded. Also, you have to create a new cluster
because once the cluster is initialized the bootstrap user is ignored.
Then in your application just connect to <cluster_name>-mysql-master
using the user and password that you've already set in the secret.
Or using the MySQL client:
mysql -h <cluster_name>-mysql-master -u -p
Please let me know if this helps.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/presslabs/mysql-operator/issues/485?email_source=notifications&email_token=AOUQZCP5E4R772NDCBOTAYTRE6LJLA5CNFSM4K34D5IKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEND4LYQ#issuecomment-591906274,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOUQZCOM5OR2S2AZRLZCHGTRE6LJLANCNFSM4K34D5IA
.

The error says that you are not using a password. Not sure how can I help you.
Try to list MySQL users by running:
$ kubectl exec -it <cluster-name>-mysql-0 bash
bash-4.2$ mysql --defaults-file=/etc/mysql/client.conf
mysql> select * from mysql.user;

I will try what you said if did not get it then I will let you know
On Thu, Feb 27, 2020, 7:16 PM Flavius<EMAIL_ADDRESS>wrote:

The error says that you are not using a password. Not sure how can I help
you.
Try to list MySQL users by running:
$ kubectl exec -it -mysql-0 bash
bash-4.2$ mysql --defaults-file=/etc/mysql/client.conf
mysql> select * from mysql.user;
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/presslabs/mysql-operator/issues/485?email_source=notifications&email_token=AOUQZCNXPQYZ76QJZXB7R5LRE673FA5CNFSM4K34D5IKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENEODJI#issuecomment-591978917,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOUQZCMKDTERPF2HR5XLXZ3RE673FANCNFSM4K34D5IA
.

Sorry I don't remember now it was long time ago
On Thu, Feb 27, 2020, 3:03 PM Flavius<EMAIL_ADDRESS>wrote:

Hi @vishnukanth-chittayala https://github.com/vishnukanth-chittayala
Where do you get this error?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/presslabs/mysql-operator/issues/485?email_source=notifications&email_token=AOUQZCNLNHFXPTK6UBAHBZ3RE6CEZA5CNFSM4K34D5IKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENDUB3Y#issuecomment-591872239,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOUQZCKCWGWRNQQDEK27KCLRE6CEZANCNFSM4K34D5IA
.

The error says that you are not using a password. Not sure how can I help you. Try to list MySQL users by running:
$ kubectl exec -it <cluster-name>-mysql-0 bash
bash-4.2$ mysql --defaults-file=/etc/mysql/client.conf
mysql> select * from mysql.user;

Then I list all the users. So I found that root and the user I created lost.


KeyboardTrackingView hidden by word suggestions

The default keyboard provides word suggestions, which appear to cover the KeyboardTrackingView

My bad, it had to do with the wrapping view extending beyond the edge of the screen


[android, ios(?)] storybook examples throws Invariant Validation: input range must be monotonically increasing 0,-10

Issue details
Please provide issue details here - What did you expect to happen? What happened instead?
Steps to reproduce
Please provide necessary steps for reproduction of this issue. Describe the exact steps a maintainer has to take to make the problem occur. If the problem is non-trivial to reproduce, please link a repository or provide some code snippets.
(A screencast can be useful for visual bugs, but it is not a substitute for a textual description.)
Please specify which versions of the RN and ParallaxScroll

react-native x.x.x
react-native-parallax-scroll x.x.x

Affected platforms

iOS
Android
Both

Screenshots / Screencast / Code Snippets (Optional)
// code here

Can confirm that this is also happening on iOS

Hi @gazedash @doomsower! Thanks for this issue
Sorry about that, it was my fault, just forgot to check all the stories in the previous commit.

Still hitting the same error

Hi@VansonLeung, can you provide more details(RN version, ) and make sure that you are using the latest code?


Subscription to Repo with pushes - doesnt trigger

Bitbucket is connected, and the Channel is successfull subscribed with pushes.
Bitbucket webhook is created but return error 400 (no message)
Is this a known issue?

Ok, reconfiguration of Bitbucket and Mattermost stuff as described in Docu removes 400 error.
Webhook now have 200 but no message in channel where i have subscribed to this repo with feature "pushes"

@Flinch , can you take a look and see if you can get a consistent repro. Thanks.


Changed manual exception testing for JUnit API recommendation

This is a test refactoring.
Problem:
The Exception Handling test smell occurs when the test outcome is manually determined through pass or fail method calls, which are dependent on the production method throwing an exception, generally inside a try/catch block.
Solution:
We propose using JUnit's exception handling to automatically pass/fail the test instead of writing custom exception handling code or throwing an exception. In this particular case, JUnit 5 assertThrows() was used to properly handle the expected exception.
Result:
Before:
try {
    xb.closeTag("abcd");
    fail("Should have caused IllegalArgumentException");
} catch (IllegalArgumentException e) {
}

After:
assertThrows(IllegalArgumentException.class, () -> {
    xb.closeTag("abcd");
});

Thanks, the PR looks good.
Do you intend to make more changes here?

Thanks, the PR looks good.
Do you intend to make more changes here?

@vlsi, that would be all.
As a single contribution, our intention is to collect developers' opinions about the proposed solution.
Thank you for your comments!

I think small cleanups like you proposed are worth doing, however, the codebase is huge, and it would be a disaster if you create 100500 pull requests like that.
Migration from JUnit4 to JUnit5 APIs is welcome.
It would be ok if you migrated, for example, "all try-catch => assertThrows within :core module". In other words, if you see there's something to be improved, it would be great to improve similar things at once instead of multiple pull requests with more-or-less the same changes.
Note that "pull request created" and "pull request commented" triggers notifications for multiple developers who need to open the PR and check what is there. Please use that time wisely.

Ha, it is more-or-less the same feedback @Palmr gives in https://github.com/LMAX-Exchange/disruptor/pull/357#issuecomment-803554879
In other words, we would likely decline a PR if it updates a single test only.

@eas5 as @vlsi said, we are in OK with such changes, but I don't understand, what you wanted to achieve with this single test PR? If you look at our codebase, you will find, that we are already aware of the assertThrows method and are using it in newer test classes.


Api rule more

could you add api rules @request.headers.origin == "https://your-allowed-domain.com"``

It should be already supported as long as the header is sent with the request.

I need the list rule api to work domain1 and domain2

Again, if you send the header with your request you'll be able to filter it.
There is no guarantee that the Origin header will be present with the request, users can submit whatever headers they want. Even browsers doesn't add it always, if that's your expectations - see https://stackoverflow.com/questions/42239643/when-do-browsers-send-the-origin-header-when-do-browsers-set-the-origin-to-null/42242802.
If you want to apply CORS restrictions, you can start the executable with --origins=domain1,domain2.
In any case, please don't treat the issues tracker as chatgpt and try to clearly elaborate on your use case to understand the bigger picture and what actually you are trying to, otherwise it is just lazy and low effort.


Modify MINIMUM_ALLOWED_NUMBER_CLASSES definition

Currently MINIMUM_ALLOWED_NUMBER_CLASSES refers to the TOTAL number of classes a taxonomy has.
However, a taxonomy may have more than MINIMUM_ALLOWED_NUMBER_CLASSES but all their classes can be of type "other" and, hence, no valid test is performed.
The best way to solve this would be by changing MINIMUM_ALLOWED_NUMBER_CLASSES definition so it can correspond to the NON-OTHER number of classes a taxonomy has. I.e., only classifications different than "other" are counted.

@mozzherina, please note that for now you have no action regarding this issue. It is assigned to me and I'll work on it in February. After closing this issue, I'll create another one regarding its implementation.


Ds update exonum 4

Overview

See: https://jira.bf.local/browse/ECR-XYZ
Definition of Done

[ ] There are no TODOs left in the code
[ ] Change is covered by automated tests
[ ] The coding guidelines are followed
[ ] Public API has Javadoc
[ ] Method preconditions are checked and documented in the Javadoc of the method
[ ] Changelog is updated if needed (in case of notable or breaking changes)
[ ] The continuous integration build passes

Coverage increased (+0.4%) to 86.572% when pulling<PHONE_NUMBER>f49e9813e710bf3eaf5ceef780aa73 on ds-update-exonum-4 into e3fd3832aeb8f1e4ef4824e85b010cbfd6c9a31e on master.


Compiling problems

Describe your problem here.

Source
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
No, I didn't

use flixel 4.11.0, and flixel addons 2.11.0

use flixel 4.11.0, and flixel addons 2.11.0

okay I did that, now more errors popped up

install visual studio 2019

install visual studio 2019

okay I also did that, but literally nothing changed

make sure you also got the necessary components

make sure you also got the necessary components

okay, sorry for asking this many questions, but what are the necessary components

make sure you also got the necessary components

okay, sorry for asking this many questions, but what are the necessary components

https://github.com/FunkinCrew/Funkin#compiling-game

so ive gotten everything thats necessary. But ive gotten some problems, can anyone help?

 so ive gotten everything thats necessary.  But ive gotten some problems, can anyone help?

use flixel 4.11.0, and flixel addons 2.11.0

aight thx bro

you're welcome

use flixel 4.11.0, and flixel addons 2.11.0

not working


Added parse_with_file_loader: overrides direct access to the filesystem while loading external tilesets.

Hi, I would like to use external tileset in my game, yet my resources are not in the filesystem, they are packed in an archive. So I am adding a function parse_with_file_loader(reader, file_loader) that allows me to supply a closure that is invoked when external tileset is loaded. Do you think this can be upstreamed in any form?

@koalefant This looks very useful! Would you be able to rebase the change to resolve the conflict in lib.rs?
Also, @PieKing1215, I see you've already merged this change. Would you be available for providing a code review? I'm looking for additional people to help maintain this crate now that it has moved to the @mapeditor organization.

Also, @PieKing1215, I see you've already merged this change. Would you be available for providing a code review? I'm looking for additional people to help maintain this crate now that it has moved to the @mapeditor organization.

Sure, I can review this as well.
I'm using this library pretty extensively in a project so I've liberally merged/fixed several things in my fork, including this PR which I needed for it to work well with ggez.
I have a few of my own small additions that I should really make PRs for as well.

Closing due to inactivity. Feel free to reopen.


SAK-30325 - Unwrap HTML files for direct link streaming

Because HTML files use a wrapper class that does not extend from
BaseResourceEdit, and the DbContentService has many places that depend
on casting to read the private m_filePath property, a ClassCastException
was being thrown (and swallowed, and turned into a 404 error) when
attempting to view HTML files.
This change is less than ideal, but it works around the problem by
allowing the wrapped resource to be accessed and cast. A better fix
would rework the relationship between these classes (nesting, casting,
type checking) and firm up better interfaces/base classes.
There is also a safety check added before the cast so any other
ContentResource implementations that make it here will just return null
for the direct link -- causing them to be sent by the server directly.

The ol' swallowed ClassCastException resulting in a 404!
Thank you. This looks good.


Batching of writes

I have a few apps that will write high volumes of points from a single application. It would be good if I could just write these and they would be batched internally in InfluxData.
If you like the idea and can point me in the right direction I can look at implementing a WriteBatched method that will allow the batching of data to be written per database.

Hi,
batching already exists. influxDbClient.Client.WriteAsync() has a second overload which accepts IEnumerable<Point> so you can use that.
Or did you mean something like batching in intervals (for example every few seconds) where you could simply commit single/multiple points within that time frame and the library would trigger every X seconds and submit all the commits to the database?
Perhaps something like this?
public class ReadingsCollectionHandler
{
    /// <summary>
    /// Concurrent readings queue.
    /// <see cref="http://www.codethinked.com/blockingcollection-and-iproducerconsumercollection"/>
    /// </summary>
    public BlockingCollection<ReadingMessageDTO> ReadingsCollection { get; set; }

    private InfluxDbProvider _influxDbProvider;

    public ReadingsCollectionHandler()
    {
        _influxDbProvider = new InfluxDbProvider(); // This is just a simple wrapper around InfluxData.Net

        ReadingsCollection = new BlockingCollection<ReadingMessageDTO>();
    }

    public async Task RegisterReadingsQueueHandler()
    {
        await Task.Delay(1000);
        HandleReadingsQueue();
        RegisterReadingsQueueHandler();
    }

    private async Task HandleReadingsQueue()
    {
        var readingsCount = ReadingsCollection.Count;
        IList<ReadingMessageDTO> readings = new List<ReadingMessageDTO>();

        for (var i = 0; i < readingsCount; i++)
        {
            ReadingMessageDTO reading;
            var dequeueSuccess = ReadingsCollection.TryTake(out reading);

            if (dequeueSuccess)
            {
                readings.Add(reading);
            }
            else
            {
                throw new Exception("Could not dequeue the collection");
            }
        }

        if (readings.Count > 0)
        {
            await _influxDbProvider.SaveReadings(readings);
        }
    }
}

That's kind of what I used to batch stuff in a project I'm working on. The only thing left in this example is to fill the ReadingsCollection using .Add(). I used the BlockingCollection because I have a multi-threaded environment so this was a very convenient way of dealing with a thread-safe collection.
I didn't think about how to package this nicely into the library but you could try if you want. :)

I was talking about batching at time intervals since I have a large number of single write events and don't want to get locked with number of HTTP requests. I was looking at implementing it in the library since I will probably end up using it in multiple projects. I will have a read over your example and see what I can do :smiley:. Thanks for the example of what you did.

Cool! You're welcome. :)


Convert PageAccessor to PagedListResponse

Replaces PageAccessor with PagedListResponse
Adds Page and FixedSizeCollection objects
Adds unit tests

Current coverage is 60.70% (diff: 66.66%)

Merging #105 into master will increase coverage by 0.39%

@@             master       #105   diff @@
==========================================
  Files            42         45     +3
  Lines          2011       2087    +76
  Methods           0          0
  Messages          0          0
  Branches        305        317    +12
==========================================
+ Hits           1213       1267    +54
- Misses          726        744    +18
- Partials         72         76     +4

Powered by Codecov. Last update a5e136e...18cc1ca

Additional changes in this PR:

Change visibility of ApiCallable decorator methods to package-private
Add function to ApiCallSettings.Builder to set initial timeout and disable retries

PTAL

PTAL

LGTM - let @shinfan approve too.

LGTM - let @shinfan approve too.

LGTM


add getopt-generics

The Travis build failed due to restrictive upper bounds. Let me know if the error message doesn't make sense.

You mean restrictive lower bounds, right? getopt-generics depends on base-compat >= 0.8, which is not yet on stackage. I guess I just have to wait.
If I understand correctly stackage nightly will always try to include the latest versions of all packages. Is there a way for me to see why base-compat-0.8.* is not in stackage nightly yet?

You're correct, my mistake.
If you open up build-constraints.yaml and search for base-compat, you'll find this line which refers to https://github.com/simonmichael/hledger/issues/245. The issue is that hledger hasn't been updated to be compatible with base-compat-0.8 yet, so I put in a temporary upper bound.
Pinging @simonmichael

Thanks very much!


optimize: add method for create Logger and public Level method

What type of PR is this?
optimize
What this PR does / why we need it (English/Chinese):

zh: add method for create Logger and public Level method for easy to wrap for hlog
cn: 添加创建 logger 的方法以及将 Level 改为可导出，方便hlog的代码套壳。

Which issue(s) this PR fixes:

close


etcdserver: move accessor auth RPCs out of applier

There are auth RPCs in the etcdserver applier that can have linearization at the API level using the read index facility from 3.1. The RPCs should be moved out of the applier since there's no need to have them there any more and the applier is a critical path. Ideally the API level handling would be in 3.3 and the full removal from the applier path would be in 3.4.
/cc @mitake

@heyitsanthony I see, I'll work on it.


The readme for the ReceiveMessagesWithRSC sample should mention that the Azure Bot resource must have the MsTeams channel enabled.

Hi. I followed the readme for the ReceiveMessagesWithRSC sample, and got to step 2: "Create a Bot Registration In Azure portal". I clicked that link to double check whether this is an AZ AD App Registration, or an Azure Bot resource. It was the latter. I've created those before, so I quickly created another. I didn't think at the time to configure the MsTeams channel for it...
As a result, I got a "Something went wrong" error later, in Teams, which I eventually tracked down through the logs to an equally vague "AddAppBotToChatRosterFailed". It was a random reply here that led me to the solution.
Since even the Azure Bot documentation doesn't have an explicit reminder like "After creation, make sure to configure the right bot channels for your needs", I figured such a reminder definitely has a place in the readme of the ReceiveMessagesWithRSC sample. Can you please add it?
I had a look randomly through some of the other samples, and they don't seem to need an Azure Bot resource - just an AZ AD registration. I suppose there will be a few I missed, in which case they could do with adding the same reminder, IMO.
Of course, we wouldn't need this reminder if the actual error could be surfaced in the Teams client... Something like: "MsTeams not configured as a bot channel for this app, please check <...>". That github issue I linked to above is also about this, I think.
Thanks

@kostasvl - We will check on it and redirect it to doc team accordingly.

In the navigation pane, select Channels to configure Microsoft in Azure Bot.

Redirecting to doc team for documentation enhancement.

Thanks @Prasad-MSFT.
It turns out there's another important requirement, which is also not necessarily intuitive, and it is not directly mentioned in either the sample's readme, or the Azure bot documentation the readme links to (as far as I can tell): For the bot to work with Teams, it must be configured as Multitenant! (see here for example)
Then, for completeness, you may as well also add this reminder in the readme. It's the final necessary step, I think: "Go to the Configuration page and configure the messaging endpoint. It needs to be "{ngrok https url}/api/messages".
At least I hadn't forgotten that last thing :D.

@kostasvl - Could you please confirm if your issue has resolved or still looking for any help?

@kostasvl - We have updated all the samples for README to enable the Teams channel in Azure Bot.

We are closing this issue for now, Please feel free to reopen it, if required.


Add link to Github commit

Add a hyperlink on the commit date to open the Github commit in a new page.

Thanks, I like it. I prefer to show the link only for the active commit to avoid accidentally clicking on the link when trying to change the commit. You can use isActive to choose what to render.
Also, can yo remove the extra space {" "} at the end of line 45?

One more thing, check if there is a commitUrl: isActive && commit.commitUrl

@pomber thanks, made the changes. Sorry if my method is strange, I'm not really a React dev :)

Thanks!


[BUG]

I'm trying to remove the unwanted components from FormBuilder in Angular 8. I tried passing the options similar to JavaScript version of formIO but it doesn't give any change in the UI.

We're currently addressing a backlog of GitHub issues, and as part of this effort, some inactive issues may be marked as closed. This isn't a dismissal, but a step toward more efficient tracking.
If you feel the issue is still relevant, please re-open and we'll ensure it gets the attention it deserves. Your understanding is appreciated as we work to enhance our open-source responsiveness.


Error installing package in NextJs app 15.0.0

Got this error while installing
PS C:\Rushi\Home\learn\nextjs\newblogsite> npm i @radix-ui/react-icons
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving<EMAIL_ADDRESS>npm error Found<EMAIL_ADDRESS>npm error node_modules/react
npm error<EMAIL_ADDRESS>from the root project
npm error
npm error Could not resolve dependency:
npm error peer<EMAIL_ADDRESS>|| ^17.x || ^18.x" from<EMAIL_ADDRESS>npm error node_modules/@radix-ui/react-icons
npm error   @radix-ui/react-icons@"*" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error C:\Users\rushi\AppData\Local\npm-cache_logs\2024-10-22T14_16_16_835Z-eresolve-report.txt
npm error A complete log of this run can be found in: C:\Users\rushi\AppData\Local\npm-cache_logs\2024-10-22T14_16_16_835Z-debug-0.log
Log report file:
2024-10-22T14_16_16_835Z-eresolve-report.txt

Package.json file:
{
"name": "newblogsite",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"lucide-react": "^0.453.0",
"next": "15.0.0",
"react": "19.0.0-rc-65a56d0e-20241020",
"react-dom": "19.0.0-rc-65a56d0e-20241020",
"tailwind-merge": "^2.5.4",
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "15.0.0",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
}

This PR will resolve this: https://github.com/radix-ui/icons/pull/184

Please merge this PR to fix the issue https://github.com/radix-ui/icons/pull/184

The PR https://github.com/radix-ui/icons/pull/184 was opened on Aug 26, today is Oct 29 and it's still not merged, can you imagine the number of projects affected from this :(

Closed by https://github.com/radix-ui/icons/pull/184


[T3A4][W13-A4] Tan Jian Hong, Denver

Ready for review

Remember to use separate branches for different tutorial activity.


Add support for deterministically linked binaries on macOS to lldb.

When ld64 links a binary deterministically using the flag ZERO_AR_DATE,
it sets a timestamp of 0 for N_OSO members in the symtab section, rather
than the usual last modified date of the object file. Prior to this
patch, lldb would compare the timestamp from the N_OSO member against
the last modified date of the object file, and skip loading the object
file if there was a mismatch. This patch updates the logic to ignore the
timestamp check if the N_OSO member has timestamp 0.
The original logic was added in https://reviews.llvm.org/rL181631 as a
safety check to avoid problems when debugging if the object file was out
of date. This was prior to the introduction of deterministic build in
ld64. lld still doesn't support deterministic build.
Other code in llvm already relies on and uses the assumption that a
timestamp of 0 means deterministic build. For example, commit
9ccfddc39d4d27f9b16fcc72ab30d483151d6d08 adds similar timestamp checking
logic to dsymutil, but special cases timestamp 0. Likewise, commit
0d1bb79a0413f221432a7b1d0d2d10c84c4bbb99 adds a long comment describing
deterministic archive, which mostly uses timestamp 0 for determinism.
Patch from Erik Chen<EMAIL_ADDRESS>Differential Revision: https://reviews.llvm.org/D65826
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@368199 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit f6ba8da08fdfbdb2ec190a5725729493a7ce5e51)
rdar://problem/54046060

@swift-ci test and merge


docs: fix broken links for versioned docs (v0.3.x)

This PR continues on fixing broken links in the docs website, this time all broken links for v0.3.x
Full list: https://docs.google.com/spreadsheets/d/1Fvob__PD6KSwvrISxpAoLdHf-d7P_youQUDhdrnTw10/edit?usp=sharing

Legitimate, thanks for the fix @berkeli merging this one.


Highlight critical paths

The child node of each node that is currently responsible for the worst risk should be highlighted or highlightable.
This could be done by drawing the respective edge thicker or in a different color (coordinate with #58), or draw the child node with a thicker border.
Responsibility is only valid for some logical connections (e.g., OR. For AND it does not make sense as all child nodes contribute to the risk semantically).
Responsibility is determined by the aggregation function, thus somehow the API would change to tell Drawio from the aggregation function which edge (or child node) to highlight (is there a way around that?).

@SimonUngerUniPassau Feel free to contribute ideas.

[...] Responsibility is determined by the aggregation function, thus somehow the API would change to tell Drawio from the aggregation function which edge (or child node) to highlight (is there a way around that?).

@Mq89 I guess there won't be any way arround changing the API. Functions are executed in the interpreter and the return values either contain an object with the aggregated attributes for a node or a value for the node's computed attribute. Hence, signaling new information (in our case highlighting nodes/edges) will definitely need a change to the API, e.g., expecting an attribute in the returned object.
However, maybe someone else has a different opinion?


Enforce nonduplicate names in destinations

Problem
There is no check upon duplicate names provided in the names given by the user as destinations in the temporary buffer.
Solution

Put all dest names in one of our ordered sets.
If more than 0 duplicates are found, clear the temporary buffer and enforce renaming them until all destinations are unique

Notes
This step is useful along the way to providing a cycle-handling feature.

Ensuring that all destinations are unique seems less confounding to the process we are creating for handling cycles than allowing for overwriting a destination

Putting the destinations in an ordered set allows us to quickly compare it to the source set. See #11

Closed with #80


SAM parser

This is required for the aligner cache.

Ready for review once tests pass.

Adding in the blank file.
@RNAer, the other tests that are failing are completely independent of this PR.  Do you know what is happening?

did you pull the latest from biocore/micronota?

Some branch confusions.  Closing this in favor for #58


Remove all (non-community pool) module accounts from derive-account-balances

We should remove all module accounts from the produced airdrop balances. (https://github.com/osmosis-labs/osmosis/blob/main/cmd/osmosisd/cmd/balances_from_state_export.go)
Alot of the balances are from module accounts. (Unvested developer tokens, all bonded osmo, etc.). You can get the module accounts from a genesis file hackily as cat state_export.json | grep  -A 9 -B 1 /cosmos.auth.v1beta1.ModuleAccount > module_account_list.txt
We should parse all of those in golang, and remove them (except the community-pool) from the output derived balances.

Is there an easy way to check if an account is a module account, or should we create a list using the hacky method you mentioned and hardcode it in as a "blacklist"?
It feels as though the cleaner approach would be to have some sort of check while the lists are being generated so that we don't have to manually update the module account list if it changes (especially if superfluid staking accounts are considered modules in which case some change to the airdrop list generation process will be necessary).

Its unfortunately pretty inconvenient atm.
Basically you have to call GetAccount. Then you have to see if you can type-cast the account into a authtypes.ModuleAccount. (You should attempt type casting into *authtypes.ModuleAccount. It needs both

Its unfortunately pretty inconvenient atm.
Basically you have to call GetAccount. Then you have to see if you can type-cast the account into a authtypes.ModuleAccount. (You should attempt type casting into *authtypes.ModuleAccount. Its best to attempt type casting into both)

Would the idea be that if trying to typecast a given account into a authtypes.ModuleAccount throws an error than we keep that specific account in the list? If so, would it make sense to introduce that logic roughly in the following way?:
for currentAccount in airdrop list {
   acc = GetAccount(currentAccount)
   err = *authtypes.ModuleAccount(acc)
   if err != nil {break}
}


Content Harvester pdf_to_thumb failed: Couldn't initialise file.

[This issue broken out from #783]
Error notes from 2024 March 4

Log for 27626-page 0 - permalink to failed dag run - permalink to content_harvest map index 0 - permalink that includes collection id

This is the Nuxeo collection running: https://nuxeo.cdlib.org/nuxeo/nxdoc/default/0ea470f5-f2be-42b3-bf25-9c632eaf5c0f/view_documents (includes 10 Nuxeo documents)
The error seems to be happening while running this PDF: https://nuxeo.cdlib.org/nuxeo/nxdoc/default/8bd64cb5-d7c3-49c4-a8b2-78b4911745d4/view_documents -- named ar2015-17_1_127committeeonartsandlectures_andersendog.pdf (25 MB)
The error message is:

pdf_to_thumb command failed: ['/usr/bin/convert', '-quiet', '-strip', '-format', 'png', '-quality', '75', '/tmp/ar2015-17_1_127committeeonartsandlectures_andersendog.pdf[0]', '/tmp/ar2015-17_1_127committeeonartsandlectures_andersendog.png']
returncode was: 1
output was:
   **** Error: Couldn't initialise file.
               Output may be incorrect.

Requested FirstPage is greater than the number of pages in the file: 0
   No pages will be processed (FirstPage > LastPage).
convert: no images defined `/tmp/ar2015-17_1_127committeeonartsandlectures_andersendog.png' @ error/convert.c/ConvertImageCommand/3229.

; 12841)

I was able to reproduce this error using a local content harvester docker container talking to the s3 files:
Modify content_harvester/docker-compose.yml to retrieve mapped data from s3, while you're at it, mount /tmp/ which is where intermediary derivatives are placed:
@@ -17,9 +17,13 @@ services:
       - ../rikolti_content:/rikolti_content
       - ./:/content_harvester
       - ../utils:/rikolti/utils
+      - ../content_harvester_tmp:/tmp
     environment:
-      - MAPPED_DATA=file:///rikolti_data
+      - MAPPED_DATA=s3://rikolti-data
       - WITH_CONTENT_URL_DATA=file:///rikolti_data
       - CONTENT_ROOT=file:///rikolti_content
       - NUXEO_USER=${NUXEO_USER}
       - NUXEO_PASS=${NUXEO_PASS}
+      - AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
+      - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
+      - AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN}

Then run from the rikolti folder:
$ docker build -f Dockerfile.content_harvester -t rikolti/content_harvester .
$ cd content_harvester
$ vi env.local
# add AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, NUXEO_USER, NUXEO_PASS
$ source env.local
$ docker compose run -d content_harvester

Then from Docker Desktop > Containers > Container > Exec tab, or however you want to run a command on the container:
(the arguments for content_harvester.by_page are visible in the Airflow Logs as an array with the key "command" in the dictionary passed to the container for this task instance)
# bash
$ python3 -m content_harvester.by_page \
    '27626' \
    '["27626/vernacular_metadata_2024-03-05T02:22:41/mapped_metadata_2024-03-05T02:22:57/data/r-p0.jsonl"]' \
    '27626/vernacular_metadata_2024-03-05T02:22:41/mapped_metadata_2024-03-05T02:22:57/with_content_urls_2024-03-05T02:23:19/' \
    'nuxeo.nuxeo'

Since I had mounted /tmp/ to my filesystem, and since the error was raised before the content harvester could cleanup tmp behind itself, I was able to find the pdf on my machine. I verified that I could open it with Preview, and that the pdf seemed intact.
I tried running the command from the error message above with the quiet flag replaced by the verbose flag:
/usr/bin/convert \
    -verbose \
    -strip \
    -format png \
    -quality 75 \
    /tmp/ar2015-17_1_127committeeonartsandlectures_andersendog.pdf[0] \
    /tmp/ar2015-17_1_127committeeonartsandlectures_andersendog.png

Which got me the underlying ghostscript command:
'gs' \
 -sstdout=%stderr \
 -dQUIET \
 -dSAFER \
 -dBATCH \
 -dNOPAUSE \
 -dNOPROMPT \
 -dMaxBitmap=500000000 \
 -dAlignToPixels=0 \
 -dGridFitTT=2 \
 '-sDEVICE=pngalpha' \
 -dTextAlphaBits=4 \
 -dGraphicsAlphaBits=4 \
 '-r72x72' \
 -dFirstPage=1 \
 -dLastPage=1 \
 '-sOutputFile=/tmp/magick-hMfUU-gs3SHxXG1t9611rNtEto6nAVEG%d'  \
 '-f/tmp/magick-GLpFxs5HGGk4D0JkpWG6UCEXeQ8ivbI9'  \
 '-f/tmp/magick-wfiFBZwpAGWvepeQFsVbhTB99bphRNcx'

I'm not sure why ImageMagick is giving ghostscript two input files, but I removed the -dQUIET, -dNOPAUSE, and -dNOPROMPT flags, and updated the input filename to point to the PDF file (the imagemagick tmp files were apparently already cleaned up and not available)
gs \
 -sstdout=%stderr \
 -dSAFER \
 -dBATCH \
 -dMaxBitmap=500000000 \
 -dAlignToPixels=0 \
 -dGridFitTT=2 \
 '-sDEVICE=pngalpha' \
 -dTextAlphaBits=4 \
 -dGraphicsAlphaBits=4 \
 '-r72x72' \
 -dFirstPage=1 \
 -dLastPage=1 \
 '-sOutputFile=amy-test%d' \
 '-f/tmp/ar2015-17_1_127committeeonartsandlectures_andersendog.pdf'

This got me the following error:
GPL Ghostscript 10.0.0 (2022-09-21)
Copyright (C) 2022 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
   **** Error: Couldn't initialise file.
               Output may be incorrect.

Requested FirstPage is greater than the number of pages in the file: 0
   No pages will be processed (FirstPage > LastPage).

The following errors were encountered at least once while processing this file:
        circular reference to indirect object

   **** This file had errors that were repaired or ignored.
   **** Please notify the author of the software that produced this
   **** file that it does not conform to Adobe's published PDF
   **** specification.

I tried running the imagemagick command from the error message above directly from the command line with the quiet flag replaced by the verbose flag:
/usr/bin/convert \
    -verbose \
    -strip \
    -format png \
    -quality 75 \
    /tmp/ar2015-17_1_127committeeonartsandlectures_andersendog.pdf[0] \
    /tmp/ar2015-17_1_127committeeonartsandlectures_andersendog.png

Which got me the underlying ghostscript command:
'gs' \
 -sstdout=%stderr \
 -dQUIET \
 -dSAFER \
 -dBATCH \
 -dNOPAUSE \
 -dNOPROMPT \
 -dMaxBitmap=500000000 \
 -dAlignToPixels=0 \
 -dGridFitTT=2 \
 '-sDEVICE=pngalpha' \
 -dTextAlphaBits=4 \
 -dGraphicsAlphaBits=4 \
 '-r72x72' \
 -dFirstPage=1 \
 -dLastPage=1 \
 '-sOutputFile=/tmp/magick-hMfUU-gs3SHxXG1t9611rNtEto6nAVEG%d'  \
 '-f/tmp/magick-GLpFxs5HGGk4D0JkpWG6UCEXeQ8ivbI9'  \
 '-f/tmp/magick-wfiFBZwpAGWvepeQFsVbhTB99bphRNcx'

I'm not sure why ImageMagick is giving ghostscript two input files, but I removed the -dQUIET, -dNOPAUSE, and -dNOPROMPT flags, and updated the input filename to point to the PDF file (the imagemagick tmp files were apparently already cleaned up and not available)
gs \
 -sstdout=%stderr \
 -dSAFER \
 -dBATCH \
 -dMaxBitmap=500000000 \
 -dAlignToPixels=0 \
 -dGridFitTT=2 \
 '-sDEVICE=pngalpha' \
 -dTextAlphaBits=4 \
 -dGraphicsAlphaBits=4 \
 '-r72x72' \
 -dFirstPage=1 \
 -dLastPage=1 \
 '-sOutputFile=amy-test%d' \
 '-f/tmp/ar2015-17_1_127committeeonartsandlectures_andersendog.pdf'

Which still got me the following error:
GPL Ghostscript 10.0.0 (2022-09-21)
Copyright (C) 2022 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
   **** Error: Couldn't initialise file.
               Output may be incorrect.

Requested FirstPage is greater than the number of pages in the file: 0
   No pages will be processed (FirstPage > LastPage).

The following errors were encountered at least once while processing this file:
        circular reference to indirect object

   **** This file had errors that were repaired or ignored.
   **** Please notify the author of the software that produced this
   **** file that it does not conform to Adobe's published PDF
   **** specification.

I also tried seeing if the legacy system had this error:

I spun up an ec2 machine from the worker-normal-stage-2022-10-28 ami-09ed899997e8d6253 in the dsc account
I put it in the nuxeo vpc public subnet and assigned it a public IP address
I created a new security group allowing ssh from my IP address
I scp'ed the PDF from my local machine to the ec2 machine (user ec2-user@<public ip>)
I ssh'ed to the worker instance and ran:

convert \
 -verbose \
 -strip \
 -format png \
 -quality 75 \
 ar2015-17_1_127committeeonartsandlectures_andersendog.pdf[0] \
 ar2015-17_1_127committeeonartsandlectures_andersendog.png

With no error.  I was able to scp it to my local machine, add a .png file extension, and open it in Preview to verify that it was in fact a png of the first page of the PDF file.

Legacy Worker Versions:
[ec2-user@ip-10-60-1-238 ~]$ convert --version
Version: ImageMagick 6.9.10-68 Q16 x86_64 2021-02-03 https://imagemagick.org
Copyright: © 1999-2019 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP(3.1)
Delegates (built-in): bzlib fontconfig freetype gslib jng jpeg lcms ltdl lzma png ps tiff wmf x xml zlib
[ec2-user@ip-10-60-1-238 ~]$ gs --version
8.70

Docker container versions:
root@c7e34e238538:/# convert --version
Version: ImageMagick 6.9.11-60 Q16 aarch64 2021-01-25 https://imagemagick.org
Copyright: (C) 1999-2021 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP(4.5)
Delegates (built-in): bzlib djvu fftw fontconfig freetype heic jbig jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png tiff webp wmf x xml zlib
root@c7e34e238538:/# gs --version
10.00.0

Something seems to have happened between Ghostscript version 8.7 and 10.0.
Unfortunately, I can't seem to find any Ghostscript documentation prior to 9.54.0. That documentation implies that Ghostscript should be more tolerate of malformed PDFs, rather than less tolerant: https://ghostscript.com/docs/9.54.0/Use.htm#PDF_problems

Oh, I also checked how ImageMagick's policy.xml file was configured on our legacy worker image. It had everything commented out. I set rikolti's docker container's policy.xml to look identical to this (just in the running container), but it made no difference when running the python -m content_harvester.by_page convert and gs commands referenced above.
/etc/ImageMagick-6/policy.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policymap [
  <!ELEMENT policymap (policy)+>
  <!ATTLIST policymap xmlns CDATA #FIXED ''>
  <!ELEMENT policy EMPTY>
  <!ATTLIST policy xmlns CDATA #FIXED '' domain NMTOKEN #REQUIRED
    name NMTOKEN #IMPLIED pattern CDATA #IMPLIED rights NMTOKEN #IMPLIED
    stealth NMTOKEN #IMPLIED value CDATA #IMPLIED>
]>
<!--
  Configure ImageMagick policies.

  Domains include system, delegate, coder, filter, path, or resource.

  Rights include none, read, write, execute and all.  Use | to combine them,
  for example: "read | write" to permit read from, or write to, a path.

  Use a glob expression as a pattern.

  Suppose we do not want users to process MPEG video images:

    <policy domain="delegate" rights="none" pattern="mpeg:decode" />

  Here we do not want users reading images from HTTP:

    <policy domain="coder" rights="none" pattern="HTTP" />

  The /repository file system is restricted to read only.  We use a glob
  expression to match all paths that start with /repository:

    <policy domain="path" rights="read" pattern="/repository/*" />

  Lets prevent users from executing any image filters:

    <policy domain="filter" rights="none" pattern="*" />

  Any large image is cached to disk rather than memory:

    <policy domain="resource" name="area" value="1GP"/>

  Define arguments for the memory, map, area, width, height and disk resources
  with SI prefixes (.e.g 100MB).  In addition, resource policies are maximums
  for each instance of ImageMagick (e.g. policy memory limit 1GB, -limit 2GB
  exceeds policy maximum so memory limit is 1GB).

  Rules are processed in order.  Here we want to restrict ImageMagick to only
  read or write a small subset of proven web-safe image types:

    <policy domain="delegate" rights="none" pattern="*" />
    <policy domain="filter" rights="none" pattern="*" />
    <policy domain="coder" rights="none" pattern="*" />
    <policy domain="coder" rights="read|write" pattern="{GIF,JPEG,PNG,WEBP}" />
-->
<policymap>
  <!-- <policy domain="system" name="shred" value="2"/> -->
  <!-- <policy domain="system" name="precision" value="6"/> -->
  <!-- <policy domain="system" name="memory-map" value="anonymous"/> -->
  <!-- <policy domain="system" name="max-memory-request" value="256MiB"/> -->
  <!-- <policy domain="resource" name="temporary-path" value="/tmp"/> -->
  <!-- <policy domain="resource" name="memory" value="2GiB"/> -->
  <!-- <policy domain="resource" name="map" value="4GiB"/> -->
  <!-- <policy domain="resource" name="width" value="10KP"/> -->
  <!-- <policy domain="resource" name="height" value="10KP"/> -->
  <!-- <policy domain="resource" name="list-length" value="128"/> -->
  <!-- <policy domain="resource" name="area" value="100MP"/> -->
  <!-- <policy domain="resource" name="disk" value="16EiB"/> -->
  <!-- <policy domain="resource" name="file" value="768"/> -->
  <!-- <policy domain="resource" name="thread" value="4"/> -->
  <!-- <policy domain="resource" name="throttle" value="0"/> -->
  <!-- <policy domain="resource" name="time" value="3600"/> -->
  <!-- <policy domain="coder" rights="none" pattern="MVG" /> -->
  <!-- <policy domain="module" rights="none" pattern="{PS,PDF,XPS}" /> -->
  <!-- <policy domain="delegate" rights="none" pattern="HTTPS" /> -->
  <!-- <policy domain="path" rights="none" pattern="@*" /> -->
  <!-- <policy domain="cache" name="memory-map" value="anonymous"/> -->
  <!-- <policy domain="cache" name="synchronize" value="True"/> -->
  <!-- <policy domain="cache" name="shared-secret" value="passphrase" stealth="true"/> -->
</policymap>

This looks fixed. See record on -stage: https://calisphere-stage.cdlib.org/item/8bd64cb5-d7c3-49c4-a8b2-78b4911745d4/


Migrate repositories to git version control system

Original report by Volker Enderlein (Bitbucket: VolkerEnderlein, GitHub: VolkerEnderlein).

As Atlassian shuts down Mercurial support in not so far future (see https://bitbucket.org/blog/sunsetting-mercurial-support-in-bitbucket) we are forced to take a decision on whether we move away from BitBucket to a new home (i.e., move over to a different Mercurial provider) or migrate the repositories to git.

Happy New Year! Thank you Volker and everyone who helped with the migration! I just cloned / built simage + coin. All complete with history, issues and docu - awesome job. Unfortunately I can't help with the tag / sub-repository questions either.


refactored muo to extract deployer

Which issue this PR addresses:
The deployer is general and should be reusable. I need it for an upcoming PR to deploy an admission hook.
Also cleaned up a little bit the tests.

@facchettos thanks for squashing the commits.


In-game help menu is very very slow especially in English

環境 Environment

OS version: macOS 10.14.3
Elona foobar verision: develop

詳細 Details
See also #1176.

It causes serious performance hit. The help window was slow before, but the change may make it even slower!

Performance is improved at some degree. The bottleneck is gmes() function, but it is difficult to optimize it because the function is also used in other places.
At least in my machine, the performance hit has been resolved in Japanese mode. In English mode, gmes() still slows down the performance.

gmes() function in English mode render text by character. It is the very cause of the performance hit.
Solution
Parse manual file once and build DOM-like structure.

It seems that this issue has been resolved because of recent performance improvement about text rendering.


Pass callback URL directly

@stavro Thoughts?

:+1: - I would prefer not to require the callback url to be defined in configuration.  Building it in code and supplying that to the library is good IMO.
That tends to require us to duplicate properties of the environment in multiple places (hostname, http/https, etc etc).

:shipit:


Add to npm

Now that the plugin has a package.json, any chance of publishing it to npm? It's pretty straightforward and would help others find it.

Done! https://www.npmjs.com/package/leaflet-usermarker


Homepage/demo is down

https://randomcolor.lllllllllllllllll.com/ seems to be down, see screenshot attached

Should have been fixed a while ago – sorry about this. Thank you for the report!


add "size" parameter during initializing a new page.

#1797 introduced a bug that executions history cannot be displayed in executions tab give every project, like:

The issue is that javascript cannot find ${size}. The resolution is simple that we should add "size" to the context so that javascript is able to locate it.
After the change:

Tested in the staging server.

Pull Request Test Coverage Report for Build 4024

0 of 1 (0.0%)  changed or added relevant line in 1 file are covered.
2 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.008%) to 35.97%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

azkaban-web-server/src/main/java/azkaban/webapp/servlet/AbstractAzkabanServlet.java
0
1
0.0%

Files with Coverage Reduction
New Missed Lines
%

azkaban-exec-server/src/main/java/azkaban/execapp/event/FlowWatcher.java
1
93.75%

azkaban-common/src/main/java/azkaban/executor/ExecutableFlowBase.java
1
80.42%

Totals

Change from base Build 4022:
-0.008%

Covered Lines:
10453

Relevant Lines:
29060

💛  - Coveralls


Add .latexrun.db.lock file

The issue with latexrun not finding the .latexrun.db file is because it is possible to run latexrun twice at the same time on the same file. I use latexrun in conjunction with a build system to watch changes and I have been running into issues. Not urgent imho but something to consider.

Sounds like a good idea. This should be fairly easy to integrate right in to the DB class.

Btw I find watch-cli super useful for this. Currently tuning visuals for my project thesis about flextractor and the complete automation of watch-cli and latexrun is just great. :yellow_heart:

Glad you like it. :)


Possibly of interest?

In case you hadn't already seen:
https://blogs.msdn.microsoft.com/commandline/2018/08/02/windows-command-line-introducing-the-windows-pseudo-console-conpty/
Feel free to close as this isn't really an issue.

@dhirschfeld, thanks for the update. It seems that it will take some time to have ConPTY available, also, it seems that it will be supported only by Windows 10, which leaves other mainstream versions such as 7 or 8 without native PTY support. We will have to wait until the official release.

Cool stuff, thanks for sharing @dhirschfeld!

Yeah, it will be years before you can assume it's available (Win7 EOL is Jan 2020). Still, it's an interesting development!


Plans to add TTL or other expiration concept?

Are there any plans to add TTL features? jStorage, for example, has a TTL feature that's pretty useful. I'd make a pull request but, to be honest, not too confident in my ability to implement it cleanly

Hmm.. Not sure about that one. My concern is that I don't want the library to do too much, and become bloated with features that would rarely be useful.
Can you provide a scenario where you think this would be useful?

In my case I'm using local storage as a cache to reduce server requests. however I want the cached data to "expire" after a set time to prevent old data from hanging around. i can do this externally to angular-locker, but it would be awesome to just pass a TTL when setting data

OK I see what you mean. I will have a think as to how I would implement it, and probably throw together a quick prototype and see where I get.
Thanks!

awesome! Thanks for looking into it!

decided not to add this for now.. might look at it again at some point


feat: CEL Validation for NodePool.Spec.Template Labels

Fixes #N/A
Description

Adding CEL validation in the effort of moving away from webhook validation.
https://github.com/aws/karpenter-core/issues/103

How was this change tested?

make test

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

3 of 3 (100.0%)  changed or added relevant lines in 1 file are covered.
12 unchanged lines in 4 files lost coverage.
Overall coverage decreased (-0.1%) to 82.201%

Files with Coverage Reduction
New Missed Lines
%

pkg/controllers/provisioning/scheduling/topology.go
2
86.49%

pkg/controllers/provisioning/scheduling/topologygroup.go
2
96.75%

pkg/scheduling/storageclass.go
2
81.82%

pkg/controllers/disruption/pdblimits.go
6
76.47%

Totals

Change from base Build<PHONE_NUMBER>:
-0.1%

Covered Lines:
9232

Relevant Lines:
11231

💛  - Coveralls


resolves #44: script and README updates

BTW there are a bunch of possible version updates from running npm run clean-install.

I presume you're a Maven user :laughing:
Jokes aside, I'm also a big fan of npm scripts as they make it easier to get started (i.e., improve discoverability).
So :+1:  for the npm run build task. I'm more reserved about the clean and build-fetch tasks

I presume you're a Maven user :laughing:
Jokes aside, I'm also a big fan of npm scripts as they make it easier to get started (i.e., improve discoverability).
So :+1:  for the npm run build task. I'm more reserved about the clean and build-fetch tasks


Verify, revise, and improve docs/deployment-with-docker.rst

Make sure everything is up-to-date.
If anything is unclear or incorrect, revise the text.

Same here, I'm happy to help if something is unclear.

I don't see any problems with this doc. Maybe it's time to update the minimum docker version though.

The docs have received a lot of updates since this issue was opened, and I think they are now quite up to date. The minimum version for Docker & compose has been updated as per @sfdye suggestion with #1687, so I'll consider this as done for now. Let's open a new issue if anything specific is wrong there.


Allow to send CSS classes for the styling

Each time you inline an object, React re-creates a new reference to this object on every render. This causes components that receive this object to treating it as a referentially different one. Thus, shallow equality on the props of this component will return false on every render cycle.
There are still cases where inline styles can be useful.

Added support in https://github.com/drac94/react-auth-code-input/pull/7


TypeError: expected str, bytes or os.PathLike object, not int

When I used the command “python setup.py install” to download the mimkl package, an error occurred: "TypeError: expected str, bytes or os.PathLike object, not int".
Could you know how to solve this problem?
Thanks very much!
###########################################################
guo@guo-VirtualBox:~/下载/PIMKL/mimkl-master$ sudo python3 setup.py install
running install
running bdist_egg
running setup_pymimkl
Install _pymimkl
Updating submodules
Building pymimkl in /home/guo/下载/PIMKL/mimkl-master/build
Traceback (most recent call last):
File "setup.py", line 158, in
'Topic :: Scientific/Engineering :: Mathematics',
File "/home/guo/.local/lib/python3.6/site-packages/setuptools/init.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/guo/.local/lib/python3.6/site-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/home/guo/.local/lib/python3.6/site-packages/setuptools/command/install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "setup.py", line 102, in run
self.run_command('setup_pymimkl')
File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "setup.py", line 86, in run
self._install_pymimkl()
File "setup.py", line 51, in _install_pymimkl
SETUP_DIR, build_directory, sys.executable, PROCESSES
File "/usr/lib/python3.6/subprocess.py", line 306, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib/python3.6/subprocess.py", line 287, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/lib/python3.6/subprocess.py", line 729, in init
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1295, in _execute_child
restore_signals, start_new_session, preexec_fn)
TypeError: expected str, bytes or os.PathLike object, not int

Hi @107635, the problem looks quite difficult to debug without having additional detail on the operative system, python version tou are currently using. Can you provide those information?
That said, may I suggest you to use the docker image we provide to use mimkl? Here you can find the related web page

@drugilsberg   The Ubuntu18.04, and the python 3.6.9.

Hi @107635 I will look into this as soon as I have time. Could you use the docker image for the time being?

@107635  I tried to reproduce the bug without any success.
I started from a completely fresh environment in Ubuntu 18.04:
docker run -it ubuntu:18.04 /bin/bash

And setup the build system in a pretty standard fashion:
apt-get -y update && apt-get install -y build-essential g++ gcc make git zip unzip libopenblas-dev cmake python3-dev python3-pip
pip3 install --upgrade pip

Afterwards I tried to install the package after cloning and also directly from the remote.
After cloning:
git clone https://github.com/IBM/mimkl.git
MIMKL_CXX_FLAGS="-O3 -fopenmp" pip install -e .

From remote:
MIMKL_CXX_FLAGS="-O3 -fopenmp" pip install<EMAIL_ADDRESS>
Both have been successful.
My suggestion is to try to install these packages:
sudo apt-get install -y g++ gcc make git zip unzip libopenblas-dev cmake python3-dev python3-pip

And also upgrade pip:
pip3 install --upgrade pip

And try again the installation.

Hi @107635 , thanks for reaching out and letting us know about this bug.
Your virtualbox had only a single core. Apparently we never tested this setting and indeed had a TypeError.

Hi @drugilsberg & @C-nit ，thanks for your help. I re-installed the virtual machine and downloaded the mimkl package successfully. Thank you very much!

When I used the command “python manage.py runserver” in an atom text editor to open my project on chrome, an error occurred: "TypeError at /
expected str, bytes, or os.PathLike object, not tuple".
Could you know how to solve this problem?
Thanks very much!
###########################################################
Environment:
Request Method: GET
Request URL: http://<IP_ADDRESS>:8000/
Django Version: 3.1.1
Python Version: 3.6.12
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback (most recent call last):
File "C:\Users\Mowgli\anaconda3\envs\surajDjangoEnv\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
response = get_response(request)
File "C:\Users\Mowgli\anaconda3\envs\surajDjangoEnv\lib\site-packages\django\core\handlers\base.py", line 179, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "D:\Full Stack Course\Django Full Stack\My Django Stuff\Django L2\Project\first_project\first_project\first_app\views.py", line 7, in index
return render(request,'first_app/index.html', context= my_dict)
File "C:\Users\Mowgli\anaconda3\envs\surajDjangoEnv\lib\site-packages\django\shortcuts.py", line 19, in render
content = loader.render_to_string(template_name, context, request, using=using)
File "C:\Users\Mowgli\anaconda3\envs\surajDjangoEnv\lib\site-packages\django\template\loader.py", line 61, in render_to_string
template = get_template(template_name, using=using)
File "C:\Users\Mowgli\anaconda3\envs\surajDjangoEnv\lib\site-packages\django\template\loader.py", line 15, in get_template
return engine.get_template(template_name)
File "C:\Users\Mowgli\anaconda3\envs\surajDjangoEnv\lib\site-packages\django\template\backends\django.py", line 34, in get_template
return Template(self.engine.get_template(template_name), self)
File "C:\Users\Mowgli\anaconda3\envs\surajDjangoEnv\lib\site-packages\django\template\engine.py", line 143, in get_template
template, origin = self.find_template(template_name)
File "C:\Users\Mowgli\anaconda3\envs\surajDjangoEnv\lib\site-packages\django\template\engine.py", line 125, in find_template
template = loader.get_template(name, skip=skip)
File "C:\Users\Mowgli\anaconda3\envs\surajDjangoEnv\lib\site-packages\django\template\loaders\base.py", line 18, in get_template
for origin in self.get_template_sources(template_name):
File "C:\Users\Mowgli\anaconda3\envs\surajDjangoEnv\lib\site-packages\django\template\loaders\filesystem.py", line 36, in get_template_sources
name = safe_join(template_dir, template_name)
File "C:\Users\Mowgli\anaconda3\envs\surajDjangoEnv\lib\site-packages\django\utils_os.py", line 17, in safe_join
final_path = abspath(join(base, *paths))
File "C:\Users\Mowgli\anaconda3\envs\surajDjangoEnv\lib\ntpath.py", line 76, in join
path = os.fspath(path)
Exception Type: TypeError at /
Exception Value: expected str, bytes or os.PathLike object, not tuple

Hey @1998Suraj are you sure this is related to the mimkl repo, maybe you should open it in the django repo.

upgrade you pip via
curl https://bootstrap.pypa.io/get-pip.py | python -
I had same problem, and I was using pip (9.0.1) version, but when I upgraded pip to (20.3.3), it got resolved.

Python 3.6 now needs a slightly different command:
curl https://bootstrap.pypa.io/pip/3.6/get-pip.py | python -


user preference to suppress join/part in HISTORY output

slingamn: right now there's a setting 'autoreplay-joins'
slingamn: with true and false values
slingamn: i could make it 'replay-joins' and have it take three values: 'never', 'requests-only' (i.e., not on autoreplay), and 'always'

In addition to autoreplay-lines, a setting to autoreplay direct messages on first connect?


[main | latest] Make post reactors not be paginated

Is your feature request related to a problem? Please describe.
Pagination is always annoying to implement, and the pagination makes it annoying to do things like have a hover effect on reactions to show the users.
Describe the solution you'd like
Don't make the endpoint paginated
Describe alternatives you've considered
-
Additional context
They're limited to 50 anyways

There can be 50 different emojis, but unlimited people reacting. Anything in the API that doesn't have a limit needs to be paginated.

Oh, right, I'm dumb, sorry


chore: Expand Electric Capital report with links to Walnut repositories

Objective
Add the following Walnut repositories to the Electric Capital's report so that all public contributions to Walnut count towards Starknet's developer activity on https://www.developerreport.com/
Repositories to add:

https://github.com/walnuthq/cairovm.codes
https://github.com/walnuthq/walnut-sdk
https://github.com/walnuthq/walnut-landingpage

Acceptance criteria:

Submitted PR on Electric Capital's repository which gets an approval from the Walnut core team

Can I start doing it?

Hi @mazurroman I will love to handle this.

Hi, I'd love to take care of this

Hello @Xaxxoo and @wugalde19 thanks for your interest in working on this!
For assigning issues to new cairovm.codes contributors, we follow these guidelines. Can you please share some background about yourself as well as how do you want to tackle this issue technically? As much technical detail as possible please.

Hey @mazurroman , I'd love to take this issue !
I have checked to make a PR to Electric capital's report but their developer report repo seems to stop at 2022, where should I make the PR ?
Brief self-intro
I have been in the blockchain space since 2019-20, and have a deep knowledge of the EVM and Ethereum's architecture as a whole. I want to get better at stuff like Rust or Cairo and get familiar with contributing to bigger codebases (many of my projects were solo).

Hi Jaipal this side again, i can take this. I will update the data/ecosystems/s/starknet.toml and add the mentioned repositories as well as the walnut github organization. Would you mind assigning this to me so i can go ahead and raise the PR?

Hey @jaipaljadeja thanks for the detailed explanation of how to work on this issue, it's yours! Let's add a link to the whole walnut repo so that all walnut repos count automatically.
@0xSileo the repo where the changes need to be made is https://github.com/electric-capital/crypto-ecosystems instead of the one you shared. See @jaipaljadeja 's comment above for more context.

Done!
Raised the PR #1190 to add Walnut Organization in Starknet Ecosystem

Thank you @jaipaljadeja !


Fix initialization ordering problem in GridLayerRedrawManager

The comparator was initialized after the singleton instance was created,
causing a null comparator to be passed to the constructor of the commands
TreeSet and hence natural ordering to be used instead which didn't work
as Commands are not Comparable.
Since this type is a singleton it shouldn't have any other static fields
than instance to guarantee that the instance is in a proper state when
created.
This also caused ClassCastExceptions with generateJsInteropExports=true.

@manstis @romartin @ederign
Can you please take a look and merge, thanks. We ran into this when integrating GDT in Eclipse. It was pretty hard to track down as all we got were cryptic ClassCastException. The problem is that the provided comparator actually isn't being used as it's initialized after the singleton instance and therefore null when provided to the commands TreeSet constructor. This causes natural ordering to be used instead of the comparator and all kinds of problems since Commands are not comparable. In our case, it was ClassCastExceptions when a command got cast to comparable against its will :).

Looks fine; but I'll check a few things tomorrow (wires showcase depends on this class for the grids demo). I have found class instantiation and member initialisation is "unexpected" in GWT generated Java Script vs Java in the past..

@manstis ok, the ordering definitely was incorrect, in both Java and JavaScript hence the removal of the incorrect static identifier. With both the instance and the Comparator being static neither the jvm nor the javascript engine can now what to do first ;). Thanks for giving it a spin tomorrow.

@csadilek @ederign Ran wires-webapp with this change locally; and everything is hunky-dory.


Expose error infos from chatgpt response

in axios-fetch-adapter.js file, we compared content-type in stageOne with EventStreamContentType. Throw error when it is  undesired.
There are many situations can make the error happen. Most of all, openai api returned some error informations which will response with application/json type. I think we should output what openai says in the response as a detailed information.
async function getResponse(request, config) {
    let stageOne;
    try {
        stageOne = await fetch(request);
    }
    catch (e) {
        return createError("Network Error", config, "ERR_NETWORK", request);
    }
    const response = {
        ok: stageOne.ok,
        status: stageOne.status,
        statusText: stageOne.statusText,
        headers: new Headers(stageOne.headers),
        config,
        request,
    };
    if (stageOne.status >= 200 && stageOne.status !== 204) {
        if (config.responseType === "stream") {
            const contentType = stageOne.headers.get("content-type");
            if (!contentType?.startsWith(EventStreamContentType)) {
              // should give more detail information about the error
                throw new Error(`Expected content-type to be ${EventStreamContentType}, Actual: ${contentType}`);
            }
            await getBytes(stageOne.body, getLines(getMessages(config.onmessage)));
        }
        else {

I deployed my app but got errors. I debug the response by modify this code in node_modules, the experience is bad!

Same here. I just got an error that said:
Error: Expected content-type to be text/event-stream, Actual: application/json
Couldn't find a solution until now. It was a token limit error from OpenAI.

Same here.


Safe-paste plugin breaks Home/End keys

Enabling the safe-paste plugin breaks the Home/End keys for me. I can't move the the beginning or end of a line using Home/End. If I disable the plugin Home/End works again. I ran omz_diagnostic_dump and it shows that the bindkeys were the same value regardless of whether the plugin was enabled or disabled.
"^A" beginning-of-line
"^[OH" beginning-of-line
"^E" end-of-line
"^[OF" end-of-line
So I'm not sure what might be overriding this.

To prevent the clobbering of zle-line-{init,finish}, would you consider using willghatch/zsh-hooks?

Same problem on Arch Linux, Konsole, zsh 5.8


Build failed - "Undefined reference to gst_plugin_dtls_register"

Hi,
I'm having an issue while building OpenWebRTC on Ubuntu 14.04 64bit as recommended.
I've been following everything described in here:
https://github.com/EricssonResearch/openwebrtc/wiki/Building-OpenWebRTC
Bootstrapping and building dependencies went well. But when I am building OpenWebRTC for linux I have the following error:
GISCAN Owr-0.1.gir
./.libs/libopenwebrtc.so: undefined reference to 'gst_plugin_dtls_register'
collect2: error: ld returned 1 exit status
Do you know how to solve this?
Edit. I just relized that someone had the same problem. But do you know how to solve it anyway, without the need to use cerbero?

Duplicate of #266

This is the same bug as https://github.com/EricssonResearch/openwebrtc/issues/266


fix error when filename contains slash

Trying to resolve #11 in a rather primitive way - "/" in file names are replaced with "#".

Had to fix in a different way, VSC changed the function parameters for commands.


"Errors or timeout for Server Processing the file:Not all the items in the package have been migrated"

Hello,
While trying to upload documents from a on-prem 2013 SharePoint to Office 365 Sharepoint, using SPMT v<IP_ADDRESS> and after 3 rounds, I have 0 documents being migrated, on the  'ItemFailureReport_R1.csv' I have all the documents with this error:
"SERVER FAILURE","Errors or timeout for Server Processing the file:Not all the items in the package have been migrated"
I am administrator on both on-prem SP, and o365 SP.
there's no much details on why  not all the items in the package have been migrated, I mean, is it because permission? time out to trying to connect internet (which the server doesn't have really), what is it?
any help will be really appreciated.
thanks,
Juan Carlos Munoz

@cafranjul Thank you for reaching out to us.
Let me get this migration issue over to the SharePoint team for investigation.
The team will get this prioritized into a sprint plan. Thank you for reporting and making the docs better. Much appreciated.
I made a note to request the team to update this when the work is complete.

@AndreaBarr @scanum
This issue is a technical issue, and it should be resolved using a regular case to the O365 enterprise support.

@cafranjul - thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:  https://docs.microsoft.com/office365/admin/contact-support-for-business-products
Please keep us posted here on the resolution so we can feed whatever information you discover into the content.

@officedocsbot close


Reimplement World.playSound

https://github.com/ChatTriggers/ctjs/blob/1a23c782eafe59c5201560bd2fb18319d5490981/src/main/kotlin/com/chattriggers/ctjs/minecraft/wrappers/World.kt#L42-L44
As far as I can tell, the removed methods have no equivalent in the new codebase. Sound is only usable for custom sounds, so I don't think there is any way to play Minecraft sounds. This functionality should be readded. Ideally, Sound would be modified so that source could also be an identifier (i.e. a namespace:name string).
The legacy methods that were removed, for reference:
https://github.com/ChatTriggers/ChatTriggers/blob/e95de20655e50be240083d216417cfc6bca3b252/src/main/kotlin/com/chattriggers/ctjs/minecraft/wrappers/World.kt#L41-L86

Ok this was super easy, implemented in 0dc9228. I thought it was going to be a lot harder


Support for Multiselection for the Search Module?

Originally this was a question https://stackoverflow.com/questions/46445044/does-react-semantic-ui-search-support-multiselection
But not sure if this is the right place to request this feature or if there is a workaround to achieve the same effect.  It would make the dropdown module and the search module more consistent in behavior.
Thanks,
Derek

Semantic UI doesn't support anything like this within the Search component. Non SUI features aren't priority for core team. However, contributions are welcome.
I think that use need Dropdown there, check this example, there is a small bug, but you can understand the idea. Pairing with another usage features can be give possible same result.

@layershifter Thanks for the example.  Is there anyway to group the drop down selection.
Ex:
Click on drop down and i see
School            School1
School2
School3
City                 San Diego
LA
I notice that the options are just (key,text,value).
In the search, there is the concept of cateogries and also resultRenderer that allows you to customize the look of the results in the search.  Does this exist for dropdown?