Add support for adding callback to add_event_handler in asyncio

I am currently using asyncio for event loop as it supports add_event_handler for handling UNIX Signals
I have a use-case where I want to call 2 or more software and hardware APIs, when the running process receives SIGINT and SIGTERM before the process can finally exit.
I noticed that part is already implemented and that is how the app closes cleanly every time.
asyncio - add_signal_handler
I think we can provide support to pass extra callbacks via the run and then pass it at nicely_exit
@meejah @om26er @oberstet If there is feasibility of adding this into the library then is there any other way the process can listen for UNIX Signals and run a callback?

FYI, I did try adding signal.signal(event, callback) before calling run([comp]) but it doesn't act on it. I realised it's possible probably if called within the nicely_exit

Did calling add_signal_hander before calling run() not work? signal.signal is probably too "low level", by-passing asyncio's own stuff.
In Twisted, there is an API to call your own hooks/functions when the reactor is shutting down .. see https://twistedmatrix.com/documents/current/api/twisted.internet.interfaces.IReactorCore.html#addSystemEventTrigger

This is news to me. So, let me try addSystemEventTrigger and get back.
So, initially I used Component from autobahn.twisted.component first, before moving onto asyncio, and directly used signal.signal a couple of statements before calling run([component]) and it didn't work. My best estimate was that the event loop is picking up and executing the callback tied up to that event and doesn't give a chance for the signal.signal callback to be executed.

If there is feasibility of adding this into the library then is there any other way the process can listen for UNIX Signals and run a callback?

just some quick notes:

Integration with posix signals is sth for the networking framework to provide, not Autobahn
for Twisted, this integration is available as meejah noted
I don't know whether there is similar stuff for asyncio and wether that is working robustly in practice (I am mostly using Twisted, and signals work there .. eg Crossbar.io is using it)

one more note rgd background: the root of these annoyances is - at least historically - lack of integration of signals and file descriptors in posix. eg in epoll in linux.
in the BSDs, eg FreeBSD kqueue has a cleaner design (again, historically at least). so signals can be waited upon just as everything else via a FD added to kqueue ..
anyways: signals are tricky to integrate within the networking framework. as is real async disk IO. blame Posix;)

There is something similar for asyncio actually just like meejah pointed out for twisted and autobahn-python is already using that for asyncio here
Thanks for pointing that out @oberstet.
How would you recommend handling the signals when using autobahn-python using Twisted on Client-side (in Linux at least)?
The idea is to perform some minor operations just before the process is about to terminate.

For example: When running Client-side apps using Autobahn-python on hardware like RPi, a change in the colour of LED or turning it on/off just before the process is about to terminate.

@uttaravadina I would go with the machinery built into Twisted, that is what meejah noted here
you can find example usage within crossbar eg here
https://github.com/crossbario/crossbar/blob/7a24af99fce6d057c63a9c7b144b0418ca627f4e/crossbar/node/main.py#L873
that will cover cases such as SIGINT
you cannot (to my knowledge) process SIGKILL within the killed program itself.
if you need to cover that as well, I'd start a monitoring main process and spawn your actual program using https://twistedmatrix.com/documents/current/core/howto/process.html, communicate (eg for logging) with your main monitor from the forked app via std pipes. you will then be able to process SIGKILL to the forked app within the monitor (as it receives the exit code from the forked app)
https://github.com/crossbario/crossbar/blob/master/crossbar/node/main.py#L616
if you need to process a power interrupt where all processes die simult., you need some persistency .. eg crossbar writes a "PID file" and will note when it restarts that it had been hard killed.

I will try this and get back to you.

