Download from Dropout.tv not working using --username and --password, --cookies

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting that yt-dlp is broken on a supported site
[X] I've verified that I have updated yt-dlp to nightly or master (update instructions)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and I'm willing to share it if required

Region
United States
Provide a description that is worded well enough to be understood
Windows
New to this, but as far as I can tell, I haven't done anything wrong.
Have an active Dropout account. Username and password are 100% correct. Username is an email address with @ sign in it and password also has special characters. Both were in quotes.
I've also tried --cookies with a getcookies.txt file, nada. Tried other Dropout videos too.
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[debug] Command-line config: ['-vU', '--username', 'PRIVATE', '--password', 'PRIVATE', 'https://www.dropout.tv/dimension-20-burrow-s-end-the-complete-experience/videos/the-red-warren']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>from yt-dlp/yt-dlp [542166962] (win_exe)
[debug] Python 3.10.11 (CPython AMD64 64bit) - Windows-10-10.0.19045-SP0 (OpenSSL 1.1.1t  7 Feb 2023)
[debug] exe versions: none
[debug] Optional libraries: Cryptodome-3.21.0, brotli-1.1.0, certifi-2024.08.30, curl_cffi-0.5.10, mutagen-1.47.0, requests-2.32.3, sqlite3-3.40.1, urllib3-2.2.3, websockets-14.1
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Loaded 1837 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version<EMAIL_ADDRESS>from yt-dlp/yt-dlp
yt-dlp is up to date<EMAIL_ADDRESS>from yt-dlp/yt-dlp)
[Dropout] Extracting URL: https://www.dropout.tv/dimension-20-burrow-s-end-the-complete-experience/videos/the-red-warren
[Dropout] the-red-warren: Getting authenticity token
[Dropout] the-red-warren: Logging in
[Dropout] the-red-warren: Downloading webpage
[vhx:embed] Downloading login token
[vhx:embed] Logging in
ERROR: [vhx:embed] 2920064: Unable to log in; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "yt_dlp\extractor\common.py", line 739, in extract
  File "yt_dlp\extractor\common.py", line 645, in initialize
  File "yt_dlp\extractor\vimeo.py", line 76, in _perform_login

try using a netrc file

Yoooo!
Took me an hour to figure out what a netrc file is, but that worked. Guess it couldn't read the username/password straight up.

The problem is that --username/--password passes your credentials to all extractors, including vhx/vimeo, which was causing the error (since your credentials are only good for dropout). With the netrc file, you can specify which extractor the credentials belong to

There's another open issue that is tracking this, but I can't find it right now

Oh, that makes sense. Will use netrc in the future and pray Dropout doesn't change stuff on their end or whatever. Thanks for your help!


mixed keys are not allowed

consider, e.g.
import livejson
d=Database('test')
d['1']='foo'
d[1] = 'bar'
print(d)

You might consider a yaml backend.  Or a warning.

Huh, is that an issue with JSON, or me?

Perhaps more concerning is that livejson.Database won't recall numeric keys
>>> import livejson
>>> a = livejson.Database('a.json')
>>> a[0] = 1
>>> a[0]
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/private/var/mobile/Containers/Shared/AppGroup/DF424212-8D52-48D1-8D11-76FBF7651F4C/Pythonista3/Documents/site-packages/livejson.py", line 39, in __getitem__
    out = self.data[key]
KeyError: 0

Perhaps livejson should fail altogether on non-numeric keys? It could try to be "smart" and remember the type of inputted keys, but that would have to be entirely in-memory and therefore not sustainable.
Unless you see a better way, I think I'll go with throwing an error about how keys must be strings.

I could come up with a way for this to work. But it would probably be messy...

I don't really want to get into manipulating data (like "1" -> "_int_1"), because then it's no longer "just" the user's data, and we lose compatibility with other parsers to a detain degree. I also don't want to have something like a top-level "_livejson"` key that stores lots of hidden data, for the same reason.
I think it's fine for livejson only to store string keys and error otherwise, because that's all JSON supports. AFAIK, the integer storage, etc. is a "bonus feature" which we don't need to support. If JSON only officially supports strings, that's all we need to support here.
@ywangd Do you think it'd be a good idea to have other repos for versions of this project with different storage back ends? I could also create a "livedata" repo which would implement classes for JSON, YAML, and more, but I kind of like this one 😛

So basically, error throwing is my current plan. I'll close this as soon as I implement it.

Okay.

I think you meant to at jsbain?
Anyway, didn't know about this project and it looks pretty cool. As for the numeric key, I agree that it should just throw an error as livejson is still JSON. So follow the principle of least surprise, it should behave as JSON.
Another minor suggestion: Most database modules allow user to specify whether it should auto-commit changes (many does by default). So maybe livejson could also implement this feature?

Yes, I did mean @jsbain , sorry. I agree, though. As far as turning "live" updates on and off, I don't think I'll do this, since no caching at all is currently used. Maybe if you have a compelling use case I'd consider it.

The fix is now on PyPI (I forgot to upload before)

i meant use a liveyaml.  yaml is a much better fit for representing  python data.  json is a sort of subset of yaml

@jsbain I'll put that in a separate repo. I suspect the code will be largely the same, with only minor modifications, however I've never used YAML.

Looks like there's no stdlib support for YAML, so it looks like a liveyaml would need to involve third-party dependencies. I'll look into it, though.

 I thought it was in the stdlib.  Really my point was there might be some surprising things with json, if the point is to emulate a dict.   Throwing an exception for types that cannot be stored is a good alternative.

Ok. I'll see whether we run into more problems later.

@ywangd FWIW your thing has been implemented and more in this department is coming soon.


Null pointer dereference when exiting Bluetooth mode

I'm running unlshd-055e and your module was included in the extras folder. My hardware module just arrived today and I have noticed that when I press and hold the back button to exit Bluetooth the entire flipper crashes and reboots.

Thanks, I've reproduced the issue and will look into it.

OK, so this doesn't reproduce on ToT firmware and app build, so likely will be fixed in a future OTA.

Nope, still crashes on 0.86.1... Will try to reproduce again.

This is also present on OFW 0.88.0.

I think I've just fixed it... Not exactly sure what the issue was, but oh well.


Add methods to automatically add/update documents in batches

Fix to issue #183
Pull Request
What does this PR do?
Fixes #183
https://github.com/meilisearch/meilisearch-rust/issues/183
It adds two methods, Index::add_documents_in_batches and Index::update_documents_in_batches
Takes inspiration from the python version of the implementation.
PR checklist
Please check if your PR fulfills the following requirements:

[x] Does this PR fix an existing issue?
[x] Have you read the contributing guidelines?
[x] Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!

Also don't bother with the clippy checks, I think we're going to merge #261 before this PR thus you will only need to rebase on main 😁

bors merge


Support for Nuxt new fetch()?

What problem does this feature solve?
It would be great if this could use the new Nuxt fetch() API so that smart queries would be SSR'd at all component levels (not just on Pages like it does currently).
What does the proposed changes look like?
I imagine that you'd want to make this use the new fetch() be default as it doesn't have any breaking changes. Perhaps you'd have a config option to use the old way for people upgrading Nuxt-Apollo for other needs.

This feature request is available on Nuxt community (#c308)

@drewbaker I'm sure you can use the same code as in the asyncData example. https://github.com/nuxt-community/apollo-module#asyncdatafetch-method-of-page-component

Yes totally, but shouldn't smart queries default to use fetch() now?

In my knowledge the fetch is just a NuxtJS API on component/page level run SSR code: https://github.com/nuxt/nuxt.js/blob/dev/examples/new-fetch/components/Author.vue#L20
So the example https://github.com/nuxt-community/apollo-module#asyncdatafetch-method-of-page-component is still valid.

Well the advantage of fecth() is that it doesn't have to be at the page level to be SSR's. It can be on a deep component and still be SSR'd. Would be great if smart query's used fetch() so that anything could be SSR'd.

I believe that we nuxt plugin have'nt support fetch yet. We only have beforeNuxtRender in the plugin context. So this is have to be supported by nuxt itself to be done.

@Atinux @alexchopin could you shade some light to this topic? I would guess that from the new fetch in any component level all the code runs in SSR mode. Would that mean that  https://github.com/nuxt-community/apollo-module#asyncdatafetch-method-of-page-component would work out of the box?


Empty values for Country and Region on address page and checkou

I type my details in address page, press update than exit. When I get back to page the selectbox for Region is empty.
Similar is happening when I go to checkout, there both Country and Region are empty

Thank you for the report, I'll be busy the next couple of days. I'll back to it once I have time.

@templatetuners check this out ☝


[top] Add intermodule io support

update otp to use 'io' instead of hardwiring
will be used for other modules as well

yeah you are right. These are all external signal.  They are basically otp
/ flash specific io signals that get driven from the pad all the way to the
related modules.
do you think we can simplify any of this with that assumption?
The other case i can think of...is if in the future we have multiple large
subsystems, and one of the generates let's say a reference voltage that
another needs to consume.  This might be the only case it ends up inside
top_earlgrey.
On Fri, Aug 20, 2021 at 8:54 AM Eunchan Kim @.***>
wrote:

@.**** approved this pull request.
I think the implementation looks good. The concept, I am a little bit
confused. Unless the signal goes outside of the chip, do we need io to
connect between the AST and TOP_EALRGREY?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/lowRISC/opentitan/pull/7856#pullrequestreview-735170587,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAH2RSSDWYKEEEC76WWCUOLT5Z3EFANCNFSM5CPPKYEA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

i'll merge for now, but let me know what you think @eunchan and i can adjust as needed.


Update glossary for DG

Updates the glossary to also include student ID/matriculation number as the terms are frequently used interchangeably.
Also changed instances of "Student ID" to "student ID" instead.

Codecov Report

Merging #257 (214657c) into master (f7b2dfb) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #257   +/-   ##
=========================================
  Coverage     70.41%   70.41%
  Complexity      727      727
=========================================
  Files           105      105
  Lines          2434     2434
  Branches        325      325
=========================================
  Hits           1714     1714
  Misses          596      596
  Partials        124      124

Continue to review full report at Codecov.

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


Direct ID Reference instructions making errors when used with constant

Hello,
I'm using direct ID Reference instructions (ld, sd) with a constant and it make an error when I over the line.
Exemple:
define FurnaceId 511812

ld r0 FurnaceId Pressure

Error: Device with id "FurnaceId" not found at 0

Thanks, I fix this bug


Stereo Imaging Distortion bugfix (SoundScapes Compressor and Limiter link)

What was the problem?
When a compressor or limiter link worked hard (i.e. affected the signal with lots of gain reduction), the stereo sound image got audibly distorted: It seemed like the instruments/the whole mix mix quickly jumped from left to right and vice versa. An audible example was reported by @mikedickey in this Radio recording.
Assumption of problem origin
The compressor and limiter were compressing stereo channels independently. E.g., if a guitar plays a sound that is panned 80% to the left side, the compressor might only compress channel 1 (the left side of that signal), since channel 2 (the right side of the signal) might not even get louder than the compression threshold. This resulted in the guitar's phantom sound source jumping towards the center of the stereo image, as both channels will be relatively closer to each other in volume.
Implementation of solution (screenshot below)
The compander.ar() function uses two inputs, one being the actual signal (stereo array) and one being the detection signal (sometimes called side-chain signal).
(Generally it's cool that we can choose a different signal for loudness detection, as that might allow us to have certain instruments react dynamically to other signals in the long run, allowing for more advanced mixing.)
Anyways, I've used SuperCollider's Mix() function to sum our detection signal to mono and have our actual stereo signal duck depending on that mono sum. This means that we take into consideration the loudness of both left&right channels (not just one of them), while we let the compressor and limiter apply its gain reduction equally to both channels in our actual signal.
My test results
I've tested this with stereo signals, and I've tested on both Input and Output chain. Works seemlessly for me now, but I'd appreciate your review.
Before:

After:

thanks @Jan! why Mix() versus using max for the side chain? also note that signal may either be a 2-channel array (output signal chain) or an array of 2-channel arrays (input signal chain). I just want to make sure that this would do what we expect under both circumstances.

Can you tell me a little bit more about the array of 2-ch arrays on the input chain vs. the fixed 2-ch array on the Output chain? I assume that, on the input side, the number of 2-ch arrays is based on the max participants field (plus headroom for additional clients/Jamulus connections)? I assume both operations would work for those arrays of 2-ch arrays

Also - wrong Jan :))

Can you tell me a little bit more about the array of 2-ch arrays on the input chain vs. the fixed 2-ch array on the Output chain? I assume that, on the input side, the number of 2-ch arrays is based on the max participants field (plus headroom for additional clients/Jamulus connections)? I assume both operations would work for those arrays of 2-ch arrays

Your assumption is correct.
I was just wondering if mix() would end up causing more limiting & compression than is necessary since it's adding the two signals together? For example, say you have roughly the same levels on both left and right and it's near 50%?
I'm not sure if this is enough validation, but running this
a = [1, 3];
ArrayMax.ar(a);

in sclang console gives me [ an OutputProxy, an OutputProxy ]
And running this
b = [[2, 4], [7, 8]];
ArrayMax.ar(b);

gives me [ [ an OutputProxy, an OutputProxy ], [ an OutputProxy, an OutputProxy ] ]

Glad to see that you have this under control. Keep up the good work!
-- Wrong Jan

You're correct about the sum usually being louder than the independent channels, at least if the mid signal (channel 1 & 2 equivalent) is louder than the side signal (channel 1 & 2 phase-inverted [and thus cancelling each other out]). But, generally speaking, the mid signal is louder than the side signal, especially when we assume that most of our sessions are using a pan link which firstly sums to mono. I don't think it would much effect our presets, as I've set compression thresholds rather conservatively with low ratios. But let me double-check that later this week. And it's also worth comparing to your Array.Max() suggestion. Gonna get back to you here.

@JanSto1995 we noticed today that [GateLink](https://github.com/jacktrip/jacktrip-sc/blob/main/links/GateLink/GateLink.sc) is also using Compander and likely needs the same modifications.

@mikedickey sounds good. I'm going to work on your suggested refinements once I have more time. Yes, I'm going to create a new PR then.
I've also just double-checked this push on bleeding edge, and the compressor and limiter are working well with more than one participant.


create nuxt3 error, Invalid value "undefined" for header "X-Forwarded-For"

Describe the bug
When I create a new nuxt3 project, when it is automatically initialized, I get the following error.
Link to the blitz that caused the error
https://stackblitz.com/edit/nuxt-starter-yv7jwj
Steps to reproduce

go to dashboard
CREATE A NEW PROJECT
npm install && npm run dev (by auto run)
waiting nuxt3 init
error

Expected behavior
How to create a new nuxt3
Parity with Local

[X] I have run the project in my local machine and I could not reproduce the issue.

Screenshots

Platform

OS: [ macOS]
Browser: [edge]
Version: [102]

Additional context
No response

Hi @leosin, thanks for reporting!
It looks like Nuxt updated the version today to the latest release candidate, and the starter works again.
Because of this, I did find out what's wrong on our side which causes this. So I'll create an internal ticket to address the issue. It looks like the issue is not present anymore in the latest version, but we should make sure it doesn't pop up in the future anymore.


A schema referenced only by SchemaDefinition triggers no-unused-components rule

Describe the bug
We use "server sent events" as part of our API. We document the schemas of these events in the components.schemas section of the OpenAPI spec. Then we use <SchemaDefinition> to reference those schemas (typically in a tag description). The schemas are then inlined in the description when the docs are rendered and an example (if part of the schema definition) is showed in the side panel.
However, when we build our docs the no-unused-components rule is triggered by these schemas. The rules says that it is triggered for any components not referenced by a $ref. So it makes sense that the rule is triggered.
It's not clear to me where  is even documented but it is mentioned in this blog post: https://redocly.com/docs/api-reference-docs/specification-extensions/x-tags/
(Note: we'd prefer to use x-tags, but it doesn't appear to actually be implemented?)
To Reproduce

I started with open-api-starter project and ran bundle to get bundled.yaml
Then I edited bundled.yaml until it looked like the file down below.
Lint it with npx redocly lint bundled.yaml and you'll see the rule triggered.

npx redocly lint bundled.yaml
validating bundled.yaml...
[1] bundled.yaml:64:5 at #/components/schemas/person

Component: "person" is never used.

62 |           write:users: modify or remove users
63 | schemas:
64 |   person:
65 |     type: object
66 |     properties:

Error was generated by the no-unused-components rule.

bundled.yaml: validated in 49ms

❌ Validation failed with 1 error.

Expected behavior
Ideally a  reference would be sufficient to consider the component used (else every use of it will cause a warning and make it difficult to determine when you have an actually unused component).
OpenAPI definition
Using 3.0.3 and will work on providing an example.
Here's a stripped down open-api-starter example which is actually 3.1.0. The person tag uses a SchemaDefinition to reference the person schema in the components.schemas section
openapi: 3.1.0
info:
  version: 1.0.0
  title: Example.com
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  x-logo:
    url: https://redocly.github.io/openapi-template/logo.png
  description: >
    This is an **example** API to demonstrate potential enhancement to
    `no-unused-components` rule.

tags:
  - name: User
    description: |
      Operations about users.

      <SchemaDefinition schemaRef="#/components/schemas/person"/>
servers:
  - url: https://{tenant}/api/v1
    variables:
      tenant:
        default: www
        description: Your tenant id
  - url: https://example.com/api/v1
paths:
  /users:
    get:
      tags:
        - User
      summary: Get user by user name
      description: |
        Some description of the operation.
         (That's a feature in our premium product. We may be porting it to the community edition some day.)
I discuss a variety of options here: https://redocly.com/blog/display-schemas/
I don't think this is exactly a bug, because the schema definition tag is not a real usage per OAS.
https://redocly.com/docs/cli/rules/no-unused-components/
You can disable the rule, or add an ignore file (--generate-ignore-file). For reference:

Disable the rule    rules:
       no-unused-components: off

https://redocly.com/docs/cli/commands/lint/#generate-ignore-file

This rule doesn't make sense for a lot of organizations. In OAS 3.1, paths are optional. Some organizations define common schemas in a separate stand-alone OAS definition, and then reference it from other OAS definitions. That common file would flag on this rule too, but as I mentioned this rule doesn't make sense for every situation.

You can disable the rule, or add an ignore file (--generate-ignore-file). For reference:

I got confused on how to disable the rule. I just set it to off but it didn't seem to do anything. I guess that's a separate lint config file for setting severity: https://redocly.com/docs/cli/commands/lint/#lint-config-file
Anyway, after using --generate-ignore-file I see that I can explicitly ignore specific instances of components by specifying their path. This is a more than adequate solution for us. Thank you.
You can close this and  https://github.com/Redocly/redoc/issues/2148

@michaelgwelch you can skip the rule explicitly: https://redocly.com/docs/cli/commands/lint/#skip-preprocessor-or-rule or switch it off using Redocly config file:
# redocly.yaml

styleguide:
   extends: [recommended]
   rules:
      no-unused-components: off


Execute custom SQL before borrowing connection

Add ability to configure db connection by executing custom sql query before borrowing connection from the pool.

The implementation of the feature was declined by original author in issue


Discrete Gaussian Mechanism -- Implementation

Placeholder issue for the discrete gaussian mechanism.

I did some scrap work in https://github.com/opendp/opendp/tree/186-discrete-gaussian

Hello @degregat! The first todo is the biggest undertaking. The rest I've listed are somewhat straightforward.

The scrap work above represents output distances with a fixed-point type.

If we want to continue using fixed-point types, then we need to make this implementation more generic. I've recently pushed more work to the fixed point branch. There is difficulty with the FFI layer here, because I don't think we want to monomorphize hundreds of fixed point types. Which fixed-point types do we choose? How do we compose fixed-point distances with floating-point distances?
We could, alternatively, use the quotient type from rug/gmp. This would simplify the FFI layer, as the numerator and denominator are runtime values instead of compile-time values.
Is there a reasonable modification to the algorithm that makes output distances representiable via floating-point values? For example, the geometric mechanism implementation operates on a decomposition of floating-point numbers to avoid (most) floating point issues.

Rust tests
FFI layer (this should be relatively straightforward, but will be complicated if we use fixed point types)
Python tests
Update documentation (/docs folder)
Notebook demonstration/comparison with geometric


Research: Activation funnel optimisations

Improve instrumentation on the client to give more accurate Activation funnel data
Problem
Activation funnel steps:

Sign up
Connect own data
show data on canvas

These data points are not accurate. Connect own data happens on the server but show data happens on the client
We need to find a way to accurately trigger 2. and 3. from the client.
DB can be mock or template dbIsMock dbIsTemplate  (server concepts)
Need this info on the client.
When success binding happens, we need to see the source of the data and check if the data is not from mock or template

Resolved here: https://www.notion.so/appsmith/Analytics-END_TRIAL-Optimisations-c63082c2e0504fd696bc627380e07c7d


Infesiable Solution

Every time I execute a job it goes through the uploading process and submits the job. However, until recently, I am getting an error INFESIABLE_SOLUTION. Any ideas on why this could be occurring?

This issue was a self inflicted issue! Will close the issue.


Invalid data from seed " invalid_data"

Summary
Invalid limit error when using /api/products endpoint in Medusa Next.js starter
Details
When calling the /api/products endpoint with query parameters like below, I get the following error:
/api/products?limit=4&offset=4&limit=4&cart_id=cart_01HAED466QSZ2GDPEVEW6GS6SK&region_id=reg_01HABDWJ2HARHHRZRRJMNGERRD
{"type":"invalid_data","message":"limit must be a number conforming to the specified constraints"}

It seems to occur when both limit and offset are provided in the query string.
The products were added by sample data and failed to load.
Reproduction

Clone Medusa Next.js starter
Run medusa develop
Go to /api/products?limit=4&offset=4&limit=4&cart_id=...
See the error

Expected Behavior
It should validate and parse limit and offset parameters correctly.
If both are provided, it should use the last limit value specified.
Environment

Medusa Next.js starter
"name": "medusa-next",
"version": "1.0.3",
OS: Ubuntu

Let me know if any other details would be helpful!
Also you can the latest build admin dashboard seems to fail at loading sample products.

I have the same problem when I try to associate an email with a cart


doc: update obsolete ref to api/XDS_PROTOCOL.md

Description:
fixed by
grep XDS_PROTOCOL.md -rnl api include docs source | \
xargs sed -i 's/XDS_PROTOCOL.md/xds_protocol.rst/g'

Signed-off-by: Yuchen Dai<EMAIL_ADDRESS>Risk Level: None
Testing: None
Docs Changes: fix only
Release Notes: None

Will update.
Question: What is the benefit of the ref?  Is it because of relative path? Or is ref validated?

:ref: is validated.

Oops sorry looks like this needs a format fix.
/wait

This is not good. ref is more than spelling error. It doesn't give warning on the missing reference. Will fix
this one and root cause later.

I realize that this piece of comment is associated with service instead of message
service doc is not generated, let alone validation.

created https://github.com/envoyproxy/envoy/issues/7030


Release doc for 2.x

Hi! Is there any release doc for 2.x release?

Hi @ming-codes, no, there is no changelog or anything. What info are you looking for?

I was going through my project for dependency upgrade, then noticed a major version bump on ember-math-helpers. What's changed?

@ming-codes I mostly just added all Math methods. There should be no breaking changes. You can compare https://github.com/shipshapecode/ember-math-helpers/tree/v2.0.0 and https://github.com/shipshapecode/ember-math-helpers/tree/v1.4.1 if you would like to see what changed in the 2.0 release. Please let me know if you have any specific questions.


debug open explorer on wanix.sh

"service worker doesn't handle requests unless dev tools is open" (possibly only the first time)


#236 - updated CustomerGroup entity model, added basic CRUD

initial starting point for #236 with respect to entities and basic CRUD

Definitely in agreement on all points mentioned.


Python version

The document says that azure functions only supports Python versions up to 3.9 - contradictive to this release

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

ID: 589bc3f7-1f3a-0376-880b-cef414a65bca
Version Independent ID: e5f3b844-adb8-ccae-ac3e-681956b28c33
Content: Troubleshoot Python function apps in Azure Functions
Content Source: articles/azure-functions/recover-python-functions.md
Service: azure-functions
GitHub Login: @ggailey777
Microsoft Alias: glenga

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


Question, disable csrf for specific endpoint

Do you have a tip, how to disable csrf for some views?
I try to implement this:
`
from flask_wtf import CSRFProtect
csrf = CSRFProtect()
@csrf.exempt
@api.route(git, '/string:project_name/git-receive-pack', methods=('POST',))
def git_receive_pack(project_name):
`
But decorator doesn't work for me.
Is the a parameter for the api.route?

Off the top of my head I'd guess trying to place the route decorator on the top? Can look more closely when I get to a computer

Did not work for me, not on top, not on bot.


typescript can't find types

it happens to fast probably
"prebuild": "tcm src",
"build: "webpack -p"

If I run second time - it works.

:stuck_out_tongue_winking_eye: my bad


Interstitial?

For branding purposes, what if, in the middle of redirecting, you sat on an interstitial page with a random Drake GIF from Giphy?

I'll be honest, I am not all that keen on the Drake branding. Name is fine, Drake less so

Yeah, Drake is pretty sexist.
I think an interstitial would annoy people -- I'd like to keep the barriers to entry and usage very low.

Glad I don't watch the news.
Did you know Trump is super racist?
On Wednesday, December 9, 2015, Gabe Berke-Williams <
<EMAIL_ADDRESS>wrote:

Closed #18 https://github.com/gabebw/hotline-webring/issues/18.
—
Reply to this email directly or view it on GitHub
https://github.com/gabebw/hotline-webring/issues/18#event-487730350.

--
--
@adarshp http://www.twitter.com/adarshp
313.454.1515 (mobile)
See when I am free: http://bit.ly/adarshcal


ComponentBuilder not working correctly

When the Componentbuilder gets another Componentbuilder to use it for example a prefix that i need everytime that happens:
in older builds: Prefix | You got muted!
now: Prefix | You Prefix | got Prefix | muted! Prefix |
I only updated my bungee server so it is not my code because it was working before

Hmm, perhaps I did a dodgy merge of https://github.com/SpigotMC/BungeeCord/commit/fd675022c0dd2d8597c2f32a89d81545d99cfa9d


Garmin push integration

This is the first working version.
I have not yet removed gateway specific code, so that it is easier to view and review the changes in this PR.
I am using the snapshot schemas version for now, I will update once schemas are released.
Also, please ignore the CI results for now, since it is still running the integration tests from gateway
Things to Do in separate PRs-

Complete user repository implementation once it is added to rest-sources-auth.
Add backfill summary service implementation (possibly storing offsets in Redis with locking).
Remove gateway specific code
Add integration tests and travis build

ok, sure. I didn't know that UriInfo is automatically proxied and can be injected in singleton class vars. Good to know. Will make the changes.


Added get_asset_url() function

This PR adds in the get_asset_url helper function to make it easier to define and load assets within the Dash layout. It uses a combination of regex and mimics the functionality of the method with the same name in Dash for Python.

As per #158, different implementation using unexported function in utils.R will be used instead, but using the names attribute of the asset map.


Gemini: contents is not specified

Bug description
When running the proof-comments command using Gemini, I encounter the following issue.
It looks like {{data.file.content}} is not being parsed and passed to the API call.
Command
GEMINI_API_KEY="API_KEY" devai run proof-comments -f "./src/*.rs"
Error
Error: GenAI(WebModelCall { model_iden: ModelIden { adapter_kind: Gemini, model_name: ModelName("gemini-1.5-flash-latest") }, webc_error: ResponseFailedStatus { status: 400, body: "{\n  \"error\": {\n    \"code\": 400,\n    \"message\": \"* GenerateContentRequest.contents: contents is not specified\\n\",\n    \"status\": \"INVALID_ARGUMENT\"\n  }\n}\n" } })
Config
[genai]
# Required (any model supported by the Rust genai crate)
# e.g., "gpt-4o", "gpt-4o-2024-08-06", "gpt-4o-mini", "claude-3-5-sonnet-20240620"
#       Local Ollama: "llama3.1:70b" (or any locally installed Ollama)
model = "gemini-1.5-flash-latest"

[runtime]
# Default to 1 if absent
items_concurrency = 1

Agent
# Data

let path = item.path;
let file = file::load(path);

return #{file: file};

# Instruction

- The user will provide you with the content of a Rust programming file.
- You will correct the English in the comments, but leave everything else unchanged.
- Only modify comments if there is a spelling or grammar mistake.
- Make sure not to change the code, except for typos within strings.
- Do not change the code itself, only comments.

{{data.file.content}}

# Output

let rust_blocks = md::extract_blocks(ai_output, "rust");
let first_rust_block = rust_blocks[0].content;
let rust_code = text::escape_decode_if_needed(first_rust_block);

file::save(data.file.path, rust_code);

// This will be printed
return "File processed: " + data.file.path

Verbose output
GEMINI_API_KEY="API_KEY" devai run proof-comments -f "./src/*.rs"
Running agent command: proof-comments
                 from: .devai/defaults/proof-comments.md
           with model: gemini-1.5-flash-latest

==== Running item: ./src/constants.rs
Error: GenAI(WebModelCall { model_iden: ModelIden { adapter_kind: Gemini, model_name: ModelName("gemini-1.5-flash-latest") }, webc_error: ResponseFailedStatus { status: 400, body: "{\n  \"error\": {\n    \"code\": 400,\n    \"message\": \"* GenerateContentRequest.contents: contents is not specified\\n\",\n    \"status\": \"INVALID_ARGUMENT\"\n  }\n}\n" } })

@PierrickGT This is a good bug. I will investigate. It seems Gemini may require at least one user message. I will address that and, in the case of Gemini, set the instruction as the user message.

@PierrickGT Ok, I think this is fixed, or at least it works now on the main branch.
I believe the issue was that previously, devai set the instruction as a System message, and some models/providers didn’t support that. For example, the OpenAI o1- didn’t support System messages at all.
Now, devai has set the instruction as a user message, which solves the issue. Let me know if you still encounter this on the main branch.

@jeremychone thanks for fixing it! It works perfectly now.


Reorganize "Guide" topics

The topics in the Guide should be ordered more logically.  Currently, we have:

Error handling
Debugging Express
Express behind proxies
Moving to Express 4
Using middleware
Using template engines

A more logical order (from most general to more specific/specialized) is:

Routing (new topic with some material from existing API section (see #304).
Using middleware
Using template engines
Error handling
Debugging Express (NOTE: I think this should be retitled "Debugging applications" or just "Debugging" to make clear that it's about debugging your app, not the express package itself.
Express behind proxies
Moving to Express 4

Progress can be tracked on the reorg branch.

This is now merged into gh-pages branch and published.   An improvement imho.


draw low and high of the data only

https://github.com/WellframeInc/wf-android/issues/484

r+


Validation

Validation with [(ngModel)] doesnt work correctly

Hey @Nurtylek , please provide more info and if possible create a reproducible example on the NS Playground, because i do not understand what to you mean, considering the control doesnt have any built validation.


MM-16444 - Adding usernames back to compact view

Summary
MM-16444 - Adding usernames back to compact view
Ticket Link
https://mattermost.atlassian.net/browse/MM-16444

One minor change left, the timestamps need to appear at all times.

Done

@asaadmahmood @jespino I'm not following what is happening here

@jespino the cherry picking is conflicting with some of your previous work, can you take a look at this please

@enahum actually, I'm not 100% sure about this bug really affects 5.13, looks like was introduced as part of an optimization that went into master, but not into 5.13. Can we confirm that the bug was in 5.13?

@jespino This bug exists on community daily, which is on 5.13.

@asaadmahmood community-daily is master (I think)

Yup community daily is master

Tested https://community-release.mattermost.com/, which seems to be 5.13. Doesn't seem to repro on that. So should this be moved to 5.14?

Yes, I think so, it doesn't need cherry-pick, it was broken as part of the optimization to not paint things when not needed in the RHS.


Where is the upper end of the program memory range?

Split from #13.
Problem description

I am currently using version 7.0.2 and I still have an error. The problemed seems to come when verifying the integrity of the written app. output.txt mcbootflash.txt

Analysis
Looking at the provided readbacks, the problem looks related to those pernicious four final bytes right on the edge of the program memory range. Those are the only four which differ:

I had interpreted the program memory range (PMR) reported by the bootloader as a half-open range, like Python's range. It seems it's actually closed on both ends; UBHA has written 0x5000 to address 0x2B7FE, which is the upper end of the PMR.
Strangely, UBHA seems to have written 0x0000 to address 0x2B7FF, which should be strictly outside the PMR. I would have expected an attempt to write there to fail with BAD_ADDRESS. Could it have something to do with the 24-bit instruction width? Should the odd address after the reported upper memory bound be considered the actual end of the PMR?
Next step
The upper bound of the PMR reported by the bootloader should be considered valid for writing.
Need to investigate if it is necessary to also attempt to write to one additional address beyond that.

Testing confirms that the highest writable address is in fact one beyond the upper bound reported by the bootloader. Weird.

@mSavardCatalys Try v7.0.3.

Works like a charm! Thank you! <3


Resolves #3851 allow dynamically reserved resources for normal task matching

A normal (non-resident) task can now use dynamically reserved resources as long as these are not labeled with known labels which are used for resident tasks. That way, dynamically reserving resources for role foo and using those is possible like with static reservations.

@meichstedt Thanks LGTM.

Thanks @aquamatthias for the suggestion. I've refactored this a little – POI is the object ResourceSelector that now has functions

reservedWithLabels(acceptedRoles: Set[String], labels: Map[String, String]) which returns a ResourceSelector matching resources that are (dynamically) reserved for one of the given roles and have the given reservation labels
reservable which returns a ResourceSelector that matches unreserved resources that do not have known (resident) reservation labels (they may have other labels)
any(acceptedRoles: Set[String]) which returns a ResourceSelector that matches either unreserved or reserved resources as long as they do not have known (resident) reservation labels

I hope the semantics are now clearer. It is still irritating that we treat static reservations (roles) and dynamic reservations differently, but that's another scope 😬

LGTM. Thanks!


Convert "want hints" into want bitfields

A "want hint" is a list of filename filters for the blob hyperdrive(s), that is sent between peers.
A peer receiving a "want hint" should use the hyperdrive blobIndex to convert that want hint into a bitfield for the hyperdrive blob core.
This bitfield(s) can then be passed to the sync API.

Done in 3d1c94b36314a32995766e9e43b4ea61504b1026.


refactor: remove useless if

I'm submitting a...
[ ] Bug Fix
[ ] Feature
[ ] Other (Refactoring, Added tests, Documentation, ...)

Checklist

[ ] Commit Messages follow the Conventional Commits pattern

A feature commit message is prefixed "feat:"
A bugfix commit message is prefixed "fix:"

[ ] Tests for the changes have been added

Description
Hurts my feelings seeing it
Does this PR introduce a breaking change?
[ ] Yes
[ ] No

Hi @alan-agius4,
if you want to help, solving #190 is very much appreciated!

I can try to do something over the weekend


Data Science with Python : Lung Segmentation using Computer Vision

Welcome to 'DSWP' Team, good to see you here
This issue will helps readers in learning the prediction of Lung Cancer, based on segmentation of images, using Computer Vision.
Dataset : https://wiki.cancerimagingarchive.net/display/Public/Lung+CT+Segmentation+Challenge+2017
To get assigned to this issue, add your serial numbers mentioned in the spreadsheet of "Data Science with Python", the approach one would follow and choice you prefer (Documentation, Audio, Video). You can go with all three or any number of options you're interested to work on.
If you had referred any resources, add them up in "DS Resources". Similarly if you had used datasets, include them in "DS Datasets".
Domain : Kaggle Competitions
Mentors Assigned : Aishani Singh | Ankit Kumar
Points to Note :
The issues will be assigned on a first come first serve basis, 1 Issue == 1 PR.
"Issue Title" and "PR Title should be the same. Include issue number along with it.
Changes should be made inside the Datascience_With_Python/ directory & Datascience_With_Python branch.
Follow Contributing Guidelines & Code of Conduct before start Contributing.
This issue is only for 'GWOC' contributors of 'DSWP' domain.
All the best. Enjoy your  journey ahead. 😎

serial number : 295
approach:  prediction of Lung Cancer, based on segmentation of images, using Computer Vision.
choice: documentation

Issue assigned to @vishnupriya129 on documentation

@prathimacode-hub Mam can you please review my PR


logrotate on xrdp-sesman causes window manager problems

If an existing rdp session is active or disconnected when logrotate sends a HUP to
rotate xrdp-sesman.log, future sessions fail to bring up the window manager after logoff.
While the HUP on xrdp-sesman doesn't affect the existing session, and the user can
reconnect to the existing session, if the user logs off from their session then any
following connections have no window manager.  The user is presented with a session
with an open xterm and nothing else.  xrdp-sesman.log shows:
[20190209-21:19:24] [INFO ] A connection received from <IP_ADDRESS> port 62873
[20190209-21:19:25] [INFO ] ++ created session (access granted): username *******, ip <IP_ADDRESS>:65119 - socket: 12
[20190209-21:19:25] [INFO ] starting Xorg session...
[20190209-21:19:25] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:5911)
[20190209-21:19:25] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:0)
[20190209-21:19:25] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:5912)
[20190209-21:19:26] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:0)
[20190209-21:19:26] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:5913)
[20190209-21:19:26] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:0)
[20190209-21:19:26] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:5914)
[20190209-21:19:26] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:0)
[20190209-21:19:26] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:5915)
[20190209-21:19:26] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:0)
[20190209-21:19:26] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:5916)
[20190209-21:19:26] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:6016)
[20190209-21:19:26] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:6216)
[20190209-21:19:26] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:5917)
[20190209-21:19:26] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:6017)
[20190209-21:19:26] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:6217)
[20190209-21:19:26] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:5918)
[20190209-21:19:26] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:6018)
[20190209-21:19:26] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:6218)
[20190209-21:19:26] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:5919)
[20190209-21:19:26] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:6019)
[20190209-21:19:26] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:6219)
[20190209-21:19:26] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:5928)
[20190209-21:19:26] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:6028)
[20190209-21:19:26] [DEBUG] Closed socket 13 (AF_INET <IP_ADDRESS>:6228)
[20190209-21:19:26] [DEBUG] Closed socket 10 (AF_INET <IP_ADDRESS>:3350)
[20190209-21:19:26] [INFO ] calling auth_start_session from pid 146374
[20190209-21:19:26] [DEBUG] Closed socket 9 (AF_INET <IP_ADDRESS>:3350)
[20190209-21:19:26] [DEBUG] Closed socket 10 (AF_INET <IP_ADDRESS>:3350)
[20190209-21:19:26] [INFO ] Xorg :28 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20190209-21:19:26] [CORE ] error starting default wm for user ******* - pid 146375
[20190209-21:19:26] [CORE ] waiting for window manager (pid 146375) to exit
[20190209-21:19:27] [DEBUG] errno: 2, description: No such file or directory
[20190209-21:19:27] [DEBUG] execlp3 parameter list:
[20190209-21:19:27] [DEBUG]         argv[0] = startwm.sh
[20190209-21:19:27] [DEBUG]         argv[1] = startwm.sh

service xrdp.sh restart is required to correct the problem.

information about my xrdp installation:

qgccws1 (root):#/etc/init.d> /usr/local/sbin/xrdp -v
xrdp 0.9.9
  A Remote Desktop Protocol Server.
  Copyright (C) 2004-2018 Jay Sorg, Neutrino Labs, and all contributors.
  See https://github.com/neutrinolabs/xrdp for more information.

  Configure options:

  Compiled with OpenSSL 1.0.1e-fips 11 Feb 2013

qgccws1 (root):#/etc/init.d> uname -a
Linux ******* 2.6.32-642.13.1.el6.x86_64 #1 SMP Tue Jan 10 09:48:48 PST 2017 x86_64 x86_64 x86_64 GNU/Linux

qgccws1 (root):#/etc> cat /etc/system-release
Oracle Linux Server release 6.8

any suggestions?
I can remove xrdp from logrotate.d and I won't be affected by this problem, but I'd prefer a better solution.

Thanks - Tom

I've never used logrotate for xrdp so I didn't notice that. Thanks for reporting. The issue needs to be addressed.

This issue is identical to #1315 and fixed at #1318. Can you test?


Add CSS classname property to widget

Proposal: sometimes it's convenient to be able to add a CSS classname to a widget. You can sort of do this by subclassing the widget (which will add .flx-YourSubClass to the list of class names), but sometimes you may want more control, e.g. to style stuff using a 3d party theme, or to allow access of elements via Selenium.

Closed by #227


Add Alpha for Background View

I'm using the solid color background, but would like to set its alpha level. Currently I can only do that if I call it after calling a show method. Maybe it'd make sense to add an alpha property to MBBackgroundView that defaults to 1.0f and set that value when presenting the HUD?

You can use UIColor with alpha
[UIColor colorWithRed:1.0 green:0.0 blue:0.0 alpha:0.5];

Oh, of course, that's even better. I should have thought of that. Thank you!


Converting tutorial to anaconda project and unpinning metapackage

This should be a more robust approach moving forwards.

@jbednar I've got a first cut of what should be working instructions for a project based approach.
Two sticking points right now:

Needing to pin fsspec to load the parquet file (now considered invalid, was working before). The best fix is to update the file but I don't yet understand what fsspec is complaining about (or how to fix it)
For images (mainly logos) to load in the notebooks, the server needs to be running one directory above the tutorial directory which means users need to navigate to the directory with all the notebooks. Assets could be moved or maybe we could risk a symbolic link?

I'll merge this for now though we will still need to address the points I made above.


Closes #242

Thank you for your Pull Request! We have developed this task checklist to help with the final steps of the process. Completing the below tasks helps to ensure our reviewers can maximize their time on your blog post.
Please check off each taskbox as an acknowledgment that you completed the task or check off that it is not relevant to your Pull Request. This checklist is part of the Github Action workflows and the Pull Request will not be merged into the main branch until you have checked off each task.

[x] Place Closes #<insert_issue_number> into the beginning of your Pull Request Title (Use Edit button in top-right if you need to update), and make sure the corresponding issue is linked in the Development section on the right hand side
[x] Ensure your new post folder is of the form "posts/zzz_DO_NOT_EDIT_<your post title>". This is so that the post date can be auto-updated upon the merge into main.
[x] Run the script from CICD.R line by line to first check the spelling in your post and then to make sure your code is compatible with our code-style. Address any incongruences by following the instructions in the file!
[x] Choose (possibly several) tag(s) or categories from the current list:  c("Metadata", "SDTM", "ADaM", "TLG", "Shiny", "Community", "Conferences", "Submissions", "Technical") for your blog post. If you cannot find anything that fits your blog post, propose a new tag to the maintainers! Note: if you use a tag not from this list, the "Check Post Tags" CICD pipeline will error. We occasionally tidy up all tags for consistency.
[x] Add a short description for your blog post in the description field at the top of the markdown document.
[x] Blog post is short, personalized, reproducible and readable
[x] Add a disclaimer at the top of your post, if appropriate (example: Disclaimer
This blog contains opinions that are of the authors alone and do not necessarily reflect the strategy of their respective organizations.)
[x] Address all merge conflicts and resolve appropriately
[x] Assign two of us (@bms63, @manciniedoardo, @StefanThoma, @kaz462) as reviewers in the PR.
[x] Pat yourself on the back for a job well done! Much love to your accomplishment!

Hmmm... It looks like the R/CICD.R does not complain but apparently CICD itself does. Do we use something else?

@pawelru we are having some issues with the spellcheck action, please ignore if all fine on your end.

Hello reviewers! Hope you are doing well! I wanted to follow up on this PR to see if you might have a chance to review it. Please let me know if there's anything I can do to help!

Hi Pawel,
Thanks for the nudge, I’ll take a look tomorrow👍
On Wed, 9 Oct 2024 at 19:03, Pawel Rucki @.***> wrote:

Hello reviewers! Hope you are doing well! I wanted to follow up on this PR
to see if you might have a chance to review it. Please let me know if
there's anything I can do to help!
—
Reply to this email directly, view it on GitHub
https://github.com/pharmaverse/blog/pull/241#issuecomment-2402852687,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJUWWEVK4JMXIQKKG4Y7Y6LZ2VOVVAVCNFSM6AAAAABPKFLP3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBSHA2TENRYG4
.
You are receiving this because you were mentioned.Message ID:
@.***>

Thanks all the good comments! Asking for another round of review 🕺

CICD spell check worked on my side, I've added some words.
LGTM!

@pawelru all merged - please feel free to publicise your post as you see fit and we will re-share 😄


[nginx-ingress-controller] Refactoring of template handling

This also watch for changes in the template

This change is

@bprashanth the last commit contains a sidecar that watch changes in a file or a kubernetes resource (configmap and secrets for now).
Writing the example I realized that this requires the use of volumes (at least emptyDir, copying the template before the tstart of the controller) to be able to watch the file located in a different container.
Is this change acceptable just to be able to use a sidecar and not add this code in the controller?

@bprashanth ping

Suggest simplifying the pr to just watch configmaps mounted into 2 containers, and send a signal from the first to the second through kubeClient. Then write a good example that uses a configmap, modifies it , and has an nginx reload. We can iterate on growing that out as required.

Suggest simplifying the pr to just watch configmaps mounted into 2 containers, and send a signal from the first to the second through kubeClient.

Just in case if an user just upgrades the current version (without a volume) the controller behaves like now (no reload if the template changes)

Then write a good example that uses a configmap, modifies it , and has an nginx reload.

I think this  https://gist.github.com/aledbf/e9e669657ab00ae2f8562e89e47c3cb1 is that example

Suggest simplifying the pr to just watch

done
Here is the important part
Basically I watch for the template file for changes. Is not important from where the file comes (emptyDir, another volume, configmap, etc).

This is an example of the change
kubectl exec nginx-ingress-controller-7g2rv -- echo "" >> /etc/nginx/template/nginx.tmpl

I0825 00:21:01.317244       1 main.go:94] new NGINX template loaded
I0825 00:21:04.832265       1 command.go:81] change in configuration detected. Reloading...

kubectl exec nginx-ingress-controller-7g2rv -- echo "{{ something }}" >> /etc/nginx/template/nginx.tmpl

W0825 00:21:59.913088       1 main.go:88] invalid NGINX template: template: nginx.tmpl:370: function "something" not defined

Also contains update to godeps required by #1623

LGTM

@aledbf , I change the content of /etc/nginx/template/ngnix.tmpl in the running container, but no new nginx.conf is generated. What do I miss?


Implemented handling of international characters

Implemented generation of glyphs which are not ASCII characters (characters of non-English languages, special characters, box-drawing characters and so on).
Also, list of includes was sorted.

I see the following approach for the space array problem. Since all characters in the file are sorted by its code point, we can employ binary search for searching a particular character in the array. It is very fast: if there are 1024 characters in the font, only 10 simple steps is needed to find a character description (or to find out that there are no character with such code).

Sounds good.


Temp fix for flutter_web_auth polluting console.

Dependency flutter_web_auth requires patch for flutter 3.0.0 update, error can be ignored but pollutes console.
Fork provides fix until author merges PR.
See: https://github.com/LinusU/flutter_web_auth/pull/118

How about this? https://pub.dev/packages/flutter_web_auth_2

Fixed in https://pub.dev/packages/appwrite v7.0.0.
This issue can be closed.
See https://github.com/appwrite/sdk-generator/pull/527


Cant get it to work.

I just bought the game on steam. I installed it and all the DLC, i laucnhed the game and then quit. I went to the github page and followed the instructions on how to install Unfinished business with the Mod manager.
I launch the game and the mod manager UI comes up but the status symbol is RED and not green. Iv checked the instructions and dont know what could be wrong, Iv tried the lates mod version and the one before that.
Any ideas?

Share a screenshot of the game main page with the mod UI opened on logs tab.

Hi, I think you need to downgrade you Unity Mod Manager, latest version (0.28.2) doesnt seem to be working with UB at the moment. (<IP_ADDRESS> does work)

Hi, I think you need to downgrade you Unity Mod Manager, latest version (0.28.2) doesnt seem to be working with UB at the moment. (<IP_ADDRESS> does work)

Thanks! I was in the same exact situation and it fixed it for me.


EthStorage Devs Meeting #99 Agenda

Meeting Info

Oct 08, 2024, 11:00 UTC+8
Duration: 60 minutes
Meeting link
Anyone can comment on the agenda where they would like this to be discussed.

Agenda

Protocol/App/Research progress
BD/Marketing progress

Goal:

Upstream L2 BLOB
Audit storage contract

Updates:

L2 BLOB design doc internal PR: https://github.com/ethstorage/design-docs/pull/2
Some feedback from Sam (Eigen)
Code reviews: https://github.com/ethstorage/ethstorage-sdk/pull/29

TODO:

Try to confirm the schedule of auditing the storage contract
Open a design doc PR for L2 BLOB
Code review and OCWeb feedback for Nand

Goal:

Prepare WSC L2 testnet launch

Updates:

review fix for two PRs of da-server:

https://github.com/ethstorage/da-server/pull/2
https://github.com/ethstorage/da-server/pull/4

updated a few language changes for testnet faucet

TODO:

https://github.com/ethstorage/op-geth/issues/9
catch up with Qi's PR to support custom chain config
a few reviews:

https://github.com/ethstorage/design-docs/pull/2
https://github.com/ethstorage/optimism/pull/63

prepare a testnet with fault-proof and technical docs

Goal:

Beta testnet launch with website/docs

Updates:

FP support for custom rollup config https://github.com/ethereum-optimism/optimism/pull/12310
Code review for DA server relay and data expiration
Issue about event emitted by SGT implementation https://github.com/ethstorage/op-geth/issues/9
Receive some comments about our roadmap

TODO:

Prepare to launch the beta testnet on the Holocene upgrade and FDG

Goal:

E2E test of 4-ary dispute game

Updates:

https://github.com/ethstorage/optimism/pull/63
Code review https://github.com/ethstorage/optimism/pull/66 https://github.com/ethstorage/optimism/pull/67

TODO:

Implement perform action in OP-challenger

es-node integration: https://github.com/ethstorage/es-node/issues/308

[x] Code change:

[x] ES-Node Changes: https://github.com/ethstorage/es-node/pull/313 (Under review),https://github.com/ethstorage/es-node/pull/316

EthStorage x Taiko:

[x] investigation: read docs and go through the taiko codes
[ ] run test node and client (under test and debug)
[ ] change contract code (under test and debug)
[ ] integration test (ongoing, use dump prover instead of SGX prover, should we set up UI for it?)

Ethstorage-SDK:
https://github.com/ethstorage/ethstorage-sdk/pull/27
https://github.com/ethstorage/ethstorage-sdk/pull/28
https://github.com/ethstorage/ethstorage-sdk/pull/29
QuarkChain Website: https://0xb80551a518d69dd9fcd60a56e24c32aa66634df3.3336.w3link.io/#/

https://github.com/ethstorage/storage-contracts-v1/pull/110
https://github.com/ethstorage/es-node/pull/289
https://github.com/ethstorage/storage-contracts-v1/pull/112

Goal:
Parallel EVM in op-geth
Updates
Writing tests for parallel block executor.
TODO:
Deploy taiko prover server.
Continue testing parallel block executor.


No test output

Describe the bug
I don't get any output stdout/stderr in the Test Output.
To Reproduce

Click on Show Output to bring up the Test Output terminal.
Run a test that uses console.error or console.log.
Test Output records only the following:

The test run did not record any output.
> Test run finished at 3/1/2023, 3:03:43 PM <

Expected behavior
What's written to stdout/stderr should turn up in Test Output.
Screenshots

Environment

OS: Win11
VSCode version: 1.75.1
Vitest version: vitest/0.29.2 win32-x64 node-v19.7.0
Vitest plugin version: 0.2.39

Isn't being able to view console output like this an explicitly advertised feature of this extension?  There is even an animation screenshot of this feature working on its marketplace homepage labelled Inspect console output.
Strange it doesn't work in practice - perhaps something needs to be configured? I'm getting console output OK when I run vitest on the command line.

FWIW, by making stdout/stderr synchronous as described in https://github.com/nodejs/node/issues/6379#issuecomment-1064044886, I can get the output without the need for the sleep.

I see a similar thing.
Environment

OS: 13.4 (Apple M1 Max)
VSCode version: 1.85.1
Vitest version: vitest/1.2.0
Vitest plugin version: 0.2.43

same here. not outputs

Same results on a newly created project
OS: Windows 10
VSCode version: 1.82.2
Vitest version: vitest/1.2.2
Vitest plugin version: 0.2.43

I'm having the same issue. Additionally, when a test fails the popup over the code is empty.
OS: Windows 11 Enterprise - 22631.3007
vitest: 1.2.2
vitest extension: 0.2.43
vite: 5.0.12
vscode: 1.86.0

Same issue. Let me know if I can further assist.
OS: MacOS Sonoma 14.3
vitest: 1.2.0
vitest runner: 0.2.43
vscode: 1.86.0

working thanks

Can confirm. This and new vstest package solved the issues for me as well. Thanks!
Love to see the plugin under vstest name as well ❤


Upgrade openai-php/client

As the last commits from 11.08.2023, not sure it's failing due to the PR. I need to investigate.

Closing in favor of #10


⚠ Samsung has degraded performance

In 9206526, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2109 ms

Resolved: Samsung performance has improved in 37cdde2.


What would one use this for ?

What could i use landmarks for ?

Some applications:

Head pose estimation (e.g. what direction the person is looking at)
Extra features for face verification/identification
Face morphing
Face replacement/swap
Detect activity of mouth, eyes, head, etc. (e.g. detect if someone is talking)
Detect position of individual parts of the face (e.g. position of the eyes)
Face frontalization
Detect parts of the face under occlusion (some techniques provides this info)

Hi Bruno,
Thank you for your answer.
Is there any example code that shows how to do this?
Alef
On 28 Dec 2016, at 20:10, Bruno Ribeiro <notifications<EMAIL_ADDRESS>wrote:
Some applications:

Head pose estimation (e.g. what direction the person is looking at)
Extra features for face verification/identification
Face morphing
Face replacement/swap
Detect activity of mouth, eyes, head, etc. (e.g. detect if someone is talking)
Detect position of individual parts of the face (e.g. position of the eyes)
Face frontalization
Detect parts of the face under occlusion (some techniques provides this info)

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/cheind/dest/issues/9#issuecomment-269533456, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQIi0wPIKi2LSFkKkgHhVZGUvEY6yvybks5rMsIcgaJpZM4LXIc5.

Hi @atv2016, yes there are examples here
https://github.com/cheind/dest/blob/master/examples/dest_track_video.cpp
It's a very basic sample that regresses facial landmarks in a video stream.
We've use DEST for our virtual human bust texturing approach that is to be published soon (ISVC16). We used facial landmarks to determine eye and mouth regions in order to choose texture patches appropriately from them.

Hi Christoph,
Thanks for your kind reply.
So how does one know which landmark is he nose, ears etc.
Would you consider doing some work for me (paid of course). I want to create a 3D mesh on the face as you see in the posit/aan models but not sure how to go about that.
I'd like to apply the landmarks to increased face recognition, but how could this be used. Would you store the landmarks and use the distance between each landmark? Would this distance always stay stable?
Thank you!
Sent from my iPhone
On 29 Dec 2016, at 08:24, Christoph Heindl <notifications<EMAIL_ADDRESS>wrote:
Hi @atv2016https://github.com/atv2016, yes there are examples here
https://github.com/cheind/dest/blob/master/examples/dest_track_video.cpp
It's a very basic sample that regresses facial landmarks in a video stream.
We've use DEST for our virtual human bust texturing approach that is to be published soon (ISVC16). We used facial landmarks to determine eye and mouth regions in order to choose texture patches appropriately from them.

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/cheind/dest/issues/9#issuecomment-269596909, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQIi04G7chzNkv8WDu1k-YGgY2yaEX9Oks5rM25PgaJpZM4LXIc5.

About "which landmark is associated with each part", it depends on the dataset used for training.
To improves face recognition, landmarks can be used in the preprocessing (face normalization) or as an feature vector. Notice that if you use as feature, it's important to normalize the landmarks (e.g. rotate landmarks to ensure the eyes are in the same horizontal line, normalize the values between [0, 1], etc.). In a very simple way, you could check if the probe landmarks have a good fit to the template landmarks (e.g. mean squared error between them). This error value can be used as score (the smaller, the better).

I want to create a 3D mesh on the face as you see in the posit/aan models but not sure how to go about that.

I would recommend Patrik Huber's EOS module for 2D->3D model fitting.  This could be used with a dest model trained with the standard 68 point landmark format.  You might find the following pages useful:
http://www.4dface.org
https://github.com/patrikhuber/eos

@atv2016 as @brunexgeek mentioned the way in which the landmarks are interpreted depends on the dataset used during training.
The one i've been training the releases on is the i-bug 68 point annotation as shown below (mind you the image starts counting datapoints at 1 wheras DEST starts at 0)
I wouldn't assume that distances between landmarks stay the same for the simple reason that distances measured in pixels between landmarks change with the distance from object to the camera. You could normalize distance by, say,  the divide all landmark edge lengths by the length of the nose. This would give you relative lengths with respect to the nose length and they kinda should stay the same. However, if people turn infront of the camera you would still suffer severe distortions in edge lengths.
What you could do (and has been done) is to use an RGBD camera  that provides depth and color information. You could then map facial landmarks found in the RGB image to the aligned depth image (i.e 3d points) and measure distances there. That way perspective effects won't hit you. However, I still would not think that this a secure approach to unlock your home door :)
If using depth cameras is not an alternative, check check out what @headupinclouds proposed.
As far as your paid offer is concerned, I have to refuse. I doubt that I have spare time left to spend on such a project. Maybe you'll find someone else in the field willing to help you out.
Good luck,
Christoph


Silently ignore missing git repo, and add regression tests

The first commit adds regression tests. See new test-crates/README.md for details
The second commit makes bugreport silently ignore missing git repo even with the git_hash feature enabled.
If an official release of a dependent project is built with e.g. cargo install <name>, there will be no git repo available. But that is OK, because an official release is built, so the git hash is uniquely determined by the release git tag.
So to keep output clean and to-the-point, silently skip printing git hash in this case.
See this comment and related discussion for more background.

Forgot to clarify: using the Cargo workspace feature does not work for the added tests, since they have different Cargo.lock needs. (I tried using Cargo workspaces first.)

All comments are fixed now :white_check_mark:
(I did a force-push to keep the commit structure, and so we get a git log without noise after merge.)

@sharkdp What so you think about making a bugreport-release so we can make use of this improvement in bat?

done


[Autocomplete] Warn when mixing uncontrolled and controlled API

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯
When passing in a value of undefined and then changing the value to a correct value, stops the AutoComplete from re-rendering.
Expected Behavior 🤔
At least something to happen. Now you're just stuck trying to figure out what's happening. Either default to an empty array, of have something logged in console to warn about it (e.g. like React does when changing from uncontrolled to controlled).
Steps to Reproduce 🕹
https://codesandbox.io/embed/material-demo-dj0w5
Steps:

Check the console. See that the value is undefined.
Click the button at the top.
See that the value is now an array with two elements.
AutoComplete is not showing the new values.
If you change the initial useState() value to useState([]) everything works as expected.

Context 🔦
Our values are fetched from an api. So initially the value is not defined. We could set our initial state to an empty array, but this is conflicting, because that way you don't know when the api call has completed (as an empty array could also be returned by the api call).
Your Environment 🌎

Tech
Version

Material-UI
latest

React
latest

Browser
chrome

TypeScript
no

@JDansercoer Oh yes, thank you for the report! I had forgotten to add the warning for this one. If you want to contribute, you can go ahead :)
diff --git a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js b/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js
index 1d947d6ff..38635d673 100644
--- a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js
+++ b/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js
@@ -164,6 +164,25 @@ export default function useAutocomplete(props) {
   });
   const value = isControlled ? valueProp : valueState;

+  if (process.env.NODE_ENV !== 'production') {
+    // eslint-disable-next-line react-hooks/rules-of-hooks
+    React.useEffect(() => {
+      if (isControlled !== (valueProp != null)) {
+        console.error(
+          [
+            `Material-UI: A component is changing ${
+              isControlled ? 'a ' : 'an un'
+            }controlled useAutocomplete to be ${isControlled ? 'un' : ''}controlled.`,
+            'Elements should not switch from uncontrolled to controlled (or vice versa).',
+            'Decide between using a controlled or uncontrolled useAutocomplete ' +
+              'element for the lifetime of the component.',
+            'More info: https://fb.me/react-controlled-components',
+          ].join('\n'),
+        );
+      }
+    }, [valueProp, isControlled]);
+  }
+
   const [inputValue, setInputValue] = React.useState('');
   const [focused, setFocused] = React.useState(false);

Before starting on a PR: is it enough to just document this with a warning?
Because React also throws warnings when changing from uncontrolled to controlled, but the core functionality still works. However, with the Autocomplete component, the component does not work.

@JDansercoer We already have 5 occurrences of this exact logic in the codebase. It does warn in both directions.

but the core functionality still works

I would challenge this affirmation.

I would challenge this affirmation.

What exactly do you mean by this?

You are right it does work with React: https://codesandbox.io/s/material-demo-wocx2. It doesn't with Material-UI to enable the project to spend attention on more important problems (and reduce the bundle size as a nice side effect).

For those who also faced this issue there is a simple workaround: use null value instead of undefined:
export default function Playground() {
  const defaultProps = {
    options: top100Films,
    getOptionLabel: (option: FilmOptionType) => option.title
  };

  // doesn't work
  // const [value, setValue] = React.useState();

  // works fine
  const [value, setValue] = React.useState(null);

  return (

       <Autocomplete
        {...defaultProps}
        value={value}
        onChange={(event, newValue) => {
          setValue(newValue);
        }}
        renderInput={params => (
          <TextField {...params} label="controlled" margin="normal" fullWidth />
        )}
      />
      <Autocomplete
        {...defaultProps}
        value={value}
        onChange={(event, newValue) => {
          setValue(newValue);
        }}
        renderInput={params => (
          <TextField {...params} label="controlled2" fullWidth />
        )}
      />

  );
}

Does anyone want to submit a pull request for this problem, based on https://github.com/mui-org/material-ui/issues/18173#issuecomment-549312720?

I am not using useState, with the below code its not working. What am I doing wrong here?
<Autocomplete
     value={this.state.autoC}
     id="combo-box-demo"
     options={[
            { title: 'red', year: 1994 },
            { title: 'blue', year: 1972 }]}
      getOptionLabel={option => option.title}
      onChange={(evt,value)=>{
            this.setState({
              autoC:value
            })
          }}
       renderInput={params => (
            <TextField {...params} label="Combo box" variant="outlined" fullWidth />
          )}
 />

I actually don't think this warning is appropriate. It can be totally expected behavior to change the variable passed into defaultValue without expecting the value in the Autocomplete to change. Material UI should not specify this for the developer, and should definitely not throw an error for this (as is currently the behavior). Could be more acceptable as a warning.

Could be more acceptable as a warning.

@yuechen This resonates with https://github.com/mui-org/material-ui/issues/15343#issuecomment-538759792.

I was running into this exact same problem, where I fetch the valid values for a state from an API and so I have to instantiate the state in some empty manner. Basically {} and [] and null work but undefined doesn't. This was a little surprising to me and also not obvious from the documentation linked in the warning.
I expected that since I am explicitly setting the value using value={this.state.myValue} and I instantiate myValue as undefined it will be a controlled component. Maybe this peculiarity should actually be in the warning. Since I assumed I had made a controlled component but by using undefined I actually hadn't.
But the warning is used more general then this specific case so that doesn't seem the place to fix it. It might be best if undefined would be considered a valid default value for a controlled component. But honestly, I have just started learning React so I'm way out of my depth. The current warning is definitely better then no warning but when new users run into it now, it's probably still not clear why the component is switching from uncontrolled to controlled. @oliviertassinari thoughts?

@RmStorm Thank you for taking the time to write in details your experience. I fear it's expected, however, your mention to the link not helping can be leveraged. I have updated https://github.com/mui-org/material-ui/issues/19423#issuecomment-589862301 to have a mention about it. Thanks (also, feel free to work on it if you want to help us improve the library :)).

When passing in a value of undefined and then changing the value to a correct value, stops the AutoComplete from re-rendering.

thanks @JDansercoer , this save my day
now i change my code to
 value={formState.attributes[item] || ""}

When passing in a value of undefined and then changing the value to a correct value, stops the AutoComplete from re-rendering.

thanks @JDansercoer , this save my day
now i change my code to
 value={formState.attributes[item] || ""}

Thanks @Alarees this also save my days.

For those who also faced this issue there is a simple workaround: use null value instead of undefined:
export default function Playground() {
  const defaultProps = {
    options: top100Films,
    getOptionLabel: (option: FilmOptionType) => option.title
  };

  // doesn't work
  // const [value, setValue] = React.useState();

  // works fine
  const [value, setValue] = React.useState(null);

  return (

       <Autocomplete
        {...defaultProps}
        value={value}
        onChange={(event, newValue) => {
          setValue(newValue);
        }}
        renderInput={params => (
          <TextField {...params} label="controlled" margin="normal" fullWidth />
        )}
      />
      <Autocomplete
        {...defaultProps}
        value={value}
        onChange={(event, newValue) => {
          setValue(newValue);
        }}
        renderInput={params => (
          <TextField {...params} label="controlled2" fullWidth />
        )}
      />

  );
}

Wtf. I lost hours to find that. Don't make sense MUI works this way, but ok. Thank you so much for this explanation. <3
I changed my:
 <Autocomplete                   value={                     modelos_saida.find(                       ({ id }) => id == formik.values.modelo_saida_bem                     )                   }
For:
 <Autocomplete                   value={                     modelos_saida.find(                       ({ id }) => id == formik.values.modelo_saida_bem                     ) || null                   }


School verification

@stss15 file/lib/domains/com/stgeorgesschool.txt: this request has an incorrect file path format, please ensure that you are familiar with     this repository rules located at the bottom of this page and change     your request accordingly. If you don't know how to change request, close it and open a new one.     If you are not able to make the pull request according the instructions, please send us an email to<EMAIL_ADDRESS>Please mention this request URL in the message.

@stss15 First stage of verification passed, official domain for St George's British International Schools (Dusseldorf) is stgeorgesschool.com as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@stss15 I have to close this request without merging, because you requested to add a non-existent domain to this repository: Host stgeorgesschool.edu not found: 3(NXDOMAIN) Please ensure that you are familiar with this repository rules located at the bottom of this page and submit a new request with the correct information. Thank you for your understanding!

Hi can I just double check the domain is stgeorgesschool.com not .edu.
Thanks Steve
On Tue, 19 Mar 2024, 08:42 Philip Torchinsky, @.***>
wrote:

@stss15 https://github.com/stss15 I have to close this request without
merging, because you requested to add a non-existent domain to this
repository: Host stgeorgesschool.edu not found: 3(NXDOMAIN) Please ensure
that you are familiar with this repository rules located at the bottom of this
page https://github.com/JetBrains/swot and submit a new request with
the correct information. Thank you for your understanding!
—
Reply to this email directly, view it on GitHub
https://github.com/JetBrains/swot/pull/20304#issuecomment-2006132706,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A34UONFFA6V4YRSJYIQHVSTYY7T4TAVCNFSM6AAAAABEN55DXCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBWGEZTENZQGY
.
You are receiving this because you were mentioned.Message ID:
@.***>


Format document - array formatting bug

Before:
module Input
    let modules = [109024;137172;80445;80044]

After:
module Input

let modules = [ 109024; 137172; 80445; 80044 ]
]

Expected behaviour
module Input
    let modules = [ 109024; 137172; 80445; 80044 ]

To Reproduce
Steps to reproduce the behaviour:

Create file with "before" contents
Press Shift+Alt+F (Format document)

Environment (please complete the following information):

OS: Widows 10 Pro 18363.476
Ionide version: 4.3.2
VSCode version: 1.40.2
dotnet SDK version: 3.1.100
mono / .Net Framework version: netcoreapp3.1

Additional context
Add any other context about the problem here.

Please open formatting bugs at the fantomas repository, https://github.com/fsprojects/fantomas. We consume them as a library to do all formatting.

This is not reproduced in fantomas: link to online formatter
Maybe ionide doesn't use the latest version?

You're exactly right. FSAC has been updated with the latest version already, so we need to do an update here of FSAC and this will be addressed. Thanks for reporting!

Should be fixed in 4.4.x

@Krzysztof-Cieslak Unfortunately, I can still reproduce it in ionide 4.4.2...

@Krzysztof-Cieslak we should reopen this, the problem seems to be on our side in FSAC.
Given fsx script of:
module Input
    let modules = [109024;137172;80445;80044]

the result of the formatting call is
[Trace - 3:22:08 PM] Sending request 'textDocument/formatting - (62)'.
Params: {
    "textDocument": {
        "uri": "file:///Users/chethusk/oss/CppSharp/build/gmake/lib/Release_x64/gen/scratch.fsx"
    },
    "options": {
        "tabSize": 4,
        "insertSpaces": true
    }
}

[Trace - 3:22:08 PM] Received response 'textDocument/formatting - (62)' in 7ms.
Result: [
    {
        "range": {
            "start": {
                "line": 0,
                "character": 0
            },
            "end": {
                "line": 1,
                "character": 44
            }
        },
        "newText": "module Input\n\nlet modules = [ 109024; 137172; 80445; 80044 ]\n"
    }
]

The key thing is the response has a range of (0,0)-(1,44) (relative to the initial text), and the response text is "module Input\n\nlet modules = [ 109024; 137172; 80445; 80044 ]\n", which is what we expect in this case.  I think there's something wrong with the range calculation (because line 2 of the input text (aka line 1 from FSC range perspective) has 45 characters, not 44. I think we're replacing everything from (0,0)-(1,44) with the newText (which ends in newline) and the the last character of ] is being appended.

@baronfel fixed that on FSAC side, fix will be available in next Ionide release


Update for CUDA 12.4.0

xref: https://github.com/conda-forge/cuda-feedstock/issues/17

@conda-forge-admin, please rerender

The linux_ppc64le build on main timed out. So restarted the build


ics input file instead of API or website scraping.

Request
My garbage collector Circulus-Berkel has no plans whatsoever to provide an API. The information needed is only made available in an iOS or Android App and via a downloadable .ics file.
It would be nice if the service can be provided with a data file like the .ics file (i have attached an example) for the Circulus Berkel clients.
Or there must be plans to scrape the information from the website, but that seems to me an uncertain sustainable solution.
Additional information
afvalkalender.ics.zip

Hi, I believe there are alternative solutions which fits better for your purpouse
For example: https://community.home-assistant.io/t/waste-collection-schedule-framework/186492/20
This component is purely API based and I have no plans to extend it with file support. Sorry :)


DataFrame Groupby on Categorical Column + .apply() returns extra rows

If you do a groupby on a categorical column and then use a builtin .agg() (like "sum" or "nunique" or "count"), then everything works correctly where the number of rows is number of categorical levels. However, if you pass in your own function into .apply(), then it appears that you get the number of rows = npartition * num_categorical_levels. It appears that you are getting extra rows from other partitions.
I tested on Dask 2.14.0 and Pandas 1.0.3
import pandas as pd
import numpy as np

N = 10000
df = pd.DataFrame({"random_int": np.random.randint(0, 2, N), "random_float": np.random.rand(N)})
df["random_int"] = df["random_int"].astype("category")

df.groupby("random_int")["random_float"].apply(pd.Series.median)

which prints out correctly 2 rows
random_int
0    0.506780
1    0.494878
Name: random_float, dtype: float64

However if you use Dask DataFrame, you get extra rows:
import dask.dataframe as dd

ddf = dd.from_pandas(df, npartitions=4)
ddf.groupby("random_int")["random_float"].apply(pd.Series.median).compute()

which prints out 8 rows (4 partitions * 2 categorical levels)
random_int
0         NaN
1         NaN
0         NaN
1         NaN
0         NaN
1    0.494878
0    0.506780
1         NaN
Name: random_float, dtype: float64

Original question posted on Stackoverflow: https://stackoverflow.com/questions/60711871/dask-apply-with-custom-function/61232826#61232826

The groupby.apply docs have this warning
        .. warning::

           Pandas' groupby-apply can be used to to apply arbitrary functions,
           including aggregations that result in one row per group. Dask's
           groupby-apply will apply ``func`` once to each partition-group pair,
           so when ``func`` is a reduction you'll end up with one row per
           partition-group pair. To apply a custom aggregation with Dask,
           use :class:`dask.dataframe.groupby.Aggregation`.

Does that explain the behavior you're seeing?

Thank you for mentioning the warning. The explanation would make sense under the assumption that the categorical levels are kept across all partitions.
Is there a way to make the categorical levels disappear if there's no data in that partition? With the Principle of Least Surprise, it would be strange (from a user perspective) that the groupby still maintains categorical levels for empty partitions when you expect that there's 1 partition that contains all the data for 1 group. That is the practical result (from a user perspecive) for Dask's built in aggregations like "sum" or "mean", which does not create extraneous rows (of NaN)s.

With a pandas dataframe, you can call remove_unused_categories on a Categorical.

@TomAugspurger Thanks for the quick reply.
Perhaps, I am doing it wrong, but the extra NaN rows still exist. I run the lines in my first post and also:
ddf.groupby(ddf["random_int"].cat.remove_unused_categories()).apply(pd.Series.median).compute()
which prints:
           | random_int | random_float
random_int | -- | --
         0 | NaN | NaN
         1 | NaN | NaN
         0 | NaN | NaN
         1 | NaN | NaN
         0 | NaN | NaN
         1 | 1.0 | 0.511774
         0 | 0.0 | 0.516092
         1 | NaN | NaN

Am I misinterpreting your advice?

I'm not sure. Dask or pandas might be doing a reindex on the output, if you
want to dig through.
On Thu, Apr 30, 2020 at 9:30 AM Eugene Huang<EMAIL_ADDRESS>wrote:

@TomAugspurger https://github.com/TomAugspurger Thanks for the quick
reply.
Perhaps, I am doing it wrong, but the extra NaN rows still exist. I run
the lines in my first post and also:
ddf.groupby(ddf["random_int"].cat.remove_unused_categories()).apply(pd.Series.median).compute()
which prints:
       | random_int | random_float

random_int | -- | --
0 | NaN | NaN
1 | NaN | NaN
0 | NaN | NaN
1 | NaN | NaN
0 | NaN | NaN
1 | 1.0 | 0.511774
0 | 0.0 | 0.516092
1 | NaN | NaN
Am I misinterpreting your advice?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/issues/6135#issuecomment-621890076, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKAOIXZK267UMGGNMS4R23RPGDQJANCNFSM4MQPTHNQ
.

@eugeneh101, I don't think you are removing the unused categories at the right time. It only really makes sense to remove them on each partition (see map_partition). But I think what really makes more sense is to do a dropna on your output. The warning that Tom mentioned seems to cover your case, so I don't actually think this is a bug.

Hello @jsignell ! Thank you for answering this question. Sorry for the delay--the previous 2 weeks have been a bit hectic. The good news is that I have been evangelizing Dask (or rather helping people with Dask questions)  at the company I work!
You are correct that map_partitions() and dropna() will work. You can drop the NaN before compute() or after compute():
ddf.groupby("random_int")["random_float"].apply(pd.Series.median).map_partitions(lambda s: s.dropna()).compute()
ddf.groupby("random_int")["random_float"].apply(pd.Series.median).compute().dropna()

both which correctly returns
  | random_int
1 | 0.494019
0 | 0.490220
Name: random_float, dtype: float64

For the warning that Tom mentioned, the key piece of confusion is whether instances of each categorical level (across all partitions) will be pooled together into 1 "partition-group" pair. For example, if I use a built-in agg like ddf.groupby("random_int")["random_float"].agg("min").compute(), then I correctly get the results without the NaNs. However, if I do ddf.groupby("random_int")["random_float"].apply(min).compute(), then I get the results with NaNs. Ideally if possible with minimal effort, the results of these 2 calls should generate the same result for consistency.
I understand that perhaps every partition might contain the categorical level during a groupby but have no data. If the categorical levels per partition cannot be updated/removed if that partition doesn't have data corresponding to that categorical level during a groupby (ie if this is just how categorical column works), then I understand and that a fix would be very difficult or intractable. I understand practicality beats purity.
If there is a simple solution to fix this problem, that would be ideal. If not, feel free to close this issue. This issue is a minor thing that doesn't have practical negative implications since users can make this problems go away easily with an extra step (ie dropna()).

Thank you for explaining your expectation so clearly! In the case of the predefined, named agg methods, we are able to do smarter things because we understand what is happening. We know how to reduce "min" for instance. For apply we don't have any knowledge of the function being applied, so it doesn't make sense to try to do a reduction.
You can however write a custom aggregator which specifies both a mapping function and a reduction function.
import dask.dataframe as dd
import pandas as pd
import numpy as np

N = 10000
df = pd.DataFrame({"random_int": np.random.randint(0, 2, N), "random_float": np.random.rand(N)})
df["random_int"] = df["random_int"].astype("category")
ddf = dd.from_pandas(df, npartitions=4)
custom_agg = dd.Aggregation('custom_sum', lambda s: s.median(), lambda s0: s0.median())
ddf.groupby("random_int")["random_float"].agg(custom_agg).compute()

See https://docs.dask.org/en/latest/dataframe-groupby.html#aggregate for more info.  Note though that you have to be careful with this since the median of the median is not equivalent to the median....


Cool - but maybe there should be a link to lorem.html from index.html, and vice-versa?

Hmm... good idea.

@LEGOlord208 We have a sidebar now, so why not pull down the changes and add your page to the sidebar navigation?