Moment.js as a peer dependency

Hi,
Moment.js is a big dependency that I don't want to add twice to my bundle. Could it be moved to the peerDependencies in package.json like react?.
Thanks for this component, works great.
Cheers,
Javi

I tried moving the dependency to peerdependencies, but when running npm install I got the following message:
➜  react-datepicker git:(dependencies) npm install
npm WARN peerDependencies The peer dependency moment included from react-datepicker will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.

Not sure if we want to change this or not, the documentation I found about the difference between dependencies is not really clear to me, but maybe you could help me out with this.

Hi @martijnrusschen
A peer dependency is a module needed by the package to work but that it is not installed with the package. That is, if I need to use react-datepicker and moment.js is a peer dependency of it, I will need to have moment.js also installed to make it work, but react-datepicker won't install it for me.
In my case I am already using moment.js in my projects. Moment.js is a moderately big library that adds ~50KB to my bundle, if react-datepicker install it again. it will be repeated inside the bundle adding 50KB more to the final size.
I think moment.js will be better as a peerDependency than a regular dependency. React-datepicker already uses React as a peer dependency.

Hey @arqex,
Sorry for getting back to you this late, I've been away on vacation.
I agree that for now momentjs is better suited to be a peerDependency, but I'm not completely sure yet as to how that would work. Does it mean that I'll have to manually install momentjs in order to be able to develop on the datepicker? Or should I maybe make it a devDependency and a peerDependency?
npm/npm#6565 seems to state (like @martijnrusschen's comment) that in the future peerDependencies aren't installed automagically anymore, but when I run npm install it also doesn't seem to install them, so I'm really not sure how this all should work out.
I'll try and play with this a little further, have you tried getting this working on your own? If so, I would really appreciate a PR!

I'm also not quite sure where to draw the line between dependencies and peerDependencies, why not make all dependencies peerDependencies?

So, I did some more reading on peerDependencies, and based on https://github.com/npm/npm/issues/5080#issuecomment-40510098 I think that we shouldn't use peerDependencies for this. Could you maybe try and see if the the npm dedupe command fixes your problem?

Hi @RSO
I think they won't be installed automatically as for npm v3.0 and ahead.
Wow! npm dedupe! I have never heard of it, I should have a look. About peerDependencies being deprecated, it is a tough matter. You will never make react a real dependency, as long as you don't want to break any react application installing react-datepicker, but it is true that is difficult to be sure when a dependency is a peerDependency.
In the case of moment.js, maybe the best option is to create two different builds, one with moment.js and other without it, like https://github.com/zippyui/react-date-picker/tree/master/dist
Last week I have been creating my own datepicker because I needed a timepicker too, and I left moment.js as peerDependency, and it is true that I need to install it besides the datepicker to make it work, but on the other hand I get a really lightweight build:
https://github.com/arqex/react-datetime/tree/master/dist
I think I will leave it as peerDependency but it looks like a matter of taste, isn't it?

How are you including the datepicker? Are you doing a require('react-date-picker') or are you include the react-datepicker.js file in your source? The latter shouldn't include momentjs.
I just checked the react-datepicker.js file and it seems odd that it still includes Tether and lodash, so I guess I'll remove those from the package as well, and assume that all dependencies are loaded externally.

@rafeememon What do you think? Should we change this? I checked our dependency list and it looks like we're relying on small lib mostly, but moment.js is the only heavy lib in this list. Should we move this (breaking change) or just keep is as it is?

I think this should be changed, but I think we should wait to break this right before the v1.0 release.  The reasoning behind this is that the DatePicker depends on moment, but it's extremely likely that consumers will be depending on moment independently in their app code (at the very least to use the DatePicker API), so it should use the same physical dependency to line up the versions.

@martijnrusschen, @Kerumen It shouldn't break for everyone -- only for users who depend on npm pulling in moment transitively via react-datepicker. Do we know how common that is?
Those users could fall into two categories:

Users who never use/call moment() directly.
Users who do call moment() directly but failed to declare the dependency.

Group 1 is correct usage, which would unfortunately be broken by this change when they choose to upgrade. They would only be using react-datepicker in the simplest ways, since they couldn't be passing in any moment props without creating a moment.
Group 2 is  already rather fragile, since any change that makes moment no longer available project-wide would break their code. For example, a library upgrade or addition that introduces a new moment dependency on an incompatible version would already break those projects.
Either way, users who would be broken by switching to peerDependencies should get a warning when they upgrade. (Though the warning may be easy to miss/ignore...)
I happen to know the projects I'm working on wouldn't be broken by this change. (Though we are also way out of date anyway due to other breaking changes and lack of testing resources.)

I totally agree with @aij. I think it's a safe move.

@Kerumen I didn't say it's safe, just that it won't break for everyone. I don't know how everyone is using the library, so I can't tell whether it will be a breaking change for a lot of people or only a few.
I would hope only a few though, and I would hope they would (be able to) see the warnings/errors from NPM, but I expect there would be at least some who don't.

Yes I get what you mean. We can warn in the changelog/releases/readme and I'd be happy to help people if they file an issue regarding their project :)

Thanks! Released this change in v0.64.0


How to create an error response for mocking error?

[Enter feedback here]

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

ID: 376e2c70-c811-ecc8-2fa4-c5b12fbea1df
Version Independent ID: 44106a9f-551c-c279-1f7d-d1d243882ba5
Content: Response Class (Azure) - Azure for .NET Developers
Content Source: xml/Azure/Response.xml
Service: azure
GitHub Login: @azure-sdk
Microsoft Alias: azsdkdocs

Thank you for reaching out.
Azure.Core.TestFramework supports MockResponse class that can be used to create Mock responses including error scenarios. You can find samples here - https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core.TestFramework#unit-tests
Hope this helps.


Some error occured while retrieving from mongodb.

Hi, I found some error to tell you.
I can connect "http://<IP_ADDRESS>:9001/metrics".
and I can see the metrics about mongodb.
But some errors occured. My mongo DB version is 3.4.7
Here is error message.
E0828 10:38:49.825895   21966 replset_status.go:232] Failed to get replSet status. E0828 10:38:49.826988   21966 oplog_status.go:127] Failed to get local.oplog_rs collection stats. E0828 10:48:17.029035   21966 replset_status.go:232] Failed to get replSet status. E0828 10:48:17.029788   21966 oplog_status.go:127] Failed to get local.oplog_rs collection stats.

I can confirm this issue, although with other error-codes:
Sep 21 19:53:37 host-01 prometheus-mongodb-exporter[20493]: E0921 19:53:37.923800   20493 replset_status.go:232] Failed to get replSet status.
Sep 21 19:53:37 host-01 prometheus-mongodb-exporter[20493]: E0921 19:53:37.924208   20493 oplog_status.go:127] Failed to get local.oplog_rs collection stats.

the exportert is started with the groups.enabled flag set to this value, explicitly excluding op_counters and op_counters_repl:
-groups.enabled="asserts,durability,background_flushing,connections,global_lock,index_counters,network,memory,locks,metrics"'

The mongodb instance in question is a singleton instance, without replication.

I have the same problem:
Listening on :9001 (scheme=HTTP, secured=no, clientValidation=no)
E1101 13:39:40.126140   75084 server_status.go:173] Failed to get server status.
E1101 13:39:40.126418   75084 replset_status.go:232] Failed to get replSet status.
E1101 13:39:40.126533   75084 oplog_status.go:127] Failed to get local.oplog_rs collection stats.
this is my cmd:
./mongodb_exporter-linux-amd64  -mongodb.uri "mongodb://user:pwd@<IP_ADDRESS>:24000/ssf_h5" -groups.enabled="op_counters,op_counters_repl,asserts,durability,background_flushing,connections,global_lock,index_counters,network,memory,locks,metrics"

I use other's program:https://github.com/percona/mongodb_exporter/releases
run the same cmd ,and get this result:
INFO[0000] ### Warning: the exporter is in beta/experimental state and field names are very  source="mongodb_exporter.go:239"
INFO[0000] ### likely to change in the future and features may change or get removed!  source="mongodb_exporter.go:240"
INFO[0000] ### See: https://github.com/percona/mongodb_exporter for updates  source="mongodb_exporter.go:241"
ERRO[0000] Failed to get server status: not authorized on admin to execute command { serverStatus: 1, recordStats: 0 }  source="server_status.go:224"
ERRO[0000] Failed to get replSet status: not authorized on admin to execute command { replSetGetStatus: 1 }  source="replset_status.go:270"
ERRO[0000] Failed to get oplog status: not authorized on local to execute command { find: "oplog.rs", sort: { $natural: -1 }, skip: 0, limit: 1, batchSize: 1, singleBatch: true }  source="oplog_status.go:149"
INFO[0000] Starting HTTP server on http://:9216/metrics ...  source="mongodb_exporter.go:208"

i met the same problem，how do you solve this?
E0505 18:49:15.893751     860 replset_status.go:270] Failed to get replSet status.
E0505 18:49:15.893902     860 oplog_status.go:127] Failed to get local.oplog_rs collection stats.
E0505 18:49:30.893287     860 replset_status.go:270] Failed to get replSet status.
E0505 18:49:30.893438     860 oplog_status.go:127] Failed to get local.oplog_rs collection stats.

Did anyone get passed this, I thought I did yesterday, but the same error?

Looks like the author has not implemented collecting replSet data yet. If you want to turn the error message off, you can add -mongodb.collect.replset false

Hi, I met the same problem conecting from mongo_exporter container to mongodb container in docker-compose file and want to know if someone solve it.
mongodb-exporter_1  | E0213 16:05:52.660839       1 server_status.go:203] Failed to get server status.
mongodb-exporter_1  | E0213 16:05:52.661418       1 replset_status.go:270] Failed to get replSet status.
mongodb-exporter_1  | E0213 16:05:52.661888       1 replset_conf.go:140] Failed to get replSet config.
mongodb-exporter_1  | E0213 16:05:52.662483       1 oplog_status.go:127] Failed to get local.oplog_rs collection stats.


WRP-17865: Update package dependencies to fix security vulnerabilities

Checklist

[x] I have read and understand the contribution guide
[ ] A CHANGELOG entry is included
[x] I have run automated CLI testing and it is passed
[ ] This is an API breaking change

Issue Resolved / Feature Added
Updated dependencies to the latest minor version.
Resolution
Dependencies now use the latest minor version
Additional Considerations
Links
WRP-17865
Comments
Enact-DCO-1.0-Signed-off-by: Andrei Tirla<EMAIL_ADDRESS>