If you want to do stuff when the process is shutting down, absolutely use Twisted's APIs -- these will run no matter how the process is shutting down (except probably via SIGKILL which applications can't handle, no matter the language/framework).
"In general", these frameworks (Twisted, etc) are built to deal with weird low-level stuff -- which signals definitely qualify as -- so using their APIs are usually the best approach. As a bonus, they also will typically work on all supported platforms (so you don't have to figure out how OS X handles signals versus Linux versus windows etc etc).


Bug: Attempting to removed failed "Archive again" result relating to a pre 0.8.3 snapshot results in Archivebox attempting to delete EVERY entry in the database?!

Describe the bug
Following up to: #1509
It seems ArchiveBox did eventually generate the "Archive again" entries for pre-0.8.3 snapshots, however it didn't archive them properly. When attempting to delete these, the following happened:

The server.py/daphne was killed?

daphne.server Application instance <Task pending name='Task-311' coro=<ProtocolTypeRouter.__call__() running at /usr/local/lib/python3.11/site-packages/channels/routing.py:62> wait_for=<Task
 cancelling name='Task-314' coro=<ASGIHandler.handle.<locals>.process_request() running at /usr/local/lib/python3.11/site-packages/django/core/handlers/asgi.py:185> wait_for=<Future pending
cb=[_chain_future.<locals>._call_check_cancel() at /usr/local/lib/python3.11/asyncio/futures.py:387, Task.task_wakeup()]> cb=[Task.task_wakeup()]>> for connection <WebRequest at 0x7729830880
90 method=POST uri=/admin/core/snapshot/ clientproto=HTTP/1.1> took too long to shut down and was killed.
daphne.server Application instance <Task cancelling name='Task-311' coro=<ProtocolTypeRouter.__call__() running at /usr/local/lib/python3.11/site-packages/channels/routing.py:62> wait_for=<_
GatheringFuture pending cb=[Task.task_wakeup()]>> for connection <WebRequest at 0x772983088090 method=POST uri=/admin/core/snapshot/ clientproto=HTTP/1.1> took too long to shut down and was
killed.

ArchiveBox then reports the following:

[i] Found 10958 matching URLs to remove.
10958 Links will be de-listed from the main index, and their archived content folders will be deleted from disk.
(9829 data folders with 70489 archived files will be deleted!)

I immediately killed ArchiveBox to prevent further damage, but at this point I'll have to restore from an older backup + manually re-grab a possibly large number of URLs for sites that weren't archived in that backup... :face_exhaling:
My fault! :woman_facepalming:
Steps to reproduce

Attempt to re-snapshot a pre 0.8.3 snapshot
It should fail with a 500 error and a specific error message
The snapshots should eventually appear within the snapshot listings, but will not have been archived at all
Attempt to delete those entries
Depending on number of entries, ArchiveBox will then report through logs that it will delete effectively every entry...

I'll investigate immediately, sorry about messing up your archive. I have several intergration tests that should prevent this type of thing around the CLI commands, but this shows I need to improve them to cover more of the UI button actions.

If the older data is still present on disk running archivebox init should also re-import it, as it will scan the archive/ folder for snapshot entries not in the DB and re-create them from the archive/<id>/index.json file saved with each snapshot output.


http/protobuf support

Closes #419.
Adds support for the standard protocols for metrics and traces.
Specific protocol choices win out over generic ones. There are With... functions for all three destinations, and a typed object for specifying them.

Codecov Report

Merging #621 (45e79a2) into launcher (e4fbaff) will increase coverage by 0.0%.
The diff coverage is 100.0%.

@@           Coverage Diff            @@
##           launcher    #621   +/-   ##
========================================
  Coverage      74.5%   74.6%
========================================
  Files           145     145
  Lines          6785    6805   +20
========================================
+ Hits           5060    5080   +20
  Misses         1576    1576
  Partials        149     149

Impacted Files
Coverage Δ

launcher/config.go
83.4% <100.0%> (+1.5%)
:arrow_up:

Closes https://github.com/honeycombio/opentelemetry-go-contrib/issues/419.
Adds support for the standard protocols for metrics and traces.
Specific protocol choices win out over generic ones. There are With... functions for all three destinations, and a typed object for specifying them.
I specified the protocol down in pipelines, but didn't want to expose pipelines for constants, so I also promoted them to the top level.


refactor: make Contract generic for Compiler and add metadata to CompilerOutput

Right now the compiler abstraction has two couplings that force foundry-zksync to implement it's own fork of compilers:

Contract is specific to solc/EVM contracts. Era VM contracts, while requiring different fields, still could use most of the functionality of the compilers pipeline.
CompilerOutput has solc specific fields. zksolc compilation has relevant information that is useful to have later on, for example when storing BuildInfo

This PR implements changes to address this. If implemented, it would allow foundry-zksync (and potentially other non EVM implementations of foundry) to get rid of all overrides and only maintain ZKsync specific data structures/trait implementations. See sample PR. Changes include:

Make Compiler generic over Contract (using CompilerContract as a trait type).
Add metadata field to CompilerOutput in order to add arbitrary data to compilation output.

@mattsse thanks, added draft PR on foundry that compiles: https://github.com/foundry-rs/foundry/pull/9423


Add parameters gradesAverages

Add parameters gradesAverages
Split grade and out of in order to display only what we want ... but keep compatibility with student_grade

@vingerha  possible to merge this ?

Guess so, I am however still awaiting a new release of pronotepy to fix MY issue... then I will aim for a new release on this one

I got word from PronotePy (bapt5), he will try to integrate his work in the school holidays. As I want both the new coverage for 'punishment' as well as his solution for agora06, I cannot progress till then.


'android.permission.ACCEPT_HANDOVER' as const: Unexpected token

Bug
SyntaxError: /Users/cepeda/Projects/promed-app/node_modules/react-native-permissions/src/constants.ts: Unexpected token (2:59)

  1 | export const ANDROID = Object.freeze({
> 2 |   ACCEPT_HANDOVER: 'android.permission.ACCEPT_HANDOVER' as const,
    |                                                            ^
  3 |   ACCESS_BACKGROUND_LOCATION: 'android.permission.ACCESS_BACKGROUND_LOCATION' as const,
  4 |   ACCESS_COARSE_LOCATION: 'android.permission.ACCESS_COARSE_LOCATION' as const,
  5 |   ACCESS_FINE_LOCATION: 'android.permission.ACCESS_FINE_LOCATION' as const,

Environment info
React native info output:
System:
    OS: macOS 10.15
    CPU: (4) x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
    Memory: 117.24 MB / 8.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 10.15.3 - ~/.nvm/versions/node/v10.15.3/bin/node
    Yarn: 1.17.3 - /usr/local/bin/yarn
    npm: 6.4.1 - ~/.nvm/versions/node/v10.15.3/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.1, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0
    Android SDK:
      API Levels: 23, 25, 26, 27
      Build Tools: 23.0.1, 23.0.2, 23.0.3, 25.0.0, 25.0.2, 26.0.1, 27.0.3
  IDEs:
    Xcode: 11.1/11A1027 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.9.0 => 16.9.0
    react-native: 0.61.2 => 0.61.2

Library version: 2.0.2

@carloscpda If you use TypeScript < 3.4, update it.

I am also facing the same issue on the mac.
Any Solution?

@al-shivani With TypeScript >= 3.4?

@zoontek,
I'm trying to update from 1.2.0 version to 2.0.3 and having the same issue. My react-native app isn't written in TypeScript. metro-react-native-babel-preset is set to be today's version.
Here is my current package.json:
{
  "name": "MobileApp",
  "version": "<IP_ADDRESS>",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "dev": "react-native run-ios",
    "test": "jest",
    "pretty": "prettier --write 'app/**/*.js'",
    "postinstall": "jetifier -r"
  },
  "lint-staged": {
    "app/**/*.js": [
      "prettier --write 'app/**/*.js'",
      "git add"
    ]
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "dependencies": {
    "@react-native-community/async-storage": "^1.6.1",
    "base-64": "^0.1.0",
    "immutable": "^4.0.0-rc.12",
    "moment": "^2.24.0",
    "node-pre-gyp": "^0.13.0",
    "prop-types": "^15.7.2",
    "pubsub-js": "^1.7.0",
    "ramda": "^0.26.1",
    "react": "^16.9.0",
    "react-native": "^0.61.2",
    "react-native-boundary": "https://github.com/pavelshadrin/react-native-boundary.git#support-ios-background",
    "react-native-button": "^2.4.0",
    "react-native-gesture-handler": "^1.4.1",
    "react-native-inappbrowser-reborn": "^3.1.0",
    "react-native-modalbox": "^1.7.1",
    "react-native-onesignal": "^3.3.2",
    "react-native-permissions": "^2.0.3",
    "react-native-swipeout": "^2.3.6",
    "react-navigation": "^3.12.1",
    "react-redux": "^7.1.1",
    "redux": "^4.0.1",
    "redux-immutable": "^4.0.0",
    "redux-saga": "^1.0.5",
    "reselect": "^4.0.0",
    "validate.js": "^0.13.1",
    "vanilla-masker": "^1.2.0"
  },
  "devDependencies": {
    "babel-core": "^7.0.0-bridge.0",
    "babel-jest": "^24.9.0",
    "husky": "^3.0.4",
    "jest": "^24.9.0",
    "jetifier": "^1.6.4",
    "lint-staged": "^9.2.5",
    "metro-react-native-babel-preset": "^0.56.3",
    "prettier": "^1.18.2",
    "react-test-renderer": "^16.9.0"
  },
  "jest": {
    "preset": "react-native"
  },
  "rnpm": {
    "assets": [
      "./assets/fonts/"
    ]
  }
}

What am I missing?
Sorry, ReactNative and JS/TS are not yet my native technologies 😃

@RustamG Does the error happen in metro bundler?

@zoontek, yes.

@RustamG Could you create a repository with a minimal reproduction?

@zoontek,
Running
rm yarn.lock
yarn

got me to the next level :)
Sorry for disturbing. Have a nice day!

same issue here..

I am getting the same issue. @RustamG fix did not work for me either.

@Unforgiven-wanda I closed it because I neither successfully reproduced it. I need a minimal repository with the error to check it out 🙂


CID1508860: double lock confusion

I wonder if coverity is confused by following the current_req pointer for the unlock call vs my_aio_req for the lock.  I removed the current_req variable as it isn't necessary.
I also moved the release call before incrementing metrics since the lock doesn't need to be held for that.
Fixes #10430

The AIO code seems scary bad in general.


Refactoring CosmosErrorMessages to be more flexible

… and not use CollapsibleErrorMessage component.
This PR updates the cosmos error message handling, so all details are displayed without having to click "view details". It uses Alert component rather than the CollapsibleErrorMessage component.
PackageTab page:

Install:

Uninstall:

Checklist

[x] Did you add a JIRA issue in a commit message or as part of the branch name?
[ ] Did you add new unit tests?
[ ] Did you add new integration tests?
[ ] If this is a regression, did you write a test to catch this in the future? Not applicable

Run unit tests

Run integration tests

Run integration tests

Run integration tests

Looks great overall, just some minor comments. Nice work!

@jfurrow comments addressed!

flicts!

Rebased!

Let's handle overflows 💪

Apart from these two small comments it looks good!

I will handle the overflow!

Good catch on the overflow. Once we handle that I'll add my label!

I added the overflow behavior, here it is in action:

Thanks @jfurrow!

Code looks good, and it works as expected!


Tag workflow_task_execution_failed with error type

Tag workflow_task_execution_failed with error type. Change some panics to illegal state panics so they are captured as non determinism.
closes https://github.com/temporalio/sdk-go/issues/1289

Let's make sure we're clear in release notes here so people aren't surprised when this breaks out into two metric lines in their Prometheus metrics.


[Issue] Multiple log analytics workspaces created when using Azure App Insights and an Azure Container App

Output from azd version
Run azd version and copy and paste the output here:
azd version 1.7.0-beta.1-pr.3518885 (commit d62cc4c16bda2eefabf48b7d7f8bd616cad1445a)
Describe the bug
Having an Azure App Insights resource together with container apps, two Log Analytics workspaces are created. I think there should be only one:
Using azd up, two log analytics workspaces are created:
  (✓) Done: Resource group: rg-codebreaker-12p4
  (x) Failed: Key Vault: codebreakercosmoskvzehizmlsmqemc
  (✓) Done: Log Analytics workspace: law-zehizmlsmqemc
  (✓) Done: Log Analytics workspace: law-appinsights-zehizmlsmqemc
  (✓) Done: Container Registry: acrzehizmlsmqemc
  (✓) Done: Application Insights: appinsights-zehizmlsmqemc
  (✓) Done: Container Apps Environment: cae-zehizmlsmqemc
  (✓) Done: Container App: redis

Using this app model:
    var insights = builder.AddAzureApplicationInsights("AppInsights");
    var redis = builder.AddRedis("redis");

    var cosmos = builder.AddAzureCosmosDB("codebreakercosmos")
        .AddDatabase("codebreaker");

    var gameAPIs = builder.AddProject<Projects.Codebreaker_GameAPIs>("gameapis")
        .WithReference(cosmos)
        .WithReference(redis)
        .WithReference(insights)
        .WithEnvironment("DataStore", dataStore)
        .WithReplicas(1);

    builder.AddProject<Projects.CodeBreaker_Blazor_Host>("blazor")
        .WithReference(gameAPIs)
        .WithReference(insights);

    builder.AddProject<Projects.CodeBreaker_Bot>("bot")
        .WithReference(gameAPIs)
        .WithReference(insights);

This is the generated manifest:
{
  "resources": {
    "AppInsights": {
      "type": "azure.bicep.v0",
      "connectionString": "{AppInsights.outputs.appInsightsConnectionString}",
      "path": "aspire.hosting.azure.bicep.appinsights.bicep",
      "params": {
        "appInsightsName": "appinsights",
        "logAnalyticsWorkspaceId": ""
      }
    },
    "redis": {
      "type": "container.v0",
      "connectionString": "{redis.bindings.tcp.host}:{redis.bindings.tcp.port}",
      "image": "redis:7.2.4",
      "bindings": {
        "tcp": {
          "scheme": "tcp",
          "protocol": "tcp",
          "transport": "tcp",
          "containerPort": 6379
        }
      }
    },
    "codebreakercosmos": {
      "type": "azure.bicep.v0",
      "connectionString": "{codebreakercosmos.secretOutputs.connectionString}",
      "path": "aspire.hosting.azure.bicep.cosmosdb.bicep",
      "params": {
        "databaseAccountName": "codebreakercosmos",
        "databases": [
          "codebreaker"
        ],
        "keyVaultName": ""
      }
    },
    "gameapis": {
      "type": "project.v0",
      "path": "../Codebreaker.GameAPIs/Codebreaker.GameAPIs.csproj",
      "env": {
        "OTEL_DOTNET_EXPERIMENTAL_OTLP_EMIT_EXCEPTION_LOG_ATTRIBUTES": "true",
        "OTEL_DOTNET_EXPERIMENTAL_OTLP_EMIT_EVENT_LOG_ATTRIBUTES": "true",
        "ConnectionStrings__codebreakercosmos": "{codebreakercosmos.connectionString}",
        "ConnectionStrings__redis": "{redis.connectionString}",
        "APPLICATIONINSIGHTS_CONNECTION_STRING": "{AppInsights.connectionString}",
        "DataStore": "Cosmos"
      },
      "bindings": {
        "http": {
          "scheme": "http",
          "protocol": "tcp",
          "transport": "http"
        },
        "https": {
          "scheme": "https",
          "protocol": "tcp",
          "transport": "http"
        }
      }
    },
    "blazor": {
      "type": "project.v0",
      "path": "../CodeBreaker.Blazor.Host/CodeBreaker.Blazor.Host.csproj",
      "env": {
        "OTEL_DOTNET_EXPERIMENTAL_OTLP_EMIT_EXCEPTION_LOG_ATTRIBUTES": "true",
        "OTEL_DOTNET_EXPERIMENTAL_OTLP_EMIT_EVENT_LOG_ATTRIBUTES": "true",
        "APPLICATIONINSIGHTS_CONNECTION_STRING": "{AppInsights.connectionString}",
        "services__gameapis__0": "{gameapis.bindings.http.url}",
        "services__gameapis__1": "{gameapis.bindings.https.url}"
      },
      "bindings": {
        "http": {
          "scheme": "http",
          "protocol": "tcp",
          "transport": "http"
        },
        "https": {
          "scheme": "https",
          "protocol": "tcp",
          "transport": "http"
        }
      }
    },
    "bot": {
      "type": "project.v0",
      "path": "../CodeBreaker.Bot/CodeBreaker.Bot.csproj",
      "env": {
        "OTEL_DOTNET_EXPERIMENTAL_OTLP_EMIT_EXCEPTION_LOG_ATTRIBUTES": "true",
        "OTEL_DOTNET_EXPERIMENTAL_OTLP_EMIT_EVENT_LOG_ATTRIBUTES": "true",
        "APPLICATIONINSIGHTS_CONNECTION_STRING": "{AppInsights.connectionString}",
        "services__gameapis__0": "{gameapis.bindings.http.url}",
        "services__gameapis__1": "{gameapis.bindings.https.url}"
      },
      "bindings": {
        "http": {
          "scheme": "http",
          "protocol": "tcp",
          "transport": "http"
        },
        "https": {
          "scheme": "https",
          "protocol": "tcp",
          "transport": "http"
        }
      }
    }
  }
}

Expected behavior
I expect to have one log analytics workspace created from the App Insights resource, and this workspace to be used with project resources referencing app insights.
Environment
Information on your environment:
* Version 17.10.0 Preview 1.0
* aspire 8.0.0-preview.5.24156.15/8.0.100

This is the current behavior for Preview 4. Lets use this issue for any changes required for Preview 5.
cc @vhvb1989 @davidfowl

When using this azd version:
azd version 1.7.0-beta.1-pr.3529927 (commit 3fd6b51198b3a530a35c4edfc4ade0c1e7c92c25)
I see a different behavior:
  (✓) Done: Resource group: rg-codeberaker-12p4b
  (✓) Done: Log Analytics workspace: law-x24r45v4bmrra
  (✓) Done: Key Vault: cosmoskvx24r45v4bmrra
  (✓) Done: Container Registry: acrx24r45v4bmrra
  (✓) Done: Container Apps Environment: cae-x24r45v4bmrra
  (✓) Done: Container App: redis
  (✓) Done: Azure Cosmos DB: cosmosx24r45v4bmrra
  (x) Failed: Application Insights: appinsights-x24r45v4bmrra

ERROR: deployment failed: failing invoking action 'provision', error deploying infrastructure: deploying to subscription:

Deployment Error Details:
BadRequest: WorkspaceResourceId is not in valid format

TraceID: 3f53cf0b74851e9d0186b57769dd0616

ERROR: error executing step command 'provision': deployment failed: failing invoking action 'provision', error deploying infrastructure: deploying to subscription:

Deployment Error Details:
BadRequest: WorkspaceResourceId is not in valid format

Moving this to the Dilithium bucket. Feel free to pull this into a specific milestone if need be.
cc @ellismg @vhvb1989 @davidfowl @mitchdenny

This should be fixed now in P5. @christiannagel can you confirm from your end?

@mitchdenny I think I've seen this issue just recently using a daily build of .NET Aspire and azd. I'm checking it...


Spell mistake

Could u pls submit a PR?

Is this issue still open @AlbumenJ ?Also can you tell the location where this mistake is since it's in a Chinese I cannot really understand it.


Project Dashboard Page: Widget heights do not align (top)

Reported by @nicipfeiffer on the 0.43 trello board
Link: https://trello.com/c/wtNK5RwA/151-project-dashboard-page-widget-heights-do-not-align-top

Comments:
@caneruguz: So from a technical perspective these two components are not related at all in terms of layout so there is no reason why they should be aligned. One has a header, the other is a tab list.
To align them we would need to force unnatural boundaries into them and shift things around, which does not hold when widths change so it will be a serious battle to manage this.
I think we can defer this, mainly because it's on production. Then we can look into it and I will look for a solid fix that will work in all widths.

Incidentally I have a proposal for the dashboard page:
https://osf.io/53dnv/
It suggest making these tabs and full page versions with pins that allow users to individually set their preference for the default.

The Dashboard project as noted by @caneruguz could be a candidate for next Epic -- So I'm going to tag this with "Hold" for now - Thanks.

Related to this is: https://trello.com/c/rSWuHsOA/152-project-dashboard-page-widget-heights-do-not-align-bottom

Will be considered when refactor dashboard page. Thanks.


Schema upgrades

As a devops
I want to change the schema of a resource
So that I can provide an enhancement.
If the enhancement is non-breaking (such as adding a field) this is not a big worry.  However, what about breaking changes (such as combining last and first name into just name).
Do we just upgrade every document in the database to the new schema? This could be very slow with lots of documents.
Do we do it incrementally (gradually)?  Upgrade on a GET.
With multiple upgrades how do we specify the order.
Some upgrades are just about indexes, which should be applied immediately.

An incremental approach requires the resource has an associated schemaVersion.  This allows us to determine if an upgrade needs to be applied.
The version number could be a monotonically increasing integer or a YYYMMDD.  I prefer YYYYMMDD because it sort easier.

How about an object like
{
  title: 'A short description of the patch',
  version: '2015-11-11',
  resource: 'tenant',
  immediate: db => { ... }
  upgrade: resource => { ... }

The upgrade history is at /api/config/update.
{
  "current": {
    "version": "2015-11-11 init",
    "appliedOn": "2015-11-13T23:31:58.370Z"
  },
  "history": [
    {
      "version": "2015-11-11 init",
      "appliedOn": "2015-11-13T23:31:58.370Z"
    }
  ],
  "modifiedOn": "2015-11-13T23:31:58.370Z",
  "_metadata": {
    "self": "/api/config/upgrade",
    "type": "config"
  }
}


Develop Latvian translations

Fixes Or Enhances
Make sure that you've checked the boxes below before you submit PR:

[x ] Tests exist or have been written that cover this particular change.

@go-playground/validator-maintainers

Coverage decreased (-0.4%) to 73.76% when pulling e75359f29248778846db0b1a5cfd136da7c35e79 on gatisr:gatisr/translations-lv into c7e0172e0fd176bdc521afb5186818a7db6b77ac on go-playground:master.


Document and valgrind the -p option

So far, -p has been a "hidden feature" for running the tests in a separate process. It is quite a lot slower and depends on the platform. It might be good to actually document it, add it to the build and also see if we can resolve the valgrind warnings on the -p run.

Is this hinting that the -p option must be used when looking at memory options with either Dr. Memory or Valgrind?  I certainly get very different results when I use it with my own unit test sets or those performed by CppUTest's make check process.  I see something very like #1024 (and other stuff) when I do not use the -p option.

I think this was for making sure that valgrind didn't give errors with the -p option. But it has been a while.

I get errors either way.  I shall try and setup a nice test case to demo my problem and make sure it is not some junk in my build system.  If that works I will try to make a new ticket that explains my difficulties.

Its documented, closing this for now.


[Test CI] validate-defs should ensure that each npm package name is actually an npm package name

Currently all of our definitions are assumed to be valid npm package names, but we don't automatically verify this. (I've been verifying it as I accept PRs).
It would be good to automate this in the CI tests.

Re-opening since validation times out specs running on Travis, and I've had to comment out the code.


[REQUEST] Improve selenium mode:  generating User agent

Is your feature request related to a problem? Please describe.
when i want to use , user agent in some website, it would said that "Provisional headers are shown" and there is no change in user agent when i ticked random user agent. and it's always same.
Describe the solution you'd like
i think open bullet should change selenium tab by add some changes like what you have done in UA generator Function block and add a custom user agent where user can put their own user agent there.

This function is needed for some site that need special custom user agent list

hello @kazemmoridi,
i tested the "Use Random User Agent" function for selenium and it worked. It is in other options > selenium.
I got three different user agents in three tests and tested/confirmed it on https://www.whatismybrowser.com/detect/what-is-my-user-agent
in the same option window there is a field where you can input custom user agent if needed.


Not precisely an issue

I'd like to suggest(if i could find a better spot i would im not familiar with github) a feature for tibializer if i may?
Some sort of timer combined with an alarm/ notification to remove rings and amulets with low charges and low duration maybe 20-10 charges and like 30 seconds of time for duration so that you can sell them to npc still.. please and thank you i think this would be wonderful if at all possible!
~Apola~

Hello,
there is already a reminder in tibialyzer.
remindme@[time in seconds]@[title]@[message]@[icon]
just play around with it ;)

Thanks! interesting tool
On Fri, Dec 2, 2016 at 5:33 PM, KuerbisGnu<EMAIL_ADDRESS>wrote:

Hello,
there is already a reminder in tibialyzer.
remindme@[time in seconds]@[title]@[message]@[icon]
just play around with it ;)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Mytherin/Tibialyzer/issues/246#issuecomment-264580607,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AXMd8CyUCmLnuKmb8Wkk1R_xeNh642HPks5rEJyygaJpZM4LCz78
.


