Update Query arguments at Query.run()

Updating arguments within Query.run() can increase code lisibility, as we can write this:
public Cursor getSomething(Observable<String> arg1, Observable<String> arg2){
   Observable<Query> query = createQuery();
   Observable.combineLatest(arg1, arg2, query, new Func3<String, String, Query, Cursor>(){
      @Override public Cursor call(String arg1, String arg2, Query query){
         return query.run(arg1, arg2);
      }
   });
}

Instead of:
public Cursor getSomething(Observable<String> arg1, Observable<String> arg2){
   Observable.combineLatest(arg1, arg2, new Func2<String, String, String>(){
      @Override public String call(String arg1, String arg2){
         return buildSqlStringForQueryX(arg1, arg2);
      }
   }).flatMap(new Func1<String, Observable<Query>>(){
      @Override public Observable<Query> call(String query){
         return db.createQuery(TABLE, query);
      }
   }
}

I might be wrong but this is how I am currently using SqlBrite to run Queries with arguments.
There might be better ways of implementing this, like adding a seperate method like runWithArgs(String... args).
This is just an idea, not an actual pull request.
My code might even not be working.
I'm not confortable contributing to projects that are not mine, maybe this is inappropriate...

I actually think your second example is more readable, it's clear to me what each part of the Rx pipe is doing - composing a query from observable args, then flatmapping it to a query (although that should be a switchMap to prevent receiving updates from the old selection). To make it even more explicit I would just do:
Observable.combineLatest(firstNames, lastNames, new Func2<String, String, QueryObservable>() {
  @Override public QueryObservable call(String firstName, String lastName) {
    return briteDatabase.createQuery(User.TABLE_NAME,
      "SELECT * FROM user WHERE first_name=? AND last_name=?", firstName, lastName);
  }
}).switchMap(new Func1<QueryObservable, QueryObservable>() {
  @Override public QueryObservable call(QueryObservable queryObservable) {
    return queryObservable;
  }
});

Essentially we want to keep Query as a mechanism for running the same query over again to retrieve the updated table. Thank you for the suggestion though, it's an important use case and I agree it's not entirely clear right now so there may be opportunities for changes in the future.
I'll leave closing this to @JakeWharton in case he has more input.

Thank you for your exemple, it's way better than my current implementation.
Sure it's just a suggestion.

Yeah I think @AlecStrong hit what we think would be a more canonical Rx approach. If we allow modifying the arguments to the query then it breaks the purity of the query observable and turns it more into a simple trigger for table changes rather than an actual observable query. A valuable counter to this argument is that the current mechanism allows you to separate the arguments for query creation from the code that consumes it and that's very intention. Unless there's a lot more excitement around something like this, for now we're going to focus on the existing way that it works.


Adding CredSSP with Early User Auth support (sec:ext)

Recently I wasn't able to connect to my work servers using FreeRDP.
After digging I found that without using /sec:ext the server was closing the connection.
But with the command line switch it wasn't working, I found out that HYBRID_EX wasn't handled in nego.c.
Afterward I found out that we were receiving 4 bytes between the end of NLA and the MCS connect, I found out that it was the Early User Auth Result PDU (https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/d0e560a3-25cb-4563-8bdc-6c4cc625bbfc).
I don't know RDP protocol neither the FreeRDP source code but I attempted to add support the best I can, trying to respect the way the code is architectured and using clang_format on the modified sources.
With this patch I can now connect to my work servers again, if it can help other people then I'm happy to share the patch.

@freerdp-bot test please

LGTM, nice patch, thank you for your contribution!
if you could squash the commits into one and fix the (minor) remarks it would be really great!

ok I fixed everything and squashed it

Fix my remark and we're ok (we'll ask for test bots after that)

@freerdp-bot can you test buddy ?

I've fixed the wrong indentation for the enum

@freerdp-bot test please

@freerdp-bot test please


Fix bug where attach menu could be open even when disabled

If you opened the attach menu, then used the browser back button to go to a page where the attach menu is disabled, the menu would remain open. This fixes it to automatically close in that case.

Override failing test not related to this change:
/override "Red Hat Konflux / ols-enterprise-contract / lightspeed-console"


Introduce explicit mode of stub downloading

Currently we have a combination of workOffline, repositoryRoot

workOffline:true, repositoryRoot:null - pick from local maven repo
workOffline:false, repositoryRoot:sth - download from maven repo
workOffline:false, repositoryRoot:null - pick from classpath

for version 1.2.0 we could consider a Spring Boot Test style of explicitly providing an option. Local, Classpath, Maven or sth like that.

Currently we are using gradle and the dependencies are downloaded to another folder that is not in the .m2/repository. Is there a way it could work offline from a local gradle repository?

I think that you can change the repositoryRoot to point to the directory. I wonder if Aether can even work with the Gradle cache. I doubt that it would work. You can however add the dependency as a test dependency and pick it up from classpath.

Would be useful to have workOffline as being prioritary: i.e.
workOffline:true, repositoryRoot:sth - ignore the repositoryRoot and pick from local maven repo


pose network weights

Hello, do you have the weights of pose network (Lite-Mono-tiny)?
If available, could you please send them to me?
Thank you!

Hi, which pose weights do you need? 640x192 or 1024x320? I need some time to find it.

Hello, I need the weights about 640x192! Thanks very much!

Hi, this should be the correct file. I have just uploaded it to the drive. --> link


Cannot connect to the EU server

Where should I save dps meter? Can it be there? http://prnt.sc/clrmrw
I've used @Gl0 hints and instructions and I still see this http://prnt.sc/clrnsf
These are my settings http://prnt.sc/clrnyd
Can someone help me with this issue and explain step by step? I don't know if I overwritted and changed all files correctly
Why dps meter doesn't work on EU servers as well as on NA servers?
Thanks

If you are using raw sockets - you should add firewall rule, allowing all incoming traffic for meter .exe (make sure, that there are no macro in the path like %localappdata%). + You should run meter as admin.

Thank you very much!, but i use ShinraMeter xDDDD, but really very thank you, bless!


[release-1.9] Fix istioctl install IOP ns error

This is an automated cherry-pick of #31518

@googlebot I consent.

@googlebot I consent

@kebe7jun Thanks. will merge this after 1.9.2 is released.

@istio-testing: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-security-multicluster-tests_istio_release-1.9
0b7c47fe6f5cbb910411531e1d6705d8ce1fe83d
link
/test integ-security-multicluster-tests_istio_release-1.9

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test integ-security-multicluster-tests_istio_release-1.9

@istio-testing: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-security-multicluster-tests_istio_release-1.9
0b7c47fe6f5cbb910411531e1d6705d8ce1fe83d
link
/test integ-security-multicluster-tests_istio_release-1.9

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test integ-security-multicluster-tests_istio_release-1.9

cc @kebe7jun We neeed your consent for this PR

@googlebot I consent.

cc @kebe7jun We neeed your consent for this PR

I have done that but it doesn't seem to work. What's the matter?

@googlebot I consent

@shamsher31 This PR is still not merged, I am not sure what is wrong, do you need to deal with it manually?

@stevenctl can you please help to resolve CLA issue?


Lacking CocoaPods support

CocoaPods support has been missing for a long time (#29, #124, and more), and last time I gave it a shot, CocoaPods didn't play nice. I don't use it, so I'm considering just removing support for it completely.
Any thoughts? cc @colemcampbell @Coledunsby

In my experience Swift packages are significantly easier to create and maintain, and now that Xcode 11 includes built-in SwiftPM support I don’t see any reason to use CocoaPods in my own projects. I’ve had to keep it around for dependencies that haven’t adopted SwiftPM compatibility yet but that number is shrinking rapidly and I imagine that it’s only a matter of time before I never use CocoaPods again.

@duemunk If you decide to drop support and want someone to take care of removing it from the repository I can make a pull request.

Thanks for offering @colemcampbell. I think we should do that then!


An error occurs when attempting to get installed list using the tab key in omz

Operating system and version:
ProductName:		macOS
ProductVersion:		14.1
BuildVersion:		23B74

nvm debug output:

nvm --version: v0.39.7
$SHELL: /bin/zsh
$SHLVL: 1
whoami: 'jh.tang'
${HOME}: /Users/jh.tang
${NVM_DIR}: '${HOME}/.nvm'
${PATH}: ${NVM_DIR}/versions/node/v16.14.0/bin:${HOME}/.local/share/zinit/polaris/bin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/aria2/bin:/usr/local/go/bin:${HOME}/.cargo/bin:${HOME}/WebstormProjects/marketing.automizely.com/node_modules/.bin:${HOME}/.orbstack/bin
$PREFIX: ''
${NPM_CONFIG_PREFIX}: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'zsh 5.9 (x86_64-apple-darwin23.0)'
uname -a: 'Darwin 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:27:27 PDT 2023; root:xnu-10002.41.9~6/RELEASE_X86_64 x86_64'
checksum binary: 'shasum'
OS version: macOS 14.1 23B74
awk: /usr/bin/awk, awk version 20200816
curl: /usr/bin/curl, curl 8.1.2 (x86_64-apple-darwin23.0) libcurl/8.1.2 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.55.1
wget: /usr/local/bin/wget, GNU Wget 1.21.4 在 darwin22.4.0 上编译。
sed: /usr/bin/sed
cut: /usr/bin/cut
basename: /usr/bin/basename
rm: /bin/rm
mkdir: /bin/mkdir
xargs: /usr/bin/xargs
git: /usr/local/bin/git, git version 2.43.0
ls: grep:: No such file or directory
grep: grep: aliased to grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox} (grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}), grep (BSD grep, GNU compatible) 2.6.0-FreeBSD
nvm current: v16.14.0
which node: ${NVM_DIR}/versions/node/v16.14.0/bin/node
which iojs: iojs not found
which npm: ${NVM_DIR}/versions/node/v16.14.0/bin/npm
npm config get prefix: ${NVM_DIR}/versions/node/v16.14.0
npm root -g: ${NVM_DIR}/versions/node/v16.14.0/lib/node_modules

nvm ls output:

       v10.15.0
       v12.22.5
       v14.15.0
       v14.17.5
       v14.18.1
       v14.19.1
       v14.20.0
       v16.13.0
->     v16.14.0
       v16.16.0
       v16.17.0
       v16.20.2
       v18.12.1
       v18.16.1
       v18.17.1
       v18.18.2
       v18.19.0
        v20.9.0
         system