please list the breaking changes from eslint and add a changelog

Nice jobs :)
Are there any missing changes in our repo among the links below?
https://babeljs.io/blog/2023/05/26/7.22.0#renamed-packages
https://github.com/babel/babel/releases


wip: Auto Trader - Super Goat

Auto Trader works and trades tokens listed in /characters/tokens when placed in a JSON file.
See readme for configuration requirements.
Don't forget to update your client-auto:
import { Client, IAgentRuntime, elizaLogger } from "@ai16z/eliza";
import createGoatPlugin from "@ai16z/plugin-goat";

export class AutoClient {
    interval: NodeJS.Timeout;
    runtime: IAgentRuntime;

    constructor(runtime: IAgentRuntime) {
        this.runtime = runtime;

        // Initialize plugin first
        this.initializePlugin().then(() => {
            // Start trading loop after plugin is initialized
            this.interval = setInterval(
                async () => {
                    await this.executeTradingCycle();
                },
                60 * 60 * 1000 // 1 hour in milliseconds
            );
        }).catch(error => {
            elizaLogger.error("Failed to initialize auto client:", error);
            throw error;
        });
    }

    private async initializePlugin() {
        try {
            const plugin = await createGoatPlugin(
                (key: string) => this.runtime.getSetting(key),
                this.runtime
            );
            elizaLogger.log("GOAT plugin initialized successfully");
        } catch (error) {
            elizaLogger.error("Failed to initialize GOAT plugin:", error);
            throw error;
        }
    }

    private async executeTradingCycle() {
        try {
            elizaLogger.log("Running auto client trading cycle...");
            // Trading logic is handled by the plugin itself
        } catch (error) {
            elizaLogger.error("Error in trading cycle:", error);
        }
    }
}

export const AutoClientInterface: Client = {
    start: async (runtime: IAgentRuntime) => {
        const client = new AutoClient(runtime);
        return client;
    },
    stop: async (_runtime: IAgentRuntime) => {
        console.warn("Direct client does not support stopping yet");
    },
};

export default AutoClientInterface;

Closing PR, will contribute a new PR for this build as needed.


Retry initial connection

See https://github.com/zalando-nakadi/fahrschein/issues/298

nice, make sure to document this in the README 👍

Codecov Report
Patch coverage: 100.00% and project coverage change: +0.09 :tada:

Comparison is base (dde0047) 67.33% compared to head (fed6359) 67.42%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #390      +/-   ##
============================================
+ Coverage     67.33%   67.42%   +0.09%
- Complexity      427      430       +3
============================================
  Files            77       77
  Lines          1800     1805       +5
  Branches        149      150       +1
============================================
+ Hits           1212     1217       +5
  Misses          485      485
  Partials        103      103

Flag
Coverage Δ