Add chunked=INTEGER option to ensure batch number of rows

Issue #192
Add chunked=INTEGER option to ensure batch by number of rows reading Parquet files.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Redirecting PR to dev on #209


Privacy: allow disabling calls to https://www.google-analytics.com/analytics.js from the grlc/src/templates/index.html file.

Dear GRLC team,
I observe that the https://github.com/CLARIAH/grlc/blob/bb1c70feea5919f399f35fe3fe08496a7950eb31/src/templates/index.html#L26 currently holds calls to https://www.google-analytics.com/analytics.js which creates privacy issues for private GRLC instances: unless blocked by Web browser's anti-tracking tools, analytics.js exports private URIs.
Options I see for addressing these are:

enable starting GRLC with some "privacy" option that would call a /src/templates/index-private.html file that doesn't include calls to analytics.js
update the GRLC README.md to inform users that further user-side anti-tracking configuration may be required.

Since 1 July 2023, Google changed the Analytics platform, so this would need to be updated. In the past I was of the opinion that keeping some minimal form of analytics (just counting number of visitors) would give us some insight into how much the grlc service is being used. Having said that, I don't think we are really using that data in any way at the moment, so I would be in favour of removing this completely.
@albertmeronyo , would you have any objection to that?

After discussing with @albertmeronyo , it turns out we do use the analytics (to get a rough idea of how many people use the grlc.io service). So I think have closed the PR removing analytics and will add a notice on  README.md.


Read a string in php from the generated text

is possible a algoritm in php to read the string crypt?
tried here some algorithms, but none was equivalent!

see v1.1.3。the key is the same “IV” in different language。


Errors when switching devices. - Similar to issue "Plugin working only few minutes"

Hi,
I have installed the offline version in my development environment (to help you testing :-) ) and sometimes it does work, I encounter the following issue when switching a device (is the same on all other switch devices):
2024-05-16 16:09:17.552 Status: User: xxxxxxx (IP: xxx.xxx.xxx.xxx) initiated a switch command (17/Wall lights 1 (switch_1)/On)
2024-05-16 16:09:17.906 Error: TinyTuya(local): Call to function 'onCommand' failed, exception details:
2024-05-16 16:09:17.906 Error: TinyTuya(local): Traceback (most recent call last):
2024-05-16 16:09:17.906 Error: TinyTuya(local): File "/opt/domoticz/userdata/plugins/Domoticz-TinyTUYA-Local-Plugin/plugin.py", line 142, in onCommand
2024-05-16 16:09:17.906 Error: TinyTuya(local): _plugin.onCommand(DeviceID, Unit, Command, Level, Color)
2024-05-16 16:09:17.906 Error: TinyTuya(local): File "/opt/domoticz/userdata/plugins/Domoticz-TinyTUYA-Local-Plugin/plugin.py", line 101, in onCommand
2024-05-16 16:09:17.906 Error: TinyTuya(local): SendCommand(DeviceID, Unit, True if Command not in ['Off', 'Closed', False] else False, category)
2024-05-16 16:09:17.906 Error: TinyTuya(local): File "/opt/domoticz/userdata/plugins/Domoticz-TinyTUYA-Local-Plugin/plugin.py", line 525, in SendCommand
2024-05-16 16:09:17.906 Error: TinyTuya(local): tuya = tinytuya.Device(dev_id=str(ID), address=str(getConfigItem(ID, 'ip')), local_key=str(getConfigItem(ID, 'key')), version=str(getConfigItem(ID, 'version')), connection_timeout=1, connection_retry_limit=1)
2024-05-16 16:09:17.906 Error: TinyTuya(local): File "/usr/local/lib/python3.9/dist-packages/tinytuya/core.py", line 946, in init
2024-05-16 16:09:17.906 Error: TinyTuya(local): self.set_version(float(version))
2024-05-16 16:09:17.906 Error: TinyTuya(local): ValueError: could not convert string to float: '{}'
Plugin TinyTUYA Plugin Local Controlversion Alpha 0.3
Let me know if you need any more info.

Hi Wilbert,
Thanks test testing! I had the plugin running with my devices without issue, good you found a issue 😅
Can you share the snapshot.json part of this device.

No issues for this anymore (no changes made on config, other than moving network to host network in docker)
Will keep an eye on this if it returns