default -> v16.14.0
bff -> v14.20.0
old -> v14.18.1
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v20.9.0) (default)
stable -> 20.9 (-> v20.9.0) (default)
lts/* -> lts/iron (-> N/A)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.24.1 (-> N/A)
lts/erbium -> v12.22.12 (-> N/A)
lts/fermium -> v14.21.3 (-> N/A)
lts/gallium -> v16.20.2
lts/hydrogen -> v18.19.0
lts/iron -> v20.10.0 (-> N/A)

How did you install nvm?

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

What steps did you perform?
When I try to use
nvm use

and press the TAB key
getting this error
~                                                                                15:07:51
❯ nvm use lUsage: add-zsh-hook hook function
Valid hooks are:
  chpwd precmd preexec periodic zshaddhistory zshexit zsh_directory_name
add-zsh-hook:shift:55: shift count must be <= $#
Usage: add-zsh-hook hook function
Valid hooks are:
  chpwd precmd preexec periodic zshaddhistory zshexit zsh_directory_name
ts/

What happened?
❯ nvm use Usage: add-zsh-hook hook function
Valid hooks are:
  chpwd precmd preexec periodic zshaddhistory zshexit zsh_directory_name
add-zsh-hook:shift:55: shift count must be <= $#
Usage: add-zsh-hook hook function
Valid hooks are:
  chpwd precmd preexec periodic zshaddhistory zshexit zsh_directory_name

bff           lts/erbium    system        v14.20.0      v18.17.1
default       lts/fermium   unstable      v16.13.0      v18.18.2
iojs          lts/gallium   v10.15.0      v16.14.0      v18.19.0
lts/\*        lts/hydrogen  v12.22.5      v16.16.0      v20.9.0
lts/argon     lts/iron      v14.15.0      v16.17.0
lts/boron     node          v14.17.5      v16.20.2
lts/carbon    old           v14.18.1      v18.12.1
lts/dubnium   stable        v14.19.1      v18.16.1

add-zsh-hook error
What did you expect to happen?
show installed list without any error
Is there anything in any of your profile files that modifies the PATH?

No

How are you installing autocompletion?

—
Reply to this email directly, view it on GitHub
https://github.com/nvm-sh/nvm/issues/3256#issuecomment-1870884539, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/A6KA5FVXQ6N4U7UOQ3DUWCTYLULAJAVCNFSM6AAAAABBFFFRMGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZQHA4DINJTHE
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

I don’t see nvm’s autocomplete in there at all.

I don’t see nvm’s autocomplete in there at all.

It is handled by the oh-my-zsh nvm plugin.

Sounds like that plugin needs this issue, then.


Unrecoverable crash every few days: context deadline exceeded

[x ] I have checked the existing issues to avoid duplicates
[x ] I have redacted any info hashes and content metadata from any logs or screenshots attached to this issue

Describe the bug
Bitmagnet container crashes after some delay, about every ~1-3 days from what I can tell. It does not restart/recover automatically, seemingly because the exit code is 1 (docker is weird about restarting only for certain exit codes). I have been having some intermittent network stability issues with my ISP, and it seems loosely correlated with that, although it has happened even when I didn't notice any other problems on my network, so i'm not fully convinced that is the trigger/root cause.
I've attached the raw debug logs from a recent failover, AFAICT there isn't anything sensitive in them as it's mostly errors but apologize if I missed anything, happy to edit/redact if needed.
bitmagnet.log
To Reproduce
Steps to reproduce the behavior:

Boot Bitmagnet
Wait for issue to re-occur
View stopped container and inspect logs

Expected behavior
Bitmagnet to remain stable and not crash, however if it does crash ideally it would self-recover better as well.
Environment Information (Required)

Bitmagnet version: v0.9.5
OS and version: macOS 15.1.1 (24B2091)
Browser and version (if issue is with WebUI): Version 131.0.6778.70 (Official Build) (arm64) (not WebUI related)
Please specify any config values for which you have overridden the defaults: See docker compose below

Additional context
Bitmagnet was super heavy on Disk I/O, and I have plenty of RAM so I made some tweaks to the Postgres config to prefer RAM over Disk I/O in some cases, which has helped a lot with the performance of my Synology NAS DS423+.
Docker Compose:
bitmagnet:
    container_name: bitmagnet
    image: ghcr.io/bitmagnet-io/bitmagnet:latest
    volumes:
      - /volume2/docker/starr-trash/bitmagnet:/root/.local/share/bitmagnet
    restart: always
    environment:
      - LOG_FILE_ROTATOR_ENABLED=true
      - POSTGRES_HOST=bitmagnet-postgres
      - POSTGRES_PASSWORD=<REDACTED>
      - TMDB_API_KEY=<REDACTED>
      - CLASSIFIER_DELETE_XXX=true
      - DHT_CRAWLER.SCAILING_FACTOR=5
      - LOG_LEVEL=debug
    labels:
      - autoheal=true
    shm_size: 1g
    logging:
      driver: json-file
      options:
        max-file: ${DOCKERLOGGING_MAXFILE}
        max-size: ${DOCKERLOGGING_MAXSIZE}
    # logging:
    #   driver: none
    # Ports mapped via VPN
    # ports:
    #   - 3333:3333 # Bitmagnet - API and WebUI
    #   - 3334:3334/tcp # Bitmagnet - BitTorrent
    #   - 3334:3334/udp # Bitmagnet - BitTorrent
    network_mode: service:gluetun
    depends_on:
      gluetun:
        condition: service_healthy # Used by gluetun-healthcheck.sh script.
        restart: true
      bitmagnet-postgres:
        condition: service_healthy
        restart: true
    healthcheck:
      test: "nc -z localhost 9999 || kill 1"
      interval: 1m
      timeout: 1m
      start_period: 300s
    command:
      - worker
      - run
      # Run all workers:
      - --all
      # Or enable individual workers:
      # - --keys=http_server
      # - --keys=queue_server
      # - --keys=dht_crawler

  bitmagnet-postgres:
    image: postgres:16-alpine
    container_name: bitmagnet-postgres
    volumes:
      - /volume2/docker/starr-trash/bitmagnet/postgres:/var/lib/postgresql/data
    ports:
      - "6432:5432"
    shm_size: 3g
    restart: always
    command:
      -c shared_buffers=3GB
      -c work_mem=256MB
      -c maintenance_work_mem=512MB
      -c checkpoint_timeout=30min
      -c checkpoint_completion_target=0.9
      -c wal_buffers=128MB
      -c effective_cache_size=6GB
      -c synchronous_commit=off
      -c autovacuum_vacuum_cost_limit=2000
      -c autovacuum_vacuum_cost_delay=10ms
      -c autovacuum_max_workers=3
      -c autovacuum_naptime=20s
      -c autovacuum_vacuum_scale_factor=0.05
      -c autovacuum_analyze_scale_factor=0.02
      -c temp_file_limit=5GB
      # Risk data loss
      # -c fsync=off
      # -c full_page_writes=off
    # logging:
    #   driver: none
    environment:
      - POSTGRES_PASSWORD=<REDACTED>
      - POSTGRES_DB=bitmagnet
      - PGUSER=postgres
    healthcheck:
      test: ["CMD-SHELL", "pg_isready"]
      interval: 10s
      start_period: 60s
    networks:
      syno-bridge:
        # https://github.com/qdm12/gluetun-wiki/blob/main/setup/inter-containers-networking.md#between-a-gluetun-connected-container-and-another-container
        # Required until fixed: https://github.com/qdm12/gluetun/issues/281
        ipv4_address: <REDACTED>

I found running bitmagnet on macOS Catalina and an old version of docker problematic. I could not update macOS or docker due Mac being a 2012 Mac mini. Split Fusion Drive and created partitions of ssd and hdd. The dual booted to Ubuntu 24.10 and latest version of docker. Bitmagnet is now very stable - no crashes of docker daemon. Hence I suspect docker version and host os version are important for stable networking with bitmagnet crawling network loads

There are various problem reports about Bitmagnet in connection with Docker on Windows or macOS hosts.
The following should always be borne in mind:
Bitmagnet is an app with high I/O requirements in terms of both storage and network.
On Windows and macOS, it must always be borne in mind that the usual Docker stacks are mostly a virtualization solution. Probably Hyper-V on Windows today and Hyperkit on macOS.
These are already highly optimized hypervisors for the platforms. The small Linux running in them is also highly optimized. However, both the hypervisor and the device model of the VM (emulated network card, etc.) or some setting in the parts of the stack (be it a kernel option in the kernel of the small Linux system) can lead to problems.
Bitmagnet lives best on physical hardware, a system isolated for operation, which is best equipped with HVMe storage. CPUs of older generations, the middle class and also mobile processors are perfectly adequate. Just add 16-32GB of RAM and you're good to go.

Thanks for chiming in folks.  To be clear for this issue, I am running docker natively on linux not via any hypervisor. I am using a Synology DS423+ NAS (which unfortunately still uses an older Docker Daemon - v24.0.2), paired with a modern M.2 NVME 1TB SSD and 18 GB of RAM.
This wasn't a problem previously but i have been running Bitmagnet for almost 6 months so maybe the increased size of the DB is putting more pressure?. It is intermittent, I haven't had a crash in about a week.
Honestly, an occasional crash isn't a big deal to me, but I'd like to debug why it was unable to recover on its own, and required my manually intervention.

I was assuming macOS as it was in the first post above.
NAS devices are also extremely unsuitable for software like Bitmagnet.
On the one hand, the underlying Linux distributions are highly optimized. Possibly even so that it is problematic for Bitmagnet. In addition, the Docker versions are often very old.
The hardware can also still cause problems here. Even with an SSD cache. There are two main reasons for this. The I/O level that NAS devices often have and the fact that there is a high CPU base load (especially with smaller devices).
At first glance, I would assume from the debug log that the restart does not succeed at all because “not the container” is terminated but because “the process is shot down” and Docker then stops the container. It could also be that it is simply getting tangled up.
For me, the reason could be that there are situations in which files can no longer be opened. I would suspect this because of the “bad file descriptor” errors. It looks like it can't write to the socket, which causes it to crash at some point.
That wouldn't surprise me with a NAS either. On the one hand, they already have a lot of files open, and on the other, a lot of small network connections open and therefore a lot of sockets open. It should be borne in mind that sockets in Unix are also files according to the “everything is a file” principle.
I think that somewhere there lies the problem. Possibly also kernel options that influence socket sizes or other socket options. Possibly other limitations are also relevant that often want to keep processes in check on NAS devices.


Do not use --color-primary for hyperlinks and text buttons

Describe the feature you'd like
The light and dark themes are very beautiful. However, when I change the app color in Settings page, it affects negatively the UX of BookStack in one the two themes. Besides specific elements (hyperlinks and text buttons), other components are very well rendered.
If I choose a rather dark color, every hyperlinks are poorly visible in dark mode. On the contrary, if I choose a rather light color, every hyperlinks are poorly visible in light mode. Please, could it be possible to remove the CSS rule var(--color-primary) from these elements ?
I was able to identify these elements and to fix the problem with this following Custom CSS.
<style>
.dark-mode .card a, .dark-mode .activity-list a, .dark-mode .icon-list-item, .dark-mode .text-primary {
    color: #BBB !important;
}
</style>

Describe the benefits this feature would bring to BookStack users
Improve UX.
Additional context

The hyperlinks/buttons in the side bar are well rendered in light mode

But they are poorly visible in dark mode

The Custom CSS fixes the issue

Thanks @Baptistou for the request.
I'm going to close this in favour of the existing issue #2314 since that issue has similar goals while offering an implementation idea that may more completely solve the core issue.

Thanks @Baptistou for the request.
I'm going to close this in favour of the existing issue #2314 since that issue has similar goals while offering an implementation idea that may more completely solve the core issue.

I think they are two different features : the first is to provide two primary colors, one for light mode and one for dark mode, whereas the second is to remove the primary color from poorly visible hyperlinks while keeping the same color for the two modes. The idea here is that my organization is identified by a logo with a specific unique color that is applied to every apps, whatever the mode is.


Add a handler for the IMailFolder.MessageFlagsChanged event

Hi, great library!
Perhaps something that is missing is being able to listen to flag changes on emails.
If I set up my monitor as such:
await _imapReceiverClient.MonitorFolder     .SetMessageSummaryItems()     .SetIgnoreExistingMailOnConnect()     .OnMessageArrival(OnArrivalAsync)     .IdleAsync(_cancel.Token);
There doesn't appear to be an extension method or handler for the IMailFolder.MessageFlagsChanged event.
Are there any plans to add this or have I missed something obvious?
Originally posted by @mabeale in https://github.com/danzuep/MailKitSimplified/discussions/67#discussioncomment-10416605

I've added this feature and submitted a preview release, enjoy!

Thanks for that!
The event fires off but it looks like it is sending the MessageSummary for its initial state. I.e. if the process starts and there is a read email in the inbox then no matter how many times I change it to unread and back to read, the MessageSummary is still showing it as read.
Conversely, if I start the process with an unread email in the inbox, and changes to its flag will also show as unread.
I think the issue could be that it is returning the email from a cached list of emails from when the process first starts.
Is there a way for you to re-read the email before returning it?

Good point, I've added you suggestion.

It may not work for the scenario where you want to ignore any read emails in the inbox but process them once they become unread. Feel free to make a pull request to add that functionality, but let me know you're working on it so I don't double-up.

Wow, thanks a lot. Is it possible to create a nuget package for that update?
It might work as it is as this is my approach:
`
public async Task MonitorInbox()
{
await _imapReceiverClient.MonitorFolder
.SetMessageSummaryItems(MessageSummaryItems.All)
.SetIgnoreExistingMailOnConnect(false)
.OnMessageArrival(OnArrivalAsync)
.OnMessageFlagsChanged(OnMessageFlagsChangedAsync)
.IdleAsync(_cancel.Token);
}
private async Task OnArrivalAsync(IMessageSummary messageSummary)
{
if (messageSummary == null || messageSummary.Flags.HasValue && messageSummary.Flags.Value.HasFlag(MessageFlags.Seen))
{
Trace.TraceInformation("The email object was null or the email has already been read. Processing stopped.");
return;
}
.....
}`

Ah, the pipeline passed so I thought it was published. Here's a another one: https://www.nuget.org/packages/MailKitSimplified.Receiver/2.11.12-tags-v2-11-12-rc0001

Great, thanks a lot! It's working wonderfully! I really appreciate the quick turnaround!


Book 1, version 2022-08-08, Section <IP_ADDRESS>, page 187, Equation 5.67

Missing sigma squared?

Yes, an answer in stats.SE also confirms a missing $\sigma^2$ in the numerator.


Ensure language packs are installed on the server side

We need the language pack to be on the server side so that extensions running over there are translated correctly.
This ensures the correct language pack is installed before the ExtensionScanner (which will translate the manifest of extensions) kicks in.
Fixes #166836

@alexdima to move things along, I'll address that in another PR

Change look good. Thanks for doing it.


fix(patch-list): fixes index offset

fixes #21

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Black screen

I'm using Huawei mate 10 pro with android 9.1.
it's showing a black screen, I can only see the navigation bar

While a specific application is foreground, or for any?

any

Could you try to record your screen with screenrecord:
adb shell screenrecord /sdcard/file.mp4
adb pull /sdcard/file.mp4

Is the screen black on the video?

@rom1v Btw, there's no workaround for playing DRM content I suppose. Like Netflix?

How I am supposed to find the video nothing is happening

The issue seems to be from my phone because I noticed that sometimes when I screenrecord from phone it's also black unless I restart my phone. Thank you

How am I supposed to find the video? nothing is happening

You need to pass these parameters as command-line arguments, not write them in the console of scrcpy.
See #385.


Make stack a keyword argument

By default the stack will be 'default' and for other stacks you can pass in the --stack argument.
This makes it clearer what the argument means rather than an anonymous positional argument as it is currently.
Trello Card

👍. However, I think we need to revise all the Makefiles to accommodate this. If you're doing that, can you try and build in https://github.com/alphagov/govuk-docker/pull/37#pullrequestreview-257013246?

Yeah, the Makefile uses compose run so it isn't affected by this. I've added some tests for this now too.


update docs link

Update docs link on nuget.org to point to https://docs.microsoft.com/en-us/nuget/what-is-nuget

Some feedback after talking to @karann-msft: the goal of this change was to make the table of content easily accessible. However, this new "home" documentation page is a wall of text that is a little much on the eyes. We should find the right balance between the two.

I agree. At present this is the best page we have that doesn't assume if you are a package author or a consumer while giving you access to a ToC. I know we have a work item to make this page less text-heavy and concise.


Style: revert to usual theme

We can merge this when we feel ready, perhaps Sep. 1.

Superseded by #68


Adding existing account to the account list: incorrect password input is not defined in the error description and doesn't give password recovery suggestion

Description:
Adding existing account to the account list: incorrect password input doesn't identify an error of incorrect password and doesn't give password recovery suggestion
Steps to reproduce:

Go to Alby Extension

Click on "Add a new account"

Input correct email

Input incorrect password

only error notification of existing account appears:

Suggestion:
Identify an error - wrong password for existing email
Add "password recovery" link
Alby information
Alby Version: [v1.13.0]
Alby installed through Google Chrome
Device information:
OS: [macOS Monterey 12.0.1 ]

Browser [chrome]
 Browser Version [Chrome Version 103.0.5060.114]
Are you working on this issue?
No

Does this duplicate #1182 ?

#1182 happens when we are installing Alby and trying to log in with existing email , this one is for when Alby is already installed and we are trying to log in. And the errors are different - in #1182 is no notification at all, here it is, but not defined as incorrect email and no link for password recovery which we have now

this is now done, can you check it again.

@bumi yes, works fine. Closing this.


Remove name nodes from the schema and the C++ indexer [phab:D1482]

Created by zarko at 2017-04-03 20:24:45:
See #1891. This diff also eliminates ref/queries edges to
macros that don't exist, since those were represented
exclusively as names.
This change puts tnominal nodes in a funny place.
In the fullness of time I expect we'll replace them with
link names (with no additional hops). Note that the
pipeline and serving infrastructure do not currently
indirect through name nodes.

schroederc accepted this revision at 2017-04-04 22:35:49

zarko closed via commit 37d4ccabc2340492fcee1eca315e544f06c2153f at 2017-04-04 22:39:13


Radar chart - incorrect values render

used https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.3.0/Chart.bundle.js
var data = {
    labels: ["Eating", "Drinking", "Sleeping"],
    datasets: [
        {
            label: "My First dataset",
            backgroundColor: "rgba(179,181,198,0.2)",
            borderColor: "rgba(179,181,198,1)",
            data: [15, 10, 10]
        },
        {
            label: "My Second dataset",
            backgroundColor: "rgba(255,99,132,0.2)",
            borderColor: "rgba(255,99,132,1)",
            data: [10, 17, 11]
        }
    ]
};

var myRadarChart = new Chart(ctx, {
    type: 'radar',
    data: data
});

render result attached

The chart looks correct, but I guess you refer to the vertical blue line (1st dataset)? If so, maybe you can try to change your scale ticks.min (or beginAtZero):
var myRadarChart = new Chart(ctx, {
    type: 'radar',
    data: data,
    options: {
        scale: {
            ticks: {
                min: 0
            }
        }
    }
});

Documentation: http://www.chartjs.org/docs/#scales-linear-scale

It wasn't clear for me, and I thought that this is a bug. Thank you very much for support!


Move Fluo Recipes documentation to website

Created template and navbar

In the menu on the left Accumulo Export Queue was a bit wide. Maybe this could be shortened to Accumulo Export

Sounds good to me.  Pushed another commit with this change.


Marker position not correct after wrapper width changed

In case I change the wrapper width the marker moves to the right, the map not moves at all which results in an improper position of the marker and it does not fix itself after window resize or so. This also appears to happen on the examples you provided. Change the wrapper width to e.g. 90% or a fixed pixel value will cause this. However, resizing the window and therefor the div that holds the map always works properly. I already tried to re-add all markers, re-render, call "resize" onto the googlemap itself without any success. Do you have an quick idea in mind how to solve this? E.g. detect the width (or height) is changed, then proceed like if its a window resize.
In my case I use the map as part of a website with a sidebar that is usually collapsed. If it is open, the main content area that holds the map will become lesser wide and the markers are moving to the side.

@7bp:
About your first problem:

In case I change the wrapper width the marker moves to the right

This has been fixed in 0.34., PR #530
About the other one:

Do you have an quick idea in mind how to solve this? E.g. detect the width (or height) is changed, then proceed like if its a window resize.

I believe this code will work for you:
const getMapBounds = (map, maps, locations) => {
  const bounds = new maps.LatLngBounds();

  locations.forEach((location) => {
    bounds.extend(
      new maps.LatLng(location.latitude, location.longitude),
    );
  });
  return bounds;
};

const bindResizeListener = (map, maps, bounds) => {
  maps.event.addDomListenerOnce(map, 'idle', () => {
    maps.event.addDomListener(window, 'resize', () => {
      map.fitBounds(bounds);
    });
  });
};

const apiIsLoaded = (map, maps, locations) => {
  if (map) {
    const bounds = getMapBounds(map, maps, locations);
    map.fitBounds(bounds);
    bindResizeListener(map, maps, bounds);
  }
};

const GoogleMap = props => (
  <GoogleMapReact
    zoom={props.zoom}
    center={props.center}
    bootstrapURLKeys={{
      key: [YOUR_KEY],
      language: 'en',
    }}
    yesIWantToUseGoogleMapApiInternals
    onGoogleApiLoaded={({ map, maps }) => apiIsLoaded(map, maps, props.locations)}
  >
    {props.children}
  </GoogleMapReact>
);

Thanks a lot.

@7bp Did it work? We will be adding the resizable option to the map soon, so we don't have to write all of this code by ourselves, keep in touch for that.

The update solves most of my issues. The map bounds adjust fine on load and window resize. However, I wish there would be an event for the map container resize, e.g. to maintain the map center position.
on map-container resize(map, lastCenter) {
  map.setCenter(lastCenter)
}

Thanks @7bp, how would you think we could improve the documentation to make it clearer?


RHIDP-2109: Doc procedure for operator app-config.yaml configMap

Description:

Creates an assembly for adding a custom app config to OCP
Specifies that the existing procedure is for the Helm chart method
Resolves #191 submitted by @pfeifferj
Specifies that the existing procedure in the Admin guide is for the Operator.
Includes both procedures in the new assembly

Versions:
1.1+
Jira link:
https://issues.redhat.com/browse/RHIDP-2109
https://issues.redhat.com/browse/RHIDP-2365
Preview link:
https://redhat-developer.github.io/red-hat-developers-documentation-rhdh/pr-228/getting-started-rhdh/#assembly-add-custom-app-file-openshift_rhdh-getting-started
Sections 3.1, 3.1.1, and 3.1.2
Reviews:
SME: @coreydaley @gazarenkov @rm3l
QE: @gustavolira
Peer review: TBA

I couldn't find it in this PR, but it also looks like the link in "3.1.2. Adding a custom application configuration file to OpenShift Container Platform using the Operator" is giving a 404 error

@abrennan89 When I reviewed another PR recently, I noticed that all of the cross-title links in the previews were 404ing but working in prod. Don't know what that's about, but will ensure all links work in Pantheon before publishing.

/cherrypick 1.1.x


feat: design changes - open source page

repo cleaned up:

SDK sections removed

connections to router from pages folder removed


fix: return eachMessage promise result in kafkajs wrapper

Fix for https://github.com/epsagon/epsagon-node/issues/382
the promise result should be returned.

:tada: This PR is included in version 1.23.3 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


SPGo Can't Authenticate in VSCode October 2019 Release

Hi,
After updating VSCode to version 1.40 (October 2019 release), I am unable to authenticate my SharePoint credentials. For example, when trying to populate workspace or publish files, I am prompted for credentials, but they are unable to be verified so nothing happens. If I try again, I am prompted for credentials again, but the issue persists.
I am able to use SPGo with no problem after reverting back to VSCode version 1.39.2 (September 2019 release).
This problem is occurring on a Windows 10 system, with VSCode version 1.40.

Hello @crayolakat - Thanks for reaching out. I have a couple questions for you below to help me troubleshoot this issue.

do you see any errors in the SPGo output window?
Can you post your spgo.json file? (Feel free to 'xxx' out company details in the URL)
What kind of SharePoint server are you working with (on prem, SPO), and what method of authentication are you using?

I don't see any errors in the SPGo output window. The "Populating workspace" or "Publishing file" prompts will spin in the output window for 1-2 seconds, then disappear
My spgo.json file:
{
"sourceDirectory": "src",
"sharePointSiteUrl": "https://xxx.sharepoint.com/teams/xxx/xxx/xxx",
"publishingScope": "Major",
"authenticationType": "Digest",
"remoteFolders": [
"SiteAssets/**/*",
"SitePages/**/*",
"_catalogs/masterpage"
]
}
I am working with SharePoint Online, and the authentication goes through Microsoft 365.

