panic: runtime error: invalid memory address or nil pointer dereference

kubicorn apply kubicorn-cluster
2018-09-06T12:23:36+05:30 [ℹ]  Selected [fs] state store
2018-09-06T12:23:36+05:30 [ℹ]  Loaded cluster: kubicorn-cluster
2018-09-06T12:23:36+05:30 [ℹ]  Init Cluster
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x140 pc=0x14f9068]

goroutine 1 [running]:
github.com/kubicorn/kubicorn/pkg/initapi.sshLoader(0xc0000e11e0, 0x15, 0x0, 0x0)
	/home/karn/go/src/github.com/kubicorn/kubicorn/pkg/initapi/ssh.go:29 +0x38
github.com/kubicorn/kubicorn/pkg/initapi.InitCluster(0xc0000e11e0, 0xc, 0x0, 0x0)
	/home/karn/go/src/github.com/kubicorn/kubicorn/pkg/initapi/init.go:48 +0x9c
github.com/kubicorn/kubicorn/cmd.runApply(0xc0000e99e0, 0x59a8e0, 0xc000613cc0)
	/home/karn/go/src/github.com/kubicorn/kubicorn/cmd/apply.go:118 +0x2dd
github.com/kubicorn/kubicorn/cmd.ApplyCmd.func1(0xc000026900, 0xc00022be00, 0x1, 0x1)
	/home/karn/go/src/github.com/kubicorn/kubicorn/cmd/apply.go:59 +0x68
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).execute(0xc000026900, 0xc00022bdc0, 0x1, 0x1, 0xc000026900, 0xc00022bdc0)
	/home/karn/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:750 +0x2cc
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x2e67e20, 0xc000613f78, 0x15c71c9, 0x1b0a6cf)
	/home/karn/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:831 +0x2dc
github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra.(*Command).Execute(0x2e67e20, 0x407450, 0xc0000b6058)
	/home/karn/go/src/github.com/kubicorn/kubicorn/vendor/github.com/spf13/cobra/command.go:784 +0x2b
github.com/kubicorn/kubicorn/cmd.Execute()
	/home/karn/go/src/github.com/kubicorn/kubicorn/cmd/root.go:76 +0x2d
main.main()
	/home/karn/go/src/github.com/kubicorn/kubicorn/main.go:22 +0x20

I was having this problem, and it was caused by clusterAPI::spec::providerConfig being empty. The panic is caused by ProviderConfig().SSH being nil here - https://github.com/kubicorn/kubicorn/blob/master/pkg/initapi/ssh.go#L29. If you fix the code to check for nil you still don't get very far because everything else is missing.
I haven't figured out what yet, but something appears to be blanking out that section in cluster.yaml sometimes, possibly after certain errors occur. Solution was to regenerate the file with kubicorn create, or just back it up so you can restore it if something overwrites it.

I've now played with this a bit more and traced through it many times, and I must be missing something because I can't see how it ever worked. Has anyone successfully deployed an Azure cluster in the last few months?
The thing I can't understand is that, as per my previous comment, resourcegroup.immutableRender() returns a cluster object with the ProviderConfig created from a new struct i.e. empty, so most or all of the original ProviderConfig is lost at this point.
What puzzles me even more is that AtomicReconciler.Actual() is passed in a cluster config in the parameter known, but this is not used in the function, it instead starts with r.known but it loops over the resources and overwrites the actualCluster variable inside the loop, so it only ever returns a cluster object with the resource info of the last resource in the list.
At which point the original ProviderGroup details from cluster.yaml are lost, but they are used after that, like to get the SSH details, and are stored back to the original file, so they are lost forever. You can't even retry.
Sorry if I'm just sharing my ignorance and I'm missing something pretty basic.


Unbalanced calls to begin/end appearance transitions

Hello
I have a view controller in a tab-bar setup. When I click the tab-bar for this controller, I receive this error. I'm using the FixedPagingViewController with only 2 view controllers.
Unbalanced calls to begin/end appearance transitions for <ClassOfFirstViewController: 0x1028f1c00>.
Everything works. There are no crashes or weird behaviour, but it seems something is wrong when this happens, at least according to: https://stackoverflow.com/questions/9088465/unbalanced-calls-to-begin-end-appearance-transitions-for-detailviewcontroller
My code for the view controller in the tab-bar looks like this:
override open func viewDidLoad() {
        super.viewDidLoad()

       // I initialize the view controllers here as:
       let viewController 1 = self.storyboard?.instantiateViewController(withIdentifier: "whatever1") as! ClassOfFirstViewController
       let viewController 2 = self.storyboard?.instantiateViewController(withIdentifier: "whatever2") as! ClassOfSecondViewController

        pagingMenuController = FixedPagingViewController.init(viewControllers: [viewController1, viewController2])
        pagingMenuController.dataSource = self;
        pagingMenuController.delegate = self;
        pagingMenuController.select(index: 0)
        pagingMenuController.indicatorOptions = .visible(height: 3, zIndex: Int.max, spacing: UIEdgeInsets.zero, insets: UIEdgeInsets.init(top: 0, left: 0, bottom: 0, right: 0))
        pagingMenuController.indicatorColor = UIColor.green
        pagingMenuController.backgroundColor = UIColor.black
        pagingMenuController.menuBackgroundColor = UIColor.black
        pagingMenuController.selectedTextColor = UIColor.lightGray
        pagingMenuController.textColor = UIColor.lightGray
        pagingMenuController.font = UIFont.systemFont(ofSize: 11);
        pagingMenuController.selectedFont = UIFont.systemFont(ofSize: 12);
        pagingMenuController.menuItemSize = .sizeToFit(minWidth: 0, height: 40)
        pagingMenuController.borderColor = UIColor.red
        pagingMenuController.borderOptions = .visible(height: 0, zIndex: 0, insets: UIEdgeInsets.zero)
        pagingMenuController.menuInteraction = .none

        addChild(pagingMenuController)
        controllerViewContainer.addSubview(pagingMenuController.view)

        pagingMenuController.didMove(toParent: self)
        pagingMenuController.view.translatesAutoresizingMaskIntoConstraints = false

        NSLayoutConstraint.activate([
            pagingMenuController.view.leadingAnchor.constraint(equalTo: controllerViewContainer.leadingAnchor),
            pagingMenuController.view.trailingAnchor.constraint(equalTo: controllerViewContainer.trailingAnchor),
            pagingMenuController.view.bottomAnchor.constraint(equalTo: controllerViewContainer.bottomAnchor),
            pagingMenuController.view.topAnchor.constraint(equalTo: controllerViewContainer.topAnchor)
        ])

}

