Unable to preselect first option

First of all, thanks for the awesome component!
One issue I found: if I set index=0 no option is selected by default. I expect the first option in the list to be selected by default. If I set any other value for index it works as expected. Below is my code:
        model_id = st_free_text_select(
            label="Model ID:",
            options=[
                "meta-llama/Meta-Llama-3-8B-Instruct",
                "meta-llama/Meta-Llama-3-70B-Instruct",
                "meta-llama/Llama-2-7b-chat-hf",
                "meta-llama/Llama-2-13b-chat-hf",
                "meta-llama/Llama-2-70b-chat-hf",
                "mistralai/Mistral-7B-Instruct-v0.2",
                "mistralai/Mistral-7B-Instruct-v0.3",
            ],
            index=0,
        )

I expect the component to have meta-llama/Meta-Llama-3-8B-Instruct pre-populated but I get blank.
Let me know if you need more info to reproduce. Thanks!

Thanks for pointing out this bug. I just fixed it in the latest release 0.1.2.

It works great now, thanks @hummerichsander !


Error when deploying meteor

⢈⠩ [METEOR-NOW] - building meteor app (this can take several minutes)Possibly unhandled Error: 1
    at Promise$_rejecter (/usr/local/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/promise.js:590:44)
    at /usr/local/lib/node_modules/meteor-now/node_modules/promise-spawner/index.js:85:13
    at tryCatch1 (/usr/local/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/util.js:63:19)
    at Promise$_callHandler [as _callHandler] (/usr/local/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/promise.js:695:13)
    at Promise$_settlePromiseFromHandler [as _settlePromiseFromHandler] (/usr/local/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/promise.js:711:18)
    at Promise$_settlePromiseAt [as _settlePromiseAt] (/usr/local/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/promise.js:868:14)
    at Promise$_settlePromises [as _settlePromises] (/usr/local/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/promise.js:1006:14)
    at Promise$_rejectPromises [as _rejectPromises] (/usr/local/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/promise.js:999:10)
    at Async$_consumeFunctionBuffer [as _consumeFunctionBuffer] (/usr/local/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/async.js:74:12)
    at Async$consumeFunctionBuffer (/usr/local/lib/node_modules/meteor-now/node_modules/promise-spawner/node_modules/bluebird/js/main/async.js:37:14)

Does anyone know what could be the problem?

This doesn't look like an issue with our platform, but rather with your code. However, you can ask the awesome people at zeit.chat for help, if you want.

(this might be correct repo: https://github.com/jkrup/meteor-now )

@ccioloca I have a similar issue. I have marked it here, Please post here if you have a fix for the build issue.

I resolved the problem by migrating to version <IP_ADDRESS> and using the command meteor-now (ROOT_URL+MONGO_URL) with the option -d

Do you have meteor installed?


How do I add marks and add marksheet

Hello
Anytime I try to Manage markaheet, it displays Oops Record not found
How do I fix this pls.?

As I don't use this software anymore and I don't see any contributers, I recommend you use a school management system I built called skuul
Github.com/yungifez/skuul

Okay..  Thanks, I will be on it right away

I am having issues with npm install with your project work Github.com/yungifez/skuul
Can you help me out?


Attempts to run an analysis or alert for storm data fails with a CORS error

There seems to be an issue when an analysis or an alert is created and the hazard layer is on WFP's GeoServer (in this case, ADAM tropical storm data). The same request using a hazard layer on WFP's Open Data Cube responds without an issue
Console error:
Access to fetch at 'https://prism-api.ovio.org/stats' from origin 'http://wfp-prism-mmr-test-v1.s3-website-ap-southeast-1.amazonaws.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Request payload:
{"geotiff_url":"https://geonode.wfp.org/geoserver?service=WCS&request=GetCoverage&version=1.0.0&coverage=wld_gdacs_tc_events_buffers&crs=EPSG%3A4326&bbox=92.2%2C9.7%2C101.2%2C28.5&width=1098&height=2304&format=GeoTIFF&time=2021-04-24","zones_url":"http://wfp-prism-mmr-test-v1.s3-website-ap-southeast-1.amazonaws.com./data/myanmar/admin_boundaries.json","group_by":"TS"}

@ericboucher and @JorgeMartinezG  - can you have a look at this? we've got additional work to do on the expected behavior for storm analysis and alerts, but in the meantime, the CORS error needs to be addressed

@dubwalla somehow it is an API error which is wrapped into a CORS error. You can check the status code server response, by disabling cors for your browser. Using a terminal, run:
open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev_test" --disable-web-scurity

However if you want to check the REAL error you would need to modify the ANALYSIS_API_URL and DEV_ADMIN_BOUNDARIES_URL to point to your local instance: https://github.com/WFP-VAM/prism-frontend/blob/master/src/context/analysisResultStateSlice.ts#L30
Related to the error itself, the payload shows you are executing a WCS request to the wind buffers layer, which is a vector one. Geoserver does not generate geotiffs from vector data using requests.

Thanks Jorge. Indeed, this seemed to be an issue related to the data type


Make Drupal Console install optional

I get this every other time I provision (same install, just adding a new vhost):
failed: [drupalvm] => {"changed": true, "cmd": "php /usr/local/bin/drupal self-update", "delta": "0:00:05.015058", "end": "2015-10-19 19:55:45.169241", "rc": 255, "start": "2015-10-19 19:55:40.154183", "stdout_lines": ["The console has been updated to the latest version.", "x22002000, 0x22012000,", "0x20002020, 0x20012020, 0x22002020, 0x22012020,", "0x20042000, 0x20052000, 0x22042000, 0x22052000,", "0x20042020, 0x20052020, 0x22042020, 0x22052020,", "0x20000000, 0x20010000, 0x22000000, 0x22010000,", "0x20000020, 0x20010020, 0x22000020, 0x22010020,", "0x20040000, 0x20050000, 0x22040000, 0x22050000,", "0x20040020, 0x20050020, 0x22040020, 0x22050020,", "0x20002000, 0x20012000, 0x22002000, 0x22012000,", "0x20002020, 0x20012020, 0x22002020, 0x22012020,", "0x20042000, 0x20052000, 0x22042000, 0x22052000,", "0x20042020, 0x20052020, 0x22042020, 0x22052020,", "0x20000010, 0x20010010, 0x22000010, 0x22010010,", "0x20000030, 0x20010030, 0x22000030,"], "warnings": []}
stderr: PHP Fatal error:  Class 'Symfony\Component\Console\Event\ConsoleTerminateEvent' not found in phar:///usr/local/bin/drupal/vendor/symfony/console/Application.php on line 900

Could we make Drupal Console optional from config.yml?
TODO:

[x] Update playbook to allow drupal console to be installed optionally
[x] Update www.drupalvm.com documentation

That's probably a good idea; there have been Console-related warnings popping up from time to time in the past few months, and it's probably best to let people choose whether they want to add it; drush is more of a requirement, Console is a slick add-on if you're doing a lot of D8 dev.

Done!


Added new file bytesize_video_transcript_talk1.md

@jonoave Phil is right - maybe I wasn't completely clear.
Please move the contents to the end of the already existing markdown file for Bytesize 1 (i.e. the one with the video embedded:
https://github.com/nf-core/nf-co.re/blob/master/markdown/events/2021/bytesize-1-nf-core-into.md
i.e. there shouldn't be new pages/markdown files for the transcripts, but rather updating the existing ones of the video.
If this isn't clear, like Phil says we can talk tomorrow.

The transcript should now be in the correct place, I hope.


Replaces Free boilerplate with @freestyle!

WIP. DO NOT MERGE!
This is what replacing the current Free boilerplate would look like in the Server.
@dialelo @jdesiloniz @juanpedromoreno @rafaparadela @noel @peterneyens thoughts and feedback welcome!
Notice Inject implicits, manual Coproduct alignment, default implicit instances and composed interpreters are no longer required and automatically provided by freestyle. Also notice how interpreters are simple method impls which actual form a FunctionK when extending WhateverOps.Interpreter[M].
More info in this WIP docs as well of what Freestyle does:
https://github.com/47deg/freestyle/blob/master/docs/src/main/tut/algebras.md
https://github.com/47deg/freestyle/blob/master/docs/src/main/tut/modules.md

This looks absolutely awesome, very exciting stuff. No other comments, this is just a great example of the boilerplate reduction given by the library.

I love this!!

This looks amazing, removing all the boilerplate to use the algebras, hurray!

Awesome stuff, :fire: that inject boilerplate.

@dialelo @peterneyens I fixed all remaining Freestyle related compilation issues and right now it's at a point where we just need to bring Github4s to latest cats
[error] missing or invalid dependency detected while loading class file 'Github.class'.
[error] Could not access type RecursiveTailRecM in package cats,
[error] because it (or its dependencies) are missing. Check your build definition for
[error] missing or conflicting dependencies. (Re-run with `-Ylog-classpath` to see the problematic classpath.)
[error] A full rebuild may help if 'Github.class' was compiled against an incompatible version of cats.

@raulraja amazing, I'm waiting for this to go in and I'll update this PR when we release github4s with updated dependencies.

Duplicated by #622


Add testimonial section

Add testimonial section between signup section and footer

Hey @AyushSarode  I would like to add testimonial section in this website so could you assign me?

Hey @AyushSarode May I work on this issue?

Add testimonial section between signup section and footer

Please Can you elaborate?

Add testimonial section between signup section and footer

Please Can you elaborate?

Basically I want to create a testimonial section which is often used to let people know what other people think of our product. I'll create dummy testimonials here and create another issue to fill relevant information which you can assign to anyone else.
Is it okay?

Add testimonial section between signup section and footer

Please Can you elaborate?

Basically I want to create a testimonial section which is often used to let people know what other people think of our product. I'll create dummy testimonials here and create another issue to fill relevant information which you can assign to anyone else.
Is it okay?

Sounds good!
Go ahead.


Animation drop down & Layer panel display issue in Firefox

Bug Description
Visual bug in Firefox when the animation drop down is over the Layers panel. Hovering over where a layer is underneath the dropdown (doesn’t occur when Layers is collapsed):
Expected Behaviour

Steps to Reproduce

Screenshots

Additional Context

Plugin Version:
WordPress Version:
Operating System:
Browser:

Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance Criteria

Implementation Brief

Unable to reproduce on macOS & firefox 84.0

Unable to reproduce

Unable to reproduce


Use Traefik as a Reverse Proxy

Hello!
I would like to ask help or example
How to configure codeceptJS UI behind Traefik Reverse Proxy  Using HTTPS secure connection.
From code side, looks like it's not possible, because there is hardcoded "/api/ports" api call and socket URL.
Any help would be appreciated :)

You can try to change ports if needed -

but if you want to change protocol - thats probably needs to be pull request


Prevent circular dependencies with eslint

Motivation
'import/no-cycle' is expensive computationally, consider restricting its maxdepth
See https://github.com/import-js/eslint-plugin-import/blob/HEAD/docs/rules/no-cycle.md#maxdepth
A lint run in master currently takes Done in 121.30s. in Github Actions (from https://github.com/ChainSafe/lodestar/runs/5137987474?check_suite_focus=true#step:13:38)
In this PR for a failed run it took in 137.5s so the extra time is okay :+1:
Description
Prevent circular dependencies with eslint
See https://github.com/ChainSafe/lodestar/pull/3742 for an example implementation

Related to #6011

@nazarhussain is there a biome rule?

Not at the moment, but hopefully something related to Analyzer will sure come soon.
https://biomejs.dev/analyzer/


Collision shape/RayCast problems

clientPlayer's playerLookingAt property, when plugged into World.get_block_gd, gives weird results (e.g. reports looking at an air block when the player is looking at grass).
This could be an issue with the raycast, the chunk mesh's collision shape, rounding Vector3 components to isizes on the Rust side, or a variety of other strange issues.

Fixed in #7


[Fix #7564] Drop dependency on jaro_winkler gem

Ruby 2.3 and later ship with the did_you_mean gem, which includes a
JaroWinkler implementation.
So there is no need to depend on the jaro_winkler gem that people have
had trouble installing lately.
Fixes #7564 and fixes #7447.

This was a nice idea, but it is too difficult to make this work across all Ruby versions. To be revisited once RuboCop drops support for Ruby 2.3.

Having wasted another hour of my life trying to install rubocop in a container and banging my head against the jaro dependency, I would say that if a nice idea is the difference between being able to install rubocop and not, then it's not just a nice idea anymore.  If it's that difficult, please focus on dropping the ruby 2.3 support. This evening would be nice, so I can finish this bit or work.

I’m aware of this issue and plan to determine and drop support for Ruby 2.3 in the near future. But now is not the time.


Updating RPO deps to support Go 1.22

What type of PR is this?
(maintenance)
What this PR does / why we need it?
This PR updates the dependencies for RPO to support Go 1.22. Additionally there are boilerplate changes too. Functional tests to reconcile the namespace and subjectpermissions was done and it worked fine.
Which Jira/Github issue(s) this PR fixes?
Fixes # OSD-25348
Special notes for your reviewer:
Pre-checks (if applicable):

[x] Tested latest changes against a cluster
[x] Included documentation changes with PR

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

Project coverage is 46.54%. Comparing base (aae0476) to head (89c1b01).

Files with missing lines
Patch %
Lines

main.go
0.00%
4 Missing :warning:

Additional details and impacted files

@@           Coverage Diff           @@
##           master     #183   +/-   ##
=======================================
  Coverage   46.54%   46.54%
=======================================
  Files           9        9
  Lines         752      752
=======================================
  Hits          350      350
  Misses        392      392
  Partials       10       10

Files with missing lines
Coverage Δ

main.go
0.00% <0.00%> (ø)

Thanks, @ravitri for the PR.
/lgtm


AADConnect might need a rephrase

Hi,
The "AADConnect sync" might need a rephrase as "Entra Connect sync", since it's no longer referring to "Azure Active Directory Connect sync".

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

ID: 42ce8623-6117-dd4d-781a-69eabbc5134d
Version Independent ID: 1b7502ce-8dc9-86c1-d768-d8e4fdad08f0
Content: Microsoft Entra Connect Sync: Understand and customize synchronization - Microsoft Entra ID
Content Source: docs/identity/hybrid/connect/how-to-connect-sync-whatis.md
Service: active-directory
Sub-service: hybrid
GitHub Login: @billmath
Microsoft Alias: billmath

@Daynvheur
Thanks for your feedback! We will investigate and update as appropriate.

@Daynvheur
Thank you for bringing this to our attention! We've initiated a pull request (PR) to address this issue. Once the author reviews the changes, they will be merged, and the updates should go live shortly. Your diligence is much appreciated!


Modify the hatch environment to support several authentication method

What does this PR do?

Motivation

Additional Notes

Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] PR title must be written as a CHANGELOG entry (see why)
[ ] Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
[ ] PR must have changelog/ and integration/ labels attached
[ ] If the PR doesn't need to be tested during QA, please add a qa/skip-qa label.

Current dependencies on/for this PR:

master

PR #13918

PR #14135   👈

PR #14136

PR #14137

PR #14103
PR #14095
PR #14094

PR #14105

PR #14080
PR #14078
PR #14077
PR #14076
PR #14079

This comment was auto-generated by Graphite.

Current dependencies on/for this PR:

master

PR #13918

PR #14135   👈

PR #14136

PR #14137

PR #14103
PR #14095
PR #14094

PR #14105

PR #14080
PR #14078
PR #14077
PR #14076
PR #14079

This comment was auto-generated by Graphite.

Current dependencies on/for this PR:

master

PR #13918

PR #14135   👈

PR #14136

PR #14137

PR #14103
PR #14095
PR #14094

PR #14105

PR #14080
PR #14078
PR #14077
PR #14076
PR #14079

This comment was auto-generated by Graphite.


/speed isn't working, shift makes player's movement 0

player speed remains the same after inputting /speed and trying to sprint with it enabled causes them to run in place.

Are you playing as host or as a client connecting to a server?

As a host

Try /speed 15 and look if it changes anything. Also: is it the only mod you are currently using?


Update answers.md

Datadog Technical Excercise submission - Luca Guevara Zamora -<EMAIL_ADDRESS>

<EMAIL_ADDRESS>is the email my Datadog account is with.
<EMAIL_ADDRESS>is the best email to contact me at.


Wallet Security/PIN improvements

Expected Behavior
Prompt on App Open
Default Behavior: off

on opening the app (after setting a pin), the user should be prompted for their pin before being able to see home screen

add an item 'security' to the settings page with a toggle (similar to 'Analytics' section)
"Require PIN on App Open"

Add to Safeguards
Additionally: Add a prompt for pin before viewing either safeguards or the backup key (this is not managed by the toggle)
Current Behavior
no prompt for pin on app open or safeguards

While I was working on this one I got some more questions to ask:

When the app opens -> we ask for PIN, but what happens, if PIN is incorrect? Should we show the screen with a pin pad again? Do we need to set some timeout after a certain amount of wrong tries? @nityas
If app was backgrounded, should we ask for PIN again when user foreground it? If yes - do we need to hide the screenshot of the app (which can have sensitive data on it) in app switcher? @nityas
If user has chosen to use system PIN we can not enforce to ask for it again for the next N seconds (currently N=600), because we are setting this parameter during key the initialization. https://github.com/celo-org/react-native-confirm-device-credentials/blob/55c49dd99a2ecfe68d65ed6f2dec8db0054edb53/android/src/main/java/org/celo/devicecredentials/RNConfirmDeviceCredentialsModule.java#L115-L124. So, essentially we would either need to say no to caching of PIN if we would want to enforce user enter PIN every time app is open? @jmrossy please tell me what do you think, is this correct observation of mine?

Great questions!

Yeah, that feature was merged into master on 4th Nov. See here: #1556

Interesting, could you confirm it works for you in the app itself? It's not for me on latest integration build, will file a bug.

When the app opens -> we ask for PIN, but what happens, if PIN is incorrect? Should we show the screen with a pin pad again? Do we need to set some timeout after a certain amount of wrong tries?

If app was backgrounded, should we ask for PIN again when user foreground it? If yes - do we need to hide the screenshot of the app (which can have sensitive data on it) in app switcher?

how hard is it to set up a timer? eg re-request if it's been > 5 mins. If this adds a lot of scope let's brainstorm alternatives -- better to re-request every time app is foregrounded again, the user can always disable this if they don't want it.

Interesting, could you confirm it works for you in the app itself? It's not for me on latest integration build, will file a bug.

Yes, it does work for me, but it has a couple of caveats:

It does not work in forno mode
When you are using Phone System Pin - it would only re-ask it once in 10 min

after 5 consecutive wrong tries can we set a timeout of 5m? I'd see this as something we make much more sophisticated over time, but overall we'd just want to make this challenging to brute force. Maybe in the future after ~20(should think through this exact number more) consecutive wrong tries we prompt for the seed phrase?

I would prefer to take this out of the scope of this issue and implement it later as a separate one.

how hard is it to set up a timer? eg re-request if it's been > 5 mins. If this adds a lot of scope let's brainstorm alternatives -- better to re-request every time app is foregrounded again, the user can always disable this if they don't want it.

I will hide the app last screen in the App Switcher, but it would only asks for a PIN again in 5-10 min after it was entered last time.
Let me know if that sounds good and I will go ahead!

I would prefer to take this out of the scope of this issue and implement it later as a separate one.

Perfect- agreed on out of scope. Followup issues is here: https://github.com/celo-org/celo-monorepo/issues/2649

I will hide the app last screen in the App Switcher, but it would only asks for a PIN again in 5-10 min after it was entered last time.

Sounds great 👍

See also https://github.com/celo-org/celo-monorepo/issues/2582

Is there an exact timeout for the system PIN?
We are currently setting to 10 min


Network policies related to ingress doesn't work well

I have multi tenant environment and need to isolate my tenants at Network layer.
I've defined 3 network policies:
1.
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-same-namespace
spec:
ingress:

from:

podSelector: {}
podSelector: null

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-from-openshift-ingress
spec:
ingress:

from:

namespaceSelector:
matchLabels:
network.openshift.io/policy-group: ingress
podSelector: {}
policyTypes:

Ingress

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-from-openshift-monitoring
spec:
ingress:

from:

namespaceSelector:
matchLabels:
network.openshift.io/policy-group: monitoring
podSelector: {}
policyTypes:

Ingress

Also because of my ingress controller which is NetworkHost, default namespace has been added the below label
network.openshift.io/policy-group: ingress
However, the traffic could not be recieved by  container. when I deleted the policies, all the things worked well , again.

Please attach/link the necessary info

which part of command "oc adm must-gather" could be helpfull?

Please attach/link the necessary info

Please attach/link the necessary info

which part of command "oc adm must-gather" could be helpfull?

which part of command "oc adm must-gather" could be helpfull?

Please link to a full must-gather

The full must-gather file is a large file (around 4.5GB) and its hard to share it.
Could you guide me to send smaller files ?

http://<IP_ADDRESS>:8080/logs/

You're running 4.5.0-0.okd-2020-08-12-020541, which is month old. Is the bug reproducible on latest version - 4.5.0-0.okd-2020-09-04-180756?

I've defined 3 network policies:

Which namespace is that? Could you attach the output of oc get networkpolicies?

my ingress controller which is NetworkHost, default namespace has been added

Ingress controller is running in openshift-ingress namespace

You're running 4.5.0-0.okd-2020-08-12-020541, which is month old. Is the bug reproducible on latest version - 4.5.0-0.okd-2020-09-04-180756?

-I will update the cluster to 80756. could it resolve the issue ?

Which namespace is that? Could you attach the output of oc get networkpolicies?

Behnam namspaces.
the output of oc get networkpolicies
allow-from-openshift-ingress               3d14h
allow-from-openshift-monitoring            2d23h
allow-same-namespace                       2d23h

Ingress controller is running in openshift-ingress namespace

Yes.its correct. However base on the below link, I added the appropriate label for default namespace. The label is existed for openshift-ingress namespace.
https://docs.openshift.com/container-platform/4.1/networking/configuring-networkpolicy.html
""
_Determine if your default Ingress Controller uses the HostNetwork endpoint publishing strategy:
$ oc get --namespace openshift-ingress-operator ingresscontrollers/default
--output jsonpath='{.status.endpointPublishingStrategy.type}'_
""
What solution could be used? Just update the cluster?

I added the appropriate label for default namespace

Why? There are no pods there

What solution could be used?

It would be nice to ensure it still happens on latest version, but its not guaranteed of course.
Please attach the networkpolicies you've created and your test procedure results

In my environments (Openshift 4.3 and OKD 4.5) these 3 configs are working:
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
  name: allow-from-ingress
spec:
  podSelector:
    matchLabels:
      pflaeging.net/networkrole: ingress
  ingress:
    - from:
        - namespaceSelector:
            matchLabels:
              network.openshift.io/policy-group: ingress
    - ports:
        - protocol: TCP
  policyTypes:
    - Ingress

kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
  name: allow-from-monitoring
spec:
  podSelector: {}
  ingress:
    - from:
      - namespaceSelector:
          matchLabels:
            network.openshift.io/policy-group: monitoring
    - ports:
      - protocol: TCP
  policyTypes:
    - Ingress

kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
  name: allow-in-namespace
spec:
  podSelector: {}
  ingress:
    - from:
        - podSelector: {}
  policyTypes:
    - Ingress

I've added spec.ingress.ports.protocol=TCP to make it work. It's not mentioned in the doc, but after trial and error it's working.
We've added a required label: pflaeging.net/networkrole=ingress for all pods with ingress traffic to support additional auditing. If you don't want this, kick the part out ;-).

spec.ingress.ports.protocol=TCP this will open your networkpolicy for any tcp traffic regardless of the originating namespace


Weird crash from test runners

Description
Bugsnag just reported an error from Google's test runner from bugsnag itself (the irony). See log below
Issue
Crash Log
java.lang.UnsatisfiedLinkError dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/data/app/com.google.android.apps.appcrawler.appexplorer-1/base.apk", zip file "/data/app/com.zinspector3-1/base.apk"],nativeLibraryDirectories=[/data/app/com.google.android.apps.appcrawler.appexplorer-1/lib/x86, /data/app/com.zinspector3-1/lib/x86, /vendor/lib, /system/lib]]] couldn't find "libbugsnag-plugin-android-anr.so"
    Runtime.java:367 java.lang.Runtime.loadLibrary
    System.java:1076 java.lang.System.loadLibrary
    AnrPlugin.kt:12 com.bugsnag.android.AnrPlugin.initialisePlugin
    BugsnagPluginInterface.kt:20 com.bugsnag.android.BugsnagPluginInterface.loadPlugins
    Client.java:282 com.bugsnag.android.Client.loadPlugins
    Client.java:259 com.bugsnag.android.Client.<init>
    Bugsnag.java:77 com.bugsnag.android.Bugsnag.init
    BugsnagReactNative.java:76 com.bugsnag.BugsnagReactNative.startWithConfiguration
    MainApplication.java:67 com.zinspector3.MainApplication.onCreate
    Instrumentation.java:1013 android.app.Instrumentation.callApplicationOnCreate
    MonitoringInstrumentation.java:421 androidx.test.runner.MonitoringInstrumentation.callApplicationOnCreate
    ActivityThread.java:4707 android.app.ActivityThread.handleBindApplication
    ActivityThread.java:-1 android.app.ActivityThread.-wrap1
    ActivityThread.java:1405 android.app.ActivityThread$H.handleMessage
    Handler.java:102 android.os.Handler.dispatchMessage
    Looper.java:148 android.os.Looper.loop
    ActivityThread.java:5417 android.app.ActivityThread.main
    Method.java:-2 java.lang.reflect.Method.invoke
    ZygoteInit.java:726 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
    ZygoteInit.java:616 com.android.internal.os.ZygoteInit.main

Device from the log:
batteryLevel
0.9
brand
generic
charging
true
cpuAbi
[
  "x86",
  "armeabi-v7a",
  "armeabi"
]
dpi
160
emulator
true
freeDisk
3120316416
freeMemory
196955176
id
e74ce67f-b43b-4e54-804f-0d0f82672ce4
jailbroken
true
locale
en_US
locationStatus
allowed
manufacturer
unknown
model
WindsongAOB
networkAccess
cellular
orientation
portrait
osName
android
osVersion
6.0.1
runtimeVersions
{
  "osBuild": "calypso-eng 6.0.1 MMB30Y eng.cover.20180905.174025 test-keys",
  "androidApiLevel": "23"
}
screenDensity
1
screenResolution
1232x720
time
2019-09-30T22:40:53.000Z
totalMemory
201326592

Environment
Library versions:
RN: 0.60.5
Bugsnag: 2.23.2

iOS/Android version(s): Android

simulator/emulator or physical device?: Unknown

debug mode or production?: Prod

[X] (Android only) BugsnagReactNative.start(this) is present in the
onCreate method of your MainApplication class?

I don't really know where is this coming from, all I have is bugsnag's info itself. But looking at the crash, looks like a bugsnag unhandled case.

Hi @cristianoccazinsp
This looks suspiciously similar to the first case mentioned here:
https://github.com/bugsnag/bugsnag-react-native/issues/369#issuecomment-517284896
(it's a different Bugsnag lib that it's struggling to find but the root cause could be the same).
In that case the error was due to side-loading an APK split generated from an App Bundle which was the wrong architecture for the device.
Is it possible the APK you're testing with is the wrong architecture for the device?
If you think there may be a different cause it would be useful if you could write into<EMAIL_ADDRESS>with details of your account and a link to the error in your Bugsnag dashboard so we can analyze the error report in more detail.
Thanks!

That is the main issue, we don't know who loaded the APK, but it most
likely came from Google's auto testing when an app is published.
Since it didn't come from a real user I'm not too worries about the issue,
but perhaps it was useful for you guys.
El mar., 1 de octubre de 2019 10:47, Matt Young<EMAIL_ADDRESS>escribió:

Hi @cristianoccazinsp https://github.com/cristianoccazinsp
This looks suspiciously similar to the first case mentioned here:
#369 (comment)
https://github.com/bugsnag/bugsnag-react-native/issues/369#issuecomment-517284896
(it's a different Bugsnag lib that it's struggling to find but the root
cause could be the same).
In that case the error was due to side-loading an APK split generated from
an App Bundle which was the wrong architecture for the device.
Is it possible the APK you're testing with is the wrong architecture for
the device?
If you think there may be a different cause it would be useful if you
could write into<EMAIL_ADDRESS>with details of your account and a
link to the error in your Bugsnag dashboard so we can analyze the error
report in more detail.
Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/bugsnag/bugsnag-react-native/issues/410?email_source=notifications&email_token=ALU263HNQIROCL2CNKC2U7TQMNIIDA5CNFSM4I4BXIAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEABKKRI#issuecomment-537044293,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALU263CNF3KNUJIPP7HMJ33QMNIIDANCNFSM4I4BXIAA
.

We believe it's probably some issue with the wrong APK/bundle being loaded for that device, or something specific to the Google sandbox emulator.
We don't think it's likely to affect real users who've downloaded apps via official channels.
Really appreciate the report but I think in this case we'll close as I don't think Bugsnag is ultimately the cause.
Thanks!

@cristianoccazinsp
Note that we've recently found some other possible reasons for linkage errors like this. Please see our guidance here:
https://github.com/bugsnag/bugsnag-react-native/issues/369#issuecomment-541596996


Date tests: force locale

These tests call the date command line which would print values in your current locale and would make the tests formats 1/2/3/4 fail.
cd sql && ./test_data.sh now works even if your LC_TIME is set to something as weird as fr_FR.UTF-8 before

@skiplabsdaniel

LGTM. Thanks for doing that.


[kitchen] Fix install script kitchen test not finding apt/yum repo

What does this PR do?
Makes the chef recipe used by kitchen to launch the install script work again, following a change in the install script.
Motivation
We modified our install script to make it work for any release branch and component.
However this broke the kitchen tests, which use sed to replace parts of the install script to make it work with the testing repository.
A more durable solution would be to use the new environment variables provided (which would require more work on the chef recipe used in the kitchen test), but this should be enough to unblock the pipeline for now.
Additional Notes
Only merge this once the kitchen tests are OK.

Now that I think about it, this could have been fixed by actually using the env var DD_AGENT_DIST_CHANNEL and removing some seds.

I agree that we can do better than this, but for now the most important is to get the RCs rolling. We can go back to this when we have more time to tackle improving the recipe.


fix for #2451

Problem #2451 exists not only on linux. Windows just doesn't allow executable to remove itself.
Problem is when paket init run with --from-bootstrapper it does not download bootstrapper. It's consistent decision, but after that its trying replace .paket/paket.exe with paket.bootstrapper.exe downloaded (or not) in first step.
This fix is symptomatic - download paket.bootstrapper.exe every time.
100% correct solution would be to replace .paket/paket.exe with bootstrapper from which paket --from-boostrapper was called.
But finding parent process is platform-dependent and quite hairy for both .net framework on windows and mono on linux. I'm not sure its better than symptomatic fix.
Plus downloading fresh bootstrapper every time is not a bad idea:  paket --from-bootstrapper can be called from outdated bootstrapper.

/cc @vbfox what do you think?


Refactor complex method calculator buttons content slot, in mobile app module

Issue detail:
Refactor complex method calculator buttons content slot, in mobile app module.

Closed as fixed in #153


Multi-value inserts get formatted awkwardly

This SQL fragment
INSERT INTO bla VALUES (1, 2), (3, 4), (5, 6);

gets formatted into this
INSERT INTO bla
VALUES (1,
        2), (3,
             4), (5,
                  6);

Instead I would expect something like:
INSERT INTO bla
VALUES
    (1, 2),
    (3, 4),
    (5, 6)
;

I want to +1 this.

Same issue, +1


Docker credentials fails for secrets created with kubectl v1.13.0

If you create a dockerconfigjson secret for use as an imagePullSecret, using kubectl v.1.13.0, fluxd is not able to parse it when it comes to scanning the image registry.
The reason is that the format generated by v1.13.0 is different to that prior: using v.1.12,
$ kubectl create secret docker-registry docker-reg-secret --docker-server=private.dockerrepo.com --docker-username=xxxxx --docker-password="xxxxx"<EMAIL_ADDRESS>--dry-run -o json | jq -r '.data[".dockerconfigjson"]' | base64 -d
{"auths":{"private.dockerrepo.com":{"username":"xxxxx","password":"xxxxx","email":"xxx@xyz.cim","auth":"eHh4eHg6eHh4eHg="}}}

Using v1.13.0:
$ kubectl create secret docker-registry docker-reg-secret --docker-server=private.dockerrepo.com --docker-username=xxxxx --docker-password="xxxxx"<EMAIL_ADDRESS>--dry-run -o json | jq -r '.data[".dockerconfigjson"]' | base64 -d
<EMAIL_ADDRESS>
It's the lack of an auth field that trips fluxd up; but the capitalisation might also cause a problem. It's unclear whether this was an entirely deliberate change; we can probably work around it by looking for Username and Password fields (in preference to decoding auth, even).

@awh tracked this down to https://github.com/kubernetes/kubernetes/commit/9f5c2aea1a398b7afa045d28fa35aeaa1612bd18, which redefines DockerConfigEntry without the Auth field and without the JSON struct annotations.

This doesn't seem to be the case, following this issue, this is still ending in the same failure mode for me when generating the secret with both 1.13.2 and 1.14.
In my case fluxd is built with kubectl 1.14 as well, and I'm still getting:
ts=2019-05-04T17:29:10.903152477Z caller=images.go:148 component=cluster resource=repo:deployment/repo err="decoded credential has wrong number of fields (expected 2, got 1)"


merge from arlac77/npm-package-template

package.json

chore(scripts): cover@#overwrite c8 -x 'tests/**/*.mjs' --temp-directory build/tmp ava && c8 report -r lcov -o build/coverage --temp-directory build/tmp
chore(engines<EMAIL_ADDRESS>chore(package): add main from template
docs(package): remove keyword null
chore(package): set $.ava.require='esm' as in template
chore(package): set $.ava.files='tests/*-test.mjs' as in template
chore(package): set $.ava.extensions='mjs' as in template
chore(package): remove unknown value for main ({{main}})

.travis.yml

chore(travis): remove node versions 10.16.2
chore(travis): add node versions -10,-11,-12,10.16.3

Coverage remained the same at 71.775% when pulling 4b567c2541520465845e5178cdd56da5bba4290c on npm-template-sync/1 into 1f35dda6a29c6454f7960d3c6ed4af1fe40c428f on master.

Codecov Report

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

@@           Coverage Diff           @@
##           master     #562   +/-   ##
=======================================
  Coverage   95.72%   95.72%
=======================================
  Files           6        6
  Lines         468      468
  Branches       74       74
=======================================
  Hits          448      448
  Misses         17       17
  Partials        3        3

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 1f35dda...4b567c2. Read the comment docs.


merge master to qa

Coverage increased (+0.9%) to 82.857% when pulling 2e6414f4796b506bcc5368b46b1fcc2e38fb7788 on master into cb613329480b6e1d41a60c42ecb34bde5037b941 on qa.


Feature scripts

This adds support for adding arbitrary run scripts to a project, and the ability to invoke them from struct directly, a la npm's run-script command.

Changes Unknown when pulling 1062c55451abcaaddc71d9e10086ce84d5906fe3 on feature-scripts into ** on develop**.

Coverage increased (+1.4%) to 89.319% when pulling 1062c55451abcaaddc71d9e10086ce84d5906fe3 on feature-scripts into afd8ea58ac7aa4b25a0924a2096a099c4152cdf8 on develop.

Feature no longer planned, may be reissued at a later time


Initial CMake mingw-w64 port

This PR allows to build everything except NorthstarDLL using CMake+mingw-w64 under a Linux host.

[ ] Port NorthstarDLL (requires OpenSSL, libcurl)

currently requires you to ship
libwinpthread-1.dll
libstdc++-6.dll
libgcc_s_seh-1.dll

If you use static flags it makes every single file be 17MiB in RelWithDebInfo...

We were going to do this with meson and mingw-w64 with msvc (see NorthstarStubs and some of the discussions on Discord).

You still working on this? :>

Closing as outdated and stale.


Pull images from database

Description
We can now pull and push to the database.
Type of change
Please delete options that are not relevant.

[x] New feature (non-breaking change which adds functionality)

Change Status

[x] Complete, tested, ready to review and merge

How Has This Been Tested?

Manually tested with observers watching me

Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] My code has been reviewed by at least one peer
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[x] There are no merge conflicts

Code looks good and we can merge.


Enable Log2, Log3, Log5; rename E as NatLog and Pi as Radian

These enhancements will allow us to create exact versions of root2, root3, etc.
Naming of factors will be a bit more logical now.

Actually, this requirement has been redefined. Log2 remains but Log5 changed to Log10 and Log3 has been removed.
However, two new factors have been introduced: Root2 and Root3 for square and cube roots.


[IOAPPX-297] Add AlertEdgeToEdge and relative provider

Short description
This PR adds the new AlertEdgeToEdge, a special version of the Alert component that will be used to convey important information about the state of the IO App at the top of the screen.
List of changes proposed in this pull request

Add the new AlertEdgeToEdge component
Add the new AlertEdgeToEdge provider to show/hide the component at the root level (above headers managed with react-navigation)
Add the new custom entering/exiting animations for this specific component

Preview

Static
Pressable

Known issue

[!warning]
On Android, when you show/hide the component, at the third time you get a inconsistent behavior

How to test
Describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

Launch the example app
Go to the Alert screen

@dmnplb Can we close this now since the merge of #321?


Deprecate [Continuousphp] service

Closes #5811.

Messages

:book:
:sparkles: Thanks for your contribution to Shields, @PyvesB!

  Generated by :no_entry_sign: dangerJS against 8897e6baa940b4d7bd10d8d067d54ec3f8066ca7

Thanks for this! Going to go ahead and let ranger merge it to hopefully get the service tests green again


Add support for Angular Universal

Now that Angular Universal has landed and is properly supported through Angular CLI, we should also support it and provide an out-of-the-box DX for SSR (Server-Side Rendering).
Tasks:

[x] Add universal support prompt ("Do you want server-side rendering?")
[x] Add needed template files (see https://blog.angular.io/angular-5-1-more-now-available-27d372f5eb4e)
[ ] Add server angular app for SSR
[ ] Create separate tool (or ngx-scripts addition?) to generate NodeJS server based on https://github.com/angular/angular-cli/wiki/stories-universal-rendering#step-1-prepare-your-app-for-universal-rendering
[x] Add npm scripts to generate browser & server dist folder

See also https://github.com/angular/universal-starter for reference

Any updates on this?

I followed the steps on https://angular.io/guide/universal,
the build is done fine and after clearing some errors just like 'document and window' variables i got an error Zone is not defined
Anyone else makes it work with ngx rocket ?

@creal73 is still working on this, Angular 6 may have changed some things regarding universal support so existing code needs to be adapted, stay tuned!

Work is in feature/universal branch. Need to update the code using "Gotchas" to prevent window, localStorage, sessionStorage running on server side

I just crossed this bridge myself finally and I think there are some design decisions that should be made for this.  I wanted to share some of the things I learned along the way here...

the angular universal docs suggest having a separate app.server.module.ts ... but in my case I found it pretty necessary to take it a bit further and split off the browser/cordova app module too so I can prevent certain things from getting into the server build at all (external dependencies in particular).
I'm now in the process of taking THAT even further and splitting the browser and cordova modules - it looks like this is gonna shave a few hundred K off the main bundle for the browser... there's stuff I don't want in the cordova build anyway, like the service worker.
along those same lines, I ended up making an injectible called PlatformService (an abstract class) and PlatformServer and PlatformCordova implementations of it (e.g. localstorage shim, onCordovaReady, getVideoRecordingPermissions, etc) - that way my application code doesn't have to care about any of that.

There may be other approaches to some of this, but after lots of trial and error this is what I settled on.  Do you have any preferences?
There are other little details too related to configuratons, directories, npm scripts, etc.  But those are probably minor enough to deal with in a PR.

I just noticed I missed that there's already a working branch :clap: woohoo.
I wanted to add a couple things to the consideration of whether it's worthwhile to split the cordova and browser builds:

Looks like https://github.com/angular/angular/pull/26002 is gonna get in, and it should allow the service worker to be disabled dynamically if we're in cordova even with AoT:  ... it's going into 8, so I guess timeline becomes a factor.
I forgot to mention some context for the build-size savings I mentioned above:

it was about 200k+ difference in the minified, but not gzipped size

it was with a moderate amount of plugins - pasting cordova and ionic native stuff in package.json below:
"@ionic-native/android-permissions": "5.0.0-beta.21",
"@ionic-native/camera": "^5.4.0",
"@ionic-native/core": "5.0.0-beta.21",
"@ionic-native/device": "5.0.0-beta.21",
"@ionic-native/splash-screen": "5.0.0-beta.21",
"@ionic-native/status-bar": "5.0.0-beta.21",
"cordova-android": "^7.0.0",
"cordova-custom-config": "^5.0.3",
"cordova-plugin-android-permissions": "^1.0.0",
"cordova-plugin-camera": "^4.0.3",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-file": "^6.0.1",
"cordova-plugin-file-transfer": "^1.7.1",
"cordova-plugin-ionic-keyboard": "^2.1.2",
"cordova-plugin-ionic-webview": "^2.3.2",
"cordova-plugin-media-capture": "^3.0.2",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.1",
"cordova-plugin-whitelist": "^1.3.3",

So I'm not sure the 2xxK savings is worthwhile for EVERYONE to justify the added complexity and build time after ng8 lands.  But I do think having a separate module for non-server is pretty necessary for keeping misbehaving code off of the server.

along those same lines, I ended up making an injectible called PlatformService (an abstract class)
and PlatformServer and PlatformCordova implementations of it (e.g. localstorage shim,
onCordovaReady, getVideoRecordingPermissions, etc) - that way my application code doesn't have > to care about any of that.

I like this idea a lot! 👍
One of the initial goal of this project was to keep the same codebase running for all target, so having distinct app modules for server/browser itch me a bit, but maybe that  could not be avoided.
On the other hand, having all target-specific services/class with dedicated modules in the idea of your PlatformService is really nice, as it clearly allow to separate platform specifics from the business code, while allowing to exclude the cordova dependencies from browser module and so on.

:D believe me it itched me a lot too and I'm still applying ointment.  After many unsuccessful workarounds (and 30 minute builds) to resist it, I finally gave up.
Now my QA deployments take forever, but at least I can have SSR, service worker, and cordova builds living in harmony.
I'll try to pitch in a bit on this when I have a chance.

Any updates?


[AMBARI-22946]. Download client configs API failing with 500 server error (amagyar)

What changes were proposed in this pull request?
same as AMBARI-22946 for branch-2.6
How was this patch tested?
same

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/515/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/518/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/519/
Test PASSed.


msys2 64-bit is installed when running on 32-bit OS

Describe the bug
Some ports (FFmpeg, ICU) require MSYS2 package. But vcpkg downloads 64-bit version which can't be launched on 32-bit OS.
Environment

OS: Windows 8.1 32-bit
Compiler: msvc 2019 (Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30146 for x86)
vcpkg-tool version: 2022-07-21-a0e87e227afb536c62188c11ad029954f28fdb22
vcpkg-scripts version: e20e1c790 2022-07-27 (20 hours ago)

To Reproduce
Steps to reproduce the behavior:

./vcpkg install ffmpeg:x86-windows
See error

Expected behavior
MSYS2 for 32-bit is downloaded.
Failure logs
-- Using cached msys-bash-5.1.008-1-x86_64.pkg.tar.zst.
...
-- Building ffmpeg for Release
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:96 (message):
    Command failed: D:/vcmi-build/vcpkg/downloads/tools/msys2/79d5b6b790550399/usr/bin/bash.exe ./build.sh
    Working Directory: D:/vcmi-build/vcpkg/buildtrees/ffmpeg/x86-windows-rel
    Error code: This version of %1 is not compatible with the version of Windows that you're running. Check your computer's system information and then contact the software publisher
    See logs for more information:

Call Stack (most recent call first):
  ports/ffmpeg/portfile.cmake:548 (vcpkg_execute_required_process)
  scripts/ports.cmake:147 (include)

Additional context
Had the same issue with Ninja, but that was easily solved by symlinking my built version into expected location: https://github.com/microsoft/vcpkg/issues/21482#issuecomment-1198195050

cc @dg0yt @Neumann-A

cc @dg0yt @Neumann-A

Why are we getting pinged? If I remember correctly @ras0219-msft did the rewrite of the msys stuff.
If I also remember correctly there is no x86 version of msys anymore. (the x86 toolchain still exists but that won't help will the underlying tools)

Yeah... the upstream doesn't support x86 now: https://repo.msys2.org/msys/

Yeah... the upstream doesn't support x86 now: https://repo.msys2.org/msys/

i686 packages are still there, but 32-bit installer is no longer published, last release that contains it is https://github.com/msys2/msys2-installer/releases/tag/2020-05-17.
Please provide a workaround for using local copy of msys2.

@kambala-decapitator Can you please make a PR to fix this?


Don't clash with GH Actions runner's containerd

GH runners now have a systemd-run containerd running on the standard
socket, impacting the CRI test's expectation of our CI-built containerd
running there.
Signed-off-by: Phil Estes<EMAIL_ADDRESS>

Looks like we're fixed:
Client:
  Version:  d78c947
  Revision: d78c947d016448bcc8cdee8ace42ce2510d9563b
  Go version: go1.13.13

Server:
  Version:  d78c947
  Revision: d78c947d016448bcc8cdee8ace42ce2510d9563b
  UUID: 8078072c-7a41-48fb-bfdf-05cf046d4fe0


Ubuntu 18.04 support for ONE 5.4

Description
Backport support for Ubuntu 18.04 for ONE 5.4
Progress Status

[x] Branch created
[x] Code committed to development branch
[x] Testing - QA
[x] Documentation
[x] Release notes - resolved issues, compatibility, known issues
[ ] Code committed to upstream release/hotfix branches
[ ] Documentation committed to upstream release/hotfix branches

PRs to merge:

https://github.com/OpenNebula/one/pull/2572 to one-5.4
https://github.com/OpenNebula/packages/pull/38 to one-5.4
https://github.com/OpenNebula/docs/pull/421 to one-5.4-maintenance


Case insensitive option

Hi,
First of all thanks for your work, it works well and it's really useful.
What do you think of an option to make a case insensitive search for city/country names. I'm trying to do it for my project, I can send you a PR if you want and I succeed.

Hi, thanks for your answer.
I'm sorry albertc1, I made a custom solution before seeing your message, so I didn't try your fork. Thus I can't tell you if it worked well for me.
Good luck for everything


Ratiation or Radiation

I saw this a lot in the code and I thought it was a typo... but then I see it even here:
https://github.com/OceanBioME/OceanBioME.jl/blob/2815e3633cc16a2a7bb732bdd85b1b4768330326/src/Light/2band.jl#L1
Is it a typo or a term I am not aware of?
If it's actually legit then note I may have replaced some with radiation in the docs...

This is a typo

Ah dear its even in the public API

Keep calm and bump a minor release.


False equality with Immutable Records

Recently upgraded to Jest 21.0.2, and some equality tests relating to comparing Immutable Records started failing.
I was able to trace the problem back to this library, in the utils.js file for iterableEquality.
It turns out that iterable equality falsely identifies Immutable Records as iterables (likely because of this line:
  if (a.size !== undefined) { // Immutable Records also have a size prop

since IRs (Immutable Records) have a size property.
It then constructs a new object out of the properties of the compared objects (by combining them in an array and passing that array to the constructor of the a property), but merely compares the size of the newly constructed Record to the old a record and nothing else. It seems that when constructing a new Record out of the merged properties, Immutable uses the first reference listed in the array, not the second, to build the Record.
That means that if you have two Immutable Records of any kind that have the same properties, (nevermind the contents of those properties), this test will erroneously pass and not bother to look deeper in the records.
The real concern here is that the duck-typing utilized in iterableEquality is brittle, and subject to whether or not two constructed objects have a size param, and how they construct themselves.
Workaround: Convert Immutable Records to plain JSON objects and compare those instead, or stringify them and do the same.

Issues with expect v21+ need to be filed in the jest repo.

Moved to https://github.com/facebook/jest/issues/4472


feat: add route to snek/assets

Thank you for your contribution to the KodaDot NFT gallery.
👇 _ Let's make a quick check before the contribution.
PR type

[ ] Bugfix
[x] Feature
[ ] Refactoring

What's new?

[x] PR closes #3875
[ ] Requires deployment <rubick/magick_issue>
[x] <brief_description_of_what_I've_added>
add route + add explanation

Before submitting Pull Request, please make sure:

[x] My contribution builds clean without any errors or warnings
[x] I've merged recent default branch -- main and I've no conflicts
[x] I've tried to respect high code quality standards
[x] I've didn't break any original functionality
[x] I've posted a screenshot of demonstrated change in this PR

Optional

[ ] I've tested it at </rmrk/collection/26902bc2f7c20c546a-1FVG7>
[ ] I've tested PR on mobile and everything seems works
[ ] I found edge cases
[ ] I've written some unit tests 🧪

Had issue bounty label?

[x] Fill up your KSM address: Payout

Community participation

[ ] Are you at KodaDot Discord?

Screenshot

[x] My fix has changed something on UI; a screenshot is best to understand changes for others.

wfm :) let's wait for quick code review from @prachi00 and it's gtg

pay 50 usd

😍 Perfect, I’ve sent the payout
💵 $50 @ 46.83 USD/KSM ~ 1.068 $KSM
🧗 EgCzZLpVe7zg7RHh79qPyC8UrykVkA22YY2oj7sWMZf15Ws
🔗 0xb79547be390bee6a7af580cd0195363453fc9a15c82cd2bc3f1276bf1f6843a6
🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues


https://redmine.legimi.com/issues/34763

Since 9x% of the code is transferred from another source and I suppose to not add comments for this
It is impossible for me to check your changes.
For future If you are planning to use & modify external code, make two steps.
First move code.
Second - make pr from your changes.


Fix: unordered list's inconsistent stack spacing

Jira
N/A
Summary
Fixes an issue where the unordered list has less stack spacing than usual.
Details
Sets the margin-bottom on bolt-ul to be medium, the same value we use for bolt-ol.
How to test
Pull down and run the branch locally. Stack 2 ordered lists and 2 unordered lists in a dummy page, compare them side by side and make sure they line up perfectly.

PR was released with v2.13.0


Patch protobuf to resolve CVE-2024-24786 for External-Provisioner

Issue #, if available:
Description of changes:
Fixes CVE-2024-24786
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm
/approve


[WIP] Storage Options: EFS, Dynamic Provisioning on Kubeflow 1.3

Description of your changes:
Storage Options: EFS, Dynamic Provisioning on Kubeflow 1.3 includes -

[x] Updates to the README to add dynamic provisioning for EFS
[x] Required storageClass Spec file

[In-progress] Testing

[ ] Tested that I could follow the README to provision an instance of EFS filesystem and use it to load a Kubeflow Notebook Server.

Checklist:

[ ] Unit tests pass:
Make sure you have installed kustomize == 3.2.1

make generate-changed-only
make test

Pausing on dynamic provisioning for now.


Matching Words and Rune

Testing around with Polyglot, I notice that the letter while may have matching rune but if you create a word out of it, it's ignore matchings lettesr and just use the different rune. I don't know if this is intent that but if possible can we have it so that each letter in a word has it own matching Rune?

It is intended, it is complete RNG.
Making characters use the same rune on different words: possible.
Making runes unique to those letters: impossible.
There's only 62 possible runes (numbers + upper/lowercase letters), so you'll still get repeated runes for different characters (e.g. 1 and b might use the same rune).
Example: E and S have the same rune of 1 and ), respectively.


🛠 Trumbowyg 3 (WIP) • Open Discussion • Feedback are welcome

Trumbowyg 3
Hey, I'm Alex-D, aka Alexandre Demode. I'm a French Web Developer who has created Trumbowyg in 2012.
I left my job to devote myself to Trumbowyg and freelance.
If you can and want to support me, feel free to donate me recurring via GitHub Sponsor or via Patreon or one-time via PayPal.
Why?
First, Trumbowyg is old and based on jQuery. Nobody wants that anymore.
To remove jQuery, I need to rewrite a lot of code in core and plugins. As long as I need to rewrite a lot of code, I want to rewrite all the code and try a new structure for better modularity, flexibility, and extensibility.
Goals

Vanilla JS
Get rid of execCommand
~20ko for the core (8-10ko gzip)
API driven
Split Core and UI (see below)
Unit tests for the Core
Better Documentation
Explicit calls (no more wizardry)
TypeScript description file
Official support of Vue.js, React and Angular

Details by module
Core

Abstract Syntax Tree: allow to split editor content from output format (semantic HTML, non-semantic HTML, custom HTML, Markdown, ...)
History, Ctrl+Z 📚
Clipboard, for pasting things from anywhere without explosion 💥
Keyboard, for shortcuts ⌨
Mobile support
CJK IME (composition) support
Better API
Simplified Selection manipulation

UI

Button Pane (relative, fixed, floating)

dropdown
button

Modals

input (text, file, checkbox, radio)
select
confirm
cancel

Themes

Default
Dark
Maybe more, like a Material one

Why am I posting that here?
I want to get feedback as soon as possible in the development process.
So if you guys have some links to share which can help me,
or some ideas you want to see in Trumbowyg, let me know by commenting this issue :)
How to help me?
Send me new ideas to question my plans and improve some parts.
And as I said in the introduction, you can donate me recurring via Patreon or one-time via PayPal to help me to invest more time in this project.
Thank you
From 2012, you are more and more to use Trumbowyg, which was started as a challenge/joke on IRC.
But today it's a project with more than 2500 stars, 600 issues, 250 pull requests, 850+ commits from 130+ contributors from almost everywhere in the world: that's crazy! Internet's magic.
Follow the development
A new branch is here, more like a draft/proof of concept for now: https://github.com/Alex-D/Trumbowyg/tree/v3
:)

Alex,
I still love your plugin, even with that nasty jQuery in 2018 :) Seriously, it works very well and we like it a lot. That said, glad to hear you are moving forward with the project and modernizing it. A few things that we would love to see in the new version:

Better documentation on the API
Simplify the selection / range API so that it's easier to author plugins.
** getSelectionNode
** getSelectionParentNode
** etc
Better support for images and image manipulation
Floats / Flex Support

Thanks!
What did you mean by "Floats / Flex Support"?
I'm OK with all your other suggestions :)

Hello,
Thanks for your plugin, we are using it with our clients and here is what they usually struggle with  :

Manipulating images (drag & resize)
Flex support, I agree that the way of placing elements as grid could be a lot better
Having a simpler HTML (less tags & css when it's not needed)

The plugin customisation is very great and easy to use, keep it that way 👍!

I'm not OK with image manipulation since I think it should be managed in CSS by website theme. Maybe an option to add some classes on the img tag or something like that.
Simpler HTML is WIP since developer may choose a built-in or custom render method thanks to abstract format.
Flex support, if you are talking about some drag'n'drop and things like that, I will not do that in core, but why not in additional modules :)

Since Core and UI should be separate modules, it will be easy to do that. Maybe I will make floating control officially :)

Hey Alex,
Love the editor. I have a suggestion for v3: a simple way to define the action of custom buttons. Namely, a pattern to define what html is inserted when the button is clicked. Right now I simply want to add a blockquote button (without having the full Formatting dropdown, and I'm not sure how. If I could define the HTML string associated with a button, I could say, eg
quoteButton: {             html: '
SELECTED_TEXT
' }
this would be useful for anytime you want a button that simply wraps the selected text (if any) in some html. With v2 there's the "preformatted" plugin that supports only the  tag -- a flexible solution would be better.
Thanks for all your work!

@kurupted Since I want a agnostic description in the v3, I think it will not possible to just add the HTML template. But, I will simplify custom buttons :)

For those who would be interested, I've just push my first draft/proof of concept on the newly created v3 branch here: https://github.com/Alex-D/Trumbowyg/tree/v3
I am working on selection management which was bad on v2. For now I can set and get a selection like setSelection(5, 12) or getSelection() // => [5, 12] where 5 and 12 are absolute range start and end indexes. It's buggy for now with non-text tags (like img) but it works with all kind of text-related things (strong, emphasis, lists, line breaks, ...)
Thanks for your feedback and support!

Not that much to see yet, but the way you're spec'ing out everything is very nice.
I'm not sure if the reduce approach to rendering will be enough for more complicated scenarios like tables (it might, though). But I guess that doesn't really matter for the overall idea.

Yeah, it's just a proof of concept, the goal is: take the JSON and give some HTML, Markdown, or whatever at the output. Algorithms are in a dirty state for now.
Then, by manipulating selection in absolute indexes, I can render the JSON to HTML, then restore the selection and voilà.

I suspect Trumbowyg is mostly used in the context of a larger system, so most likely there will already be a jQuery dependency. Getting rid of jQuery is therefore not a big win in many cases. Realistically, you will incur the jQuery dependency sooner or later in any project, as there will be something you need from jQuery's vast ecosystem of libraries.
Nevertheless, a rewrite is always good and if jQuery doesn't make things easier for you, then by all means get rid of it :)

@realulim I'm using Trymbowyg for a rather large Angular project, and we depend on JQuery for one single reason: Trymbowyg.cSo at least in our case, it's a big bonus.
In general, I don't really think most Angular (and React) use Jquery for much other than satisfying other third party dependencies.

Just my 2 cents: I swear by jQuery for dozens of projects of personal and commercial nature. I see the dependency on jQuery rather as a plus than a downside. If dropping jQuery comes at a significant cost, I would suggest to stick with it.
Alternatively maybe you could perhaps just ship the editor together with only jQuerys selector engine (https://sizzlejs.com/), since thats one of the most useful parts of jQuery

Hello!
I wonder why bold, italic, underline, strikethrough buttons can be used like with many other wysiwyg editors. Trumbowyg works like this (latest browser versions):
Edge
After you pressed bold and start to write, only one character is bolded a the rest are not bolded
Firefox and chrome
After you pressed bold and start to write, no character is bolded
But no panic. I made the plugins and now bold, italic, underline, strikethrough buttons work like I wanted. It's still same old document.execCommand("italic", false, null); command, but in plugin it works like I wanted.
So my question is:
Will the new version work like this:
After you pressed bold and start to write, all characters are bolded until you press bold button again. You can see when the bold button is on.
Cheers
Teemu Kaisla

Hey!
I think this is due to the semantic mode enabled. Try to disable it.
And yep, I want to fix that in v3 since I hope do less hacky things :)

for replacing jQuery, I suggest using something like this:
https://github.com/vladocar/femtoJS/blob/master/src/femtoJS.js
other suggestions for v3:
auto html code and css style clean up, the output html of editor contains a lot of junk in-line css style which could be a result from multiple editing or copy & paste, it would be good to keep it clean

Possibly just a “paste clean” ability
On Sun, Apr 7, 2019 at 10:39 AM kelvindc<EMAIL_ADDRESS>wrote:

for replacing jQuery, I suggest using something like this:
https://github.com/vladocar/femtoJS/blob/master/src/femtoJS.js
other suggestions for v3:
auto html code and css style clean up, the output html of editor contains
a lot of junk in-line css style which could be a result from multiple
editing or copy & paste, it would be good to keep it clean
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Alex-D/Trumbowyg/issues/875#issuecomment-480596122,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA6O7-nE9gBTV9Pe1Lu33dUpOhMszieQks5vegM5gaJpZM4YLkVj
.

--
Gary Williams
<EMAIL_ADDRESS>Cell:<PHONE_NUMBER>

Hi, any estimated first release date?

Not before few month, I'm working on another project for now: @Colllect

Looks awesome @Alex-D. Love the marketing site. We would really love to see Trumbowyg get some love after you're done!

Hey Alex - great plugin.  I have a fix for all your SVG icon issues  You can see what I commented out and replaced in trumbowyg.js in the attached image.

TBH getting rid of jQuery is a fair thing to do if you want, but hardly something users are crying out for. and many of the other features are almost irrelevant - you see, Trumbowyg shoulnd't try to be yet-another-tinymce but stick to its strengths of being small and fast and light. Maybe add some more formatting options, or better inline-editing options, but don't bloat it up like the other editors out there and simply copy them.
Also, nobody wants a theme - they want css that fits with their own site's style, so either keep it really simple, or use css and document what to change to make your editor fit in where its embedded.
Mobile support is a definite plus these days though.
Alternative positions or sizes for the button bars (eg, to the left or floating)

If removing jQuery leads to a massive amount than perhaps using a reduced version of it + latest JS/TS features should help.
If it's not a massive rewrite (or any time-consuming task) than keeping jQuery won't be a good idea (more bloat and such).
Also, it would for this to be compatible with React/VueJS.

Removing jQuery is not as hard as getting rid of execCommand/contenteditable browser-specific issues.
And yep I plan to support Angular, React and Vue officially.

I will try to do my best to add a lot more events :)

Hi Alex,
I think if we have a preview option for the entered text/info, it'd make a good feature. Any thoughts on this?

I suggest to use TypeScript over vanilla JS as this leads to a better software.

I need to check the output size of TypeScript to JavaScript. I love working with TypeScript, but if it increases (too much) the size of the final file, it will be a nope ^^'
I plan to write a TypeScript definition file a least.
The point of "Vanilla JS" is "no more jQuery".

Ahh, I see...
I could help you to create a universal component using Angular Elements - this is better than maintaining three sub-projects for React, Angular and Vue... just saying

I've just been using a repo written in CoffeeScript, whch I'm sure the author felt was "better". Trouble, is, lots of people cannot then help maintain the library as its all coffeescript, even though they could (and have submitted) update the javascript. Same with typescript.

People who compare CoffeeScript to TypeScript just have no idea what they are talking about...

@gbjbaanb If you said that in 2016 (when CoffeeScript was still a bit trendy) then it would have made more sense.
However, nowadays many repos are written in TS or have a TS support.
I'm not going to say CoffeeScript is dead (because I'm not sure it's true) but it's simply not compatible to JS supersets like TS. If you compared it to Elm or Dart (or whatever non-obscure language-that-compiles-to-JS which isn't a (sub|super)set of JS) then you'll have had a point.
And also, TS allows coders to add support for it without rewritting their codebase to TS (i.e. adding definition files so it could be consumed by the TSC on other codebases).

@Berkmann18 I'm not comparing them, I'm saying that they are both supersets (to varying degrees) of javascript and if you want a broadest userbase, then plain javascript commands a greater number of people who can work with it.

This would be a nice option for adding web, mailto: and tel: links

Hey @Alex-D would be nice to get some insights (without checking out the dev branch) on what state V3 is...
Like a roadmap or something...
Is it usable by now? When will it be usable?
Whats missing, etc...
Great work!

Hi,
There is no roadmap since I'm not actively working on v3 for now.
I plan to start working back on v3 very soon; I'm just finishing some things for the next major release of another project of mine: Monitoror.
I need to do some researches before continuing the dev.
I will post some news here in the next few days :)
Do not expect any beta before few months.

I guess that would be https://monitoror.com/ ;)

Not sure, If someone has commented this one. But a possibility to add codemirror or Prism for syntax highlighting and line numbers when we switch to code version. Maybe,  I haven't explored much.

Maybe we should consider that as a plugin since it's really heavy, but why not :)

Any update on V3? It's been a while.

The ability to change tags. When we switched to HTML5 and away from XHTML, we moved from EM and STRONG to I and B again.

Hey Alex.  Love the plugin, but I'm having a hard time finding a complete list of available buttons.  I looked here https://alex-d.github.io/Trumbowyg/documentation/#button-pane but this seems to be only a subset of available buttons.  Where can I find a complete list?

Moi je n'arrive pas à gérer les , j'aimerai enlever le drag and drop qui semble natif, et surtout faudrait pouvoir rajouter au plugin le fait de gérer les fusions de cellules et le style (border, bg color, etc etc)
Je n'arrive pas a trouvé comment récupérer les  selectionné, ils ont un border bleu mais quand je regarde dans la console, y a rien sur l'éléement, je ne sais pas comment les récupérer pour coder moi meme la fusion de cellule du coup...

Really looking for v3 and I second community request for floating controls. Our use case would be to replace medium-editor.js with trumbowyg for chat inputs:


Update sbt-sonatype to 2.6

Updates org.xerial.sbt:sbt-sonatype from 2.5 to 2.6.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention @scala-steward in the comments below.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.xerial.sbt", artifactId = "sbt-sonatype" } ]

Codecov Report

Merging #1148 into master will increase coverage by 0.09%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1148      +/-   ##
==========================================
+ Coverage   80.51%   80.61%   +0.09%
==========================================
  Files          54       54
  Lines        1016     1016
  Branches       32       32
==========================================
+ Hits          818      819       +1
+ Misses        198      197       -1

Impacted Files
Coverage Δ

core/src/main/scala/io/finch/Endpoint.scala
73.14% <0%> (+0.57%)
:arrow_up:

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 51be253...44568a4. Read the comment docs.


Is Degree Important ?

I am a student who is going to get a college this year...But confused between B.Tech Degree or BCA degree.
I have a huge intrest in coding which I think teaches in BCA very well.
But for a Job everyone suggest a B.Tech Degree.
And see my motive is not to get a JOB
Just wanted to create something by my code for people...Just like Google created search engine which changed our lives rapidly...But if I failed to create something
Then the job is the only option and i need a  Degree .I hope you understand what i trying to say.

I'll answer this in a podcast soon.
You can subscribe to bit.ly/thinkingwithtanay to know when it comes.

Thanks @tanaypratap for taking my question for podcast
I joined a B.Tech College and i am learning coding and skills by self learning and developing apps and games.
I choosed B.Tech only for the degree.
I want you to add something more in your podcast is that
Suppose an idea came to my mind that is revolutionary.So, Tell us how to execute that idea into real.  And that Idea never become real

I didn't get your question. Also, if the original question has changed then maybe close this issue and open a new one with that question.

Ok I am closing this issue and will create another one
Yeah what I want to ask is very complex and hard to understand.


Add base operator decorators

Fixes problem where initializing with @slicing_function() would actually initialize a LabelingFunction
Generalizes base_operator_decorator and base_nlp_operator_decorator

Test Plan

All tests pass locally

Closing; to address more broadly in future PR.


@returns jsdoc info not surfaced in UI

/**
 * @returns Stuff
 */
function foo() {}

foo()

The @returns description is not surfaced in the UI for completions or hovers

This will help javascript developer feel good while using vscode, vote +1.

Fixed upstream by typescript@next (TypeScript 2.7):

Please see Using Newer TypeScript Versions documentation for more details on updating your VSCode to use typescript@next


Menu nzSelected

Reproduction link
https://stackblitz.com/edit/ng-zorro-antd-ivy-fy2pev?file=src/app/app.component.ts
Steps to reproduce
Select a menu item, the selected tag of the other menu items (Navigation One and Option 5 in Navigation 2) will be lost
What is expected?
[nzSelected]="true" should work, even if an other menu-item is selected
What is actually happening?
After selection of a menu-item the ngselected items loose the selected status

Environment
Info

ng-zorro-antd
10.1.2

Browser
Chrome

I found the solution by adding [nzSelectable]="false" to the [nz-menu]. Thus this issue can be closed, sorry


relative path base on file editing?

myconfig "img_dir = {"../assets"}"
this will save image to the assets folder (which is in the parent folder of terminal current path) ,not base on the markdown file nvim is editing.
i hope can config picture folder using relative path base on markdown file.
thank you

This would be great if that would be possible!

I thought @ekickx already provided a tip for this.

Totally missed that one! Thanks for pointing out @linsui


TerminalMode

@jamwaffles This is a crude first version of the character mode. I've verified that it works (most surprisingly with the same initialisation code of yours) but it could use a cleanup and get rid of the code duplication and add a little more sophistication to it.
I've tested it with a 128x64 I2C version on my Nucleo-F042 board with this:
        /* Setup I2C1 */
        let mut i2c = I2c::i2c1(p.I2C1, (scl, sda), 400.khz());

        use ssd1306::displayrotation::DisplayRotation;
        let mut disp = Builder::new()
            .with_i2c_addr(0x3c)
            .connect_i2c(i2c)
            .into_char();
        disp.set_rotation(DisplayRotation::Rotate180);
        disp.init().unwrap();
        disp.clear();
        for i in 1..20 {
            let _ = disp.print_chars(b"foooooo");
        }

Just dumping it here because I have to catch a plane and get some feedback whether this approach would work for you.
NB: Rotation acts really funny for 90 and 270 degrees, it basically mirrors the characters and changes from l-t-r to r-t-l mode with character mode.

Looks good! Is there anything we can do to dedupe common methods like set_rotation(), reset(), etc? I think this is why I originally went down the impl Drawing for SSD1306 route for egfx.
Also, the big lump of hex for the font is a bit C-ish for my liking. Could you turn it into an include_bytes!() macro from a source image? I used ImageMagick in egfx to get a 1BPP representation of a font image. It would make supplying custom fonts an easier feature to add in the future.

Looks good! Is there anything we can do to dedupe common methods like set_rotation(), reset(), etc? I think this is why I originally went down the impl Drawing for SSD1306 route for egfx.

Yeah, needs work. I was thinking of adding another type, similar to what we're doing with the GPIO HAL implementations which allow switching modes on-the-fly (without requiring impls inside each mode) and also common functions shared between all implementations. I just wanted to see stuff working before making it super-fancy since that has the tendency to cause the whole thing fall flat on its face with Rust.

Also, the big lump of hex for the font is a bit C-ish for my liking. Could you turn it into an include_bytes!() macro from a source image? I used ImageMagick in egfx to get a 1BPP representation of a font image. It would make supplying custom fonts an easier feature to add in the future.

I must admit I kinda like the C-ish thing. Also the content MUST match the mapping code, i.e. you cannot simply swap out the font, we might be able to do some magic with one file per glyph but I'm not sure we want to go that way.

I'm liking this more the more code I read 😄. What do you think about implementing reset(), configure_rotation(), get_dimensions(), set_rotation() (and maybe clear() if we can support it in all modes) on NoMode? It would DRY up the code quite a bit.

The problem with that is that we could only change the rotation and get the dimensions before changing mode which we certainly don't want?

Also, can we be more specific with the mode names? I suggest GraphicsMode and CharacterMode; Egfx is a bit obtuse. I'm aiming for a "pit of success" for users 😃.

Well, I used Egfx for "embedded graphics" and I think we might have more "graphics" modes in the future which might require a different setup and not necessarily a full buffer, e.g. a scanline renderer might be nice. But hey, I'm not too attached to those names. 😉

Before I forget: have you tried it?

Just had a play with it now, I see what you mean about the rotation screwing everything up. I'll fix that asap.

I just wanted to see stuff working before making it super-fancy since that has the tendency to cause the whole thing fall flat on its face with Rust.

Fair 😂. Are you planning on doing some dedupe in this PR?

I must admit I kinda like the C-ish thing. Also the content MUST match the mapping code, i.e. you cannot simply swap out the font, we might be able to do some magic with one file per glyph but I'm not sure we want to go that way.

Alright, let's leave it for now :). I'd like to experiment with a 6x8 (wxh) font in character mode in the future which doesn't look too hard from what I've seen in your code, just send 6 bytes instead of 8. That'll be the time to figure out a nice way of using different fonts. I guess one could always just use egfx for fancier font rendering.

The problem with that is that we could only change the rotation and get the dimensions before changing mode which we certainly don't want?

Good point, ignore me.

Well, I used Egfx for "embedded graphics" and I think we might have more "graphics" modes in the future which might require a different setup and not necessarily a full buffer, e.g. a scanline renderer might be nice.

Can you think of other modes that would clash with the (admittedly generic) graphics name? In your specific example, you'd just call into_scanline() which is a clear name I think. I'm thinking of newcomers and Arduino converts that want to "just draw some stuff" which usually comes from the word "graphics", so it fits nicely with assumptions as a sort of default goto for the driver.

Just been having a look at the rotation stuff and it seems fine for 0 and 180 degree rotations so I think #28 might be a red herring. Can you confirm? It is however broken for 90 and 270 degree rotations, but that's an artifact of the chip I think; the page address pointer moves vertically when set up right, but the 8 bit blocks are now pointing horizontally so the text turns into noise. You'll have to do some bit twizzling to fix that I think which is a shame.

Fair 😂. Are you planning on doing some dedupe in this PR?

I was hoping to do it step by step. First change the structure to allow for modes, (i.e. the other PR one we agree on a naming), then introduce the character mode, then do the deduplication and then have another go at simplifying the mode changes.

Alright, let's leave it for now :). I'd like to experiment with a 6x8 (wxh) font in character mode in the future which doesn't look too hard from what I've seen in your code, just send 6 bytes instead of 8.

Problem is you really can only update 8 bits at a time on an 8 bits boundary, so for 6x8 you'd really only change the spacing (i.e. 2 horizontally and 0 vertically) but not the number of characters per line. It should be possible to use any arbitrary (but constant) height but I haven't tried that yet.

That'll be the time to figure out a nice way of using different fonts.

Yeah, ultimately I'd like to have pluggable (i.e. user providable) fonts. With that it would also be possible to do e.g. a rogue like game with character based pseudo graphics.

I guess one could always just use egfx for fancier font rendering.

Yeah, ultimately you definitely would want to allow font rendering via egfx, too.

Can you think of other modes that would clash with the (admittedly generic) graphics name?

A scanline approach is a graphics approach as well, the only difference being that the graphics is rendered line by line while egfx represents a framebuffer. I think we somehow should take care of the (optional) external dependency or better yet (from my POV) make it a hard dependency. IMHO crates should do useful stuff out-of-the-box without requiring unwieldy features switches so if we decide against providing a useful simplified pixel twiddling graphics interface (as previously suggested) then embedded-graphics should be all in.

Hmm, that font stuff is a bit frustrating. Charmode should be pretty simple right, so we can just leave the more complex font/character rendering to embedded_graphics. I like the idea of using custom 8x8 fonts for tiled graphics, but perhaps work for a future PR? :)

IMHO crates should do useful stuff out-of-the-box without requiring unwieldy features switches so if we decide against providing a useful simplified pixel twiddling graphics interface (as previously suggested) then embedded-graphics should be all in.

#31 😄. I can see that it's confusing for consumers of the driver to have to enable a feature that is a big part of the feature set. Also https://github.com/jamwaffles/ssd1306/pull/26#issuecomment-377680578. Embedded graphics should take care of pixel twiddling (with as-yet unwritten features) I think.

Hmm, that font stuff is a bit frustrating. Charmode should be pretty simple right, so we can just leave the more complex font/character rendering to embedded_graphics. I like the idea of using custom 8x8 fonts for tiled graphics, but perhaps work for a future PR? :)

Yes, yes and yes. ;)
Character mode can be used in a number of ways:

Streaming text like a console
Positioned text
Tiled graphics

At the moment 1) and 2) are highest priority for me and currently supported with the built-in font but there's certainly room for further extension in there, especially with swappable fonts. Potentially we can also enable other tile sizes but I need to look into that; it would certainly be nice to also allow for a scaled mode/larger fonts.

@jamwaffles So I've been playing around with the IMHO only remaining outstanding item to get this in: custom font support. So I've been creating a trait for that but I'm not too happy with the results.
Base line size for an example based on the current state of this branch:
# arm-none-eabi-size target/thumbv6m-none-eabi/release/examples/i2c_hal_ssd1306alphabeter*
   text	   data	    bss	    dec	    hex	filename
   3580	      0	      4	   3584	    e00	target/thumbv6m-none-eabi/release/examples/i2c_hal_ssd1306alphabeter

After moving the very same code to it's own impl of a new trait (used unconditionally):
# arm-none-eabi-size target/thumbv6m-none-eabi/release/examples/i2c_hal_ssd1306alphabeter*
   text	   data	    bss	    dec	    hex	filename
   3600	      0	      4	   3604	    e14	target/thumbv6m-none-eabi/release/examples/i2c_hal_ssd1306alphabeter

But as soon as I make the const array a bit more rusty using a match (seems like a similar problem to the command bloat):
# arm-none-eabi-size target/thumbv6m-none-eabi/release/examples/i2c_hal_ssd1306alphabeter*
   text	   data	    bss	    dec	    hex	filename
   4136	      0	      4	   4140	   102c	target/thumbv6m-none-eabi/release/examples/i2c_hal_ssd1306alphabeter

And it only gets worse from there. 🙁

@jamwaffles So I spent two evening figuring out to make things work like I would have them. I hit a number of snags and no way to work around them (like not being able to set the draw position without affecting the display area and vice versa). So I'd like to rename this mode true to it's original purpose: TerminalMode and keep it at that.
A tile based CharacterMode is certainly possible but it will require to manually position each tile before drawing it so it'll require a different interface (or plenty of voodoo to record the current GDRAM position and weave in the right commands to modify the position as required).
Thoughts?

TerminalMode sounds good. I was envisaging a "spew characters out to the screen" mode for this anyway; moving the draw position feels like feature creep but would be useful to have in the future. GraphicsMode can already print positioned chars, so let's keep the ball rolling on this PR and keep the scope simple :).
I've started writing the announce blog post (draft!) for this driver and it would be great to demonstrate multiple modes; right now telling people to jump through the into() hoop when there's only one mode feels strange :). Getting a solid TerminalMode integrated for release would be great.

GraphicsMode can already print positioned chars, so let's keep the ball rolling on this PR and keep the scope simple :).

GraphicsMode is too expensive for some usecases due to full framebuffer and full refreshes.

Getting a solid TerminalMode integrated for release would be great.

I'll rename it later today and finish it up.

@jamwaffles Okay, this is it. The examples also contain my speed test but I'd be happy to provide a good ol' Hello World for your post, too.

I considered reverting the CharacterBitmap back to the previous implementation but that didn't improve code size and maybe we can use that in the future to provide swappable or custom fonts so I left it in.

The scrolling would be easy. But the usual problem applies: We have no idea when to do it. We'd need to keep track of where we are (and reset when the screen is cleared) to know when to wrap. Same applies to newline handling, if we wanted to do a line-break when someone sends a \n, we'd know to which column we're at and fill the rest of the line with blanks.
The real annoying thing about this display is that there's no information readout or advanced functionality that would allow us to operate statelessly. 🙁

Adressed the nits, but the clear() change will require a small change in the blog post, too. ;)

Hmm. I had it in my head that scrolling would be an easy thing to do. Something to investigate :). Thanks for fixing the nits. I'll take care of the blog post.


dart --version prints the version to stderr instead of stdout

We are improving the output of flutter doctor and run into this interesting issue.
Given that the intended use of --version is the actually print the version, I would think stdout should be used. Thoughts?

May I ask the reason of using stdout instead of stderr? What issue do you have?

Not a blocker. I filed this for two reasons:

Why would version be printed stderr? Especially if I asked for the version. It doesn't make much sense.
We can't use standard process utils to parse the output and ended up creating this:

      final ProcessResult result = processManager.runSync(<String>[dartSdkBin.path, '--version']);
      // https://github.com/dart-lang/sdk/issues/31481
      // We can use the process utils directly when this is fixed instead of parsing stderr.
      _engineDartVersion = result.stderr.trim().replaceAll('Dart VM version: ', '');

which is fine but annoying.

That's a good point.
But It has been like that since day 1. Now there are many tools relying on this. Switching to stdout would be a breaking change.


Creative mode with drives in inventory glitches them.

What happens:
I made a 4k drive and inserted it into the disk drive and it worked.
Went into creative with the same drive in my inventory and back to survival and the same drive would not be recognized by the disk drive.
This issue has happened multiple times on my own server.
What you expected to happen:
That the drive would pop into the disk drive and work.
Steps to reproduce:

make a drive or take one from creative
put it into the disk drive.
Tada!
...

Version (Make sure you are on the latest version before reporting):

Minecraft: 1.10.2
Forge: <IP_ADDRESS>4
Refined Storage:1.2.4

Does this issue occur on a server? yes
If a (crash)log is relevant for this issue, link it here:
[pastebin/gist/etc link here]

Why would you still be 1.2.4, we are at 1.2.9 already. You should really update. (CurseForge)

Duplicate of #712 Also update

@raoulvdberge Still experiencing this on 1.12 with newest release.


Add a TypeScript example and tests

Hello! Thanks for making this library, I've found it useful while developing locally.
It took me a good hour or two to figure out how to use it with TypeScript though, so I think adding an example could be helpful to others. I also added two tests for Vue components with TypeScript and ran the tests for 2.6, 2.7 and 3 to confirm they pass.

For the transform method, I was initially trying to do it like this:
import tsLoader from 'esm-loader-typescript';
...
transform(source, ctx) {
  if (!vueTsRegex.test(ctx.url)) {
    return;
  }
  return tsLoader.transform(source, tx);
}

But to my confusion, that didn't work. So I looked in the esm-loader-typescript source code and found it only processes files ending with .ts, whereas the files that this loader needs to process would end with .vue?vue&type=script&lang=ts. So I had to settle for copying the code from esm-loader-typescript.

Hi there, thanks for this! I'd be happy to merge this example, but I would prefer to put the tests in a separate folder called test/typescript or something. That way the root of the repository doesn't get polluted with tsconfig.json, which I'd like to avoid as the library doesn't really use TypeScript. Having a tsconfig.json in the root could be confusing for people.

Good point! I've made the change.


'safe' rubocop fixes

Automatic Rubocop "safe" fixes (rubocop -a), plus some Rubocop exceptions and default configuration changes.
Later when we have more specs we can try the "unsafe" autocorrections with rubocop -A.

Specs will get added in later PRs, that this PR touched every file for linting fixes shouldn't count against it for codecov.


Global overrides for buttons

[x] Feature Request
I love using this plugin, but can you please add global overrides for buttons, say if I want to change the title of accept button in prompt then I have to do it on every call, whereas if I could override it globally then that will save us a lot of time.
Regards
Swati Malhotra

Yep, that's a good point. I'll add an option to set some defaults: depending of how busy I am it will take a few days or a few weeks.
Thanks for the feedback!

Hello! This finally has been quicker than I expected and it's implemented now in the version 1.1.0.
Important: The previous CSS class .BasicModalsTitle has been renamed to .BasicModalsContent. If you added some custom CSS rules using that class, please, update your CSS to use .BasicModalsContent instead of .BasicModalsTitle.
.BasicModalsTitle still exists but it is a "new" class which has been added for titles, replacing the old one which is now .BasicModalsContent.

BTW: The README has been updated explaining how to use the new features :)

Got it, will try it out and let you know.
Cheers!
Swati


If text have many sentences, how to do

I read your code just now, but I have a problem and wish that you can teach me.
there just have sentence_length in the textCNN, if I have many sentences, how can I do, to get average on all sentences?
and if many sentences, how to choice batch  in the training stage.
thank you!

Do you mean document classification? Or short text like twitter? If it is twitter,  you can just see it as one sentence. What`s more, document  classification is quite  different from sentence classification.

@SpongebBo: How is document classification different than sentence classification?  Can this code be used for classifying documents of lengths between 100-800 words?

I have the same problem to solve.Do you have any progress?

@SpongebBob 兄弟我也遇到同样的问题，有啥指教吗


Macos : error darwin_claim_interface

Just putting this in here for others to find, as i was pulling my hair out.
Im on Mac/Yosemite, initially installed everything through brew.
( http://davidyamnitsky.com/blog/2013/11/14/stm32-mac/ and http://nondisplayable.ca/2015/07/10/stm32f0-discovery-setup-mac-os-x.html )
Have a STM32VLDISCOVERY ( rev MB913 ) board at hand. No matter what i try, reinstall uninstall unload kexts etc, nothing works. I keep getting this error:
    libusb: error [darwin_claim_interface] USBInterfaceOpen: another process has device opened for exclusive access
    2015-10-12T19:52:41 WARN src/stlink-sg.c: libusb_claim_interface() failed
    2015-10-12T19:52:41 ERROR src/stlink-sg.c: Could not open stlink device

Also this garbled message in 'sudo dmesg'
USBMSC Identifier (non-unique): H\M-C\M-?j
Reboots, unplugging everything and inspecting kext load configs etc doesnt help. Rebuilding everything manually from git master doesnt help too
Eventually plugged in another discovery board, STM32F0DISCOVERY ( MB1034 ) and suddenly everything works. Even stranger, now the old board now works too.

Could you test also with latest v1.2.0 ?

Closing due to inactivity of original issuer. Feel free to open a new issue when the problem still remains with v1.2.0 or master. Thank you for your contribution.


Mac: Boot2docker stuck on "Mounting NFS shared folders" step

If OSX firewall is turned on and "Block all incoming connections" setting is checked http://monosnap.com/image/N96ywNZf4FDLf8i2Y2xvp0slw8Y8w8.png - folders cannot be mounted and the script is stuck on the "Mounting NFS shared folders" step.
Disabling this setting resolves the issue.

I would also recommend disabling "Stealth mode" if possible. This will substantially speed up the NFS mount process.
http://take.ms/X7fvo

I'm wondering if lmakarov's "disable stealth mode" OSX instruction is important enough to put to your configuration instructions. This has changed my bootup time from 120 seconds-ish to 8 seconds. Also, FWIW, a recent brew update broke my NFS mounting process, somehow, causing it to halt on the mount step. Reloading the script in the automatic installation section addressed this.