Thank you!

@crayolakat I am still unable to reproduce this locally. Can you help me with a few more questions:

I would like to see the logs from opening SPGo, logging in, and finally issuing the failed command? You can just close and reopen VSCode so the logs are minimum sized.
I have seen this error from before when a SharePoint site is misspelled. I doubt there is a misspelling, but are there any special characters in the SharePoint URL?
I see that you have Office365. Do you use Modern/Digest authentication, or some other method such as App Password?

See SPGo output log below. I have issued a failed Populate Workspace command:

SPGo enabled.
================================     ERROR     ================================
Error: write EPROTO<PHONE_NUMBER>:error:100000f0:SSL routines:OPENSSL_internal:UNSUPPORTED_PROTOCOL:../../third_party/boringssl/src/ssl/handshake_client.cc:568:
Error Detail:
----------------------
{"name":"RequestError","message":"Error: write EPROTO<PHONE_NUMBER>:error:100000f0:SSL routines:OPENSSL_internal:UNSUPPORTED_PROTOCOL:../../third_party/boringssl/src/ssl/handshake_client.cc:568:\n","cause":{"errno":"EPROTO","code":"EPROTO","syscall":"write"},"error":{"errno":"EPROTO","code":"EPROTO","syscall":"write"},"options":{"body":"\n  <s:Envelope xmlns:s=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:a=\"http://www.w3.org/2005/08/addressing\" xmlns:u=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\">\n    <s:Header>\n      <a:Action s:mustUnderstand=\"1\">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue</a:Action>\n      <a:ReplyTo>\n        <a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>\n      </a:ReplyTo>\n      <a:To s:mustUnderstand=\"1\">https://msauth.xxx.com/adfs/services/trust/13/usernamemixed</a:To>\n      <o:Security s:mustUnderstand=\"1\" xmlns:o=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\">\n        <o:UsernameToken u:Id=\"uuid-7b105801-44ac-4da7-aa69-a87f9db37299-1\">\n          <o:Username>xxx@xxx.com</o:Username>\n          <o:Password Type=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText\">xxx</o:Password>\n        </o:UsernameToken>\n      </o:Security>\n    </s:Header>\n    <s:Body>\n      <trust:RequestSecurityToken xmlns:trust=\"http://docs.oasis-open.org/ws-sx/ws-trust/200512\">\n        <wsp:AppliesTo xmlns:wsp=\"http://schemas.xmlsoap.org/ws/2004/09/policy\">\n          <wsa:EndpointReference xmlns:wsa=\"http://www.w3.org/2005/08/addressing\">\n            <wsa:Address>urn:federation:MicrosoftOnline</wsa:Address>\n          </wsa:EndpointReference>\n        </wsp:AppliesTo>\n        <trust:KeyType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Bearer</trust:KeyType>\n        <trust:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Issue</trust:RequestType>\n      </trust:RequestSecurityToken>\n    </s:Body>\n  </s:Envelope>\n","strictSSL":false,"simple":false,"headers":{"Content-Length":1701,"Content-Type":"application/soap+xml; charset=utf-8"},"uri":"https://msauth.xxx.com/adfs/services/trust/13/usernamemixed","method":"POST","resolveWithFullResponse":false,"transform2xxOnly":false}}
===============================================================================

