Feature: Add redundancy for data stored in the repository

Restic does its best to reduce the amount of redundant data in a backup, e.g. by saving duplicate chunks of files only once. When the repository files are damaged at the storage location (e.g. by bit rot), this means that a large number of files/metadata/snapshots are affected because of this reduced redundancy.
This issue tracks implementing something that artificially adds some redundancy back. I'm thinking along the lines of a reed-solomon error correcting code, e.g. as implemented by the famous par2 program. This computes for a set of files (e.g. a large RAR archive with 100 individual .rXX files) a few .par2 files which can in the case of data corruption be used to repair the original files to a certain amount. An introduction to the reed-solomon family of codes can be found here: https://www.backblaze.com/blog/reed-solomon/
A Go implementation is available here: https://github.com/klauspost/reedsolomon

This would be a highly interesting feature to have if it was possible to distribute the shards to different targets (folders: different disks; hosts: offsite locations), allowing Tahoe-LAFS like RAID modes of efficient redundancy in scenarios where you can assume that ALL of your backup locations won't blow up at the same time, yet don't feel like making full, unneeded 1:1 backups of everything.

@cfcs Yes I agree. Configurable folders where each part should be stored would be totally awesome. That way I could use 5-6 disks without raid, and have the redundancy I need.
@fd0
Having a parity feature for restic would be the killer feature for me. I use attic today, but knowing that it will take care of bit rot would make me switch fast ;)

What about STAIR codes?  http://ansrlab.cse.cuhk.edu.hk/software/stair/

Looks like something we could do, although I think it's much more complex than reed-solomon codes. I like the simplicity of the latter :)

i just found out about SeqBox, which is an interesting approach to this:
https://github.com/MarcoPon/SeqBox
... instead of storing multiple redundant blocks, it tags each block with a specific metadata header so that the content can easily be found even after major filesystem or storage medium damage. it has really interesting properties, even though it looks a little like "magic":

the borg project also has an issue tracking various potential solutions for this in https://github.com/borgbackup/borg/issues/225 - and there's an interesting discussion there about the pros and cons of redundancy...

SeqBox doesn't add redundancy; it enables you to carve out the puzzle pieces provided you have a block-aligned file system that lost its inode table but didn't lose any of the actual data. It does not help you recover from damaged storage blocks.
It does this at a massive overhead of ~3% - that's 30GB/TB.
If aligned to extents or to logical blocks (like - 1024) instead of 512 byte blocks the overhead would be smaller, but ... filesystems like ZFS are there to help resolve issues like this.
Given the nature of restic (writing very large volumes of data) I'd intuitively argue that there could be a larger statistical risk of bad blocks being data blocks than the inode index tables.
I think SeqBox is an interesting idea, but perhaps not a perfect match for restic's use-case.

It does not help you recover from damaged storage blocks.

I disagree. I think it can help recover damaged datasets with parts removed. It would allow someone to better recover if pieces of the filesystem went missing. Not entirely recover of course, but recover parts of the repo. How restic handles a partially destroyed repository is another thing, of course... But I think the comparison with PhotoRec is pretty convincing.
I do agree that a 3% overhead is huge, however. But when compared to par2, it's not that bad. :) Also keep in mind that the reed-solomon erasure coding algorithm proposed above talks about having 20-40% overhead, at least in the go library benchmarks. That's much larger, although the gains might be greater.
The question is: once the filesystem starts getting damaged, can you still recover enough the restic archive blocks? SeqBox helps finding those blocks and reed-solomon helps recovering the entirety of the original archive. I'm not sure you could recover the whole archive with only one of the two, unless reed-solomon is implemented at the filesystem level...
But you are right that, statistically, the odds are larger that data gets damaged than index. It's just that index data then becomes really precious: if any is lost, the result is complete catastrophe.

I appreciate that it can help find blocks when the underlying FS is damaged and restic data has not been damaged.
I disagree that it can help solve the problem described in this issue post which is: Recover the original data put into restic in the scenario where restic data has been damaged:

When the repository files are damaged at the storage location [..]

IMHO comparing to par2 is like comparing apples and oranges, they solve different problems.
I think we fundamentally agree on all the technical points, but disagree about the exact problem we're trying to solve in this issue.
Your third paragraph makes a good point, which I think should be the takeaway from the recent posts about SeqBox in this thread: SeqBox-style block/extent tagging alone does NOT help us recover from bitrot of the actual restic data, but combined with real error-correction it can be useful to help lay the puzzle.
It is however highly FS-dependent (block size could be different, FS could implement compression [like NTFS, ZFS, ...). I would still recommend relying on the FS layer for block indexing, and the main benefit of implementing application-layer parity would IMO be that it can be distributed across several physical storage backends.
That being said I appreciate you raising the point, it's an interesting subject to include in the discussion of an eventual error-correcting design. :-)

Dumping this link here (from Hacker News today) for future reference: https://github.com/Bulat-Ziganshin/FastECC

after some reflexion, i have come to believe that implementing error correction necessarily means the admins need to make decisions about where to store redundancy blocks. partial errors on drives is something that is quite uncommon: these days, especially with SSDs or SMART-enabled devices, drives often see total unrecoverable failures instead of partial ones.
what are we trying to protect against here? we should more clearly define what kind of failures we want to recover from before trying to find solutions. this is highly medium-dependent: a tape will fail completely differently from a HDD or a SDD, and different future-proof recovery mechanism should be implemented in those scenarios. are we defending against medium loss, physical damage or cosmic rays? those are also all very different...
borg previously pushed this issue aside and argued it is best delegated to the filesystem layer. i'm beginning to see a little more why.
concretely, i think reedsolomon would be interesting in the case where we don't trust the filesystem, e.g. if we don't want to rely on S3's reliability and want to distribute among multiple backends (different S3 enpoinds, S3/SSH or multiple drives or mixing it all)...

btw ECC was the only thing to use RAR as a backup-tool for years, because no other archive-tool used that... its a good feeling to know, if a archive has a bitrot i can easy fix it with 3% of recovery-data in the rar-file
but i think its also better to use a minimum of 2 locations of your backup.
how does restic handle an error in the repro?
does restic then heal the faulty data from the local source?
and what if it is no longer available locally, because the error was in an older snapshot?
maybe it would be also good if you could use a second repository to 'HEAL' the first repository?
like a fallback-repo :-)
i have another idea/question.
what if you read at backup-time unrecognized faulty data (sata-error / hdd-error / ram-error)?
in that case it would be also good to make always a second backup in a second-run in another repository without that errors.
-> by the way that could be a downside if you make a backup to two repos at the same time.
-> reading data twice would be safer and hopefully reading from disk and not from cache-buffer ;-)
does restic recognizes on the next snapshot, that in the first repository, the source-data does not match? because the 'change date' from the file are the same but the data are not?
i think the command 'restic check --read-data' checks only the repository and not against the original-source?

+1

if implemented, it should be done so that par2-files are created on the fly while writing the regular pack files. this way there is no 2nd pass needed to read already written data.

I'm watching for this feature myself. Though any kind of ECC should be robust enough to handle a couple different cases, like:

0.1% of all of the bytes in all of the packs is corrupt. (1 par file with 10% redundancy for each pack would easily be able to fix this.)
0.1% of all of the packs have been entirely lost. (1 par file with 10% redundancy for each pack would not fix this.)

Please see my recent comment https://github.com/restic/restic/issues/804#issuecomment-615140267 before trying to come up with yet another flawed FEC (forward error correction).


closes #179

info properties added

Coverage decreased (-0.01%) to 93.087% when pulling 23da8d9ffdc3d60f2fa1458af95c21e831ede4e1 on task/179-info into fe8407fad59c2a0b2bf4d2e68933564aa6a307a5 on master.


Introduce a webpack conditional loader for bundling sources by different types