viewController1 and viewController2 do not initialize any child view controllers or present anything when created, and I didn't encounter this error on the previous library I used.
Any idea what I might be doing wrong?
I should add that this is unrelated to the "hack" (https://github.com/rechsteiner/Parchment/issues/334) I had to implement to get the library to work like  I wanted to. It gives this error warning on the release version as well.
Edit: I had to add the "controllerViewContainer" as a subview with top-bottom-width-height constraints to "safe area" of the view controller's view and use that. If I don't do this, the menu in the top simply disappears. Removing this view and going directly with self.view removes the menu but does not remove the warning.

Hi @nickdnk! Thank for the report. This should be fixed now (#373). Sorry for taking so long to get a fix ready – I'll release a new version soon 🙂


Re-update back to rector 0.12.9

@TomasVotruba let's try re-update back to rector 0.12.9 as the remove sensio fw was the reason the demo page was error https://github.com/rectorphp/getrector.org/issues/461#issuecomment-999191625

@TomasVotruba it works 🎉  https://getrector.org/demo/1ec62c39-2eeb-6b5e-9b76-c55d5220bbde


JAMES-3759 Fix typo and enable leak detector for real

Co-Authored-By: Jean Helou<EMAIL_ADDRESS>

After fixing the typo, we will get ci fail.
Maybe it is related https://github.com/apache/james-project/pull/940#issuecomment-1085518526

After fixing the typo, we will get ci fail. Maybe it is related #940 (comment)

Yes, it's why I opened https://issues.apache.org/jira/projects/JAMES/issues/JAMES-3760

That is a question that I asked on JIRA but I got no answer.
From what it seems, at least on james-core where this build fails, we are mostly testing how tests manages mails, and not really james itself. It's likely long to fix for limited benefits.
How about activating leak detection in only strategically chosen projects like integration tests instead?

Is there any plan to carry on this work?

That's not to be answered by the authors of the PR I'm afraid. I still think the current situation is bad:

the build files contain senseless configuration with typos
contributors and the CI log warnings in every tests we run because that's the default policy when the detector is left unconfigured

In https://issues.apache.org/jira/projects/JAMES/issues/JAMES-3760 you suggest disabling the leak detector entirely to which I answered that this would prevent early detection of new leaks in production code.
I am not familiar enough with the leak detector code and how it works but would it be possible to have a whitelist of sources for which leaks are ok and then actually fix the problem ?

Agreed, i'm in favor of fixing the typo and turning off leak detection in tests to not be flooded as we do not achieve good resource management in our tests.

Well any places that creates a mail is suspicious IMO. Hard to say "that stack is okish, that one's not".

Early detection is the reason we activated it in tests, but in the middle of the flood we will not notice anything, thus as of today early detection in build seems like a non reached objective to me.


MunkiReport and Python3 versions

I have set MunkiReport up previously at several companies and I am now beginning the same process at my current employer.
I found the following article by @kevinmcox which lists a concern over which version of Macadmins Python3 installer to use with MunkiReport. This article is however now a bit dated and there have been further updates to the Macadmins Python3 pkg since it was written.
https://www.kevinmcox.com/2023/06/munkireport-python-3-and-php-8/#more-1761
Is there a new recommended version to use or should one still stick with <IP_ADDRESS>716?

For the time being, you have to use Python 3.10, but any version of 3.10 will work properly with MunkiReport 5.8.

Thanks, yes 3.10 is working fine, I have configure my Munki repo not to enable newer versions at this time.


Filtered wagons using incorrect stack sizes

I have a heavily modded game, and have just unlocked trains/cybersyn.
I am seeing an issue where requests at a precise multi item provider station are locking half the number of required slots in the cargo wagons - so if I request 200 processed fuel (with a stack size of 100), only one slot is set with the filter, so the train never leaves the provider station.
I have attacked a save with the issue. I don't know how transferring saves works, so if you aren't spawned in the train and instead start in the shelter, go east to the waiting train. Once it has hit the inactivity threshold it should go to the provider and stay there.
Hopefully this is just something I've missed, but I have gone over my set up several times and can't see anything different, except I am using loaders instead of inserters. I would be surprised if that was the issue though. It could be to do with the mods, but everything else is detecting the stack size correctly - it's just the filters on the wagon that is the issue, which unfortunately makes cybersyn pretty useless. I have tested with half a dozen different cargo types, so it isn't just related to the processed fuel
cybersyn_bug.zip

Nevermind, found the issue (standard after posting the bug). The set up I am using doesn't have the same items in each wagon, and cybersyn was setting filters across all the wagons (which obviously makes sense, it isn't magic and doesn't know that only some wagons accept some cargoes)


Button above image view flashing during modal transition

We are considering using Hero for transitions within our application and have been trialing it out today.
We are having an issue with a close button flashing during a modal presentation of a details view controller.
The rootVC is a collection view with cells in that once tapped open a details view. The collection view cells have an image and 3 labels which are also present on the details screen. These are matched up with hero IDs and animate as expected. On the details screen there is a dismiss button in the top left (on top of the imageView). This does not have heroID as it is not on ht previous view controller ad we just expect it to fade in.
As you can see in the video the button appears to fade in then become 100% visible before fading in again causing a sort of flash.
Any suggestions to what we could be doing wrong?
Thanks in advanced for you help and working on this library.
RootVC
        let cell: DealCardCellCollectionViewCell = collectionView.dequeueReusableCell(forIndexPath: indexPath)
        let deal = deals[indexPath.row]
        cell.configure(for: deal)

        cell.dealCard.imageView.hero.id = deal.id + "_offerImage"
        cell.dealCard.titleLabel.hero.id = deal.id + "_offerTitle"
        cell.dealCard.descriptionLabel.hero.id = deal.id + "_offerDescription"

    func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
        let deal = deals[indexPath.row]

        let detailsVC = OfferDetailsViewController.makeFromStoryboard()
        detailsVC.deal = deal
        detailsVC.hero.isEnabled = true
        self.present(detailsVC, animated: true, completion: nil)
    }

DetailsVC
// called from viewDidLoad
 private func configureHeroIdentifiers() {
        imageView.hero.id = deal.id + "_offerImage"
        titleLabel.hero.id = deal.id + "_offerTitle"
        descriptionLabel.hero.id = deal.id + "_offerDescription"
    }

Give the button these modifiers: .fade, .useGlobalCoordinateSpace

Thanks useGlobalCoordinateSpace seems to be the magic modifier. Could you give me an explanation of what the flag does?

@bencallis Checkout this post that I just wrote. http://lkzhao.com/2018/03/02/hero-useglobalcoordinatespace-explained.html

Thanks very much for that!


Increase the Control Point victory requirement back to 90

Might also want to reduce the frequency of messages written when a team is above the warning threshold.
I've heard people say it is too spammy and I feel the same.


Where to solve problem with calculate_md5?

In boto3 1.4.0 I can see next if statement:
if request_dict['body'] and 'Content-MD5' not in params['headers']:

In my file-like object __bool__ method depends on file name. If file name is empty, this check is fail and my POST-request to s3 is failed with ClientError later.
Can this check be improved or should I manage file name by myself?

Interesting, is this a custom file-like object class you are using or is it coming from a library? I think ideally we would like to keep it as is, but if there are existing classes in other libraries that have this behavior I could see a case being made to change it.

@kyleknap Thanks for response! This is not python file-like object, I talked about Django's File object
As it works bad with requests library too, I guess no need to change something in botocore.


HikariCP and active connections in Postgresql

Hi all, Brett,
I'm using HikariCP for the past month, transitioning from BoneCP to remedy some leak connection problems. I'm using Hikari with Postgresql, Spring and Hibernate, and I'm printing some MBean statistics  about the active/idle connections. As reported by Hikari pool MBean, active connections slowly but steadily increase. However, when running
select query, state, state_change from pg_stat_activity
to the postgresql, all connections are reported as idle.
I'm sure that when the active connections reach the max pool size, the application will freeze. Which one reports the correct status of the connections, Hikari or postgresql? Is there a way to see which query is running on the active connections from Hikari?
Thanks in advance
mantesat, Greece

Brett, apologies for re-posting to this after a long time, seems not to be resolved (although latest versions have considerably improved things). From statistics, it seems that slowly but steadily, active connections tend to increase.  I don't know if anyone has already reported such behavior, I'll try to use it from source code and find out why connections stay marked as active. Any suggestions are welcomed!

We have the same issue, since we have moved to Hikari on our postgres databases, we have frequent (once every 1-2 weeks) issues, the database runs out of connections. Restarting the tomcats using Hikari fixes the issue.
Code sample:
HikariConfig config = new HikariConfig(dcAccessDetails.getDetailsAsPropertiesForHikari());
    	config.setIdleTimeout(180000);
    	config.setMaxLifetime(1800000);
    	config.setInitializationFailFast(true);
    	config.setConnectionTestQuery("SELECT current_timestamp");

public Properties getDetailsAsPropertiesForHikari(){
		Properties props = new Properties();
		props.setProperty("dataSourceClassName", DatabaseUtil.POSTGRES_DATASOURCE_CLASS);
		props.setProperty("dataSource.user", this.dcDbUser);
		props.setProperty("dataSource.password", this.dcDbPassword);
		props.setProperty("dataSource.databaseName", this.dcDbDatabaseName);
		props.setProperty("dataSource.serverName", this.dcDbServer);

		return props;
	}

I have a similar issue with Hibernate+Postgresql:
http://stackoverflow.com/questions/32968530/hikaricp-connection-is-not-available

I am experiencing similar issue, I am using hibernate, spring-JPA with HikariCP. The application hangs and things return to normal on appserver restart.
HikariDataSource dataSource = new HikariDataSource();
dataSource.setDriverClassName(DB_DRIVER_STRING);
dataSource.setJdbcUrl(URI_STRING);
dataSource.setUsername(USERNAME);
dataSource.setPassword(PASSWORD);
dataSource.setMaximumPoolSize(20);
dataSource.setTransactionIsolation("TRANSACTION_READ_COMMITTED");
dataSource.setLeakDetectionThreshold(30000);
dataSource.setIdleTimeout(60000);
dataSource.setInitializationFailFast(true);
dataSource.setConnectionTestQuery("SELECT current_timestamp");
I have enabled debug logging but could not detect any connection leak.
Any suggestions will be helpful.

How can convert HikariDataSource to PGSimpleDataSoaurce?

@arlampin This is not the right issue thread for that question. The answer is here.

Has this issue been resolved? I don't see any obvious resolution on the thread. Am I missing something?

IMHO it is a library configuration issue. I use EclipseLink (JPA) + HikariCP + Postgres without any additional library like Spring. EntityManger instance is created inside a servlet filter (which results in obtaining a connection) and that EntityManager instance is closed in that same filter after the request is done (which releases the connection to the pool).
So it not really an issue with HikariCP.

Thanck you very much.
Alex Parincu
On Thursday, April 27, 2017, 9:28:48 PM GMT+3, Jens Nehlmeier<EMAIL_ADDRESS>wrote:
IMHO it is a library configuration issue. I use EclipseLink (JPA) + HikariCP + Postgres without any additional library like Spring. EntityManger instance is created inside a servlet filter (which results in obtaining a connection) and that EntityManager instance is closed in that same filter after the request is done (which releases the connection to the pool).
So it not really an issue with HikariCP.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

This issue is real. I am confirming that is is reproducible without hibernate and spring. Just plain JDBC.
Postgres is flooded with "SHOW default_transaction_read_only" queries (Hikary 3.3.1)


added timestamp parser to unit tests

could it be a problem when 2022-01-19T17:18:14Z isn't right parsed to a timestamp?


Control Debug Prints with a bitwise mask

I find debug prints very useful... when there is a bit of control on what can be enabled and disabled.  The simple on/off for debug print has been something that I haven't been a fan of, so I wanted to do something with it.
What this does

CQUI_ShowDebugPrint is now treated as a hexadecimal number, rather than true/false.
Various entities (like TradeOverview, CQUI Settings, or CityBannerManager) can have their debug_prints enabled on or off by setting the value of CQUI_ShowDebugPrint.

A debug print only appears if the bitwise-AND of the CQUI_ShowDebugPrint value and the mask value from that entity are not zero.

Automatically pre-pends [CQUI] to the beginning of the print_debug lines
Files that had print_debug calls had a function added to the top to handle adding the entity mask (CityBannerManager_CQUI_basegame and _expansions call through CityBannerManager_CQUI, so that last one is the only file to get that wrapper function)

Mask Values, defined in CQUICommon.lua:
g_CQUI_DebugMask_CQUICommon  = 0x1;
g_CQUI_DebugMask_InGame      = 0x2;
g_CQUI_DebugMask_World       = 0x4;
g_CQUI_DebugMask_CityBanners = 0x8;
g_CQUI_DebugMask_Trade       = 0x10;
g_CQUI_DebugMask_MoreLenses  = 0x20;

Examples:

if CQUI_ShowDebugPrint is 0x8, then only the debug prints from CityBannerManager show in the FireTuner.
if CQUI_ShowDebugPrint is 0x7, then debug prints from "CQUI" (CQUISettings and CQUICommon), "InGame", and "World" (WorldInput and WorldViewIconsManager) will appear.
if CQUI_ShowDebugPrint is 0xFF, then all debug prints will appear

CQUICommon is the only file that calls the print_debug_masked from the other functions, all the other files that had an instance of print_debug now have a print_debug wrapper function added that calls print_debug_masked with the mask file.
How Tested
Set the value to various things and verified it worked.

I don’t use debugprint at all because it spams too many lines into a log. What you propose is supposed to address this issue but a) it complicates things much b) eventually you will still have many lines imho. There are too many components in UI to bit-code them efficiently. Then you need to manually enable or disable them. Plus you still need to place debugprints in the places you actually want them to be.
I prefer a simple approach - just place prints where I want them and comment out later. Simple, easy, no overhead later.

I find I can't make a strong argument against.  The intention was to selectively control the noise, but yeah, ultimately too much noise is too much noise.  Also, as that last commit on this PR demonstrates, I tend to do the "add a temporary print line, remove it later" thing too, so..
I'll change this to cleaning up the debug_prints, revert it back to true/false


[Installation Status Updater] Playnite Crash

Extension name
Installation Status Updater
Bug Description
Playnite crashes randomly because of Installation Status Updater. Playnite crashes when it just runs in the background and when I'm playing a game. It crashes randomly no matter what I'm doing. I think the time it takes until Playnite crahes is random too. The Extension works, it just crashes Playnite.
To Reproduce
I have no idea. It crashes randomly no matter what I'm doing.
Extensions log
extensions.log
playnite.log
Screenshots

No response

Can you upload your Playnite.log file too please? There isn't any info regarding the crash in the extensions.log file but it should be in that other file

Also has this always happened, was it after an update?

Also has this always happened or was it after an update?

This happened already for few weeks. After I installed the extension everything worked but after a few weeks it began to crash. I hoped maybe this update would fix it but sadly it didn't.

It's the same issue as  #260
Can you install the debug build, run the status check and upload your logs? https://github.com/darklinkpower/PlayniteExtensionsCollection/issues/260#issuecomment-1152730702

I'm sorry, it seems I made a mistake and uploaded the incorrect build that didn't log all that I needed. Can you do the same thing with this one and upload the logs afterwards? Sorry for the inconvenience. I also added a small change that may fix the issue.
Installation_Status_Updater_2_31.zip