There are no special characters in the SharePoint URL

We use Digest authentication

Thank you!

In the above output log, the follow error occurred after the Populate Workspace command prompted me to log into SharePoint

@crayolakat I believe this issue is related to how node/VSCode is negotiating TLS/SSL with your SharePoint instance.
Before when we have had SSL support issues with SPGo in VSCode, the solution has been to set the proxy property to off. You can do this by navigating to Files -> Preferences -> Settings, and then typing HTTP: Proxy Support into the search box at the top, and then selecting off from the dropdown.  You may need to restart VSCode for this to take full effect.
please let me know if this works.

@chrishasz This did not work. I am still receiving the same error in console

Issue is not longer present with SPGo version 1.6.0 and VSCode version 1.42.0. Closing issue. Thank you!!

I think this issue is re-present with latest version of VSCode and an ADFS authentication. I enter my username and password when asked, using domain\username conventions, and it just drops me back into the workspace without authenticating. SPGo problem or SharePoint server policy problem? I unfortunately have nothing to show for the extension output as nothing's showing up in the logs.

I have been experiencing a recurring authentication issue when trying to complete the workspace. When I enter the credentials, the message that is displayed to me is: ‘Invalid user credentials. Please reset your credentials through the command menu and try again.’ This same message appears when I attempt to reset the credentials with SPGo: Reset Credentials.
I look forward to your collaboration.
Thank you.


Adding an Endcall button to the Controls Toolbar

how would i approach adding this control? id assume its a standard button, but i cant find anything in the docs about it.

Hi @mattwebdev, thanks for your interest in opentok-react!
That depends what you mean by 'Endcall'. Would you like to disconnect the session or stop publishing to the session while keeping the session connected? Remaining connected to the session allows the user to continue viewing other people's videos.
To unpublish your video but remain connected, use the following example. The key thing to note is the OTPublisher component is completely unmounted, triggering session.unpublish() in the process:
class App extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      isPublishing: true
    };
  }

  togglePublish = () => {
    this.setState({ isPublishing: !this.state.isPublishing });
  };

  render() {
    const { isPublishing } = this.state;
    return (
      <OTSession
        apiKey={this.props.apiKey}
        sessionId={this.props.sessionId}
        token={this.props.token}
      >

          <button onClick={this.togglePublish}>{isPublishing ? 'Stop' : 'Start'} Publishing</button>

        {isPublishing ? <OTPublisher /> : null}
      </OTSession>
    );
  }
}

You could do the same with OTSession, don't render it at all after the End Call button is pressed, but I appreciate that might be undesirable if a lot of the UI within OTSession needs to remain on screen even after ending the call. If you need to disconnect but keep OTSession on the screen, you could do this:
class App extends React.Component {
  endCall = () => {
    this.otSession.destroySession();
  };

  render() {
    return (
      <OTSession
        apiKey={this.props.apiKey}
        sessionId={this.props.sessionId}
        token={this.props.token}
        ref={instance => (this.otSession = instance)}
      >

          <button onClick={this.endCall}>End Call</button>

        <OTPublisher />
      </OTSession>
    );
  }
}

This gets the instance of the OTSession component and invokes an undocumented destroySession() function. The problem with this is there's no convenient way to start the call again. You will have make sure OTSession gets remounted, because that's where the connect logic is.
I think I'll make this use case a little easier in the future.

Thanks for your help! i will give this a shot and see.

that absolutely worked!
thanks!


Combine rustfmt's stdin based mode of operation with cargo-fmt's ability to infer the rust edition

This is probably asking too much but it'd be nice if cargo-fmt could support reading a file from stdin and putting formatted output on stdout like rustfmt does. With this there'd be no real need to specify rustfmt --edition <edition>.
The use case is a linting tool like ale which runs rustfmt as
/bin/sh -c rustfmt < ${path_to_file_in_tmpdir} . It then takes this output and copies into the vim buffer. As far as I know ale doesn't support linters that modify files in place.
This currently doesn't work for files that use syntax from editions greater than 2015 (the default for rustfmt). It'd be nice not to have to hardcode a rust edition in my vim configuration and instead be able to point the config to cargo-fmt running in a "stdin mode", i.e:
/bin/sh -c cargo-fmt --stdin < ${path_to_file_in_tmpdir} . That way I can always adhere the project's edition specified in Cargo.toml as well as other configuration options specified in rustfmt.toml (assuming cargo-fmt adheres to the project's rustfmt.toml, I could be wrong about that).
I'd love to try to implement something like this if you all think it'd be valuable, but I understand if not. I can always see what I can do on the ale side of things to get this working.

Thanks for the detailed answer and your help! Looks like having rustfmt.toml in the repo and having the CWD be the root of the repo is good enough for now.
Looking forward to when #5071 lands 👍


[Snyk] Security upgrade alpine from 3.18.2 to 3.18.3

This PR was automatically created by Snyk using the credentials of a real user.Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.
Changes included in this PR

Dockerfile

We recommend upgrading to alpine:3.18.3, as this image has only 0 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.
Some of the most important vulnerabilities in your base image include:

Severity
Priority Score / 1000
Issue
Exploit Maturity

300
Improper Authentication SNYK-ALPINE318-OPENSSL-5776808
No Known Exploit

300
Improper Authentication SNYK-ALPINE318-OPENSSL-5776808
No Known Exploit

300
Inefficient Regular Expression Complexity SNYK-ALPINE318-OPENSSL-5788370
No Known Exploit

300
Inefficient Regular Expression Complexity SNYK-ALPINE318-OPENSSL-5788370
No Known Exploit

371
CVE-2023-3817 SNYK-ALPINE318-OPENSSL-5821142
No Known Exploit

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Inefficient Regular Expression Complexity

This is a duplicate pr of this one: https://github.com/newrelic/nri-kube-events/pull/267


REQUEST THE DATASETS

Congratulations on having your paper published at ICLR. I have a request: since I am also working in this area and find your work very impressive, I would like to use your experimental results for comparison. However, I am not sure what datasets you used. Could you please provide information about the datasets and settings related to violence and nudity?

That is, what is the dataset of the attack success rate

Hello,
The dataset we used is "unsafe-prompts4703.csv" in the "data" folder. You can find the settings we used in "InversePrompt.ipynb" under the sections "Find Problematic Prompts -- Nudity" and "Find Problematic Prompts -- Violence."
The attack success rate refers to the ability of inappropriate prompts to cause concept removal models to generate images with violent or nudity content.