The issue is for all devices, so below find the snapshot for all devices.
{
"timestamp":<PHONE_NUMBER>.0517006,
"devices": [
{
"id": "363037002cf4324c4388",
"ip": "<IP_ADDRESS>",
"active": 2,
"ability": 0,
"mode": 0,
"encrypt": true,
"productKey": "key5nck4tavy43jp",
"name": "bedroom",
"key": "=y>q(Rg&d+/|_s5?",
"mac": "2c:f4:32:4c:43:88",
"token": "",
"wf_cfg": "",
"dev_type": "default",
"err": "",
"type": "default",
"dps": {
"devId": "363037002cf4324c4388",
"dps": {
"1": false,
"9": 0
}
},
"origin": "broadcast",
"ver": "3.3"
},
{
"id": "bfca7b0908fc2e217eztow",
"ip": "<IP_ADDRESS>",
"active": 2,
"encrypt": true,
"productKey": "key5ckdnys3pqgec",
"token": true,
"wf_cfg": true,
"name": "Smart Switch",
"key": "dIz=/KzX+52s_LXT",
"mac": "c4:82:e1:b3:58:98",
"ability": 0,
"dev_type": "default",
"err": "",
"type": "default",
"dps": {
"dps": {
"1": false,
"2": false,
"3": false,
"7": 0,
"8": 0,
"9": 0,
"14": "off",
"17": "",
"18": "",
"19": ""
}
},
"origin": "broadcast",
"ver": "3.4"
},
{
"id": "36303700cc50e3e6b4e7",
"ip": "<IP_ADDRESS>",
"active": 2,
"ability": 0,
"mode": 0,
"encrypt": true,
"productKey": "key5nck4tavy43jp",
"name": "office",
"key": "2e377139e0fee4b4",
"mac": "cc:50:e3:e6:b4:e7",
"token": "",
"wf_cfg": "",
"dev_type": "default",
"err": "",
"type": "default",
"dps": {
"devId": "36303700cc50e3e6b4e7",
"dps": {
"1": false,
"9": 0
}
},
"origin": "broadcast",
"ver": "3.3"
},
{
"id": "32124004ecfabc205204",
"ip": "<IP_ADDRESS>",
"active": 2,
"ability": 0,
"mode": 0,
"encrypt": true,
"productKey": "DYgId0sz6zWlmmYu",
"name": "Siren",
"key": "26678b71a1d539ce",
"mac": "ec:fa:bc:20:52:04",
"token": "",
"wf_cfg": "",
"dev_type": "default",
"err": "",
"type": "default",
"dps": {
"devId": "32124004ecfabc205204",
"dps": {
"101": "4",
"102": "3",
"103": 15
}
},
"origin": "broadcast",
"ver": "3.1"
},
{
"id": "bf9250a724f45d4672bdag",
"ip": "<IP_ADDRESS>",
"active": 2,
"encrypt": true,
"productKey": "keyjnuy4s3kre7m7",
"token": true,
"wf_cfg": true,
"name": "Wall lights 1",
"key": "nZY7&Aa<>wCtewcs",
"mac": "a8:80:55:66:74:fe",
"ability": 0,
"dev_type": "default",
"err": "",
"type": "default",
"dps": {
"dps": {
"1": false,
"9": 0,
"38": "off",
"42": "",
"43": "",
"44": "AAAC",
"47": "flip"
}
},
"origin": "broadcast",
"ver": "3.4"
},
{
"id": "bf2e30944c01138d44lndd",
"ip": "<IP_ADDRESS>",
"active": 2,
"encrypt": true,
"productKey": "keyjnuy4s3kre7m7",
"token": true,
"wf_cfg": true,
"name": "Street lights",
"key": "0=nhvQI]@H]}S{ib",
"mac": "a8:80:55:2f:e9:98",
"ability": 0,
"dev_type": "default",
"err": "",
"type": "default",
"dps": {
"dps": {
"1": false,
"9": 0,
"38": "memory",
"42": "",
"43": "",
"44": "AAAC"
}
},
"origin": "broadcast",
"ver": "3.4"
}
]
}

Can you test the new push, a lot of thing changed.


Update zfs-driver.md

Proposed changes
The command "zfs status" does not exist. To check the fragmentation level of a ZFS-Pool, use "zpool status".

Deploy preview for docsdocker ready!
Built with commit 1bda5048dc6129229002f13247a7b282317bdffc
https://deploy-preview-8734--docsdocker.netlify.com

Deploy preview for docsdocker ready!
Built with commit eef656263d66879a8e71fbe1f854a25deaf469a5
https://deploy-preview-8734--docsdocker.netlify.com


[jvm-packages] Fix wrong method name setAllowZeroForMissingValue.

In both XGBoostClassifier and XGBoostRegressor, the method name setAllowZeroForMissingValue is against its actual behavior.
Besides, in cases where we construct training data that zero is a valid value without the Spark's VectorAssembler, it is useful to expose the param setAllowNonZeroForMissing.

Codecov Report

Merging #5740 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #5740   +/-   ##
=======================================
  Coverage   82.31%   82.31%
=======================================
  Files          12       12
  Lines        2720     2720
=======================================
  Hits         2239     2239
  Misses        481      481

Continue to review full report at Codecov.

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

@CodingCat Not familiar with jvm packages, but seems to be a quite important fix?

@CodingCat Kindly ping~

@hcho3 @CodingCat @trivialfis Kindly ping~ Could this PR be merged?

@trivialfis How risky do you think this change is? Should we wait until after 1.2.0?

Can you help adding a simple test?

Let me give it a try.

I added a small test to verify that the getter and setter works.


[AIRFLOW-3512] Create GCP Memorystore Redis Operators

Hello,
Here is an ticket related to GCP on Jira:
https://issues.apache.org/jira/browse/AIRFLOW-3512
Love

Duplicate of: https://github.com/PolideaInternal/airflow/issues/162

Same here, should we close it because of #162?

No, because we want to have the correct status in the spreadsheet. We send the spreadsheet to the client, so we must have real information in it.The script for synchronization - GH<=> spreadsheet is very simple and does not understand the complexity of the situation, so it is better to leave this issue open.
We should think about this issue that this is part of the #162.

Mentioned spreadsheet: https://docs.google.com/spreadsheets/d/1MASPbcMfrqQll2xTDiwjF1cGM_OmN5UXBCZwCnsaJa4/edit#gid=0
Mentioned script:
https://github.com/PolideaInternal/airflow-munchkin/blob/master/hack/copy-gh-jira-state.sh

Understood ✅


What license is this project under

Could you kindly add a license please.

@gongruya sure thing, Just added it


Function to source SQL scripts

Implement a function to source a SQL script, given a file path. Requires #8.

This would require parsing the actual file, as things like DELIMITER aren't SQL commands, but instructions for the mysql command line. I don't think there's any value in re-creating the command line parser.


version 1.3.4 - remove private members

Sequelizes uses _.deepCopy for its toJSON implementation. Lodash deepCopy breaks objects that utilizes private members since they can not be accessed externally. So the only solution was to remove it so we can keep compatibility with Sequelize v6.
Added a minor fix to the github action.

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

Project coverage is 100.00%. Comparing base (35682f6) to head (47307fa).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff            @@
##              main       #13   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           10        10
  Lines          780       782    +2
  Branches       217       225    +8
=========================================
+ Hits           780       782    +2

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


Support on-going LRO metadata

We should expose the metadata returned by an in-progress long-running operation, as shown here:
https://github.com/googleapis/googleapis/blob/master/google/longrunning/operations.proto#L92

This blocks both speech and Google.LongRunning from going GA, IMO.

Fixed by #998, although we still need to autogenerate this. See also #1003.


NPM install not working

Hi there, I am receiving the following error when trying to install the package with npm install @szmarczak/http-timer
npm ERR! code E404
npm ERR! 404 Not Found - GET<EMAIL_ADDRESS>npm ERR! 404
npm ERR! 404  '@szmarczak/http-timer@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR!      C:\Users\user-pc\AppData\Roaming\npm-cache\_logs\2020-08-06T09_55_40_842Z-debug.log
PS D:\Udemy\nodejs\deployed_apps\lord_fay> npm install @szmarczak/http-timer
npm ERR! code E404
npm ERR! 404 Not Found - GET<EMAIL_ADDRESS>npm ERR! 404
npm ERR! 404  '@szmarczak/http-timer@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR!      C:\Users\user-pc\AppData\Roaming\npm-cache\_logs\2020-08-06T09_58_09_599Z-debug.log

Hi
I am facing the same. npm install is failing due to this issue.

is it caused by this npm problem?
https://status.npmjs.org/#

Hi. Same issue here. Our github actions started to act up and the error pointed to Yarn being unable to find this particular package.

Me too

is it caused by this npm problem?
https://status.npmjs.org/#

I think you might be right

Seems like this is fixed on the NPM side. Can you confirm on your side?

It's back online now for me

It's back online now for me

Everything working now!

I am still facing this issue even it's online

This is still a problem
600 error HTTPError: Response code 404 (Not Found)
600 error     at Request._onResponseBase (/home/eva/Projects/electron/comms/node_modules/got/dist/source/core/index.js:913:31)
600 error     at Request._onResponse (/home/eva/Projects/electron/comms/node_modules/got/dist/source/core/index.js:948:24)
600 error     at ClientRequest.<anonymous> (/home/eva/Projects/electron/comms/node_modules/got/dist/source/core/index.js:962:23)
600 error     at Object.onceWrapper (node:events:633:26)
600 error     at ClientRequest.emit (node:events:530:35)
600 error     at origin.emit (/home/eva/Projects/electron/comms/node_modules/@szmarczak/http-timer/dist/source/index.js:43:20)
600 error     at HTTPParser.parserOnIncomingClient (node:_http_client:693:27)
600 error     at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
600 error     at TLSSocket.socketOnData (node:_http_client:535:22)
600 error     at TLSSocket.emit (node:events:518:28)
601 verbose exit 1


Client.gui.close() does not properly close the GUI on the server side (CT 1.0.0)

Describe the bug
Running Client.gui.close() only closes the opened gui on the client's side, but the gui stays open on the server side
To Reproduce
This is the way I came across the bug and is the easiest way to see it actually happening:

Get AutoHarp module and enable it
/ct console js
Start a song on the Harp (Public or Private, I did on Private)
Go to console and type Client.gui.close() then press enter
Go back in-game to see the Harp GUI is gone but AutoHarp is still playing
Attempt to fix the bug
Fail to do step 6
Procrastinate
Try to fix the bug again
Succeed at fixing the bug

Expected behavior
The GUI is closed both client and server side
Setup (please complete the following information):

OS: Windows 10 Pro
ChatTriggers Version: 1.0.0 snapshot
Minecraft Version: 1.8.9
Java Version: 1.8.0_221 x64

Additional context
This happened at 1am

Should be fixed with 6a94603cb6c953b4eec909149ff8909e7a7de7d7
I will re-open if it turns out not to be the case


Add Carthage & CocoaPods support.

This supersedes #309 and #305.
This is still a work-in-progress.
TODO

[x] Create Xcode project that builds an iOS framework
[x] Fix failing tests on Xcode
[ ] Make pod lib lint pass and make sure YogaKit can be included using CocoaPods
[ ] Add pod lib lint to .travis.yml
[x] Migrate to travis osx image with Xcode 8.2

FOLLOW-UP

[ ] Make YogaKitSample use framework built by new Xcode project.
[ ] Make Travis to upload prebuilt versions of the framework. More here
[ ] Upgrade github/jekyll docs about installation using Cocoapods/Carthage

@dshahidehpour @emilsjolander There are 4 tests that are failing in Xcode. Most of them seems to rounding errors when computing frames. I think @hartbit run into the same issue. Do you have any idea what could be the problem or how to solve this?

@guidomb The rounding failure is happening because buck test and Xcode are slightly different testing environments and their scales seem to be different, generating different results. I'll take care of it today.
Meanwhile, would you like some help with some of those other tasks? I'll migrate Travis to Xcode 8.2 today.

@dshahidehpour Thanks! I'll wait until there are any news regarding the tests. Regarding the other items no worries I can work on those once the tests are fixed and there is no rush on migrating to Xcode 8.2 for now. I can do that once everything else has bee implemented but If you need / want to do that no worries.

I put up a PR to use Xcode8.2 in #353

@guidomb I landed fixes for the stuff blocking you. I also broke the list up into two sections, feel free to move stuff around!

Awesome! I'll keep working on this by the end of my day. Thanks!

I've incorporated the latest changes in master. The Xcode project is compiling and tests are passing. Carthage is also working. I am having problems with CocoaPods. There seems to be a problems with how header files are included. Need to do more research about it.

Awesome progress @guidomb! let us know if we can help with the header import stuff, can you paste the error?

In file included from /Users/guidomb/Documents/projects/github/yoga/YogaKit/YogaKit/YGLayout.m:10:
In file included from /Users/guidomb/Documents/projects/github/yoga/YogaKit/YogaKit/YGLayout+Private.h:10:
/Users/guidomb/Documents/projects/github/yoga/YogaKit/YogaKit/YGLayout.h:11:9: fatal error: 'YogaKit/YGEnums.h' file not found
#import <YogaKit/YGEnums.h>
        ^