I'm sorry, it seems I made a mistake and uploaded the incorrect build that didn't log all that I needed. Can you do the same thing with this one and upload the logs afterwards? Sorry for the inconvenience. I also added a small change that may fix the issue.
Installation_Status_Updater_2_31.zip

Sry, I don't think I can help you find the bug anymore. I'm not sure why, but Playnite doesn't crash anymore. I don't know if it was because of a game I have uninstalled now or something else, but I don't have any problems with this Add-On anymore. Still, thank you for helping me. If it still helps somehow even if I don't have the bug anymore, here are my logs.
extensions.log
playnite.log

Thanks. Just as last info, this the issue disappear after installing this test version or was it before? I'm wondering if the fix attempt I made on it is what fixed it.

I think the issue disappeared after I installed the 2.30 debug build.

oh I see, the issue is actually still there. The issue doesn't show anymore because the error is being catched and preventing from stopping execution. The latest log contains the info I needed to fix it, I'll look into it, thanks.

np

I identified the issue. Your game Azur Lane has quote characters in the game action path "C:\Program Files\BlueStacks_nxt\HD-Player.exe" and causes the error. I'll do something to prevent the error.

Oh, I forgot to remove the quotation marks when I copied the path.

Fixed in https://github.com/darklinkpower/PlayniteExtensionsCollection/commit/bf1fc66c7c1c8c6ed7bb289b3c9e5021a03dead3

Nice, thank you.


feature request: provide a command to list available endpoints

When moving between regions, I have to do a google search to find the appropriate endpoint.  Could we introduce a command (e.g. 'targets') that listed the available endpoints?

when you login without previous endpoint set you will be prompted by available endpoints.  Run ibmcloud api --unset to clear the previous endpoint setting.
If you want to switch region after login, run ibmcloud target -r REGION_NAME,  you can use ibmcloud regions to get all the regions.

please reopen if the answer does not solve your issue


Antijoins require distinct collection

Apparently the second argument of an antijoin in differential dataflow must be a distinct collection.

Quick comment, this is "as intended", but not very well documented (you would have to read semijoins documentation and antijoins implementation in terms of semijoin).
My sense is that it is good to have an operator that does not enforce distinctness, so that if you know that your input data are distinct, you can avoid a redundant computation. But, I think like with semijoin it may be that overloading the language here while cute just leads to confusion for folks who expect a relational, set-valued antijoin.

As mentioned over in the DD issue, one thing that could make sense is some very light tracking of "what relations must be distinct?" For example, the output of a distinct is distinct, a distinct collection that is filtered is still distinct, any collection subject to a map is not necessarily distinct, etc. The results of a join of distinct input relations will be distinct if no projection occurs, etc.


Static Page: Site Authors

displays all blog authors on /authors/ page.
for example of this in action, please see:
https://squintermedia.com/authors/
to use, create a New Page in Ghost administrator panel. Make sure the Page URL is set to authors

live page:

Sorry, I have been quite busy these days. The link seems expired now.
Please create the pull request to dev branch instead of master, thank you.


Changes to enable remotewrite option to Prometheus

Signed-off-by: jooho<EMAIL_ADDRESS>

Thanks for the patch @Jooho .
Looks good to me!
Could you please fix the CI issues and resubmit? Do ping us if you need help with fixing any of these.


Stacked not working as expected with multiple axis

Checklist

[x] I updated the card to the latest version available
[x] I cleared the cache of my browser
[x] I verified that I'm really running the lastest version in my browser console
[x] I checked if there is another issue opened with the same problem

Describe the bug
Stacked: true not working as expected with multiple axis.
I have a view which shows total docker memory used on one axis and then the idea was to have the memory usage of different docker containers on the other axis stacked. However when I try to stack the values they are not stacked.
Example without stacked

Example of same data after stacked: true

Version of the card
Version: 1.9.0
To Reproduce
This is the configuration I used:
type: 'custom:apexcharts-card'
update_interval: 15m
stacked: true
header:
  show: true
span:
  end: hour
yaxis:
  - id: left
    apex_config:
      decimalsInFloat: 1
      forceNiceScale: true
  - id: right
    apex_config:
      decimalsInFloat: 1
      forceNiceScale: true
      min: 0
    opposite: true
all_series_config:
  fill_raw: last
  type: column
  stroke_width: 1
  group_by:
    func: avg
    duration: 1h
  show:
    datalabels: false
    legend_value: false
series:
  - entity: sensor.docker_memory
    name: Docker
    type: line
    stroke_width: 1
    color: black
    yaxis_id: right
  - entity: sensor.docker_homeassistant_memory
    name: HASS
    yaxis_id: left
  - entity: sensor.docker_mc_java1_memory
    name: Java 1
    yaxis_id: left
  - entity: sensor.docker_mc_java2_memory
    name: Java 2
    yaxis_id: left
  - entity: sensor.docker_mc_bedrock1_memory
    name: Bedrock 1
    yaxis_id: left
  - entity: sensor.docker_calibre_memory
    name: Calibre
    yaxis_id: left

Expected behavior
Columns should be stacked
Desktop (please complete the following information):

Browser: Brave
Version: 1.25.68 Chromium: 91.0.4472.77 (Official Build) (x86_64)

Stacking doesn't seem to work well with multiple yaxis. That is a limitation of the library I use. not much I can do about it unfortunately.


Fix PROCTOR_URL behaviour

The PROCTOR_URL name of the config variable implies that it must be a URL. But in the code, it is used as a hostname. This is confusing.
Example lines:
https://github.com/gojektech/proctor/blob/master/daemon/client.go#L42
https://github.com/gojektech/proctor/blob/master/daemon/client.go#L64

One solution would be to support a few more config options like PROCTOR_HOST. And change the behaviour of PROCTOR_URL to support a full base URL.


(maint) Bump facter version included in the MSI

This commit bumps the version of facter included in the puppet msi to
the latest release available, which is facter 2.4.4

:+1: could also use [skip ci] to avoid specs.

Also a +1 on this

CLA signed by all contributors.


Missing argument label 'strategy:' in call errors on build of 0.32.1

Hi Mike,
Hope you are doing great.
I'm getting two errors on build when I updated to 0.32.1:
/SourcePackages/checkouts/clerk-ios/Sources/UI/Components/Auth/SignUp/SignUpEmailCodeView.swift:63:50 Missing argument label 'strategy:' in call
/SourcePackages/checkouts/clerk-ios/Sources/UI/Components/Auth/SignUp/SignUpPhoneCodeView.swift:63:50 Missing argument label 'strategy:' in call
Error also appears on 0.32.0 but doesn't appear on 0.31.0
I am using:
Xcode Version 15.4 (15F31d)
iOS Deployment target 17.0

Hey @semirteskeredzic, thanks for letting me know! This is fixed in 0.32.2. When we're ready to move the clerk sdk to beta we'll have CI setup to avoid these little missed issues. Sorry about that!


Debugger: debug.inlineValues support for case insensitive variable names

Hey, I am working on a debugger for a case insensitive language. When looking into the source I didn't see any way to define the expressions as case insensitive.  https://github.com/microsoft/vscode/blob/193483676699fcbde88f7a7748b189cb2bda7efe/src/vs/workbench/contrib/debug/browser/debugEditorContribution.ts#L79
With debug.inlineValues set to true I can’t get camel case vars to work. In the below example you can see we have the value for postdata but it won’t match postData in the code even though they are the same reference.

As an extension maintainer and/or author we would like to be able to define ether the language as a whole as case insensitive or the scope/variables themselves.

Yes, this is a valid feature request.

A debug adapter could for example specify this using a capability. Or alternativly we could change the debug.inlineValues to be a string setting so the user or an extension could change it to be case insensitive. I prefer the capability approach.

IMO the debug adapter is not in a good position to know about case sensitivity because it has no syntax knowledge of the source language because it doesn't take transpilation into account (e.g. CoffeeScript, TypeScript -> JavaScript).
I'm currently looking into this problem in a broader way: similar to what we did for debug hovers with the EvaluatableExpressionProvider, I'm trying to do design an InlineValueProvider that can be contributed by a language extension.

@weinand that sounds like a great approach. However why do we need a separate thing for the Inline values, can we just reuse what you already did for the debug hovers with the EvaluatableExpressionProvider?

@isidorn yes, that's exactly what my protoyping tries to find out: do we need a new abstraction or could we just use a variant for the EvaluatableExpressionProvider. Since the EvaluatableExpressionProvider uses the mouse position, it is not a very efficient way to find all inline expressions by probing for each character position in a line of source. In addition there is now way to figure out whether an evaluatable expression for one position is the same as for the next position...

@weinand yeah that feels like a way to go here. Just a new method provideEvaluatableExpressionForLine on the EvaluatableExpressionProvider

Since it is a bigger effort to provide extension API for the debugger's "inline values" feature, I've created a new feature request #105690.

I've released a first cut of the "inline values provider" implementation which should make it possible to address this issue.
What you need to do:
implement an InlineValueProvider for your language that locates variables in the given lines of a document and return them from the provider as an array of InlineValueVariableLookup objects. VS Code will match them against the variables in the VARIABLE view to find their values. When creating the InlineValueVariableLookup object you can use the constructor argument caseSensitiveLookup to control how the lookup should be done.

@weinand Thanks! Thats great I'll take a look over the next few days.

@chrisdp I will provide more infos and a sample when preparing the release notes next week.

@chrisdp I will provide more infos and a sample when preparing the release notes next week.

That is perfect. I'll wait for that to drop then. Thanks!

@chrisdp a sample that shows a case sensitive variable name lookup appears in the release notes of the upcoming 1.54 release. In order to make it case-insensitive you need to pass the value false as a third argument to the InlineValueVariableLookup constructor.
In a addition you will need a regular expression that finds the variables in your language.

@weinand Thanks. I saw that and let the other maintainer of the extension we are working on know. Hopefully we will be able to take a look soon ™  and give some feedback 👍

I'm closing this because we have addressed the problem by introduction of the Inline Values Provider API.


Not all dates selected when dropdown start and end calendars are used

Reported by Randy Pierce. Server AWS, database -mv_gfs_grid2grid_vsdb
select start date in the summer of 2018 (2018-06-10 00) and the end in the summer of 2019 (2019-06-10 00). Dates between 2018-11-04 00:00:00 and 2019-03-10 06:00:00 are not selected.
Possible issue - day light savings.

The same problem was reported by Molly using the new calendar widget.


doesn't work in IOS

Actual version doesn't work correctly in iOS. Clicking on stars doesn't work on first try. First click changes stars but second click is needed to save value. Aditional CSS workaround for iOS also needed: add style cursor: pointer to container to trigger onclick events

#6 fixes this.


How to fit the lunch break in chinese market in MinuteSimulationClock?

Dear Zipline Maintainers,
Description of Issue
How to fit the lunch break in chinese market in MinuteSimulationClock?
The market open at 9:30 and close at 15:00.
However, it has a break from 11:30 to 13:00.
In algorithm, the sim_params.sessions is for date. The execution_opens and execution_closes are for open and close time.
        return MinuteSimulationClock(
            self.sim_params.sessions,
            execution_opens,
            execution_closes,
            before_trading_start_minutes,
            minute_emission=minutely_emission,
        )