unittests
67.42% <100.00%> (+0.09%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...main/java/org/zalando/fahrschein/NakadiReader.java
80.47% <100.00%> (+0.47%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

LGTM :+1:

👍

👍


Removing hard validations on empty marks/results

Removing hard validations on empty marks/results. other question or layout level validations can be configured from layout roi JSON.

hardcode validations has been removed from frontend now validations will be completely from backend regex .


Tag can't show all the problems

For example, in the graph tag, it only shows 9 questions but leetcode has 21.

@xinzhige The reason why the number of listed problems is not equal to that on the website is due to two reasons:

Some of the problems are locked problems, if you want to list them in the explorer, change the extension setting: leetcode.showLocked to true.

Note: Only premium account can show the locked problems

The problem tag information is fetched from the cli plugin, for now, it only contains the problem information up to No.750.

This is fixed in https://github.com/leetcode-tools/leetcode-cli/pull/16
Please note that so far the problem tags are manually maintained, so when LeetCode publishes new problem, the tag might now get updated in time. I'll keep an eye on it. Meanwhile, thinking about how to get it automatically in the CLI.


docs: fix some errors and add pydantic to dependency

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

Project coverage is 89.49%. Comparing base (8f6b4cb) to head (f972e34).

:exclamation:  There is a different number of reports uploaded between BASE (8f6b4cb) and HEAD (f972e34). Click for more details.
HEAD has 5 uploads less than BASE

Flag
BASE (8f6b4cb)
HEAD (f972e34)

6
1

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #141      +/-   ##
==========================================
- Coverage   96.97%   89.49%   -7.48%
==========================================
  Files          26        6      -20
  Lines        2872      790    -2082
==========================================
- Hits         2785      707    -2078
+ Misses         64       60       -4
  Partials       23       23

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


login try limit agains bruteforce attack

This is generally hard to do because the same brute-force attack can come from different IP addresses. If attackers use a bot, each hit will come from the different IP. If you will simply delay the login, such defense can cause anybody to lock anybody else out of the system by continuous brute-forcing.
Better use 2-factor authentication, like google two-factor authenticator through PAM.

Yes, but I think that a brute-force attack is more difficult , if only 5 login attempt per IP are possible.

I agree with @yurivict's insight: rather than placing an overhead of n-logins by the unique IP set (and flushing the log once the user successfully logs in), I think the delay with exponential growth time is more elegant solution.

Does Gogs currently log failed login attempts with the corresponding IP-Address? If so fail2ban could be used to take care of this.

Ban who, user-id? IP? Net?

@yurivict fail2ban bans IPs

In general I don't think that it is Gogs responsibility to to take care of this matter, there are tools like fai2ban that are designed to do exactly this single job. Gogs just needs to provide a sane log file that allows such tools to work properly.

agree. should just integrate gogs with fail2ban.

I just checked the logfiles. Currently gogs does not log failed login attempts.

Any updates on this topic? Thanks


Oracle 12c model generation not working

When generating model for oracle 12c, getting below error
<EMAIL_ADDRESS>[13:54:17] Starting creation of model classes.
(node:7608) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'replace' of undefined
(node:7608) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

The issue was because of oracle output format.
https://oracle.github.io/node-oracledb/doc/api.html#propdboutformat
the output format must be oracledb.outFormat = oracledb.OBJECT;
Appreciate if you can fix this issue.

Fixed in<EMAIL_ADDRESS>


mv

Challenge Say Hello to HTML Elements has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
italic

<bold>Bold</bold>

Hello

Hello

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

The issue tracker is for reporting bugs only. If this is an issue for help with a challenge, please use the help chat room or try looking through the forum for help with a specific challenge.
Happy Coding.


Soft IP Ban for multiple threads

So I was running between 60-90 threads and all of a sudden map data disappeared due to IP ban.
Nearby pokemon would be empty on WIFI and populate on mobile data.
Was confirmed on reddit to be happening but not sure if due to so many threads or a general ban at a certain time of day.
Only lasted 15 minutes but the IP is surely blacklisted now.

It's focused on the excessive use of bots, accounts on a single ip. Mostly bots though.  Common sense.
Saw this from a botter testing:
'Running more than 50 Accounts for 5 minutes will get your IP blocked.
Stopping all connections (or possibly going back below 50?) to PoGo serers will allow you to resume again within 30 minutes, but you'll get blocked again if over the account limit'
God that's a lot lol.

Yeah I agree but others are saying its happening with 10 current scans and also at a certain time stamp.
I don't have the skills to run a custom setup which is why I'm using this git, but need many scans to hit the rare spawns in my area


link to template partnership agreement is not working

is there another place where we can find the partnership agreement?

This site is now being rendered through git pages:
https://bcgov.github.io/ExchangeLabOps/
The link to the partnership agreement now works.  Thank you for noticing this.


OnDiskSTM: Inconsistent OnDiskIndex during node start will silently be ignored

If an OnDiskSTM returns during the open an old index (let's say index=33) and the latest snapshot is on a newer index e.g. 50, this inconsistency will silently be ignored and assumed the OnDiskSTM is on 50. Therefore newer entries (e.g. with index=51, 52,...) will be recovered as it is assumed the STM is on index 50.
The node will just start fine and begin working with the old OnDiskSTM and and applying newer indexes. Which results in a gab of data.
It seems like one of the problems is that a dummy snapshot is just applied without any checks here:
https://github.com/lni/dragonboat/blob/6dcfdf3d07c56f42a8bf93893d618e8d6188d85e/internal/rsm/statemachine.go#L330-L333
Dragonboat version
3.3.0
Expected behavior
Starting of the node should fail, because the OnDiskSTM is on an older index from which a recovery is not possible anymore.
Actual behavior
Inconsistent OnDisk index is ignored and normal operation will start with a gap on the on disk data.
Steps to reproduce the behavior
Use OnDisk Example adjust to code to a one node cluster only and put key values until at least one snapshot has been created. Afterwards adjust the code to return index 1 on opening. Then start the node again and see that the node starts just fine.

@stffabi I am not sure what is the inconsistency here.
The situation you described above is legitimate - let's say your IOnDiskStateMachine have all entries up to index 33 applied, that index 33 value is recorded by your Update() method to reflect such progress. In this case, for all __regular user proposals __ applied into the on disk SM, 33 is the highest index value. After that index 33 regular user proposal entry, there might be many other Raft entries that are not regular user proposals as well, e.g. config change entries and noop entries caused by new leaders, those entries do not need to be handled by the on disk SM's Update() method but still need to be included in the snapshot as well.
For the situation you described above, the real question is whether it is possible to have regular user proposals with index value [34, 50]. Please have a look at the concurrentSave() method in internal/rsm/statemachine.go, it is not possible. When your snapshot index is 50, it means prepare() returned a SSMeta with index = 50 when the state machine is locked. A sync() is issued after prepare() to make sure all IOnDiskStateMachine state is persistent. If during recover the on disk SM reports its index as 33, it show no regular entries between [34, 50].

@stffabi I am not sure what is the inconsistency here.
The situation you described above is legitimate - let's say your IOnDiskStateMachine have all entries up to index 33 applied, that index 33 value is recorded by your Update() method to reflect such progress. In this case, for all __regular user proposals __ applied into the on disk SM, 33 is the highest index value. After that index 33 regular user proposal entry, there might be many other Raft entries that are not regular user proposals as well, e.g. config change entries and noop entries caused by new leaders, those entries do not need to be handled by the on disk SM's Update() method but still need to be included in the snapshot as well.
For the situation you described above, the real question is whether it is possible to have regular user proposals with index value [34, 50]. Please have a look at the concurrentSave() method in internal/rsm/statemachine.go, it is not possible. When your snapshot index is 50, it means prepare() returned a SSMeta with index = 50 when the state machine is locked. A sync() is issued after prepare() to make sure all IOnDiskStateMachine state is persistent. If during recover the on disk SM reports its index as 33, it show no regular entries between [34, 50].

@lni thanks for your reply.
I totally agree with you that this is legitimate iff there were none user proposal between index value values [34, 50]. But in my case those indexes included user proposals. I also agree with you that if everything works fine such an inconsistency could not happen.
My issue was not directed to any inconsistency caused by dragonboat itself but if it was caused by something outside of dragonboat it wont be detected by dragonboat. For example if the IOnDiskStateMachine was not correct in the sense that Sync() was not correctly implemented or if the filesystem on which the IOnDiskStateMachine works had any problem with the fsync() triggered in the Sync(). In such cases it might happen that the SSMeta has recorded index=50 and also record OnDiskIndex=50 because the last user proposal's index was also 50, but during the next start onDiskInitIndex as returned by the Open from IOnDiskStateMachine would return some value before 50. As far as I can tell from the code (maybe I'm overlooking something) this condition is not detected (at least for a dummy snapshot) by dragonboat.
Isn't that an invariant, that the OnDiskIndex of a snapshot which gets applied during startup must always be smaller or equal to the onDisk(Init)Index? If this invariant is hurt, something went somewhere terribly wrong and for sake of robustness I would love to see this gets detected by dragonboat.

@lni thanks for your reply.
I totally agree with you that this is legitimate iff there were none user proposal between index value values [34, 50]. But in my case those indexes included user proposals. I also agree with you that if everything works fine such an inconsistency could not happen.
My issue was not directed to any inconsistency caused by dragonboat itself but if it was caused by something outside of dragonboat it wont be detected by dragonboat. For example if the IOnDiskStateMachine was not correct in the sense that Sync() was not correctly implemented or if the filesystem on which the IOnDiskStateMachine works had any problem with the fsync() triggered in the Sync(). In such cases it might happen that the SSMeta has recorded index=50 and also record OnDiskIndex=50 because the last user proposal's index was also 50, but during the next start onDiskInitIndex as returned by the Open from IOnDiskStateMachine would return some value before 50. As far as I can tell from the code (maybe I'm overlooking something) this condition is not detected (at least for a dummy snapshot) by dragonboat.
Isn't that an invariant, that the OnDiskIndex of a snapshot which gets applied during startup must always be smaller or equal to the onDisk(Init)Index? If this invariant is hurt, something went somewhere terribly wrong and for sake of robustness I would love to see this gets detected by dragonboat.

@stffabi thanks for the input. I agree that it will be useful to check the OnDiskIndex of the snapshot and the onDiskInitIndex value of the SM when restarting an on disk state machine. Maybe something like the following in the recover() method in internal/rsm/statemachine.go -
if init && s.OnDiskStateMachine() {
  if s.onDiskInitIndex < ss.OnDiskIndex {
    panic()
  }
}

Would you like to send in a PR to give it a try? Thanks.

@stffabi thanks for the input. I agree that it will be useful to check the OnDiskIndex of the snapshot and the onDiskInitIndex value of the SM when restarting an on disk state machine. Maybe something like the following in the recover() method in internal/rsm/statemachine.go -
if init && s.OnDiskStateMachine() {
  if s.onDiskInitIndex < ss.OnDiskIndex {
    panic()
  }
}

Would you like to send in a PR to give it a try? Thanks.

Awesome, yes I would be interested in giving a PR a try. Unfortunately it would take me 2-3 days until I have time to look into it in detail. I'll create the PR as soon as I'm ready.
Thanks again.

Awesome, yes I would be interested in giving a PR a try. Unfortunately it would take me 2-3 days until I have time to look into it in detail. I'll create the PR as soon as I'm ready.
Thanks again.

Sounds great.

Sounds great.

I've created a draft PR where we could discuss the changes.

I've created a draft PR where we could discuss the changes.


Skip doing any work if Also receives no errors

if no errors are passed skip doing stuff (checks, allocations, etc)
if there's one error passed and it's empty (the same)

this is a quite popular pattern where in API validation we do:
x.Also(validateY()) and if that succeeded then it'll be an empty
error. Which is in reality most of the time.

Improve tests by better printing
better test coverage shows commutativity of Also(a, b) and
Also(a).Also(b)

/assign mattmoor

Fixed the nits.


Link to specs from official website

(disclaimer: I'm sorry for posting it here, but the canonical website at Inrupt has no linked repository or contact info. Surprising for an open web movement, but hopefully this bug tracker is ok)
The official website has very limited documentation for now, and is no replacement for this specification. While a whole page (out of 4) is a dedicated "Introduction to the Solid Specification", it does not link to said specifications, and neither does any page of the website (including the "developer resources", which just takes you to said docs). The only way to find this is to go through "Solid on GitHub" and search through the 3 pages of repositories.
I think a link to this (open!) specification would be a great addition to the website. I hope you consider it!

Thanks @remram44, links added to https://solid.inrupt.com/docs/intro-to-solid-spec. The website is still very much a work in progress, so that's why there are still gaps like this.

Great catch, @remram44 ! Yeah, I think this link makes an awful lot of sense, because I saw some critisism that it was hard to understand what it does technically.


Add ability to create a 'dummy' nuget package using build with no ops

Add ability to create a 'dummy' nuget package from a build with no ops. This is required on iOS due to the ORT C# package including the ability to register custom ops. On iOS that creates a compile time dependency for the RegisterCustomOps symbol to exist as static libraries are involved. If the user can't (Xamarin) or does not want to use extensions that results in usage of ORT being broken.
For simplicity, consistency and to minimize changes to the build infrastructure we build a nuget package for all platforms so everything is 1:1 with the real package except the build uses an empty config to select the ops to include. Technically we only need something with iOS builds.
We should only need to publish this once unless the RegisterCustomOps API changes.
See https://github.com/microsoft/onnxruntime/issues/16463

Add ability to create a 'dummy' nuget package from a build with no ops. This is required on iOS due to the ORT C# package including the ability to register custom ops. On iOS that creates a compile time dependency for the RegisterCustomOps symbol to exist as static libraries are involved. If the user can't (Xamarin) or does not want to use extensions that results in usage of ORT being broken.
For simplicity, consistency and to minimize changes to the build infrastructure we build a nuget package for all platforms so everything is 1:1 with the real package except the build uses an empty config to select the ops to include. Technically we only need something with iOS builds.
We should only need to publish this once unless the RegisterCustomOps API changes.
See microsoft/onnxruntime#16463

I think the mobile package is already minimized enough and cannot see too much value to create a dummy package for that. Moving forward, the extensions package might not be "optional" for users and if the user extremely looks for binary size and they should build from source.


Deploy release for each branch update.

Deploy release tarball for each branch update.
The release tarball will be located in gs://cri-containerd-staging. They are not publicly accessible, the main purpose is for testing.
I'll add test job in Kubernetes test-infra to consume these tarballs.
For the official release, we could run:
DEPLOY_BUCKET=cri-containerd-release make push

Signed-off-by: Lantao Liu<EMAIL_ADDRESS>

Also updated containerd to v1.0.0-beta.0 in this PR to unblock @abhinandanpb's work.

 How often would we need to update the installer.

@abhinandanpb cri-containerd-staging is only for testing. We'll have another bucket cri-containerd-release for release soon, which will only update per-release.
Our installer could down load from there then.


Add markdown yaml input mode to optimize input tokens

Addresses #654

:rocket: This description was created by Ellipsis for commit 7c668e09d6597ce7ef6316bebed658031f2b3f52

Summary:
Introduces MD_YAML mode to parse YAML inputs within markdown, updating necessary files and tests to support this new functionality.
Key points:

Added MD_YAML mode to handle YAML inputs in markdown.
Updated instructor/client.py, instructor/function_calls.py, instructor/mode.py, instructor/process_response.py, and instructor/retry.py to support new mode.
Added new utility function extract_json_from_yaml_codeblock in instructor/utils.py.
Included tests for MD_YAML mode in tests/llm/test_openai/test_modes.py.

Generated with :heart: by ellipsis.dev

please add documentation on YAML in patching

can you add the docs in patch.md? @ellipsis-dev


Added pressure convertor in the conversion tools

I have added the pressure convertor webpage to this utility project

I have add 1 folder and 4 files
1 folder (pressure) inside conversion tool folder
4 files in the pressure folder

pressure.html
pressure.css
pressure.js
preview.png

@RahulSahOfficial Awesome work on this one 🎉. One of the nicest PR ✔. keep Contributing and Happy Coding👩💻✌

@RahulSahOfficial Awesome work on this one 🎉. One of the nicest PR ✔. keep Contributing and Happy Coding👩💻✌

Hey @shubham2704  why don't you make the website public so we can use it in out daily life.
Like this (https://rahulsahofficial.github.io/memorygame)
And I found that in most of the convertor pages the contributors just copied and pasted the links of index
so in almost all the pages the navbar is not working (as the links are broken)
I am making the issue ,  assign that work to me  👍

@RahulSahOfficial Awesome work on this one 🎉. One of the nicest PR ✔. keep Contributing and Happy Coding👩💻✌

Hey @shubham2704 why don't you make the website public so we can use it in out daily life.
Like this (https://rahulsahofficial.github.io/memorygame)
And I found that in most of the convertor pages the contributors just copied and pasted the links of index
so in almost all the pages the navbar is not working (as the links are broken)
I am making the issue , assign that work to me 👍

Don't open the issue it has already been done in another branch, but not merged on the main one. It will be merged in few days and the site will go live.

Can you update my links in the contribution section

Mail<EMAIL_ADDRESS>Twitter :  https://twitter.com/developer_sah
Github : Its correct

Thanks in advance 👍


Adding Transitions/Animations: Pair programming

Add transitions:
@codedit334

To the buttons
To the portfolio image

Add animations:
@ometman

To the headline

Add transitions of portfolio images and buttons through pair programming.


Shebang/binfmt_misc Bash Scripting

Description:
Similar to how Scala, Kotlin, Python, etc support adding a shebag to the top of the file to make it executable, is there plans for Ballerina to do something similar? i.e. #!/bin/bash/env ballerina? Or could we get a similar functionality through binfmt_misc?

This is currently not part of our plans or a priority, so we are closing the issue for now. We will reopen it if we decide to pursue this in the future.


State.js tests

Tests for State.js
A few things to consider before accepting this PR:

I wrote the additional tests using describe it because that feels more natural to me. I don't know if the use o test was a requirement
I added Redux as a dev dependency to be able to dispatch actions.
I switched to require instead of import from because jest.resetModules() wont work on import from, and that's needed to reset jumpstate as it keeps some internal states that would be shared between tests.
I ignored from coverage the if statement from State.js:68 because it is there only for testing purposes and testing it require setting a env parameter.
There is one failing test in this PR. The test tries to reach State.js:12 and it's failing to do so shows a bug on State.js:11. I thought it would be best to fix this in a separate PR after ( and if ) this one is merged.

And that's it I guess... Let me know if there is something we can improve :D

This is great! Thanks for the help @sirgallifrey :)

@sirgallifrey let's try and get that last failing test to pass asap

I'm gonna PR that soon!
Em ter, 10 de jan de 2017 18:09, Tanner Linsley<EMAIL_ADDRESS>escreveu:

Merged #19 https://github.com/jumpsuit/jumpstate/pull/19.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jumpsuit/jumpstate/pull/19#event-918099760, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACOT_RCi9dwbr3eB8c1NAw-cIj-Frx28ks5rQ-VggaJpZM4LZRTo
.


Exception

Hello,
I am trying the test script with PS CC 2015 and I receive this when I run it. Is this something you have seen before? Am I handling the message incorrectly?
File "/Users/travist/SoftwareDev/NoiseBox/pyps/pyps.py", line 214, in run
    self._ids[msg.id] = item
AttributeError: 'Message' object has no attribute 'id'

I havent had a chance to try it with cc 2015.  They may have changed the protocol slightly.  I'll see what needs to be chnaged

Thanks, I appreciate the time. I will look into it more also but I have just started to work with PS connection.

so i tested with 2015 and it seems to work fine

did you set up Remote Connections in photoshop?
can you paste a sample of the code you were trying to use?

Sure no problem. I am using remote connections in Photoshop and I am able to receive the "hello" message. It only has the exception when trying to subscribe to the tool change event.
Something that might be worth noting is I am using the py_des and not the Pycrypto.
The test code
from screen import GUI
from PSconnect import PSconnect
import time

from pyps import Connection, EventListener

def callback(message, *args):
    print message.command
    print message.content

def callback2(message, *args):
	print message.command
	print message.content
	print args

if __name__ == "__main__":

    psConn = PSconnect()
    # psConn.daemon = True
    psConn.start()

    conn = Connection()
    conn.connect(passwd='NoiseBox')
    conn.send('alert("Hello");', True)

    print conn.send('$.version;', True)

    listener = EventListener(conn)
    listener.start()

    listener.subscribe('toolChanged', callback2, (True, 'xxx'))

	# listener.subscribe('foregroundColorChanged', callback)
	# listener.subscribe('currentDocumentChanged', callback)

    # gui = GUI()

    while True:
	    time.sleep(1.0)

The full exception
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/Users/travist/SoftwareDev/NoiseBox/pyps/pyps.py", line 215, in run
    self._ids[msg.id] = item
AttributeError: 'Message' object has no attribute 'id'

<undefined:>
Traceback (most recent call last):
  File "main.py", line 20, in <module>
    psConn.start()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/process.py", line 120, in start
    assert self._popen is None, 'cannot start a process twice'
AttributeError: 'PSconnect' object has no attribute '_popen'

***Repl Closed***

ok so i did find a problem, i changed a constructor signature and things broke.  The EventListener needs to take a passwd arg and it will create its own Connection object.  I will be adding support for both so you can reuse Connection objects, but haven't had time to update it yet.
Try that change and let me know if its still busted

Yes thank you, this resolved the issue. One exception was my problem and fixed that. Now I am able to get the tool change events as needed.
I am not closing this as I am not sure if you want to tie it to the changes to take both arguments.

fixed with 85778bf7a2cbe162f42c30696d7b9cc8d869a6ad

Thank you sir!
I appreciate the time and hope this was helpful as well.


Extend support back to Ruby 2.2

I'd like to use vim-flavor 3.0.0 for the neovim-ruby test suite, but I can't because it requires ~> 2.5 , and neovim-ruby is supported/tested against Ruby versions back to 2.2 (the earliest currently-maintained ruby version). It looks like the vim-flavor test suite passes on 2.2.1, so I'm wondering if there's a particular reason not to support it? Thanks!

Support for older versions will be terminated soon than newer versions. That’s why I chose the newest version of Ruby as updating major version of vim-flavor.
And, according to https://www.ruby-lang.org/en/downloads/branches/, support for Ruby 2.2 is already terminated (or will be terminated soon).

Ok that's fine, just thought I'd ask :)


Questions on Jekyll and MathJax versions

Hi,
First of all thanks for the software!
I am considering switching from Hugo just because of this! Before proceeding, I would like to ask some questions:

Does your plugin work with the latest version of Jekyll?

It seems that you use the deprecated mathjax-node (which was a workaround for MathJax 2.x server-side rendering). Since MathJax 3.0, server-side rendering is natively supported (please see here for example). Do you plan to upgrade to MathJax 3?

Thank you very much in advance!

Thank you very much for your interest in this project!

Does your plugin work with the latest version of Jekyll?

Yes, jekyll-mathjax-csp is compatible with Jekyll 4.x (just confirmed with 4.1.1).

It seems that you use the deprecated mathjax-node (which was a workaround for MathJax 2.x server-side rendering). Since MathJax 3.0, server-side rendering is natively supported (please see here for example). Do you plan to upgrade to MathJax 3?

Thanks for making me aware of the native support for server-side rendering. I will see whether I can get it to work and would then release a new major version of jekyll-mathjax-csp.

I just tried out the tex2svg-page tool that is available at the link you provided and found it to be a suitable replacement for mathjax-node. I will need to make some architectural changes, but this may even end up simplifying the plugin setup.
I will keep you updated on my progress via this issue.

That's really awesome! Thank you for the great support! I look forward to hearing good news soon.

I switched to MathJax 3 on the switch_to_mathjax_3 branch.
If you are using Bundler, you can try out the new version by adding the following line to your Gemfile:
gem "jekyll-mathjax-csp", github: "FabianHenneke/jekyll-mathjax-csp", branch: "switch_to_mathjax_3"

and following the setup instructions of the README (apart from step 2).
Please let me know how that went for you.

@MaximeKjaer You might also be interested in this thread/change.

@FabianHenneke Thank you very much! Let me give it a try.

Hi @FabianHenneke,
I am not quite sure to understand the 4th step in your instructions:

Add the {% mathjax_csp_sources %} Liquid tag where you want the CSP 'sha256-...' hashes for

Thank you for notifying me of this, @FabianHenneke ! I just had a look at the implementation and tried it out, and the change on switch_to_mathjax_3 looks great. Overall, build time of my full site is down from ~80 seconds (when building to SVG) to ~26 seconds by switching to this -- that's amazing!
However, migrating broke all of my inline math, as the single_dollar option isn't supported on that branch right now. From a quick look at the MathJax docs, it looks like we could pass something like inlineMath: [['$', '$']] onto the Tex constructor if the option has been set. Likewise for the CommonHTML output, which I rely on (my use-case is that I have a lot of inline math, and having inline SVG breaks copy-pasting paragraphs).

@netw0rkf10w The 4th step basically describes a file that looks like this:
---
---
// Some code here
{% mathjax_csp_sources %}
// more code here

The --- lines are there just to make sure that Jekyll processes the {% mathjax_csp_sources %} tag as Liquid, and not as plain text (if I remember correctly, I haven't written any Jekyll code in a while!).
This step shouldn't be crucial to get math to render; you should only follow it if you want to add CSP to your site, but that shouldn't be needed when you're just building locally for now.
To get the math to render, perhaps make sure that you are using $$ as your math delimiter, like so:
$$a^2 + b^2 = c^2$$

If that still doesn't work, you can post a snippet of the code for the math you're rendering, and what HTML is being rendered on the site, and I can take a look to see if there's anything wrong :)

@MaximeKjaer That's very kind of you. Thanks a lot!
As a test, a few days ago I switched to the classical client-side MathJax to see if it worked, and it did. Today I switched back to jekyll-mathjax-csp in order to have more information to share with you, but surprisingly it's working this time. I really don't know what happened.

However, migrating broke all of my inline math, as the single_dollar option isn't supported on that branch right now. From a quick look at the MathJax docs, it looks like we could pass something like inlineMath: [['$', '$']] onto the Tex constructor if the option has been set. Likewise for the CommonHTML output, which I rely on (my use-case is that I have a lot of inline math, and having inline SVG breaks copy-pasting paragraphs).

I guess we can change this line in the code:
const tex = new TeX({packages: AllPackages});
to
const tex = new TeX({packages: AllPackages, inlineMath: [['$', '$'], ['\\(', '\\)']]});
I will give it a try to see if it works. Ideally it would be great to have an option to parse a custom MathJax configuration to jekyll-mathjax-csp.

const tex = new TeX({packages: AllPackages, inlineMath: [['$', '$'], ['\\(', '\\)']]});

This works like a charm! Now both double-dollars and single-dollars work for me. But is it normal that they have exactly the same behavior? I would expect the double-dollars to center the equation on a new line, as this is standard in TeX...

Everything is working fine on my side, except maybe a final issue:
Unnumbered equations produced by the equation* (or align*) environment are not displayed. For example, this equation
\begin{equation*} a + b = c \end{equation*}

is displayed as:

\begin{equation } a + b = c \end{equation }

(Everything between the two stars are italicized). @FabianHenneke @MaximeKjaer Would you have an idea of how to fix this please?

I'm somewhat busy right now and won't be able to look into this right now.
Maxime is right in that step 4 of the setup instructions only matters if you care about Content Security Policies. If you have to google that, you most likely don't, so don't worry about that.
@MaximeKjaer @netw0rkf10w If either you figures out how to fix this and sends a PR to the switch_to_mathjax_3 branch, I'll review it. Otherwise I will see whether I can take a look on the weekend.

@netw0rkf10w Seems like kramdown is parsing the asterisks as start and end of Markdown italics. I think this stems from the fact that this plugin runs after kramdown parsing; I often have a similar problem in inline math with underscores. You can try to escape the asterisks, like so: \* (see the emphasis section of the kramdown docs).

@MaximeKjaer Thanks. I'll use \* as a workaround.
Thanks also for the PR! I don't know why you obtained blurry output, but it looks perfect on my side...

Saw a 50% reduction in regeneration speed from ~12 seconds to ~6sec after switching to the switch_to_mathjax_3.
:partying_face:

For now, I have implemented batch mode on top of MathJax 3 only https://github.com/fmeum/jekyll-mathjax-csp/pull/10
I think we should be able to backport this to master as well.

@satyanash Thanks for the contribution! I'm not using this plugin myself anymore, but I will review your PR and publish a new major version based on the switch_to_mathjax_3 branch.

@satyanash @MaximeKjaer @netw0rkf10w I have rebased and merged switch_to_mathjax_3 into master. Could you verify that master works for you? I won't be able to test it myself, but once you confirm it works, I will publish a new gem version.

I just released version 2.0.0.


v-marker fadeout

Description

Live Demo

http://jsfiddle.net/Boumi/k04zpLx9/
Steps to Reproduce
Expected Results

Actual Results

Browsers Affected

[ ] Chrome
[ ] Firefox
[ ] Edge
[ ] Safari 9
[ ] Safari 8
[ ] IE 11

Versions

Leaflet: vX.X.X
Vue: vX.X.X
Vue2Leaflet: vX.X.X

@GopherJ Hi, I don't understand the issue, it's not explained.
The code pen works for me, can you please explain what is your problem / question   by editing the issue description ?

Sorry for no description, I need a fadeout effect but with Vue2Leaflet I dont know how to implement it cause it remove directly the marker.
Could you help me ?

@GopherJ Sure, the general idea is:
have a function that

progressively lower the opacity of the marker
when the animation is done (you can hardcode the time I think ) remove the marker as per usual

You could achieve this by putting a ref on the marker and doing something like this:
<template>
....
<l-marker v-if="visible" ref="myFadeMaker" ... />
</template>
<script>
...
methods: {
    fadeAndRemove (opacity) {
        if(opacity > 0) {
            opacity -=1;
            this.$refs.myFadeMaker.mapObject.setOpacity(opacity);
            setTimeout( () => {
                this.fadeAndRemove(opacity);
            })
        } else {
            this.visible = false;
        }
    }
}
....
</script>

This is a very rough snippet but I hope it will point you to the correct direction

Thank you for this solution ! It seems works.


iOS9 not resolving address from iOS10

I tried out the iOS10 beta recently and noticed that HHServices no longer resolves bluetooth addresses on the iOS9 side. I drilled down and it looks like DNSServiceGetAddrInfo never calls the callback after beginning to resolve an address from getNextAddressInfo. I haven't tried it with two iOS10 devices yet, but I have a hunch it will work fine.
I noticed almost the same exact issue when iOS8 came out, were it would only work with other iOS8 versions. With iOS9 it again worked with every version other than 8.
Any ideas how to solve this would be great. Pretty worried this is an iOS issue and I won't be able to do anything about it, and using the iOS Multipeer framework is just too slow for my needs.

I haven't tried HHServices with iOS10 beta yet, but I'm going to try and do that soon. In the mean time, please have a look at the develop branch and see if that works better (it includes some general improvements as well as a few minor bug fixes).

Thanks Tobias, I haven't looked at the develop branch yet, I'll give that a try.
I spent some more time looking into the issue and now I'm pretty certain it has to do with iOS enforcing iPv6 addresses for bluetooth. I'm not able to resolve any iOS10 device over bluetooth using HHServices. I tried passing kDNSServiceProtocol_IPv4 | kDNSServiceProtocol_IPv6 into DNSServiceGetAddrInfo in HHService.m to get back an IPv6 address, and resolution did actually return something. The problem was that I couldn't get a usable address out of it.
Hopefully that helps.

Hey Tobias,
I was able to fix the issue after adding IPv6 support to my local pull of the main branch!
I tried the develop branch and it also worked after one change:
Make sure to pass kDNSServiceProtocol_IPv4 | kDNSServiceProtocol_IPv6 into the protocol field of DNSServiceGetAddrInfo  in getNextAddressInfo of HHServices.m. Otherwise it won't resolve IPv6 addresses coming from iOS10 devices over Bluetooth.
It should be pretty easy to update the main branch to support IPv6 and close this issue. The develop branch was giving me some latency I wasn't experiencing on the main so I'll stick with that one for now.
Thanks!

Hey,
Yeah, I noticed that was missing as well just the other day :) Have added
it locally, will push that change momentarily.
What kind of latency did you experience, and in what operation?
Thanks,
Tobias
On 25 August 2016 at 00:36, sgosztyla<EMAIL_ADDRESS>wrote:

Hey Tobias,
I was able to fix the issue after adding IPv6 support to my local pull of
the main branch!
I tried the develop branch and it also worked after one change:
Make sure to pass kDNSServiceProtocol_IPv4 | kDNSServiceProtocol_IPv6 into
the protocol field of DNSServiceGetAddrInfo in getNextAddressInfo of
HHServices.m. Otherwise it won't resolve IPv6 addresses coming from iOS10
devices over Bluetooth.
It should be pretty easy to update the main branch to support IPv6 and
close this issue. The develop branch was giving me some latency I wasn't
experiencing on the main so I'll stick with that one for now.
Thanks!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tolo/HHServices/issues/17#issuecomment-242230072, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABK_OSSGmnhjgGZ5reEpKyIyf_Qqesgyks5qjMeJgaJpZM4JXi3X
.

Hey help! All of my apps on the app store are gonna be broken, I think because of this exact issue -- the symptom is that iOS 10 won't connect to iOS 9. @sgosztyla can you please please please share your fork of this repo with the fixes?!

@tolo, sorry for the delay, I didn't notice the response.
I went back and tested it with the latest develop branch and I'm not seeing any latency. It's possible I left debug logs on, or did something else to cause my slowdowns. Sorry for the false alarm.

@tolo ahh bless you, I was stuck for hours trying to get the updated pod to integrate. Gave up and went for a shower, got back, and you'd fixed it (4:28pm local time here). You are the best

Haha, thanks @xaphod ;)
No worries @sgosztyla - glad it works as expected. Also, the develop branch has now been merged into master, and HHServices is now available as a pod.


DeleteArtifactsNotInTemplate not supported

According to documentation DeleteArtifactsNotInTemplate  should be supported (we would like to have a clean workspace which only contains artifacts from the deployment) but it does not work, see below:
Unexpected input(s) 'DeleteArtifactsNotInTemplate', valid inputs are ['TargetWorkspaceName', 'TemplateFile', 'ParametersFile', 'OverrideArmParameters', 'Environment', 'resourceGroup', 'clientId', 'clientSecret', 'subscriptionId', 'tenantId', 'activeDirectoryEndpointUrl', 'resourceManagerEndpointUrl']
we use the github action as follows (the version is always required which is currently not described in your usage section):

name: 'Synapse workspace deployment'
uses<EMAIL_ADDRESS>with:
....
DeleteArtifactsNotInTemplate: true

Looks like the documentation on the market places is being referred from the master branch.
DeleteArtifactsNotInTemplate is currently not part of the v0.2 release. In order to unblock you can use the master branch.
Please Replace<EMAIL_ADDRESS>by Azure/Synapse-workspace-deployment@master


hangs when loading large list of URIs

now that playlists no longer work, i've attempted to rip from a large list of URIs. In total there are about 1500 entries. When I run the program I get:
Logging in... Logged in as [user]
and it just hangs there. Left it for an hour thinking it was just parsing the data, but nothing happened.
using the split command to break the file into several more that were 50 lines each appears to work perfectly. There is no delay between getting logged in and starting the process.
Any ideas?

Check if there is some of lines with non URI format between 1500,
I had about 10 ~ 12 lines of uncompleted 'grep script' error left over from 620 list, (from my script that http to uri failed line displayed).
i would look for uncompleted lines if that is too long, then grep the opposite.
does your ripper do cover-art?


Add executionContext/interrupt API command

Pull Request Description

Implement the executionContext/interrupt API command that forcibly stops the program execution.
Important Notes

Checklist
Please include the following checklist in your PR:

[x] The documentation has been updated if necessary.
[x] All code conforms to the
Scala,
Java,
and
Rust
style guides.
All code has been tested:

[x] Unit tests have been written where possible.
[x] If GUI codebase was changed: Enso GUI was tested when built using BOTH
./run ide build and ./run ide watch.

I haven't found the "forcibly stop program execution" implementation - I assume it already existed

@JaroslavTulach under the hood the logic calls ThreadManager.interruptThreads() method. I assume that this is the way to interrupt the program execution.


A very long cluster name give an error on submitting and is not handled properly

On giving a very long name , the submission gives a server error.

Isn't this the same issue as #350?

Confirmed. 350 was closed but it's still happening.

Yes, it looks like the PR did not include the duplicated issues.


Issues Understanding Methods (Form in Fieldsets with Next Button)

The form that I am trying to validate is contained in a series of fieldsets connected by next and previous buttons. Rather than hinge all of the validation on an ending submit button, I want to call the validator each time the next button is clicked, so that it checks everything currently on the page and only allows the user to proceed if everything is valid.
I understand from the documentation that the .validator('update') method can be used for a dynamic set of fields, which I assume my form qualifies as. However, I am struggling to understand and thus properly utilize the methods listed. Would it suffice just to call .validator('update') followed by .validator()? Would .validator('validate') be more relevant? Do any of these methods output a value such as a boolean that could be of use? Does Bootstrap Validator even work on anything other than a button of submit type?
Any help clarifying any of these issues would be greatly appreciated. Thank you.

Yes, you would need to use .validator('update'). You only need to call .validator()once to initialize the plugin..validator('validate') is used if you want to trigger a full form validation programmatically (instead of waiting for submit). All of these methods return the jQuery collection they are operating on. The plugin only validates automatically for submit buttons, but you can prevent the submit event and show the next page of the form if you don't want to submit to the server yet.
Closing the issue, but feel free to ask follow up questions.

So here's the dilemma I'm seeing: You recommend using .preventDefault() to allow a submit button to move to the next fieldset rather than submitting the form there and then. However, the documentation says .preventDefault() is used when the form is invalid, and recommends using .isDefaultPrevented() as a custom check. Can Bootstrap Validator allow your recommended change on the submit buttons while still being able to checking for form validity?

if the form is invalid, e.preventDefault() will have already been called. If it IS valid, you'll still need to call e.preventDefault() to stop the form from being submitted to the server.
something like...
$('form').on('submit', function (e) {
  if (!e.isDefaultPrevented() && formPage == LAST_PAGE) {
    e.preventDefault()
    showNextFormPage()
  }
})

Been playing around with it on this one example I found online, especially with adding the suggestions you made, and I'm having one main issue: e.isDefaultPrevented() always returns true, even if the current form is valid (i.e. no error messages).
The code particularly wraps the functions inside $(document).ready(function() {...});. I've tried commenting that out, and it results in the opposite problem, with e.isDefaultPrevented() always returning false even if the form is invalid.
I'm bringing this up because I'm trying to get a better sense of how to properly debug the validator on submit, if I even can. I'm also curious if you (or anyone else) have come across this sort of issue before.

Your submit handler needs to be bound after the plugin has been initialized. This is because jQuery fires event handlers in the order they were bound, so if you bind your submit handler before initializing the plugin it wouldn't yet have called e.preventDefault(). I'm not sure why e.isDefaultPrevented() is always returning true for you in the first case (might be something else preventing default).
In the future there will be a more reliable way to determine if the form is invalid, probably using the built-in formElement.checkValidity() method (see https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement). This will come with #450.


Managing duplicate requests

As an intake analyst
I want to be able to identify and delete a duplicate request
so that an applicant's request doesn't get unintentionally actioned more than once

Assumptions & Scope
What are the assumptions for this story?
What is IN scope?
What is NOT in scope?

Dependencies? What is the impact of this dependency? (If so, link dependency in the ticket, make it visible in a team´s backlog)
Validation Rules? (If yes, list here)
Design
@xxx - please link the Design here
Definition of Ready

[ ] Is there a well articulated User Story?
[ ] Is there Acceptance Criteria that covers all scenarios (happy/sad paths)?
[ ] If there is a user interface, is there a design?
[ ] Does the user story need user research/validation?
[ ] Does this User Story needs stakeholder approval?
[ ] Design / Solution accepted by Product Owner
[ ] Is this user story small enough to be completed in a Sprint? Should it be split?
[ ] Are the dependencies known/ understood? (technical, business, regulatory/policy)
[ ] Has the story been estimated?

Definition of Done

[ ] Passes developer unit tests
[ ] Passes peer code review
[ ] If there's a user interface, passes UX assurance
[ ] Passes QA of Acceptance Criteria with verification in Dev and Test
[ ] Confirm Test cases built and succeeding
[ ] No regression test failures
[ ] Test coverage acceptable by Product Owner
[ ] Ticket ready to be merged to master or story branch
[ ] Developer to list Config changes/ Update documents and designs
[ ] Can be demoed in Sprint Review
[ ] Tagged as part of a Release
[ ] Feature flagged if required
[ ] Change Management activities done?

low priority - there are other ways to acheive this result

@divyav-aot, can this be covered by closing the request without the duplicate being captured in the reporting?


how to use custom icon for the tabs instead of ion-icon

Just place the icon inside the <super-tab-button> tag. You might need to apply some custom CSS to get it looking right as the module was designed with <ion-icon>.

ok thnx will try it.


SW-3992 Add API endpoints for sub-locations

In preparation for adding sub-locations to nursery facilities, add a new set of
endpoints similar to the ones under /api/v1/seedbank/storageLocations. There's
no new functionality here, just a different API that isn't specific to seed banks.
In keeping with our current API structure conventions, the PUT and POST endpoints
expect facility IDs in URL paths instead of in request payloads.
The response payloads have a field for the number of active batches. This will be
populated in a later code change but is there from the start so as to reduce API
churn.

Current dependencies on/for this PR:

main

PR #1410

PR #1411

PR #1412

PR #1413   👈

PR #1414

This comment was auto-generated by Graphite.

Current dependencies on/for this PR:

main

PR #1410

PR #1411

PR #1412

PR #1413   👈

PR #1414

This comment was auto-generated by Graphite.

Merge activity

Oct 23, 12:35 PM: @sgrimm started a stack merge that includes this pull request via Graphite.


[feat]: [CDS-92268]: Added Support For GitX For CRUD+Import Infrastructures.

Describe your changes:

Added Support for creating/updating/Importing remote Infrastructures via terraform.

Testing:

Validated creation of Infras in different scopes without GitX params.
Created Remote Infrastructures in different Scopes.
Imported Remote Infrastructures in different Scopes.
Added Functional UTs.

Creation of Remote Infrastructure:

Creation of Inline Infrastructures:

Comment Triggers

PR Check triggers

Build: trigger build
Sub Category Field Check: trigger subcategoryfieldcheck
gitleaks: trigger gitleaks

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

trigger build


Fix lots of spelling errors throughout yarn

I ran yarn through a spellchecker.
Note that this doesn't fix anything in the realms package, as some of those spelling errors are due to odd Mojang conventions that should really be left to another PR to fix.

Also 69 files. Nice.

Another reason not to do realmsclient yet :D


sqlite-utils: 3.4.1 -> 3.5

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/simonw/sqlite-utils/releases.
meta.description for sqlite-utils is: "Python CLI utility and library for manipulating SQLite databases"
meta.homepage for sqlite-utils is: "https://github.com/simonw/sqlite-utils"
meta.changelog for sqlite-utils is: ""
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 3.5 with grep in /nix/store/2z7rj8avrnvf4fyi3facirl23dkv8b0s-python3.8-sqlite-utils-3.5

directory tree listing: https://gist.github.com/3891fe915128a421daa0e1b0654c1533

du listing: https://gist.github.com/60a01401821632502d78193001a88fcf

Rebuild report (if merged into master) (click to expand)

16 total rebuild path(s)

4 package rebuild(s)

4 x86_64-linux rebuild(s)
4 i686-linux rebuild(s)
4 x86_64-darwin rebuild(s)
4 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
python37Packages.sqlite-utils
python38Packages.sqlite-utils
python39Packages.sqlite-utils
sqlite-utils

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/2z7rj8avrnvf4fyi3facirl23dkv8b0s-python3.8-sqlite-utils-3.5 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A sqlite-utils https://github.com/r-ryantm/nixpkgs/archive/5308b4a927a78cccac2910f9f13e9f6e6467545e.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/2z7rj8avrnvf4fyi3facirl23dkv8b0s-python3.8-sqlite-utils-3.5
ls -la /nix/store/2z7rj8avrnvf4fyi3facirl23dkv8b0s-python3.8-sqlite-utils-3.5/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

3 packages built:

python37Packages.sqlite-utils
sqlite-utils (python38Packages.sqlite-utils)
python39Packages.sqlite-utils

Maintainer pings
cc @meatcar for testing.

Result of nixpkgs-review pr 113611 at 5308b4a9 run on aarch64-linux 1

3 packages built:

python37Packages.sqlite-utils
sqlite-utils (python38Packages.sqlite-utils)
python39Packages.sqlite-utils

1 suggestion:

warning: unused-argument
Unused argument: sqlite.
Near pkgs/development/python-modules/sqlite-utils/default.nix:13:3:
   |
13 | , sqlite
   |   ^


Rewriting to the same pattern differs in result

The following pattern
engine marzano(0.1)
language python

`def $method($args): $body` => `def $method($args): $body`

Should return the exact same thing, but that is not the case as you can see in the following example. https://app.grit.io/studio?key=m44jIoo2l3JuT1lcAXkEm

The example got wiped out, but this is likely a case of our whitespace manager not handling it correctly. We'll likely need to add a special rule of to restore the newline even though we didn't match on it.
Here's another example: https://app.grit.io/studio?key=I3RFrP0kLTyyenhAGihmq

Unfortunately I don't think this is a feasible thing to fix.
To get the desired behavior you'll have to insert the newline, and indent the desired amount in the snippet. Padding is implemented this way as the correct amount to pad is a function of the rewrite, not the source. For example
engine marzano(0.1)
language python

`def $method($args):
    while true:
        $body` => `def $method($args): $body`

should indent $body only once corresponding to the single function scope, but if we tried to calculate based on the source, we would indent for two scopes, first the function, and then the loop.
So in your example I would recommend:
engine marzano(0.1)
language python

`def $method($args): $body` => `def $method($args):
    $body`

I think we could implement this as a post-linearization "healing" stage. I'll do a quick PoC.

I did an attempt here (https://github.com/getgrit/gritql/pull/194) but there's no obvious place to do this well.
For now I think stick to making output snippets valid-ish Python.


Gmail desktop Email Display the grid very bad

I simply copied the html generated in the jmlm render the Sendy platform. And it does not work in Gmail.
i´m using Chrome Version 50.0.2661.94 m, I try with other computers and ips...

Delivered-To<EMAIL_ADDRESS>Received: by <IP_ADDRESS> with SMTP id v186csp149082wma;
Wed, 11 May 2016 03:41:37 -0700 (PDT)
X-Received: by <IP_ADDRESS> with SMTP id f4mr21926464wma.70.1462963297062;
Wed, 11 May 2016 03:41:37 -0700 (PDT)
Return-Path<EMAIL_ADDRESS>Received: from a3-6.smtp-out.eu-west-1.amazonses.com (a3-6.smtp-out.eu-west-1.amazonses.com. [<IP_ADDRESS>])
by mx.google.com with ESMTPS id l8si8506427wjv.161.2<IP_ADDRESS>.41.36
for<EMAIL_ADDRESS>(version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
Wed, 11 May 2016 03:41:36 -0700 (PDT)
Received-SPF: pass (google.com: domain of<EMAIL_ADDRESS>designates <IP_ADDRESS> as permitted sender) client-ip=<IP_ADDRESS>;
Authentication-Results: mx.google.com;
dkim=pass<EMAIL_ADDRESS>spf=pass (google.com: domain of<EMAIL_ADDRESS>designates <IP_ADDRESS> as permitted sender<EMAIL_ADDRESS>DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple;
s=ihchhvubuqgjsxyuhssfvqohv7z3u4hn; d=amazonses.com; t=1462963296;
h=Date:To:From:Reply-to:Subject:Message-ID:MIME-Version:Content-Type:Feedback-ID;
bh=39IhcJmwyYZobCZDFfMzXyXIhmEbHqqWNGiUdrVzTrU=;
b=OpxcA6XyP8tVR7sfe869mZuODVJpC9VsKu7f6P1I7AAu2FAzhH5PG7BIWWWrpYr9
hPXgMrXJoJKXTwqcHA8m2Bk0rxe+3ieejkAMkK3PWyfAAc/8s152ArGBzXoY6rviUY2
D/9IeQO6cP5fMN0q+dupopDotNNE3Iu2ZPVhfESM=
Date: Wed, 11 May 2016 10:41:36 +0000
To<EMAIL_ADDRESS>From: "Fotolienzo.com"<EMAIL_ADDRESS>Reply-to: "Fotolienzo.com"<EMAIL_ADDRESS>Subject: Template: TEMPLATE-WITH-ALL
Message-ID<EMAIL_ADDRESS>X-Priority: 3
X-Mailer: PHPMailer 5.1 (phpmailer.sourceforge.net)
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="b1_d2a2e0bbededa147a066f12f6bd7b8fd"
X-SES-Outgoing: 2016.05.11-<IP_ADDRESS>
Feedback-ID: 1.eu-west-1.e1/ebRB2+lpU+ulKQoR2ymFEpsvJ4zfTYV4HHMbcJPU=:AmazonSES
--b1_d2a2e0bbededa147a066f12f6bd7b8fd
Content-Type: text/plain; charset = "UTF-8"
Content-Transfer-Encoding: 8bit
Entrega en 4/5 días laborables

Hello @funnyfrontend , you can see this --> https://github.com/mjmlio/mjml/issues/24 <-- thread for more information on this issue. Don't know when / if there will be a fix for this ...

Hello !
As @erochersimplicite said, this is a bug with Google apps Gmail see #24 , I'm closing this one !


"A new guard page for the stack cannot be created"-ERROR

For context I was sent this world that was working fine with all the mods before. But after I updated it recently I cannot take anything out of the storage system, I can still use the crafting menu, but the storage is just bricked

.

Could you send me the world?


Remove subscriptionID from subscriptionclient init

it expects a userAgent as the second  param, and for that reason it throws the following error:
TypeError: Cannot create property 'userAgent' on string '<ID>'

We can omit this in the example.

Thanks for the PR @SvanBoxel
Looks like #7740 that was a created & merged a few days later fixes the sample in the readme.
So, we will be closing this PR.


pip install fails

I'm struggling to get this installed. It is erroring out when installing the netlib package. Any ideas?
pip install --src . -r requirements.txt

Command /usr/bin/python -c "import setuptools, tokenize;
__file__='/Users/alexolivier/repos/mitmproxy/netlib/setup.py'; exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps failed with error code 1 in /Users/alexolivier/repos/mitmproxy/netlib

Python 2.7.5
Darwin Alex-Oliviers-MacBook-Pro.local 13.4.0 Darwin Kernel Version 13.4.0: Sun Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64

mhils, hi Max,
I am also having an issue trying to install beets. on centos 7.
Although what I am experiencing is compile error with gcc.
Please help.
Thank you,
Ed
Error output is below and versions, let me know if you need more pleasel
$ pip --version
pip 7.1.2 from /usr/lib/python2.7/site-packages (python 2.7)
$ sudo pip install beets
Collecting beets
Requirement already satisfied (use --upgrade to upgrade): munkres in /usr/lib/python2.7/site-packages (from beets)
Requirement already satisfied (use --upgrade to upgrade): unidecode in /usr/lib64/python2.7/site-packages (from beets)
Requirement already satisfied (use --upgrade to upgrade): jellyfish in /usr/lib/python2.7/site-packages (from beets)
Requirement already satisfied (use --upgrade to upgrade): musicbrainzngs>=0.4 in /usr/lib/python2.7/site-packages (from beets)
Requirement already satisfied (use --upgrade to upgrade): mutagen>=1.27 in /usr/lib/python2.7/site-packages (from beets)
Requirement already satisfied (use --upgrade to upgrade): enum34>=1.0.4 in /usr/lib/python2.7/site-packages (from beets)
Collecting pyyaml (from beets)
Using cached PyYAML-3.11.tar.gz
Building wheels for collected packages: pyyaml
Running setup.py bdist_wheel for pyyaml
Complete output from command /usr/bin/python -c "import setuptools;file='/tmp/pip-build-99nnKA/pyyaml/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" bdist_wheel -d /tmp/tmpG5Znlbpip-wheel-:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/cyaml.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/serializer.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/scanner.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/loader.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/emitter.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/events.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/composer.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/resolver.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/nodes.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/init.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/parser.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/reader.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/dumper.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/tokens.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/error.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/constructor.py -> build/lib.linux-x86_64-2.7/yaml
copying lib/yaml/representer.py -> build/lib.linux-x86_64-2.7/yaml
running build_ext
creating build/temp.linux-x86_64-2.7
checking if libyaml is compilable
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/check_libyaml.c -o build/temp.linux-x86_64-2.7/check_libyaml.o
checking if libyaml is linkable
gcc -pthread build/temp.linux-x86_64-2.7/check_libyaml.o -L/usr/lib64 -lyaml -o build/temp.linux-x86_64-2.7/check_libyaml
building '_yaml' extension
creating build/temp.linux-x86_64-2.7/ext
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c ext/_yaml.c -o build/temp.linux-x86_64-2.7/ext/_yaml.o
ext/_yaml.c:8:22: fatal error: pyconfig.h: No such file or directory
#include "pyconfig.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1

Failed building wheel for pyyaml
Failed to build pyyaml
Installing collected packages: pyyaml, beets
Running setup.py install for pyyaml
Complete output from command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip-build-99nnKA/pyyaml/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-1m3taG-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
running build_ext
building '_yaml' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c ext/_yaml.c -o build/temp.linux-x86_64-2.7/ext/_yaml.o
ext/_yaml.c:8:22: fatal error: pyconfig.h: No such file or directory
#include "pyconfig.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------

Command "/usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip-build-99nnKA/pyyaml/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-1m3taG-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-99nnKA/pyyaml

Hey guys,
I figured out the issue, it seems I was missing python-devel, after installing I ran "pip install beets" and all seems to be well now.  Thank you
$ sudo yum install python-devel.x86_64
$ sudo pip install beets
Collecting beets
/usr/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Requirement already satisfied (use --upgrade to upgrade): munkres in /usr/lib/python2.7/site-packages (from beets)
Requirement already satisfied (use --upgrade to upgrade): unidecode in /usr/lib64/python2.7/site-packages (from beets)
Requirement already satisfied (use --upgrade to upgrade): jellyfish in /usr/lib/python2.7/site-packages (from beets)
Requirement already satisfied (use --upgrade to upgrade): musicbrainzngs>=0.4 in /usr/lib/python2.7/site-packages (from beets)
Requirement already satisfied (use --upgrade to upgrade): mutagen>=1.27 in /usr/lib/python2.7/site-packages (from beets)
Requirement already satisfied (use --upgrade to upgrade): enum34>=1.0.4 in /usr/lib/python2.7/site-packages (from beets)
Collecting pyyaml (from beets)
Using cached PyYAML-3.11.tar.gz
Building wheels for collected packages: pyyaml
Running setup.py bdist_wheel for pyyaml
Stored in directory: /root/.cache/pip/wheels/fa/db/f6/dee55793d344f1706dc4a5a693298f0115241d1085cc212364
Successfully built pyyaml
Installing collected packages: pyyaml, beets
Successfully installed beets-1.3.15 pyyaml-3.1
-END-

Hi Guys,
I had a very similar problem and during my hunt stumbled on this Issue which led me to find a solution.
It was indeed in my case caused by an outdated pip, but upgrading PIP didn't itself fix the issue however it did result in a more descriptive error message which did allow me to eventually solve the problem.
Writing here in case someone finds this issue from Google. Try upgrading PIP and re-running command:
sudo pip install --upgrade pip

Upgrading pip didn't help.
Please see the installation logs:
  Found existing installation: pip 9.0.1
    Uninstalling pip-9.0.1:
      Successfully uninstalled pip-9.0.1
Successfully installed pip-19.0.3
Removing intermediate container bbfa83284a1e
 ---> 59aa3ee46549
Step 12/13 : RUN pip install -r requirements.txt
 ---> Running in 59246eec192c
..........................................

running build_ext
    building 'regex._regex' extension
    creating build/temp.linux-x86_64-2.7
    creating build/temp.linux-x86_64-2.7/regex_2
    gcc -fno-strict-aliasing -Os -fomit-frame-pointer -g -DNDEBUG -Os -fomit-frame-pointer -g -fPIC -I/usr/include/python2.7 -c regex_2/_regex.c -o build/temp.linux-x86_64-2.7/regex_2/_regex.o
    unable to execute 'gcc': No such file or directory
    error: command 'gcc' failed with exit status 1

    --- --- ----     --- --- ----     --- --- ----
    --- --- ----     --- --- ----     --- --- ----
    --- --- ----     --- --- ----     --- --- ----
Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-gZsBJj/regex/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-hJuDe3/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-gZsBJj/regex/
ERROR: Service 'api' failed to build: The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1


Add InfluxQL and V1 query API

What
Add support for InfluxQL and /query API

I estimate this will take 3-4 weeks, to bring all the InfluxQL code and re-connect the DB/RP mapping service.

This support landed with 8a7dcc21fb482deb1ea7f873278e6850545f617f

Wait, estimated at 3-4 weeks 3 days ago, landed and closed 15 hours ago? ;)

I was mostly concerned that the abstractions for mapping and interfacing with storage would required heavy refactoring. It turns out our abstractions were just right ;-)


Please allow enforcement of layout type for all directories.

Describe the solution
Currently the application makes an assumption based on file type the layout used.  Please allow a default/enforced layout type to be chosen for everything. (Ie "Detailed")

You can already set a fixed a layout mode for all folders: Files Settings > Files and Folders > Turn off "enable individual preferences for individual folders".


Importing pycdf from spacepy correctly using Google Colab

I am currently working on google colab and I would like to import pycdf from spacepy.
I have installed pycdf using pip install spacepy, following that I have set the CDF_LIB environmental variable to /usr/local/lib using the following.
os.environ["CDF_LIB"] = '/usr/local/lib'

However when using from spacepy import pycdf I get the following
Exception                                 Traceback (most recent call last)

[<ipython-input-95-81b0252608c2>](https://localhost:8080/#) in <module>
      2 import numpy as np
      3 import matplotlib.pyplot as plt
----> 4 from spacepy import pycdf

[/usr/local/lib/python3.7/dist-packages/spacepy/pycdf/__init__.py](https://localhost:8080/#) in <module>
   1301     raise Exception(('Cannot load CDF C library; checked {0}. '
   1302                      'Try \'os.environ["CDF_LIB"] = library_directory\' '
-> 1303                      'before import.').format(', '.join(_libpath)))
   1304 from . import const
   1305 lib = Library(_libpath, _library)

Exception: Cannot load CDF C library; checked . Try 'os.environ["CDF_LIB"] = library_directory' before import.

Am I doing something wrong? Thank you
OS, Python version, and dependency version information:
Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
sys.version_info(major=3, minor=7, micro=14, releaselevel='final', serial=0)
numpy=1.21.6
scipy=1.7.3
matplotlib=3.2.2

Version of SpacePy

I asked the question in the wrong repo. Apologies


UAS Geozone Metadata fields should be optional

(open consultation #29) Amend the schema to have all metadata fields for UAS Geozone as optional

This is in contradiction with #15, which says that " provider" should be required.
I think that we should give priority to this issue (#18) and overrule issue #15, which was only a comment on the discrepancy between the UML model and JSON schema.

removed required properties from metadata


Issue: Memory leak in ConstantExpressionHelper.cs

I believe I've discovered a memory leak in the parsing of literal values (numerics at least) in expressions.  I have a server that runs 24/7 and receives workunits.  The workunits contain expressions that are compiled when received.  I noticed a memory leak and used JetBrains dotMemory to investigate.  It indicated that there was a ConcurrentDictionary that was slowly accumulating objects.  My app does not use ConcurrentDictionary.  I subsequently narrowed this down to ConstantExpressionHelper.  After 30 minutes of execution the ConcurrentDictionary contained 89K nodes.
Below is an app that will reproduce this problem.  Because it is stripped down to the bare minimum required to reproduce the problem and is multithreaded you can watch the Visual Studio memory monitor for 30 seconds and you will see it slowly creeping up.  This app starts out for me at about 32MB of memory and after 2 minutes it is at 84MB.
This app is currently using an expression consisting of a single number (simplest possible repro), but I found this with a much more complex numeric expression involving about 6 calls to Math.X operations and some floating point literals.
using System;
using System.Linq.Dynamic.Core;
using System.Linq.Expressions;
using System.Threading;

namespace Utility.SoakTest
{
	class Program
	{
		static void Main(string[] asArgs)
		{
			RunThreads(8, RawMemoryLeak);
		}

		private static void RunThreads(int nThreads, Action actThreadStart)
		{
			for (int i = 0; i < nThreads; i++)
			{
				Thread thread = new Thread(new ThreadStart(actThreadStart));
				thread.Start();
			}

			while (true)
			{
				Thread.Sleep(5000);
			}
		}

		private static void RawMemoryLeak()
		{
			while (true)
			{
				string sExpr = "1234567890";
				LambdaExpression expr = DynamicExpressionParser.ParseLambda(new ParameterExpression[0], typeof(double), sExpr);
			}
		}
	}
}

Thank you for analyzing this issue. I was able to reproduce and find the leaky code.
I've created a new PR which includes this fix:
https://github.com/StefH/System.Linq.Dynamic.Core/pull/168
If you like you can review the code and use this source code branch for testing. Else I can also create a NuGet for you to test your scenario.

Stef, the code update looks good.  I am currently on Visual Studio 2015 and am not in a position to upgrade so I can't build the library.  This fix looks very simple so I have high confidence in it and I am happy to wait for an official build.  However, if you would like me to try an early build in my environment to confirm, I would be happy to accept a nuget.

I'll create a new NuGet.

Stef, I want to let you know that I downloaded and rebuilt with <IP_ADDRESS> which contains the ConstantExpressionHelper fix.  After almost 24 hours, I could not detect a memory leak by looking at Task Manager.  However, I ran the process in dotMemory and the data there seem to indicate that there is still a leak in this area.  Things are improved by about an order of magnitude.  The test case I submitted previously works without leaks and I have not been able to tweak it to induce this remaining problem.  I will continue to try and create a reproducible case and report back as soon as I have something useful.

Ok, thanks a lot for finding this issue.


Set up top-level directories

@mparke I'll let you close this one if you're taking it instead

Closing this until fixed in https://github.com/linode/manager/issues/1671


multiplex-tissue-imaging-TMA Tutorial

Added tutorial under imaging topic: End-to-End Tissue Microarray Analysis with Galaxy-MTI
Added Cameron Watson to contributors yaml file
Added https://cancer.usegalaxy.org/ to galaxy instances yaml file

Overall this looks great, can't wait to try it out! :)

@CameronFRWatson this needs a rebase. Can we help in any way to address Helena's comments?

@bgruening Thank you for checking in and offering help. At the moment, we are working on a few tool changes that will impact this tutorial so we are waiting on those before proceeding with this. We will certainly address Helena's much appreciated reviews when we get there, but in the meantime perhaps I should convert this PR to a draft?

@CameronFRWatson yes, converting to draft is fine for now then! Looking forward to it :)

Thanks @hexylena and @bgruening for the feedback and help! We have recently rebased and worked to address the comments and suggestions. This draft is now ready for review.

Very cool work @CameronFRWatson and @alliecreason!


Cannot find "/index.js" in<EMAIL_ADDRESS>

https://unpkg.com/docute-evanyou is broken.

there's no index.js, unpkg.com somehow didn't recognize main field which is pointed to dist/evanyou.js

Uh... Using<EMAIL_ADDRESS>instead


Hard coding "eth0" causes an issue when using podman

Hi,
As mentioned in #87, when the container is run via podman, the network device is tun0 rather than the hard coded eth0.
Perhaps adding smarts to entry.sh to determine the tap.  Below is an example that I added to my local copy of entry.sh - see TAP=...  For context, I am providing some lines surrounding where I believe it should go.
I also globally ^eth0^$TAP^
default_gateway=$(ip -4 route | grep 'default via' | awk '{print $3}')

TAP=$(ip --brief a | grep -v '^lo' | awk '{ print $1}')
case "$KILL_SWITCH" in

As pointed out elsewhere, the optimal solution is to accept --env TAP environment variable that can override eth0.
In place of eth0, one can use ${TAP:=eth0}, will resolves to eth0 if TAP is not set.

I'm not too familiar with the subtle differences between Podman and Docker. I assume this is rootless Podman? I'd like to play with it myself.

I'm late to the entire container game.  :) ... better late than never.
I started learning about podman last week.  As they say, it's a (near) drop-in replacement for docker.  I do like that it's rootless.
Below is a raw shell script that I'm using during test.  You can see the similarities with docker.  It'll be dead-easy for you.
My plan is to eventually get a PR  for an .md with podman differences.  We can talk about how you'd prefer to see that:  add to the existing README.md or create a separate podman area.

I don't know if this was because of debian 11 defaults to using enp2s0 style device handles, or because my hardware happened to have 2 network ports, enp3s0 is the second one. But yes using hardcoded eth0 seems risky for many systems.
It was very confusing because the first error message is about ghcr.io  "networking not available" which makes you think it never even pulled the image.
But it did pull image, and since I was using the "subnets" i was still able to ssh into the unit for further troubleshooting.
At first I assumed the logical thing to do was install this and test exactly how it acts with no vpn credentials : and I thought the killswitch would only affect anything using the docker networking. This is not the case, the killswitch is in the HOST operating system so it also affects everything outside docker networking too.
The only reason I even suspected this was the killswitch was because i could still ping the indicated "subnet" but not <IP_ADDRESS>.
I could find no entries in nftables nor iptables.
Eventually i saw that "ip route" showed no default.
I could see from another on the same network what this gateway ip was and the fix is
"ip route add default via <IP_ADDRESS>" on my debian 11 system
I will investigate further if the "eth0" is the only problem going on here for this type of system

Here's the output when it is not remapped.  As I'm using podman, notice the failure.
...
--- Container interfaces ---
lo               UNKNOWN        <IP_ADDRESS>/8 ::1/128
tap0             UNKNOWN        <IP_ADDRESS>/24 fd00::e4ee:1ff:fe36:e322/64 fe80::e4ee:1ff:fe36:e322/64

Script 'eth0' not remapped.

If the container is failing to start and 'eth0' is not listed above,
remap 'eth0' in the script to the above value (not 'lo')

For example, if the non-'lo' interface is 'tap0', remap
'eth0' to 'tap0' by using the '--env' switch:

   --env TAP=tap0

---
HTTP proxy: enabled
SOCKS proxy: enabled
Listening on: <IP_ADDRESS>
---
info: original configuration file: vpn/XXXX.ovpn
info: modified configuration file: /tmp/openvpn.qBrQZq7F.conf
info: kill switch is using iptables
-----
Cannot find device "eth0"


Encapsulate ILEmitter in ArrayMethodILEmitter

Having the methods inherited from ILEmitter in the public surface area
doesn't make much sense.
Switching to the same pattern we have in PInvoke emitter (struct with a
single public static EmitIL method).

Hi @MichalStrehovsky, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.
TTYL, DNFBOT;

LGTM


Fix AWS profiles broken link

The link to the AWS Profiles "cli configure files format" page has an invalid redirect on the Amazon side. It improperly encodes the hash character in the URL when attempting to link the user to the "#cli-configure-files-format" section. I've updated the link to have the correctly (un)encoded hash instead of having Amazon break the link. This is technically a bug on the Amazon side.

Good catch1


@nms needs to learn Rust :)

@twisted-pear

sigh... i know... one day, promise

Started by PR #44


Solus is missing

Hello Team
I'm a Solus user who just discovered this amazing app today, well i managed to make it work on Solus but few stuffs are lacking such as the proper distro logo + package manager
Possible to have Solus added  into the list so i can submit request for fastfetch to be added to Solus repos?

I have added package manager support for Solus based the implementation of neofetch (eopkg I suppose). Please test it

Closing as stale. Please open a new issue if something goes wrong.


Simplebar 3.1.0-beta.4 missing lodash.memoize dependency

I'm getting some errors when trying to import 'simplebar'; on the latest version (simplebar 3.1.0-beta.4).
Module not found: Error: Can't resolve 'lodash.memoize' in '.../node_modules/simplebar/dist'

Running npm install --save lodash.memoize fixes the problem for me. I believe  simplebar/packages/simplebar/package.json should have an explicit lodash.memoize dependency listed. I see there has been some commit activity regarding Yarn lately, so I apologize if this is a redundant issue report or if it turns out there is something wrong with my environment. Please let me know if you can't replicate.
Thanks!
Node version: 10.0.0
NPM version: 6.0.0
Webpack version: 4.6.0

Thanks very much for the report. I will update and do a release asap.