Hey @jgyos/owners
According to documentation of webpack (http://webpack.github.io/docs/using-loaders.html#usage), it makes you available to preprocess sources by different customize loader. IIUC, we can have a conditional-loader to decide whether to package source or not that would depend on a given type from build time.
In order to bundle sources by a given device type, we could do some things, for instance of base_modules.js:
var moduleTV = require('conditional?type=tv!./js/modulesTV');
var modulePhone = require('conditional?type=phone!./js/modulesPhone');

When we pass the type=phone into webpack that conditional-loader is able to omit /js/modulesTV modules.
Since there is no any loader existed that can fulfill our needs to do above things, I could be going to write a conditional-loader for it.
What do you think?

Another possible pattern would be:
var module = require('conditional?type=tv&path=./js/modulesTV');

We'd first try  webpack + es6 module then consider if the loader plugin is the right way to go


Update aws-java-sdk-core to 1.12.607

About this PR
📦 Updates com.amazonaws:aws-java-sdk-core from 1.12.603 to 1.12.607
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.amazonaws", artifactId = "aws-java-sdk-core" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.amazonaws", artifactId = "aws-java-sdk-core" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #590.


Add safekeeper information exchange through etcd.

Add safekeeper information exchange through etcd.

Safekeers now publish to and pull from etcd per-timeline data. Immediate goal is
WAL truncation, for which every safekeeper must know remote_consistent_lsn; the
next would be callmemaybe replacement.

Adds corresponding '--broker' argument to safekeeper and ability to run etcd in
tests.

TODO: add etcd to CI images and perhaps assign it random ports.

Did I get you right that this is the PR I'm checking against to move callmemaybe over etcd?

yeah


dedup service export docs

Fixes #2207
@abuehrle

That looks better.  I had toyed with the idea of putting all of the 'managing services' stuff into one topic, hence the duplication.


feat(remix-dev): add support for mdx' providerImportSource config

[ ] Docs
[ ] Tests

Testing Strategy:
I directly modify my remix project node_modules
let compiled = await xdm.compile(fileContents, {
      jsx: true,
      jsxRuntime: "automatic",
      rehypePlugins,
      remarkPlugins,
      providerImportSource: '@mdx-js/react'
    });

It work fine and MDXProvider worked.
I did not find tests file for this plugin, if unit tests is required I will try to add then.

Any reply here?

Any progress or feedback on this?

As mentioned in the "Remix Vite is Now Stable" blogpost, we won't add any new compiler features/improvements that aren't targeting Vite

[...] from now on all new features and improvements that require compiler integrations will only be targeting Vite


could you provide full source using byte array instead of a dll file on disk?

At https://github.com/TheCruZ/Simple-Manual-Map-Injector/blob/ae4bf482920e8f26ff6fdc99544b27c20b9c5312/Manual Map Injector/main.cpp#L143C11-L143C11
unsigned char fileInMemory[] = { 0x01, 0x02, 0x03, ... };
if (!ManualMapDll(hProc, fileInMemory, 0)) {
literally there is no different and filesize is not used anymore in the source then not needed and can be 0


Params for vesc_to_odom node not used.

In vesc_to_odom.cpp these params never get set by a parameter file in a launch file and instead use the defaults.
https://github.com/f1tenth/vesc/blob/da6d66dc393ca845b70ca20961105d1319a348ed/vesc_ackermann/src/vesc_to_odom.cpp#L50-L53

Resolved by #21


chore: add region tags for Spanner JDBC samples

Currently the public docs don't point to the samples on GitHub so adding the relevant region tags here to enable the docs to point to these samples.
Also made changes to the following samples to match those of the existing samples:

InsertDataExample.java to use autocommit to be equivalent to existing sample.
BatchDmlExample.java to turn off autocommit to be equivalent to existing sample.

If the changes in 3d5e6158e81de4ffce786e5699f1817eaf2cf168 don't make sense, happy to revert.

I will take a look at the CI failures in a few hours when I come back online. Sorry about that. Feel free to ignore the PR until I fix it.

@lesv or @kurtisvg, I will need your help to merge this in as I don't have the permissions :)


[Feature] Settings tab for quickly set some general metadata

Closes #11

Codecov Report
Patch coverage: 100.00% and no project coverage change.

Comparison is base (f7040a4) 97.07% compared to head (82cfe54) 97.07%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff            @@
##               main      #14   +/-   ##
=========================================
  Coverage     97.07%   97.07%
- Complexity      112      113    +1
=========================================
  Files            40       40
  Lines           512      513    +1
=========================================
+ Hits            497      498    +1
  Misses           15       15

Impacted Files
Coverage Δ

...pp/Http/Controllers/DocumentTemplateController.php
100.00% <100.00%> (ø)

...Services/PdfRenderers/GotenbergRendererService.php
100.00% <100.00%> (ø)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Ml assisted labeling utility

Task scope for Assisted labeling utility - https://confluence.oci.oraclecorp.com/display/AIDATA/Assisted+Labeling+utility+-+Task+breakdown
The following functionalities are supported in the utility -
Assisted labeling operation using Pretrained Model, Custom Model, New Model Training options for the following dataset types -
Single label image dataset, Mutli label image dataset. Object Detection image dataset
Single label text dataset, Named entity recognition

@s-sridharan You have a conflict that needs to be resolved.

I have reviewed and it conforms to the asked requirements


Can you use init_detector for custom training loop implementation?

I am planning on writing a custom training loop with pytorch, instead of relying on mmengine's runner. I understand that init_detector is intended for inference rather than training. Can I still use it for that purpose or is there an alternative?

Have a look at the tests for detectors.
These tests should show examples at the right level of abstraction.


Sensor integration

Great job, and love the sensor for electricity.
Would it be possible to also include following pulse sensors?

water
gas

It seems that I'm also missing a switched outlet that is configured in NHC2.

Pulse modules are not in the current API documentation.  I've asked Niko if this is on their work list.

Any update on the pulse modules?

@nexus256 I think this will be working when the rewrite is released. If I'm not mistaken you have tested the rewrite already? Could you confirm?

@nexus256 v3.0.0 was releases last Friday, did you have the chance to upgrade and confirm this?

The pulse modules are still not included in the NHC API.
Switched outlets should be available.

I have dropped few emails to Niko support regarding to pulse meter that could be added to MQTT broker (running at connected controller) but no feedback yet. Since it's not a part of MQTT (as mentioned by @joleys), there is no way how to get data from and to add it to HA integration.

Hello everyone, being new within HA I came upon the integration for NHC2 via HACS. Now I am running into something that I don't immediately see the reason for. Hopefully you may be able to help me further.
I was able to setup your integration for NHC2 via HACS and afterwards was able to connect to NHC2-HUB via the Wizard via username: hobby and the token provided via the API integration. Then when I go to look after a restart of HA I don't get to see any entities....
In the configuratrian.yaml I manually put the integration below
#Niko home control II
nhc2:
host: <IP_ADDRESS>
username: hobby
password: (the provided token)
port: 8884
any suggestions on what I'm overlooking?
I only see the message bellow...

@daelderenveld what are you doing? This is not related to this issue at all...
Please create a separate issue instead of just commenting on unrelated stuff.
Also check if your device list is not empty, as already described in the other comment you made.

Any way to add gas usage to HA true the NHC Smart hub? Data of electricity and gas is readable in NHC? Only electricity is visible in HA?

@jonassmets The data is not exposed by Niko. Feel free to contact them and link them to this issue.
The data that is related (to me) is shown below, an none of the are containing any values.
        {
          "Uuid": "XXX",
          "Identifier": "XXX",
          "Model": "generic",
          "Online": "True",
          "Name": "energyhome",
          "Technology": "nikohomecontrol",
          "Type": "energyhome",
          "Traits": [],
          "Parameters": [
            {
...
            }
          ],
          "Properties": [
            {
              "WaterVolume": ""
            },
            {
...
            },
            {
              "GasCost": ""
            },
            {
              "GasVolume": ""
            },
            {
              "WaterCost": ""
            }
          ],
          "PropertyDefinitions": [
            {
              "WaterVolume": {
                "HasStatus": "false",
                "CanControl": "false",
                "Description": "Range(0.0000,999999.9990,0.0001)"
              }
            },
...
            {
              "GasCost": {
                "HasStatus": "false",
                "CanControl": "false",
                "Description": "Range(0.00000,999999999.00000,0.00001)"
              }
            },
            {
              "GasVolume": {
                "HasStatus": "false",
                "CanControl": "false",
                "Description": "Range(0.0000,999999.9990,0.0001)"
              }
            },
            {
              "WaterCost": {
                "HasStatus": "false",
                "CanControl": "false",
                "Description": "Range(0.00000,999999999.00000,0.00001)"
              }
            }
          ]
        }

There is a NHC Gasmeter, but there is no data available:
        {
          "Uuid": "41cb7139-6fc9-4575-9ecc-606bf5b1d91f",
          "Identifier": "7FLO2120113559",
          "Model": "nhc",
          "Online": "True",
          "Name": "gasmeter",
          "Technology": "p1",
          "Type": "gasmeter",
          "Traits": [],
          "Parameters": [
            {
              "Segment": "Central"
            }
          ]
        },

But this has no properties, so we can't read any data.
So at this point: we can't do much. I have mailed to Niko also to check if we can read the data elsewhere.


Add license

Add CC-BY license to this repository.

Are you thinking something more like https://github.com/RockefellerArchiveCenter/data/blob/master/LICENSE.md or like https://github.com/idleberg/Creative-Commons-Markdown/blob/spaces/4.0/by.markdown ?


Add support for RDS Cluster level metrics to AWSWatchman

Thanks for the PR. Please could you update the documentation and add at least one end to end test (in Watchman.Tests similar to other services)?

@tomhaigh thanks for looking into this PR so promptly. I will work on the requested changes and will let you know once it's ready.

@tomhaigh I addressed now requested changes - could you please re-check this PR?

Thanks - looks fine - have you tested it anywhere?

Yes - I confirm that I tested it manually against AWS account too.


Vickel: Watch capstoneproject.net

Vickel requests the watch of the watch_keyword capstoneproject\.net. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

capstoneproject\.net has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Jeff Schaller in Charcoal HQ


Add Layer Normalization

This is a second step towards implementing transformers in dlib.
This PR adds Layer Normalization support to dlib.
I have added the CPU implementation and the forward GPU, but I have some doubts, so I would really appreciate if somebody could have a look to the CUDA implementation.
It runs slower than the CPU version and for big inputs (2, 3, 224, 224) results are not good, but for small inputs, it works.
Here's how I tried it, in case anyone wants to try
#include <dlib/dnn.h>

using namespace dlib;

int main() try
{

    auto print_tensor_and_avg = [](const tensor& t)
    {
        float sum = 0;
        const float* p_t = t.host();
        for (long n = 0; n < t.num_samples(); ++n)
        {
            // std::cout << "sample: " << n << '\n';
            for (long k = 0; k < t.k(); ++k)
            {
                // std::cout << "\tk: " << k << '\n';
                for (long r = 0; r < t.nr(); ++r)
                {
                    for (long c = 0; c < t.nc(); ++c)
                    {
                        // std::cout << '\t' << p_t[tensor_index(t, n, k, r, c)] << ' ';
                        sum += p_t[tensor_index(t, n, k, r, c)];
                    }
                    // std::cout << '\n';
                }
            }
        }
        std::cout << "avg: " << sum / t.size() << '\n';
    };

    resizable_tensor x(2, 3, 224, 224);
    resizable_tensor y_cpu(x), y_cuda(x);
    tt::tensor_rand rnd(0);
    rnd.fill_uniform(x);
    resizable_tensor means(x.num_samples()), invstds(x.num_samples());
    resizable_tensor gamma(x.num_samples()), beta(x.num_samples());
    gamma = 1;
    beta = 0;

    print_tensor_and_avg(x);

    float eps = 1e-5;
    running_stats<float> rs;
    cpu::layer_normalize(eps, y_cpu, means, invstds, x, gamma, beta);
    print_tensor_and_avg(y_cpu);
    for (int i = 0; i < 1000; ++i)
    {
        const auto t0 = std::chrono::steady_clock::now();
        cpu::layer_normalize(eps, y_cpu, means, invstds, x, gamma, beta);
        const auto t1 = std::chrono::steady_clock::now();
        rs.add(std::chrono::duration_cast<std::chrono::duration<float, std::micro>>(t1 - t0).count());
    }
    std::cout << "inference time: " << rs.mean() << " ± " << rs.stddev() << " µs\n";

    rs.clear();
    cuda::layer_normalize(eps, y_cuda, means, invstds, x, gamma, beta);
    print_tensor_and_avg(y_cuda);
    for (int i = 0; i < 1000; ++i)
    {
        const auto t0 = std::chrono::steady_clock::now();
        cuda::layer_normalize(eps, y_cuda, means, invstds, x, gamma, beta);
        const auto t1 = std::chrono::steady_clock::now();
        rs.add(std::chrono::duration_cast<std::chrono::duration<float, std::micro>>(t1 - t0).count());
    }
    std::cout << "inference time: " << rs.mean() << " ± " << rs.stddev() << " µs\n";

    std::cout << "difference: " << sum(squared(mat(y_cpu) - mat(y_cuda))) << '\n';

    return EXIT_SUCCESS;
}
catch (const std::exception& e)
{
    std::cout << e.what() << '\n';
    return EXIT_FAILURE;
}

With a size of (2, 3, 4, 5), I get this:
// cpu
avg: 7.05322e-08
inference time: 29.3967 ± 0.475304 µs
// cuda
avg: 6.25849e-08
inference time: 49.7305 ± 1.50192 µs
difference: 2.39537e-12

But with a size of (2, 3, 224, 224):
// cpu
avg: -4.32392e-06
inference time: 777.195 ± 16.5298 µs
// cuda
avg: -379502
inference time: 4188.05 ± 267.693 µs
difference: nan

Thanks in advance for any help

Ready for review!
In this implementation, these are the results for a (2, 3, 224, 224)-sized tensor
 cpu forward time: 780.407 ± 12.5129 µs
cuda forward time: 87.3476 ± 2.33944 µs

 cpu backward time: 3706.97 ± 45.1868 µs
cuda backward time: 448.009 ± 31.0569 µs

Cool, looks good.  Thanks for another PR :)
Rename that function you noted and updated the docs and add that one test and this is good to go :)

Nice, looks good :)


Removed panda_moveit_config dependency in franka_ros

Hello, I have been installing franka_ros with ros noetic on ubuntu 20.04 and I noticed that the ros-noetic-franka-ros is not available on apt. By taking a quick look at jenkins (https://build.ros.org/job/Ndev__franka_ros__ubuntu_focal_amd64/4/console) it looks like the build is failing due to the panda_moveit_config dependency in franka_ros. This because panda_moveit_config is also not available in noetic. From what I understand this dependency is a remnant from when panda_moveit_config was a part of this repository, so it should be possible to safely remove it.

Hi,
it probably makes sense to remove the dependency, but that will not fix the build issues because franka_example_controllers also depends on panda_moveit_config. Related: https://github.com/ros-planning/panda_moveit_config/issues/77
Probably we could remove franka_example_controllers from franka_ros as well, as its only an example package.. can you add this to your PR?
Thanks!

Done, just removed the dependency in package.xml

Thanks!


failed to connect to the server

Describe the Bug
Failed to connect to the server
Internal Exception: io.netty.handler.codec.DecoderException: Failed to decode packet 'clientbound/minecraft:game_profile'
To Reproduce
start the server, make direct connection to it from minecraft java edition
Expected Behaviour
should connect and load the world
Screenshots / Videos
not available
FerrumC Version
github actions #102
Rust Version
latest stable: rustc 1.81.0
host: x86_64-unknown-linux-gnu
LLVM version: 18.1.7
Server Logs
log
Additional Context
I just wanted to try using ferrumc (using TLauncher)
I checked all the boxes without reading them
Is there an existing issue for this?

[X] I have searched current existing issues before creating this.
[X] I checked all the boxes without reading them
[X] I have provided all necessary and relevant details, including logs, reproduction steps, etc.

We are currently working on a rewrite so any bug fixes are unlikely right now. However, we have had some issues in the past with other game clients so give it a try with the vanilla client if you can.

it isn't really possible, but I'll just wait for the rewrite

You are using the correct mc client ver right?

well, sorry but I have no idea

it should be version 1.20.1

well, sorry but I have no idea

So you didn’t even know what client version you were trying to connect with?

I knew it was the latest one, but wouldn't have thought it should matter
I'm no huge Minecraft fan
but it di


Deleting an address doesn't delete addr:country

When deleting an address by clicking on the wastepaper bin icon in the address form, addr:country (if present) doesn't get deleted from the object in question.
While I can understand the reasons for this (likely it doesn't anything that is not displayed in the form), it is slightly unexpected behaviour if you are simply intending to delete an address.

Yeah intuitively I would also expect that addr:* should be deleted.

Ok I see what happened.  The same thing is happening with addr:state.  And both the delete and revert buttons are both not working for many of the addr: tags.
The address field has been localized since #2246 but the preset file still contains the old values for the keys.  These keys are not used for display, but they are used by the delete and revert buttons to know which fields should get affected.


Redesign implementation of topic muting to scale well

Zulip's topic muting implementation was built originally as an experiment, with the idea of confirming whether the feature would be useful, but without much attention to scalable performance (we basically just store a list of (stream, topic) pairs in a JSON field).  As a result, while it works, operations involving muted topics have performance which is linear in the number of muted topics; over time this will likely lead to poor performance.
Given increasing interest in making it easier to mute topics (e.g. #997), we should probably design and build a system for handling topic muting efficiently even when used heavily.
(Stream muting is better, but even stream muting has some performance issues that deserve attention, specifically in the case that a user has muted essentially all incoming traffic).

Dev effort on this should work off of #1289, which is the branch for #1191.  When we start having topic ids, we can probably replace UserProfile.muted_topics with something like UserTopics.muted.  We would need to create the UserTopics table.

see also #1291, which addresses having the front end know about topic ids

@timabbott Aside: when I make a pull request that compares two different branches on my "showell" fork of Zulip, is there a way to make the pull request be for "zulip" and not for "showell"?  If not, I'll probably just submit a new pull request that compares showell-muting-topic to master and just call out which commits are muting-specific.

I think not.  You can always handle that sort of situation by just linking to the branch on GitHub (and I or others can fetch the branch(es) locally to compare/review/etc.).

Thx, @timabbott.  These changes are relative to https://github.com/zulip/zulip/pull/1289.  Since they're not even being close to ready to deploy yet, you're probably just fine reading the diffs and seeing if anything jumps out at you.

Note to self: When this is complete, we may want to revisit approximate_unread_count.

@showell I think this issue was completed by your recent work on the topic muting table, so I'm closing it :).

Yep!


CMake project structure

This PR adds complete CMake support and a CI workflow.
It appears your library does not compile on Clang 7, 8 and 9.

Thanks, definitely a plus to have CMake support, and CI is also quite nice. I have a few questions before I merge this tho since my CMake knowledge is not the best. First of all, how do I run the tests ? And secondly, when I build and install the project it creates an additional directory ssp-0.0.1 inside the include path, and the library will be stored in that directory, so when I want to include the library I have to use it as <ssp-0.0.1/ss/...> but I would like to use it as <ss/...> ?

Thanks, definitely a plus to have CMake support, and CI is also quite nice. I have a few questions before I merge this tho since my CMake knowledge is not the best. First of all, how do I run the tests ? And secondly, when I build and install the project it creates an additional directory ssp-0.0.1 inside the include path, and the library will be stored in that directory, so when I want to include the library I have to use it as <ssp-0.0.1/ss/...> but I would like to use it as <ss/...> ?

The CI workflow shows how to run the tests. For local development you only need to install doctest once:
git clone https://github.com/onqtam/doctest temp -b 2.4.4 --depth 1

cmake -S temp -B temp/build \
    -D CMAKE_BUILD_TYPE=Debug \
    -D DOCTEST_WITH_MAIN_IN_STATIC_LIB=NO \
    -D DOCTEST_WITH_TESTS=NO

cmake --build temp/build --config Debug

cmake --install temp/build --config Debug --prefix doctest

rm -rf temp

then you configure with doctest present in the prefix paths CMake scans:
cmake -S test -B build \
    -D CMAKE_BUILD_TYPE=Debug \
    -D CMAKE_PREFIX_PATH=$(pwd)/doctest

Or you can install to the default system prefix by omitting --prefix and the -D CMAKE_PREFIX_PATH=$(pwd)/doctest argument becomes unnecessary. If you don't install doctest to the system, then you should add doctest's repo local folder to .gitignore

The CI workflow shows how to run the tests. For local development you only need to install doctest once:
git clone https://github.com/onqtam/doctest temp -b 2.4.4 --depth 1

cmake -S temp -B temp/build \
    -D CMAKE_BUILD_TYPE=Debug \
    -D DOCTEST_WITH_MAIN_IN_STATIC_LIB=NO \
    -D DOCTEST_WITH_TESTS=NO

cmake --build temp/build --config Debug

cmake --install temp/build --config Debug --prefix doctest

rm -rf temp

then you configure with doctest present in the prefix paths CMake scans:
cmake -S test -B build \
    -D CMAKE_BUILD_TYPE=Debug \
    -D CMAKE_PREFIX_PATH=$(pwd)/doctest

Or you can install to the default system prefix by omitting --prefix and the -D CMAKE_PREFIX_PATH=$(pwd)/doctest argument becomes unnecessary. If you don't install doctest to the system, then you should add doctest's repo local folder to .gitignore

Ok, many thanks, I will merge it.

Ok, many thanks, I will merge it.


parallel_iterations option behaves differently if per_process_gpu_memory_fraction is set

I'm seeing inconsistent behavior with the parallel_iterations option in dynamic RNNs. For large RNNs, if I set parallel_iterations to too high a number, I run out of memory. However, setting parallel_iterations to 1 or 2 solves the problem. This is only true however if per_process_gpu_memory_fraction is not set. If it is set, even to 1.0, then no matter what value I set parallel_iterations to, I always run out of memory (for this large RNN).
I am not sure if this is related to #2610 or not.

@ebrevdo Do you know why this might be?

yuan should be able to help with this.

It is expected that lowering parallel_iteration would reduce memory consumption. A higher parallel_iterations increases the parallelism but may need to keep more intermediate tensors alive at any given time.
I have no idea about theper_process_gpu_memory_fraction part of the question.

Closing this due to inactivity. Feel free to open a new github issue if the problem still persists in recent versions.

This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a temporary error. The following address(es) deferred:
<EMAIL_ADDRESS>Domain biomassiv.es has exceeded the max emails per hour (117/100 (117%)) allowed.  Message will be reattempted later
------- This is a copy of the message, including all the headers. ------
Received: from github-smtp2-ext4.iad.github.net ([<IP_ADDRESS>]:47680 helo=github-smtp2a-ext-cp1-prd.iad.github.net)
by chi-server32.websitehostserver.net with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
(Exim 4.87)
(envelope-from<EMAIL_ADDRESS>id 1cWmiW-0032e1-VE
for<EMAIL_ADDRESS>Thu, 26 Jan 2017 10:16:09 -0600
Date: Tue, 24 Jan 2017 14:06:50 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com;
s=pf2014; t=1485295610;
bh=akBb3t+ACStjn3bZpTttd5FoCO9CqOGn5rDpvl1CUSs=;
h=From:Reply-To:To:Cc:In-Reply-To:References:Subject:List-ID:
List-Archive:List-Post:List-Unsubscribe:From;
b=d0Dn6VcCemN/Y2BzltFrkmWdF9LQrfYeJSHIjrqjwEvlRish23qN4toG8/EoIdM/n
If4u2gSpiGOLVKkNNy+9/L/s1yiLqd98pEoXOH3ZHIAOD4Oaeh4F/2b1/jz3MBz3i4
XUc3L4DxxL3kC301s8obd1WhIB8SrZT76r/31zTo=
From: drpngx<EMAIL_ADDRESS>Reply-To: tensorflow/tensorflow<EMAIL_ADDRESS>To: tensorflow/tensorflow<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Message-ID<EMAIL_ADDRESS>In-Reply-To<EMAIL_ADDRESS>References<EMAIL_ADDRESS>Subject: Re: [tensorflow/tensorflow] parallel_iterations option behaves
differently if per_process_gpu_memory_fraction is set (#3867)
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_5887cffa63e1e_1be43f80517211342073e1";
charset=UTF-8
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: drpngx
X-GitHub-Recipient: biomassives
X-GitHub-Reason: subscribed
List-ID: tensorflow/tensorflow <tensorflow.tensorflow.github.com>
List-Archive: https://github.com/tensorflow/tensorflow
List-Post<EMAIL_ADDRESS>List-Unsubscribe<EMAIL_ADDRESS>https://github.com/notifications/unsubscribe/AELU4pK2Y9g_4epZe5ph0rHwkI1P8NGIks5rVnX6gaJpZM4Jl8r7
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address<EMAIL_ADDRESS>----==_mimepart_5887cffa63e1e_1be43f80517211342073e1
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Closing this due to inactivity. Feel free to open a new github issue if the problem still persists in recent versions.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/tensorflow/tensorflow/issues/3867#issuecomment-274954398
----==_mimepart_5887cffa63e1e_1be43f80517211342073e1
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
Closing this due to inactivity. Feel free to open a new github issue if the problem still persists in recent versions.
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.

----==_mimepart_5887cffa63e1e_1be43f80517211342073e1--


(TRANSLATION) masterclass page for participant

re: https://github.com/ecommerceberlin/ecommerceberlin.com/issues/246
URL (temporary) is https://ecommerceberlin.com/masterclasses/temp?q=

to help you with FAQ i have revealed this section at TEH - https://targiehandlu.pl/workshops (at the top of the page)

@az I think that you mention that there are some translations I can use as well, probably in CSV file (?) where can I find it?


Display uploaded file name in the document title (#244)

Hello!
This is the first time I contribute to open-source.
First I decided to divide an issue into smaller pieces:

Display filename in the title
Display filename in UI

I've already implemented the first part and would really like to hear feedback from you!

@pewstiepoll honoured that this project is your first OS contribution.
I'm pretty happy with using the document title for this. We can figure out where else to display it later. What do you think @developit @kosamari @surma?

@jakearchibald thanks for quick reply!
About moving code to compress/index.tsx : in this case it will make Compress component perform the side effect (e.g. document changes) and from that perspective it would make it harder to debug in future. But from your presentation on Google Dev Summit I can assume that squoosh is about "first interaction" therefore moving things like this from init bundle makes sense. Just wanted to know your opinion about such trade-off.
About other comments: I agree in both cases and will fix it in my next changes.

in this case it will make Compress component perform the side effect

I see your point, but given it's almost the top level component, I'm fine with it. It also keeps the bulk of the "handle new image" code in one place.

@jakearchibald hi!
Just updated my changes corresponding to your review.
Also trying to figure out where to put filename in UI. Any suggestions?

Why don't we scope this PR to document title and do a UI tweak separately? Wdyt?

@surma I think it makes sense. Just wonder if it's ok to have such a tiny changes in PR.

No change is too small for its own PR. Makes it much easier to review and to reason about :)

@jakearchibald done.
Can't wait to see my changes in prod ^_^

@pewstiepoll I'm really happy with this, thanks for making it happen & putting up with the review process.

@jakearchibald I’m so proud to make my first steps into OS under your guidance! Thank you! :)

Your changes are now live 🎉

@jakearchbald, hooray!
Should I delete the branch now?

You're welcome to (it's your branch). We don't need it anymore.


Correct editable metadata hook return type to str

prepare_metadata_for_build_wheel was initially typed to return Optional[str] just like the editable metadata hook, but it got changed to str during review. However, the editable hook's return type was never corrected. This seems to be an oversight as I can't find anything in the PEP 517 or 660 specifications allowing these hooks to return None.

You could probably drop Python 3.7 support to make the checks green again. It looks like it was previously dropped with 69ed8b1dac92e33d6a2d18c1b3a3cfad57020d90 but that was reverted 9cf1649a071f4268578b0e7417eb017637c4a486 it seems it was kept because pip also supported it at the time (context: https://github.com/pypa/pyproject-hooks/pull/167#issuecomment-1500884422) but pip has since dropped support for it https://github.com/pypa/pip/commit/1dbd717bb037b62273b7ced3737c4da787515c7c, see also https://github.com/pypa/pyproject-hooks/issues/168


Add log! built-in

Takes two arguments, message and value, logs message at info level and returns value.
Example: assuming RUST_LOG=hyperon=info is in the environment
!(log! "Hello World" 42)

prints
[2023-03-15T08:12:19Z INFO  hyperon::metta::runner::stdlib] Hello World
[42]

This is a prototype of a simple and inflexible logger.  Future versions should allow to change the component, level and support Rust format https://doc.rust-lang.org/std/fmt/.

@ngeiswei, the only question is why returning value is needed? Is it because the (log! statement is not reduced otherwise?
Also notice there is #146 where the goal is to allow logging from Python, Rust and another environment where Rust library is used into the same output stream.

And of course Idris Trace is itself inspired from Haskell https://hackage.haskell.org/package/base-<IP_ADDRESS>/docs/Debug-Trace.html
So maybe it could be rename trace!.  On the other hand I'd like it to log a message as opposed to send it to stderr.  Maybe logtrace!...?

I'm gonna close that for now.  I'll replace it with trace!, it's simpler, does not need to worry about the complexity of a logger (level, component, destination, cross-language, etc), and, associated with format!, should be good enough for my needs.

Thanks for your comments, @vsbogd!
Yes, trace! would print to stderr, like in Idris and Haskell.  A logger is of course needed, but trace! offers a lighter alternative as well.


Build on docs.rs fails

The documentation on docs.rs failed to build, and it's not available. Build log

Fixed with 2.0.4


feat(logspout): use custom datetime

This commit enables users to specify their own datetime format
by supplying the DATETIME_FORMAT environment variable when
using logspout. If none is supplied, logspout will continue to use
DEIS_DATETIME_FORMAT.
closes #3032

lgtm, though how do we expose this to users? By asking them to modify the logspout unit file?

By asking them to modify the logspout unit file?

Yeah, I was thinking about that. Using an etcd key here would be ideal, but adding confd to logspout just for this one change doesn't make sense. I think that it's a rare enough situation when a user would want to modify this that it's not the worst thing to have to maintain a separate unit file for logspout, but I'm open to suggestions.
Another thought is making this customizable upstream in progrium/logspout.

Could we set a platform value in etcd like /deis/logspout/datetime_format and query etcd directly in logspout.go as is done for logger host?

Could we set a platform value in etcd like /deis/logspout/datetime_format and query etcd directly in logspout.go as is done for logger host?

Personally I'd rather steer away from further etcd integrations if at all possible. etcd is a distributed key/value store for service discovery, not necessarily a centralized configuration management solution... Though we seem to have already tied ourselves down that route, so I guess we've already set that precedent.

that and we also utilize go-etcd in logspout to figure out where logger's hiding so I'm partially okay with it

I'd be quite happy with documenting how to customize the date by sending in an envvar in logspout's README. Does that seem reasonable? I don't imagine that this would be a common use case which we'd need to expose in etcd.

I don't imagine that this would be a common use case which we'd need to expose in etcd.

I agree. I don't think this is a common enough scenario to warrant another etcd dependency. I'll update the commit to add the environment variable to the readme.

I updated the README to specify the environment variable.

:+1:

Code LGTM. An env var seems like a good enough solution for the power users who will want to change the date/time format.


Fake track repeat

Is your feature request related to a problem? Please describe.
I want to play a song on loop.
Describe the solution you'd like
(when using the local device) to fake repeat the track by re-playing it after it finishes when the loop on single track is enabled.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Currently, Librespot does not support looping a single track once.

I believe to make this possible, it would require a custom new 'playback' mode that is not available to Spotify API, as 'repeated once track' behavior is going to be inferred from spotify_player AFAIK.

For what it's worth, ncspot (another Rust/librespot based Spotify TUI client) seems to have figured out a hack, although what distinguishes it from this project isn't immediately obvious. I'll try and dig deeper if I can find the time.

For what it's worth, ncspot (another Rust/librespot based Spotify TUI client) seems to have figured out a hack, although what distinguishes it from this project isn't immediately obvious. I'll try and dig deeper if I can find the time.

The main difference is that ncspot itself is an Spotify client, which spotify_player uses an integrated client from librespot. In other words, it's easier for ncspot to implement the hack as they own the client implementation.

Is it that difficult to just check if the user has 'repeat once' and just replay the song after it ends? Or am I underestimating how difficult it is?

spotify_player operates on API boundary and streaming client is just an "add-on" compared to ncspot with streaming client as the main component. As a result, the app cannot have any assumption regarding the streaming client's behaviour.

Is it that difficult to just check if the user has 'repeat once' and just replay the song after it ends?

The problem is that you don't know when user has 'repeat once'. The integrated streaming client will automatically switch to repeat context mode as repeat once is not supported. As a result, when you query get-repeat-mode API, the returned mode will be repeat context.
There are different ways to implement the "hack". The easiest one is to start a new "one-track" playback if user wants to change the repeat mode to repeat once. The drawback of this approach is that you will lose the previous context, or you cannot playback the previous context when switching to different repeat mode.
Another approach is to add a separate fake track repeat mode and a command to enable/disable the mode. The integrated client can be updated to queue the current song when it is about to end. I would prefer this approach as a workaround for the integrated client's limitation. Can start working on this when I'm free.

YAYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

Implemented with #410. @apprehensions can you try the latest master? The command is ToggleFakeTrackRepeatMode with default binding M-R (alt + R). Should see repeat: track (fake) if the fake track repeat mode is enabled.

It plays the 'fake repeat' track twice, and then plays the next song in queue, then the 'fake repeat' track again.

The timing between events seems too short. Did you seek to the end of the track to test the feature? The queue the current song when it is about to end logic only applies once every 10s to avoid making duplicated requests. That might be the reason why it doesn't work well

No.. The song I was listening to was 9 seconds. I am unable to test right now but given this I suppose it males sense.

ahh, suport short song won't work with fake repeat mode unfortunately xD.


Remote notification received but not showing on android ! Not working .

Notification received but silently not showing up like pop up notifications on android . This issue is very common but still not be able to find any proper solution . This is really unexpected !

PLease check https://github.com/ConnectyCube/connectycube-reactnative-samples/issues/222#issuecomment-1018585971

@joy-mollick we brought a new push notifications library which addressed some issues   https://github.com/ConnectyCube/connectycube-reactnative-samples/pull/296
Please read the details and provide a feedback/comments if any


Added support for display rotation

I added a SCREEN_ROTATION define that takes 1 or 3. I also created a getTouch() function as touch was used in 2 locations in the code.

Good feature! I think it is a good idea to use a separate getTouch() function. I like to keep #define USECAPTOUCH and #define speakerPin commented out by default as those two are more specific to the ESP32 TouchDown. Also, we could include vertical orientation.

Yeah, that makes sense to me. I will build a none ESP32 TouchDown one next.


sudo resource fails on 2nd converge when Cmnd_Alias is used

Description
When testing with chef 15.4.45 and running multiple converges, using the sudo resource with a  Cmnd_Alias the second converge fails due to the following error:
           Chef::Exceptions::ValidationFailed
           ----------------------------------
           template[/etc/sudoers.d/sudoreplay] (/opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.4.45/lib/chef/resource/sudo.rb line 165) had an error: Chef::Exceptions::ValidationFailed: Proposed content for /etc/sudoers.d/sudoreplay failed verification cat /etc/sudoers %{path} | /usr/sbin/visudo -cf -

The second converge does not fail when using chef version 15.3.14.
As far as I can tell the issue is that when concating the /etc/sudoers file and the /etc/sudoers.d/other_sudo file the file in /etc/sudoers.d/ is called twice because of the include in /etc/sudoers.
Chef Version
15.4.45
Platform Version
Centos 7
Replication Case
Create a cookbook, add a sudo resource which creates a new sudoers entry that includes a cmnd_aliases. Run multiple converges.
I've created a basic repo where the issue can be replicated by changing the chef version in the kitchen.yml file: https://github.com/Rudikza/test-sudo.git
Client Output
https://gist.github.com/Rudikza/1cb89e20d2080d90dc720b32f26bf8fc

Wondering how this can be fixed without reverting to the previous verify command... Excluding all includedir's from /etc/sudoers, adding all files in those includedir's files to the cat command, but excluding the file's path that's being verified?

I'm afraid this will have to be reopened, as the merged code creates a new problem:
1214            Chef::Exceptions::ValidationFailed
1215            ----------------------------------
1216            sudo[cmbmonit_check_procs-sre] (/var/tmp/kitchen/cache/cookbooks/monitoring/resources/nrpe.rb line 91) had an error: Chef::Exceptions::ValidationFailed: template[/etc/sudoers.d/cmbmonit_check_procs-sre] (/opt/chef/embedded/lib/ruby/gems/2.6.0/gems/chef-15.7.14/lib/chef/resource/sudo.rb line 174) had an error: Chef::Exceptions::ValidationFailed: Proposed content for /etc/sudoers.d/cmbmonit_check_procs-sre failed verification cat /etc/sudoers %{path} | /usr/sbin/visudo -cf -
1217            STDOUT:
1218            STDERR: visudo: unable to open -: No such file or directory


Free Bots Alive

@davidmann4 This extension provides free bot but not working fine like ogarfeederbot,hope it helps you
https://www.dropbox.com/s/543iaqjxw712nei/Infinity - Release.zip?dl=0

The link is broken . New one?


Build problems with IUP

I haven't messed with C libraries much so I'm not sure if this is a problem with kiss-ui, IUP, my system, or me, but I'm getting a build error that I'm not sure how to resolve.
$ cargo build
   Compiling grim-edit v0.0.1 (file:///Users/erincalling/code/grim-edit)
error: linking with `cc` failed: exit code: 1
note: "cc" "-m64" "-L" "/usr/local/Cellar/rust/1.0.0/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/Users/erincalling/code/grim-edit/target/debug/grim_edit" "/Users/erincalling/code/grim-edit/target/debug/grim_edit.o" "-Wl,-force_load,/usr/local/Cellar/rust/1.0.0/lib/rustlib/x86_64-apple-darwin/lib/libmorestack.a" "-Wl,-dead_strip" "-nodefaultlibs" "/Users/erincalling/code/grim-edit/target/debug/deps/libkiss_ui-3b13f82488719214.rlib" "/Users/erincalling/code/grim-edit/target/debug/deps/libiup_sys-4a23062e27aae405.rlib" "/Users/erincalling/code/grim-edit/target/debug/deps/liblibc-ef5cbad4ef5c7a1e.rlib" "/usr/local/Cellar/rust/1.0.0/lib/rustlib/x86_64-apple-darwin/lib/libstd-4e7c5e5c.rlib" "/usr/local/Cellar/rust/1.0.0/lib/rustlib/x86_64-apple-darwin/lib/libcollections-4e7c5e5c.rlib" "/usr/local/Cellar/rust/1.0.0/lib/rustlib/x86_64-apple-darwin/lib/libunicode-4e7c5e5c.rlib" "/usr/local/Cellar/rust/1.0.0/lib/rustlib/x86_64-apple-darwin/lib/librand-4e7c5e5c.rlib" "/usr/local/Cellar/rust/1.0.0/lib/rustlib/x86_64-apple-darwin/lib/liballoc-4e7c5e5c.rlib" "/usr/local/Cellar/rust/1.0.0/lib/rustlib/x86_64-apple-darwin/lib/liblibc-4e7c5e5c.rlib" "/usr/local/Cellar/rust/1.0.0/lib/rustlib/x86_64-apple-darwin/lib/libcore-4e7c5e5c.rlib" "-L" "/Users/erincalling/code/grim-edit/target/debug" "-L" "/Users/erincalling/code/grim-edit/target/debug/deps" "-L" "/usr/local/Cellar/rust/1.0.0/lib/rustlib/x86_64-apple-darwin/lib" "-L" "/Users/erincalling/code/grim-edit/.rust/lib/x86_64-apple-darwin" "-L" "/Users/erincalling/code/grim-edit/lib/x86_64-apple-darwin" "-liup" "-lc" "-lm" "-lSystem" "-lpthread" "-lc" "-lm" "-lcompiler-rt"
note: Undefined symbols for architecture x86_64:
  "_gtk_range_set_value", referenced from:
      _gtkValSetValueAttrib in libiup.a(iupgtk_val.o)
      _gtkValKeyPressEvent in libiup.a(iupgtk_val.o)
      _gtkValChangeValue in libiup.a(iupgtk_val.o)
  "_gtk_adjustment_new", referenced from:
      _gtkValMapMethod in libiup.a(iupgtk_val.o)
  "_gtk_hscale_new", referenced from:
      _gtkValMapMethod in libiup.a(iupgtk_val.o)

{ 600 other symbols snipped }

ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: aborting due to previous error
Could not compile `grim-edit`.

To learn more, run the command again with --verbose.

full, un-snipped error
This is on OSX 10.10.3 after installing IUP using the "precompiled binary" instructions in the README. I'm using cargo 0.4.0-nightly (b48cd46 2015-07-01) (built 2015-07-01) and rustc 1.0.0 (built 2015-05-16)
I'd appreciate any help you can offer!

_gtk_range_set_value, _gtk_adjustment_new, _gtk_hscale_new, sounds like you need to install GTK+. Sorry, I forgot to add that to the install instructions for OS X. It can be version 2.x or 3.x, IUP can work with both.

I'm wrestling with that now. I've installed it with Homebrew but can't figure out how to point gcc at it--I'm guess it's something like INCLUDE_PATH=/usr/local/Cellar/.... cargo build, but I'm not sure what the exact env var is, or what directory level to point it at. Do you know those?

Does this StackOverflow answer help?

It doesn't seem to. PKG_CONFIG_PATH=/usr/local/Cellar/gtk+/2.24.28/lib/pkgconfig/ LDFLAGS=-L/usr/local/Cellar/gtk+/2.24.28/lib/ CPPFLAGS=-I /usr/local/Cellar/gtk+/2.24.28/lib/ cargo build gives the same error.
It seems like it's weird that it's saying "undefined symbols" rather than something about failing to find a .h or .o/.so/.dylib file. Is that weird or is that a normal dynamic-linking problem?

Hmm... maybe try installing GTK+3? It might be looking for symbols that are not in 2.x, although I could have sworn it could link with either.

No love, but I'm noticing the cc command in the error output doesn't list the gtk paths I'm putting in PKG_CONFIG_PATH/LDFLAGS/CPPFLAGS. Should I be looking at how to specify them in Cargo.toml?

It's trying to static-link to GTK+ because it's static-linking to IUP. Did you install IUP with ./install or ./install_dev?

Both. I think I did install_dev first, then tried install when I had trouble

All right, maybe try uninstalling and then just doing install.

Ok, that gives me ld: library not found for -liup which is at least a different error. Thanks for your fast responses on this :) I'm gonna take a break from bashing my face against it, and try to resolve the ld error later.

Progress! Don't get discouraged, link errors are always a pain to deal with. You should have seen me try to set up this crap on Windows so I could write the install instructions for it.

I got it! The steps that got things working for me were:

install the prebuilt IUP with sudo ./install_dev
install pkg-config and gtk+ from homebrew
install xquartz from http://xquartz.macosforge.org/landing/
use pkg-config to find -l and -L flags for gtk and x11:

PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig/ pkg-config --libs x11 gtk+-2.0

make a build.rs and reference it from Cargo.toml
translate the pkg-config output into cargoese:

-L PATH becomes cargo:rustc-link-search=native=PATH
*-l LIB becomes cargo:rustc-link-lib=dylib=LIB

So my working build.rs looks like so:
fn main() {
    // here is gtk
    println!("cargo:rustc-link-search=native=/usr/local/Cellar/gtk+/2.24.28/lib");
    println!("cargo:rustc-link-search=native=/usr/local/Cellar/pango/1.36.8/lib");
    println!("cargo:rustc-link-search=native=/usr/local/Cellar/atk/2.16.0/lib");
    println!("cargo:rustc-link-search=native=/usr/local/Cellar/cairo/1.14.2/lib");
    println!("cargo:rustc-link-search=native=/usr/local/Cellar/gdk-pixbuf/2.30.8/lib");
    println!("cargo:rustc-link-search=native=/usr/local/Cellar/glib/2.44.1/lib");
    println!("cargo:rustc-link-search=native=/usr/local/Cellar/pango/1.36.8/lib");
    println!("cargo:rustc-link-search=native=/usr/local/Cellar/glib/2.44.1/lib");
    println!("cargo:rustc-link-search=native=/usr/local/opt/gettext/lib");
    println!("cargo:rustc-link-search=native=/usr/local/Cellar/fontconfig/2.11.1/lib");
    println!("cargo:rustc-link-search=native=/usr/local/Cellar/freetype/2.5.5/lib");
    println!("cargo:rustc-link-lib=dylib=gtk-x11-2.0");
    println!("cargo:rustc-link-lib=dylib=gdk-x11-2.0");
    println!("cargo:rustc-link-lib=dylib=pangocairo-1.0");
    println!("cargo:rustc-link-lib=dylib=atk-1.0");
    println!("cargo:rustc-link-lib=dylib=cairo");
    println!("cargo:rustc-link-lib=dylib=gdk_pixbuf-2.0");
    println!("cargo:rustc-link-lib=dylib=gio-2.0");
    println!("cargo:rustc-link-lib=dylib=pangoft2-1.0");
    println!("cargo:rustc-link-lib=dylib=pango-1.0");
    println!("cargo:rustc-link-lib=dylib=gobject-2.0");
    println!("cargo:rustc-link-lib=dylib=glib-2.0");
    println!("cargo:rustc-link-lib=dylib=intl");
    println!("cargo:rustc-link-lib=dylib=fontconfig");
    println!("cargo:rustc-link-lib=dylib=freetype");

    // here is X11/xquartz
    println!("cargo:rustc-link-search=native=/opt/X11/lib");
    println!("cargo:rustc-link-lib=dylib=X11");
}

Oh, wow. Perhaps the pkg-config crate can streamline this process on platforms where it is available.


Incorrect Episode String in Video Activity

Issue description
In the Video Activity page, incorrect episode strings are displayed for the watched videos.
Steps to Reproduce

Go to "Admin" in top navigation
Go to "User Activity" in side bar
Select "Video Activity" tab

Expected Behaviour
Correct episode strings should be displayed (i.e. s{SEASONNUM}e{EPISODENUM}).
Actual Behaviour
Incorrect episode strings like s{EPISODENUM}e{SEASONNUM} are displayed.

Additionally, for movies "sundefinedeundefined" is displayed.

Environment Information

Operating System: Ubuntu 19.04
Streama version: 1.7.2

I can verify this issue too. Nice catch @kumitterer


replacing cmapi jar with the one from cmapi-multi

Please do not merge in until further notice.  We want to version the cmapi jar before this goes into emp3-android

should be ready for review/merge


ANVIL is required when running tests

Problem
Running the integration tests from scratch require ANVIL.
The error is as follows:
% yarn test:integration                                                           ~/aztec3-packages/yarn-project/end-to-end master mainframe
[anvil] /bin/sh: 1: anvil: not found
[anvil] anvil exited with code 127
--> Sending SIGTERM to other processes..
[test] yarn test:integration:run exited with code SIGTERM

Solution
To fix, I downloaded foundryup and installed ANVIL by running the foundryup script.
See: https://github.com/foundry-rs/foundry/blob/master/README.md#installation which will instruct you to run:
curl -L https://foundry.paradigm.xyz | bash

Can this dependency be automatically installed with bootstrap.sh?

Can this dependency be automatically installed with bootstrap.sh?

I think so -- if you make the bootstrap execute that curl link, though that seems somewhat not optimal as you have a bash script which calls another bash script in order to contribute to the codebase.
If we require users to have Rust installed, then we can "Install from source", this means you just need to have "foundry" as a submodule and then you cargo install ... like it says in the README

See also #200

Closing as done.


Wiki links broken

The following wiki page contains loads of invalid links:
https://github.com/ConsenSys/mythril/wiki/Mythril-Detection-Capabilities

Fixed


Github Integration: Filter Activity on Private Repositories

Hello,
We have been integration our Github organization with Zulip and this has been working very well. However, we have recently run into a problem. The webhook we have configured on an organization level on Github also sends activity on private repositories. Obviously we would like to avoid leaking this activity.
It seems there does not seem to be a toggle on the Zulip side to filter these messages. Is it possible to implement this?
Edit: The webhook JSON has information which makes this possible:
  "repository": {
    "id": 859010992,
    "node_id": "R_kgDOMzN3sA",
    "name": "project-ideas",
    "full_name": "p4lang/project-ideas",
    "private": true,
    "owner": {
      "login": "p4lang",
      "id": 10765181,
      "node_id": "MDEyOk9yZ2FuaXphdGlvbjEwNzY1MTgx",
      "avatar_url": "https://avatars.githubusercontent.com/u/10765181?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/p4lang",
      "html_url": "https://github.com/p4lang",
      "followers_url": "https://api.github.com/users/p4lang/followers",
      "following_url": "https://api.github.com/users/p4lang/following{/other_user}",
      "gists_url": "https://api.github.com/users/p4lang/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/p4lang/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/p4lang/subscriptions",
      "organizations_url": "https://api.github.com/users/p4lang/orgs",
      "repos_url": "https://api.github.com/users/p4lang/repos",
      "events_url": "https://api.github.com/users/p4lang/events{/privacy}",
      "received_events_url": "https://api.github.com/users/p4lang/received_events",
      "type": "Organization",
      "site_admin": false
    },

Thanks for the report, @fruffy ! This sounds like a helpful feature.

@PieterCK making sure you see this one.

@zulipbot claim

@zulipbot claim

PR #31679 fixes this issue.
@alya

PR #31679 fixes this issue.
@alya

Great, thanks a lot!


fix: updated ci actions

Description
Updated deploy scripts.
Motivation
Testing Guidelines
Release Checklist

[ ] This code has unit tests
[ ] I have a plan to verify that these changes are working as expected after deploy
[ ] I have a plan for how to revert, rollback, or disable these changes if things are not working as expected

Security Checklist
This PR creates, modifies, or deletes:

[ ] API routes: API routes, parameters, or user authorization
[ ] Authentication: Authentication mechanism
[ ] Credentials: Server side credentials, or secrets in configuration / source code
[ ] Cryptography: Encryption, hashing, certificates, signatures, random numbers, etc.
[ ] User data: personal information handling, logs, error messages, etc.

Additional Notes

Hmm, this looks good, but i don't know whether this branching + environment mapping makes sense. Notably, i don't think auto deploying to dev is a good idea, isn't that environment supposed to be for us to run and test things while we're developing them, that makes it a bit harder to do if it's automatically deployed to by master right?
And regarding the other branches, why not just have them named staging and production vs release and prerelease to simplify it?

@s0 I could see using staging and production branches vs. using the tags and releases features. I don't have the permissions to create the new protected branches, but if you'd like to make them I can update the scripts to leverage them.

I don't have the permissions to create the new protected branches, but if you'd like to make them I can update the scripts to leverage them.

That'll be because they already exist :)
Any thoughts on not auto-deploying master to dev too?

We can push development -> dev, staging -> staging, prod -> prod and then master is the just final place where we archive the code after successful releases?

Uhh... I'm still convinced that dev should be for manual deployments only, we need an environment where we can test things during development (before PR), and during review (after PR), if not Dev, then we need to create another environment specifically for this purpose.

If we keep dev for manual deploys then we won't have anywhere to work on things as a team. If you need ephemeral deploys for testing PRs then users can simply deploy to their own Firestore env and add the URL in their PR. Some deploys to dev may cause data that isn't backwards compatible so deploying to that environment should be regulated until after PRs are approved.
I recommend we go with this flow where we have one branch per env and if we need pull request builds then we can work on that as a precursor to dev (which also follows the branches).

If we keep dev for manual deploys then we won't have anywhere to work on things as a team. If you need ephemeral deploys for testing PRs then users can simply deploy to their own Firestore env and add the URL in their PR. Some deploys to dev may cause data that isn't backwards compatible so deploying to that environment should be regulated until after PRs are approved.
I recommend we go with this flow where we have one branch per env and if we need pull request builds then we can work on that as a precursor to dev (which also follows the branches).

Okay cool that's reasonable. Users making their own projects, or us creating them when needed isn't crazy.
In that case, i'm going to be a pain again and say we should use master -> dev, not development -> dev, the development branch's sole purpose is to accept PRs that come from forks, as unfortunately github actions don't run on those PRs, and we need those checks to be required. :)

I'll revert your PR back to f975847 and merge :)

Ok this makes sense - PRs -> Dev then we merge Dev -> Master to deploy, then we have staging and prod for the remaining envs.


intermittent Failed to execute 'pushState' on 'History' with serializable data

Version
5.2.0
Test Case
const SubTable = () => {
    const { state } = useLocation();

return (
        <MaterialTable
          icons={tableIcons}
          columns={[
            { title: 'Some Title', field: 'id', render: rowData =>
              (rowData[someProp]> 0 ?
              <Link to={{
                pathname: `/subTable/${rowData.id}`,
                state: {
                  data: rowData,
                },
              }}>
                {rowData.id}
              </Link> :
              {rowData.id}
            },
            { title: 'other props', field: 'level', type: 'numeric' }
          ]}
          data={state.data.tests}
          title={state.prevTitle ? state.prevTitle + " / " + state.data.id : state.data.id }
          detailPanel={[
            rowData => ({
              disabled: rowData.testCount ? false : true,
              render: rowData => (
                rowData.hasOwnProperty("flagProp") &&
                <PieChart
                      render some stuff...
                />
            )
            }),
          ]}
        />
    )
}

App.js:
function App() {
  return (
    <Router>

        <Route exact path="/" component={Table} />
        <Route exact path="/subTable/:id" component={SubTable} />

    </Router>
  );
}

Steps to reproduce
it's intermittent, and refreshing can fix. To reproduce, just keep clicking into children components and it suddenly happens.
I think need to run on local to reproduce.
https://codesandbox.io/s/silly-tereshkova-qxwi0?file=/src/Table.js
Actual Behavior
I am building a project with react-router, and it's recursively generating table and using the data from parent. What I want to achieve is to clicking on the parent data, it unmount the parent and mount the children with the data.children, like my above code shows.
My data is serializable, but it still intermittently occurs Failed to execute 'pushState' on 'History', refreshing the browser will fix.
The full error message is
DataCloneError: Failed to execute 'pushState' on 'History': rowData => rowData.hasOwnProperty("flagProp") && /*#__PURE__*/Object(react_jsx_dev_runtime__WEBPACK_IMPORTE...<omitted>...d) could not be cloned.

Feels like it wrongly calls the pushState when I render detail panel? I don't understand why the pushState is called in another place.
Any help is appreciated!

@timdorr thanks a lot for your help. So this issue is high possibly caused by a large amount of data. I will try another way.


Testing with build watch and karma causes double load

Thanks for the other fix - works great :)
I am doing TDD with the following setup
Debug - In two different shell windows
npm run build.test.watch      # 1st window
npm run karma.start           # 2nd window
Then I edit/create a spec file and save, I then get a karma double run
Firstly as the dist folder rebuilds then the watcher fires a karma runs which gives
SUMMARY:
✔ 0 tests completed
Make perfect sense as there is nothing in dist as everything was removed.
Then as dist builds it runs the tests again which is fine
SUMMARY:
✔ 6 tests completed
ℹ 68 tests skipped
It all works but is there a way to make it that the karma run only triggers once the dist build complete -or something like that?

@red010b37 You might ask that question on the parent seed as the build here simply mirrors that setup.
https://github.com/mgechev/angular2-seed/issues


Breaking 3.4.0 Typescript Changes for Extensions

In the 3.4.0 release, you bumped the version of @graphql-tools/utils to 8.0.0 (it's not in the GitHub repository for some reason?). This caused a breaking change with existing extensions that could previously have been used with the loadConfig function:
import { CodegenExtension } from "@graphql-codegen/cli";
import { loadConfig } from "graphql-config";

const config = await loadConfig({
  extensions: [CodegenExtension],
});

This is an issue because the GraphQLExtensionDeclaration type exported does expose an indirect reference to the type from:
import { Loader } from '@graphql-tools/utils';

The issue here being that the Loader type signature changed in version 7.10.0 to 8.0.0 (as seen here https://github.com/ardatan/graphql-tools/compare/@graphql-tools/utils@7.10.0...@graphql-tools/utils@8.0.0#diff-c53c3ed3e49523c6f542babc8c8e2bc105d0a27f7d6aca43e596272f766d6bf0). I'd suggest rolling back the dependancy upgrade for @graphql-tools/utils to 7.10.0, cutting a new 3.4.1 release, and then doing the upgrade to 8.0.0 via a major version bump to 4.0.0
To Reproduce
You can reproduce this with the following versions and code:
{
  "devDependencies": {
    "@graphql-codegen/cli": "^1.21.8",
    "graphql-config": "^3.4.0"
  }
}

import { CodegenExtension } from "@graphql-codegen/cli";
import { loadConfig } from "graphql-config";

const config = await loadConfig({
  extensions: [CodegenExtension],
});

Where via typescript, you can see the type error:
Type 'import("/<redacted>/node_modules/@graphql-codegen/cli/node_modules/graphql-config/extension").GraphQLExtensionDeclaration' is not assignable to type 'import("/<redacted>/node_modules/graphql-config/extension").GraphQLExtensionDeclaration'.
  Types of parameters 'api' and 'api' are incompatible.
    Type 'import("/<redacted>/node_modules/graphql-config/extension").ExtensionAPI' is not assignable to type 'import("/<redacted>/node_modules/@graphql-codegen/cli/node_modules/graphql-config/extension").ExtensionAPI'.
      The types of 'loaders.schema.register' are incompatible between these types.
        Type '(loader: Loader<BaseLoaderOptions>) => void' is not assignable to type '(loader: Loader<string, SingleFileOptions>) => void'.
          Types of parameters 'loader' and 'loader' are incompatible.
            Type 'Loader<string, SingleFileOptions>' is not assignable to type 'Loader<BaseLoaderOptions>'.
              The types returned by 'load(...)' are incompatible between these types.
                Type 'Promise<Source>' is not assignable to type 'Promise<Source[] | null>'.
                  Type 'Source' is missing the following properties from type 'Source[]': length, pop, push, concat, and 28 more.

Environment:

OS: macOS 11.5.1
GraphQL Config Version: 3.4.0
NodeJS: 14.15.4

Thanks @wyattjoh for reporting this. We did miss this breaking change.
@kamilkisiela will release 3.4.1 with an API adjustment, and we released 4.0.0 with a note for this breaking change.

6c7e680469389f8db43c7995cb346c21ec70ff2f


"Vlădila" is listed in the drop-down menu

Description:
"Vlădila" is listed in the drop-down menu alongside its corresponding county according to the law
Precondition:
The website is up an running.

Step 1
Type "Vlădila" in the search bar.

Expected results
The location is listed in the drop-down menu as "Comuna Vlădila, OLT".


Issue mounting a nfs4 mount subfolder with a Portainer stack (docker swarm)

Hi All,
Im trying deploy pi-hole in a portainer stack in a docker swarm. No mounting hte NFS4 share is not the issue as i have the at working, the issue arrives when I try mount a secnd subfolder within the original NFS share. As you may or may no not know, but pi-hole has two volumes that must be mounted, the sceond is a subfolder with in the priamry fold.
Thanks in advance!

Can you post the error message you get when you try this?
You're getting into the weeds of NFS mounting options here but you might want to look at subtree_check. https://linux.die.net/man/5/exports

@Silversurfer79 - I will poke around to see if I can verify this, but I'm fairly (very) sure that you can not mount an individual file from an NFS share as an NFS volume. For what you are doing, I believe two volumes will probably be necessary.

This actually feels like it might be a typo in your YAML. The YAML syntax is very strict on spacing - can you check if there's tabs instead of spaces on lines 23 and 24 or any other syntax issues? I note in your screenshot the red squiggly line under line 24, if you hover over this does it tell you why it's highlighting it as such?

Im not even sure if thats correct, I assumed it made sense. How do poeple mount nfs shares in docker swarm for apps that have more than one share? Mounting two shares makes no sense, mounting one and allow for subfolders makes sense. Where is the best pleace to post to get a answer on this?

Hey @Silversurfer79 - Think Docker volumes as apposed to NFS exports. Christian Lempa has a really helpful video about this --> https://youtu.be/eKAQiYu4NyI.


remove unnecessary dependencies

What type of PR is this?
/kind cleanup
Which issue(s) this PR fixes:
resolve https://github.com/karmada-io/website/issues/168

deleted everything unnecessary and checked locally
/assign @RainbowMango


Seeing some weird output in snippet

Check out https://github.com/electron/electron-apps/pull/518#issuecomment-367377800
It's got some stuff like �[92m �[0m�[32m 10180 passing�[0m�[90m (2s)�[0m in it.
One the bright side, this person was able to fix the issues on their own and get the build passing without intervention from our team! 💯

Those are ANSI colors. Something like strip-ansi should take care of them.

Totally missed this because apparently I'm not watching this repo (🤔) but I literally just added this in #24 😆 Thanks for the report 💖

🤘


[Feature Request] Support XML parsing

Summary
This tool parses XML without any complaints, but I found an edge case that makes some applications hard to implement.
When the XML contains a Style element, every child of it gets parsed as plain text, even if the children are supposed to be other elements. After looking at the tree_builder_simulator, I'm assuming this happens with several other tokens/namespaces.
Requirements
When parsing XML:

No elements should trigger a namespace change
The parser should respect and preserve tag capitalization/casing

There may be more differences between HTML and XML grammar that would need to be addressed. For example, I don't think XML has shorthand for boolean attributes.

Hello,
Even though XML share a lot of similarities with HTML, is a completely different language. HTML5 was designed the way that it can consume XML documents to accommodate documents that were created during XHTML era of web development. However, HTML doesn't do many important validations of XML syntax and interprets some of the XML structures differently.
So, overall, this task is out of scope of this project that aims to deal with modern HTML (aka HTML5) exclusively.


Update target_commitish for draft releases

One of the issues I ran into when I changed my default branch was related to draft releases. Much like how existing PRs pointing to the old default branch need to be retargeted to the new default branch, the same is true of existing draft releases with a target_commitish of the old default branch.
If you do not update it before deleting the old default branch, it still appears in the UI but cannot be edited, saved, published, etc. in the UI, which is very frustrating. Normal user UI-based workaround is to copy the text contents, delete the draft, and create another new draft. 😕
Necessary steps:

Get a list of all the releases
Filter that list down to those with draft: true and target_commitish: ${oldDefaultBranch}
For each of those, update the draft release's target_commitish value to the ${newDefaultBranch}

Oh thank you James for letting me know!
I'd be happy to accept a pull request if you'd like to give it a try? I won't be able to work on this myself before July 7

I can probably take a look at it this week. 👌

Did you have a chance to look into it?


unsupported hash type MD4 ldap

Error: unsupported hash type MD4 if you are using ldap with AD
Problem: OpenSSL is not providing md4 algorithm anymore
Solution: hashlib can use the Crypto module with pycryptodome you have to add pycryptodome to requirements.txt

https://github.com/sebo-b/warp/pull/53


Ffmpeg-python : copying codec from input to output stream showing error

I am trying to convert an MP4 file to mkv by copying the codecs .. ffmpeg equivalent is
ffmpeg -i input.mp4 -c copy out.mkv
I tried this using the code:
Input='in.mp4'
Output=ffmpeg.output(in , 'out.mkv',acodec='copy',vcodec='copy')
But this line is raising a Type error :
raise TypeError( TypeError: Expected incoming stream(s) to be of one of the following types: ffmpeg.nodes.FilterableStream; got <class 'str'>

You forgot to call the input method:
stream = ffmpeg.input('in.mp4')
The error your getting says you passed a string instead of a ffmpeg.nodes.FilterableStream (object returned by input)

@mohdsabahat ping

😞😞
I am sorry

Did the same thing but still got error..i want to convert mp4 to H264 but throwing the same error

Did the same thing but still got error..i want to convert mp4 to H264 but throwing the same error

Did you try my suggestion?

Yes..but it is not working..so tried using subprocess and hence now working


Add basic note function

With this pull request you can easily add Note to a user
With the commande !setnote You can add a note
!note UserID : You can show the note
To disable note you can type !setnote undefined
The note is showed on new tickets above below the !logs message

Thank you for contributing!
One thing to note though, there's already a command for it.
Could you try and find a different name? (notes for example)

I've edited the name from "note" to "shownote" thanks for your reply

I've edited the way to create the 2 commandes, i've added 2 modules "shownote and setnote".

A lot of people dislike scrolling to the top of threads, and its impractical especially on mobile.
If you want to see how to have the same command work both as a thread command and as a inbox server command you can check out this plugin.

I've added a new commit to solve this !shownote on active thread will display the note for the thread user.

I'll create a new clean pr


UNIQUE constraint failed: twitter_token error at the account renewal when Squawker opens.

Checklist

[X] I am able to reproduce the bug with the latest version.
[X] I made sure that there are no existing issues - open or closed - which I could contribute my information to.
[X] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
[X] This issue contains only one bug, that only occurs in Squawker

Affected version
3.7.6
Steps to reproduce the bug

Open Squawker
If applicable, enter the account renewal code that is asked
the error appears

Expected behavior
When I open Squawker I get a message to "enter auth key sent to your e-mail", once I get the code and enter it, there is no error and the feed shows the tweets.
Actual behavior
When I open Squawker I get a message to "enter auth key sent to your e-mail", once I get the code and enter it, I get this error:
DatabaseException(UNIQUE constraint failed: twitter_token.oauth_token (code 1555 SQLITE_CONSTRAINT_PRIMARYKEY)) sql 'INSERT INTO twitter_token (guest, id_str, screen_name, oauth_token, oauth_token_secret, created_at) VALUES (?, ?, ?, ?, ?, ?)' args [0, 272595305, [twitter_account], 272595305-ayiR8qzr2fuWGtZvNtVpJnGsCUh0MMB7ocFK7nVw, EcxzlpE41SnoX6W3uEvSRVZ8XWeQqyFUSAuLwV8MZqLF8, 2024-03-11T05:57:26.203662]
Screenshots/Screen recordings
No response
Logs
No response
Affected Android/Custom ROM version
No response
Affected device model
No response
Additional information
No response

Version v3.7.7 fixes this issue.

I still have this issue, even with version 3.7.8.

It seems like it happens intermittently, so I can't reliably reproduce the issue. It only happens when I open a Twitter post in Squawker (through the Share menu).

Next time this happens please take a snapshot of the screen and post it here so that I can see the exact error message.
Thank you.

Had this, logged in on Chrome and it seemed to go away?

I got it, and was able to screenshot it this time.

Version v3.8.1 should fix it.

I just installed the new version --- the error seems to have been resolved.


Compress HTML templates

Coverage remained the same at 89.829% when pulling a84c29c8c7030806edee0918e85506bf882a1e74 on flamingspaz:jinja into 7adef320bf3748c3a1b13c126c7684b7af6fdf5b on mozilla:master.

Coverage remained the same at 89.829% when pulling 1cecd61be46ce5aafebd607d6a7d6b879be9ae18 on flamingspaz:jinja into 7adef320bf3748c3a1b13c126c7684b7af6fdf5b on mozilla:master.


host os updates: vendor latest utils with new device types

These device types are added in the upstream module:

cl-som-imx8
imx7-var-som
imx8m-var-dart
nitrogen6xq2g
npe-x500-m3
n510-tx2
orange-pi-one
orange-pi-zero
spacely-tx2
var-som-mx6

Change-type: minor
Signed-off-by: Gergely Imreh<EMAIL_ADDRESS>
Contributor checklist

[ ] Includes tests
[ ] Includes typings
[ ] Includes updated documentation
[ ] Includes updated build output

Note: the tests pass on appveyor, but the status is not reported to Github (even after a re-run).


/keyfile fails

When I specify /keyfile and a PFX, I get:

System.ArgumentException: Unable to obtain public key for StrongNameKeyPair.
at System.Reflection.StrongNameKeyPair.ComputePublicKey()
at System.Reflection.StrongNameKeyPair.get_PublicKey()
at ILRepacking.Steps.SigningStep.Perform()
at ILRepacking.ILRepack.Repack()
at ILRepacking.Application.Main(String[] args)

Very much like the same issue with ILMerge which signs properly if run as 32-bit using corflags, but by default gives this:

An exception occurred during merging:
An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at System.Compiler.Writer.MscorsnStrongNameSignatureGeneration(String wszFilePath, String wszKeyContainer, Byte[] pbKeyBlob, Int32 cbKeyBlob, IntPtr ppbSignatureBlob, IntPtr pcbSignatureBlob)
at System.Compiler.Writer.WritePE(String location, Boolean writeDebugSymbols, Module module, Boolean delaySign, String keyFileName, String keyName)
at System.Compiler.Writer.WritePE(CompilerParameters compilerParameters, Module module)
at ILMerging.ILMerge.Merge()
at ILMerging.ILMerge.Main(String[] args)

I thought the corflags /32bit+ trick might work on ILRepack as well as ILMerge, but ILRepack acts the same both in 64-bit and 32-bit.

I see it's not implemented. I actually have a fix for this already! Using StrongNameSignatureGeneration instead of Mono.Cecil because that's the only way to access the private key of a PFX without prompting for a password, using the password you've stored with Visual Studio.
Will send PR when I'm ready.

Hi @jnm2, shouldn't the fix/implementation be done in Mono.Cecil instead so it supports both ?
Thx.

@gluck That's a good point. I ran into a problem though. Turns out even ILMerge isn't able to sign using the PFX. It doesn't give any errors, but if you run sn -T merged.exe it says Failed to read token from assembly -- Invalid assembly public key so I don't actually have a solution yet.
I see that csc is signing just fine using the PFX without a password, so I'll start digging there.

You can extract snk from pfx like this tool is doing: https://github.com/aarnott/pfx2Snk
But you need to provide the passwd, don't know how it can be done w/o providing it.

Here I was making a silly assumption. msbuild is actually invoking csc with /keycontainer:VS_********.
Can I convert this issue into a request for /keycontainer support? I'll work on the proof of concept.


MB-7735 update date filter to use time stamp

Description
This PR updates the DateFilterSelectFilter.jsx component to allow it to return either just a date or a UTC time stamp. The services counselor and payment request queues' submittedAt columns have been updated to use the time stamp option. Using the the time stamp will account for different time zones and will ensure the correct rows are returned. Additionally, the service objects have been updated so the submittedAt filter will account for the 24hr period for the individuals timezone.
Reviewer Notes
One server test is currently failing for the payment request queue, and I'm not sure whats going on. I'm planning on looking at it more tomorrow morning.
Setup
To test that the correct dates are filtered complete the following steps:

Start the office app locally

Navigate to the Services counselor queue

Test the SubmittedAt filter and the requested move date filter

Navigate to the TIO payment requests queue

Test the SubmittedAt filter

Code Review Verification Steps

[ ] If the change is risky, it has been tested in experimental before merging.
[ ] Code follows the guidelines for Logging
[ ] The requirements listed in Querying the Database Safely have been satisfied.
Any new migrations/schema changes:

[ ] Follow our guidelines for zero-downtime deploys (see Zero-Downtime Deploys)
[ ] Have been communicated to #g-database
[ ] Secure migrations have been tested following the instructions in our docs

[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, IE, Edge).
[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] User facing changes have been reviewed by design.
[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

References

Jira story for this change

Warnings

:warning:

Files located in legacy directories (src/shared or src/scenes) have
been edited. Are you sure you don’t want to also relocate them to the new file structure?
View the frontend file org ADR for more information

Messages

:book:
:link: MB-7735

  Generated by :no_entry_sign: dangerJS against a39fa9e7d85d302f81b61b9d975c660bf796e56c

@eamahanna I don't think your swagger definitions quite match between the services counselor queues/counseling definition and the TIO's queues/payment-requests.
You changed the submittedAt param to accept a string in the counseling handler (we can probably add format: date-time which then would mean we wouldn't have to reparse the string in the handler). https://github.com/transcom/mymove/blob/a39fa9e7d85d302f81b61b9d975c660bf796e56c/swagger/ghc.yaml#L1205-L1208
In the payment requests queue definition submittedAt is of format date instead of date-time which will chop off the time value. https://github.com/transcom/mymove/blob/a39fa9e7d85d302f81b61b9d975c660bf796e56c/swagger/ghc.yaml#L1337-L1340
I think you're just missing your new dateTime prop in the PaymentRequestQueue.jsx like you added in the ServicesCounselingQueue.jsx for the submittedAt header https://github.com/transcom/mymove/blob/a39fa9e7d85d302f81b61b9d975c660bf796e56c/src/pages/Office/ServicesCounselingQueue/ServicesCounselingQueue.jsx#L75


nl.surfnet.apis:apis-authorization-server:jar:1.3.6-SNAPSHOT is missing, no dependency information available

Hello,
I've tried to clone the repository, but on trying to run "apis-authorization-server-war", it returns the following error:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building API Secure - authorization server webapp 1.3.6-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for nl.surfnet.apis:apis-authorization-server:jar:1.3.6-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for nl.surfnet.apis:apis-surfconext-authn:jar:1.3.6-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.470 s
[INFO] Finished at: 2015-11-26T14:08:07-02:00
[INFO] Final Memory: 8M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project apis-authorization-server-war: Could not resolve dependencies for project nl.surfnet.apis:apis-authorization-server-war:war:1.3.6-SNAPSHOT: The following artifacts could not be resolved: nl.surfnet.apis:apis-authorization-server:jar:1.3.6-SNAPSHOT, nl.surfnet.apis:apis-surfconext-authn:jar:1.3.6-SNAPSHOT: Failure to find nl.surfnet.apis:apis-authorization-server:jar:1.3.6-SNAPSHOT in https://build.surfconext.nl/repository/public/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of openconext-snapshots has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Have you tried to do a full 'mvn clean install' on the whole project, before trying to run 'mvn jetty:run' on the war submodule?

@gvanderploeg I have the same output and it is got exactly by "mvn clean install" command

Please reply to the issue on Github, instead of mailing me directly.
Thanks.
But have you tried 'mvn clean install' on the whole project, instead of
only in the war module?
On 18 July 2016 at 13:00, Eugenii<EMAIL_ADDRESS>wrote:

@gvanderploeg https://github.com/gvanderploeg I have the same output
and it is got exactly by "mvn clean install" command
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/OAuth-Apis/apis/issues/87#issuecomment-233300022, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABG69so2s-S2Ch_0Xi5JiZ3oS3po7vDcks5qW1zogaJpZM4GqEe2
.

--
http://www.finalist.nl

Hello guys,
i got the same issue while typing "mvn jetty:run". I tried to change the version to 1.1.1-SNAPSHOT rather than 1.3.6 but i got   FATAL ERROR.
Can you help please ?
Thanks in advance.

To quote myself:

But have you tried 'mvn clean install' on the whole project, instead of only in the war module?

Performing 'mvn clean install' on the "apis-parent" project corrects this issue.