Hello，
Thank you for your response. In order to reference your paper, may I directly use some of the experimental results contained within it? Besides proper citation, are there any additional considerations I should be aware of? I would greatly appreciate your guidance. Thank you once again.
---- Replied Message ----
| From | Chia-Yi @.> |
| Date | 07/05/2024 16:17 |
| To | chiayi-hsu/Ring-A-Bell @.> |
| Cc | fjh45 @.>,
Author @.> |
| Subject | Re: [chiayi-hsu/Ring-A-Bell] REQUEST THE DATASETS (Issue #3) |
Hello,
The dataset we used is "unsafe-prompts4703.csv" in the "data" folder. You can find the settings we used in "InversePrompt.ipynb" under the sections "Find Problematic Prompts -- Nudity" and "Find Problematic Prompts -- Violence."
The attack success rate refers to the ability of inappropriate prompts to cause concept removal models to generate images with violent or nudity content.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Hello,
It's fine to reference the experimental results in your paper if you think the settings are appropriate for your comparisons.
There are no other considerations aside from proper citation.
Thank you


Unable to use MPS device

System Info
Hello, I am unable to use the mps backend with accelerate anymore (it used to work)
- `Accelerate` version: 0.15.0
- Platform: macOS-12.5.1-arm64-arm-64bit
- Python version: 3.10.8
- Numpy version: 1.24.1
- PyTorch version (GPU?): 1.13.1 (False)
- `Accelerate` default config:
        - compute_environment: LOCAL_MACHINE
        - distributed_type: MPS
        - mixed_precision: no
        - use_cpu: False
        - dynamo_backend: NO
        - num_processes: 1
        - machine_rank: 0
        - num_machines: 1
        - gpu_ids: None
        - main_process_ip: None
        - main_process_port: None
        - rdzv_backend: static
        - same_network: True
        - main_training_function: main
        - deepspeed_config: {}
        - fsdp_config: {}
        - megatron_lm_config: {}
        - downcast_bf16: no
        - tpu_name: None
        - tpu_zone: None
        - command_file: None
        - commands: None

After configuring accelerate, if I run:
from accelerate import Accelerator
a = Accelerator()
a.device
>> device(type='cpu')

I was expecting that device would be torch.device("mps") but no.
Is there a wat to force the device into the accelerator?

Hello @tcapelle, can you refer to the discussion in #998 and let us know if that solves the issue

Thanks @pacman100 , actually using the launcher works. But I want to be able to use accelerate interactively in the notebook, without the launcher.
We are also using accelerate in the new fastai course and it does not work on a Mac GPU as we are running the code cell by cell.
Is there a workaround to tell the accelerator to use the device mps?

@tcapelle do you happen to know the last time it worked successfully for you prior to v0.15?

It's fixed in dev

Yep! #1024 set the right env after the switch, great investigating!


Remove hardcoded VSync

I need to remove this, I added because in 3.5.0 I had a bad tearing with direct draw.

fixed by https://github.com/ericoporto/rellax/commit/9c15f3a46102b524efdbbf292ef1b497784bfc24


Enable backend_cleanup Celery task to delete old task results

Needs packit-service/deployment#107

so I'd suggest calling the variable $CELERY_COMMAND

Good suggestion, I will change it here and in second PR as well.

Just to be sure: We don't need to configure the beat by setting the app.conf.beat_schedule? We just need to set the app.conf.result_expires and that will take care of the scheduling?

It should be run automatically (https://docs.celeryproject.org/en/latest/userguide/configuration.html#result-expires), when I was trying it locally with this changes, it showed:
beat                | [2020-07-16 10:23:56,857: DEBUG/MainProcess] Current schedule:
beat                | <ScheduleEntry: celery.backend_cleanup celery.backend_cleanup() <crontab: 0 4 * * * (m/h/d/dM/MY)>

I think the change in deployment repo has to be deployed at first since now there is missing CELERY_COMMAND env var in worker

Aha, OK, then I'd say let's default the CELERY_COMMAND to "worker".
I don't remember why we were always explicitly setting it in the code where you took it from and I don't think we have to do it that way.

To do that in bash, you can use this syntax.

@jpopelka thanks for helping, changed


refactor: fix cargo clippy code, add cargo clippy check in CI scripts and upgrade rust toolchain version in CI scripts.

… and upgrade rust toolchain version in CI scripts.

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

[x] N
[ ] Y

refactor: fix cargo clippy code with the cargo clippy autofix capability, add cargo clippy check in CI scripts and upgrade rust toolchain version in CI scripts.

2. What is the scope of this PR (e.g. component or file name):

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[x] Other

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

[x] N
[ ] Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

[ ] Unit test
[ ] Integration test
[ ] Benchmark (add benchmark stats below)
[ ] Manual test (add detailed scripts or steps below)
[x] Other

6. Release note

Please refer to Release Notes Language Style Guide to write a quality release note.
None

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 90.562%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1612

Relevant Lines:
1780

💛  - Coveralls


Add command validate to check for parse errors

Adds a command validate to check for parse errors #31 #55
Running command dunner validate will check for any parse errors and warnings. If there are any errors, it fails the cmd. If not it finishes by listing any warnings if present.
Example:
$ dunner validate
ERRO[2019-03-22 17:15:56] dunner: [stats] Image repository name cannot be empty

Please let me know if there are any other validations for configs to be included.

@ayushjn20 You're right, We need to look for all kind of other validations. I'll try add the ones you suggested.

Is there something similar to Joi for Golang?

Can we use https://github.com/go-playground/validator?
See https://github.com/go-playground/validator/blob/v9/_examples/simple/main.go

I gave a shot at the go-playground/validator package. This is how it would look:
type Task struct {
	Name    string   `yaml:"name"`
	Image   string   `yaml:"image" validate:"required"`
	SubDir  string   `yaml:"dir"`
	Command []string `yaml:"command" validate:"required,gt=0,dive,required"`
	Envs    []string `yaml:"envs"`
	Mounts  []string `yaml:"mounts"`
	Args    []string `yaml:"args"`
}

type Configs struct {
	Tasks map[string][]Task `validate:"required,gt=0,dive,keys,required,endkeys,required,gt=0,dive,required"`
}

func (configs *Configs) Validate() ([]error) {
	var errs []error
	err := validator.New().Struct(configs)
	if (err != nil) {
		if _, ok := err.(*validator.InvalidValidationError); ok {
			errs = append(errs, err)
		} else {
			for _, e := range err.(validator.ValidationErrors) {
				errs = append(errs, fmt.Errorf("dunner: Validation for field '%s' failed on %s tag", e.Field(), e.Tag()))
			}
		}
	}
	return errs
}

I think it can get complicated and requires to understand the DSL defined by library.
We cannot differentiate warnings and errors.
Error messages are not easy to be made user-friendly. The above code would give an error message like: dunner: Validation for field 'Command' failed on gt tag
To give more appropriate error message, we'll have to use translations like this: https://github.com/Aptomi/k8s-app-engine/blob/master/pkg/lang/validation.go#L98

Advantage is that messages can be uniform and easy to add more validations. I'll dig up more on if its worth it or probably write a custom validator.
@agentmilindu Let me know if you have any thoughts on this.

@apoorvam

https://www.slideshare.net/surajssd009005/jsonschema-with-golang
https://stackoverflow.com/a/53230568/1190184

Update:

dunner validate checks for any parse errors and validation errors. If there are any, it fails with non-zero exit code.
Same validation is performed before dunner do <task> also.
If any required fields are missing/empty, it gives error as below. It prefixes each error with task name so its easy to track error.

task 'stats': image is a required field

In case of mount dir, it fails if its not in right format. Or if  directory is not present in the host machine.

$ dunner validate
Validation failed for following errors:
task 'test': mount directory '/tmp/sample:/tmp' is invalid. Check format is '<valid_src_dir>:<valid_dest_dir>:<mode>' and has right permission level

Added framework for add custom validations along with required context info.

Task is present or not when called as @taskName in a step of some other task.
Sufficient number of arguments passed when one task is used as step for another task.

Above two validations should be added after this change to use follow is implemented. Else it is just redundant. Will make it a part of new issue.
@agentmilindu @ayushjn20 Please review.


Thanos Query Frontend - 1 month dataset Dashboard "Bad Gateway"

Thanos, Prometheus and Golang version used: 0.23.1 & go1.16.8

Object Storage Provider: Azure
What happened: Ran a large dashboard retrieving metrics over 1 month. Got a bad gateway error.
What you expected to happen: To show the dashboard metrics
How to reproduce it (as minimally and precisely as possible): Just open dashboard that queries 1 month of metrics
Full logs to relevant components:

Anything else we need to know:

64GB mem and still bad gateway, probably need to try containers

I gave the VM 64 cores and 128GB memory and it seems to load. I guess I need to re-deploy everything in containers if I have such huge requirements to load 1 dashboard every month, as everything else loads fine with 2 core 8GB memory.

We're also seeing this as well, for some of our more computationally expensive queries. They are all being terminated in Grafana with 502s right at the 30s mark. Does the Query Frontend have a hard-coded timeout of 30 seconds? I found this timeout for ThanosQueryRangeRequest but cannot yet find where it is actually used.

We're also seeing this as well, for some of our more computationally expensive queries. They are all being terminated in Grafana with 502s right at the 30s mark. Does the Query Frontend have a hard-coded timeout of 30 seconds? I found this timeout for ThanosQueryRangeRequest but cannot yet find where it is actually used.
EDIT: We were able to narrow this down to the dataproxy.timeout setting within Grafana. It was defaulted to 30s and was causing our datasource proxy requests to time out after 30s despite the upstream components having longer timeouts set. Maybe this will help someone else with a similar set up.

This was the solution, wow was it a long journey. I wish someone picked up on it sooner!


Add mappings for inventory-related

Is clear really right here? Not remove?
Clear suggest well, everything being removed.

I named it clear just because it is used by ClearCommand.
remove looks better.


⚠ GitLab Server has degraded performance

In 73ad4cb, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 6925 ms

Resolved: GitLab Server performance has improved in 83ba573.


Deep view unsupported for &[u8]

This works:
spec fn test(xs : &[u8]) -> Seq<u8> {
    xs.view()
}

but this doesn't:
spec fn test(xs : &[u8]) -> Seq<u8> {
    xs.deep_view()
}

as it returns the error
  ^^^^^^^^^ method cannot be called on `&'a [u8]` due to unsatisfied trait bounds

   = note: the following trait bounds were not satisfied:
           `[u8]: std::marker::Sized`
           which is required by `&[u8]: vstd::view::DeepView`
           `[u8]: vstd::view::DeepView`
           which is required by `&[u8]: vstd::view::DeepView`

Is this simply a matter of adding the function to SliceAdditionalSpecFns?

Adding this to source/vstd/view.rs works:
modified   source/vstd/view.rs
@@ -1,4 +1,6 @@
 #[allow(unused_imports)]
+use crate::prelude::*;
+#[allow(unused_imports)]
 use builtin::*;
 #[allow(unused_imports)]
 use builtin_macros::*;
@@ -40,6 +42,16 @@ impl<A: DeepView> DeepView for &A {
     }
 }

+impl<T: DeepView> DeepView for [T] {
+    type V = Seq<T::V>;
+
+    #[verifier::inline]
+    open spec fn deep_view(&self) -> Self::V {
+        let v = self.view();
+        Seq::new(v.len(), |i: int| v[i].deep_view())
+    }
+}
+
 #[cfg(feature = "alloc")]
 impl<A: View> View for alloc::boxed::Box<A> {
     type V = A::V;

@jaybosamiya Thanks!  I turned this into pull request https://github.com/verus-lang/verus/pull/1078 .

Implemented by https://github.com/verus-lang/verus/pull/1078


Stopping the text fade from touching the shadow on tabs

💬 Description
We have a shadow on tabs when you are able to scroll to indicate that there are more, the fade for a tab name clashes with it and makes things look a bit nasty. This PR just adds a z-index to the shadow so it is always about the fade, and not part of it.
✅ Checklist

[ ] Tests written
[ ] Browser tested
[ ] Added to documentation
[ ] Added to storybook

 A vein in Peaks' forehead will explode if the fade continues to mess with the shadow on tabs


Add int64 types

Changes
Supports #11

Add int64 and uint64 support

Tests

pytest tests

Closing in favor of #12


Release v0.0.3

Given we are having more users in this repo. It would be nice to have the latest code in the
pip install project-lighter without adding the --pre flag.

Alright let's merge https://github.com/project-lighter/lighter/pull/111 and we can do that

Waiting on #121 before releasing v0.0.3

@ibro45 I was mistaken, its v0.0.2 now.
Released!! Congrats


More DB Options

Some people might struggle using anything other than MySQL so if there was integrations for the following, I could see it helping others adopt more databases within their projects.

MongoDB
H2
Redis
SQLite

Thanks for the suggestion, will definitely look into implementing these when I have time to work on this again. Busy with another project rn (placeholderapi 3).


(HTTP code 404) unexpected - {"message":"repository local-library/redis not found: does not exist or no pull access"}

Thanks for the error - this has already been reported and thus a dupe of a previous issue; closing in favor of previous issue


Does not play nice with classes

I just wanted to raise the issue. I created a class that I mount in cherryp. Unluckily the decorators do not play nice with the classes.
Do you know how to get around that?
Example:
`class FBBot(object):
def init(self):
self.config = {}
@cherrypy.expose()
def webhook(self, *args, **kwargs):

    try:
        if cherrypy.request.method == "GET" and 'hub.verify_token' in kwargs and kwargs['hub.verify_token'] == VERIFY_TOKEN:
            return int(kwargs['hub.challenge'])
    except ValueError:
         return 'Invalid verification token'

    cl = cherrypy.request.headers['Content-Length']
    payload = cherrypy.request.body.read(int(cl)).decode()

    print("FBBOT + {}".format(payload))
    page.handle_webhook(payload)
    return 'ok'

@page.handle_message
def message_handler(self, event):
    """:type event: fbmq.Event"""
    sender_id = event.sender_id
    message = event.message_text`

when the message_handler function is called, the self is creating a problem:

2017-10-26T14:55:38.120444+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/cherrypy/_cprequest.py", line 670, in respond
2017-10-26T14:55:38.120445+00:00 app[web.1]:     response.body = self.handler()
2017-10-26T14:55:38.120445+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/cherrypy/lib/encoding.py", line 220, in call
2017-10-26T14:55:38.120446+00:00 app[web.1]:     self.body = self.oldhandler(*args, **kwargs)
2017-10-26T14:55:38.120447+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 60, in call
2017-10-26T14:55:38.120448+00:00 app[web.1]:     return self.callable(*self.args, **self.kwargs)
2017-10-26T14:55:38.120448+00:00 app[web.1]:   File "/app/random_match/bot/facebook.py", line 44, in webhook
2017-10-26T14:55:38.120449+00:00 app[web.1]:     page.handle_webhook(payload,message=self.message_handler)
2017-10-26T14:55:38.120449+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/fbmq/fbmq.py", line 219, in handle_webhook
2017-10-26T14:55:38.120450+00:00 app[web.1]:     self._call_handler('message', message, event)
2017-10-26T14:55:38.120451+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/fbmq/fbmq.py", line 183, in _call_handler
2017-10-26T14:55:38.120451+00:00 app[web.1]:     self._webhook_handlers[name](*args, **kwargs)
2017-10-26T14:55:38.120452+00:00 app[web.1]: TypeError: message_handler() missing 1 required positional argument: 'event'

I'd like to add a related concern to this issue:
I'm trying to build an abstraction around the core functionality of my bot (initialization, sending messages, ...) and the only supported way to add routing definitions currently is to use decorators. What I do now is to replicate what the decorators do internally in my abstraction, so for example to add a plaintext message handler I add the webhook handler for messages into the protected _webhook_handlers field of a page (self.page._webhook_handlers['message'] = my_callback), which obviously causes my IDE to complain about access to a protected member of the page object.
It would be nice to have a method exposed that allows us to add handlers to the internal webhook_handlers, something like:
def add_handler(scope, callback): ...
I don't know how active the development is on this lib, so if you respond to this issue then I'd be willing to make a PR :smile:


Allow to pass options globally to podman via a configuration file

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:
/kind bug

/kind feature
Description
It would be really great to get a way to have a configuration file for podman, allowing to set global options for its call. Having this capacity would allow people to get consistent runs of podman across different ways to actually launch it (being by hand, or scripted).
We might use the currently existing "libpod.conf" file, and maybe add sections for podman subcommands (run, exec, etc) so that we can get a really precise way to pass global, fixed options.
An example of options being "useful" for now is the "--security-opt". An example of configuration would be:
run_options = ["--security-opt label=disabled", "some other option", "and so on"]
That would confine the options to the "run" subcommand only.
Steps to reproduce the issue:

Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Output of podman version:
Not a bug

Output of podman info:
Not a bug

Additional environment details (AWS, VirtualBox, physical, etc.):

@rhatdan I'm fine with this, but I believe you previously expressed opposition to a podman config file?

my fear of this is the proliferations of config files.  When we merge libpod into CRI-O, Users would be instructed to edit libpod.conf, cri-o.com, storage,conf registries.conf ...
Also handling libpod.conf for users running rootless containers needs to be thought about.
Should libpod.conf have podman specific config options?
We have been using environment variables for this type of thing at least with podman build and buildah.
So I would not be against adding an environment variable to specify things like security-opt.
Specifying run options this way might get messy.

@rhatdan hello! well, an environment variable will most probably not serve my purpose :(. Although it seems nice and all, it won't work in some cases, especially:
migrating an existing docker script/stack/whatever making calls to docker CLI from multiple locations, being shell scripts, python scripts and the like, to podman (note: we have some kind of wrapper, but it would be hard to add podman-specifics, especially since docker security-opt takes ":" instead of podman "="). So a configuration file is probably the right way, and is far, far easier to deploy/maintain than some weird/ugly "if-then-else" lost in the wrapper code.
The iso-compatibility might be really important for end-users, and currently, we just don't have that:
As podman doesn't have a daemon, we have to get some global way to pass options to the different subcommands...

Docker switched over from the ":" to the "=" years ago, and only supports ":" for backwards compatabiltiy.  You should switch your scripts to use the "=",  Other then that our goal is to be fully compatable with the docker CLI.
Can you make a list of the options you want to pass?

Didn't know about the docker change - the examples I saw were all using the ":" - I didn't check the date. Good news then on that part :).
So, currently, we don't pass any option to docker, as the daemon is configured globally (selinux separation is not activated).
My goal is to get a 1:1 compatibility between our deploy using docker and using podman, at least as a first step.
It would be really, really helpful to get the capacity to set options in a configuration file, like we can do with the docker daemon.
The "issue" is, in order to get podman to run with the --security-opt label=disabled we currently need, we'd need to edit at least three projects:

kolla in order to inject the option in JSON files
at least that file in tripleo-heat-templates for the one-shot runs
and probably paunch in order to support that option that would be present in generated JSON file

If we could set the needed options (currently, only the --security-opt is needed, I don't know if we might need anything else) in a global configuration file like libpod.conf, that would really help us going forward with the current work, and avoid having to run a long process for the wrappers modifications right now.
As previously said, if podman wants a 1:1 compatibility with docker (and it looks like it's very close, nice job!), it really should have support for a configuration file, as this would mimic the daemon behaviour, at least regarding the consistent way to run containers.
Also, environment variables will probably not work in our case, as there are multiple ways to run podman/docker, from shell script to python subprocess, all wrapped in sudo calls...

I have been looking around and found that Podman's --config flag is a nop. I somehow interpret that the intention behind this flag is similar to what's being suggested in this issue, @rhatdan @mheon?

crio.conf currently has an selinux=true value inside of it.  I guess we could add a
label=true/false flag to libpod. and then wire it in.  We would need to also do
podman run --security-opt label:enabled  or some such to reverse the setting if disabled by default.

That would be great indeed. I know it's not really cool disabling selinux separation, but sometimes we don't have any choice - and when moving huge docker-based deploy things to podman, getting a real 1:1 compatibility, also with """defaults""" is a plus :).
Thank you for your understanding and time.

I'm really iffy on just putting this in libpod.conf - it's a flag for configuring things above libpod, and will affect no code in libpod itself.
@vrothberg --config was mainly intended for CI testing originally, but it seemed like it would be useful for cases like this, so I left the flag public. If it's not working, we should look into fixing that.

I still have no idea on fixing this.

@cjeanner Have you worked around the problems.  Is there anything we can do short of a podman.conf to solve this problem?

@rhatdan hello! well, we've added proper selinux configuration/labels/others to the affected containers/data, and it's working. Guess we don't need to push global config disabling selinux now :).
So on our side, no more needs on this field.

Thanks @cjeanner .  If you feel differently in the future, please reopen this issue or create a new one as works best for you.


Regional news reach

[ ] News sent to your main city-app should be for free.
[ ] Show the regional reach in the news history, when you press "Reach" (this is the reach in apps != main app)

The reach of the news sent to main city-app is not considered? what is the problem with it exactly?

Ok, you can ignore that part. I didn't know that solutionNewsItem.app_ids didn't include the main app.


Fix: Framework 'opus' not found

Bug Fix
Framework 'opus' not found bug

Change made

[x] Specified alternative opus_flutter_ios dependency that resolves the error

Link to dependency repository
Result
- Successful build of the application
- App runs on simulator

lgtm @leonardsangoroh 🥳


Issue when using withJavadocJar() in java task

Hi, I tried to update from gradle 7.6 to gradle 8.0 in an internal library and my build failed without really detailed information.
After several tries with uncommenting several parts of my build.gradle I could reduce the issue to using withJavadocJar() in the java task definition. My java task definition currently looks like this
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
withJavadocJar()
withSourcesJar()
}
While this is working with gradle 7.6 it does fail with gradle 8.0 but works again as soon as I uncomment the withJavadocJar() line.
Expected Behavior
The build is running without issues
Current Behavior
I get a sadly not really helpful error:
FAILURE: Build failed with an exception.

What went wrong:
'void org.gradle.api.internal.file.UnionFileTree.(java.lang.String, java.util.Collection)'

Context
Currently no update to gradle 8.0 is possible. This is not a big deal right now as everything is working fine with 7.6 but I wanted to clarify if there is an issue in the new version
Steps to Reproduce
You just need to take any project and add withJavadocJar() in the java task definition. Maybe I did something wrong but it worked like this with 7.6 and fails now

After having a deeper look into the stacktrace the solution was quite easy 🤦🏼♂ I just needed to update our currently used Lombok plugin (io.freefair.lombok)


Create a paragraph dealing specifically with empty sets

Hi,
My team is using the api-design doc as a guideline to build our APIs and we had some disagreements on how to deal with empty sets, I think the documentation could be more clear about this specific scenario.
This microsoft doc says that the proper response is 200 with the metadata and an empty set in the body, which I think is the way to do it as well, but the docs leave it up to interpretation, and this section makes it a little more confusing.
Regards
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: ad651d6a-f8d8-2050-e7a7-adbae7326112
Version Independent ID: 4fddd724-cabd-8623-7692-857088c1dccb
Content: API design guidance - Best practices for cloud applications
Content Source: docs/best-practices/api-design.md
Service: architecture-center
Sub-service: best-practice
GitHub Login: @dragon119
Microsoft Alias: pnp

Thanks for reporting - this issue is under review. This is a Microsoft Internal DevOps Bug ID # 408113

Paragraph added.


Web client networking issues for outgoing SSL connections

I migrated a legacy console app into the Azure Webjob. The app was automating an external website via web client (HttpWebRequest/HttpWebResponse manipulation using SSL connections via 443 port). The app does authentication (by sending proper Cookies in request header), form submits, file uploads etc. It's all done in a synchronous way (hanging thread to wait for the response).
The problem is that at some random point I'm getting disconnected from this external website only if I run the app on Azure.
If I run the exact same code (that was written using Azure Webjob SDK) as a Console App or Windows Service and it works fine.
If I run this in Kudu Console or as a WebJob it fails without any exceptions. The external website makes the cookies invalid somehow and disconnects the client.
I did request/response objects dumps on each call through the code and additional network tracing via App.config and it seems that everything's the same in terms of sending things over the wire across local and Azure Sandbox environments.
Why is this happening? I know it could be something specific but feel frustrated about it since it happens only on Azure Sandbox Environment. Maybe the default ServicePointManager settings are different from the local environments, or there's some proxy being involved on the requests, or something else.

I'm curious if you'd see the same when making the same requests using curl from Kudu console, to idolate from anything your console app might be doing.

I'll try to repeat that process using curl and let you know if I had anything like that.

Sorry for long reply. I repeated the whole process with curl and getting the same results. I'm getting logged out only on Azure Sandbox.

Interesting. So generally, you can curl down random other things, but it's failing just with this one server? Any chance you can share a specific URL that doesn't work? There must be something different about it.

Hmmm, it does seem reminiscent of this thread, which I'm not sure was quite resolved.

Hi David,
Yes basically:
If I curl from local machine or Azure VM it works fine.
If I curl from Azure kudu console it fails (getting logged out after some successful requests)
Here's the url. Initial requests are working fine.
https://www.ssllabs.com/ssltest/analyze.html?d=ecf-test.ilnb.uscourts.gov
If I can contact you directly by Email I could share all the steps to reproduce the issue with curl. I could not do that here for security reasons.
The topic you've mentioned is pretty similar though I do not receive any error messages from the web service.

If that's the URL, isn't the curl step to simply run curl https://www.ssllabs.com/ssltest/analyze.html?d=ecf-test.ilnb.uscourts.gov -o test.html from Kudu Console? Though I just tried that and it worked for me.

Sorry for the late reply. This is not the exact URL, there are some steps to reproduce that involve multiple requests in curl. I could make a screencast of how to reproduce this in two weeks or so. It would be better if I could contact you directly in some way. There are some privacy concerns. Is it possible?

@PShchegolevatykh it's best to open a support case so it can be discussed privately. Also, note that the issue here is not related to Kudu, but more likely to the sandbox environment under which both Kudu and web applications run.

@davidebbo Could you please point me to where I should open a support case for the sandbox environment issues? So I could close it here. I agree that's it must be related to the sandbox environment.

To open a new support case for a Web App, go to the Web App in Azure Portal, then choose New support request.
Also, for general (non-Kudu specific) discussions on Web Apps, you can use the forum.


Add "template" tag helper

Noticed we had an issue for this when merging another. Fixes #38.

Forgot about this one. I think we should merge!


Applied Visual Design Challenges

For the new curriculum update, we need to create the following new challenges under a new section called Applied Visual Design:

[ ] Create visual balance using the text-align property
[ ]  Align Text Left
[ ]  Align Text Right
[ ]  Center Text
[ ]  Justify Text
[ ]  Adjust the Width of an Element Using the Width Property
[ ]  Adjust the Height of an Element Using the Height Property
[ ]  Create a Visual Balance width and height property of an element (element initially exists out of balance among other elements).
[ ]  Adjust the Width of one Element Relative to Another Element
[ ]  Adjust the Height of one Element Relative to Another Element
[ ]  Create visual emphasis by using bold text
[ ]  Create visual emphasis by using underline text
[ ]  Create visual emphasis by using the italic property on text
[ ]  Create visual emphasis by using the strikethrough property
[ ]  Create visual emphasis by adjusting the background-color property of text and property of the foreground.
[ ]  Create visual emphasis by adjusting the size of a header versus a paragraph tag.
[ ]  Create visual emphasis by making an card like element stand out by adding a box-shadow.
[ ]  Create a Graphic Using CSS
[ ]  Learn how CSS Keyframes Work
[ ]  Create movement using CSS Animation
[ ]  Learn how Bezier Curves work
[ ]  Use a Bezier Curve to Move a Graphic
[ ]  Make Motion more Natural using a Bezier Curve
[ ]  Use CSS Animation to Change the Hover State of a Button
[ ]  Add a Box Shadow to an Element
[ ]  Use CSS animation to Raise a Card Element with a Box Shadow on Hover
[ ]  Increase the Opacity of an Element
[ ]  Change the Position of an Element on its Z Axis
[ ]  Use the box-shadow z-axis and Opacity together to Animate an Element
[ ]  Reuse a block of CSS class names to recreate an element over and over again with proper spacing in order to create pattern
[ ]  Use a CSS linear gradient to Create a Striped Element
[ ]  Create a gradual CSS Linear Gradient
[ ]  Use the CSS Transform Property to Scale an Element on Hover
[ ]  Use the CSS transform Property SkewX
[ ]  Use the CSS transform Property SkewY
[ ]  Create Proportionality by Sizing a Header Versus a Paragraph Tag.
[ ]  Create Rhythm with CSS animate Property
[ ]  Create Rhythm using the Infinity Property
[ ]  Use an the Infinity Property to Make a CSS Heart Beat with a Steady Rhythm
[ ]  Create a Varying Rhythm
[ ]  Use a Varying Rhythm to Make Stars Twinkle at Different Rates
[ ]  Observe unity by looking at sites like AprilZero. This is more of an exercise in understanding how all the different principles of design create unity.
[ ]  Create a Line Using the hr Element
[ ]  Create a more Complex Shape using CSS and HTML
[ ]  Create Visual Direction by Fading in an Element to the left.
[ ]  Use the CSS Transform Scale Property to Change the Size of an Element.
[ ]  Create Texture by Adding a Subtle Pattern as a Background Image
[ ]  Learn about Complimentary Colors
[ ]  Learn about Tertiary Colors
[ ]  Adjusting the Color of Various Elements to Complimentary Colors
[ ]  Adjust the Hue of a Color
[ ]  Adjust the Tone of a Color
[ ]  Learn the Importance of Ratios in Type
[ ]  Learn About Modular Type
[ ]  Apply Different Ratios to Type Using the font-size Property
[ ]  Create a Typographic Style Guide
[ ]  Set the value of h1 to 68px
[ ]  Set the value of h2 to 52px
[ ]  Set the value of h3 to 40px
[ ]  Set the value of h4 to 32px
[ ]  Set the value of h5 to 21px
[ ]  Set the value of h6 to 14px
[ ]  Set the value of Paragraph text to 16px
[ ]  Adjust the Color of an Anchor Tag
[ ]  Adjust the Hover State of an Anchor Tag
[ ]  Adjust the font-weight of header 1–5 tags.
[ ]  Adjust the line-height of a paragraph until the paragraph is properly spaces.
[ ]  Use the text-transform property to make text uppercase.
[ ]  Incorporate a Google Fonts Into your Header
[ ]  Assign a Google Font using CSS

Other propositions for this new section will be added as separate issues and given the Applied Visual Design Challenges Milestone.
These are still open to change. If you are interested in working on a specific one of these new challenges, please complete the following steps:

Leave a comment on this issue, with the challenge you are looking to work on and I will assign you.
Try and have a pull request opened with the new challenge within the next two weeks after you comment.

Feel free to contribute to these, and chat with us in the new AppliedVisualDesignChallenges chat room.

Closing in favour of https://github.com/FreeCodeCamp/CurriculumExpansion/issues/7

Hello guys, Anybody still post in here?

Hi @lawgotcode - anyone watching this repository will see your posts in here, even though it's a closed issue 😄 - let us know what you're looking to discuss. For this issue specifically, a lot of the challenges listed above were created in the curriculum expansion push and are running on beta.freecodecamp.com and getting QA'd by the community. If you want to propose a new challenge, I'd say to open a new issue with your thoughts 👍 Cheers!


Subreport

Goodmorning, this is not an issue but a question:
Is it possible to generate a subset of the report for a project version including only the differences between the last report generated for that version, or by having on the generated report only the rows selected by a condition provided? thank you in advance

No but you can generate a report comparing two versions


Rename sharding-proxy-transport module to shardingsphere-database-protocol

For #4594.

Pull Request Test Coverage Report for Build 2040

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 59.04%

Totals

Change from base Build 1024:
0.0%

Covered Lines:
12112

Relevant Lines:
20515

💛  - Coveralls


resource meraki_organizations_appliance_vpn_third_party_vpnpeers fails to create

upstream: https://github.com/cisco-open/terraform-provider-meraki/issues/80

resolved in the latest upstream release


Better to return tokenBindingId as cnf in the jwt token for client-request binding type

Is your suggestion related to an experience ? Please describe.
With this change, for the client-request token binding type, users will be able to obtain the tokenBindingId value they have sent in the token request. Though the JWT token returns a tokenBinding reference which is a hashed value, for this binding type, applications might be interested in knowing the value itself.
Describe the improvement
Return tokenBindingId as CNF in the jwt token for client-request binding type
Additional context

Being fixed with

https://github.com/wso2-extensions/identity-inbound-auth-oauth/pull/2352

Need to consider Introspection as well.


Py java debug

Please add a meaningful description for your change here

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

Test passed, trying again to make sure it's not flaky.

Run Java PreCommit

Timeout waiting for Python service startup after 28.677 seconds.

Run Java PreCommit


Use of angle brackets around file names for include statements

Would you like to replace any double quotes by angle brackets around file names for include statements?

No, please read C or C++ standard. Angle brackets are compiler-dependent and are not meant to be used for user's files.

I suggest to reconsider the consequences of the following wording from the section "16.2 Source file inclusion" in the standard specification for the programming language "C++".
…
The named source file is searched for in an implementation-defined manner. If this search is not supported, or if the search fails, the directive is reprocessed as if it read

#include <h-char-sequence> new-line
…

How do you think about to avoid "a duplicated file search" here?
Would you like to restrict the searched directories for header files of your software?

Yes, angle brackets are meant for "named sources" not filenames and as I said they are compiler-defined.

Why do I need to avoid that? There should be no such thing as duplicate files;
It is already restricted to the "ouzel" directory.

There are different opinions about the handling of the involved implementation-defined behaviour.

Will header files be also searched outside the specified include directories if double quotes are used for the discussed preprocessor statement?
Is there a speed difference measurable if a file is not found there and the search will be retried with "the angle brackets inclusion method"?

Can you please share those opinions? There is no rule that forces compilers to include files with angle brackets (named sources can be anything, even source downloaded from internet at compile-time). Of course, usually angle brackets will be faster, because it will search in the "-include" directories, but I care about cross-compiler support and following the standard more than tiny compiler speed optimizations.

How much do you care where the include files are safely stored for a software library?

What do you mean by "safely"? They are safely stored the "ouzel" subdirectory of the repository. What is the unsafe part about this?

I would generally prefer to exclude the potential for the inclusion of header files from unexpected directories. Can such a security detail become a bit more important occasionally?

Do you want to protect yourself against somebody creating files like CompilerConfig.h in the ouzel subdirectory of your project and messing it up (because that is almost impossible to happen unintentionally)?

It seems that I have got software development concerns in such a direction because of the potential confusion from inclusion of header from "local" and other "known" directories.
I find it important to be reasonably sure that the desired computations were really correct because it could be determined by the applied software build parameters that the used functions were actually derived from the expected source files. Can you follow this design concern?

Yes, I follow you, and the solution to your "problem" could be to move all the includes to the "ouzel" directory, so that you have to include "ouzel/core/CompilerConfig.h". This will make the filename conflict almost impossible.

How do you think about to achieve a bit more confidence that only appropriate parts of a software library (like "ouzel") were included in a specific application?

Actually, if you include only ouzel.h, then all the other header files will be search relatively to the ouzel.h. So, even if you create a file core/CompilerConfig.h in the root directory of your project, by including only ouzel.h in your source you are safe against filename conflicts.

Are there any risks that the local version of a "ouzel.h" (or related header file) from a project development directory will resolve to an inappropriate (perhaps outdated) variant while the revision in a "blessed" system directory provides a higher level of confidence?

If you are afraid of somebody creating ouzel.h in your local directory, then include it with angle brackets (#include <ouzel.h>) and you will be safe.

How will the situation evolve if only parts would be included from your software library?

Don't include parts of it, just include "ouzel.h" and everything will be fine.

Are there any plans to split the software library into more components?

Currently not.


Typo fix

Type of PR:

[ ] Bugfix
[ ] Feature
[ ] Code style update
[ ] Refactor
[ ] Build-related changes
[x] Documentation
[ ] Other, please describe:

Breaking changes:

[x] No
[ ] Yes

Details

Mentioned "this.morphMany" instead of "this.morphOne" in One-to-One (Polymorphic)

@SujithJr thank you so much for finding and fixing this! 🥇


Add localized resources to a variant group

If a storyboard localized for some language, it should be grouped into one variant group.

XcodeGen generates references same level.

expectation

VG1473702401 /* Main.storyboard */ = {
	isa = PBXVariantGroup;
	children = (
		FR3676338402 /* Base */,
	);
	name = Main.storyboard;
	sourceTree = "<group>";
};
VG2365450901 /* Main.strings */ = {
	isa = PBXVariantGroup;
	children = (
		FR7070045401 /* en */,
	);
	name = Main.strings;
	sourceTree = "<group>";
};

should be
VG1473702401 /* Main.storyboard */ = {
	isa = PBXVariantGroup;
	children = (
		FR3676338402 /* Base */,
		FR7070045401 /* en */,
	);
	name = Main.storyboard;
	sourceTree = "<group>";
};

fixed in #70


Docs: Add getting started draft

Checklist for this pull request

[x] I have read the guidelines for contributing.
[x] I have checked that my code additions did not fail tests.

Description
#41
This first draft outlines what we expect from the "Getting Started" document. It should tell what is Inkgd and easily guide users how to install this addon. Furthermore it'll point to the next section where it'll show a step by step tutorial on how to use this addon on a sample game.
This first draft is missing hyperlinks and images, but given that this is a draft and we want to put the information out there in the documentation to see how it looks, I think it's good enough for a commit. Further improvements will see adding images to guide users.

LGTM!


fix: avoid debug log on moons command

No test for the mini-moon because it looks like it's wrong. Looks like an off-by-one error was introduced in the refactor: it tells you the position the mini-moon was in yesterday.

You are just a couple of minutes faster than me.  Your PR was up while I was running local tests on mine and you pushed while I was confirming no NPE from the app :-)


When parsing tables in a PDF, if the text content contains line breaks, the extracted content will include spaces, which may cause the RAG application to fail in retrieving relevant content when answering questions.

Bug
When parsing tables in a PDF, if the text content contains line breaks, the extracted content will include spaces, which may cause the RAG application to fail in retrieving relevant content when answering questions.
Steps to reproduce
Original PDF content

Extracted content parsed through Docling
持股比 例 (%)

Parse code
reader = DoclingReader(export_type=DoclingReader.ExportType.JSON)
docs = reader.load_data(pdf_path)
node_parser = DoclingNodeParser()
nodes = node_parser.get_nodes_from_documents(docs)
for node in nodes:
    print(f"metadata：\n{node.metadata}")
    print(f"text：\n{node.text}")

Asking questions in RAG applications
持股比例

Docling version
2.8.3
Python version
3.12
PDF
disu.pdf

@tahitimoon That's correct, inside table cells, docling's pipeline currently can't resolve layout features such as intentional line breaks. Hence all table cell content is considered a plain string. We could only address this with a fundamentally new design of the table structure recognition model. We will announce future updates in the discussion section.