Sincerely,
$ code37

Hi @Code37 apologies for the late response here. There was a PR merged not too long ago that lets people use their own custom trading calendar, and also some docs on how to make one (see #2035). I think a good way to handle this would be making your own custom trading calendar for whatever Chinese market you're looking to run a backtest on.

Closing due to inactivity, but feel free to re-open in https://github.com/quantopian/trading_calendars if still an issue.


Failed   <<< aws_robomaker_hospital_world

After following the documentation this is the error I get when I try to build the package.
cd simulation_ws rosws update rosdep install --from-paths src --ignore-src -r -y colcon build
`Starting >>> aws_robomaker_hospital_world
Starting >>> pr2_hospital_simulation
Finished <<< pr2_hospital_simulation [0.33s]
--- stderr: aws_robomaker_hospital_world
CMake Error at cmake_install.cmake:56 (file):
file INSTALL cannot find
"/home/juan/aws-robomaker-sample-application-pr2-hospital/simulation_ws/src/deps/aws_robomaker_hospital_world/fuel_models".
make: *** [install] Error 1
Failed   <<< aws_robomaker_hospital_world [0.35s, exited with code 2]
Summary: 1 package finished [0.45s]
1 package failed: aws_robomaker_hospital_world
1 package had stderr output: aws_robomaker_hospital_world
`
Do you have any idea?
Thank you.

Hey @juanea,
Thanks for your message, can you check in that the folder fuel_models is in the following directory?
/home/juan/aws-robomaker-sample-application-pr2-hospital/simulation_ws/src/deps/aws_robomaker_hospital_world
There is a utility, fuel_utility.py that will download the required 3D model assets from Ignition Fuel's website. Once downloaded, they should appear in the fuel_models directory. By default, the script is set to debug mode, so in the first run of colcon build you should see the following build output (followed by some debug messages and the downloading of the models).
running python3 /ws/simulation_ws/src/deps/aws_robomaker_hospital_world/fuel_utility.py download -m XRayMachine -m IVStand -m BloodPressureMonitor -m BPCart -m BMWCart -m CGMClassic -m StorageRack -m Chair -m InstrumentCart1 -m Scrubs -m PatientWheelChair -m WhiteChipChair -m TrolleyBed -m SurgicalTrolley -m PotatoChipChair -m VisitorKidSit -m FemaleVisitorSit -m AdjTable -m MopCart3 -m MaleVisitorSit -m Drawer -m OfficeChairBlack -m ElderLadyPatient -m ElderMalePatient -m InstrumentCart2 -m MetalCabinet -m BedTable -m BedsideTable -m AnesthesiaMachine -m TrolleyBedPatient -m Shower -m SurgicalTrolleyMed -m StorageRackCovered -m KitchenSink -m Toilet -m VendingMachine -m ParkingTrolleyMin -m PatientFSit -m MaleVisitorOnPhone -m FemaleVisitor -m MalePatientBed -m StorageRackCoverOpen -m ParkingTrolleyMax -d /home/juan/aws-robomaker-sample-application-pr2-hospital/simulation_ws/src/deps/aws_robomaker_hospital_world/fuel_models --verbose 2>&1

These following build steps are correct:
apt update
rosdep update
cd /home/juan/aws-robomaker-sample-application-pr2-hospital/simulation_ws/
rosws update
rosdep install --from-paths src --ignore-src -r -y
colcon build

Perhaps try removing the /home/juan/aws-robomaker-sample-application-pr2-hospital/simulation_ws/src/deps folder, then run the above commands again?

Hey @juanea,
Thanks for your message, can you check in that the folder fuel_models is in the following directory?
/home/juan/aws-robomaker-sample-application-pr2-hospital/simulation_ws/src/deps/aws_robomaker_hospital_world
There is a utility, fuel_utility.py that will download the required 3D model assets from Ignition Fuel's website. Once downloaded, they should appear in the fuel_models directory. By default, the script is set to debug mode, so in the first run of colcon build you should see the following build output (followed by some debug messages and the downloading of the models).
running python3 /ws/simulation_ws/src/deps/aws_robomaker_hospital_world/fuel_utility.py download -m XRayMachine -m IVStand -m BloodPressureMonitor -m BPCart -m BMWCart -m CGMClassic -m StorageRack -m Chair -m InstrumentCart1 -m Scrubs -m PatientWheelChair -m WhiteChipChair -m TrolleyBed -m SurgicalTrolley -m PotatoChipChair -m VisitorKidSit -m FemaleVisitorSit -m AdjTable -m MopCart3 -m MaleVisitorSit -m Drawer -m OfficeChairBlack -m ElderLadyPatient -m ElderMalePatient -m InstrumentCart2 -m MetalCabinet -m BedTable -m BedsideTable -m AnesthesiaMachine -m TrolleyBedPatient -m Shower -m SurgicalTrolleyMed -m StorageRackCovered -m KitchenSink -m Toilet -m VendingMachine -m ParkingTrolleyMin -m PatientFSit -m MaleVisitorOnPhone -m FemaleVisitor -m MalePatientBed -m StorageRackCoverOpen -m ParkingTrolleyMax -d /home/juan/aws-robomaker-sample-application-pr2-hospital/simulation_ws/src/deps/aws_robomaker_hospital_world/fuel_models --verbose 2>&1

These following build steps are correct:
apt update
rosdep update
cd /home/juan/aws-robomaker-sample-application-pr2-hospital/simulation_ws/
rosws update
rosdep install --from-paths src --ignore-src -r -y
colcon build

Perhaps try removing the /home/juan/aws-robomaker-sample-application-pr2-hospital/simulation_ws/src/deps folder, then run the above commands again?

Thank you @jerwallace I will try it.
I will get back to you if I have any issues.


Upgrade protocolv2

Description

use new contracts
add pending interest
modify interest in last week to last collected interest

@sirpy is this required any new environment variable?
I'm getting an error: (AppContainer, in Unknown (at RouterSelector.web.js:82)) TypeError: Cannot read property 'networkId' of undefined

There is one failing unit  src/components/dashboard/tests/Claim.js

@iLystopad this should enable testing invites again


refactored Redux Example

While learning how to use react-navigation with Redux, I attempted to follow the Redux Example. It was however too condensed and the declarations inlined to the point of being illegible.
The goal of this PR is to refactor the redux example into multiple folders/files, and trying to adhere to redux app conventions more for the sake of clarity.

Small but great change.


Fixes for batch spendables

This is an alternative to your pull request, taking care of what we discussed.  You might have to rebase your commit away to be able to merge this cleanly.  Let me know if this creates an issue.

This pull request now includes AccountTx serialization.

Thanks for hit, rebased it.


add support for label attribute - audio and text

@itaykinnrot, can you provide us with some idea of what this feature is?  You didn't put a description in the PR.

Sure - we want to allow customization of the label that the player show in the menu (same as HLS) and I think that the right way to do it is using the DASH manifest since the packager that create it already has all this data.

@joeyparrish, to add to what @itaykinnrot wrote - when playing a stream with multiple audio tracks, currently the only way to identify the different tracks is using the lang attribute of AdaptationSet. We have customers who would like to customize the label that is displayed to the end user for selecting the audio track. Also, multiple audio tracks are sometimes used for uses cases which are not multiple languages, for example - one audio track with background music and one without it.
While it is possible to pass this info out-of-band, we feel it makes most sense to pass it in-band in the MPD. Other protocols have support for this - in HLS you can set the NAME attribute of EXT-X-MEDIA, and in MSS there's a Name attribute on StreamIndex.

@erankor, thank you for the context, particularly on HLS.  It makes perfect sense.  I filed #825 to follow up on the HLS NAME attribute.

@joeyparrish thanks for the review - code is update - let me know if anything is missing - Thanks!

@joeyparrish  please review  - thanks!

Thank you for your contribution!

Cherry-picked to v2.1.3.


fix(android): build.gradle namespace

Make it conditional, because it could break the build on Gradle < 8.0

@DrBu7cher Is that issue and solution documented somewhere?

A problem occurred configuring project ':emoji_picker_flutter'.

Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.

@DrBu7cher Is that issue and solution documented somewhere?

The problem being fixed by this PR is related to AGP > 8, and the solution here is compatible with older versions of AGP so the plugin will be compatible with any AGP version from >= 4.2
check here:  https://github.com/flutter/flutter/issues/125621#issuecomment-1525995461


[Feature Request]: add codeql workflow

Is your feature request related to a problem? Please describe.
The repository contains code in cpp, python and java, it does not have workflow for code scanning.
Describe the solution you'd like
I want to add the codeql workflow to automate security checks. CodeQL is the code analysis engine developed by GitHub to identify vulnerabilities in code. It will analyze your code and display the results as code scanning alerts. It will be enabled on every push, commit and pull request using GitHub actions.
Record

[x] I agree to follow this project's Code of Conduct
[x] I'm a SSOC 2.0 contributor
[x] I want to work on this issue

Assigned!
@harmeetsingh11


2 lines won't show up

Any idea why line 7 and 5 won't show up in-game, but 1, 2, 3 & 4 show up.
   @EventHandler
    public void onjoin(PlayerJoinEvent event) {
        Player p = Bukkit.getPlayerExact(toString());

        BPlayerBoard board = Netherboard.instance().createBoard(p, "board");
        board.set("⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯", 6);
        board.set(" ",5);
        board.set(ChatColor.DARK_AQUA + "Remaining: ", 4);
        board.set(" ",3);
        board.set(ChatColor.DARK_AQUA + "Later", 2);
        board.set(ChatColor.STRIKETHROUGH + "⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯", 1);
    }

When you have the same text in multiple lines, only one of them is shown, here you have the same text in the lines 5 and 3

So why is that? I'm having this issue as well. We should be able to do this

It's a Minecraft limitation, but you can append color codes at the end of lines, so they are not the same lines, but they still look similar. A future version of Netherboard will be able to add these color codes automatically, but meanwhile, you'll need to do it yourselves.


Docker Image for 2.7.0

Hi @muety, the 2.7.0 action for Docker doesn't seem to have triggered.
Edit: I have created docker-release branch with a commit to make the docker release action consistent with release.

Thanks for this! Any clues about why the action didn't trigger? Also, do you know of a convenient way to manually trigger that action retroactively, while "simulating" a release-publish event?

My guess is that it's related to [skip ci].
Now that it's consistent, hopefully it will work in the future with my change to the actions file.
A method may be to delete the tag and retag it, but that's probably not the best idea from a traceability perspective.
So yes, perhaps a manual push?

@muety @YC Hello! I wanted to bring to your attention that the current docker image version 2.7.0 lacks multi-platform support, which is causing issues when running it on an ARM-based machine.

Thanks @sdvcrx.
@muety Sorry that I didn't anticipate this.
I've tried workflow_dispatch, but it wouldn't trigger via web or api since the event was not present in 2.7.0.

Perhaps a minor release, if it's not too much trouble?

@sdvcrx Thanks for bringing this up!
@YC Thanks for looking into this!
I never really got in touch with multi-platform Docker images, but looks like "cross-compilation" is supported (see here). Instead of creating a new release (without any actual changes contained), I'd probably rather prefer to just push manually built images for arm64 and armv7 as well.
I'll give it a shot and keep you posted.

Please try again!


always pass Serializer.serialize the request as a second argument

http://www.ember-cli-mirage.com/docs/v0.2.0-beta.3/serializers/#serializeresponse-request
Sometimes while on the way to the serializer's serialize function, the request argument gets left behind. These changes should make sure it gets there.

Good catch... how did you discover this? Was there a particular bug? Ideally we'd think of a failing test along with these updates.
If users need to override #serialize they should always get the request... I think it got left behind in a few of these methods, simply because they are implementation details of the default serialize handler, and they don't rely on data from the request object (as opposed to, for example, the json-api-serializer).
There's a refactoring that needs to happen, moving most of these methods into the serializer class (they are really the job of the serializer, not the registry). In any case, I'm interested to hear how this came up.

This came up when I was trying to access request.queryParams an AMS serialize. I'll add a test to cover it.
Here's my current use case:
export default ActiveModelSerializer.extend({
  serialize(response, request) {
    if (response instanceof Model) {
      const _attrs = this._attrsForModel(response);
      if(request.queryParams.include_stats) {
        _attrs.stats = /* some stats building function */
      }
      return _attrs;
    }
    return response;
  }
});

I have to use the private serializer._attrsForModel to save redoing all of that logic myself, so ideally it would be cool to have that as a protected function instead. and I agree like in #516 that something like the inline serializer API would work great for this.

I had a very similar experience, trying to access query params in an AMS serialize method.

test added!

Looks great - thank you!


Provide an OSX 64 binary release

It would be helpful to have a downloadable binary for various platforms for each release.

Even better, support apt-get and brew for different platforms. I.e.,

brew install rancher-compose

https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md
(see "brew install docker-compose").

There you go https://github.com/Homebrew/homebrew/pull/43261

Worth pointing out that there is a download link in the UI for Mac/Linux/Windows binaries now, since this is an old issue.


strange packet error from roach2 raised IndexError

@gitj @mabitbol An acquisition script crashed last night with the following error:
got weird packet (120,)
Wrote /data/detectors/2016-04-27_214555_Tc.nc
Traceback (most recent call last):
  File "apps/data_taking_scripts/tc_measurement.py", line 34, in <module>
    sweep.stream_arrays.append(ri.get_measurement_blocks(num_blocks=1, state=state))
  File "/home/flanigan/kid_readout/kid_readout/roach/interface.py", line 606, in get_measurement_blocks
    data, seqnos = self.get_data(num_blocks,demod=demod)
  File "/home/flanigan/kid_readout/kid_readout/roach/heterodyne.py", line 365, in get_data
    return self.get_data_udp(nread=nread, demod=demod)
  File "/home/flanigan/kid_readout/kid_readout/roach/r2heterodyne.py", line 108, in get_data_udp
    addr=(self.host_ip, 55555))  # , stream_reg, addr)
  File "/home/flanigan/kid_readout/kid_readout/roach/r2_udp_catcher.py", line 38, in get_udp_data
    darray,seqnos = decode_packets(pkts,nchans)
  File "/home/flanigan/kid_readout/kid_readout/roach/r2_udp_catcher.py", line 57, in decode_packets
    data = np.hstack(raw_data)
  File "/home/flanigan/miniconda2/envs/kid_readout/lib/python2.7/site-packages/numpy/core/shape_base.py", line 277, in hstack
    if arrs[0].ndim == 1:
IndexError: list index out of range

I can wrap my code to continue on exceptions like this, but it would be nice to have bad packets just produce NaN data without raising an exception.

I’ll fix this with nans.

On Apr 28, 2016, at 1:21 PM, danielflanigan<EMAIL_ADDRESS>wrote:
@gitj https://github.com/gitj @mabitbol https://github.com/mabitbol An acquisition script crashed last night with the following error:
got weird packet (120,)
Wrote /data/detectors/2016-04-27_214555_Tc.nc
Traceback (most recent call last):
File "apps/data_taking_scripts/tc_measurement.py", line 34, in
sweep.stream_arrays.append(ri.get_measurement_blocks(num_blocks=1, state=state))
File "/home/flanigan/kid_readout/kid_readout/roach/interface.py", line 606, in get_measurement_blocks
data, seqnos = self.get_data(num_blocks,demod=demod)
File "/home/flanigan/kid_readout/kid_readout/roach/heterodyne.py", line 365, in get_data
return self.get_data_udp(nread=nread, demod=demod)
File "/home/flanigan/kid_readout/kid_readout/roach/r2heterodyne.py", line 108, in get_data_udp
addr=(self.host_ip, 55555))  # , stream_reg, addr)
File "/home/flanigan/kid_readout/kid_readout/roach/r2_udp_catcher.py", line 38, in get_udp_data
darray,seqnos = decode_packets(pkts,nchans)
File "/home/flanigan/kid_readout/kid_readout/roach/r2_udp_catcher.py", line 57, in decode_packets
data = np.hstack(raw_data)
File "/home/flanigan/miniconda2/envs/kid_readout/lib/python2.7/site-packages/numpy/core/shape_base.py", line 277, in hstack
if arrs[0].ndim == 1:
IndexError: list index out of range
I can wrap my code to continue on exceptions like this, but it would be nice to have bad packets just produce NaN data without raising an exception.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub https://github.com/ColumbiaCMB/kid_readout/issues/13

Thanks, Max. Feel free to close this when the changes are pushed.

Bad and missing packet data is now replaced with NaNs.  Bad/missing packet statistics are returned by decode_packets but this has not be propagated up yet.

Just got another IndexError:
Traceback (most recent call last):
  File "apps/data_taking_scripts/lo_scan_r2.py", line 74, in <module>
    sweep.stream_arrays.append(ri.get_measurement_blocks(num_blocks=1, state=state))
  File "/home/flanigan/kid_readout/kid_readout/roach/interface.py", line 603, in get_measurement_blocks
    data, seqnos = self.get_data(num_blocks,demod=demod)
  File "/home/flanigan/kid_readout/kid_readout/roach/heterodyne.py", line 365, in get_data
    return self.get_data_udp(nread=nread, demod=demod)
  File "/home/flanigan/kid_readout/kid_readout/roach/r2heterodyne.py", line 108, in get_data_udp
    addr=(self.host_ip, 55555))  # , stream_reg, addr)
  File "/home/flanigan/kid_readout/kid_readout/roach/r2_udp_catcher.py", line 38, in get_udp_data
    darray, seqnos, num_bad_pkts, num_dropped_pkts = decode_packets(pkts,nchans)
  File "/home/flanigan/kid_readout/kid_readout/roach/r2_udp_catcher.py", line 51, in decode_packets
    start = np.fromstring(plist[0],'<u4')[-1]
IndexError: list index out of range

Ok I think this happens when all the packets are bad.    It looks like you are trying to get only 1 packet, I think you should get more than 1 in case of a bad packet.  I have fixed it now by returning an empty array

I think we should ensure that you always get at least one packet. But we
should also note that for 256 channels, 1 packet means one sample per
channel so getting one packet is probably rarely something we would
actually want except when reading out very few channels.
On May 5, 2016 7:44 AM, "Max Abitbol"<EMAIL_ADDRESS>wrote:
Ok I think this happens when all the packets are bad. It looks like you are
trying to get only 1 packet, I think you should get more than 1 in case of
a bad packet. I have fixed it now by returning an empty array
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/ColumbiaCMB/kid_readout/issues/13#issuecomment-217173047

Ok instead we return nans if all the packets are bad

That sounds good. To minimize surprise, I think the function should be
called what it does: if it returns the data from a fixed number of packets
it should be get_data_packets, and similarly for fixed numbers of samples
per channel or n-sample blocks per channel. Thoughts?
Agree that the length of the return array should be completely specified by
the call, but the content can be nans if there's missing data.
On Thu, May 5, 2016 at 10:56 Max Abitbol<EMAIL_ADDRESS>wrote:

Ok instead we return nans if all the packets are bad
—
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
https://github.com/ColumbiaCMB/kid_readout/issues/13#issuecomment-217176055

Right now the idea is that get_measurement uses blocks_per_second to figure
out how many blocks to request from get_measurement_blocks. Even though a
"block" for this mode is a packet, it is still logically a block. The
definition of a block of data that I've been using (though it's not
documented) is the smallest unit of information that can be transferred
from the ROACH. For the ROACH 1 code that was truly a "block" while for
ROACH 2 it is a packet.
So my preference is to leave the naming the same and to emphasize that
get_measurement_blocks is an expert function.
On Thu, May 5, 2016 at 11:55 AM, danielflanigan<EMAIL_ADDRESS>wrote:

That sounds good. To minimize surprise, I think the function should be
called what it does: if it returns the data from a fixed number of packets
it should be get_data_packets, and similarly for fixed numbers of samples
per channel or n-sample blocks per channel. Thoughts?
Agree that the length of the return array should be completely specified by
the call, but the content can be nans if there's missing data.
On Thu, May 5, 2016 at 10:56 Max Abitbol<EMAIL_ADDRESS>wrote:

Ok instead we return nans if all the packets are bad
—
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
<
https://github.com/ColumbiaCMB/kid_readout/issues/13#issuecomment-217176055

—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/ColumbiaCMB/kid_readout/issues/13#issuecomment-217193306

Ok, this should be fixed as we discussed.  The get data function now returns exactly the number of packets that it was called with.


add missing build-dll directory

This should fix the TestBuildDll test.
We should still make sure this test is acutually running in CI.
Replaces https://github.com/pulumi/pulumi-dotnet/pull/429
/cc @Zaid-Ajaj

We only run seem to run integration tests in CI https://github.com/pulumi/pulumi-dotnet/blob/b93b3c23e619e660453f6d26b8d6a89144ba0523/.github/workflows/pr.yml#L72, and not the tests in ./pulumi-language-dotnet 🫤

We should still make sure this test is acutually running in CI.

Doing this already in https://github.com/pulumi/pulumi-dotnet/pull/314 so it should be fine


Add Dry::View::Rendered to carry template output and locals (wrapped in view parts)

Here's what you can do now:
# Get your view controller
vc = MyView.new

# Call it and a "Rendered" object
rendered = vc.(users: users)
# => #<Dry::View::Rendered ...>

# Which converts to a string of the rendered template output (both explicit #to_s and implicit #to_str supported)
rendered.to_s
# => "<!DOCTYPE html><html>... "

# And also carries a hash of the locals passed to the view from the VC's exposures
rendered.locals.keys
# => [:users, ...]

# Which you can access by name. Note that the locals are all wrapped in their view parts
rendered[:users]
# => #<Dry::View::Part _name=:users _value=[...]>

These locals are now wrapped in view parts as early as possible, including when they're made available as exposure dependencies. This means it's possible to take advantage of view-specific logic while building up the full set of locals.
Providing exposures wrapped in view parts as part of Dry::View::Rendered also opens up interesting possibilities for accessing specific aspects of a rendered view, not just the whole rendered template string.
Resolves #64, resolves #69

Worth noting: as a part of this change, Controller#locals is no longer public API, but since we now offer Rendered#locals, we still maintain the ability to access view locals directly, along with the added benefit of these being wrapped in view parts.

I've leave this up a couple of days in case people want to review or comment (pinging @solnic, @GustavoCaso, @jodosha).
I'd be particularly interested in what you think of the new API we offer via Rendered, instead of just returning a plain string from the views. (FWIW, this started as a suggestion from @jodosha as a way to make it easier for app developers to unit testing their view exposures).

updated initial description with a short code snippet to demonstrate the new behaviour


AIMRequest simplexml_load_string chokes

We are trying to get payments to work using the authorize.net gateway.
It looks like we managed to send an AIMRequest, and got back an AIMResponse
omnipay/authorizenet/src/Message/AIMResponse.php
The __construct there is:
    public function __construct(AbstractRequest $request, $data)
    {
        // Strip out the xmlns junk so that PHP can parse the XML
        $xml = preg_replace('/<createTransactionResponse[^>]+>/', '<createTransactionResponse>', (string)$data);

        try {
            $xml = simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOWARNING);
        } catch (\Exception $e) {
            throw new InvalidResponseException();
        }

        if (!$xml) {
            throw new InvalidResponseException();
        }

        parent::__construct($request, $xml);
    }

I am pretty sure that the value of $xml is:

The following errors have occurred.
(13) The merchant login ID or password is invalid or the account is inactive.

and then the simplexml_load_string throws this warning:
PHP warning
simplexml_load_string(): Entity: line 1: parser error : Opening and ending tag mismatch: BR line 1 and BODY
/home/embark99/staging/goldpawseries/site/craft/plugins/commerce/vendor/omnipay/authorizenet/src/Message/AIMResponse.php(35)

simplexml_load_string is unhappy about the invalid xml in that  tag.
I'm not sure what exactly you can do, but it would be nice if somehow that error message didn't get so thoroughly swallowed.

JDJ: edited for formatting

@marionnewlevant could you put code quotes around the response html in your issue above. thanks.

I think the request message needs to check the response Content-Type before creating the AIMResponse message. It it's not application/xml (or something like that) than it should throw an exception, or maybe create an AIMResponse with a default XML document.

Strangely, with an invalid merchant ID, I get this:
getResultCode(): 0
getReasonCode(): E00007
getMessage(): User authentication failed due to invalid authentication values.

i.e. I get valid XML back. @marionnewlevant do you have any further details of what you did not have set up properly? Also PHP version and this driver version (2.x or 3.x - composer show will tell you this).

@lukeholder as an aside, and if you are interested, I'm putting together a completely new driver to replace all the deprecated Authorize.Net APIs here. It's been a bit slow because of other commitments, but it's coming along. It handles messaging in JSON, and offloads the message structure to a separate package.

Is this still a problem? It's not something I have managed to reproduce.

I'm going to close this as it has not been reproducable, and may have been fixed on the back of other fixes. Please reopen if it is still an issue.


Does this work for MOHAA

Hello
I was wondering if this works for Medal of Honor?  I downloaded this one but after I run the stats using web browser (vsp.php) I get an error:  log type not recognized.
The downloads on krilln site are corrupted and I cant find it anywhere else.
Thanks

Yo Hopper, still having that issue? ;)
Seems to work on other server

No.  It works now.  It was mistake on my part.  The country flags are not working however.  It says LOCATION UNKNOWN

Hello hopper5, thank you for the info regarding broken flags.


Create a Docker image

Preferrably FROM debian:jessie so it is the same basis as Pywikibot and can be easily loaded into the Wikimedia VMs, and into PAWS by adding missing stuff into https://github.com/yuvipanda/paws/blob/master/singleuser/Dockerfile

Exactly what I wanted to propose right now... ;)

Note that you can also test Docker images on Travis CI.

May be we should combine it with Vagrant: https://blog.codeship.com/cross-platform-docker-development-environment/

We have the first successful build of centos-7 and with that of all 3: https://travis-ci.org/pywikibot-catfiles/docker-file-metadata/builds/149680057
I had to kick the centos-7 build several times due to: https://github.com/pywikibot-catfiles/file-metadata/issues/60

Also added a debian-jessie Dockerfile as initially requested, all build nicely: https://travis-ci.org/pywikibot-catfiles/docker-file-metadata/builds/149727635
Now the question is whether you want to build a docker based on yuvipanda/pawsuser and add stuff from Dockerfile.debian to get a combined one OR you want to link the two together? E.g. by server/client architecture, use --link, have shared data volumes (https://docs.docker.com/engine/tutorials/dockervolumes/), any other idea?
Note the still existing (funny?) difference between the centos-7 dockers from travis (~1GB) versus dockerhub (861MB): https://hub.docker.com/r/pywikibotcatfiles/docker-file-metadata/tags/

https://github.com/drtrigon/docker-file-metadata-wikibot
https://hub.docker.com/r/drtrigon/file-metadata-wikibot/tags/

includes everything needed: just start the docker, configure with wikibot-create-config and you are ready to run wikibot-filemeta-log and wikibot-filemeta-simple.

I could file a pull request for https://github.com/drtrigon/paws/blob/master/singleuser/Dockerfile if file-metadata would be py3 compatible. ;) Was not aware that PAWS is py3, so finally zbar refused to compile in pip. See also https://github.com/pywikibot-catfiles/file-metadata/issues/68


Uploading multiple pictures fails

When Submitting, please remove every thing above this line
🐛 Bug Report

[ ] I am including my log files in zip format.
[x] I have looked for similar issues among all the former issues including closed ones.

What Operating system and version is LibrePhotos running on:
ArchLinux
What architecture is LibrePhotos running on:
x64
How is LibrePhotos installed:
Docker
If running via Docker or Kubernetes please list version including docker-compose:
Docker version 20.10.17, build 100c70180f
Are you running LibrePhotos on a virtual machine if so please list:
no
How is you picture library mounted on the host (or in the virtual machine):
Local file system (ZFS)
Description of issue:
When selecting more than one file the progress bar jumps a bit around and then stops to show completion of one picture upload. When refreshing the first picture of the selection will be added, but the rest not - regardless how long I wait for the progress to be completed.
I've tested this via http to localhost in Firefox 102.0.1 and Chromium 103.0.5060.53. Exactly same behaivor.
What's really weird is that the browser will consume a lot of CPU power to do basically nothing. (Chromium 60% of one core / Firefox a bit more).
How can we reproduce it:
Not sure, it's 100% reproduceable for me. So not sure why this wasn't seen before by other users.
Additional Information:

Include a ZIP file containing your log files.
Provide pictures or links to videos that clearly demonstrate the issue.

This may be related to KDE or Linux. Somehow I think librephotos is getting one file twice and thus refuses to continue:
rerendering [PhotoListView.tsx:85:10](http://localhost:3000/static/js/components/photolist/PhotoListView.tsx)
rerendering [PhotoListView.tsx:85:10](http://localhost:3000/static/js/components/photolist/PhotoListView.tsx)
Array [ {…} ]
[computeLayoutGroups.js:17:10](http://localhost:3000/static/node_modules/react-pig/src/computeLayoutGroups.js)
rerendering [PhotoListView.tsx:85:10](http://localhost:3000/static/js/components/photolist/PhotoListView.tsx)
Array [ {…} ]
[computeLayoutGroups.js:17:10](http://localhost:3000/static/node_modules/react-pig/src/computeLayoutGroups.js)
total size: 1202445 [ChunkedUploadButton.tsx:159:12](http://localhost:3000/static/js/components/ChunkedUploadButton.tsx)
528857 [ChunkedUploadButton.tsx:37:18](http://localhost:3000/static/js/components/ChunkedUploadButton.tsx)
current size: 528857 [ChunkedUploadButton.tsx:163:12](http://localhost:3000/static/js/components/ChunkedUploadButton.tsx)
305879 [ChunkedUploadButton.tsx:37:18](http://localhost:3000/static/js/components/ChunkedUploadButton.tsx)
528857 [ChunkedUploadButton.tsx:37:18](http://localhost:3000/static/js/components/ChunkedUploadButton.tsx)
File already uploaded [ChunkedUploadButton.tsx:150:18](http://localhost:3000/static/js/components/ChunkedUploadButton.tsx)
current size: 834736 [ChunkedUploadButton.tsx:163:12](http://localhost:3000/static/js/components/ChunkedUploadButton.tsx)
367709 [ChunkedUploadButton.tsx:37:18](http://localhost:3000/static/js/components/ChunkedUploadButton.tsx)
current size: 367709 [ChunkedUploadButton.tsx:163:12](http://localhost:3000/static/js/components/ChunkedUploadButton.tsx)

Money quote: "File already uploaded"

I am experiencing the same behavior 100% of the time when uploading more than one photo.
Running through docker on Debian 11

@spencerlundgren is this a regression for you? Or has this never worked before?

@RubenKelevra I just barely installed librephotos for the first time this week, and it has not worked the whole time.

@spencerlundgren wrote:

@RubenKelevra I just barely installed librephotos for the first time this week, and it has not worked the whole time.

Gotcha, can you share specifics, like platform browser, docker version etc to narrow it down?
Thanks

It looks like it probably never worked for multiple images. I could be wrong, but the code seems to indicate that he expects only a single image.

To follow up on this, the dependency we rely on for uploads (Django-chunked-upload) doesn't currently support multiple files.

We upload the images/videos sequentially, so that should not be the issue. This is relevant code in the frontend: https://github.com/LibrePhotos/librephotos-frontend/blob/dev/src/components/ChunkedUploadButton.tsx
I can upload multiple files on the demo server. I think that not uploading at all could be a file permission issue.
I did however notice, that the upload progress bar, jumps around, and then gets locked up, even though the images did get uploaded.

I can upload multiple files on the demo server. I think that not uploading at all could be a file permission issue.

I think that the OP mentioned that the first file selected does get uploaded, but not the others. That is the same behavior that I am seeing as well.

I fixed the fault progress bar. The images also get uploaded and are in the upload folder, but do not show up as python rq and django rq do not enqueue more then job for some reason.
This is the relevant part, if somebody wants to look into it:
https://github.com/LibrePhotos/librephotos/blob/ee8660d76b8e559f819785dfffb0e94076185d3f/api/views/upload.py#L100-L101

We now start a new scan job that only scans the upload directory instead. This should fix it. It is currently available on the dev tag and will be available in a week in latest.

Ah cool, thanks for the fix!
@derneuere Is the upload currently limited by the processing speed? I mean can the browser continue to upload the second file as soon as the first one has been completed, or does it need to wait for the analysis to take place?

We calculate a md5 hash to look if the file is already uploaded. This calculation should be fast, but can take a second for large files, I think. The other processing like face recognition happens independently of uploading.


Fix deprecation warnings

This fixes almost all deprecation warnings in TSC, except for the ones in IndexStoreAPIImpl. That code is using DLHandle etc which was marked as "moved to swift-driver" when being deprecated, so not sure what the right solution here is.

@swift-ci please test

cc @compnerd which deprecated the APIs

@compnerd Any ideas about IndexStoreAPIImpl? That code is using DLHandle etc which was marked as "moved to swift-driver" when being deprecated, so not sure what the right solution here is. Maybe we overly eagerly deprecated it? It does seem like IndexStore is being used by SwiftPM, so we can't remove it.

@neonichu hmm .. DLHandle is not used anywhere else.  Is there a way to prevent new users from showing up?  But perhaps we just need to eat that cost for now and just hope that no new uses are introduced and un-deprecate it for the time being :-(.

@compnerd I'm assuming swift-driver has migrated off it by now? Maybe we can move it into IndexStore.swift and make it private?

Yes, swift-driver now uses a different implementation of that (assuming that there has been a snapshot).  I think that the only problem with making it internal and private is ... well, its internal and private and it was public before.  So technically that is a problem if you use an old version and mix and match shared libraries, etc.  Basically I am worried that the ABI/API break here would be something that may be material to someone depending on the library and this change would break semver unless we did a major version bump.

I guess another solution would be to make an internal one that's not deprecated and let the deprecated public one call into the internal one. The issue with that is that clients inside TSCUtility could still continue to appear.
I'm not sure how worried we are about ABI/API breakage since we haven't declared a stable API so far. @tomerd wdyt?

making it internal SGTM. we can keep a public deprecate version that wraps the internal non-deprecated types

@neonichu is this ready to merge?

Yah, I think we can merge this and address the remaining deprecation warnings in a follow-up.


TypeError: the object have a 'unknow' type in response.json();

Fetch has the function res.function() which is responsible for returning the response as an Object. The problem is that in types the function --- returns a promise with an unknown value instead of any value.
The main difference between any and unknow is that unknow you cannot treat it as an object whereas any you can treat it ... like anything.
It is no problem. if you work with Javascript, but when you work with Typescript it brings problems (added pictures in spanish)
The solution is simple json(): Promise<unknown>; to json(): Promise<any>;
https://github.com/node-fetch/node-fetch/blob/8721d79208ad52c44fffb4b5b5cfa13b936022c3/%40types/index.d.ts#L110
Typescript when is unknow:

Typescript when is any:

PD: Sorry for my TERRIBLE ENGLISH

The reason for unknown is that in your example there is nothing that says that there will be a token field on the returned object, or even that the return value will be an object...
This is discussed more in #1262 which would be the right place to continue the discussion ☺


Why is it still 0.BCH

I am new to bitcoin.
Basically, I have got a confirmation screenshot from the sender.
They said they sent to:
161Zw8W4R8Dk1XbedBB2hSjWg2KXqqbsib
Which is converted into:
bitcoincash:qqm0g8kx7m8fgz90s77adntxdn50xxmaqu4p39pxza
(Cash address)
But the number is still 0 in that account. Why?

It doesn't seem like any bitcoin cash has been sent to that address, although there is a balance of bitcoin: https://blockchair.com/bitcoin/address/161Zw8W4R8Dk1XbedBB2hSjWg2KXqqbsib

In future you can avoid this situation by giving your sender the cash address and they won't be able to send you anything but bitcoin cash.

Thank you.
So how to convert that into bitcoin cash?

Not really a topic that's easy to answer, or relevant here.
If you don't have a friend you can ask, who would know, you could try going to a friendly bitcoin cash chat room and asking there and there will be many options: http://ambassador.cash


Allow Identity Schemas to be deleted

Preflight checklist

[X] I could not find a solution in the existing issues, docs, nor discussions.
[X] I agree to follow this project's Code of Conduct.
[X] I have read and am following this repository's Contribution Guidelines.
[X] This issue affects my Ory Network project.
[X] I have joined the Ory Community Slack.
[X] I am signed up to the Ory Security Patch Newsletter.

Describe your problem
The list of identity schemas can grow quite large when experimenting and there is no way of deleting unused schemas.

Describe your ideal solution
I want to be able to delete unused identity schemas. Ideally this could be done via the UI.
Workarounds or alternatives
None. There is no REST API to delete identity schemas .
Version
master
Additional Context
No response

We would like that too because because we have some unused schemas that we tested for register UI elements generation.


Game crashes when using any hammer in survival mode

A very crypic log, simply use any hammer on any hammerable block, in survival mode
java.lang.NullPointerException: Unexpected error
	at net.minecraft.class_776.method_23071(class_776.java:46)
	at net.minecraft.class_761.method_22710(class_761.java:1319)
	at net.minecraft.class_757.method_3188(class_757.java:727)
	at net.minecraft.class_757.method_3192(class_757.java:546)
	at net.minecraft.class_310.method_1523(class_310.java:1048)
	at net.minecraft.class_310.method_1514(class_310.java:681)
	at net.minecraft.client.main.Main.main(Main.java:215)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:226)
	at net.fabricmc.loader.launch.knot.Knot.launch(Knot.java:146)
	at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:28)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at link.infra.jumploader.Jumploader.onLoad(Jumploader.java:171)
	at cpw.mods.modlauncher.TransformationServiceDecorator.onLoad(TransformationServiceDecorator.java:53)
	at cpw.mods.modlauncher.TransformationServicesHandler.lambda$loadTransformationServices$11(TransformationServicesHandler.java:131)
	at cpw.mods.modlauncher.TransformationServicesHandler$$Lambda$58/1388278453.accept(Unknown Source)
	at java.util.HashMap$Values.forEach(HashMap.java:972)
	at cpw.mods.modlauncher.TransformationServicesHandler.loadTransformationServices(TransformationServicesHandler.java:131)
	at cpw.mods.modlauncher.TransformationServicesHandler.initializeTransformationServices(TransformationServicesHandler.java:56)
	at cpw.mods.modlauncher.Launcher.run(Launcher.java:76)
	at cpw.mods.modlauncher.Launcher.main(Launcher.java:66)

this seems to also extend to the hammers added by astromine as well, it happens in both singleplayer and multiplayer and the server reckons its a class cast exception

I am having this issue too.  Here's my crash report, hope it helps.
java.lang.NullPointerException: Unexpected error
at net.minecraft.class_776.method_23071(class_776.java:46)
at net.minecraft.class_761.method_22710(class_761.java:1319)
at net.minecraft.class_757.method_3188(class_757.java:727)
at net.minecraft.class_757.method_3192(class_757.java:546)
at net.minecraft.class_310.method_1523(class_310.java:1048)
at net.minecraft.class_310.method_1514(class_310.java:681)
at net.minecraft.client.main.Main.main(Main.java:215)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:226)
at net.fabricmc.loader.launch.knot.Knot.launch(Knot.java:146)
at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:28)

can you provide your full game log through a service such as pastebon?

I just tried readding it to my pack and got some really weird visual errors, I have  a feeling this my have been what was happening to start with and Im thinking perhaps this is a sodium bug? will try and get you a log of the Astromine hammers which appear to use the exact same code

crash-2021-04-09_16.59.31-client.txt
crash-2021-04-09_16.59.59-client.txt

these errors appear to be different then previous versions, but again It appears to be some kind of visual bug when holding the hammers in survival mode, Id guess sodium to be the main culprit

Both logs give no information (cryptic, as you said), so it's hard to say what the problem is. Have you tried the game without Sodium? I'll try loading them both up tonight and see if I can reproduce the issue.

If I have a chance tonight ill test it without sodium, if you could do it also thatd be great

Here: crash-log

Fixed - just change the "magna" config file;  "enableAllBlockBreakingAnimation" to false.

Yup it's a sodium thing otherwise from what I can tell

yeah so this happens without sodium as well so I will change the config file

Any new information about release fix?


Monitoring and alerting

I don't know where Portainer wants to go about monitoring & alerts but here is my 5 cents.
Use case - It would be great to set an alert when a container goes down for more than 5 minutes.
This would trig noti (github.com/variadico/noti/cmd/noti) which would trig Slack. I won't go further has need to know where you guys are positioning Portainer on this topic.
Thanks for everything, love this product!
Cheers!
https://twitter.com/askpascalandy

@pascalandy the Portainer team already thought about adding monitoring and alerting in Portainer as a future evolution. This is planned to be integrated as a paid plugin later this year.
We can still discuss what would be your expectations on this topic here, this will also help us define how we will implement it.

Hi Tony,
I’m glad to see this as a pillar feature :)
My situation
I manage applications entirely via Docker containers and Swarm. At the moment I use only local volumes and I plan to use Minio / Infinit sooner or later. I don’t use Portainer GUI to deploy stuff. I run my own bash-scripts function to do deploy.
I never managed Monitoring, Alerts, Logs within a corporation environment (Read, I don’t know best practice). But as a startup, I know what I’m looking for :-p.
So far I tried, Sematext and Logentries and few open-sourced ELK stacks. But I didn’t find a solution to my problems. Here I what I want.
Alert me when:

Alert me when a container can’t be deployed X times in a row. (i.e 3)
Alert me when a web app does not response (public URL) successfully X times in a row at Y interval (i.e 3, 1)
Alert me when on average the available RAM is reaching XX % for the last XX minutes. (i.e 75%)
Alert me when on average the available CPU is reaching XX % for the last XX minutes. (i.e 75%)
Alert me when the available storage is over than XX %. (i.e 75%)
Alert me when the node is not responding (physical crash). I guess this is out of scope for Portainer.

I use netdata and I love it but it does not store what happened in the past in my basic setup. I never tried to use alerts as well.
Archiving

Allow me to set how long we should keep the monitoring data or how many XX GB of archive the system should keep.
Allow me to define the volume where the data is stored so I can backup the data.

Notification solution
Notification (aka alerts) could be managed by noti. It allows us to set notifications for Slack, Telegram, etc. I’ll be glad to share how I use it in my actual setup.
Overall I think it’s fairly basic business requirements. I’ll be curious to read what others have in their minds.
Many cheers!
Pascal

Thanks for the details @pascalandy
I'll flag this issue as a discussion so that other users can give their point of view / expectations too.

We use this template as a base for our swarm
https://github.com/bvis/docker-prometheus-swarm
It's based on :

cadvisor on each node
node-exporter on each node
prometheus stats on docker daemon (--metrics)
grafana for graphs
alert manager

I think the new swarm event feature can be useful to get real time data on services health

Thanks for sharing Thomas. This looks like a killer stack! Enterprise kind of setup even.
In my case, it's probably overkill in a the sense that all those services will take about 1.5G of RAM. As I want to monitor few nodes with 2G of RAM :-p.

@pascalandy I have not intensively used them, but when I tried some docker-compose templates for prometheus and grafana I didn't feel them being so ram-hungry. Moreover, I think that grafana is for visualization, so you could probably use prometheus only. Note that netdata is listed as 'third-party software [that] exposes metrics in the Prometheus format, so no separate exporters are needed': https://prometheus.io/docs/instrumenting/exporters/ Notifications/alerts can be sen to Slack (https://prometheus.io/docs/alerting/configuration/#<slack_config>) and there is a bot for Telegram: https://github.com/inCaller/prometheus_bot
I think that monitorization of containers in portainer could be improved, and it would be better UX to have it embedded, instead of using an external tool such as grafana. But it may be sensible to use a template to launch a sibling container for recording and alerting. Then, portainer would just either produce metrics or consume them for visualization. Using prometheus makes sense to me, but it may still be overkill from your point of view. What would be your approach to store what happened in the past?

@WTFKr0 I have very basic use cases than you since I see other tools like Splunk or ELK helping with log parsing and alerts. Since Portainer is a one stop show for monitoring our Swarms I just would like to see what the current state of each container is, their usage or resources and basic alerting similar to what @pascalandy requested.

For reference, kubernetes-dashboard basic metrics UI is very intuitive

Meanwhile, I would recommend a friend to use https://github.com/stefanprodan/dockprom

hello, i've used poratiner in our production env, after using it, i hope portainer can add an "auto scaling" function based on monitoring, eg: scale up/down the num of service, or increase/decrease the RAM/CPU dynamically（based on the  rest resources of physical machine and the current resources of services and contaiers）, thank you

yes also for me they are the parts missing

Auto-scaling is a project by itself. There are so many possible configurations. I'll be curious if anyone has a GitHub project to suggest to tackle this challenge.

i hope portainer can add an "auto scaling" function based on monitoring

Looks promising !! Thanks for pointing it :-)

We should add the docker hub image to our templates
Gianarb/orbiter
Rgds,
Neil Cresswell
On 18/06/2018, at 1:24 AM, Anthony Lapenna <notifications<EMAIL_ADDRESS>wrote:
@pascalandyhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_pascalandy&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=0fx0h4vB56iTLpw2McH1ZD6TqG_QGpbggVOB-PfMJpM&m=IvMwKhFhHQqEUfOvVGRtQUsDkGyhjvjg49ZhpVecgVc&s=79C2xnjSGfoMuTZU9jx6QTSCq2FUwmf7urI4aRThgcs&e= I believe this one takes care of austocaling Swarm services: https://github.com/gianarb/orbiterhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_gianarb_orbiter&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=0fx0h4vB56iTLpw2McH1ZD6TqG_QGpbggVOB-PfMJpM&m=IvMwKhFhHQqEUfOvVGRtQUsDkGyhjvjg49ZhpVecgVc&s=xWrfgleMHGWDYI_F9Ob8rQ-HWWbeNfWNJbi62PsI2Rg&e=
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_portainer_portainer_issues_943-23issuecomment-2D397878878&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=0fx0h4vB56iTLpw2McH1ZD6TqG_QGpbggVOB-PfMJpM&m=IvMwKhFhHQqEUfOvVGRtQUsDkGyhjvjg49ZhpVecgVc&s=-ivHJgk-jQQlKm5WrQVg44tLXChyPF_-7BOz8bXPqeg&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AWGrld6GH2ifdrBHPX8ofuB452AhW5rKks5t9liDgaJpZM4OADFP&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=0fx0h4vB56iTLpw2McH1ZD6TqG_QGpbggVOB-PfMJpM&m=IvMwKhFhHQqEUfOvVGRtQUsDkGyhjvjg49ZhpVecgVc&s=pFYdF3759ScUWnlV_-GeRYnsM3p3QF61S_JQQJpSYXQ&e=.

For anyone looking to monitor container states:
Override your docker unit file to enable metrics.
# cat /etc/systemd/system/docker.service.d/override.conf
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H fd:// --metrics-addr <IP_ADDRESS>:9323 --experimental

Now you can use prometheus to monitor this endpoint:
# curl --silent http://localhost:9323/metrics|grep engine_daemon_container_states_containers
# HELP engine_daemon_container_states_containers The count of containers in various states
# TYPE engine_daemon_container_states_containers gauge
engine_daemon_container_states_containers{state="paused"} 0
engine_daemon_container_states_containers{state="running"} 10
engine_daemon_container_states_containers{state="stopped"} 0

If you can, it's probably better to bind them metrics address to <IP_ADDRESS>, but that depends on your setup.
References:

https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-metrics
https://success.docker.com/article/using-systemd-to-control-the-docker-daemon

Hi, I work on a Docker stack https://github.com/swarmstack/swarmstack very similar to what Thomas discussed earlier in this thread (and recently replaced swarmpit with Portainer). My argument is that Portainer should do one thing (all things containers) and do it well, and not lose development cycles trying to recreate wheels and add monitoring and alerting features, as these aren't core to Portainer's function. Instead, I would argue that any development cycles should be put into exposing the internal metrics of Portainer in a way that other applications can use them.
NetData and Prometheus are two examples of things that could consume Portainer metrics if exposed. I don't  believe there is that much in the way of metrics that Portainer might need to keep track of, likely just things like logins/interval, authentication failures/interval, container/image/registry change actions, webhooks/interval, and basic user activity tracking possibly (which UIs and APIs got the most use). Let other tools that have already dealt with the problems of collecting, storing, and rating metrics do the job, and just expose what needs to be exposed so that people can make dashboards around the metrics they find useful. Prometheus provides a decent format for presenting the metrics for collection (and Docker made this their built-in default), but it's up to Portainer folks to determine what works for them, and existing collection tools have facilities to deal with those choices.  Awesome tool, and this is just my 2 cents.

For reference, kubernetes-dashboard basic metrics UI is very intuitive

It would very nice to have the option to see the metrics (CPU and RAM) for each container in the container list just like that screenshot shows.
Can I open a issue/PR for this?

@franciscohanna92 If you are still interested in opening a PR go right ahead :+1:

Sorry I m not updated about evolution... Now this feature is included?

@publicocean0 what feature are you referring to?

@franciscohanna92 Did you forget about your container stats PR?

@seriouz I haven't had time to implementing it. I could get back to it in the following weeks.

@franciscohanna92 no rush, but were you able to get into it? :)

@franciscohanna92 I would also really like to know if there will be any updates for this in the near future

Its Nov 2021. any chance of making this happen?

Not this year, but it's still high on our list.

I am also looking for this!
In the meantime, has anyone found an alternative for monitoring containers getting down / restart loops?

I am also looking for this!
In the meantime, has anyone found an alternative for monitoring containers getting down / restart loops?

I used a combination of cadvisor and Prometheus (+alert mgr) to solve it

Prometheus, CAdvisor, Grafana stack eats too much performance when deployed to a swarm of low-end or middle-range machines. +1 for having a basic view of the services as part of the Portainer maybe with a small agent deployed to all hosts. In fact, Portainer already has an agent, so ...

@huib-portainer Not this year (2021), but it's still high on our list.

maybe this year (2023)?

I wish I could say it was on the cards this year, but it's not very likely unfortunately.
For Kubernetes however we are looking at integrating Sosivio.

Simple statistics that give an overview of the resources used, such as `docker stats', would be easy and very helpful, @huib-portainer 😎


OK, what about an error description for CS7036

[Enter feedback here]

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

ID: bbb051ee-f020-66ba-c601-4a08ad32ef61
Version Independent ID: 58a19505-ac46-c5c8-12cc-fe87b6aa18a7
Content: Sorry, we don't have specifics on this C# error
Content Source: docs/csharp/misc/sorry-we-don-t-have-specifics-on-this-csharp-error.md
Product: dotnet-csharp
Technology: csharp-diagnostics
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

Duplicate of #27438


Automation for Build Docker Image and Compile Data

The docker image build and compile data process should be automation tools which easy to use.

Have improved scripts to support the automation requirement. Also both build docker image and compile data pipeline based on Jenkins have been setup.


Promise's then method doesn't support Closures with return values

Describe the Bug
Promise doesn't allow return values in the closure for its then method.
Steps to Reproduce
 Promise::new(&mut |resolve, reject| {
      resolve.call1(&JsValue::null(), &JsValue::from_f64(123.0));
  })
  .then(&Closure::new(&mut |val| val));

Expected Behavior
The specification indicates that the value returned from then callbacks "becomes the fulfillment value of the promise returned by then()":
"If it is not a function, it is internally replaced with an identity function ((x) => x) which simply passes the fulfillment value forward."
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/then#onfulfilled
Actual Behavior
This code fails compilation with:
mismatched types
expected `()`, found `JsValue`

because the argument for then is &Closure<dyn FnMut(JsValue)>, instead of something like &Closure<dyn FnMut(JsValue) -> JsValue>
Additional Context
NA

Yeah, this is a known issue. Closing in favour of #3111.


Agignore not using the same patterns as gitignore

Ok, here's the issue:
# gitignore as used by github/gitignore/Rails.gitignore
/vendor/bundle

$ ag treetop
vendor/bundle/gems/rack-livereload-0.3.15/gemfiles/rails32.gemfile.lock
81:      treetop (~> 1.4.8)
$ git ls-files | ag treetop
$ # empty result

# gitignore
vendor/bundle/

$ ag treetop
Gemfile.lock
86:      treetop (~> 1.4.8)
$ git ls-files | ag treetop
$ # empty result

So this means, ag and git are interpreting different a directive, that at least to gitignore it's the same (so it seems, I don't use leading slashes and I believe I haven't had any drawbacks). According to git documentation:

A leading slash matches the beginning of the pathname. For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".

I don't know how ag interprets leading slashes, but clearly they do different.

It seems that:
/vendor/bundle
vendor/bundle/

It's the same for git, they don't have trouble tracking files inside, like public/vendor/bundle/a_file.txt.

Under 0.29.1 I can confirm that ag seems to be working correctly, and that a pattern with slashes in it still applies whether or not it has a leading slash. So it is likely that this issue can now be closed!


Improvement | Partial Accessibility

Summary
Based on our design pitch, we plan to implement partial accessibility to cover more user demographics.
Details
TBD
Important Considerations
TBD
[Link to additional information, if available.]

Closed as not planned


Plugin randomly stops working

I believe it happens after every game update for a while, can we prevent this somehow?
Yesterday it was above the bag icon, now it's gone.

So sorry this is happening. It looks like you are playing on fixed classic. First make sure the plugin version is "19c9a499" in the plugins panel. Inventory total got messed up for fixed classic in the update before this latest one then got fixed. If you reset the plugin and then change the "Inventory Offset Y" value to 42 up from 12 it should be good. You may need to restart once after that.

@hybridbrizz Thank you for quick response!
As you mentioned it seems to work on the resizable version.
I tried to re-install and reset the plugin settings but that did not help.
However, restarting client worked.
I believe once you switch to resizable it breaks.

Thanks for the info. I was able to replicate what you are experiencing after switching to the resizable game client. Believe I have fixed it, just need to do some testing and make sure everything is ok. After this new update there shouldn't be any issues with it disappearing when it shouldn't.

That's great, thanks!