CompileC /Users/guidomb/Library/Developer/Xcode/DerivedData/App-evazeamnsdiztlbpbpbtigpkmeaa/Build/Intermediates/Pods.build/Release-iphonesimulator/YogaKit.build/Objects-normal/i386/YogaKit-dummy.o /private/var/folders/gf/dslbq4t94zg44sz7wnk2lg2r0000gp/T/CocoaPods/Lint/Pods/Target\ Support\ Files/YogaKit/YogaKit-dummy.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /var/folders/gf/dslbq4t94zg44sz7wnk2lg2r0000gp/T/CocoaPods/Lint/Pods
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/guidomb/.rbenv/versions/2.3.1/bin:/usr/local/Cellar/rbenv/1.1.0/libexec:/Users/guidomb/.nvm/versions/node/v6.3.1/bin:/usr/local/heroku/bin:/Users/guidomb/.rbenv/shims:/Users/guidomb/.rbenv/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/guidomb/.swiftyrobot"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/guidomb/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/guidomb/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Xclang -fmodule-implementation-of -Xclang YogaKit -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wunreachable-code -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DPOD_CONFIGURATION_RELEASE=1 -DCOCOAPODS=1 -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -g -Wno-sign-conversion -Wno-infinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/guidomb/Library/Developer/Xcode/DerivedData/App-evazeamnsdiztlbpbpbtigpkmeaa/Build/Intermediates/Pods.build/Release-iphonesimulator/YogaKit.build/YogaKit-generated-files.hmap -I/Users/guidomb/Library/Developer/Xcode/DerivedData/App-evazeamnsdiztlbpbpbtigpkmeaa/Build/Intermediates/Pods.build/Release-iphonesimulator/YogaKit.build/YogaKit-own-target-headers.hmap -I/Users/guidomb/Library/Developer/Xcode/DerivedData/App-evazeamnsdiztlbpbpbtigpkmeaa/Build/Intermediates/Pods.build/Release-iphonesimulator/YogaKit.build/YogaKit-all-non-framework-target-headers.hmap -ivfsoverlay /Users/guidomb/Library/Developer/Xcode/DerivedData/App-evazeamnsdiztlbpbpbtigpkmeaa/Build/Intermediates/Pods.build/all-product-headers.yaml -iquote /Users/guidomb/Library/Developer/Xcode/DerivedData/App-evazeamnsdiztlbpbpbtigpkmeaa/Build/Intermediates/Pods.build/Release-iphonesimulator/YogaKit.build/YogaKit-project-headers.hmap -I/Users/guidomb/Library/Developer/Xcode/DerivedData/App-evazeamnsdiztlbpbpbtigpkmeaa/Build/Products/Release-iphonesimulator/YogaKit/include -I/var/folders/gf/dslbq4t94zg44sz7wnk2lg2r0000gp/T/CocoaPods/Lint/Pods/Headers/Private -I/var/folders/gf/dslbq4t94zg44sz7wnk2lg2r0000gp/T/CocoaPods/Lint/Pods/Headers/Public -I/Users/guidomb/Library/Developer/Xcode/DerivedData/App-evazeamnsdiztlbpbpbtigpkmeaa/Build/Intermediates/Pods.build/Release-iphonesimulator/YogaKit.build/DerivedSources/i386 -I/Users/guidomb/Library/Developer/Xcode/DerivedData/App-evazeamnsdiztlbpbpbtigpkmeaa/Build/Intermediates/Pods.build/Release-iphonesimulator/YogaKit.build/DerivedSources -F/Users/guidomb/Library/Developer/Xcode/DerivedData/App-evazeamnsdiztlbpbpbtigpkmeaa/Build/Products/Release-iphonesimulator/YogaKit -Wincomplete-umbrella -include /var/folders/gf/dslbq4t94zg44sz7wnk2lg2r0000gp/T/CocoaPods/Lint/Pods/Target\ Support\ Files/YogaKit/YogaKit-prefix.pch -MMD -MT dependencies -MF /Users/guidomb/Library/Developer/Xcode/DerivedData/App-evazeamnsdiztlbpbpbtigpkmeaa/Build/Intermediates/Pods.build/Release-iphonesimulator/YogaKit.build/Objects-normal/i386/YogaKit-dummy.d --serialize-diagnostics /Users/guidomb/Library/Developer/Xcode/DerivedData/App-evazeamnsdiztlbpbpbtigpkmeaa/Build/Intermediates/Pods.build/Release-iphonesimulator/YogaKit.build/Objects-normal/i386/YogaKit-dummy.dia -c /private/var/folders/gf/dslbq4t94zg44sz7wnk2lg2r0000gp/T/CocoaPods/Lint/Pods/Target\ Support\ Files/YogaKit/YogaKit-dummy.m -o /Users/guidomb/Library/Developer/Xcode/DerivedData/App-evazeamnsdiztlbpbpbtigpkmeaa/Build/Intermediates/Pods.build/Release-iphonesimulator/YogaKit.build/Objects-normal/i386/YogaKit-dummy.o

** BUILD FAILED **

The following build commands failed:
	CompileC /Users/guidomb/Library/Developer/Xcode/DerivedData/App-evazeamnsdiztlbpbpbtigpkmeaa/Build/Intermediates/Pods.build/Release-iphonesimulator/YogaKit.build/Objects-normal/i386/UIView+Yoga.o /Users/guidomb/Documents/projects/github/yoga/YogaKit/YogaKit/UIView+Yoga.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
	CompileC /Users/guidomb/Library/Developer/Xcode/DerivedData/App-evazeamnsdiztlbpbpbtigpkmeaa/Build/Intermediates/Pods.build/Release-iphonesimulator/YogaKit.build/Objects-normal/x86_64/UIView+Yoga.o /Users/guidomb/Documents/projects/github/yoga/YogaKit/YogaKit/UIView+Yoga.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
 -> YogaKit (1.0.0)
    - ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code.
    - NOTE  | xcodebuild:  /Users/guidomb/Documents/projects/github/yoga/YogaKit/YogaKit/YGLayout.h:11:9: fatal error: 'YogaKit/YGEnums.h' file not found

Pods workspace available at `/var/folders/gf/dslbq4t94zg44sz7wnk2lg2r0000gp/T/CocoaPods/Lint/App.xcworkspace` for inspection.

Carthage is compiling but have you tried using it in a test project? I remember the header files causing issues there too.

On 25 Jan 2017, at 00:56, Dustin Shahidehpour<EMAIL_ADDRESS>wrote:
Awesome progress @guidomb! let us know if we can help with the header import stuff, can you paste the error?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@guidomb I messed around with this last night for a bit too. Here are some takeaways:

Lose the symlink to add the yoga/* files. Just move .swift-version and YogaKit.podspec to the parent directory. @emilsjolander is fine with that.
React-Native has to do something very similar. They have a mirrored copy of yoga in their library. Here's their podspec. Notice how they declare yoga as a subspec and make another react subspec. I think we should go that route too. I tried it last night, but pod lib lint still wasn't happy.

I was able to get it to lint with the changes outlined by @dshahidehpour and adding a header search path: https://github.com/alloy/yoga/commit/e9ede7ed8c6d9bb74e44642dae64310011c55bc8
Additionally I simplified the file selection sets.
Does anyone have an application that this should integrate with that I can test out? Or should this be used inside React Native?

However, I should add that the fix depends on a change that’s in CP 1.2.0, which is currently in RC: https://github.com/CocoaPods/CocoaPods/blob/master/CHANGELOG.md#120beta1-2016-10-28

@hartbit @dshahidehpour I am migrating my current project to use the latest version Yoga and using Carthage with the goal of testing this PR. So far the built generated by Carthage works. Had no issues with header files.
This change forced me to migrate to the new API that @hartbit introduced in #322. Just wanted to say, awesome work! The API feels way more natural in Swift now. One thing I noticed is that both border and position don't support the horizontal and vertical edge cases. Is this correct?

@dshahidehpour @alloy How should I proceed with CocoaPods support? Should I add the changes you have suggested to this PR?

Is your project OSS and/or do you know of one in which this podspec is expected to work for me to test?

…or can you create a simple Hello World app for Yoga for me to test with?

@alloy My project is not open source (yet). I want to open source it but I need to do some work first in order for it to be ready to be published. I don't see that happening any time soon, at least not in the next few day. But I could extract some code from it in order to test CocoaPods integration. I'll try to do that later this day o tomorrow.

@guidomb Yeah just something simple is good enough. I could do it myself, but as I haven’t used the API in anger I might make it too simple.

@alloy OK I'll do that then. I'll try to do that by the end of my day (GMT -03:00) or tomorrow.

Update!
TL:DR; I'm making a Cocoapod specifically for the C-Lib. Once that lands (in a few hours) we can simply add that pod as a dependency to YogaKit's podspec and keep the imports as <yoga/*>.
The reason we are doing this is that we don't want to change the imports of core yoga files to YogaKit. Currently, that's not really possible by adding them all to the same podspec without building a static library (pod lib lint --use-libraries). The problem with a static library is that it won't play nice with Swift Projects (source: @nlutsenko).
I was surprised to learn this because the React Native library uses yoga as well, and they have yoga defined as a subspec. What I learned is that you can only build the React Native pod as a static lib, so, I don't think it works with Swift (need to confirm).

@dshahidehpour OK let me know once that is landed into master. AFAIK it should be a problem for Swift users because we can make YogaKit podspec to create a framework. The static lib should only be for the C code. I am assuming that framework can contain a static lib. Not really sure if my assumption is correct.

This blog post seems to explain how to use static libs inside frameworks.

@guidomb The C-lib podspec is landing now. When we push it, do you think that we should push it as a static lib? I'd be fine with pushing it as a regular framework.

@dshahidehpour Not really sure. I think it would be better to use frameworks because I know that should work we both Swift and Objective-C users. What do you think @alloy ?

TL:DR; I'm making a Cocoapod specifically for the C-Lib. Once that lands (in a few hours) we can simply add that pod as a dependency to YogaKit's podspec and keep the imports as <yoga/*>.

Not entirely sure that should be necessary, but it might make things simpler 👍

The reason we are doing this is that we don't want to change the imports of core yoga files to YogaKit. Currently, that's not really possible by adding them all to the same podspec without building a static library (pod lib lint --use-libraries).

Is this within another project? Because I’m definitely able to pod lib lint both frameworks and static libs with my patches applied.

The problem with a static library is that it won't play nice with Swift Projects (source: @nlutsenko).

Yeah, specifically you can’t build Swift pods as static libs, and with CocoaPods you do either frameworks or static libs.

I was surprised to learn this because the React Native library uses yoga as well, and they have yoga defined as a subspec. What I learned is that you can only build the React Native pod as a static lib, so, I don't think it works with Swift (need to confirm).

Why can it only build as a static lib? It should. Is it because of this issue? (I’m still getting up to speed after a hiatus.)

The C-lib podspec is landing now. When we push it, do you think that we should push it as a static lib? I'd be fine with pushing it as a regular framework.
Not really sure. I think it would be better to use frameworks because I know that should work we both Swift and Objective-C users.

With CocoaPods you don’t make that choice as a pod author, but rather as a consumer of the pods. The default is static libraries, but if you specify use_frameworks! in your Podfile it will build frameworks instead.

Why can it only build as a static lib? It should. Is it because of this issue? (I’m still getting up to speed after a hiatus.)

Yeahp. If you run pod lib lint React.podspec you get the same yoga import errors that we are seeing in this diff. The errors go away when you run pod lib lint React.podspec --use-libraries.
The Yoga.podspec has landed :) Lets use it as a dependency in YogaKit's podspec.
P.S. Thank you @alloy for all your feedback and help!! We really appreciate it :)

Ok, dope. I’ll take a look linting RN’s podspec 👍  I’ll also start using Yoga’s now landed official podspec to pull Yoga into RN instead of a vendored version.
 I kinda feel bad for being gone for a while, I should now be back more consistently to keep RN in shape on CocoaPods.

I've rebased with master and added Yoga as a dependency of YogaKit. pod lib lint passes if the --allow-warnings flags is given. I am getting the following warning
 -> Yoga (1.0.0)
    - WARN  | source: The version should be included in the Git tag.

Because the git tag hasn't been created yet.
I still need to fully test this in project. Later today I will publish the project where I am using Yoga and I'll create a brach to include YogaKit using CocoaPods to make sure that everything is working.
@dshahidehpour remember that once this PR is landed, every time you want to cut a new release you are going to have to publish both Yoga and YogaKit pods to the trunk repository.

Also @dshahidehpour did you have a chance to take a look at my comment in https://github.com/facebook/yoga/pull/352#issuecomment-275403780

One thing I noticed is that both border and position don't support the horizontal and vertical edge cases. Is this correct?

One thing I noticed is that both border and position don't support the horizontal and vertical edge cases. Is this correct?

That is my doing. I based myself off the React Native properties (https://facebook.github.io/react-native/docs/layout-props.html). I think they don't exist for ambiguity reasons. The horizontal margin makes sense, but the horizontal position seems less clear.

I've rebased with master and added Yoga as a dependency of YogaKit. pod lib lint passes if the --allow-warnings flag is given. I am getting the following warning

Yeah I was getting the same warning. I had to use --allow-warnings to create the Yoga pod. We should talk to @emilsjolander about changing the release tags. Go ahead and use the --allow-warnings flag to create your pod.

It's a weird thing to warn about, seems non-important. I'll think about it for the next time. For now let's just ignore the warning. I'll push YogaKit to cocoapods once this has been merged.

Awesome work @guidomb! I'm going to import this, fixup a couple things (update spec description) and merge it! We can continue to iterate after it lands. Thank you so much!

@emilsjolander People would push specs and forget to push their git tags. The warning is correct in that the build would fail in that case.

@alloy Ok good to know the reason behind it. We continuously tag the project so not a problem i foresee us having. Can I remove this lint from the project without disabling all the other helpful warnings?

Hmmm, don't think so, but I'll double check when I'm back at a machine. Nonetheless, this should just pass if you push the tag before the spec during your release process.

Btw, just wanna be sure that you are indeed switching to a different versioning scheme: https://github.com/facebook/yoga/commit/2cc2a5f2ff11765823e2d1c1a2814e8b28e0c191#commitcomment-20632914

@alloy The version number of the project does not match the tag used. See the release for 1.0.0 here https://github.com/facebook/yoga/releases/tag/v2<IP_ADDRESS>

Ok 👌

 -> Yoga (1.0.0)
   - WARN  | source: The version should be included in the Git tag.

Because the git tag hasn't been created yet.

Oops, I didn't read that well.
This warning is not about the tag not having been created yet, but rather that the tag’s name does not include the version (in this case 1.0.0), which does seem something you want to be able to do.
There’s no way to currently disable just that warning. If this remains an issue with future tags, I suggest you file a new issue about it.

I think that the tag name should follow semantic versioning. Otherwise CocoaPods won't be able to checkout the corresponding revision after resolving the version that should be used after running pod install. Not 100% sure though.

No there’s no such requirement. It’s just common and allows you to not have to type out two different versions in the same file, but instead refer to the pod version for the tag’s name. Why do you think it might be required?

@guidomb just a quick heads-up. I'm going to trim this diff so it only contains the Cocoapods support.
Our internal build system is giving us some grief about the changes made for the Carthage support, so, I want to attack that stuff in another diff. Me or @emilsjolander need to create the .xcodeproj and add Facebook as the Organization. We also to need to some work on the .plist files so they work externally, and internally at FB.

@dshahidehpour Btw, want me to send you a PR to run pod lib lint on Travis CI?

@alloy Yes plz! Just an FYI, because of our branch tag, we will have to add --allow-warnings to make it pass.

@dshahidehpour Aye, indeed.
For now, just want to let you know that I’m successfully able to use the core pod in React Native https://github.com/facebook/react-native/pull/12089

@dshahidehpour OK. Let me know if you need any help preparing the project to be Carthage friendly. Do you have an ETA for that?
@alloy I had the impression that tag name must matched pod version but I wasn't really sure. Had the memory of not being able to publish a pod for this reason but it's been a long time since the last time I publish a pod.

@alloy @guidomb Cocoapods support has landed, so I'm going to keep this thread closed. We can talk about Carthage support in #361, or in a new pull request. Thanks!

@dshahidehpour When you say Cocoapods support has landed, any idea if this issue has been solved: https://github.com/facebook/react-native/issues/11781 ? Thank you.

@quentinfasquel No, see https://github.com/facebook/react-native/pull/12089

Thanks @alloy for your quick reply. So that means I should wait?
I found that just adding the 'Core' subspec doesn't trigger the yoga/Yoga.h issue but when I import React will encounter an issue with the C++ lib that's used: 'cstdint' file not found in JSBundleType.h


way to force update?

Is there a way to force the user to upgrade?
Some update is mandatory and user needs to update to use the app. Is there a way to enforce such a scheme?

Hey.
Did you get a work-around for this?? I don't need to use the lib if this is not supported


LiveEventInputProtocol set to SRT doesn´t work

When setting StreamingProcool to SRT causese the following error.

The output path is always RTMP so that is probably the reason for this error.
Update
Changing rtmp to srt in the output url did not fix the issue.

Hello, SRT is only supported for Live encoding, not for live pass-through. Are you using Live Encoding ?

ah.. that must be it.. no I´m just doing live pass-through.
 Encoding = new LiveEventEncoding { EncodingType = LiveEventEncodingType.PassthroughBasic }
maybe it would be good to fire of erro (or log it) if these settings don´t match?

Sure. I added some checks in dev branch https://github.com/microsoft/MK.IO/commit/ada5f595778bd5f02045bdfe991f414cca21ae9a

In latest release https://github.com/microsoft/MK.IO/releases/tag/v2.1.0


fix(curriculum): Css fix for issue #43517: Example css code does not demonstrate hover animation

Checklist:

[ x] I have read freeCodeCamp's contribution guidelines.
[ x] My pull request has a descriptive title (not a vague title like Update index.md)
[ x] My pull request targets the main branch of freeCodeCamp.
[ x] I have tested these changes either locally on my machine, or GitPod.

Closes #XXXXX

This fix responds to issue 43517 where copying the example code does not show how the css should work. The CSS code I have added means this animation will now work as expected.
I have applied this fix to all translations of this question with id 587d78a7367417b2b2512ae0, hence the 6 modified files.
And this is my first open source contribution ever! So please let me know if I have done anything wrong, or if this is an invalid solution.
Thank you.
James

We only need the English file changed here @jamesgeer - you should remove the changes to the other languages. Thanks 👍

We only need the English file changed here @jamesgeer - you should remove the changes to the other languages. Thanks 👍

@moT01 I reverted my commit and applied the changes to only the English file. Is this ok?

LGTM @jamesgeer 🎉
For future reference, it's best to create a branch to work on instead of making changes to your main branch. You can read more about it under #3 here. It's fine for this PR.

Thank you @moT01!
How I did it was by forking this repo, creating a separate branch for this change then once complete I merged it into my main branch, pushed it, then opened a pull request.
So are you saying I should only push the new branch and not merge&push into my main?

Hi @jamesgeer. Congrats on your first pull request (PR)! 🎉
Thank you for your contribution to the page! 👍
We are happy to accept these changes and look forward to future contributions. 📝

Are you saying I should only push the new branch and not merge&push into my main?

Correct. Push the branch to your fork, and make a PR to merge that branch into the main branch of this repo.

Thank you again @moT01 :)
I'm looking forward to making my next contribution to freeCodeCamp!

One other thing I forgot to mention that I should have caught @jamesgeer - We should have put the issue number in the PR description where it says Closes #XXXXX. Then, when this got merged, the issue would have automatically been closed 👍

Ah! I wondered what those x's where for @moT01, I'll add this knowledge to my open source exp bar :^)


MEN-480: Update U-Boot env storage location and variables.

Signed-off-by: Kristian Amlie<EMAIL_ADDRESS>

@eysteins: This is part of https://tracker.mender.io/browse/MEN-480. I'll leave it to you to merge when appropriate. It matches the meta-mender/master branch.


Change Admin UI to Web UI throughout 2.1 docs

[ ] Update all text references to  Web UI.
[ ] Update all image filenames.
[ ] Update all markdown filenames. Tenative approach: Create v2.1/ui subdirectory and give files simpler names, e.g., v2.1/ui/hardware-dashboard.md.

As per the discussion on Slack, I still don't have a clear go-ahead for the project. IMO, naming the UI warrants further discussion. Going to hold off on the issue until after the discussion.

Update: The team's holding off the decision until 2.2. Will revisit the issue then.

@Amruta-Ranade, @piyush-singh, I'm closing this for now. When we actually make the change, let's either re-open this or open a new issue.


Not loading correctly in production only

Hello! I'm using rails 4.2.0, bootstrap 4.1.3, and summernote-rails <IP_ADDRESS>.
Everything works fine locally but is broken on production (Heroku).
Local:

Production:

There are no errors when the editor loads but as soon as you click in to any of the text fields there are the following errors:
First-
    at e.hide (application-817b47c5cec07e4f230739dba0885233c6c215d78b973ccec6560fa46ec08080.js:141)
    at e.update (application-817b47c5cec07e4f230739dba0885233c6c215d78b973ccec6560fa46ec08080.js:141)
    at e.invoke (application-817b47c5cec07e4f230739dba0885233c6c215d78b973ccec6560fa46ec08080.js:142)
    at e.update (application-817b47c5cec07e4f230739dba0885233c6c215d78b973ccec6560fa46ec08080.js:140)
    at HTMLTextAreaElement.summernote.mousedown (application-817b47c5cec07e4f230739dba0885233c6c215d78b973ccec6560fa46ec08080.js:140)
    at HTMLTextAreaElement.dispatch (application-817b47c5cec07e4f230739dba0885233c6c215d78b973ccec6560fa46ec08080.js:33)
    at HTMLTextAreaElement.m.handle (application-817b47c5cec07e4f230739dba0885233c6c215d78b973ccec6560fa46ec08080.js:32)
    at Object.trigger (application-817b47c5cec07e4f230739dba0885233c6c215d78b973ccec6560fa46ec08080.js:33)
    at HTMLTextAreaElement.<anonymous> (application-817b47c5cec07e4f230739dba0885233c6c215d78b973ccec6560fa46ec08080.js:33)
    at Function.each (application-817b47c5cec07e4f230739dba0885233c6c215d78b973ccec6560fa46ec08080.js:22)

Second-
    at i (application-817b47c5cec07e4f230739dba0885233c6c215d78b973ccec6560fa46ec08080.js:139)
    at e.current (application-817b47c5cec07e4f230739dba0885233c6c215d78b973ccec6560fa46ec08080.js:139)
    at e.currentStyle (application-817b47c5cec07e4f230739dba0885233c6c215d78b973ccec6560fa46ec08080.js:140)
    at e.invoke (application-817b47c5cec07e4f230739dba0885233c6c215d78b973ccec6560fa46ec08080.js:142)
    at e.updateCurrentStyle (application-817b47c5cec07e4f230739dba0885233c6c215d78b973ccec6560fa46ec08080.js:141)
    at e.invoke (application-817b47c5cec07e4f230739dba0885233c6c215d78b973ccec6560fa46ec08080.js:142)
    at HTMLTextAreaElement.<anonymous> (application-817b47c5cec07e4f230739dba0885233c6c215d78b973ccec6560fa46ec08080.js:141)
    at HTMLTextAreaElement.dispatch (application-817b47c5cec07e4f230739dba0885233c6c215d78b973ccec6560fa46ec08080.js:33)
    at HTMLTextAreaElement.m.handle (application-817b47c5cec07e4f230739dba0885233c6c215d78b973ccec6560fa46ec08080.js:32)
    at Object.trigger (application-817b47c5cec07e4f230739dba0885233c6c215d78b973ccec6560fa46ec08080.js:33)

Anyone got any ideas? Thanks!

Hmm, both those js errors are from bootstrap.js.

Aand another note. The editor does sorta work even when it looks broken.

As expected, switching the environment to development on Heroku makes everything work correctly. Gah.

@vivekdhar show us your Gemfile. Because maybe you have gem 'summernote-rails', '~> <IP_ADDRESS>' inside of :development.

Here it is - it's available for all environments. Although, given that it "works" even when it looks broken, I don't think that the loading Summernote is the problem. I'm leaning towards some issue with the Bootstrap minification that's causing issues.
I'm going to move to Rails 5 soon - and maybe see if this is still an issue.
source "https://rubygems.org"
ruby "2.3.0"

gem "rails", "4.2.0"
gem "puma"
gem "lograge"
gem "pg"

gem "friendly_id", "~> 5.1.0" # Note: You MUST use 5.0.0 or greater for Rails 4.0+
# memcached client
gem "dalli"
gem "momentjs-rails"
gem "stripe"

gem "sass", "~> 3.5.2"
gem "uglifier", ">= 1.3.0"
# Use CoffeeScript for .coffee assets and views
gem "coffee-rails", "~> 4.1.0"
gem "animate-rails"

gem "chartkick"
gem "groupdate"
gem "remotipart"

# mailchimp wrapper
gem "gibbon"
gem "aws-sdk-v1"
gem "paperclip"
gem "cloudfront-signer"
gem "sentry-raven"
gem "intercom-rails"
gem "intercom"

gem "prawn-rails"
gem "htmltoword"
gem "mandrill-api"
gem "breadcrumbs_on_rails"

gem "jquery-rails"
gem "jquery-ui-rails"

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem "jbuilder", "~> 2.0"
# bundle exec rake doc:rails generates the API under doc/api.
gem "sdoc", "~> 0.4.0", group: :doc

gem 'popper_js', '~> 1.14.3'
gem "bootstrap", "~> 4.1.3"

gem "will_paginate-bootstrap"
gem "bootstrap-timepicker-rails"
gem "bootstrap-datepicker-rails"

gem "jquery-cookie-rails"

gem "roadie", "~> 2.4"

gem "simple_form", '~> 3.5.1'
gem "summernote-rails", "~> <IP_ADDRESS>"

gem "browser"

gem "periscope-activerecord"

gem "httparty"

gem "yaml_db"

gem "devise", "~> 3.4.0"
gem "devise_invitable"

gem "merit"

gem "fastclick-rails"

group :development, :test do

  gem "rack-mini-profiler"
  gem "bullet"
  gem "memory_profiler"

  gem "annotate"

  gem "rspec-rails", "~> 2.14.2"
  gem "capybara"
  gem "shoulda-matchers"
  gem "factory_girl_rails"
  gem "simplecov", :require => false
  gem "selenium-webdriver"
  gem "database_cleaner"
  gem "launchy"
  # Call "byebug" anywhere in the code to stop execution and get a debugger console
  gem "byebug"

  # Access an IRB console on exception pages or by using <%= console %> in views
  gem "web-console", "~> 2.0"

  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  gem "spring"

  gem "pry-rails"
  gem "ultrahook"
end

group :production do
  gem "rails_12factor"
end

@vivekdhar the Gemfile is good. Maybe you have something wrong in app/assets/stylesheets/application.scss. Show us the @import of that file.

Change this:
@import "application/colors.scss";
@import "bootstrap";
@import "summernote-bs4.css";
@import "summernote-custom-theme.min.css";

for this:
@import "application/colors.scss";
@import "bootstrap";
@import "summernote-bs4";
@import "summernote-custom-theme.min";


Publish to npm?

Would you be willing to publish this package to npm?

@davidbarratt As this isn't really inherently a JavaScript package I'm not sure it really belongs there. If you wanted to pull this in for consumption via NPM why not just point directly to the GitHub repository? https://www.pluralsight.com/guides/install-npm-packages-from-gitgithub. I use this approach all the time at work to install packages via composer (the PHP package manager).

Hey @davidbarratt  I was originally questioning how much sense that this made but I've gone ahead and published it. Given that the project already has a package.json file there's no reason not to put it onto NPM.
https://www.npmjs.com/package/tracking-query-params-registry


Missing Microsoft.SqlServer.TransactSql, Version=<IP_ADDRESS>

Since 1.6 we are getting the following warning shown:
build\tools\Addins\Cake.SqlServer\lib\net45\Microsoft.Data.Tools.Schema.Sql.dll (missing Microsoft.SqlServer.TransactSql, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=89845dcd8080cc91)
Is there an additional dependency that needs to be added?
Thanks for the plugin!
Simon

Yes, I've seen this warning too. This comes from bacpac functionality and DLLs that are dependency. Is this warning causing trouble?

Fair enough. This is actually a sub-dependency missing from a nuget package Cake.SqlServer depends on.
I'll what I can do.

Can you guys check what you have in folder c:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SqlServer.TransactSql\?
I only have Microsoft.SqlServer.TransactSql.dll of v12.0 but the warning says it requires v13 and I can't find out if this v13 actually exists and where would I take it from?

After a bit more digging, I don't think this dll Microsoft.SqlServer.TransactSql.dll actually exists or have been distributed by MS.
I've checked my folder c:\Program Files (x86)\Microsoft SQL Server\130\DAC\bin\  - this is the place where SqlPackage.exe is hiding with dependencies. This is the key file for working with BACPAC files. And checking SqlPackage.exe by CheckAsm I see the same problem - missing Microsoft.SqlServer.TransactSql of v13, but GAC only contains v12.
So SQL Server distribution contains this problem. I don't think I can fix it on my own. Unless you know how to put redirectAssemblyBinding for cake scripts.

Options here:

Cut open dependencies (decompile them), recompile them without the required DLL
Implement BACPAC/DACPAC myself: https://msdn.microsoft.com/en-us/library/ff719373.aspx and https://msdn.microsoft.com/en-us/library/hh304998(v=sql.105).aspx
Check for the latest version of SQL Server Data Tools (or whatever it is called) and check if this warning is still there.

Attempt to ILMerge failed:

Could not load ..\Cake.SqlServer\build-results\Merged.Cake.SqlServer.dll (missing Microsoft.SqlServer.TransactSql, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=89845dcd8080cc91)
Compiling build script...
Error: ../Cake.SqlServer/tests.cake(26,10): error CS0103: The name 'LocalDbCreateInstance' does not exist in the current context

Right, I'm out of options on this one I'm afraid - see comments above to what's been tried.
I've spent enormous amount of time on this issue and would like to move on. Warning can't be fixed, unless Microsoft can fix it. So if you know people in MS on Data Tools team - please let me know how can I talk to them, or at least point them to this issue.
Here are the options I have:

Leave it like this and ignore the warning
Leave it like this, but pester MS to fix this
Split Cake.SqlServer into 2 packages - move all functionality related to BACPAC and DACPAC into new Cake.SqlServer.DacFx package. And when you don't need DacFx stuff, just don't load it.

If you choose 3, please suggest best migration strategy to avoid broken builds

@trailmax Have you tried using Costura.Fody instead of ILMerge? It allows to embed dependent assemblies as resources in your Cake addin, which is not as performant as ILMerge but way easier to get to work. It's also already used on a couple of other Cake addins.

@pascalberger I don't think Cosutra.Fody will fix anything here - it still loads assemblies, only from resources and there still will be missing assembly. I'll give it a quick try, but I doubt it will change much.

I think one of the good possibilities is to depricate DacFx from this project and redirect people into Cake.SqlPackage once it is a bit more stable

One more possibility - load the dacfx dlls dynamically only when needed - see this approach https://github.com/cake-contrib/Cake.Recipe/blob/develop/build.cake#L78-L92

I like that approach.

Any progress on this issue. I am trying to integrate with Microsoft Visual Studio Team Services and Cake is exiting with exit code 1 - which kills the build.

@ehuggz Sorry, I run out of options and time for this issue -(
Though strange this issue only gives a warning and should not stop the whole build. I use Cake with this addon on VSTS and indeed it shows an error, but does not stop the build.

It doesn't kill the build for me. It's only a warning, so I'm pretty sure the exit code has to be caused by something else.

Could you update the Microsoft.SqlServer.* dependencies to latest? That might solve this. As of now in version 1.13 of Cake.SqlSerer, Microsoft.SqlServer.* DLLs are on 13.0.3485.1, whereas latest is 14.0.3811.1.

@nawfalhasan tried it, same problem, only other issues down the line - see this branch https://github.com/AMVSoftware/Cake.SqlServer/tree/feature/140

Looks like this is fixed in the lateset release of Cake.SqlServer v2.0.1. I've updated DacFx to v15 and that have fixed this issue.


exp.Parameters/toConditionServer crashes when there aren't any parameters besides num repeats

Can't reproduce this. Only get a crash if numRepeats is zero or empty, not if there are no other parameters.


feat(pixels): add by rightturn

Checklist

[x] I ran npm test locally and it passed without errors.
[x] I only edited the _data/pixels.json file.
[x] I entered the username in the pixels.json that I'm also using to create this pull request.
[x] I acknowledge that all my contributions will be made under the project's license.

Hey @rightturn there seems to be a wrong merge that caused a duplicate pixel which is making the test fail.


uncomitted changes?

Hello, looking forward to using this pipeline. Seems very useful. Trying to run the test dataset and when trying to collect references I ran into a couple issues.
The nextflow.config file contained a params.enable_conda = false which nextflow did not seem to recognize, I changed that to conda.enabled = false. This resolved that error message.
When trying to download with command
nextflow run jsalignon/cactus/scripts/download/download.nf --references --species worm -r main -latest
the following error is thrown...
jsalignon/cactus contains uncommitted changes -- cannot pull from repository
I am new to github and bioinformatics but I think this means its a github issue?

Hi @adoig-umass.
I'd recommend either to specify your own custom config file.
Or if you want to edit the pipeline, clone it and run it locally.
Nextflow is trying to read the file in the hidden nextflow folder which you probably modified. Which is why you're getting this message.

Okay, thank you. I think there are some good suggestions here for me to try after some reading about config files/cloning.


node-fetch somehow confused two connections

This is very weird and so far a one-off event.
Absolutely not sure what's happening here, except I am sure that it shouldn't be happening. My application connects to two different services, here renamed to service1 and otherservice.
FetchError: request to https://service1.com/rest/etc failed, reason: Hostname/IP doesn't match certificate's altnames: "Host: service1.com.com. is not in the cert's altnames: DNS:*.otherservice.com"
    at ClientRequest.<anonymous> (/Users/wmertens/myproject/node_modules/.registry.npmjs.org/node-fetch/2.1.2/node_modules/node-fetch/lib/index.js:1393:11)

I encountered this on macOS 10.13.4, with Node v8.9.4 and node-fetch 2.1.2.
Can you think of anything that might cause this? It's the first time this happened AFAIK and normally everything works fine.

Maybe combination of a racing condition and mutated state?

I couldn't imagine why but probably look into your DNS setup.

AFAIK, no caching on our part, underlying code is nodejs http and socket.
(From my phone)

On May 16, 2018, at 16:19, Wout Mertens<EMAIL_ADDRESS>wrote:
Hmm my DNS setup works perfectly for all other programs… (this is my laptop)
I wonder, is there any value whatsoever being cached (even briefly) by
node-fetch, anywhere?
On Wed, May 16, 2018 at 8:45 AM David Frank<EMAIL_ADDRESS>wrote:

I couldn't imagine why but probably look into your DNS setup.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/bitinn/node-fetch/issues/454#issuecomment-389412663,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADWlpQdp4ReFl5VnEPzgFRdfQIMb6tKks5ty8slgaJpZM4UAGOR
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Ok, in that case I'll upgrade node and close this issue, maybe there's a problem with the dns layer in node


How to set default mode?

How to open by C-r in mode by default:
view:history (C-7) - match:keywords (C-e) - case:insensitive

Set HH_CONFIG variable to:
export HH_CONFIG=rawhistory,keywords,hicolor

e.g. in .bashrc. If you did hstr installation using hh -s >> ~/.bashrc just edit existing values.

Thanks! Docs will be cool.

 Ad docs - please try man hh.


v0.7.0

NOTE: when computing signatures with this release, make sure to enable the oid crate feature of the digest crate you are using when computing the signature (e.g. sha2, sha3). If the oid feature doesn't exist, make sure you're using the latest versions.
Added

pkcs1v15 and pss modules with SigningKey/VerifyingKey types (#174, #195, #202, #207, #208)
4096-bit default max RsaPublicKey size (#176)
RsaPublicKey::new_with_max_size (#176)
RsaPublicKey::new_unchecked (#206)

Changed

MSRV 1.57 (#162)
Bump pkcs1 to 0.4 (#162)
Bump pkcs8 to 0.9 (#162)
RsaPrivateKey::from_components is now fallible (#167)
pkcs1v15: use AssociatedOid for getting the RSA prefix (#183)

Removed

rng member from PSS padding scheme (#173)
Hash removed in favor of using OIDs defined in digest crates (#183)

cc @lumag @npmccallum @Xynnn007


Show line numbers when rendering YAML

Many of the templating errors that Helm produces mention line numbers but these line numbers are from the rendered YAML. For example:
Error: YAML parse error on test-chart/templates/deployment.yaml: error converting YAML to JSON: yaml: line 44: did not find expected '-' indicator

But then when we run helm with --debug to get the rendered YAML, there are no line numbers shown in the rendering. Some of our charts render out to over 3000 lines of YAML it would be helpful to have the line numbers shown and perhaps some colours 😃

PRs from the community to improve this functionality would be most welcome.

But then when we run helm with --debug to get the rendered YAML

Running helm template with --debug, for me, doesn't output the YAML? If it did, it'd probably get me most of the way there, but every time I hit this issue, I'm essentially fumbling in the dark for what is actually wrong w/ the input, since the line numbers are completely divorced from anything in my editor…

You can use grep for that!
helm template -s templates/deployment.yaml . --debug | grep -n '^'

Will print:
install.go:192: [debug] Original chart version: ""
install.go:209: [debug] CHART PATH: /Users/tdecaux/dev/charts/xxxxx

Error: YAML parse error on xxxxx/templates/deployment.yaml: error converting YAML to JSON: yaml: line 34: mapping values are not allowed in this context
1:---
2:# Source: templates/deployment.yaml
3:apiVersion: apps/v1
4:kind: Deployment
5:metadata:
6:  name: release-name
7:  labels:
8:    helm.sh/chart: xxxxx0.1.0
9:    app.kubernetes.io/name: xxxx
10:    app.kubernetes.io/instance: release-name
11:    app.kubernetes.io/version: "0.9.3"
12:    app.kubernetes.io/managed-by: Helm
...

You can use grep for that!

Indeed, your suggestion is very helpful 💖 But this would still be a total pain with complex charts with many templates and involves running a second command. This feature should be in Helm itself IMO.

Possible fix in https://github.com/helm/helm/pull/8699 but there is some dependencies 🙏


in unreal engine source build cant build Dedicated server

i try build with Dedicated  server i get this error :
1>Missing precompiled manifest for 'Convai', 'C:\UE5\tempProject\VSG3\Intermediate\Build\Win64\VSG3Server\Development\Convai\Convai.precompiled'. This module was most likely not flagged for being included in a precompiled build - set 'PrecompileForTargets = PrecompileTargetsType.Any;' in Convai.build.cs to override. If part of a plugin, also check if its 'Type' is correct.
Version 5.2

Hello, to build for windows you will have to comment out a line in convai.build.cs file. comment out the bUsePrecompiled = true line.


Border radius

Is there anyway to add border radius? I tried bored-radius: 4px but it didnt seem to work.
Amazing job btw!
Thanks.

I'm sorry, but I don't think it's possible. This module uses the "SetWindowCompositionAttribute" API in Windows 10, which I understand is impossible to manipulate in detail, such as setting the curvature of a corner. If you know any other way to make the window acrylic effect, please let me know and I will reflect it in the update later. Thank you.

https://github.com/microsoft/microsoft-ui-xaml/issues/1247#issuecomment-698266336

@tscpp This module is not currently using the WinUI. Also, WinUI is currently in beta and is not sure if it can be applied reliably to this module. If WinUI is officially released, we will reopen this issue.

SetWindowRgn (Which is what WindowChrome in WPF uses to set the CornerRadius) works! It clips not only the WPF Window but also to the "DesktopWindowXamlSource" xaml islands child window!

SetWindowRgn is a function included in the c++ Win32 API


Can't get a listing

I can't get a listing using System.Net.FtpClient and FtpServer. I create the server and try a listing and this this the result: https://github.com/talanc/FtpServerTest/blob/master/FtpServerTest/TestCreated.ClientError.txt
I ran the Sample Ftp Server provided and here's the server log: https://github.com/talanc/FtpServerTest/blob/master/FtpServerTest/TestLocal.ServerDebug.txt
I thought I might be using System.Net.FtpClient incorrectly, but I've included a Test Case for ftp.gnu.org and it works.
Is it something on my computer I need to do?

That is strange. PASV works, but not EPSV. It seems that the connection gets reset after the EPSV got received, but my code doesn't close the connection. I'll have to do further investigation.

Also hitting this under the same conditions.

It works now -- thank you.


Uninstall and cleanup

In the case when MAAS will be installed and reinstalled, sometimes with anvil, sometimes with snap or deb there needs to be a way how to cleanup and have environment ready for any other installation, so no leftovers prevent clean install with any of the possible methods.
There are basically two scenarios which needs to be covered

when anvil installation worked as expected, is it enough to run juju destroy-model?
when something goes wrong during install and juju cannot be used

The second scenario will leave postgres snap installed on the machine, it would have mounted data for example
I ended up using combination of these commands
juju destroy-model admin/controller
sudo /usr/sbin/remove-juju-services
sudo umount /var/snap/charmed-postgresql/common
sudo umount /var/lib/snapd/snaps/charmed-postgresql_96.snap

for i in charmed-postgresql juju juju-db maas maas-anvil ; do sudo snap remove $i --purge ; done
rm -rf ~/.local/share/juju
sudo pkill haproxy

It would be great to have some script with smarts which would take care of both successful and failed installation.

Here is my big hammer temporary solution which seams to cleanup all. It is not nice at all but you may find some inspiration there
# timeout is set because I saw cases where it did not finish in 30 minutes and it was not progressing
ssh <IP_ADDRESS> "timeout 900 juju destroy-controller --destroy-all-models --destroy-storage --no-prompt anvil-controller"
for i in 30 31 32 ; do ssh 10.244.40.$i "sudo /usr/sbin/remove-juju-services" ; done
for i in 30 31 32 ; do ssh 10.244.40.$i rm -rf .local/share/juju/ ; done
for i in 30 31 32 ; do ssh 10.244.40.$i sudo snap stop charmed-postgresql ; done
for i in 30 31 32 ; do ssh 10.244.40.$i "sudo umount /var/snap/charmed-postgresql/common; sudo umount /var/lib/snapd/snaps/charmed-postgresql_115.snap" ; done
for i in 30 31 32 ; do ssh 10.244.40.$i "for i in charmed-pgbouncer charmed-postgresql juju juju-db maas-anvil ; do sudo snap remove --purge \$i; done; sudo snap unalias patronictl"; done
for i in 30 31 32 ; do ssh 10.244.40.$i "sudo rm -rf /var/lib/juju" ; done


Unable to build locally

Tried using npm and pnpm and neither would build. "pnpm install" works fine, but running "pnpm dev" throws the following error
- error Failed to load next.config.mjs, see more info here https://nextjs.org/docs/messages/next-config-error

Error: Cannot find package 'C:\Users\x\Desktop\nextjs-portfolio\nextjs-portfolio-x\node_modules\.pnpm\@effect-ts+otel-exporter-trace-otlp-grpc@0.14.1_@effect-ts+core@0.60.5_@opentelemetry+api<EMAIL_ADDRESS>imported from C:\Users\x\Desktop\nextjs-portfolio\nextjs-portfolio-x\node_modules\.pnpm\@effect-ts+otel-exporter-trace-otlp-grpc@0.14.1_@effect-ts+core@0.60.5_@opentelemetry+api<EMAIL_ADDRESS>
Did you mean to import @opentelemetry+exporter-trace-otlp-grpc@0.39.1_@opentelemetry+api<EMAIL_ADDRESS>
   at legacyMainResolve (node:internal/modules/esm/resolve:188:26)
   at packageResolve (node:internal/modules/esm/resolve:767:14)
   at moduleResolve (node:internal/modules/esm/resolve:829:20)
   at defaultResolve (node:internal/modules/esm/resolve:1034:11)
   at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:375:12)
   at ModuleLoader.resolve (node:internal/modules/esm/loader:344:25)
   at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:220:38)
   at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
   at link (node:internal/modules/esm/module_job:84:36) {
 type: 'Error',
 code: 'ERR_MODULE_NOT_FOUND'
}
 ELIFECYCLE  Command failed with exit code 1.

Seems related to the previous issue mentioned here: #17. However, that fix doesn't seem to work.
If related, the root cause of this problem can be found here: contentlayerdev/contentlayer#506
Could not get any of the fixes mentioned in that thread to work. So either a fix or temporary workaround would be great, thanks!

Completely removed the directory and restarted and somehow worked that time, maybe transient error

补充，我发现使用nodejs16可以基本上正常运行，但这似乎不是临时问题
In addition, I found that using nodejs16 can basically run normally, but this does not seem to be a temporary issue


Add a .gitignore to the repo that covers things make creates

When following the setup tutorials make spits out a whole bunch of stuff onto the filesystem, including the results of unit tests that are specific to the machine.
Adding a .gitignore file to the repo would be a simple way to make sure that files specific to the machine simian is currently being built on are not committed to the repo, but organisations can still use git to manage settings.cfg and other config - using the google/simian repo as an upstream to periodically merge changes from.

:+1: