Surface only public and published blog posts on the blog

Noticed this the other day - the RNIB post was password protected but it appeared in the feed and on the blog index. This PR addresses that

@helenb was tinkering away and opened this as a warm-up. But I see you've covered it in #321.
I added a test in 2dab304 which may be useful.
Will close it now to avoid duplication

Ah thank you!


few comments are added.

Hey geekcomputers! Let me know if any changes required.

Thanks NitkarshChourasia

Do check the last commit, a commit below yours and review my code too.

For sure!

Thanks @sarayusreeyadavpadala


[Do Not Merge] epics refactor

Overall, this is a generalized version of the approach taken here: https://github.com/rangle/angular2-redux-starter/blob/master/src/epics/session.epics.ts
I like it.
Of course the true test is how would you unit test it?

It's also nice in the sense that unlike Sagas it doesn't depend on exotic language features (by which I mean generators).

And it's something that can be done similarly for both angular2 and react.

Thanks for the review @SethDavenport. Agree with your suggestions and will make the updates. As for unit testing… we used epics for AC too. This is one of our tests:
test.cb('searchForPlacesEpic should update location search results',
  t => {
    const epicMiddleware = createEpicMiddleware(searchForPlacesEpic);
    const mockStore = configureMockStore([epicMiddleware]);
    const store = mockStore({
      location: fromJS({
        name: '',
        coordinates: {},
        context: '',
      }),
    });

    store.dispatch({ type: SEARCH_FOR_PLACES, payload: 'cn tower' });
    t.plan(1);

    setTimeout(() => {
      t.deepEqual(store.getActions(), [{
        type: SEARCH_FOR_PLACES,
        payload: 'cn tower',
      }, {
        type: UPDATE_LOCATION_SEARCH_RESULTS,
        payload: [{
          name: 'Los Angeles, California, United States',
          coordinates: { longitude: -118.2439, latitude: 34.0544 },
          context: '90012.us-ca.us',
        }],
      }]);

      t.end();
    }, 500);
  });

test.cb('getUserLocationEpic should update user location', t => {
  const epicMiddleware = createEpicMiddleware(getUserLocation);
  const mockStore = configureMockStore([epicMiddleware]);
  const store = mockStore();

  store.dispatch({ type: GET_CURRENT_LOCATION });
  t.plan(1);

  setTimeout(() => {
    t.deepEqual(store.getActions(), [{
      type: GET_CURRENT_LOCATION,
    }, {
      type: UPDATE_USER_LOCATION,
      payload: {
        name: 'Los Angeles, California, United States',
        coordinates: { longitude: -118.2439, latitude: 34.0544 },
        context: '90012.us-ca.us',
      },
    }]);

    t.end();
  }, 500);
});


"Something went wrong. Try clicking Add block again." Error

I am trying to test Theme App Extensions. I'm using Dawn 2.0 theme
I am using the code from https://github.com/Shopify/theme-extension-getting-started
I was able to push via shopify extension push and enabled preview mode.

However when trying to play with the extension in the theme editor I just see the error:

Appreciate your help.

No longer continuing Shopify development. Closing.

Close


Email validation token is sent even to invalid emails

I receive an email validation token even if my email is not associated with a matrix account. Very very confusing, email validity check should be done before the email is sent

https://matrix.to/#/!zOmsiVucpWbRRDjSwe:matrix.org/$14754844271806648vYjqr:matrix.org

The steps to reproduce
-> Go to the reset password page (login page)
-> Enter an email address which is not linked to a matrix account
The client should check if the email is known before sending the reset password request.


Slow power meter workaround

I use as powermeter an 4Noks Elios4you device that update "bought power" every 60 seconds (positive only value).
When I put the esphome to auto limiter mode it switch to "Limiter operation mode: Inactivity timeout". I think that the problem is the low rate of the powermeter reading.
Any suggestion to solve?
This is the yaml configuration file:
 substitutions:
  name: soyosource-gtn-virtual-meter
  device_description: "Control the power output of a Soyosource GTN on demand via RS485"
  external_components_source: github://syssi/esphome-soyosource-gtn-virtual-meter@main
  tx_pin: GPIO1
  rx_pin: GPIO3

esphome:
  name: ${name}
  comment: ${device_description}
  project:
    name: "syssi.esphome-soyosource-gtn-virtual-meter"
    version: 2.1.0

esp8266:
  board: d1_mini

external_components:
  - source: ${external_components_source}
    refresh: 0s

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

ota:

logger:
  baud_rate: 0
  level: INFO

# If you use Home Assistant please remove this `mqtt` section and uncomment the `api` component!
# The native API has many advantages over MQTT: https://esphome.io/components/api.html#advantages-over-mqtt
#mqtt:
#  broker: !secret mqtt_host
#  username: !secret mqtt_username
#  password: !secret mqtt_password
#  id: mqtt_client

api:

uart:
  - id: uart_0
    baud_rate: 4800
    tx_pin: ${tx_pin}
    rx_pin: ${rx_pin}

soyosource_modbus:
  - id: modbus0
    uart_id: uart_0
    # flow_control_pin: GPIO12

    # Optional settings
    #
    # The name is used as prefix for some log messages and should
    # help to distinguish between different instances/devices
    name: topfloor_inverter

soyosource_virtual_meter:
  - id: virtualmeter0
    soyosource_modbus_id: modbus0

    # The state of this sensor (instantaneous power in watt) is used as source
    power_id: powermeter0

    # Optional settings
    power_sensor_inactivity_timeout: 20s
    power_demand_calculation: NEGATIVE_MEASUREMENTS_REQUIRED
    min_power_demand: 0
    max_power_demand: 700
    zero_output_on_min_power_demand: true
    # Split/distribute the power demand if you have multiple inverters attached to the same RS485 bus
    power_demand_divider: 1
    # A positive buffer value (10) tries to avoid exporting power to the grid (demand - 10 watts)
    # A negative buffer value (-10) exports power to the grid (demand + 10 watts)
    buffer: 10

    # The update interval is important and defaults to 3 seconds. If the demand is sent too frequently
    # or rarely the interverter stops. TODO: Identify and validate the lower and upper update limit
    update_interval: 3s

number:
  - platform: soyosource_virtual_meter
    soyosource_virtual_meter_id: virtualmeter0
    buffer:
      name: "${name} buffer"
      initial_value: 10
      restore_value: true
    manual_power_demand:
      name: "${name} manual power demand"
      max_value: 700
    max_power_demand:
      name: "${name} max power demand"
      initial_value: 300
      max_value: 700
      restore_value: true
    power_demand_divider:
      name: "${name} power demand divider"
      initial_value: 1
      restore_value: true

sensor:
  - platform: soyosource_virtual_meter
    soyosource_virtual_meter_id: virtualmeter0
    power_demand:
      name: "${name} power demand"
#
# # mqtt subscribe example
# - id: powermeter0
#   internal: true
#   platform: mqtt_subscribe
#   name: "${name} instantaneous power consumption"
#   topic: "smartmeter/sensor/groundfloor/obis/1-0:16.7.0/255/value"
#   accuracy_decimals: 2
#   unit_of_measurement: W
#   device_class: power
#   filters:
#     - throttle_average: 15s
#
#   # import smartmeter reading from homeassistant
#   # requires the "api" component see above
  - platform: homeassistant
    id: powermeter0
    name: "${name} smartmeter instantaneous power"
    entity_id: sensor.4_noks_5efb939d_bought_power
    filters:
     - throttle_average: 15s

switch:
  - platform: soyosource_virtual_meter
    soyosource_virtual_meter_id: virtualmeter0
    manual_mode:
      name: "${name} manual mode"
      restore_mode: RESTORE_DEFAULT_ON
    emergency_power_off:
      name: "${name} emergency power off"
      restore_mode: RESTORE_DEFAULT_OFF

text_sensor:
  - platform: soyosource_virtual_meter
    soyosource_virtual_meter_id: virtualmeter0
    operation_mode:
      name: "${name} limiter operation mode"

I modify the update interval of the smartmeter to 2s.
I didn't solve at all.
I think that the problem is that the smart meter report power in KW units, not W. I tried to modify the code with multiplication but I'm weak in c++ and I don't know where to modify code.
I tried with configuration yaml file but without success:
  - platform: homeassistant
    id: powermeter0
    name: "${name} smartmeter instantaneous power"
    unit_of_measurement: KW
    entity_id: sensor.4_noks_5efb939d_bought_power
    filters:
     - throttle_average: 15s

Your project is great!
Any workaround?


Add license to ShellOnStark

Can we please add a license to this project?
Here's a website which can help you choose which one to go ahead with: https://choosealicense.com/

License added, thanks for the feedback ;)


Add exception for VSCode env helper

Please be sure to check out our contributing guidelines
before submitting your pull request.
Proposed Changes

Check VSCode env helper before starting tmux

Thanks @msdx321


Adding a text box feature to the whiteboard allowing user to TYPE text while using the whiteboard

I think having the ability to type text will be a great feature to have, I want to make this contribution under the GSSOC'22.

Add an icon in the toolbar as we have for example pencil.

@J-Harsh Go Ahead

Yeah sure. Is there any time limit to this?

No but will be good if you make pr under 1 week.

I don't think i will be able to complete this assignment because of some prior commitments. I have unassigned myself and this issue is now open for anyone to take under GSSOC'21.

@vedant-jain03 can you kindly assign this issue to me? I plan to integrate the textbox in under a week.


Introspection: Use env vars to override introspection binary with --url --print

Bug description
prisma introspect --url <url> --print doesn't seem to pick up the env var PRISMA_INTROSPECTION_ENGINE_BINARY either when it is in environment or via .env file
In my understanding CLI only looks for .env file when it is next to a schema.prisma file
What is a possible way to replace the binary when a schema.prisma file is not present?
How to reproduce

Run prisma introspect --url <url> --print with a .env file that contains path to a custom binary (e.g. PRISMA_INTROSPECTION_ENGINE_BINARY)

Expected behavior
There should be a way to use custom binaries with prisma introspect command when using --url option.
Environment & setup
divyendusingh [reintrospection-ci]$ yarn prisma --version                                                                                1 ↵
yarn run v1.22.4
$ /Users/divyendusingh/Documents/prisma/reintrospection-ci/node_modules/.bin/prisma --version
@prisma/cli          : 2.0.0
Current platform     : darwin
Query Engine         : query-engine de2bc1cbdb5561ad73d2f08463fa2eec48993f56 (at /Users/divyendusingh/Documents/prisma/reintrospection-ci/node_modules/@prisma/cli/query-engine-darwin)
Migration Engine     : migration-engine-cli de2bc1cbdb5561ad73d2f08463fa2eec48993f56 (at /Users/divyendusingh/Documents/prisma/reintrospection-ci/node_modules/@prisma/cli/migration-engine-darwin)
Introspection Engine : introspection-core de2bc1cbdb5561ad73d2f08463fa2eec48993f56 (at /Users/divyendusingh/Documents/prisma/reintrospection-ci/node_modules/@prisma/cli/introspection-engine-darwin)
Format Binary        : prisma-fmt de2bc1cbdb5561ad73d2f08463fa2eec48993f56 (at /Users/divyendusingh/Documents/prisma/reintrospection-ci/node_modules/@prisma/cli/prisma-fmt-darwin)
✨  Done in 3.46s.

I can confirm that it works when there is a schema.prisma file next to the .env file.
It doesn't work when we have just a .env file.
Possible solutions from top of my head:

Pick the .env file in cwd
-e flag to pass a custom env file

Possible solutions from top of my head:

Pick the .env file in cwd
-e flag to pass a custom env file

Why? Shouldn't it just work as usual?

Why? Shouldn't it just work as usual?

Point 1 would be the implementation to make it work as usual. It is specifically implemented to look for .env next to schema.prisma, afaik, this is how it was implemented.

How about it should just honor the ENV var set in the environment?

Oh yes, it should also do that of course

Can you please confirm the fix @divyenduz?

I can confirm that this is work in dev 2.2.0-dev.33


TEIIDTOOLS-737 updating field names

Name changes:
keng_description, tko__description -> description
keng__id -> name
isComplete -> complete
isUserDefined -> userDefined
KomodoStatusObject.Title -> title
KomodoStatusObject.Information -> attributes
BuildStatus is using snake case (but not fully).  Publish request payload is using kebab case.  Everything else is using camel case.  Any qualms with making everything consistent?  And is there any preference on the convention?

Everything else is using camel case. Any qualms with making everything consistent? And is there any preference on the convention?

I'm good with making everything consistent.  I think the majority is already camel case, so I'd probably go that route.

Were you planning to take dashes out of the endpoints?  For example connection-schema and refresh-schema?

Sure, I'll tack that on.


Trio reverts to looking for old G7 CGM and misses readings

Describe the bug
Trio reverts to a prior G7 sensor seemingly at random. The current sensor is not seen and BG readings are dropped. Missed readings, yellow loops and red loops may occur. This normally self heals after a handful of missed readings.
To Reproduce

Pair a G7 sensor
When the G7's time is up, pair a new G7 sensor as instructed by Dexcom
Observe, when you see missed readings, tap into Trio's CGM view and interrogate whether it is using dates and info from your prior G7 sensor

Expected behavior
Trio should pull BG readings from the actively paired sensor.
Screenshots

Setup Information (please complete the following information):
Smartphone:

Hardware: iphone 13 Mini
OS Version: iOS 17.5

Pump:

Manufacturer: Insulet
Model: Omnipod Dash

CGM:

Device: Dexcom G7
Manager app: Dexcom App

Additional context
A number of uses have anecdotally reported more missed readings with Trio than expected. Perhaps this is the cause.
Light discussion on this in Discord chat with 3 people experiencing and discussing this.

This has happened a few times to me as well.
This happened 8 days into a new sensor.

I don’t have any screenshots but we’ve also experienced this issue.

The root cause seems to be that the CGM Manager does not properly write the new sensor's Bluetooth ID to the CGMManagerState.plist file after it has picked up the new ID from the Dexcom app.
As long as you don't reboot your phone or otherwise kill the Trio app, the CGM Manager seems to be storing the new ID somewhere else (memory?) and does not need to read the ID from the CGMManagerState.plist file.
After a phone reboot, Trio will read from the CGMManagerState.plist file, where it will find the old sensor's Bluetooth ID and start to look for the old sensor.
I suspect this issue might also affect Loop and iAPS.
Documented with 16 numbered screen shots.
1 - Old Sensor in Dexcom App:

2 - Old Sensor in Trio:

3 - Old Sensor in CGMManagerState plist file:

4 - Old Sensor in Bluetooth Settings:

5 - New Sensor added to Dexcom App:

6 - Old and New Sensors in Bluetooth Settings:

7 - Old Sensor removed from Bluetooth Settings:

8 - New Sensor picked up by Trio:

9 - Old Sensor still in CGMManagerState plist file after Trio picked up new sensor:

10 - CGMManagerState plist file was does not have new timestamp:

11 - CGMManagerState plist file has new timestamp after phone reboot:

12 - CGMManagerState plist file still has old sensor ID after reboot and new timestamp:

13 - Trio searching for old sensor after reboot:

14 - Deleted and re-added CGM in Trio - now paired with new sensor:

15 - CGMManagerState plist file has new timestamp after re-adding CGM in Trio:

16 - CGMManagerState plist file has new sensor ID:

Great finds! It sounds like the plist is correctly updated when adding (or re-adding) the CGM “as new” but not when a new CGM is “auto detected”.
One fix is to of course write to the plist on every connection, but this is IO heavy. We could also read from the plist and if the sensor ID doesn’t match, then update plist (also expensive to read from plist every cycle, assuming we aren’t already doing this (? have not looked).
Do we have any natural hooks to identify that a new sensor is being read, to then trigger the plist update so we can avoid that IO if possible? Of course if it’s already required this is a moot concern :)

I think this is Trio only.
My Loop phone rebooted yesterday when I updated to iOS 17.6 and had not trouble picking up the G7.
My display of the CGMManagerState.plist looks a bit different in that the DXCM## value is not visible.

That is very good news as it means we're more empowered to fix this directly I think.

I agree @aug0211 . Dan and I are troubleshooting now and will try to apply a fix. But we have to coordinate testing to avoid wasting sensors :)

Fixed via #376 - closing issue.


DBZ-5889 Run integration tests in specified order

Run the tests alwyas in thr same order to make it more easy to debug failures. If needed, the order can be changed (e.g. to random) by overriding propeperty runOrder.
https://issues.redhat.com/browse/DBZ-5889

test failures are unrelated

@vjuranek Applied, thanks!


Secure persistence: exclude (certain) built in functions

For secure persistence, we need to ensure that certain builtin functions cannot be loaded, such as eval, exec and functions from urllib, os, sys...

Yes, "cannot be loaded" unless the user says so. How granular do you want that to be, on a module level or should the user indicate individual functions?

Since it doesn't make sense to load some functions and not load others

Could you please elaborate on that? Do you mean that if a user would allow one builtin_function_or_method, they might as well allow all?

 So we either fail or pass. So from the user's perspective, I was thinking:

load(file): passes or fails, if it fails, we tell them why
load(file, trusted=True): passes and loads

We can however think of doing something like:

load(file, trusted_libs=...): if it fails, there are other reasons for it

But I'm a bit wary of that to start with, cause one can still do exploits using existing libraries. So at least as a start, I was thinking of brutally failing, and telling users why, and once we know more about potential exploits, we can allow more granular acceptance of modules/functions/etc?

I agree we should address the exploits, and that's why I started by fixing the one in joblib (merged and released). And I'm not saying we shouldn't support the API to trust particular libraries, I'm must saying we should probably wait to learn more before we do it.

And I'm not saying we shouldn't support the API to trust particular libraries

Sorry, I didn't mean to imply that, I just wanted to give my opinion from a user's perspective.

I agree we should address the exploits

Do we want to document them somewhere? Thinking about it, maybe a non-public place would be better.

Do we want to document them somewhere? Thinking about it, maybe a non-public place would be better.

Some of them don't need to be private, like removing __reduce__ from sklearn estimators. But for others, we can use "Security Advisories" on github: https://docs.github.com/en/code-security/repository-security-advisories/about-github-security-advisories-for-repositories. I haven't used this feature, but it seems it's exactly what it's for.

But for others, we can use "Security Advisories" on github

That seems to be almost overkill for now :D I just want a reminder, so that we don't forget about security issues we found.

We now raise on everything which is not trusted by default, and that includes insecure builtin functions. I think we can close this now.


Auth Backend: Add an example of a custom auth provider

Add an example of how you can integrate a custom auth solution - mocked responses okay
Here the auth backend will act as a bridge for use cases when you already have an auth service that you can reuse.

We have a generic oauth provider implementation in the auth backend and hence closing this issue.


Add checks to quadratic residue sampling

To sample a quadratic residue mod n uniformly at random, one technique is to sample an integer between 1 and n-1, check that it is invertible, and square it, e.g. see here.
The added code ensures the randomly-sampled element that gets squared is invertible (which also implies it is non-zero, so no need to check it is non-zero separately).
In normal usage of this function for AnonCreds, n = p * q where p and q are large primes, so the probability that an element is not invertible is only 1 - (p-1)*(q-1) / (p*q) = 1/p + 1/q - 1/(p*q), which means the expectation on the number of iterations of the while loop is very close to 1.
(Now with DCO!)

Thanks!

I have realised this issue has arisen because not all authors require the quadratic residues to be invertible. For confirmation that it is required in a CL signature, note that on page 24 of the CL10 paper the size of QR_n is stated as p' * q', which means it must be excluding non-units.

just get the CI passing but otherwise the code looks good.

It looks like rustfmt (cargo fmt) just needs to be run on the modified file.


Don't allow both env and node to be specified in cluster.run.

#934
#935  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @rohinb2 and the rest of your teammates on  Graphite


[MINOR][PYTHON][DOCS] Fix broken Example section in col/column functions

What changes were proposed in this pull request?
This PR fixes a bug in the documentation. Trailing ' breaks Example section in Python reference documentation. This PR removes it.
Why are the changes needed?
To render the documentation as intended in NumPy documentation style.
Does this PR introduce any user-facing change?
Yes, the documentation is updated.
Before

After

How was this patch tested?
Manually built the documentation and tested.

Thanks!
Merged to master, branch-3.3 and branch-3.2.


Unit test fails

Unit tests fail for me since 994c913514a7dbd0e52fbb3646e9abd5270a4eef (which seems to be a problem in the unit test; not the lib):
java.lang.AssertionError: Test input data should always parse correctly: +4640404 (SE)
	at com.google.i18n.phonenumbers.ShortNumberInfoTest.parse(ShortNumberInfoTest.java:351)
	at com.google.i18n.phonenumbers.ShortNumberInfoTest.testCountryCallingCodeIsNotIgnored(ShortNumberInfoTest.java:339)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191)
	at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176)
	at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554)
	at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1701)
Caused by: Error type: INVALID_COUNTRY_CODE. Could not interpret numbers after plus-sign.
	at com.google.i18n.phonenumbers.PhoneNumberUtil.parseHelper(PhoneNumberUtil.java:2846)
	at com.google.i18n.phonenumbers.PhoneNumberUtil.parse(PhoneNumberUtil.java:2687)
	at com.google.i18n.phonenumbers.PhoneNumberUtil.parse(PhoneNumberUtil.java:2677)
	at com.google.i18n.phonenumbers.ShortNumberInfoTest.parse(ShortNumberInfoTest.java:349)
	... 13 more

Hi!
Thanks for the bug report!
We are aware of this issue and we will fix it with the new release (in 1-2 days). It is a problem with files which are automatically generated by ant.
In order to build the new files correctly you have to run:
 ant test -Dtest=none
After running this command, the tests should run correctly.

The tests should be passing now, I sent a pull request yesterday. I am closing this issue.


correct region documentation

@kfbehar : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off


EXISTS

EXISTS returns if a key exists.
If a key exists it returns an integer value of 1 otherwise 0.
:0\r\n
:1\r\n
We can also ask for several keys
EXISTS key1 key2 key1 nosuchkey
In this case key1 will be counted 2 times so the answer will be:
:3\r\n

Should we maybe create an instance of Jedispooled to connect to the redis database? Or should I go ahead with just the java method and code, i.e returning how many instances of the key exist?


Styling fix for initial state of scripting challenge

fixes: #339
preview

Thanks @vinayaksh42 the height of the loader is now the same as the idle state of the Runner. I don't think this PR fixes #339 though, because there still is the "Custom validation message" which should be dynamically changed based on the current hash that is being validated. If you want to work on that issue in this PR feel free, otherwise let me know and we can merge this but keep #339 open.

Thanks @vinayaksh42 the height of the loader is now the same as the idle state of the Runner. I don't think this PR fixes #339 though, because there still is the "Custom validation message" which should dynamically change based on the current hash that is being validated. If you want to work on that issue in this PR feel free, otherwise let me know and we can merge this but keep #339 open.

Sure, I will create a new PR for adding the "custom validation message"

@vinayaksh42 its okay I fixed this in #398


Fully trained checkpoints available?

Are the checkpoints for the fully trained models available?
Or do I have to download the data from https://github.com/marcpaga/nanopore_benchmark and train it myself?
The repo contains https://github.com/marcpaga/basecalling_architectures/tree/main/demo_data/properly_trained_bonito, but I am wondering about the other models you trained for your paper.

See this for the checkpoints: https://github.com/marcpaga/basecalling_architectures/issues/1


Listener string return value truncated

Another possible bug:
I have a 24-byte UUID that I store in a characteristic. I setup a listener to monitor for changes in that value using the monitorCharacteristicForDevice function. I also read that characteristic value directly from time to time using the readCharacteristicForDevice function.
When I read the value directly and convert from Base64 to utf8, I get all 24 bytes.
When I get the value initially from the listener and convert, I get all 24 bytes.
However, in subsequent calls from the listener, I only get 20 bytes.
Here is some example output:
When reading directly:
Base64: MEQ0OUFEOUYxNDc4MTMyNjY1NTQwNTk5
utf8: 0D49AD9F1478132665540599

Initial response from listener:
Base64: MEQ0OUFEOUYxNDc4MTMyNjY1NTQwNTk5
utf8: 0D49AD9F1478132665540599

Subsequent responses from listener:
Base64: MEQ0OUFEOUYxNDc4MTMyNjY1NTQ=
utf8: 0D49AD9F147813266554

This one has me stumped. Any ideas?
One more thing I've noticed that may or may not be relevant: when setting up a listener on a characteristic, it does not get called initially (which is probably correct behavior). However, when I read the characteristic after setting up the listener, the listener gets called. Now this is not really expected behavior to me; seems like a call to read a characteristic that is Read+Notify should not trigger a listener event. As it is, when I set up a listener and do a read to get the initial state, I get two identical results - one from the read, and one from the listener. (This is what I meant above as the "initial response from listener").
Thanks in advance! Cheers,
L3

Hello,
According to Bluetooth Specification Vol 3, chapter <IP_ADDRESS>, maximum notification payload is defined as ATT_MTU - 3 and and any bigger payload will be truncated. On most devices, from our experience ATT_MTU is negotiated as 23 bytes, which leave us with max 20 bytes of data possible to transfer by notification. Reads and writes are handled by chunks, that's why you can send or read > 20B by using them. Related post:
https://devzone.nordicsemi.com/question/84021/how-do-i-get-whole-31-byte-ble-notification-data-at-once/
Responding to your second issue: unfortunately on iOS devices there is only one delegate callback called: peripheral(_:didUpdateValueFor:error:) which is used at the same time for reads, notifications and indications. When value is received, we don't have enough context to determine if it was caused by notification or write. That's why after setting up listener and executing read, you will receive the same value on both listeners.
There are few things we can do about each case. First of all, when we receive notification which is smaller then expected, we should execute read to get full payload. Additionally to have better chance to distinguish notification/read values we can filter out expected events from monitor listener as we know exactly how many times we read characteristic.
I hope it helps you,
Przemek

Thanks! That's super helpful - I didn't know about the Bluetooth spec. Makes perfect sense. I can easily deal with this - I'll just have a simple, quick notification characteristic that let's me know which characteristic changed, and then execute a read to grab the latest value. That should also deal with the second problem as well.
Thanks again for the quick response. Cheers,
L3

I'll consider changing value monitoring behaviour in the future. I wrote it down as a one of points in Breaking Changes (issue #21).
For now I'm closing this thread.


Setup command is missing schemes

I'm not sure what the difference is, but I have 2 different projects that are set up in pretty much the same way, with an spm package that has many modules. One of them correctly shows all of the schemes when I run :XcodebuildSetup and the other one does not. I can provide more information if needed.
This one is correct:

And this one only shows 2 schemes:

Interesting. Well, for the project that works, I don't have any .xcscheme files in my .xcodeproj...

And for the one that doesn't work, it DOES have an .xcscheme... I'm not sure how to click around to make it update...

I tried deleting the Countable.xcodeproj/xcuserdata folder and if can now find all of the schemes from my spm module, but of course it can't find the schemes app targets or widget extension (and neither can Xcode obviously).

I ran into this as well. My SwiftPM schemes were in the .swiftpm/xcode/xcschemes folder for the package, with nothing in the xcodeproj folder. Moving the schemes into the xcodeproj folder and updating the project seems to work. Ideally this should not be necessary, given that Xcode seems able to find these schemes.
The other schemes were visible prior to PR 96.

Ahhh, so there could be schemes also in .swiftpm/xcode/xcschemes. I didn't know about this path.

I will need to investigate it, for now I'm reverting the improvement to find schemes based on generated files. Let me know if it resolves your issue.

Thanks, that does fix the issue for me. They all show up now!

If you need a project to test with, this is the one that had the problem: https://github.com/agarrharr/Countable

For my use-case, this change was a huge benefit. I have a large macOS project with multiple SPM packages. Working in the project involves changing schemes often, depending on what is being worked on. Building the SPM packages via the parent target is very time consuming, and it does not allow me to use the test explorer to run tests for a specific package. This increases the build/test time significantly.

Ah, great questions. I don't really need to select them, I was just surprised that they were missing from this list. Technically, it would make it build faster if I was working on one small module at a time.
But if I'm working on a SwiftUI view, I have Xcode in the background and I have an AppleScript that automatically switches to that scheme in Xcode when I save a file so that I can see the SwiftUI preview.
Now that I think about it though, I would need to select one of them to run their tests, right?

Currently, tests are supported only via test plans, so if you configure a test plan in your main app that runs tests from specific module you should be able to do that without selecting SPM target.
@notlus for now you can switch to specific commit if this solution worked for you. But keep in mind that build configuration detection doesn't work there, so if you use a different build configuration then "Debug" it won't work correctly.
I need to figure out if and how to support SPM packages, basically it's a different flow than for apps. I guess I would have to support two modes xcodeproj/xcworkspace and SPM module with a different set of commands and behaviors.

Yeah, so I'm running an app that includes a single module from an spm package (called AppFeature) under "Frameworks, Libraries, and Embedded Content". In that package, AppFeature has a dependency on other modules and an external library. I think you already understand, but I wanted to be clear and a picture is worth a thousand words.

I also have this issue with sub-projects. The main Xcode project has some dependencies as child Xcode projects and like the SPM schemes, their schemes are not visible. In Xcode, I can select schemes across the projects.

Ok, this is a bug caused by looking for schemes inside a single xcodeproj. I need to verify if it's just that, if the plugin in general is able to work with other xcodeprojs included. But I think it should work if the scheme is correctly detected.

The main project has multiple peer targets (there is no main app), none of which currently have test plans. I will see whether I can add test plans for them, but it seems like each test plan would need to be configured to run the SPM tests.

If you wrap your main module inside an app project. You can then create a test plan that will include tests from each SPM package, a single test plan. I was using a similar approach in a project where I was working on a modularized application using SPM. We had just a "demo" project to include this package, run tests, and test in general the functionality.

@agarrharr @notlus I added support for SPM packages. I don't know if you are still using the plugin, but I would appreciate if someone could test it and check if it works as expected :).

@wojciech-kulik On a simple project that I have it is working fine. However on the main project that I work on, I am able to discover the Swift packages, but unable to build them. I get the error "The directory /Users/me/ProjectRoot/ does not contain an Xcode project, workspace or package.". I believe it is because the Xcode project file is not in the root of the project. E.g.
ProjectRoot/
├── MainProject/
│   └── main.xcodeproj
├── Packages/
│   └── SomePackage/
├── Tools/
└── etc/
I use the plugin at the root of the project, because there are many other projects that are peers to the main project and I want to be able to edit and build those projects.

Could you download the latest version from the main branch and try again? I'm not sure which version you checked but there were some issues that I fixed already.
You should be able to pick Package.swift & build even if your working directory differs.
However, to switch between packages you will need to run configuration wizard every time. So I think the most efficient way is to navigate to Package.swfit and create xcodebuild.nvim project there. You can then even have multiple terminal sessions with different projects to switch between them without any extra effort.

@wojciech-kulik With the version from main, it is working correctly for me.
Regarding switching packages, I think I will do as you suggested.
Would it be possible to allow for specifying configurations that you could switch between without needing to run the wizard?

Great to hear! 🎊 I'm closing this ticket then.
Could you create a new feature request to quickly switch between configurations?
If you use my suggested approach, you won't have to run the wizard every time because the config directory is created in your working directory. The only thing you need to do is navigate to your Package.swift and run Neovim, each directory with Package.swift will have it's own config.
If you use tmux or any other session multiplexer you can very quickly switch between projects.

The one thing missing from using separate sessions, is that often I want to search or use the LSP to find uses of the package's API. With separate sessions, nvim instances don't have visibility into this information.
I will try using the separate sessions, and if I find it not working as well as switching configurations, I will create a feature request.

You're right, but to make LSP work across all packages I think you need xcodeproj, correct?
I'm not sure if sourcekit-lsp itself is able to navigate between local packages.

Yes, that is correct.
Prior to PR #96, the schemes for Swift packages used by the configured Xcode project were visible and could be selected within the currently configured Xcode project. Those schemed are located in .swiftpm/xcode/xcshareddata/xcschemes.
To work around this, I copied the xcscheme files from the package into the Xcode project's xcshareddata/xcschemes folder. After doing this, the schemes were selectable using the configured Xcode project. This allows for the LSP to find things across the package and the Xcode project.

To work around this, I copied the xcscheme files from the package into the Xcode project's xcshareddata/xcschemes folder. After doing this, the schemes were selectable using the configured Xcode project. This allows for the LSP to find things across the package and the Xcode project.

Interesting, so without schemes, it doesn't work? Shouldn't it work out-of-the-box if you have an Xcode project that adds all packages as dependencies?
The PR that you mentioned shouldn't affect how the LSP works, because the plugin doesn't provide any data to the LSP. Maybe you are thinking about the scheme provided to xcode-build-server? The plugin calls this tool to update buildServer.json (which also contains the selected scheme)

Xcode recognizes the schemes located at .swiftpm/xcode/xcshareddata/xcschemes and they can be selected from within Xcode. Via the plugin, those same schemes are not available, unless they are copied inside of the Xcode project bundle.
Regarding the PR, I think it is related to the fact that the schemes are not visible to xcode-build-server.


git status issue

Issue Type: Bug
Since the last 1-2 releases, I started seeing issues with file explorer and source control. I edit some file, save it, and then file exporer together with source control window don't show any changes while git status from command line does.
It doesn't happen always, maybe it's more related to workspaces with mutiple projects, not sure.
Screenshot of file explorer

Screenshot of source control

VS Code version: Code 1.31.1 (1b8e8302e405050205e69b59abb3559592bb9e60, 2019-02-12T02:16:38.656Z)
OS version: Darwin x64 18.2.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8 x 2600)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: enabledrasterization: enabledsurface_synchronization: enabled_onvideo_decode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
2, 4, 4

Memory (System)
16.00GB (0.89GB free)

Process Argv
-psn_0_73746

Screen Reader
no

VM
0%

Extensions (15)

Extension
Author (truncated)
Version

scala
dal
0.0.5

gitlens
eam
9.5.1

json-tools
eri
1.0.2

hadolint
exi
0.3.0

gitlab-workflow
fat
2.0.1

jsonnet
hep
0.1.0

terraform
mau
1.3.8

python
ms-
2019.2.5558

Go
ms-
0.9.2

python-docs
Muk
0.8.3

vscode-docker
Pet
0.5.2

jinjahtml
sam
0.8.0

bash-beautify
sha
0.1.1

shellcheck
tim
0.6.0

jsonnet-formatter
xrc
0.2.2

Some more info, when I update file and click refresh, nothing happens

But, when I go to source code view and click refresh, then both source code and file explorer windows refresh and show changes

Are the workspace folders roots of git repositories? Or are they sub folders of the git repository?

@joaomoreno yes, each folder is git root folder

Does it work if you open each folder individually in Code?
Does it always reproduce if you open that workspace?

Sorry @joaomoreno it doesn't always reproduce, it happened several times, but I don't know how to reproduce the bug every time. Perhaps just keep the issue open and see if some other people report this as well, or maybe it was fixed with recent upgrade.

Does it reproduce if you open each folder individually in Code?

I can't reproduce it now, maybe it was fixed


[nginx-ingress-controller] question: Handling Custom error pages

Is there a way to host custom html error pages without having to update the nginx config and just providing some sort of flag value?
We are currently using (https://github.com/kubernetes/contrib/blob/master/ingress/controllers/nginx/nginx.tmpl) as the nginx config file.
According to the documentation at https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx#custom-errors, in case of an error the response is obtained from the default backend. I tried updating this default backend image to a custom image that serves error pages and noticed that the default nginx error pages still get hosted.

Basically you just need to add custom-http-errors: 503 in the configmap specified in the flag --nginx-configmap
and use a custom default backend.
(https://github.com/kubernetes/contrib/blob/master/ingress/controllers/nginx/configuration.md#allowed-parameters-in-configuration-config-map)
This is the example:
https://github.com/kubernetes/contrib/blob/master/ingress/controllers/nginx/examples/custom-errors
This is the content from the custom default backend https://github.com/aledbf/contrib/tree/nginx-debug-server/images/nginx-error-server
(you can also use a static go binary to server files reading the headers)

How it works:
when the controller renders the nginx.conf file iterates the error codes (customHttpErrors)[https://github.com/kubernetes/contrib/blob/master/ingress/controllers/nginx/nginx.tmpl#L402] and creates a custom location where the error code will be redirected.
In case of an error we use lua to make an internal request (this is not possible with plain nginx**) to the default backend using the headers, returning the custom page.
**Note: it works but it does not returns 200 instead of the error code. That's the reason of the internal request.
Any feedback or alternative to simplify this is welcome ;)

Thank you for the quick response. Will follow up with some simplifications after I get it to work.

Rather than posting a seperate issue. I'm having similar trouble when trying to direct to custom erro pages.
I am trying to redirect internal 500 errors to the default backend on /500 (/ goes to 404).
Using:
gcr.io/google_containers/nginx-ingress-controller:0.8.3
Where the @custom_xxx code is as follows in the template:
{{/* definition of templates to avoid repetitions */}}
{{ define "CUSTOM_ERRORS" }}
        {{ range $errCode := .customHttpErrors }}
        location @custom_{{ $errCode }} {
            internal;
            content_by_lua_block {
                openURL({{ $errCode }})
            }
        }
        {{ end }}
{{ end }}

I think thats standard from the time, my config map is as follows:
apiVersion: v1
data:
  custom-http-errors: "500"
kind: ConfigMap
...

In order to test have deployed the default backend service to a separate ingress rule, so when I test going to that service with /500 url it should get redirected by nginx using the custom error function.
I've noticed the redirect is picked up, but instead of taking me to a 500 page, it always redirects to the / which 404's. Checked with one of our apps forcing a 500 as well, and it does redirect to default backend, just not picking up the right path.
I've been reviewing the function used from this commit:
https://github.com/kubernetes/ingress-nginx/pull/1020/files
https://github.com/kubernetes/ingress-nginx/blob/45b68c2160fc971c2b8a2286722351605d306f63/controllers/ext_nginx/rootfs/etc/nginx/lua/error_page.lua#L11-L22
Im wondering if this line is always redirecting things to / instead of /{{ $errCode }}
Had a brief look at 0.9.beta-15 code and can see that block is vastly different now and no longer uses the lua code - however seems the config is loaded differently and as we are also manually passing the nginx template, (and config map) to the RC, I not hugely comfortable upgrading the nginx version just for this.
Any advice if I can pass any headers to openURL's first argument to get it to redirect??
Most things I've tried have broken the lua code so far.

**Note: it works but it does not returns 200 instead of the error code. That's the reason of the internal request.

@aledbf , is there a plan to fix it to return the original error code. In my case scenario, client need to retry(or do following work)based on the return code

we only need small change to return the original error code. https://github.com/kubernetes/contrib/issues/2917


Smartplug become avaible/unvaible every 3 minute (with auto setting in integration)

https://github.com/AlexxIT/SonoffLAN?tab=readme-ov-file#issues


Extractor not pulling Tags associated with APIs

Release version
APIOPs Toolkit v 2.0.2
Describe the bug
Extractor does pull all the Tags (Master List) but it isn't extracting the tags assigned to individual API
Expected behavior
Tags Assigned to APIs are extracted
Actual behavior
Tags Assigned to APIs aren't extracted
Reproduction Steps

Create a new API
Assign a Tag to this newly created API
Run extractor and validate if API has associated tag information extracted

API tags should be extracted under the API folder. Path is rootfolder/apis/yourapi/tags.json. Can you check there are report back?

@rohit3d2003 can you please confirm and close the issue?

I can confirm the tags are getting extracted


image quality seems to be bad on high dpi screens.

need to figure out how to store images in higher dpi.

ws fixed some time ago


Document the data with Hypothesis annotations

Move to ready after https://github.com/hbz/swib18-workshop/issues/4.

We can annotate https://hbz.github.io/swib18-workshop/data/

Closing, see https://github.com/hbz/swib18-workshop/commit/323267167a62d756831b3bed0d22dc2ce2b5792f


Suggestion of existing or new terms

This PR is built on top of PR #62 and adds the ability to suggest new or existing terms. Closes #26, closes #27.

I've changed the base branch to "auth" (#62) for now, to remove redundant diffs and make the review easier. Before merging, I'll change this back to "master"

With this deployment, clicking on "Import all data" results in a timeout:

This doesn't seem to happen in the deployment in #62, although it exhibits another problem with external datasources. I'm not sure whether the problems are related.

This doesn't seem to happen in the deployment in #62, although it exhibits another problem with external datasources. I'm not sure whether the problems are related.

That is because the Celery background worker isn't running in this deployment. You can verify it by checking this panel in the app's main Heroku page

I have ran out of free Redis instances to deploy so one thing I could do is have the two open PRs share a Redis database, and manually choose which worker we want to run, based on what app you want to review


feature: plugin URL in sync UI

Did you check the docs?

[X] I have read all the lazy.nvim docs

Is your feature request related to a problem? Please describe.
With Packer, I could easily jump to a plugin's repo if I want to examine recent commits using gx. Without URLs in the results after syncing, I am unable to do so.
Describe the solution you'd like
Include the repo URL for plugins after syncing.
Describe alternatives you've considered
I've tried using my plugin urlview.nvim which has Lazy.nvim integration to show all the plugin URLs, but this doesn't work since they are both conflicting floating displays.
Additional context
No response

You can. Check the help. Check the docs. Use K


Merge upstream changes

Useful additions/features:

add_output helper method on Blueprints
stack policy support
python 3.5 support
DAG of stacks that allows some cool stuff

parallel processing of the stacks graph
ability to specify a single stack to build that will build the stack and all of its dependencies
systemd esque targets
graph command to output and visualize your stack dependency graph

superseded by #10


Apply few fixes

Here is a list of the tweaks:

Fix in_features as a list;  int type  caused a Pytorch error
Rename alpha  -> a to keep the same naming as in the paper
Fix the Parameter shape with squeeze(); previously causing a Pytorch error
Miscellaneous style tweaks

You're welcome! Thanks to your code my project (learning some functions of a dynamical system with periodicity) now works 😁


Add Arm logo

~ARM~ Arm have a new logo (just saw it on my way to the train station).

Am merging this — it should be a low risk change as it only modifies an svg

^ this seems not to have gone through…


Issue with Repeating Model Output After Fine-Tuning

Hello,
Thank you for your excellent work. I have a question regarding the fine-tuned model's performance. I fine-tuned the model on a dataset of around 100 episodes as per your guidelines. While the training loss decreased as expected, I encountered an issue during testing. On our robot, the model outputs identical actions consecutively throughout an episode, producing the same action. Have you experienced this behavior before?
Thanks again for your valuable work.

@EmbodiedSolutions I'm sorry for the confusion. I was referring to "fine-tuning" with the provided guidelines, not guidelines for "using a dataset".
I have collected my own dataset and converted it into RLDS format following the instructions in this repo.

@JHKim-snu No, actually I knew you were referring to fine-tuning; I should have said "using a dataset of 100 episodes for fine-tuning" to be clearer. Thanks for responding!

Hi!
To confirm: did you train your model to predict a single action at a time or an action chunk? The repeating action problem can be quite common for action chunks, but I would be surprised if it's common for single action prediction with various inputs.
If you want to debug this, a simple step would be to load up some images from the training data in your inference pipeline and pretend that they came from the robot camera. If everything is set up correctly the model should output the correct actions from the training data for the training images.


corrected README.md Websocket Client example to use wss endpoint

Websocket Client example call should use a wss endpoint, not the rest endpoint.

Whee, good catch. Thanks a lot!


Remove decompress_bridge and move decompression inline

This (with cautious optimism) appears to fix #657.
Signed-off-by: John Eckersberg<EMAIL_ADDRESS>

The other CI thing going on here is we got dnf5 in fcos testing-devel which of course just broke super basic (IMO) CLI invocations...

Let's get https://github.com/ostreedev/ostree-rs-ext/pull/678 in and then rebase this?

Ok merged that, rebase?

:crossed_fingers:

Thanks for this!


Feed: count of match/request differs from number of items displayed

on #1024 when posting an offer in debugmode:

It says, 1 match, 1 request - but only one item is shown. Probably related to #1049 - listing the remote needs may stop after the first failure

seems to occassionally happen in FF, with a crash in the function won-utils.js:connectionLastUpdatedAt.
stack-trace:
Error: connection is undefined
connectionLastUpdatedAt@https://localhost:8443/owner/generated/app_jspm.bundle.js:51315:13
selectFromState@https://localhost:8443/owner/generated/app_jspm.bundle.js:34734:81
getStateSlice@https://localhost:8443/owner/generated/app_jspm.bundle.js:36301:17
Connector/<@https://localhost:8443/owner/generated/app_jspm.bundle.js:36271:19
Controller@https://localhost:8443/owner/generated/app_jspm.bundle.js:34746:34
invoke@https://localhost:8443/owner/generated/app_jspm.bundle.js:54213:20
$ControllerProvider/this.$get</</instantiate<@https://localhost:8443/owner/generated/app_jspm.bundle.js:56100:30
nodeLinkFn@https://localhost:8443/owner/generated/app_jspm.bundle.js:55598:40
compositeLinkFn@https://localhost:8443/owner/generated/app_jspm.bundle.js:55231:19
publicLinkFn@https://localhost:8443/owner/generated/app_jspm.bundle.js:55161:36
createBoundTranscludeFn/boundTranscludeFn@https://localhost:8443/owner/generated/app_jspm.bundle.js:55244:22
controllersBoundTransclude@https://localhost:8443/owner/generated/app_jspm.bundle.js:55632:24
ngRepeatAction@https://localhost:8443/owner/generated/app_jspm.bundle.js:62856:21
$watchCollectionAction@https://localhost:8443/owner/generated/app_jspm.bundle.js:59495:19
$RootScopeProvider/this.$get</Scope.prototype.$digest@https://localhost:8443/owner/generated/app_jspm.bundle.js:59564:29
$RootScopeProvider/this.$get</Scope.prototype.$evalAsync/<@https://localhost:8443/owner/generated/app_jspm.bundle.js:59635:21
completeOutstandingRequest@https://localhost:8443/owner/generated/app_jspm.bundle.js:54599:13
Browser/self.defer/timeoutId<@https://localhost:8443/owner/generated/app_jspm.bundle.js:54725:13
  app_

no longer relevant -> feed was removed


Compile error when comment in a slot that takes renderless components

With a slot that takes renderless components and uses a generator (like the example at: https://surface-ui.org/slots#binding-slot-props-to-generators - Binding slot props to generators)
When using the component and commenting out a line in the slot, this used to work fine in 0.4:
<Table items={user <- @users}>
  <Column title="Email Address">{user.email}</Column>

But is now a compile error in 0.5:
no slot "default" defined in parent component

Available slot: "cols"

Here's my table and column components:
defmodule Component.Table.Column do
  use Surface.Component, slot: "cols"

  @doc "The title of the column"
  prop title, :string, required: true
end

defmodule Component.Table do
  use Surface.Component

  prop items, :list, required: true

  slot cols, props: [item: ^items]

  def render(assigns) do
    ~F"""

          <th :for={col <- @cols} scope="col">
            {col.title}

        <tr :for={item <- @items}>

            <#slot index={index} name="cols" :props={item: item} />

    """
  end
end

@totaltrash in 0.5  is treated as regular HTML comment. It means that it will appears in the HTML code. It was not the case with 0.4. The encountered behaviour is the expected one as you have 2 nodes: public comment and a slot but the table composent does not accept a default slot.
0.5 also introduce the notion of private comment {!-- --} that are ignored at compile time and that will not appears in the HTML code.
Could you replace your code with the new syntax and see if it fix your issue ?

Yep, works perfectly, thanks @Malian


Is that possible to support loading in-memory structures from files?

like encoding/gob did, but supports private field. I'd like to use this feature to implement something like snapshot testing.

It's doable, But unfortunately, That's out of the scope of this library.
godump is all about generating human readable representation out of arbitrary data structures. We're trying to do one thing, And do it well.
However, That's a great idea. I thing it would be very useful in contexts like the one you've mentioned. Hopefully, we can implement it later  when more users are interested in this feature.
I advise you to check this library  https://github.com/gkampitakis/go-snaps, I think it offers exactly what you want.
Thanks.


Add "Public Meeting Minutes" check in "Best Practices"

We expect projects to hold public meetings, e.g., https://goo.gl/5Cergb
A lot of time projects embed this info in the README, there's no standard way we can fetch this information currently.
One idea I have is to stuff it in the landscape.yml on l.cncf.io that we could check for but open for ideas
cc: @amye

We've implemented this check by looking for some regular expressions in the README file:
"(?i)community (call|event|meeting|session)"
"(?i)(developer|development) meeting"
"(?i)meeting minutes",
"(?i)(weekly|biweekly|monthly) meeting"

It seems to be working fine on a number of projects, but we can fine tune it as needed.

Oh neat! That's better than I was expecting!


keras import failure - occasionally fails to mount with classifypixelsunet.py

working to resolve import error on latest keras with self-install script. self-report to keep me on it. pip freeze logs on known good version versus recent git clone installation path - keras import is thrown error. imports correctly and the file is found, just not initialized properly. Trying with restart after initial install with known good classifypixelsunet.py codebase to see if resolved. troubleshoot monday.

tensorflow found to be missing with base install path - added to baseline. resolved


Data results

This pull requests adds the following features:

Possibility to use an array of objects for suggestions instead of an array of strings in order to allow the user to store related data to the suggestion text and retrieve it directly from the select listener. It could allow for example to get the ISBN of a book, showing only the title of the book in the list, without worrying about the fact that it is possible to have different books with the same title.
Enhance the filtering and highlighting functionality to allow searching using multiple words even if they don't match with the same order in the suggestion text. In that case it would create multiple span tags inside the li element of the list to highlight different parts of the text.

I'd appreciate any suggestion to enhance the code or any better approach to achieve this functionalities.

+1


Chiadog fails processing log when logrotate rotates log file with copytruncate

Describe the bug
Instead of Chia's built-in log rotation, I use logrotate with the following configuration:
/home/chia/.chia/mainnet/log/*.log {
  su chia chia
  copytruncate
  rotate 9999
  nocompress
  missingok
  ifempty
  hourly
  datehourago
  dateext dateformat .%Y-%m-%d_%H-%M-%S
}

Whenever logrotate rotates Chia's log (as per my configuration, once per hour), Chiadog fails to process the log
[2021-09-07 20:03:27] [   DEBUG] --- Keep-alive check for HARVESTER: Last activity 201 seconds ago. (keep_alive_monitor.py:77)

I assume that Chiadog / pygtail has problems with the copytruncate rotation strategy.
Environment:

OS: Ubuntu 20 LTS
Python version: 3.8.10
PIP version: 21.2.4
Chia version: 1.2.5
Chiadog version: 0.7.0
Harvester: local

I can also confirm we are having the same problem albeit this with Chia's default log rotation rather than logrotate. The symptoms are exactly the same, when the log rolls over Chiadog cannot handle the problem correctly and thinks that the harvester is offline.
Environment:

OS: Ubuntu 22-04 LTS
Chia version: 1.5.1
Chiadog version: 0.7.3 Docker
Harvester: local

wrt Docker, I am using docker volume mounting with -v argument to directly mount the debug.log file into the container.


ASAP matlab code error

Hi, when I tried to run matlab code, there is an error about matrix dimensions, see below.
Any idea about that?  Thanks!
Error using  -
Matrix dimensions must agree.
Error in ts_solve (line 38)
Psg = reshape(Ps(G),size(G)) - Pgs;
Error in compute_information_gain_mat (line 7)
[out_data]=ts_solve(init_data);
Error in run_asap (line 24)
[inf_mat,init_data,pairs_to_compare]=compute_information_gain_mat(N,init_data);
Error in example_running (line 9)
[pairs_to_compare, Mean, Std] = run_asap(M, 'mst');

Hi Jun,
Thanks for the question.
I guess the reason might be in the version of Matlab you are running.
The code was written on MATLAB_R2020a.
Let me know if there is anything else I could help you with.
Thanks,
Aliaksei

Hi Jun,
Thanks for the question.
I guess the reason might be in the version of Matlab you are running.
The code was written on MATLAB_R2020a.
Let me know if there is anything else I could help you with.
Thanks,
Aliaksei

Hello Aliaksei,
Thanks for your response. Indeed, I am using matlab_r2014b which is probably too old:)
I will try with the r2020a. Thanks for your suggestion.
Best,
Jun


compiling  using VSCODE

when ever I edit the makefile in VSCode the changes are not applied... if I change the makefile using notepad those changes then work in vscode(as well as win_make.bat)...

Sounds like VSCode isn't saving the make file before compiling, I don't know without trying myself.
I haven't got VSCode configured to build the project, was it easy to setup I wonder ?

Sounds like VSCode isn't saving the make file before compiling, I don't know without trying myself.
I haven't got VSCode configured to build the project, was it easy to setup I wonder ?

in general it is very easy  just install as required in the gcc stuff and you should be ready to go.... Compiles other k5 branches fine

Works fine for me compiling via VSCode. I'm using the extension "Makefile Tools" (v0.7.0) from Microsoft


Modify signatures of ImageFilter methods

From the filters that have been implemented, none of them really utilize an instance of set any meaningful instance variables. In addition, some implementations do not even access anything on the instance. Due to this, I propose that we can make the abstract methods also class methods since the current filters are setting class variables. This could also be a sign that there might want to be more thought on how to implement this base class.

Because it's acting on the image that gets passed in directly, there really isn't much need to instance variables in my opinion.

Because it's acting on the image that gets passed in directly, there really isn't much need for instance variables in my opinion.

Well yes that is exactly what I am saying. That is why we can modify the signatures and potentially remove self

Yeah. I agree. More of a minor problem at the moment though. Lots of major things to keep pushing through.


Update nn-dxgi-idxgisurface.md

@john-h-k : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Client Subscriber Sample error message

Describe the bug
Visual Studio 2022 - CS0246 error code while runnning Client Subscriber Sample
Which component is your bug related to?

Client

To Reproduce
Steps to reproduce the behavior:

Using this version of MQTTnet <IP_ADDRESS>1
VS 2002 issues the following error code
CS0246 - The type or namespace 'MqttFactory' could not be found (are you missing a using directive or an assembly reference?

Code example:
using MQTTnet.Client;
namespace MQTT
{
public static class Program
{
public static async Task Main(string[] args)
{
/*
* This sample subscribes to a topic and processes the received message.
*/
var mqttFactory = new MqttFactory();
using (var mqttClient = mqttFactory.CreateMqttClient())
{
var mqttClientOptions = new MqttClientOptionsBuilder()
.WithTcpServer("<IP_ADDRESS>", 1883)
.WithCredentials("teste", "mqtt1234")
.Build();
            // Setup message handling before connecting so that queued messages
            // are also handled properly. When there is no event handler attached all
            // received messages get lost.
            mqttClient.ApplicationMessageReceivedAsync += e =>
            {
                Console.WriteLine("Received application message.");
                e.DumpToConsole();

                return Task.CompletedTask;
            };

            await mqttClient.ConnectAsync(mqttClientOptions, CancellationToken.None);

            var mqttSubscribeOptions = mqttFactory.CreateSubscribeOptionsBuilder()
                .WithTopicFilter(
                    f =>
                    {
                        f.WithTopic("pmjr/data/01/torneio");
                    })
                .Build();

            await mqttClient.SubscribeAsync(mqttSubscribeOptions, CancellationToken.None);

            Console.WriteLine("MQTT client subscribed to topic.");

            Console.WriteLine("Press enter to exit.");
            Console.ReadLine();
        }
    }
}

}

What is missing is using MQTTnet as first statement, I guess.


Image with changed orientation by EXIF has wrong BoxFit

Steps to Reproduce

Full app demo:
import 'package:flutter/material.dart';

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text("Rotated image BoxFit bug"),
        ),
        body: Column(
          crossAxisAlignment: CrossAxisAlignment.stretch,
          children: [
            Image(
              image: NetworkImage(
                "http://stromysvobody.cz/StromySvobody/BizFormFiles/e040a40a-f947-4a21-9c4f-6ee0d790a21d.jpg",
              ), // try http://stromysvobody.cz/StromySvobody/BizFormFiles/a0cf6bd6-a423-4e34-999f-0ecfff2bd01f.jpg - works correctly
              fit: BoxFit.cover,
              height: 256.0,
            ),
          ],
        ),
      ),
    );
  }
}

The image has BoxFit set to cover, which means it should be stretched to the full width of the screen (because of the Column crossAxisAlignment), however it is not. With any normal image this works (such as the one in comment).
This particular image is originally in incorrect landscape rotation and (I suppose) it has EXIF data set the orientation to portrait. The Image widget correctly rotates the image, however the BoxFit does not work properly.
[✓] Flutter (Channel master, v0.5.8-pre.277, on Linux, locale en_US.UTF-8)
    • Flutter version 0.5.8-pre.277 at /home/marek/development/flutter
    • Framework revision e5432a2843 (2 days ago), 2018-08-08 16:45:08 -0700
    • Engine revision<PHONE_NUMBER>
    • Dart version 2.0.0-dev.69.5.flutter-eab492385c

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /home/marek/Android/Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • Java binary at: /opt/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
    • All Android licenses accepted.

[✓] Android Studio (version 3.1)
    • Android Studio at /opt/android-studio
    • Flutter plugin version 25.0.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] Connected devices (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator)

• No issues found!

This problem is actually more serious. Flutter is currently not capable of correctly rendering images containing EXIF data. I checked this on latest dev and master builds.
BoxFit is ok and image size is correct (adjusted for orientation in exif) but the rendering happens in original orientation that also results in BoxFit-like issues with images that aren't square.
@zoechi This should have critical or at least very high priority. It makes impossible working with e.g. images captured with camera on iOS or basically any other image using EXIF for specifying orientation (also from network).

@piotr-tobolski can you provide an example image?
Please also add the output of flutter doctor -v.

Photos I use are taken with iPhone X back camera in portrait orientation. I use camera plugin version 0.2.4.
I think GitHub doesn't modify uploaded photos, byte count is right:
It seems that photo preview in GitHub doesn't rotate the photo correctly. Letters should be in their normal orientation, opening the photo with Preview, Safari or any photo management app works fine.
[✓] Flutter (Channel dev, v0.11.6, on Mac OS X 10.14.1 18B75, locale pl-PL)
    • Flutter version 0.11.6 at /Users/piotrtobolski/Documents/Projekty/flutter
    • Framework revision d44aa57c12 (7 days ago), 2018-11-14 11:09:56 -0800
    • Engine revision 114d33d3ca
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at /Users/piotrtobolski/Library/Android/sdk
    • Android NDK at /Users/piotrtobolski/Library/Android/sdk/ndk-bundle
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = /Users/piotrtobolski/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode-10.1.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 2.0.0
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 29.1.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build
      1.8.0_152-release-1136-b06)

[✓] IntelliJ IDEA Community Edition (version 2018.2.5)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 29.1.3
    • Dart plugin version 182.4892.25

[✓] VS Code (version 1.29.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 2.20.0

[✓] Connected device (2 available)
    • Android SDK built for x86 • emulator-5554                            •
      android-x86 • Android 9 (API 28) (emulator)
    • iPhone Tobola             • 92a75d6772c7a12358ed1bf78819c29197da88cf • ios
      • iOS 12.1

• No issues found!

And how it looks in the app:

The code for contents of the square at the bottom is:
child: Stack(
  alignment: Alignment.center,
  fit: StackFit.expand,
  children: [
    Container(
      color: Colors.black12,
      child: FractionallySizedBox(
        widthFactor: .5,
        heightFactor: .5,
        child: FittedBox(
          child: Icon(Icons.image, color: Colors.black87),
        ),
      ),
    ),
    Material(
      color: Colors.transparent,
      child: Ink.image(
        fit: BoxFit.cover,
        image: FileImage(File(photos[index])),
        child: InkWell(
          onLongPress: () =>
              enrollFaceBloc.photoRemoval.add(index),
        ),
      ),
    ),
  ],
),

Using other widgets than Ink.image like Image.file or Image.network with any other configuration (in stack or without it) has the same result. Photos without EXIF orientation, e.g. taken with Android simulator correctly fill whole space like BoxFit.cover should.

@piotr-tobolski thanks. I think that is quite helpful.

I've written notes about how to add exif on iOS/Android to: https://github.com/flutter/flutter/issues/10533#issuecomment-441719073 . I suspect all of these exif bugs are the same root cause and easy to fix.

can the imagePicker library save images in their correct orientation instead of using the EXIF metadata?
currently, if the image is taken in portrait mode, its saved as landscape and then EXIF metadata is added to indicate that it has to be rotated 90deg to get back the correct orientation
problem is that, i upload my pictures to a webApp, and not all browsers are able to make use of such EXIF data, and therefore browsers depend on the explicit orientation of image (without having to depend on image metadata)

@fritz-playmaker there are other issues for that #19458 #12921 #25286 and pull requests flutter/plugins#1233 flutter/plugins#1114 flutter/plugins#1113 flutter/plugins#866

@zoechiI have gone through the issues but my case is quite unique. My image is rendering and displaying as expected. But I want to know if I can access the actual orientation of the image which has been saved instead of current imageOrientation value : "Rotated 90 CW"

You could use ImageMagic to modify uploaded imaged to fit your demand.
If you have a unique request, it's better to create a new issue for your feature request.

You could use ImageMagic to modify uploaded imaged to fit your demand.
If you have a unique request, it's better to create a new issue for your feature request.

ok. thanks.


Help with recording 24/7 in ver 3.0.0b11

Hi,
I'm new to viseron and this is my first time to try it.
I have created a docker container with version 3.0.0b11 and worked my way to figure out how I should write the config file, but for some reason I'm still not able to make a 24/7 recording for my test camera.
My need is quite basic. I don't need any AI or any motion detection. only recording for 24/7.
This is how I wrote my config:
ffmpeg:
  camera:
    camera_1:
      name: test
      host: !secret host_a
      port: !secret port_a
      path: !secret path_a
      username: !secret username_a
      password: !secret password_a
      fps: 60

storage:
  recorder:
    tiers:
      - path: /
        continuous:
          max_size:
            gb: 2

nvr:
  camera_1:

This is the logs I have at the beginning (not sure what is the meaning of the WARNING message):
[2024-11-17 20:49:21] [INFO    ] [viseron.core] - -------------------------------------------
[2024-11-17 20:49:21] [INFO    ] [viseron.core] - Initializing Viseron 3.0.0b11
[2024-11-17 20:49:21] [INFO    ] [viseron.components] - Setting up component data_stream
[2024-11-17 20:49:21] [INFO    ] [viseron.components] - Setup of component data_stream took 0.0 seconds
[2024-11-17 20:49:21] [INFO    ] [viseron.components] - Setting up component storage
[2024-11-17 20:49:21] [INFO    ] [alembic.runtime.migration] - Context impl PostgresqlImpl.
[2024-11-17 20:49:21] [INFO    ] [alembic.runtime.migration] - Will assume transactional DDL.
[2024-11-17 20:49:22] [INFO    ] [viseron.components] - Setup of component storage took 0.1 seconds
[2024-11-17 20:49:22] [INFO    ] [viseron.components] - Setting up component webserver
[2024-11-17 20:49:22] [INFO    ] [viseron.components] - Setup of component webserver took 0.0 seconds
[2024-11-17 20:49:22] [INFO    ] [viseron.components] - Setting up component nvr
[2024-11-17 20:49:22] [INFO    ] [viseron.components] - Setting up component ffmpeg
[2024-11-17 20:49:22] [INFO    ] [viseron.components] - Setup of component nvr took 0.0 seconds
[2024-11-17 20:49:22] [INFO    ] [viseron.components] - Setup of component ffmpeg took 0.0 seconds
[2024-11-17 20:49:22] [INFO    ] [viseron.components] - Setting up domain camera for component ffmpeg with identifier camera_1
[2024-11-17 20:49:22] [INFO    ] [viseron.components] - Setting up domain nvr for component nvr with identifier camera_1
[2024-11-17 20:49:22] [WARNING ] [tornado.access] - 404 GET /api/v1/hls/camera_1/index.m3u8?start_timestamp=1731869002&daily=true (<IP_ADDRESS>) 255.89ms
[2024-11-17 20:49:24] [WARNING ] [tornado.access] - 404 GET /api/v1/hls/camera_1/index.m3u8?start_timestamp=1731869002&daily=true (<IP_ADDRESS>) 2.96ms
[2024-11-17 20:49:24] [WARNING ] [tornado.access] - 404 GET /api/v1/hls/camera_1/index.m3u8?start_timestamp=1731869002&daily=true (<IP_ADDRESS>) 3.00ms
[2024-11-17 20:49:25] [WARNING ] [tornado.access] - 404 GET /api/v1/hls/camera_1/index.m3u8?start_timestamp=1731869002&daily=true (<IP_ADDRESS>) 4.10ms
[2024-11-17 20:49:26] [INFO    ] [viseron.components] - Setup of domain camera for component ffmpeg with identifier camera_1 took 3.4 seconds
[2024-11-17 20:49:26] [INFO    ] [viseron.components.nvr.nvr.camera_1] - Motion detector is disabled
[2024-11-17 20:49:26] [INFO    ] [viseron.components.nvr.nvr.camera_1] - Object detector is disabled
[2024-11-17 20:49:26] [INFO    ] [viseron.components.nvr.nvr.camera_1] - NVR for camera test initialized
[2024-11-17 20:49:26] [INFO    ] [viseron.components] - Setup of domain nvr for component nvr with identifier camera_1 took 0.0 seconds
[2024-11-17 20:49:26] [INFO    ] [viseron.core] - Viseron initialized in 4.2 seconds

My recording path is actually a docker-volume (but I have tried it also with a bind, and ended up with the same results). so when I go to that path, I see the following:
$ ls -R ./
./:
camera_1

./camera_1:
$

so looks like the segment for the camera is being created correctly, but nothing can be found under that path.
as for the configuration - I can tell that my "secrets" are good, as I do get live feed for the camera.
any one know what is the problem?

I think it might be a problem with the volumes and bind mounts overshadowing each other.
I declare the volumes in the Dockerfile which i realize now might be a mistake.
Try to stop Viseron, delete the volumes and then start the container again.
Hopefully that should work.
I will remove the volumes from the Docker container for the next release

Thanks @roflcoopter  again for the quick reply.
I assumed that the recordings folder will be the directory in which I can find my continuous /recording, since this is the path we can configure for the docker. I wasn't aware of the existence of the /segments folder before my original message and only now (I think) I understand its purpose.
to answer your question, then my suggestion for the folder structure/hierarchy was regarding the /segments folder, as this is the only folder I had with files when I was searching for the recorded files (also, from what I could understand from reading around, the /recordings folder already have such a structure/hierarchy, but I didn't see it as I only use the 24/7 continuous recording).
so, from what I can see and understand now, and according to my configuration, I only have files under /segments folder for the continuous recording. this is great for what I need, however I still have few questions and maybe some few requests:

I'm new to .m4s files and not sure I understand how I can use them. I tried to read around a bit on how to create the m3u8 playlist as you suggested. the thing is, I'm not sure I understand how I should use it once I have the m3u8 playlist ready (should I place the m3u8 under the /segments folder and access it remotely? if so - how should I allow such access? or maybe I should copy the .m4s files locally and place the m3u8 in that local folder? maybe something else?).
you have mentioned using the API for creating a playlist. can you elaborate a bit about that? I'm not sure I understand which API you are referring to and how should I use it. is there somewhere I can read about it?
a request: is it possible to have the /segment folder be configured also in the docker?
a request: my current understanding is that there is no (existing) option of creating a continuous mp4 files. is it possible to add such support? the way I can think of how it will work is by having a configurable length for each such mp4 file (and with a default of, let's say, 60 seconds) so that every X seconds will be created a new mp4 file. those video clips could be stored under the a new folder in a sub-folder structure/hierarchy that is similar to what I have suggested above or like the one under /recordings folder (my initial thought was to place those continuous video clips under /recordings folder, but then I realized that for someone who wants to have a mix of continuous recording and also events, this will make things more complicated. so probably better to place them under a new folder to avoid confusion).
a request: alternatively to the previous suggestion (or maybe in addition to it, if possible) - maybe add an option in the web-UI (probably under the "timeline" page) to set from and to fields, and a "generate" button that will create a single video-clip of the custom selected period. maybe even to add in addition (but not instead, so that time-period that starts on one day and ends on another one will still be possible) an option to drag and select the desired time-period from the timeline itself, which will "feed" the from and to fields.
a request: I noticed that if a camera is disconnected, then in its timeline page we can not use the playback. is it possible to allow watching playback even if the camera is disconnected? since I believe that the source files for the playback are taken from the '/segments` folder which to my understanding is available even when the camera is disconnected from power.

again, many thanks for the help and for the quick answers.
hopefully, my requests are doable and not complex to implement.
appreciate all your hard work 🙏

I'm new to .m4s files and not sure I understand how I can use them. I tried to read around a bit on how to create the m3u8 playlist as you suggested. the thing is, I'm not sure I understand how I should use it once I have the m3u8 playlist ready (should I place the m3u8 under the /segments folder and access it remotely? if so - how should I allow such access? or maybe I should copy the .m4s files locally and place the m3u8 in that local folder? maybe something else?).

That depends on how you want to consume it.
If you observe the devtools when viewing the timeline/events/recordings you see calls to Viserons API and the HLS endpoint.
It will look something like this: http://host:port/api/v1/hls/garage_front/<recording_id>/index.m3u8
You can input that directly in VLC to view it.
If you want to get more familiar with how the streaming works you can read up on the HLS protocol (the m3u8 playlist) which Viseron is using.

2. you have mentioned using the API for creating a playlist. can you elaborate a bit about that? I'm not sure I understand which API you are referring to and how should I use it. is there somewhere I can read about it?

Viserons API does it for the frontend, but again it depends on how you want to consume it.
The API is not documented yet sadly.

3. a request: is it possible to have the /segment folder be configured also in the docker?

Do you mean changing what path the segments are stored in inside the container?
That can be done by changing the path for your tier in the storage config

4. a request: my current understanding is that there is no (existing) option of creating a continuous mp4 files. is it possible to add such support? the way I can think of how it will work is by having a configurable length for each such mp4 file (and with a default of, let's say, 60 seconds) so that every X seconds will be created a new mp4 file. those video clips could be stored under the a new folder in a sub-folder structure/hierarchy that is similar to what I have suggested above or like the one under /recordings folder (my initial thought was to place those continuous video clips under /recordings folder, but then I realized that for someone who wants to have a mix of continuous recording and also events, this will make things more complicated. so probably better to place them under a new folder to avoid confusion).

What is your usecase for that?
It could definitely be added but that means that the m4s files and mp4 files would exist for the same timespans using twice as much disk space.

5. a request: alternatively to the previous suggestion (or maybe in addition to it, if possible) - maybe add an option in the web-UI (probably under the "timeline" page) to set from and to fields, and a "generate" button that will create a single video-clip of the custom selected period. maybe even to add in addition (but not instead, so that time-period that starts on one day and ends on another one will still be possible) an option to drag and select the desired time-period from the timeline itself, which will "feed" the from and to fields.

Yes an export feature is on the todo list before v3 is release: #716

6. a request: I noticed that if a camera is disconnected, then in its timeline page we can not use the playback. is it possible to allow watching playback even if the camera is disconnected? since I believe that the source files for the playback are taken from the '/segments` folder which to my understanding is available even when the camera is disconnected from power.

Will look into that!


Referenced code doesn't appear to actually exist

This page refers to the following code:
var sasToken = SharedAccessSignatureTokenProvider.GetPublisherSharedAccessSignature(
            new Uri("Service-Bus-URI"),
            "eventub-name",
            "publisher-name",
            "sas-key-name",
            "sas-key",
            TimeSpan.FromMinutes(30));

Unfortunately, it does not explain where to actually find this class SharedAccessSignatureTokenProvider. A Nuget package reference would be great. I spent the last couple of hours digging and trying to find it but I can only find these references:

https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/eventhub/Microsoft.Azure.EventHubs/src/Primitives/SharedAccessSignatureTokenProvider.cs
https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Microsoft.Azure.ServiceBus/src/Primitives/SharedAccessSignatureTokenProvider.cs

Though the README up a few levels says this package was replaced by Azure.Messaging.EventHubs. Unfortunately again, that package does not seem to contain SharedAccessSignatureTokenProvider either.
Searching online, I see this mystery code referenced all over the place but I can't seem to find it outside of deprecated packages like WindowsAzure.ServiceBus
Please update this documentation to tell us exactly where to find this class.

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

ID: f4642657-5800-d9af-69cd-9623b8e2c4bc
Version Independent ID: 5fb587c3-318f-56a9-6eb2-0d3935e98694
Content: Authenticate access to Azure Event Hubs with shared access signatures - Azure Event Hubs
Content Source: articles/event-hubs/authenticate-shared-access-signature.md
Service: event-hubs
GitHub Login: @spelluru
Microsoft Alias: spelluru

@js8080 Thanks for the feedback! We are currently investigating and will update you shortly.

@js8080 Thanks for the feedback! We are currently investigating and will update you shortly.

@spelluru:  This looks to be outdated; we should consider replacing with instructions on how to generate a SAS (example), as it does not appear that the portal has been updated to do so yet.

@spelluru:  This looks to be outdated; we should consider replacing with instructions on how to generate a SAS (example), as it does not appear that the portal has been updated to do so yet.

Thanks @jsquire
The article also has a section with C#, Java, Python, and JavaScript examples.
I will remove the outdated code and add a link to the section for generating a SAS token.

The updated article will go live tomorrow at 10 AM PST. Thanks.
#please-close


[hotfix] RescalingITCase

Hotfix for RescalingITCase: race condition could make the test stuck in a blocking call until timeout.

Looks good to me, merging this...


Degenesis FR

Degenesis Sheet in French

Hey, I'm sorry to say but we no longer accept "alternate translation" sheets. If you would like to add an additional translation to the sheet, please use the Roll20 i18n Tools. You can read here for more information: https://app.roll20.net/forum/post/3762625/policy-change-for-alternate-translation-character-sheets
If you have additional questions about the tools, please let me know.

Hi,
Ok. I'm going to check that.
I pray it will not give me too much work...

De : Phil<EMAIL_ADDRESS>Envoyé : lundi 5 décembre 2016 22:36:09
À : Roll20/roll20-character-sheets
Cc : Thalar; Author
Objet : Re: [Roll20/roll20-character-sheets] Degenesis FR (#2067)
Hey, I'm sorry to say but we no longer accept "alternate translation" sheets. If you would like to add an additional translation to the sheet, please use the Roll20 i18n Toolshttps://wiki.roll20.net/Character_Sheet_i18n. You can read here for more information: https://app.roll20.net/forum/post/3762625/policy-change-for-alternate-translation-character-sheets
If you have additional questions about the tools, please let me know.

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/Roll20/roll20-character-sheets/pull/2067#issuecomment-264984770, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALhbpfZLF6Dcc69owSA4mpe8t1qqw9-Mks5rFIPJgaJpZM4LDmYZ.

Ok the sheet is ready for multi-language and the english and french translations are ready.
My last pull request has been validated but there is no changes on roll20.
I think this issue is caused by the name of the folder "Degenesis-eng" renamed "Degenesis" in my last pull request.
Could you check that please ?


How to use Images inside the Blog of MDX format

I tried using the mdx format but it didn't worked for me
![alttext](image path)
can any one suggest how can I use images inside a blog post ?

It works for me. Can you send the code you're using, please?

It works for me. Can you send the code you're using, please?

title: "My Blog"
publishedAt: "2024-07-18"
summary: "My first post on my new blog."
I'm simply importing my image from the public folder with the below syntax.
![myimage](/public/images/myblog.jp)
console.log("Hello World");

I think your problem is with directory.
Try removing /public:
Old
![myimage](/public/images/myblog.jp)
New one
![myimage](/images/myblog.jp)


Roundtriper

What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR adds a new ratelimiter packaged based on geranos' roundtripper.
Based on it, we now rate limit the crane operations in the signature package to ensure
they are under the AR quotas set up by k8s infra.
(Thanks @BenTheElder ! )
Which issue(s) this PR fixes:
Part of https://github.com/kubernetes/release/issues/2962
Special notes for your reviewer:
/cc @BenTheElder @xmudrii @palnabarun @ameukam
More context in this slack thread
Does this PR introduce a user-facing change?
Concurrent copy operations are now rate limited when replicating and mirroring using a new ratelimiter package based on the [geranos rate limiter](https://github.com/kubernetes/registry.k8s.io/blob/main/cmd/geranos/ratelimitroundtrip.go) (Thanks @BenTheElder )

:thinking:
/test pull-cip-unit-tests


Fix/1019

however it's really insanely hard to cover edge-cases (especially for
home-pages) since it's not trivial to check if a page will be the
homepage or not.

This partially fixes #1019

given #1019 only arises with bad user input, could we agree on partial fixes for that since it's insanely hard to prevent this in a reasonable fashion for all cases?

Do it like this for now and add more as possible edge cases crop up?

I had an alternative idea:
Don't actually do checking (or only VERY basic checking) on creation (eg only existing pages and just check against get_absolute_url) but do the checking in the view: If the page has a redirect and it would redirect to itself (request.path == redirect OR '%s://%s%s' % ('https' if request.is_secure() else 'http', request.get_host(), request.path), don't redirect but show the page.
Thoughts?

That would work, and maybe mail a report to the managers?

True. Will it be that many? Django reports 404's the same way.
It is sort of a misconfiguration, but might not be serious enough to warrant a mail.

Why not raise an InfiniteRedirect error or something, and leave the decision of what to do about notifying the developers to the logging configuration (in 1.3, prior to which it can do the email thing anyway)

If we raise an exception in the view, that's not really nice... warning maybe?

Closing this in favor of #1061


selecting text highlights match only if the length is less than or equal to 200

Issue Type: Bug
steps to reproduce:

create a string with more than 220 characters and copy it to next line a couple of times

select the text from first string from 1st character upto 200th character

upto 200th character the selection gets highlighted.

once you select char 201 the selection highlight will vanish.

expected result:
the selection highlight should have a limit >200 or user should be able to configure it to some value.
when selecting text in vscode matches for the selected text gets highlighted and are distinctly visible. this is very useful when comparing between large string data. however i found out this only works if the selection is 200 characters or less. this 200 character limit is enough for most of the cases however ever so often i run into string which are way more than 200 char threshold. can this limit be configured in some way?
VS Code version: Code - Insiders 1.52.0-insider (a36c68b9ec3d6a0aca9799d7a10be741a6658a51, 2020-11-19T05:37:52.577Z)
OS version: Windows_NT x64 10.0.19042

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz (8 x 1800)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offopengl: enabled_onprotected_video_decode: enabledrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
15.87GB (4.82GB free)

Process Argv
--crash-reporter-id 340e0eb9-5b34-4206-9e2e-bd86fc3b2cf3

Screen Reader
no

VM
0%

Extensions (21)

Extension
Author (truncated)
Version

ng-template
Ang
0.1100.1

vscode-eslint
dba
2.1.13

gitlens
eam
11.0.1

EditorConfig
Edi
0.15.1

vscode-npm-script
eg2
0.3.13

prettier-vscode
esb
5.7.2

output-colorizer
IBM
0.1.2

typescript-javascript-grammar
ms-
0.0.55

vscode-js-profile-flame
ms-
0.0.13

vscode-typescript-next
ms-
4.2.20201119

vscode-typescript-tslint-plugin
ms-
1.2.3

cordova-tools
msj
2.1.2

debugger-for-chrome
msj
4.12.11

vscode-react-native
msj
1.1.1

vscode-jest
Ort
3.2.0

vscode-xml
red
0.14.0

vscode-yaml
red
0.13.0

sonarlint-vscode
Son
1.18.0

code-spell-checker
str
1.10.0

vscode-stylelint
sty
0.85.0

vscodeintellicode
Vis
1.2.10

A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
openlogontheside:30221882
python763:30178808
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
python504:30222199
vswsl492cf:30208930
wsl2promptcf:30219163
vstry244cf:30226748
pythonvsdeb440:30224570
unusedpromptcf:30219165
folderexplorercf:30219167
openfilemenucf:30219169
pythonvsded773:30223139

At this time this is a hard coded limit to protect against UI freezes -- https://github.com/microsoft/vscode/blob/acfd724aacb10e81ca71e1d49ee9025c24a595b3/src/vs/editor/contrib/multicursor/multicursor.ts#L923-L926


Fixed #25380 -- Added Postgres.app to the suggested options for PostGIS on OS X.

The current docs on how to install the GIS software includes a list of many different options on OS X.
Still missing is Postgres.app, which is currently the easiest option for beginners.

Do you think the recommendation, "Currently, the easiest and recommended approach for installing GeoDjango on OS X is to use the KyngChaos packages." is accurate? If so, why add another option? If not, could you revise it?

Oh, I missed that part.
It probably used to be accurate, but using Postgres.app (which was not available when this doc was first written) requires a couple less steps.

merged in 0c7c18cc9e80101c882749c99437ad700fde0ca0, thanks!


🐛 [Gazpar2mqtt] Error with GRDF password

Hello, I have the same problem with the GRDF_PASSWORD variable :
When starting the add-on, the log shows :
/etc/cont-init.d/99-run.sh: executing
/./etc/cont-init.d/99-run.sh: line 4: xxxx: unbound variable
/etc/cont-init.d/99-run.sh: exiting 1

xxxx being a part of my password
just before this part there is a "$" character and after this part is a "!" character.
The problem is not only the '$' character
I could still change my password but the site requires special characters
Thank you for your help
This bug looks like issue #507

Hello,
Thank you very much for the quickness ! :-)
I have updated and the problem is still here but different :
Here is an example password : a$b1c2!!d3ef, an "" is added before the dollar.
GRDF_PASSWORD=a\$b1c2!!d3ef
MQTT_HOST=xxx.xxx.xxx.xxx
MQTT_PORT=xxxx
/etc/cont-init.d/99-run.sh: executing
/./etc/cont-init.d/99-run.sh: line 4: b1c2: unbound variable
/etc/cont-init.d/99-run.sh: exiting 1

Thanks, I've tried another approach

Could you please let me know the result? Thanks!