Add TT-RSS labels feed

It would be quite helpful when you enumerate the ttrss feeds to also get the labels feed so I can view the items from that feed.  I use ttrss filters to identify various items of interest and don't want to have to duplicate these all in newsboat.
if you do, when you read a feed's items, it any of the items have a ttrss label, how about including the label header in the content displayed.  then I can at least search for the labels.
and if you don't want to fetch the label feed can you at least add a header item to the article content with the ttrss labels?
thanks in advance

TT-RSS labels are converted into Newsboat tags—press t to open the dialog listing them all. Is that enough for your needs?

no, ttrss feed categories are translated into newsboat labels.  ttrss labels are different.  think of them as a tag cloud.  there is no good equivalent in newsboat since an article can have multiple labels so just putting them in a header at the top of the article content would be enough so that one could create a newsboat filter that has the ttrss tag and then see all articles that have that ttrss label.

Ah, sorry. Every service has some kind of categorization, but everybody calls it differently. I keep forgetting that TT-RSS has both tag-like and folder-like categorization (labels and categories, respectively).
I don't know how to fit this with things that already exist in Newsboat. We already have flags, which are per-article marks (just like TT-RSS labels), but flags are single English letters, not strings. Extending them to strings is quite a chunk of work.
Adding something just for TT-RSS is out of the question. Newsboat is not a client for any of its remote APIs; it's a program that uses existing services to fetch feeds.
I don't think adding labels to the contents of the article would be a good idea, because messing with people's data is wrong. If labels are to be added, they should be in the header—but see my points above.
That leaves us with the "labels feed" approach, which I can't figure out. I read the docs and some thread on the forum, but I don't have a TT-RSS instance to try this on. My questions are:

looks like TT-RSS can return both per-label feeds (if we specify id < -10) and some "label feed" (is_cat=1 and id=-2). Which one do you mean?
a follow-up to the previous point: what does "label feed" contain?
how do we discover which label IDs are available?

@noctux, do I misunderstand this issue? Do TT-RSS labels fit with anything that already exists in Newsboat?

There are feeds that show the tt-rss items that have a label assigned.  As indicated about you can get the list of these in the same way you get a feed list, the names of the feeds are the labels so when you add the feed name as a newsboat label you've got something we can use the tag command on to see the labels and items.   All of the code to get this would be in the ttrss specific code.
The only wrinkle is that an item in a label feed is also an item in some other feed.  That means that if you fetch all feeds, read and mark read using the label feed and then head to another feed with the same item without reloading that other feed the item will appear as still unread.  Minor issue issue.
BTW, in the docs there doesn't seem to be an option to reload a feed on selecting a feed to view items.  This would fix the minor issue and be useful on its own.

… so when you add the feed name as a newsboat label …

That's the point where you lost me. Can you explain in other words, maybe?
I think you answered the first of my questions. Label feeds are indeed per-label, i.e. each label feed contains items that have a specified label. I'm still not clear if you meant these, since you wrote "labels feed" in your original post, and TT-RSS appear to have something with that name, too.
The third question I take back. I re-read the docs and now see that to discover label IDs, all we need to do is call getFeeds API method with cat_id=-2.

The only wrinkle is that an item in a label feed is also an item in some other feed.

Newsboat actually has a big problem with this, see akrennmair/newsbeuter#193.

BTW, in the docs there doesn't seem to be an option to reload a feed on selecting a feed to view items.

JFTR: I believe this was reported separately as #211.
Thank you for being so patient with explanations, @pcause; it's appreciated!

First, thanks for taking the time to engage and understand.
When newsboat gets the feed list from ttrss it creates a newsboat tag for the feed that is the ttrss category.  So if I have a category called greatsoftware and udner that there is a feed for newsboat-releases, when I hit t on the main newsboat screen I see a newsboat tag names greatsoftware and if I select that I see newsboat-releases feed.
In ttrss, "labels" is a category, and within that category there are feeds each of whose name is the name of the ttrss label.  So if I have a ttrss label called feedreaders, which I apply to article about rss news readers,  then the "Labels"  category has a feed called feedreader.  When newsboat gets the feed under "Labels" it would create a newsboat tag called Labels.  When I hit t, i'll see the categories I now see plus this new one, Labels.  When I select Labels the names of the feeds I see are the names of the ttrss labels, and so when I select one I see all the articles I've applied that ttrss label to.
Basically everything in newboat outside of the ttrss specific code just works if you handle getting the Labels category, which is a virtual category where the feeds in the category are virtual feeds.
The issue you mention, #193, is a different problem.  ttrss labels don't introduce new feeds with the same name (newsboat label).  What adding labels will introduce is that two different feeds (the one for the ttrss label and the one that the content originally came from) will have an article with the same URL.  The first question is when fetching articles for a feed, will getting a second article URL that matches an article URL you already have  cause a problem.  Looking at the cache.cpp code where the tables for the cache are created, it doesn't look like it will, as the item URL isn't specified to be unique and an item URL is always coupled with a feed url in the same row.  So feedurl+itemurl will be different for the two. items  If I am right, then the next question is whether marking an article read in one place will mark it read universally, because to mark read you do a loo up on the URL.   Again, looking at the ttrss.cpp and itemview_formaction.cpp it appears you use a guid to fetch items from the list displayed, so newsboat will use this to find the data for the item and then uses that data to call the ttrss specific code.  That means that newsboat will  just mark a single item for the feed read, and leave the other duplicate item in its unread state.  We'll have the article appear agin when you open the second feed even though its been really marked it read in one feed it is still unread in the other.  Of course, when you send the state change to ttrss, it knows there is only one article and so if the second feed is reloaded, the article will appear unread.  In this case my suggestion for auto-reloading a feed solves the problem of seeing the entry again as unread, because when you enter the other feed reloading will say the article is read.  But even without the auto-reload the problem is minor.
Hope this helps.  Seems to me all that is needed is to add the labels category and its feeds and all will work, even without my autoload enhancement suggestion.

Thanks! I finally understand how label feeds and labels category relate. They should fit with Newsboat well.
I'm not sure, though, if label feeds should be always present. I believe Newsboat can't omit them from feedlist without omitting them from taglist, but if they're always in feedlist, that might annoy some users. That suggests adding an option to enable them, which would be off by default. But I'll be happier not to add another option if that can be helped.
I've edited the issue link in your post—it should point to Newsbeuter's issue tracker, not this one. The title of that issue is misleading, because the problem turned out to be caused by item GUIDs. In essence, if two feeds contain an item with the same GUID, that item will appear in one of the feeds, depending on the order in which feeds are updated.
So I guess this issue is blocked on akrennmair/newsbeuter#193 now? I started working on 193 a while ago, but it touches upon the cache layer that underlies the whole program, and I quickly broke stuff when I changed anything. That's why I switched to test coverage and refactoring this year, but sadly, the effort progresses very slowly.

actually, I think ttrss labels feed is always there it may just not have ave feeds under it.  Remember it is a ttrss category and you'll turn that into a label for a newsboat feed only if the ttrss labels category has feeds under it that you then tag,
The issue seemed to be about feed urls, but you are the expert.   i'll look at the tt-rss code and see if the id returned by the api call for the item when it is from one of the ttrss labels feeds is the same as returned by the regular feed.  if so, i guess same issue.

The user has to manually tag those articles

Judging by the docs, TT-RSS has filters that let users auto-assign labels.
I'm not sure I understood what you're saying, though. Are you saying that Newsboat users should be able to add a label to an article from within Newsboat?

easily emulate label-feeds with query-feeds, easing implementation, and making it even more versatile (e.g., by combining them with time ranges or other filter expressions).

Yay, that sounds much more Newsboat-like! Though users might not be very happy to manually create query feeds for each of their labels. I actually had simiilar same gripe with Mutt: before I learned about imap_check_subscribed, I used to manually add mailboxes that corresponded to GMail labels. It was annoying, because labels are created in GMail web-interface, and I always forgot to update my muttrc.
In summary, we have two solutions now:

add label feeds (one feed per TT-RSS label), possibly hidden behind an option. This will only impact TT-RSS users. Blocked on akrennmair/newsbeuter#193;
expose new attribute for articles, labels, which would be populated either from TT-RSS labels, or from corresponding tag in Atom/RSS.

The best thing is, they aren't mutually exclusive, and can be implemented in any order. Patches welcome!

Judging by the docs, TT-RSS has filters that let users auto-assign labels.
I'm not sure I understood what you're saying, though. Are you saying that Newsboat users should be able to add a label to an article from within Newsboat?

I do not really have any stake in that game as I do not actively use labels personally. However, I just wanted to note that a way to add labels might be desireable to make this feature really usable to some users. (Imagine an overly eager automatic filter expression, where one wants remove some of the automatic labels. However, this is once more something that would be much more reliable given a proper two-way sync model, as proposed in #16).

Though users might not be very happy to manually create query feeds for each of their labels.

This is something that should be fairly easy to implement once the general query-feed-for-label concept is there, e.g., by adding an option to the config file and using getLabels from the upstream API to actually automatically create those feeds on startup, like we do for the normal feeds as well.

In summary, we have two solutions now:

I'm biased there, but I would personally go with 2), especially since the TTRSS sync is still a bit slow, and adding a lot of duplicates will make the situation even worse. But anyways, yeah, patches are always welcome :)
As for 2), it might be worthwhile to combine that one with #162, which touches the query-syntax anyways and might be just a straightforward extension from there.

In summary, we have two solutions now:

add label feeds (one feed per TT-RSS label), possibly hidden behind an option. This will only impact TT-RSS users. Blocked on akrennmair/newsbeuter#193;

expose new attribute for articles, labels, which would be populated either from TT-RSS labels, or from corresponding tag in Atom/RSS.

The best thing is, they aren't mutually exclusive, and can be implemented in any order. Patches welcome!
For a tt-rss user the first would be the most convenient.  tt-rss does a really good job with their filters and labels and you can even add plugins to enhance this.  a rich system.
A comment on the second option..  I find the tags in an RSS feed article less than useful, which is why I use a tt-rss filter to create my labels.  I look for specific words/phrases not to match the topics and projects I have on my plate which is not a match for the content creator's view of where the article fits and how they tag it..  I want to content filtered and organized for reading to get me the most relevant articles to my projects collected and presented to match my ongoing projects.
As you point out the two things aren't mutually exclusive.  I'll keep an eye out for the caching bug to be fixed.
But thanks for all the effort to understand this topic.

@noctux,

As for 2), it might be worthwhile to combine that one with #162, which touches the query-syntax anyways and might be just a straightforward extension from there.

Changing the parser is only one of multiple steps required to add a new attribute, and probably the smallest one—adding a new attribute to matchers and updating the documentation will surely outweigh it. So I don't consider those two issues related.
@pcause,

A comment on the second option.. I find the tags in an RSS feed article less than useful, which is why I use a tt-rss filter to create my labels.

Users can ignore labels attribute if they want, or they can take it into account in their query feeds. The point here is to give "vanilla Newsboat" users the same power as "TT-RSS Newsboat" users.
But you got me thinking about two other things:

what if sometime in the future, we decide to expose RSS/Atom tags fetched by TT-RSS? Where would we put them? labels would be already taken by TT-RSS labels.
say a TT-RSS user writes s couple Newsboat query feeds to further filter their items. Then they decide to use Newsboat without TT-RSS. Their query feeds will immediately break, because labels would be populated by RSS/Atom tags now, not hand-crafted TT-RSS labels.

That calls for labels to be renamed to ttrss-labels, and a separate attribute for RSS <category> tags.

I just spent more time reading the cache code.  I don't think that #193 is going to be an issue.  For a ttrss labels feed the feed URL is different than the feed URL for the base article containing the article.  The article link will be the same between the article appearing in the ttrss labels feed and the original feed, but looking at cache newsboat doesn't use that url for any sql queries.  it seem items are fetched, updated, etc on the item guid.    and evne when you have a feed url/guid pair for an item that has a label these will be different for one will have the feed URL for the ttrss label feed and the other for the feed that originally contained the article.
So it seems to me it should be pretty safe to add the ttrss labels feeds to newsboat within the ttrss code and it should break anything outside of that code.  Is there some other cache code outside of cache.cpp that I should look at.

Once again: it's "akrennmair/newsbeuter#193", not just "#193". Those two are different issues.
Newsboat considers feed URL part of an item's data, which is stored in rss_item table. When feed A adds an item with GUID G, that item is stored in the table. When another feed, B, adds an item with the same GUID, it overwrites the entry in the table. From that moment on, the item belongs to feed B. It's no longer part of feed A.
In other words:

items are distinguished by their GUIDs;
any given item only belongs to one feed.

This means that akrennmair/newsbeuter#193 would indeed apply to TT-RSS label feeds.

I think there is an easy work around for this.  When you get the items from an ttrss feed instead of using the "id" field of the item retuned by ttrss as the guid, you could use the ttrss feed id plus the returned item id.   The feed is in ttrss is a number.  tt-rss already returns a URI as the "link" field for every item.   Looking at the newsboat rss parser, it seems to set the item link to the the guid only if the feed doesn't give you a link and only if the guid has the permalink attribute.  So somehting like I sugggest for the ttrss api code could work.   This is a small change to the tt-rss api code, as setting the guid is now 2 lines of code the the feed id is already passed into the  code that sets the guid.
int id = item_obj["id"];
item.guid = strprintf::fmt("%d", id);

id is a bad variable name as this is also the name of the feed id argument to the function.  so rename that variable and then build the guid from the feed id and the item id.

However, that way, both items will not share a guid and therefore, there is no sync of the read state of the given article, leading to a large number of duplicates. You mentioned that before and suggested autoreloading at feed-switch as a possible mitigation. To me, this sound like a big hack to support a rather particular usecase. Is there any chance for a better soluton until akrennmair/newsbeuter#193 is fixed?

@pcause, imagine a user who already has a database populated by some items. When they upgrade to Newsboat with the workaround, all their feeds would become full of unread items, because all item GUIDs changed.
When we finally fix akrennmair/newsboat#193, we'll have to remove the workaround, and that will make everything unread again, because GUIDs changed.
And we can't avoid removing the workaround because it conflicts with sharing state between items. Identical items should have identical GUIDs. You can read more about that idea in akrennmair/newsbeuter#249.


create Jaeger resource in the watched namespace

As is, the readme doesn't seem to work, and creates a jaeger whose status will never be updated...

@therealmitchconnors thanks for the PR! Looks like this is failing the DCO check. As @pavolloffay mentioned, it might be better to use -n observability instead of specifying it in the YAML, for consistency.


Version 1.0.0 has a fatal bug

This version has a fatal bug, it detects all pages as UTF-8!
The code at line 130 of the HTMLCharsetDetector class, i.e det.Reset();, should be deleted.

I fixed the bug and then have released another version, i.e. 1.0.1.


updata di example and change the location of the .ipynb locations

Features

xx
yy

Feature Docs

Influence

Result

Other

Codecov Report
Attention: Patch coverage is 0% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 81.12%. Comparing base (893501f) to head (37fcabf).

Files
Patch %
Lines

metagpt/utils/recovery_util.py
0.00%
1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1090   +/-   ##
=======================================
  Coverage   81.12%   81.12%
=======================================
  Files         248      248
  Lines       13885    13885
=======================================
  Hits        11264    11264
  Misses       2621     2621

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


Support ffmpeg for more file types

CLI options that use ffmpeg currently aren't allowed to run for non-mp3 files because of this check. ID3 tags are supported by other file types, so it would be nice to widen that restriction to include a few other common file types found in podcast feeds.
I tested it out locally with a few .m4a files, and writing metadata works fine. I can make the change if you're okay with it.

Thank you for taking a look!
I would be more than happy to accept a PR for it!

Thanks again! Your work is available in v9.1.0. 💪


LwM2M engine does not ensure NULL terminated strings

LwM2M engine is inconsistent on handling strings
When storing strings, using for example lwm2m_set_string(path, "Hello"); only strlen("Hello"); is set as a data size in the registry. When reading, there are few corner cases where data might end up coming out without NULL-terminator.
For example when reading exactly strlen characters, or less:
char buf[] = "Hello World!";

/* Store only "Hello" */
lwm2m_set_string(&path, "Hello");

/* Request only strlen characters */
lwm2m_get_string(&path, buf, strlen("hello"));

/* Will output "Hello World!" as the read did not terminate the string */
printk("Buffer content: %.*s\n", sizeof(buf), buf);

Similarly, sometimes lwm2m_get_res_buf()  might be used to get content of the string buffer, without copying. This is dangerous as there might not be NUL terminator included.
char *p;
uint16_t len;

/* Get pointer to internal buffer */
lwm2m_get_res_buf(&path, (void **)&p, NULL, &len, NULL);

/* Verify that it is NUL terminated string */
if (p[len - 1] == 0)  /* false */

if (p[len] == 0) /* True, but this is past the data length */

To Reproduce
Steps to reproduce the behavior:

See examples above

Expected behavior
When string data is stored into internal buffers, we must ensure that there is terminating character included (I believe this is already done in lwm2m_set().
We should probably change the struct lwm2m_engine_res_inst::data_len to contain the terminating character, or document properly that is is missing from the length. Now dealing with opaque or string data requires extra effort.
Impact
Unsafe code when LwM2M engine and string data is handled.

Fixed in https://github.com/zephyrproject-rtos/zephyr/pull/59365


frontier-squid: Increase default disk cache size from 10G to 50G (SOFTWARE-5289)

Barry recommends 50GB to 100 GB in GGUS#158468.

That's a good point on existing sites. It shouldn't be too bad to run a df on the cache directory to see how much space is available.
After the cleancache, maybe something like min(80% free, SQUID_CACHE_DISK) ?

How will the word get out to all the current users?

ATLAS is a big user of the container and they use the SLATE Helm chart which also defaults to 10GB. Fred assures me that all the Squids run this way have at least 50GB of cache.
We can otherwise make a release announcement for this (FYI @timtheisen )

Come to think of it, frontier-squid itself also defaults to 10G, but the installation documentation strongly suggests that installers for production increase that value to a more appropriate amount.   That is another way to do this instead of increasing the default.   There are likely users of this container that just use it for testing so they don't need a larger amount (although on the other hand they're unlikely to actually fill up the cache either, depending on how much testing they do).  Also, by starting with a small default, it's more likely that an installer of a production system will be forced to make a conscious choice of how much to allocate; for example even 50G is a bit on the low end, so if somebody has a lot more space and they're forced to choose then they may choose a larger amount, but if they are never forced to choose they're likely to leave it at 50G when it would be better to be higher.  I'm not saying that it's necessarily a bad idea to increase the default for the container case, but it's not obviously a good idea either.
Having said all that, if we want to go ahead with increasing the default then I do think it would be good to add a df check for at least 20% more free than defined after cleancache, resulting in a crash with a clear message if it isn't available.

Hmm. I can certainly see the value in keeping the cache_dir setting consistent with upstream.
With a site-admin hat on--thinking about what would be least surprising--a service with defaults that are production-capable (if sub-optimal) would make life easier.
Perhaps this change, if folks want to make it, should start at the frontier-squid side? It's been 10GB for 11+ years, it seems. And both hardware and access patterns have changed in that time.
Maybe for now, we could instead add cache_dir recommendations directly in the OSG squid docs, and in the docker image readme?

I don't want to change the frontier-squid default since I know there are still cases where 10G is the right choice, for example for testing or if somebody starts a squid on every worker node and leaves the cache in the default location under /var.
The OSG frontier-squid doc already just defers to the upstream installation documentation, and there making a choice for the cache size is very explicit.    It makes sense to update the frontier-squid container docs and the docker image readme.

Do you have write access @DrDaveD, to re-review and merge?


Updated to FireFly 1.6.2 and not showing iota ion wallet or that iota is staked.... [Bug report]:

Platform
Desktop
Version
1.6.2
Description
Updated to FireFly 1.6.2 and not showing iota in iota wallet or that iota is staked.
Was staking iota for Assembly with Firefly 1.6.1 but after update it isnt showing anything either in iota wallet or that the Iota is being staked for Assembly...
Help!!!
Expected behaviour
Developers to help fix the issue so it shows the correct balance in Iota wallet and the Staked Assembly option.
Actual behaviour
Upgraded from Firefly 1.6.1 to Firefly 1.6.2 and afterwards shows 0 iota and that iota is not being staked for Assembly....
Can the issue reliably be reproduced?
Yes
Steps to reproduce the issue
Upgrade from firefly 1.6.1 to firefly 1.6.2
Operating System
Windows
Diagnostics
Version 1.6.2
Language: en
Currency: USD
Node selection: Automatic
Platform: win32
Platform Version: 10.0.19043
Platform Architecture: x64
CPU Count: 8
Total Memory: 8134.5 MB
Free Memory: 2776.4 MB

Developer Profile
No
Profile Type
Software (Stronghold)
Staking
Actively staking
Crash Status
None of the above
Error Messages
No response
Error Logs
No response
Duplicate declaration

[X] I have searched the issues tracker this issue and there is none

Code of Conduct

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

Have you already tried to use the balance finder in the settings a few times in a row? I´m going to close this issue as it is a duplicate to https://github.com/iotaledger/firefly/issues/4016. Feel free to open the issue again if you have further problems.


System.Exception: Signature does not match!

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.

What problem did you encounter?
I lit restarted pc 3 times and waited for 2-3 days, i dont even know what i supposed to do.
Im want play with bloxstrap SO much.

i just enable light theme and its works 💀


revisit api docs

@ashleygwilliams can you revisit the API docs? i'm pretty sure they are quite inaccurate after c8ab400bf9cbaf36aeb30427bcdb0316930664f2

sure thing. i'm on it.

<3 <3

PS: I read the guides on the plane and they are looking fantastic!

reawakening this issue as i'd like to get back into it. @tkellen can we maybe hop on a call sometime and get on the same page?

Definitely!


Always rebuild CHM files

[x] This contribution adheres to CONTRIBUTING.md.

What does this Pull Request accomplish?
Remove CHM files from repository, and instead build them during the build process.
Why should this Pull Request be merged?
I intend to update the NI-SWITCH CHMs, but don't want to manually build them.
What testing has been done?
Built projects locally and confirmed they still copy the CHM files.

Interesting. Looks like the diff bot can only handle one VI if there are multiples with the same qualified name.

Yeah, it stores temporary files based on the VI's qualified name, not full path. Definitely something to look into if we see this again in the future.


ciabatta cleanup

Fix up redis tls and port handling.  NOTE that turning TLS off required not setting the CRAWLER_REDIS_TLS property ( or setting it to ""). Setting it to "false" does not work
remove the default settings configuration from the dashboard.  Defaults are setup by the crawler itself.

Hi @jeffmcaffer, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Jeff McAffer). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

merging proactively to publish for docker deployment.  Feel free to review and comment after the fact


Repeat energy measurement requests a maximum number of times with a --retries flag

Summary
Infinite retries to find a certain sureness score might not be the ideal behavior of this command. Sometimes exiting sooner with the best measurement is better.
$ etime -r 4 sleep 12
       12.02 real         0.00 user         0.00 sys
     1010.98 joules      83.98 watts       64.2% sure

Possible workarounds
Hope that a good sureness score is found quickly! Or interrupt the command and carry on if that's alright.

This can close #38 if a default is set 👀 Might have to consider the sureness score - if each response has all zeros that might be an alright sign 🪧


Admin Design - Delete Account Pop Up (Desktop View)

Design the desktop view of the delete account pop up.
The screen should display the following details:
- a write up that confirms the action
- a "yes, proceed" button
- a "no, cancel action" button
Design a second pop up screen that confirms that the deletion process is successful.
Ensure you use the colors, typography, icons and side navigation on the style guide to ensure consistency

HI @nhorah  can i work on it please?


Invalid authentication headers - Synchronize your clock

dataserv-client[5456]: 2015-11-26 05:14:49,786 WARNING dataserv_client.messaging 61: Invalid authentication headers. Synchronize your clock with an internet-based time server.
dataserv-client[5456]: 2015-11-26 05:14:49,790 INFO dataserv_client.messaging 75: Query retry in 30 seconds.
dataserv-client[5456]: 2015-11-26 05:14:51,149 INFO storjnode.network.protocol 46: finding neighbors of

My server's clock is correct. I even compared it to time.gov.

Please connect to my testserver (--url http://littleskunk.myqnapcloud.com) and contact me in slack (@skunk). Logfile will tell us whats going on.

Ugh, ok I was having other storage issues. I set --max_size 2T and at some point was getting storage-full notifications in my logs (from various processes I think) when I was at 1.7T for storj.
I think there was still 500G left though, maybe it was MB. I don't remember.
Anyway, I DO remember seeing the clock warning when there was still storage remaining.
Then I had changed my config to --min_free_size 100G and restarted the service.
When I woke up, I saw there was literally NO storage left and df still showed 1.7T for the storj folder. I would have expected storj to trim/purge, but that did not happen.
When I rebooted my server and the service ran starting at 00:44:23 with "Log opened".
ntpdate adjusted time at 00:44:26
The clock warning occurred at 00:44:45
I manually stopped the service and deleted 112G of storj store files starting with the oldest. Then when I restarted the storj service, it was starting at Height 1.
In that case, I stopped the service, deleted all files in the data folder and am starting fresh.
I created my Slack account and am currently running both my storj service and another instance to your url and so far no clock warnings in either my nor your process.
Since I ssh to my server and don't want your process to be dropped, I'm trying to run the command within "(... 2>&1 | tee skunk.log) &". After exiting ssh, I see in my other ssh session that your process is still running. A query to your url occurred at 01:56:(17 & 24) CST.
I don't know if I should open another Issue regarding file manipulation or corruption, but you should probably take into account what happens when files in the "store" are deleted/renamed/edited... as well as keeping an eye on storage used (because of other processes) anytime a new store file is going to be created.
For example, my TV can record a program and the storage drops below the min_free_size. Not only should storj not create a file, but it should trim/purge.

I close this bug because your problem with the invalid authentication header is solved. I can see your instance on my logfile. I will keep my server running for ~10h but i dont think the messages comes again.
Next time dont delete the old shards. You have to delete the new shards. If something goes wrong you can use the --repair argument. It will rebuild missing or corrupted shards. (Missing in the README at the moment. I will fix that later.)
The free space calculation should work if other programs writes files in the background. I think the 1.7 TB are the real problem. But that looks like a OS problem. I found this: http://askubuntu.com/questions/79981/df-h-shows-incorrect-free-space
If you have still problems with free space open a new issure please.

Ah, wonderful. I'm seeing that WARNING in my log again.
Nov 27 19:30:47 <server> dataserv-client[1850]: 2015-11-27 19:30:47,593 INFO storjnode.network.protocol 110: got response from <sanitized>, adding to router
Nov 27 19:30:49 <server> dataserv-client[1850]: 2015-11-27 19:30:49,093 WARNING dataserv_client.messaging 61: Invalid authentication headers. Synchronize your clock with an internet-based time server.
Nov 27 19:30:49 <server> dataserv-client[1850]: 2015-11-27 19:30:49,107 INFO dataserv_client.messaging 75: Query retry in 30 seconds.
Nov 27 19:30:52 <server> dataserv-client[1850]: 2015-11-27 19:30:52,508 CRITICAL twisted 154: 'Did not received reply for msg id <sanitized> within 5 seconds'

And this is perhaps 6 hours after I rebooted my server.
I went ahead and restarted my test client to url again, with the first query going out at 22:44:49 CST, though it looks like you have stopped that service (BadStatusLine).
I'll keep it running though.

I can see the invalid authentication headers in the logfile. Only a few are coming. I gues your clock is 14 sec out of sync. If the connection is to slow you will get the magic message. At the moment it is no problem for you. After 30 sec dataserv-client will try again. You have 5 minutes to send one ping. I did not see that much Invalid authentication headers in the logfile.
For some reason i did not see the time differenz on the logfile. I will add that later and write you a slack message.

I had just rebooted my server again (trying to work with openssl 1.1 and bitcoin compilation).
grepping "your clock" in syslog gave me 119 entries starting from 04:41:47 to 03:58:10 (about 23 hours).
Again, I don't see how my server's time is out of sync at all. I look at time.gov and then run "date" on the server and it isn't off 1 second.
And with a ping of 27ms, speeds of 24mbps/2mbps, I don't see that affecting times.

Bug reopen. I added some log outputs and set the timeout to 0 to see the timedifference every ping. We both checked the system time with time.gov. We have no time difference but the server log shows 7 sec difference. Here is the result.
2015-11-28 22:41:05,896 WARNING main 84: Invalid header date 0:00:14.896466 >= 0:00:00!
2015-11-28 22:41:42,931 WARNING main 84: Invalid header date 0:00:07.931242 >= 0:00:00!
2015-11-28 22:42:19,755 WARNING main 84: Invalid header date 0:00:06.755609 >= 0:00:00!
2015-11-28 22:42:56,715 WARNING main 84: Invalid header date 0:00:07.715423 >= 0:00:00!
2015-11-28 22:43:41,286 WARNING main 84: Invalid header date 0:00:15.286848 >= 0:00:00!
2015-11-28 22:44:18,695 WARNING main 84: Invalid header date 0:00:07.695172 >= 0:00:00!
2015-11-28 22:44:55,561 WARNING main 84: Invalid header date 0:00:07.561789 >= 0:00:00!
2015-11-28 22:45:40,586 WARNING main 84: Invalid header date 0:00:15.586437 >= 0:00:00!
2015-11-28 22:46:17,459 WARNING main 84: Invalid header date 0:00:07.459179 >= 0:00:00!
2015-11-28 22:47:02,276 WARNING main 84: Invalid header date 0:00:15.276647 >= 0:00:00!
2015-11-28 22:47:39,553 WARNING main 84: Invalid header date 0:00:07.553481 >= 0:00:00!
The log prints out 7-14 sec difference. I gues it is the cpu or network connection that needs ~7 sec.
vindicator [16:24]
Sure. And if you're curious of the server hardware (processor) I use: http://www.hardkernel.com/main/products/prdt_info.php?g_code=G143452239825
I'm only using 4 of the LITTLE cores (and not the 4 big) since I built a newer kernel which can't make use of the HMP or whatever. I learned about that issue in a forum thread I opened.
Work is being done to better handle varying core sizes.
I will add some more log output for the client. I would like to see how long the clients needs to generate the authentication.

Some time information from the client log. As you can see the cpu power is the problem. With no other tasks running on that system it needs 6-7 sec to generate the authentication header. With normal usage (running some other tasks) it sometimes needs more than 20 sec to generate the authentication header.
Nov 28 11:01:54 Query: http://status.driveshare.org/api/address generated in 0:00:00.000080
Nov 28 11:02:18 Query: http://status.driveshare.org/api/register/ generated in 0:00:24.059545
Nov 28 11:02:54 Query: http://status.driveshare.org/api/register/ generated in 0:00:06.380941
Nov 28 11:03:12 Query: http://status.driveshare.org/api/height/ generated in 0:00:13.871135
Nov 28 11:03:31 Query: http://status.driveshare.org/api/ping/ generated in 0:00:17.074207
Nov 28 11:04:39 Query: http://status.driveshare.org/api/ping/ generated in 0:00:07.522602
Nov 28 11:05:59 Query: http://status.driveshare.org/api/ping/ generated in 0:00:16.61092
@F483 and @super3
Higher timeout (30sec) or is there a way we can speed up the authentication?

Not sure if this is related to timing/performance:
Nov 28 11:39:41 <sanitized> dataserv-client[3876]: 2015-11-28 11:39:41,073 ERROR twisted 455: 'Did not received reply for msg id <sanitized a> within 5 seconds'
Nov 28 11:39:41 <sanitized> dataserv-client[3876]: 2015-11-28 11:39:41,074 ERROR twisted 455: 'Did not received reply for msg id <sanitized b> within 5 seconds'
Nov 28 11:39:41 <sanitized> dataserv-client[3876]: 2015-11-28 11:39:41,084 ERROR twisted 455: 'Did not received reply for msg id <sanitized c> within 5 seconds'
Nov 28 11:39:41 <sanitized> dataserv-client[3876]: 2015-11-28 11:39:41,085 ERROR twisted 455: 'Did not received reply for msg id <sanitized d (repeat c)> within 5 seconds'
Nov 28 11:39:46 <sanitized> dataserv-client[3876]: 2015-11-28 11:39:46,093 ERROR twisted 455: 'Did not received reply for msg id <sanitized e> within 5 seconds'
Nov 28 11:39:46 <sanitized> dataserv-client[3876]: 2015-11-28 11:39:46,105 ERROR twisted 455: 'Did not received reply for msg id <sanitized f (repeat e)> within 5 seconds'
Nov 28 11:39:46 <sanitized> dataserv-client[3876]: 2015-11-28 11:39:46,106 ERROR twisted 455: 'Did not received reply for msg id <sanitized g> within 5 seconds'
Nov 28 11:39:46 <sanitized> dataserv-client[3876]: 2015-11-28 11:39:46,105 ERROR twisted 455: 'Did not received reply for msg id <sanitized h (repeat g)> within 5 seconds'
Nov 28 11:39:46 <sanitized> dataserv-client[3876]: 2015-11-28 11:39:46,120 ERROR twisted 455: 'Did not received reply for msg id <sanitized i> within 5 seconds'
Nov 28 11:39:46 <sanitized> dataserv-client[3876]: 2015-11-28 11:39:46,123 ERROR twisted 455: 'Did not received reply for msg id <sanitized j (repeat i)> within 5 seconds'

(and to knit-pick, "Did not received reply" should be "Did not receive reply" or "Reply not received for msg")

f483 found a faster signature library. It has low priority. For the moment you have to live with some invalid  authentication header messages. I will ask for a higher timeout.

I changed the timout from 20 sec to 30 sec as workaround but you have to wait for the next dataserv (server) version.

No worries.
I'm in the process of updating my kernel (native build on target) and couldn't use fakeroot because I didn't have SYSV IPC selected when I originally cross-compiled the kernel.
So, temporarily, I installed the 3.10 kernel which didn't have the HMP core limit and now all 8 cores are being used and each is hovering ~30% with bitcoind the primary consumer.
I'm still going to upgrade to 4.4 though which I'm sure will cause the loss of those 4 big cores again.

Performance enhancement will come with https://github.com/F483/btctxstore/issues/12


Add logging options to all option types

[ ] The purpose of this PR is explained in this or a referenced issue.
[ ] The PR does not update generated files.

These files are managed by the codegen framework at Azure/autorest.go.

[ ] Tests are included and/or updated for code changes.
[ ] Updates to CHANGELOG.md are included.
[ ] Apache v2 license headers are included in each file.

I noticed that there are no config options for DefaultAzureCredential which seems broken.  I can add them in this PR, let me know your thoughts.

I noticed that there are no config options for DefaultAzureCredential which seems broken. I can add them in this PR, let me know your thoughts.

That is by design, with DefaultAzureCredential we are literally saying you get all the defaults. I also believe this is the cross-language design for DefaultAzureCredential. We can bring in Scott if you want more info, but I do recall that was at least part of the reasoning, this question has come up before.

Hmm I see.  We can wait for customer feedback to see how this works in practice.


Make istioctl upgrade an alias for istioctl install

Per discussion in environments working group, we want to remove the existing logic from istioctl upgrade and make it an alias for istioctl install. Follow-ups should add (1) running pre-check command in the upgrade command (requires some refactoring) and (2) reimplementing the diff functionality to not pull from github.

[ ] Configuration Infrastructure
[ ] Docs
[x] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[x] User Experience
[ ] Developer Infrastructure

@Monkeyanator: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

gencheck_istio
60bb690931da126ae9bb18fd4f3749dc74e1b2a3
link
true
/test gencheck_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Environment specific settings in config.xml

I've seen a few cordova plugins now, which require that API keys and such to be configured in config.xml
For example, I'm using intercom-cordova plugin, and have to set the API keys like so in config.xml:
<preference name="intercom-app-id" value="..."/>
<preference name="intercom-ios-api-key" value="ios_sdk-..."/>
<preference name="intercom-android-api-key" value="android_sdk-..."/>
<preference name="intercom-android-sender-id" value="..."/>

Sadly, because it's hard-coded in config.xml, I have no way of switching between my test and production Intercom accounts when I run the gulp build commands.
You could argue that the intercom-cordova plugin should allow these things to be set via Javascript, but apparently they have a reason why it can't be done that way, and must be done when the app boots.   So they have to use config.xml to set these values.
Anyway... Does anyone else have this issue?
I like that the gulp config command can change some of the fields in the config.xml programatically.  I.e. the appId, and the versionNo etc.
But it doesn't seem possible currently to change the <preference> tags yet.
If that were possible, then that would probably solve this issue for me.   Is that something that could be added?
Or are there any other ways to deal with this?

Hi @asgeo1, we're currently not working on anything similar. The implementation of gulp config can be found here: https://github.com/mwaylabs/generator-m-ionic/blob/master/generators/app/templates/gulp/configuring.js#L12. It uses the node-xml2js package.
You can try to add options like --addPreference and --removePreference yourself. If you have a working solution I'd be very happy to help you make a PR, so it can become an integrated, maintained feature in generator-m-ionic.

@gruppjo, OK I'll have a look into it.
I've been thinking though, and I like the approach I saw here:  https://github.com/theodo/gulp-ionic-channels
Where the config.xml is generated via a template.
So any of the environment variables in "config.json" (or env-*.json as per this generator), can be injected into the config.xml file.
I think I like that approach better, because the configuration then is just in one place, and can be used through out the whole app.
Yes, it would mean some of the cordova commands which manipulate the config.xml file, you would then have to manually apply the same change to the template, but don't think that is a huge deal.
What do you think?

@asgeo1, let me know how everything is going with this. Was not aware of gulp-ionic-channels. If I find some time I'll have a look at it. Sounds interesting.

👍

I'm closing this, due to inactivity. If there's strong interest, I'm happy to discuss PR details

gulpfile.js
const gulp = require('gulp');
const Config = require('cordova-config');
var fs = require('fs');
var argv = require('yargs').argv;
gulp.task('config', function () {
let data;
let env = argv.channelTag;
if (!env || env === 'dev') {
    data = fs.readFileSync('src/environments/environment.ts', 'utf-8');
} else {
    data = fs.readFileSync('src/environments/environment.' + env + '.ts', 'utf-8');
}

let startIndex = data.indexOf("{");
let lastIndex = (data.indexOf("}")) + 1;

let configEnv = JSON.parse(data.substring(startIndex, lastIndex));
console.log(configEnv);

const configXml = new Config('config.xml');

configXml.setID(configEnv.appId);
configXml.setName(configEnv.appName);
configXml.setVersion(configEnv.version);
configXml.setAndroidVersionCode(configEnv.versionCode);

// Write the config file
configXml.writeSync();

});
environment.ts
export const environment = {
"production": false,
"appId": "in.xyz.abcDev",
"appName": "MyApp Dev",
"version": "0.0.1",
"versionCode": "1000"
};

gulpfile.js
const gulp = require('gulp');
const Config = require('cordova-config');
var fs = require('fs');
var argv = require('yargs').argv;
gulp.task('config', function () {
let data;
let env = argv.channelTag;
if (!env || env === 'dev') {
data = fs.readFileSync('src/environments/environment.ts', 'utf-8');
} else {
data = fs.readFileSync('src/environments/environment.' + env + '.ts', 'utf-8');
}
let startIndex = data.indexOf("{");
let lastIndex = (data.indexOf("}")) + 1;
let configEnv = JSON.parse(data.substring(startIndex, lastIndex));
console.log(configEnv);
const configXml = new Config('config.xml');
configXml.setID(configEnv.appId);
configXml.setName(configEnv.appName);
configXml.setVersion(configEnv.version);
configXml.setAndroidVersionCode(configEnv.versionCode);
// Write the config file
configXml.writeSync();
});
environment.ts
export const environment = {
"production": false,
"appId": "in.xyz.abcDev",
"appName": "MyApp Dev",
"version": "0.0.1",
"versionCode": "1000"
};
Use Below command to generate config.xml
gulp config --channelTag=<dev/uat/prod>


Final video does not appear after synchronization

Hello, after a full synchronization cycle an error appears at the end (I will paste the code below), how to solve it? Thank you
"Extracting frames from video
Hang tight! We're processing your audio, which might take a little while depending on its length.
Tracking Face
Aligning frames with driving audio
Selecting reference images based on input or randomly if unspecified
Using reference frames at indices: [49, 307, 116, 275, 264]
If each value has +5 added do not be alarmed it will -5 later
Synthesizing 314/315 frameAuto Mask stage
Extracting frames from samelength video
Extracting frames from pre_blend video
Tracking Face of Lip-synced (LipSick) video please wait..
Traceback (most recent call last):
File "C:\Users\Work\LipSick\utils\blend.py", line 131, in
main(args.samelength_video_path, args.pre_blend_video_path)
File "C:\Users\Work\LipSick\utils\blend.py", line 39, in main
blend_videos(same_length_dir, pre_blend_dir, samelength_path, pre_blend_path)
File "C:\Users\Work\LipSick\utils\blend.py", line 121, in blend_videos
os.remove(pre_blend_path)
FileNotFoundError: [WinError 2] Unable to find the specified file: './asserts/inference_result\pre_blend.mp4'
Complete
Result saved in ./asserts/inference_results
Thank you for using LipSick for your Lip-Sync needs."

It's not detecting ffmpeg on your system or env, I hid the logs of ffmpeg to make it cleaner that's why your not getting an error message

It's not detecting ffmpeg on your system or env, I hid the logs of ffmpeg to make it cleaner that's why your not getting an error message

I installed ffmpeg and everything worked, thank you very much for the quick response!


Add mcs-related resource syncer role and rolebinding

What type of PR is this?
Feature add.
What this PR does / why we need it:
Add a namespace and a  role to synce mcs-related resources, like endpointslices accross clusters.
Which issue(s) this PR fixes:

Special notes for your reviewer:
It fit for new joined clusters, may be difficult to handle clusters that have been joined into parent before.

Codecov Report
All modified lines are covered by tests :white_check_mark:

Comparison is base (e2ffa5f) 13.60% compared to head (40f2194) 13.03%.
Report is 112 commits behind head on main.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #749      +/-   ##
==========================================
- Coverage   13.60%   13.03%   -0.57%
==========================================
  Files          66       76      +10
  Lines        7492     8725    +1233
==========================================
+ Hits         1019     1137     +118
- Misses       6391     7505    +1114
- Partials       82       83       +1

see 50 files with indirect coverage changes

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


Add CI for spell checking and fix spelling mistakes

This uses codespell to verify the docs won't have spelling mistakes. While I was on it, all errors that it found were fixed. The action used is the official codespell action that features line annotations for issues found.

Thanks!


Create fake datasets for the Internship entity

Objective
Using the Internship schema created by the team, create 20 or more database entries to act as “potential” internship opportunities for students/users to view from our database.
Requirements

Must follow the schema for Internships
Must be entered into our database

Issue
So I tested the .csv files to see if I could copy them into our database and receive the following results:

.csv files can indeed be copied into our postgres database
[issue] the columns/attributes you've created aren't matching the schema's that were created for their respective entities.

For Example: internship.csv -> internship Schema
.csv file reads: (job_id, company_id, position_name, position_type, location, start_date, end_date, semester)
schema reads: (job_id, company_id, tag_id, position_name, position_type, location, start_date, end_date, semester)
Because we are missing a column like "tag_id" the .csv file will fail to copy.
SIDE NOTE: id's must match across the different files i.e (tag_id for an entry must contain the same value in every file it's used.)
Reference


Make better project structure

You should consider adding a "src" folder where everything should be put in subdirectories(if needed).
Also please rename your files eg: "Form1.cs", to something which has more meaning since it can be confusing for someone who has not idea whatsoever about your project.

Will do. As I said the project is still in progress, in its pre-alpha-unreleased-ever-ever version... I still have a lot to do. I will rename everything once I'll add the other forms and classes for the project.

I would suggest to make these: https://github.com/soryncrash13/2dAdventure/blob/master/src/Game.cs#L26-L29
private because I can't really see a point in having them like that.
Also you might want to make these: https://github.com/soryncrash13/2dAdventure/blob/master/src/Game.cs#L28-L29
"float" instead of "int" to have more precision over your "physics" system.

I'm gonna make those variables float, and those are by default private so there's no need to add the keyword, but I'll add it for more clarity. I'm still working with the collisions. They work just fine, but I want to use some other "mechanics" to say so for them. I think I'm gonna change the collisions today.

You might want to add: velocity, friction, dynamic and static objects and if you feel fancy about it kinematic objects are welcomed too :)
I can provide you some code but in Lua if you feel interested.

I'd like that, yeah 😃 . I'll more things but firstly I have to make the movements, jump and the collisions more acurate. Well I made them today. I just have to put each one of them into a method in the main.cs so I can just call them in every form. I think I'm gonna update the code tonight. I'll call you when I do this. 💃 😆

https://github.com/soryncrash13/2dAdventure/blob/master/src/Game.cs#L81 - Better use ArrayList because you want to be able to dynamically allocate memory for each bullet.
Also if I were you I'd start to move some code from Game.cs.

I'll move the code and make it cleaner, but first, as I told you I just want to finish all the assets for the game. Also I have to make the animations for the enemy too...hate that, but you gotta do what you've gotta do.

It was just a reminder :P


0.62 -> 0.63 – Syntax error near 'CONSTRAINT message_ibfk_6'…

💥 BC Break Report
Required Information

?
!

Operating system
CentOS 7

PHP Telegram Bot version
0.63.1

PHP version
7.3.21

MySQL version
5.5.5-10.1.29-MariaDB

Summary
Migration script produces the following error:
(1064): Syntax error near 'CONSTRAINT `message_ibfk_6`'

How to reproduce
Run the v0.63 migration script on a v0.62 DB.
Expected behaviour
Migration script just works.

@0xEAB Thanks for reporting.
This may have to do with earlier MySQL versions having a different syntax for removing foreign key constraints.
Try with this and let me know if that works please:
ALTER TABLE `message`
    DROP FOREIGN KEY IF EXISTS `message_ibfk_6`,
    DROP INDEX IF EXISTS `message_ibfk_6`;

thanks, working fine here


I'd love to know how to add a missing method

I'm happy to make a PR for adding the Array.forEach() method for JS, but I'm just not understanding where all the info is.
Are you just scraping MDN?
Where are all the pages?
How can it be hosted locally if the content is compiled live?
I think you would get more PRs if you had a contributing.md or something.

@bhollan look at the file in /_posts/detail/2012-07-01-javascript.html and you can see all the various properties and methods they have examples of. Hope that helps.

https://github.com/overthecs/overthecs.github.io/blob/master/_posts/detail/2012-07-01-javascript.html

I had the same problem. @nikobradshaw You saved my day.
[url=http://jsonbasicstutorial.blogspot.com ]Json Basics Tutorial[/url]


remote-access: more troubleshooting for wireguard

Readiness

[x ] Merge (pending reviews)
[ ] Merge after date or event
[ ] Draft

Overview
Why merge this PR? What does it solve?
Checklist
Optional. Add a 'x' to steps taken.
You can fill this out after opening the PR. "Did I..."

[ ] Run spelling and grammar check, preferably with linter.
[ ] Avoid changing any header associated with a link/reference.
[ ] Step through instructions (or ask someone to do so).
[ ] Review for wordiness
[ ] Match tone and style of page/section.
[ ] Run make linkcheck.
[ ] View HTML in a browser to check rendering.
[ ] Use semantic newlines.
[ ] follow best practices for commits.

[ ] Descriptive title written in the imperative.
[ ] Include brief overview of QA steps taken.
[ ] Mention any related issues numbers.
[ ] End message with sign off/DCO line (-s, --signoff).
[ ] Sign commit with your gpg key (-S, --gpg-sign).
[ ] Squash commits if needed.

[ ] Request PR review by a technical writer and at least one peer.

Comments
Any thing else that a maintainer/reviewer should know.
This could include potential issues, rational for approach, etc.

Docs for 5b52af44c009389ffdab4d6a1bd033c0c6eb699c are browsable at: https://ci.foundries.io/projects/fio-docs/builds/2279/docs/artifacts/html/index.html


CORS policy doesn't allow requests from localhost

Problem
When I send a GraphQL request to the backend I get a "CORS Missing Allow Origin" error.

Setup
I ran the backend locally with dotnet run, on my Mac (Big sur v11.2.1) with Firefox (v85.0.2.)
Relevant information
I call the backend from my React frontend, running on http://localhost:3000, with this query.
const client = new ApolloClient({
    link: createHttpLink({ uri: 'https://localhost:5001/graphql' }),
    cache: new InMemoryCache(),
});

client
    .query({
        query: gql`
            query {
                forecast(lat: 63.4187703, lon: 10.403743) {
                    forecastGeometry {
                        coordinates
                        type
                    }
                    forecastProperties {
                        meta {
                            updatedAt
                            units {
                                airTemperature
                                precipitationAmount
                                windSpeed
                            }
                        }
                        timeseries {
                            forecastData {
                                instant {
                                    details {
                                        airTemperature
                                        precipitationAmount
                                        windSpeed
                                    }
                                }
                            }
                            time
                        }
                    }
                }
            }
        `,
    })
    .then((result) => console.log(result))
    .catch((e) => console.log(e));

Do not know if this is relevant, but I did not get any other stack traces than that the query is missing
System.InvalidOperationException: Cannot execute request if no query is specified
   at GraphQL.DocumentExecuter.ExecuteAsync(ExecutionOptions options) in /_/src/GraphQL/Execution/DocumentExecuter.cs:line 56
   at GraphQL.Server.Internal.DefaultGraphQLExecuter`1.ExecuteAsync(String operationName, String query, Inputs variables, IDictionary`2 context, IServiceProvider requestServices, CancellationToken cancellationToken) in /_/src/Core/Internal/DefaultGraphQLExecuter.cs:line 54
   at GraphQL.Server.Transports.AspNetCore.GraphQLHttpMiddleware`1.InvokeAsync(HttpContext context) in /_/src/Transports.AspNetCore/GraphQLHttpMiddleware.cs:line 144
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

If any information that would be useful is missing just @ me.

Might you be able to fix this on the frontend by using the proxy configuration in package.json?

Could you also check if the error is present with the docker image installation? You can access the backend over port 5000 without https.

It did not work with the proxy, and I have the same problem with Docker using port 5000.

I'll take a look later today.

I got it to work with using proxies on frontend.
Steps to reproduce:

Add to package.json:

    "proxy": "http://localhost:5000",

Code used for testing

            <button
                onClick={() =>
                    fetch('/graphql', {
                        method: 'POST',
                        headers: { 'Content-Type': 'application/json' },
                        body: `{"operationName":null,"variables":{},"query":"{ forecast { forecastGeometry { coordinates } } } "}`,
                    })
                }
            >
                test
            </button>

Remember that when proxying you need to make a request to the host you're serving the app from. This is done by default when omitting the host in the fetch request, and only including the path.


Using two-lists with vuex causes TypeError.

I use the latest Vue 3(3.0.11) and Vuex 4(4.0.0).
Sorry, couldnt create a quick one. But below is the basic of the component and some of its scripts.
The Component:
<div>
	  <draggable
	        v-model="tempList"
	        :component-data="{ name: 'flip-list', type: 'transition' }"
	        tag="transition-group"
	        group="tasks"
	        item-key="id"
	      >
	        <template #item="{ element }">
	          <div
	            key="item"
	            class="list-group-item min-h-[7rem] max-w-[16rem] rounded text-white text-center bg-black my-3"
	            :class="{ 'not-draggable': enabled }"
	          >
	            {{ element.name }}
	          </div>
	        </template>
	  </draggable>
</div>

The Templist value:
<script>
	const list = () => {
      if (props.list == "working") {
        return store.state.working;
      } else if (props.list == "progress") {
        return store.state.inProgress;
      } else if (props.list == "review") {
        return store.state.inReview;
      } else if (props.list == "done") {
        return store.state.done;
      } else {
        return [];
      }
    };
	const tempList = computed({
      get: () => list(),
      // set: value => store.dispatch("updateTasks", value),
      set: value => {
        // let payload = { value, type: props.list };
        // store.dispatch("updateTasks", payload);
        store.dispatch("updateTasks", value);
      },
    });
</script>

The Store:
state: {
    working: [
      { name: "A", id: 1 },
      { name: "B", id: 2 },
      { name: "C", id: 3 },
      { name: "D", id: 4 },
    ],
    inProgress: [
      { name: "E", id: 5 },
      { name: "F", id: 6 },
      { name: "G", id: 7 },
      { name: "H", id: 8 },
    ],
    inReview: [
      { name: "I", id: 9 },
      { name: "J", id: 10 },
      { name: "K", id: 11 },
    ],
    done: [
      { name: "L", id: 12 },
      { name: "M", id: 13 },
      { name: "N", id: 14 },
    ],
  },

Step by step scenario
Create an app, create a store.
Add my different lists to the store.
Call the lists in a custom draggable component i made(which is basically just a draggable that i can reuse with same values except the passed list from store)
Actual Solution
Dragging within the same list element/draggable (i.e sorting) works.
But dragging to the other list(with the same group name) breaks the whole component(becomes unresponsive).
The console logs out the error:

Uncaught TypeError: Cannot read property '3' of undefined
at insertNodeAt (htmlHelper.js:11)
at Proxy.onDragRemove (vuedraggable.js:251)
at Proxy. (vuedraggable.js:20)
at Sortable. (vuedraggable.js:28)
at dispatchEvent (sortable.esm.js:916)
at _dispatchEvent (sortable.esm.js:961)
at Sortable._onDrop (sortable.esm.js:2187)
at Sortable.handleEvent (sortable.esm.js:2269)

Expected Solution
To be able to move from one list to the other without a problem
Any help will be quite useful for I'm to both vue and vuex.

I've got a near identical setup to this with the exact same issue.
VueX store that's version 4.0 and VueJS that is V3.
Both draggable components are using the same name, the item keys are correct and the VueX get/set methods are correct.
https://user-images.githubusercontent.com/17528695/114955721-3398e900-9e55-11eb-99e2-9ffb041a9f0f.mp4
Seems to be coming from the fatherNode not having the children property set.

+1

Getting the exact same error. This is frustrating! Anyone have a quick fix for this? Is there a version of vue-draggable for Vue 3 that does not have this issue?

@MariusTechweb I got the same problem yesterday, and i just change to this package "vue-draggable-next" and it works without any trouble, you will only remove the <template> tag ( you need to remove it).

@roonie007 Thank you. Anyways, after hours of debugging I got it working. The issue was apparently there's a bug with using tag="transition-group" on draggables you wish to drag between.

Remove the transition group tag worked for me too, just means this is running without any transitions. Snippets below if anyone needs an example.
Original Code:
<draggable v-model="column.cards" group="board" item-key="id" tag="transition-group" :component-data="{name:'fade'}">
	<template #item="{element}">
		<board-card :card="element"/>
	</template>
</draggable>

Fixed Code:
<draggable v-model="column.cards" group="board" item-key="id">
	<template #item="{element}">
		<board-card :card="element"/>
	</template>
</draggable>

@Charlesbjerg I figured you can get the flip animation if you set the prop :animation="500" on the draggable component. Apparently sortable comes with this animation if set.

Submitted pull request #52 to resolve this.

same problem

same problem


Error parsing nested operators inside pseudo without a tagName (ex. div:has(>label+input))

Hello,
I'm trying to match a div which contains direct children of an input and a label div:has(>input+label). This throws the following exception: Expected ")" but ">" found.. I've tested this selector with Sizzle which appears to be handling it fine.
What am I missing? Is there another way to write this that achieves the same result?
Here's a sandbox to play around with it:
https://codesandbox.io/s/css-selector-parser-direct-children-lgp6b?file=/src/index.ts
Note: div:has(*>input+label) and div>input+label can be parsed but return very different elements.
This is a great library otherwise! Thank you for your time.

Hello @gmathieu, this issue was fixed in version v2.2.0. Please update.


Change log format

Description
I would remove the extensive log info.
Instead of this:
2022-06-02 08:41:55 (UTC) wallet::command::account_manager           INFO  IMPORTANT: write this mnemonic phrase in a safe place.
2022-06-02 08:41:55 (UTC) wallet::command::account_manager           INFO  It is the only way to recover your account if you ever forget your password and/or lose the stronghold file.
2022-06-02 08:41:55 (UTC) mnemonic                                   INFO  local judge strong leave chuckle hand drastic found unfair female gift what cash throw rotate poverty make approve cluster settle leave casual agree ring
2022-06-02 08:41:55 (UTC) wallet::command::account_manager           INFO  Mnemonic stored successfully

I would do something like this:
IMPORTANT: write this mnemonic phrase in a safe place.
It is the only way to recover your account if you ever forget your password and/or lose the stronghold file.

local judge strong leave chuckle hand drastic found unfair female what gift cash throw rotate poverty make approve cluster settle leave casual agree ring

Mnemonic stored successfully

Way easier to read the important info fast. Why should I as user need log level and timestamp?
Open questions (optional)
As @Thoralf-M said we could probably make use of https://docs.rs/fern/latest/fern/struct.Dispatch.html#method.format
Are you planning to do it yourself in a pull request?
Yes maybe

All the logs. Just feels weird to me in a tool 🤔

I am closing this as a won't do. We think the logs information are invaluable for debugging purposes.


[zha mode] change wifi network

Hi.
How can I change wifi network name if gateway is in ZHA mode, so it's not available from Mi Home? Can I change network name through telnet and save changes?

It worked, thanks

Thanks, Fixed my issue of resetting the device to pair a new wifi.
This custom firmware with telnet is great


NTL hints should target caches by their property rather than raw number

As a quick example: L2$ is often an exclusive (bigger ooo cores) and inclusive one(smaller ooo, ino), and sometimes its both within SoCs clustering smaller and bigger cores.
Going deeper:
What if there are more than 3 cache levels and the first 3 are all exclusive ones.
Software expecting NTL.L2 to go into inclusive L3 cache is not going to perform as expected.
Does the hint spec dictate the only true cache layout to implement?
Or we are about to see "standardization" of mapping NTL "L*" numbers to actual cache levels?
Instead I'd like to propose skip-levels as:

innermost exclusive (aka L1)
outermost exclusive (e.g. L2 on big cores, L1 on "little")
within-group inclusive (e.g. L2 on "little" cores cluster)
innermost inclusive
(NUMA/chiplet aware something here???)
LLC/SLC (goto DRAM)

In case of simpler cache hierarchy some of those can be reduced to the functionally closest one.

On Thu, Jun 10, 2021 at 6:35 AM jnk0le @.***> wrote:

As a quick example: L2$ is often an exclusive (bigger ooo cores) and
inclusive one(smaller ooo, ino), and sometimes its both within SoCs
clustering smaller and bigger cores.
Going deeper:
What if there are more than 3 cache levels and the first 3 are all
exclusive ones.
Software expecting NTL.L2 to go into inclusive L3 cache is not going to
perform as expected.
Does the hint spec dictate the only true cache layout to implement?
Or we are about to see "standardization" of mapping NTL "L*" numbers to
actual cache levels?
Instead I'd like to propose skip-levels as:

innermost exclusive (aka L1, leave any kind of L0 for speculative
hardware)

outermost exclusive (e.g. L2 on big cores, L1 on "little")

within-group inclusive (e.g. L2 on "little" cores cluster)

innermost inclusive

(NUMA/chiplet aware something here???)

LLC/SLC (goto DRAM)

In case of simpler cache hierarchy some of those can be reduced to the
functionally closest one.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/riscv/riscv-isa-manual/issues/660, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAH3XQQZHUYSEZ3MLNWXZW3TSC5TZANCNFSM46ORJNQQ
.

ntl by property already implemented.
@aswaterman
What's the status of ntl for within-group inclusive caches? SMT might mess a bit here with definitions.
If nothing more is added then issue can be closed.

The short answer is that it's up to the implementers to decide what to do: but I expect most will do the obvious thing and treat the inner caches as "private", even though they're technically shared between harts on the core.


Satheesh

I have made the requested changes and pushed them to my branch. I will be adding more information to the awk tutorial once we complete the initial PR.


Can't build query from constant column in subselect

CrateDB version
4.7.1
CrateDB setup information
3 node cluster
tool: gooddata (goodata.com)
Steps to Reproduce
create table t01 (val long, grp long);
insert into t01 values (1,1),(2,1),(3,2);

select sum(val), grp, true as b from t01
group by grp;
-- returns 2 rows

select * from (
	select sum(val), grp, true as b from t01
	group by grp
) it
where b
-- SQL Error [XX000]: ERROR: Can't build query from symbol true AS b

Expected Result
2 rows
Actual Result
SQL Error [XX000]: ERROR: Can't build query from symbol true AS b

We've fixed this by #12474. Thank you for reporting.


The problem about run train.py

Hello, when I run train.py, I meet this problem, do you know how to solve it?
$ python train.py
True
Traceback (most recent call last):
File "train.py", line 15, in
from det3d.datasets import build_dataset
File "/home/zjlab/lyj/SE-SSD/det3d/datasets/init.py", line 4, in
from .kitti import KittiDataset
File "/home/zjlab/lyj/SE-SSD/det3d/datasets/kitti/init.py", line 1, in
from .kitti import KittiDataset
File "/home/zjlab/lyj/SE-SSD/det3d/datasets/kitti/kitti.py", line 10, in
from det3d.datasets.custom import PointCloudDataset
File "/home/zjlab/lyj/SE-SSD/det3d/datasets/custom.py", line 8, in
from .pipelines import Compose
File "/home/zjlab/lyj/SE-SSD/det3d/datasets/pipelines/init.py", line 20, in
from .preprocess import Preprocess, Voxelization, AssignTarget
File "/home/zjlab/lyj/SE-SSD/det3d/datasets/pipelines/preprocess.py", line 9, in
from det3d.builder import (
File "/home/zjlab/lyj/SE-SSD/det3d/builder.py", line 18, in
from det3d.models.losses import GHMCLoss, GHMRLoss, losses
File "/home/zjlab/lyj/SE-SSD/det3d/models/init.py", line 2, in
from .backbones import *  # noqa: F401,F403
File "/home/zjlab/lyj/SE-SSD/det3d/models/backbones/init.py", line 3, in
from .scn import SpMiddleFHD
File "/home/zjlab/lyj/SE-SSD/det3d/models/backbones/scn.py", line 6, in
from det3d.models.utils import Empty, change_default_args
File "/home/zjlab/lyj/SE-SSD/det3d/models/utils/init.py", line 1, in
from .conv_module import ConvModule, build_conv_layer
File "/home/zjlab/lyj/SE-SSD/det3d/models/utils/conv_module.py", line 7, in
from .norm import build_norm_layer
File "/home/zjlab/lyj/SE-SSD/det3d/models/utils/norm.py", line 4, in
from det3d.ops.syncbn import DistributedSyncBN
File "/home/zjlab/lyj/SE-SSD/det3d/ops/syncbn/init.py", line 1, in
from .syncbn import DistributedSyncBN
File "/home/zjlab/lyj/SE-SSD/det3d/ops/syncbn/syncbn.py", line 12, in
from . import syncbn_gpu
ImportError: /home/zjlab/lyj/SE-SSD/det3d/ops/syncbn/syncbn_gpu.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe26detail36_typeMetaDataInstance_preallocated_7E

@LuYujing-97 Try to re-install the module SE-SSD/det3d/ops/syncbn.


Always update timestamp annotation on Infrastructure reconciliation

How to categorize this issue?

/area ops-productivity
/kind enhancement
What would you like to be added:
Today, the timestamp annotation is only updated when the reconcile operation annotation is added to the Infrastructure: https://github.com/gardener/gardener/blob/f74b427915216972c2595d4271db0520e01b9522/pkg/operation/botanist/component/extensions/infrastructure/infrastructure.go#L136-L139
I think we should always update it (similar to what we do here).
The same issue seems to apply for DNSRecord resources: https://github.com/gardener/gardener/blob/63a4bd7f9fa2b6e18265b7a04c4984316235f0c4/pkg/operation/botanist/component/extensions/dnsrecord/dnsrecord.go#L147-L150
Why is this needed:
The Infrastructure deployment task is only executed in the shoot maintenance time window. However, in case the credentials have expired and the Shoot transitioned to Failed, and now the users retries the operation, the extension won't try reconciling the Infrastructure again since there is no UPDATE event (because the timestamp annotation is not updated).

/assign

@voelzmo Can you potentially add some details what was happening in your scenario and maybe even some more conrete steps for reproduction?

The same issue seems to apply for DNSRecord resources

Can confirm that the same cluster no longer has an infrastructure problem, but now has a DNSRecord problem.

maybe you can clarify a bit more on reproducing the issue.

Here is what I did (caveat: this is how I remember it, no guarantee that this is 100% correct):

I'm using the IaaS based local-setup and had a Shoot from a few weeks ago. I hibernated it back then, because I didn't need it for a while
When I needed it again, I started the local setup, waited for reconciliation to finish with the hibernated Shoot once, then switched to hibernation.enabled: false and tried to reconcile
Saw problems with the credentials (just like always when you get back to your dev setup after a while) and updated creds for internal/default DNS domain and GCP provider
re-tried a gazillion times to reconcile, but didn't succeed
got one step further when Rafael added the timestamp to the infrastructure, now seeing issues with DNSRecords


Implement resilient model generation for changes allowed by the Azure Breaking Change rules

See http://aka.ms/AzBreakingChangesPolicy
This issue tracks implementation of the design described by https://github.com/Azure/autorest.csharp/issues/2351
[Description TBD]

close this one as duplicate of https://github.com/Azure/autorest.csharp/issues/2351


ReferenceError: error is not defined

i need help fixing this if you know how
(node:41652) UnhandledPromiseRejectionWarning: ReferenceError: error is not defined
at GiveawaysManager.getAllGiveaways (C:\Users\brand\Desktop\NT BOT\bot\node_modules\discord-giveaways\src\Manager.js:289:75)
at GiveawaysManager._init (C:\Users\brand\Desktop\NT BOT\bot\node_modules\discord-giveaways\src\Manager.js:391:41)
at new GiveawaysManager (C:\Users\brand\Desktop\NT BOT\bot\node_modules\discord-giveaways\src\Manager.js:57:14)
at Object. (C:\Users\brand\Desktop\NT BOT\bot\index.js:10:27)
at Module._compile (internal/modules/cjs/loader.js:1201:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1221:10)
at Module.load (internal/modules/cjs/loader.js:1050:32)
at Function.Module._load (internal/modules/cjs/loader.js:938:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47
(Use node --trace-warnings ... to show where the warning was created)
(node:41652) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:41652) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I get the exact same error. did u manage to fix it?

Send in that line of code to better assist you guys

It's now fixed 👍

@Androz2091 i updated and still getting the same

that's a bit rude you close it ever tho the one who make it didn't get it fix


Corrected the code, passes seshat tests. Will need to check libseshat…

… tests later

Codecov Report

Merging #24 into master will decrease coverage by 4%.
The diff coverage is 61.29%.

@@            Coverage Diff             @@
##           master      #24      +/-   ##
==========================================
- Coverage   79.52%   75.52%   -4.01%
==========================================
  Files           2        2
  Lines         127      143      +16
  Branches       20       25       +5
==========================================
+ Hits          101      108       +7
- Misses         13       17       +4
- Partials       13       18       +5

Impacted Files
Coverage Δ

src/wrp_interface.c
73.01% <61.29%> (-9.97%)
:arrow_down:

Continue to review full report at Codecov.

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


add exercise on combining features into integration branch

e.g. add another haiku on new branch and merge them into integration branch

Fixed in 305b65b0d25272b0f82f33a9f3ff6349921a18fc.


[1/3] Run GRPC e2e integration tests.

Run GRPC protocol for e2e tests.
Subsequent PR contents:

Run grpc on any additional functional testsuites
Run grpc on performance testsuites.

/lgtm after the minor comment


Button calling setState when unmounted

Hey,
I just noticed that when I unmount a button, react throws the following error:
Warning: Can't call setState (or forceUpdate) on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.

You can reproduce this by simply adding a button and removing it right afterwards like this:
import React, { Component } from 'react';
import Button from '@material/react-button/dist';
import './App.css';

class App extends Component {
  constructor(props) {
    super(props);
    this.state = {show:true};
    process.nextTick(()=>this.setState({show:false}));
  }

  render() {
    return (
      <div className="App">
        {this.state.show && <Button>Button</Button>}
      </div>
    );
  }
}

export default App;

You could also wrap the state change in the button's onClick event:
{this.state.show && <Button onClick={()=>this.setState({show:false})}>Button</Button>}

Maybe I'm not supposed to unmount it this way ?

I believe this is an issue with the Ripple and has been fixed. It will be in the new release, but for now it probably going to show up as a warning.
Is this the same issue you are seeing: https://github.com/material-components/material-components-web-react/issues/111?

Oh I missed that issue !
Yep it's the same warning.
Thank you and keep it up :+1:


Moving to stop downloading dumb init and supervisord from the internet -requirements

This PR aims to get supervisord to be able to build without pulling things from the internet
Signed-off-by: Mohammed Zeeshan Ahmed<EMAIL_ADDRESS>

/approve


cleanup

Hi,
Could you please add clean-ups for package builds? Ideally after package building there will only be a "result/package" directory. There can be a flag to retain intermediate steps for debugging purpose if user is interested.
Thanks.

Thx for the suggestion, I add the --release flag to clean up the temp files

Hi. I've just tested the -r parameter. It does not seem to work. In fact, there were only cythonization but no compilation or linking. Could you please take a look?

Sorry, I do not understand your advice. My understanding is you do not want the intermediate files.
So, you want to reduce the screen output details?

I did not mean verbosity.

If you take a look at the screen shots, no .so files were actually generated if '-r' parameter was used. I guess this is a bug?
The intended behavior is to generate all .so files and then clean up temporary files, right?

Thank you for it.
I delete the temp files at the end of the project
if opts.release:         clearTmpFiles()
I tested the python3 py2sec.py -d example -p 3 -r, and I got the right .so files.
Maybe you can try to download the newest version of py2sec.

Hi,
Here is the output log.
yyang@futures-server:~/Dropbox/curves$ python3 py2sec.py -d curve -p 3 -r

pyEncrypt
python3 tmp_py2sec_build.py build_ext
Compiling curve/examples/regular_engines.py because it changed.
Compiling curve/construction/solver.py because it changed.
Compiling curve/convention/holiday.py because it changed.
Compiling curve/construction/init.py because it changed.
Compiling curve/construction/engine.py because it changed.
Compiling curve/init.py because it changed.
Compiling curve/convention/cashflow.py because it changed.
Compiling curve/construction/constraint.py because it changed.
Compiling curve/examples/init.py because it changed.
Compiling curve/convention/businessday.py because it changed.
Compiling curve/examples/json_engines.py because it changed.
Compiling curve/convention/init.py because it changed.
Compiling curve/convention/daycount.py because it changed.
Compiling curve/construction/objective.py because it changed.
Compiling curve/utils.py because it changed.
Compiling curve/translation.py because it changed.
Compiling curve/convention/frequency.py because it changed.
[ 1/17] Cythonizing curve/init.py
[ 2/17] Cythonizing curve/construction/init.py
[ 3/17] Cythonizing curve/construction/constraint.py
[ 4/17] Cythonizing curve/construction/engine.py
[ 5/17] Cythonizing curve/construction/objective.py
[ 6/17] Cythonizing curve/construction/solver.py
[ 7/17] Cythonizing curve/convention/init.py
[ 8/17] Cythonizing curve/convention/businessday.py
[ 9/17] Cythonizing curve/convention/cashflow.py
[10/17] Cythonizing curve/convention/daycount.py
[11/17] Cythonizing curve/convention/frequency.py
[12/17] Cythonizing curve/convention/holiday.py
[13/17] Cythonizing curve/examples/init.py
[14/17] Cythonizing curve/examples/json_engines.py
[15/17] Cythonizing curve/examples/regular_engines.py
[16/17] Cythonizing curve/translation.py
[17/17] Cythonizing curve/utils.py

Py2Sec Encrypt Finished
yyang@futures-server:~/Dropbox/curves$ ls result/
yyang@futures-server:~/Dropbox/curves$
I do not think any .so file has been generated as the result directory is empty.
I'm already using the latest version.
Could you please take a look again?

Well if I remove the '-r' the program still does not generate .so file. But the old version was able to build .so files. Maybe this can give you more clues.

Hi, thank you for that. Maybe you can put the content of tmp_py2sec_build.py here.
What's more, you can run "python3 tmp_py2sec_build.py build_ext" and put the error messages here.
I'll find the bugs. Thank you very much.

Here is the content of tmp_py2sec_build.py

I also ran the python3 tmp_py2sec_build.py build_ext and did find an error in my .py code.

That said, would it be possible for you to catch the error and emit some message?
Thanks.

It's able to catch the error now. Thx :)

Many thanks. I've not verified it but will close the ticket for now.


Refactor IndexTests

What
Currently the IndexTests perform a lot of operations within a single method which makes it awkward to debug. It would be better to break it down into multiple tests so we can easily identify which part is not working in the event of a test failure.
Issue #138.
How

Split indexTestAll case into separate test cases
Create indexes and json map in setUp

Testing
Existing test cases split up.
reviewer @ricellis
reviewer @alfinkel

I think we can have just have one @Category(RequiresCloudant.class) annotation at the class level instead of one on each test method.

+1

+1 once you address the selectorJson comment.


history should display multiline items better

My suspicion is that table really doesn't like \r from Windows \r\n


Passing Front Matter

Feature request
Having someway to pass front matter from a .jmd to a .md.
Use case
When writing a webpage, the markdown files may require certain front matter, however this has to be added manually after knitting the file every time.

This was also in #197 from about a year ago - but this got literatly 0 feedback from the devs

dup of #197


Fix OpenAPI for pydantic models inheritance

Summary or description
Fixes the OpenAPI representation for Pydantic models inheriting from each other. This is just for the swagger, internally this is not an issue.

@PeterChain @DJWOMS need to do an extra check for python <=3.10 and then I will push again.


Fix typespecs for beginning_of_week and friends

Summary of changes
When running dialyzer against my project, I discovered that the type spec for Timex.beginning_of_week/2 was not correct.  The docs state:

The weekstart can between 1..7, an atom e.g. :mon, or a string e.g. “Monday”

But the typespec only allows for Timex.Types.weekday, which is defined to be non_neg_integer.
Further investigation indicates that the same issue affects end_of_week, days_to_beginning_of_week and days_to_end_of_week as well.
Checklist

[x] New functions have typespecs, changed functions were updated
[x] Same for documentation, including moduledocs
[x] Tests were added or updated to cover changes
[x] Commits were squashed into a single coherent commit

Details
There's not really a way to write tests for this that I can think of, but before making my changes, running mix dialyze reports a number of warnings, including:
lib/timex.ex:1286: Function days_to_end_of_week/1 has no local return

lib/timex.ex:1286: The call 'Elixir.Timex':days_to_end_of_week(x0@1::any(),'mon')
will never return since the success typing is ({{integer(),integer(),integer()},{byte(),byte(),byte()}} |
{integer(),integer(),integer()} | #{'__struct__':='Elixir.Date' | 'Elixir.DateTime' | 'Elixir.NaiveDateTime',
'calendar':=atom(), 'day':=integer(), 'month':=integer(), 'year':=integer(), 'hour'=>byte(),
'microsecond'=>{char(),0 | 1 | 2 | 3 | 4 | 5 | 6}, 'minute'=>byte(), 'second'=>byte(),
'std_offset'=>integer(), 'time_zone'=>binary(), 'utc_offset'=>integer(),
'zone_abbr'=>binary()},non_neg_integer()) -> non_neg_integer() | {'error',_} and the contract is
('Elixir.Timex.Types':valid_datetime(),'Elixir.Timex.Types':weekday()) -> integer() | {'error',term()}

After making these changes, those two warnings are gone.
Similarly, in my project I was getting these warnings for this code:
def for_current_status(today \\ local_today()) do
  Timex.beginning_of_week(today, :fri)
end

lib/invoice_tracker/default_date.ex:37: Function for_current_status/0 has no local return
lib/invoice_tracker/default_date.ex:37: Function for_current_status/1 has no local return
lib/invoice_tracker/default_date.ex:39: The call 'Elixir.Timex':beginning_of_week(today@1::any(),'fri')
breaks the contract ('Elixir.Timex.Types':valid_datetime(),'Elixir.Timex.Types':weekday()) ->
'Elixir.Timex.Types':valid_datetime() | {'error',term()}

Those warnings are now gone with these changes.
An interesting side note: mix dialyze is only complaining about days_to_end_of_week and not days_to_beginning_of_week.  That's because days_to_end_of_week uses :mon as its default weekstart value, whereas days_to_beginning_of_week uses 1 instead.  I didn't change this to be consistent, though I could if that's desirable.

Coverage increased (+0.04%) to 67.18% when pulling dc25da589da41d2625d0c731e7a022fe48d27b18 on randycoulman:fix-weekstart-typespecs into 0b905092ea064614283ddbb0454e58016142d290 on bitwalker:master.

Thanks!


Project missing from codespace.

I created a file projrct.py and along with this were two files of testing and a csv file. I completed the code and also ran it for testing. But now that complete folder is missing. Help me get those files back, they are important:/
Version: 1.89.1
Commit: dc96b837cf6bb4af9cd736aa3af08cf8279f7685
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
Embedder: codespaces

Maybe they can be restored from the timeline feature:

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


HostDefaults.Json Issue

The HostDefaults.json uses entries like below :

"ConfigurationPath": "%SYSTEMDRIVE%\TestLab\Configurations",

I was under the impression that when I run Start-LabHostConfiguration for the first time it will automatically create the required folders under the system drive. But the %SYSTEMDRIVE% is not being expanded in the path by the function.
This creates the directory in my current path rather than the System Drive.

I can work on fixing it, if you confirm I am not doing it wrong.

Hi @DexterPOSH - that could well be a bug. It used to create the folders when running Set-LabHostDefaults, but that behaviour was changed.
Looking at the screenshots, it looks like there needs to be a ResolvePathEx -Path $property call just before the NewDirectory call to expand/resolve the path first. The Test-LabHostConfiguration method will probably need to be fixed too!
If you're happy to fix and sent a PR that'd be appreciated!

Thanks @iainbrighton .
Fixing it now and will send a PR.

PR Created for the above bug.
https://github.com/VirtualEngine/Lab/pull/34


ZEPPELIN-3502 Make notebook dynamic forms title editable

What is this PR for?
Make notebook dynamic forms title editable
What type of PR is it?
Improvement
What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-3502
How should this be tested?
Click to edit the title
Screenshots (if appropriate)
Before

After

Questions:

Does the licenses files need update? no
Is there breaking changes for older versions? no
Does this needs documentation? no

@zjffdu please review

@r-kamath I am not familiar with this feature, what is the difference between the notebook dynamic forms title and the paragraph title ?

@r-kamath I have tested. It's nice feature for global dynamic form.
Thank you!

@mebelousov 👍
@zjffdu similar to editing notebook title, but for the global dynamic form.

will merge this if there are no more discussions


wip

Coverage increased (+0.03%) to 80.363% when pulling 2283d06f140a26fb392c7187650f27f1a89e7ff5 on philippeowagner:master into 49d154228779d38b6134d11634c898042ae973f8 on arteria:master.


For Svelte too?

It would be amazing to have a Svelte implementation too.
Do you know if anyone is working on it?

Nope as far as I know. It would be great if someone is working on it though!

@ConsoleTVs is working on it: https://github.com/ConsoleTVs/sswr.


Range slider not appearing when table view controller is embedded in container view

I'm trying to utilize your NMRangeSlider. Here is an image of what I'm working with:
http://postimg.org/image/j3sjd7w7d/
I have the functions linked correctly, and sometimes when I touch in the area of the range slider it will change the values. However, it rarely works and the range sliders don't even appear. I was hoping you could me; is the embedded container view the problem here?

Problem was fixed; error was my own.


🐛 DRep directory not matching AdaStat's ranking

Area
Delegation Pillar
Domain
gov.tools
Which wallet were you using?
No response
Context
When sorting by voting power, GovTool does not match AdaStat's rankings
https://adastat.net/dreps
lets investigate this one
Steps to reproduce

compare https://adastat.net/dreps (sort by voting power)
compare https://gov.tools/drep_directory (sort by voting power)

Actual behavior
mismatch
Expected behavior
match

@Ryun1 There is a different logic implemented for Adastat and GovTool.

Adastat - shows all active DReps
GovTool - shows all DReps with metadata

DRep directory view on GovTool can potentially be expanded to include all, but with proper filtering.


Login and registration does not work on HTML5 build

Steps to reproduce:

Create an export preset for HTML5
Close the Export window
Click the HTML5 icon on the top right corner of the editor, next to the stop button
Godot will build the project on HTML5 and open a new tab with the game
Once loaded, login or register with an account

Expected result: Login or registration works successfully
Actual result: The project gets stuck at loading indicator

Thanks for your report! Please let me know which versions you used!
Godot and godot-playfab

I am using Godot Mono 3.5.1 and godot-playfab 0.3.2

@zymsbgt can you confirm your browser developer tools yield the same errors?
WARNING: incorrect header check
  at: decompress_dynamic (core/io/compression.cpp:244) - incorrect header
ERROR: Decompression failed.
  at: _call_PoolByteArray_decompress_dynamic (core/variant_call.cpp:677) - Method failed.
ERROR: Error parsing JSON at line 0:
  at: parse (core/bind/core_bind.cpp:3267) - Error parsing JSON at line 0:


fix(deps): update module github.com/sirupsen/logrus to v1.9.3

This PR contains the following updates:

Package
Type
Update
Change

github.com/sirupsen/logrus
require
patch
v1.9.2 -> v1.9.3

Release Notes

sirupsen/logrus
v1.9.3
Compare Source

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:
File name: backend-go/go.sum
Command failed: docker run --rm --name=renovate_sidecar --label=renovate_child -v "/tmp/renovate/repos/github/bcgov/quickstart-openshift":"/tmp/renovate/repos/github/bcgov/quickstart-openshift" -v "/tmp/renovate/cache":"/tmp/renovate/cache" -e GOPATH -e GOSUMDB -e GOFLAGS -e CGO_ENABLED -e GIT_CONFIG_KEY_0 -e GIT_CONFIG_VALUE_0 -e GIT_CONFIG_KEY_1 -e GIT_CONFIG_VALUE_1 -e GIT_CONFIG_KEY_2 -e GIT_CONFIG_VALUE_2 -e GIT_CONFIG_COUNT -e BUILDPACK_CACHE_DIR -e CONTAINERBASE_CACHE_DIR -w "/tmp/renovate/repos/github/bcgov/quickstart-openshift/backend-go" docker.io/renovate/sidecar bash -l -c "install-tool golang 1.20.5 && go get -d -t ./..."


fix Allows to enable memory tracker accuracy detection via Config

add crash_in_memory_tracker_inaccurate, If memory tracker value is inaccurate, BE will crash. usually used in test environments, default value is false.

run buildall

run buildall

run buildall


[Bug] Dark theme not applying to the home page (new tab)

The page background is bright white.
Night mode: off
Theme: Diamond Black

Recent builds of Kiwi have a new night mode with a lot of improvements and many style available in Settings->Night mode .


Clarify confusing overlap labels 'Directory of contacts' and 'Contact us'

The adjacent pages definitely contain different information, but the labels seem duplicative and overlapping to me.
Thoughts on clarifying them? Perhaps 'People' and 'Contact us'? I think it's doubling up on 'contact' that is throwing me…

Can I propose that we maintain the pages as is, but change 'Directory of contacts' to 'Who we are', both in the page name and the navigation label?