Cannot save fixes when using legacy config (eslintrc) and typescript-eslint

Hello, thank you for the great tool! 😀
I'm having trouble using the latest version (11.0.3) of eslint-interactive combined with legacy config (eslintrc) and typescript-eslint.
Problem Description
eslint-interactive recognizes lint errors, but does not write fixes (eslint-disable-next-line comments in my case) to the file system.
Read mode details in a reproduction repository:
https://github.com/uhyo/eslint-interactive-issue-364-repro
Additional Info

Issue does not occur for eslint-interactive@10.
Issue does not occur when using Flat Config.
Issue seems to only occur when @typescript-eslint/parser is involved. (other third-party parsers not tested, sorry)

Thank you for reporting! I could reproduce it. I will fix it.


android studio wrong

Yes unfortunately Jetbrains didn't updated their Android Studio with the latest SDK, so the theme is not compatible.


google app deploys fails on ruby-build for ruby-2.5.3

I was trying to deploy a rails application on google cloud app engine.
Every time when it tried to download a newer image, I got the following error:
Step #1: Step 2/14 : ARG ruby_version="ruby-2.5.3"
Step #1:  ---> Running in a169ac7246c1
Step #1: Removing intermediate container a169ac7246c1
Step #1:  ---> 603b43c65936
Step #1: Step 3/14 : RUN if [ ! -x ${RBENV_ROOT}/versions/${ruby_version}/bin/ruby ];     then       cd ${RBENV_ROOT}/plugins/ruby-build         && git pull         && rbenv install -s ${ruby_version}         && rbenv global ${ruby_version}         && rbenv rehash         && (bundle version > /dev/null 2>&1           || gem install bundler --version ${DEFAULT_BUNDLER_VERSION})         && rbenv rehash;     fi
Step #1:  ---> Running in 23bb6964edfc
Step #1: From https://github.com/sstephenson/ruby-build
Step #1:    d49b8a1..7193472  master     -> origin/master
Step #1:  * [new tag]         v20181106  -> v20181106
Step #1: Updating d49b8a1..7193472
Step #1:  share/ruby-build/truffleruby-1.0.0-rc9 | 7 +++++++
Step #1:  test/test_helper.bash                  | 5 ++++-
Step #1:  8 files changed, 30 insertions(+), 3 deletions(-)
Step #1:  create mode 100644 share/ruby-build/2.6.0-preview3
Step #1:  create mode 100644 share/ruby-build/jruby-<IP_ADDRESS>
Step #1:  create mode 100644 share/ruby-build/jruby-<IP_ADDRESS>
Step #1:  create mode 100644 share/ruby-build/truffleruby-1.0.0-rc8
Step #1:  create mode 100644 share/ruby-build/truffleruby-1.0.0-rc9
Step #1: ruby-build: definition not found: ruby-2.5.3
Step #1:
Step #1: See all available versions with `rbenv install --list'.
Step #1:
Step #1: If the version you need is missing, try upgrading ruby-build:
Step #1:
Step #1:   cd /opt/rbenv/plugins/ruby-build && git pull && cd -
Step #1: The command '/bin/sh -c if [ ! -x ${RBENV_ROOT}/versions/${ruby_version}/bin/ruby ];     then       cd ${RBENV_ROOT}/plugins/ruby-build         && git pull         && rbenv install -s ${ruby_version}         && rbenv global ${ruby_version}         && rbenv rehash         && (bundle version > /dev/null 2>&1           || gem install bundler --version ${DEFAULT_BUNDLER_VERSION})         && rbenv rehash;     fi' returned a non-zero code: 2
Finished Step #1
ERROR
ERROR: build step 1 "gcr.io/cloud-builders/docker@sha256:cd23a17ff8272a8c8ad48862f61bbdaad05932565a3fcdeaa0e9b6fc0cfd38dc" failed: exit status 2
Step #1:
Even though I installed rbenv as plugin, I could not upgrade ruby-build like the way in the error messages.

I also experienced this problem.
in

Step 2/14 : ARG ruby_version="ruby-2.5.3"

you should change to

Step 2/14 : ARG ruby_version="2.5.3"

if you define it in .ruby-version, just change it to "2.5.3"


Difficulties reproducing the results

Hello,
Thank you for your exciting work. I have been trying to reproduce the results of the method, but I was unsuccessful. I have run it on a single GPU because of my limited setup and followed the instructions according to the readme.  But after 30 epochs the results are still bad, do you have an idea to why this is the case?
Testing from FF-DF ... Len of data_loader= 219                                                                                Acc 0.4821 (~0.00)     |AUC 0.4614 (~0.10)     |EER 0.5286 (~0.10)     |AP 0.5142 (~0.11)
Testing from FF-NT ...                                                                                Len of data_loader= 219
|Test Loss 14.85385it/s]| Acc 0.4847 (~0.00)     |AUC 0.4335 (~0.11)     |EER 0.5360 (~0.11)     |AP 0.5005 (~0.11)
[3/4]Testing from FF-FS ...
Len of data_loader= 219                                                                                |Test Loss 1.436065it/s]|Acc 0.9536 (~0.00)     |AUC 0.9916 (~0.01)     |EER 0.0077 (~0.03)     |AP 0.9975 (~0.01)
[4/4]Testing from FF-F2F ...
Len of data_loader= 219
219it [00:19, 11.46it/s]
|Test Loss 9.582998it/s]|Acc 0.6704 (~0.00)     |AUC 0.6656 (~0.11)     |EER 0.3854 (~0.13)     |AP 0.7459 (~0.10)

What is your best_acc after each epoch?

@NamelessGaki
What is your training batch size?
I couldn't train on 32 batch size and had to go with 16, but also didn't get good results. I tried halving the learning rate but that didn't work either.

@NamelessGaki What is your training batch size?
I couldn't train on 32 batch size and had to go with 16, but also didn't get good results. I tried halving the learning rate but that didn't work either.

My batch_size is also 16. After each epoch, what is your acc?

I didn't keep tracking for accuracy in each epoch, I cared more about AUC, especially for celebdf dataset.

anyone could provide pretrained model weight? thanks a lot

Hello,
Thank you for your exciting work. I have been trying to reproduce the results of the method, but I was unsuccessful. I have run it on a single GPU because of my limited setup and followed the instructions according to the readme. But after 30 epochs the results are still bad, do you have an idea to why this is the case? Testing from FF-DF ... Len of data_loader= 219 Acc 0.4821 (~0.00) |AUC 0.4614 (~0.10) |EER 0.5286 (~0.10) |AP 0.5142 (~0.11) Testing from FF-NT ... Len of data_loader= 219 |Test Loss 14.85385it/s]| Acc 0.4847 (~0.00) |AUC 0.4335 (~0.11) |EER 0.5360 (~0.11) |AP 0.5005 (~0.11) [3/4]Testing from FF-FS ... Len of data_loader= 219 |Test Loss 1.436065it/s]|Acc 0.9536 (~0.00) |AUC 0.9916 (~0.01) |EER 0.0077 (~0.03) |AP 0.9975 (~0.01) [4/4]Testing from FF-F2F ... Len of data_loader= 219 219it [00:19, 11.46it/s] |Test Loss 9.582998it/s]|Acc 0.6704 (~0.00) |AUC 0.6656 (~0.11) |EER 0.3854 (~0.13) |AP 0.7459 (~0.10)

How long does it take you to train an Epoch? thank you

@NamelessGaki Could you please tell me what your training batch size is.
I couldn't train on 32 batch size and had to go with 16, but also didn't get good results. I tried halving the learning rate but that didn't work either.

How long does it take you to train an Epoch? thank you

Hi, do you have his test code?

no
------------------ Original ------------------
From: Ablott123 @.>
Date: Thu,May 23,2024 1:34 PM
To: liangchen527/SLADD @.>
Cc: ZengqiangChen @.>, Comment @.>
Subject: Re: [liangchen527/SLADD] Difficulties reproducing the results (Issue#12)
Hi, do you have his test code?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>


Bug Fix Request: Prompt to update to 2.8.1 breaks Sketch Measure

Hi @ellunium ,
When I download your plugin I am prompted to update to Sketch Measure v2.8.1 from @utom . Sadly that one is no longer updated.
In addition, whenever I update to 2.8.1 from @utom Sketch Measure becomes broken and I am not able to Spec Export (gets hung at the beginning of the Spec Export loading pop-up).
Is it possible for you to add some code that stops your plugin from searching for updates from @utom 's original code?
Many thanks for all you've done with this fork, very helpful!
Cheers,
Jordan

Hi @JordanTranchina, thanks for reporting.
I have stopped pushing more changes or fixes because I don’t want my fork to deviate too much from @utom 's masterpiece and original plugin. I don’t want my fork to become the main reference for this plugin. I see it only as a temporary fix for me, the community and people I work with, until @utom gets back to pushing more improvements to the original one when and if he has time to do so.
The idea of leaving it so like this is that @utom would pick it up back again and whomever came to the fork, would be organically sent back to the original plugin.


Changed to launch mongo container only, not app

Changed to launch mongo container only

Docker file now only for mongo db


Add Moshi to JavaDependenciesInspector

Adding Moshi to JavaDependenciesInspector as it's another popular json parsing library - https://github.com/square/moshi

Thanks a lot @vanniktech


Incompatible with regenerator

I'm trying to use this with regenerator using the babel-plugin-transform-runtime to add the regeneratorRuntime helpers.  This is necessary otherwise you get a reference error.
    babel({
      babelrc: false,
      presets: [
        ['env', {
          targets: {
            browsers: ['last 2 versions']
          },
          modules: false
        }],
        'stage-0',
        'react'
      ],
      plugins: [
        'transform-decorators-legacy',
        ['transform-runtime', {helpers: false, polyfill: false}],
        'external-helpers'
      ]
    })

I get the output:
Error: 'default' is not exported by node_modules/babel-runtime/regenerator/index.js
https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module
src/types/AnyType.js (1:7)
1: import _regeneratorRuntime from 'babel-runtime/regenerator';
          ^
2: import Type from './Type';

I had a different problem with babel-plugin-transform-runtime, and happened across this issue while trying to solve it. Your babel configuration solved that problem for me (thanks for posting it!), but then I encountered the same problem as you. I was able to fix it by adding rollup-plugin-commonjs to my rollup.config.js:
import babel from "rollup-plugin-babel";
import nodeResolve from "rollup-plugin-node-resolve";
import commonjs from 'rollup-plugin-commonjs';

export default {
  entry: "src/index.js",
  dest: "lib/index.js",
  plugins: [
    nodeResolve(),
    commonjs({
      include: "node_modules/**"
    }),
    babel({ runtimeHelpers: true }),
  ],
  format: "cjs"
};

Can confirm it works correctly with rollup-plugin-node-resolve and rollup-plugin-commonjs.
This is how my rollup.config section looks in case of bundling for browsers:
  {
    entry: 'index.js',
    format: 'es',
    dest: 'build/bundle.js',
    plugins: [
      resolve(),
      commonjs({
        include: "node_modules/**"
      }),
      babel({
        runtimeHelpers: true,
        exclude: 'node_modules/**'
      })
    ]
  },

Rather looks like a question of documentation than a real issue.

Closing this as outdated and not actionable here - this plugin just runs babel over ur input files. It doesn't try to resolve dependencies or anything - if you find yourself having such issue it's an issue of ESM/CJS interoperability and should be raised in commonjs plugin repo.


rafthttp: add peer stream metrics

Just leave this as future reference in case someone asks.
Currently we don't have any use case of it. If anyone needs to
count the connection between peers, this might be useful.
Right now, only way to find out is just looking at the logs.
e.g. with this patch, in 5-node cluster, etcd_network_peer_active_total
should be 20 (4 peers * 5 connections each).

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@04fc57a). Click here to learn what that means.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master    #7682   +/-   ##
=========================================
  Coverage          ?   75.92%
=========================================
  Files             ?      331
  Lines             ?    26088
  Branches          ?        0
=========================================
  Hits              ?    19807
  Misses            ?     4850
  Partials          ?     1431

Impacted Files
Coverage Δ

rafthttp/peer_status.go
87.09% <100%> (ø)

rafthttp/metrics.go
100% <100%> (ø)

Continue to review full report at Codecov.

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

when we remove the peer from the network, do we call inactive? if not, we probably also need to dec the counter there.

e.g. with this patch, in 5-node cluster, etcd_network_peer_active_total
should be 20 (4 peers * 5 connections each).

we'd either make this 4 or change the metrics name to active_peer_connection with peer name as label.


Firefox window on secondary monitor not always activated

I have a setup with two monitors where I see the following behaviour when searching for a tab from gnome-shell. Note that the correct tab is always switched to, but Firefox is not activated in the following cases (note: target tab is always on the firefox instance on the secondary monitor):

Firefox  is on the secondary monitor and not activated
Firefox is on the secondary monitor, there is also a window on the primary monitor that is not activated

If the window on the secondary monitor is active OR another Firefox window on the primary monitor is active, the firefox window on the secondary monitor is correctly activated.
Gnome-shell version: 42.2
Firefox version: 101.0
Extension version: 4
Connector version: 0.1.1-4 from AUR repo
Running on wayland, but Firefox is using xwayland

Can you reproduce this if firefox is wayland native?
If not this might be same issue as https://github.com/harshadgavali/searchprovider-for-browser-tabs/issues/26.

I also have the same issue with native wayland firefox. If you need any more info or logs, let me know.


Use libgit2 instead of parsing the git command

This is what jD91mZM2/powerline-rs does to increase performance. The git2 crate can be used.

I will look into it.

I have done some testing and from the results it seems that using git2 is never better than current solution and much often worse. With git2 code looks much cleaner and I would really like to get rid off parsing command output, but not for performance.
If you give me some benchmarks proving your statement I will consider rewriting.
For testing I simply pasted code from D91mZM2/powerline-rs and modified it to work with my codebase. I can provide you with git2 branch, but tomorrow.

Powerline-rs's README.md said that it increases performance; it made sense so I just took their word for it.


Add resolution scaling parameter

On Discord (and likely other platforms), the relatively low resolution of the video can make embeds small and lead to blurriness when in fullscreen.
Although more complex solutions have been outlined in #12, this is a quick & easy way to make the video more high resolution without losing sharpness by just using nearest neighbor scaling.
Scaling is passed through the resolution_scale parameter in the render_comment_list method. Old scaling (1:1) is retained by default

Hi!
Thanks a lot for the PR. This will likely be implemented in my three versions of the bot (Twitter, Discord, Telegram). Bots will be likely updated thorough the day.
Again thanks for the request, video quality has been terrible since day 1, it's a bit more bearable now ^^


archive: add zstd and use all available CPU cores

Please follow Zim's code style guidelines.

@Konfekt, thanks for you contribution! FYI, this code will be replaced by the one in https://github.com/zimfw/archive tomorrow, when #323 will be merged to master.

Okay, just let me know where to resubmit.


Synchronous RNN using SyncReplicasOptimizer

I'm trying to implement a synchronous distributed Recurrent Neural Network using TensorFlow on multiple servers. Here's the link to my code: https://github.com/tushar00jain/spark-ml/blob/master/rnn-sync.ipynb. I've also provided the relevant part below.
I want the computations within the same batch to happen in parallel but I think it's still computing separate RNNs on each worker server and updating the parameters on the parameter server separately. I know this because I am printing the _current_state variable after I run the graph for each batch. Also, the _total_loss for the same global step is different on each worker server.
I'm following the instructions provided at the following links: https://www.tensorflow.org/deploy/distributed#replicated_training https://www.tensorflow.org/api_docs/python/tf/train/SyncReplicasOptimizer
Is this a bug or is there something wrong with my code?
sess = sv.prepare_or_wait_for_session(server.target)
queue_runners = tf.get_collection(tf.GraphKeys.QUEUE_RUNNERS)
sv.start_queue_runners(sess, queue_runners)

tf.logging.info('Started %d queues for processing input data.',
                len(queue_runners))

if is_chief:
        sv.start_queue_runners(sess, chief_queue_runners)
        sess.run(init_tokens_op)

print("{0} session ready".format(datetime.now().isoformat()))
#####################################################################

########################### training loop ###########################
_current_state = np.zeros((batch_size, state_size))
for batch_idx in range(args.steps):
    if sv.should_stop() or tf_feed.should_stop():
        break

    batchX, batchY = feed_dict(tf_feed.next_batch(batch_size))

    print('==========================================================')
    print(_current_state)

    if args.mode == "train":
        _total_loss, _train_step, _current_state, _predictions_series, _global_step = sess.run(
        [total_loss, train_step, current_state, predictions_series, global_step],
        feed_dict={
            batchX_placeholder:batchX,
            batchY_placeholder:batchY,
            init_state:_current_state
        })

        print(_global_step, batch_idx)
        print(_current_state)
        print('==========================================================')

        if _global_step % 5 == 0:
            print("Step", _global_step, "Loss", _total_loss)

@tushar00jain when you say, "I want the computations within the same batch to happen in parallel"... I'm not quite sure what you mean...
Multiple workers allow for "data-parallelism".  Multiple PS nodes allow for "model-parallelism".  In your case, I assume that you're looking for "data-parallelism"... but that implies that each worker (at least per your current code), will process a different batch of input data, train, compute their own gradients, and then update the PS (where the PS is responsible for updating/aggregating the parameters from the workers).
That all said, if you want to literally compute one batch of data across multiple workers, then you will have to start playing with device placement of your ops.  Just beware that there will be network costs, e.g. if one worker reads the batch, but has to distribute the data to other workers...

Thanks for your reply! I indeed want data parallelism. I was expecting that one batch get split up across multiple worker, after which the PS is updated and the workers also agree on the state of the RNN, which is not a parameter. So do you mean that this is not achievable with the current API?
Also, I after adding the syncReplicasOptimiser, the workers get stuck after one epoch. Would you happen to know what's causing the problem? I saw your example on 'inception_distributed_trian.py', which is a bit different than the example on tensorflow's repository in that it uses 'clean_up_op', which is not supported in the tensorflow v1.0.1. Could it be because of that?

Sorry, I haven't tried an RNN in distributed TF yet, so I don't have the definitive word on what's achievable... that said, from the data feeding perspective, our APIs should be no different than a feed_dict or a queue_runner in a normal TF cluster, so I wonder how other folks in the general TF community are running distributed RNNs.
As for the SynReplicasOptimizer, I'm not sure what would cause that.  Note: the clean_up_op change was due to a recent TF 1.0 API change... i.e. TF no longer needs/uses it, so I don't think that would be the cause.  You may want to enable debug logs by changing this line to DEBUG.

I don't think there is an example of distributed synchronous RNN on the internet ... Thanks for the answer tough!

Would it be possible for you to take a look into this? I'm not able to figure out why the workers are hanging (not particularly after 1 epoch). Increasing the number of epochs does increase global_step as well as local step to almost half of num_batches * epochs.

The task works fine if I enable only 1 worker. The hang seems to happen when one worker is done processing it's input while the other worker is still in the middle of processing the input it received.

You should see additional logs from the Spark side (filling the input queue), per:
https://github.com/yahoo/TensorFlowOnSpark/blob/master/src/com/yahoo/ml/tf/TFSparkNode.py#L434-L441
From there, you should be able to trace the flow of data.  (Alternatively, you can capture the yarn logs from one of these runs and send them to me at<EMAIL_ADDRESS>and I'll take a look).

Closing, since this was resolved offline.  Basically, the hang was due to an executor not getting the expected batch_size of data on the last partition.


Add goals for this project to wiki

It would probably be beneficial to add a Goals.md page to the Wiki which outlines the current scope and covered use-cases for this feature collection.
With recent discussion about "what is the scope of features in this repo?" and "what should be a feature?", I think it would be a good idea to consolidate these into a single document. This shouldn't necessarily happen now given that discussion is still ongoing, but it would be foolish to think that we all (@DaneWeber @danielbraun89 and @jcbhmr being primary discuss-ers) remember the gist of like 100+ comments over 10+ threads about goals and scope of this project.
Relevant discussions: #171 #173 #175 #172
Tasks

[ ] Add a Goals.md to the wiki/ folder
[ ] Answer "what is the goal of this repo?"
[ ] Answer "what qualifies as a feature?"
[ ] Link to relevant discussions for more details

Should this file be called something else? Maybe folded into the wiki/README.md file?
/assign @jcbhmr

👍

written some thoughts on gitter https://gitter.im/devcontainers-contrib/community?at=6391d87a8bdea01368a772eb

Actually, I think this is a good opportunity to use GitHub's new Projects feature to organize "task" issues into a concrete "medium term" goal planner.
https://docs.github.com/en/issues/planning-and-tracking-with-projects/learning-about-projects/quickstart-for-projects

So regarding goals, I think they should be something along the lines of
Reduce effort to create features
Increasing the quality of features
Enabling more categories of features
regarding goal 1, thats what the cookiecutter generator was originaly for, but now proven to be a. not flexible enough and b. only provide trivial features which are really no brainer) so probably will be replaced by some JS prompt generator?
goal 2: Thats basically the common install.sh header and functions, which altho it certainly increase code quality- it also might increase the learning curve for new comers (a new concept to understand?)
goal 3:
So we have the feature dependency system path (discussed here https://github.com/devcontainers-contrib/features/discussions/171)
This seems to me a one major gap that if filled will result in an ability to create much more complex features which are a composition of another features etc
So far so good :) Problem is - I dont think I/we have the capacity to tackle al goals at once... I certainly dont have the time. So jcbhmr DaneWeber If you had to choose one to prioritize what should it be?

In regards to this comment, I largely agree with the overarching goals. I'd like to add some of my own concrete articulations of my own ideas:

Figure out a solution to re-using Bash functions.
Implement that solution.
Figure out a solution to using features that need another feature.
Implement that solution
Implement the shift to ecosystem-level features.
Add more documentation about how to create features.

Moving to ecosystem-level features also entails the possibility of deprecating npm-based and pip-based features, but that's post-doing-it thinking. See https://github.com/devcontainers-contrib/features/issues/172#issuecomment-1346517078
Regarding your #1 idea in the quote ("Reduce effort to create features"), here's some ideas that @jcbhmr could do to improve the docs:

Create a guiding Bash or Deno or Python script that prompts the user to do things. I don't know how generalized the feature creation can be to put it in a guiding script though.
Create a walkthrough to create a feature for something like Deno or another "simple-ish" cURL-based installer.


feat: add binary insertion sort algorithm

Hi @raklaptudirm, the existing binary search will return -1 if we don't find the element. But my modified version find the position of the element that is to be inserted in the array. So I cant reuse it.

Ah, makes sense.

@appgurueu Can you please review this PR

Hi @raklaptudirm, the existing binary search will return -1 if we don't find the element. But my modified version find the position of the element that is to be inserted in the array. So I cant reuse it.

You could consider updating the existing binary search.

@appgurueu See the actuall Binary Search should return -1 if the key is not found. But in my function, I will be returning the insertion position of the key element.

@appgurueu See the actuall Binary Search should return -1 if the key is not found.

No. Our current implementation behaves this way because it is lazily written. More advanced implementations return the insertion or occurrence index; it is then trivial to check whether the element was found (arr[idx] === element).

@appgurueu yeah, correct.
How to proceed mate ? Do i need to close this PR and create a new one for Binary Search or Include the fix for binary search in this PR itself. ?

I'd be fine with including the extension/feature (not a fix, the current implementation is correct) in this PR.

@appgurueu I have created a PR for Binary Search Improvement
https://github.com/TheAlgorithms/TypeScript/pull/72

@appgurueu What about this PR? I think this can be closed

It can be closed, yes, but why should it be closed? It would add something if it were merged. It's just that it currently depends on #72. The author should be able pick this up at any time.

An sorry, I understood this wrongly. I thought this PR was canceled


Set theme jekyll-theme-cayman

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

Additional documentation e.g. usage docs, etc.:

Little more information please

We already have a Jekyll website for the website. Check it here:
https://instagrambot.github.io


Adding to Box instructions on README

add note about how to get access to box app

add as collaborator
Can go to Box console here: https://arizona.app.box.com/developers/console

clarity about how to run data wrangling script locally compared to the automated Posit Connect version

The link to the box developers console is right at the top of the section of the boxr docs I linked to, so I'd rather not repeat that, but I'll see if I can clarify things a bit.

Clarified a bit in 280e6965b054248557b6eb74ff671ff3ad351a3e


Example of how to test app with state

The example in globalstate.hs is very instructive, but I'm really struggling with how to write tests for an application built like that.
Testing app responses is not so difficult, using hspec-wai, but I can't figure out how to write the tests to enable me to verify state updates as well. Would it be possible to add an example that tests the sample app from globalstate.hs, that shows how to test both request/response interactions as well as setting upp a state, making a request and verify that the new state is the expected one?
Thanks a lot!

@tomasaschan this one is tricky because StateT in the presence of async exceptions does not behave well.
The "ReaderT pattern" with a thread-safe TVar holding state as shown in globalstate.hs is actually best practice for this case.

Thanks!
This issue is four years old, and I have no idea any longer in what context I was asking the question, whether I figured this out out on my own or moved on to use something different.
So I'll close this issue for housekeeping.
Thanks for taking the time to answer anyway!


Plugin Broken on 12.3 and 13.1 Release

Trying to get this plugin going with the 13.1 release here but I'm not sure what's going on here:
Plugin: nexus-oss
  Official Plugin: False
  Using RELEASE: 13.1-RELEASE
  Using Branch: 13.1-RELEASE
  Post-install Artifact: https://github.com/rebasing-xyz/iocage-nexus-oss.git
  These pkgs will be installed:
    - openjdk8

Testing Host DNS response to pkg.FreeBSD.org
Testing nexus's SRV response to pkg.FreeBSD.org
Testing nexus's DNSSEC response to pkg.FreeBSD.org

Installing plugin packages:
  - openjdk8...

Fetching artifact...
Cloning git repository

Branch 13.1-RELEASE does not exist at https://github.com/rebasing-xyz/iocage-nexus-oss.git!
Using "master" branch for plugin, this may not work with your RELEASE
nexus had a failure
Exception: GitCommandError Message: Cmd('git') failed due to: exit code(1)
  cmdline: git checkout master
  stderr: 'error: pathspec 'master' did not match any file(s) known to git'
Partial plugin destroyed

I'm sure the same thing happens with the 12.3 release.

Hi @jasker5183, thanks for reporting this problem, the issue happens because there is no such branch created for 13.1 and 12.a releases.
I'll create it, then you should be able to install it.
I'll update this issue once I create it.

Hi, It should be working now, please let me know if something goes wrong.
thanks.

Works for me, thanks.


feat: Adding links for CoLab readme link.

Link so people can use colab to try NDArray

Thank you Mr. David


Fixes reading palette moving reader

changes Reader.read_palette to have signature &mut self instead of self
otherwise reading the palette moves the Reader, requiring to create to Readers of the to be read file, in order to process a palatted pcx
consequently has to change Decompressor.finish from (self) -> S to (&mut self) -> &mut S
i also replaced ... with ..=, and removed an unnecessary semicolon
i bumped the minor version, because this is a breaking API change
this is not ready to merge yet, as i have not tested for unintended side-effects of the change yet

Hello. I wrote this crate long ago. As far as I remember palette is stored at the end of file so read_palette palette will be the last function to call.
Example:
let mut reader = pcx::Reader::from_file("test.pcx").unwrap();

// read all the rows
for y in 0..reader.height() {
    reader.next_row_paletted(...).unwrap();
}

// now you can read the palette
let mut palette = [0; 256*3];
let palette_length = reader.read_palette(&mut palette).unwrap();

With current implementation you can't actually read palette before reading all the pixels. This moving behaviour is to force read_palette to be the last function to call.
Current implementation doesn't requires Seek, it only requires Read:  impl<R: Read> Reader<R>. To read palette before reading the pixels you will need to seek to the end of file and then seek back.

Overall I must say I was probably trying to be very smart with my implementation with zero allocations. If I was implementing PCX reader today I would probably just read the entire file into memory, then allocate pixel buffer, then extract the pixels. Less code, simpler API, easier to use.

There is now a get_palette method

There is now a get_palette method


Port test to ts

fixes #1152

Do we really need to have FTs in both JS and TS ?
As our unit tests are still written in JS covering most scenarios,
also I believe anything that works with typescript should also work with JS since we have only bindings, please correct me if I am wrong.


The site irrexplorer.nlnog.net won't open guys.

Hi irrexplorer team.
Your site won't open.
Any outage?

Yes, there was a database issue. The site is up and running again now.

Yes, there was a database issue. The site is up and running again now.

Seems like the website is down again. 👀

Yes, we had to do some additional fixes on the database, it's back now.

Yes, we had to do some additional fixes on the database, it's back now.

The website is open but the screen is white. Please check.


Radio , Player List and lua execution

First two features i think daniel can add them really easily idk about lua execution that would be hard.
if anyone can add the first two features that would be awesome in pull requests .

Radio?  Just open up your web brower and search it through that. Or add it yourself. I think it would be a waste of time to add a radio into some cheat. About the LUA, Great idea but where are you thinking to get them?

https://github.com/es3n1n/boynexthook_lua

they have a really good dubstep radio i can't find it on the internet :P

Player list is also very important to know Live hp money weapon and ammo

whatever i'm just using both cheats at the same time to have those extra features :D

https://media.discordapp.net/attachments/678576592636739591/678578516970962964/IMG_20200216_142808.jpg?width=1142&height=643

got the src for this?

why do you want lua execution in an open source cheat? 🤔 🤔 🤔

player list could be helpful radio and luas are just really dumb

whatever i'm just using both cheats at the same time to have those extra features :D

nobody explain to them how foolish this is, lets just let them see how it backfires

playerlist is easy

whatever i'm just using both cheats at the same time to have those extra features :D

nobody explain to them how foolish this is, lets just let them see how it backfires

it's epic an epic result actually https://youtu.be/mPwvaHi2B8Y and i didn't get copyright striked from the radio cause it was playing so low, you just have to disable some features(third person and knife skinchanger had an issue) from osiris that interfere with boysnexthook and boom works like a charm.

wtf ahahaa,
We are have bugged lua, but at hte moment i'm fixed trash code and lua works fine without crashes.


The TextField widget cannot implement an auto-complete prompt, similar to Android's AutoCompleteTextView.

The TextField widget cannot implement an auto-complete prompt, similar to Android's AutoCompleteTextView.

Duplicate of #46824


[Editor] CSV Import with mapping extension

Summary of the feature request
I'm wondering how much work it'll take to make this: https://editor.datatables.net/examples/extensions/import.html work. I'll happily make a pull request, but I can't seem to wrap my head around it.

Nice, didn't know that import is available on demo.
I think this will work with the current version since the parsing of csv is done via client-side and then submitted to the server via create action. Were you able to give it a try?

I just gave the import demo a try and works out of the box. Below are some snippets used:
html builder
// html()
                    ->setTableId('videos-table')
....
                    ->buttons([
                        Button::make('create')->editor('editor'),
                        Button::raw()
                              ->editor('upload')
                              ->text('Import CSV')
                              ->action("LaravelDataTables['videos-table-upload'].create({title: 'CSV file import'});"),
                    ])
                    ->editors([
                        Editor::make()
                              ->fields([
                                  Text::make('video_id'),
                              ]),
                        Editor::make('upload')
                              ->fields([
                                  File::make('csv')
                                      ->label('CSV File:')
                                      ->ajax("function(files) {
                                        Papa.parse(files[0], {
                                            header: true,
                                            skipEmptyLines: true,
                                            complete: function (results) {
                                                console.log( results );
                                                if ( results.errors.length && ! results.data.length ) {
                                                    LaravelDataTables['videos-table-upload'].field('csv').error( 'CSV parsing error: '+ results.errors[0].message );
                                                }
                                                else {
                                                    LaravelDataTables['videos-table-upload'].close();
                                                    $.fn.uploadCallback(LaravelDataTables['videos-table-editor'], results.data, results.meta.fields)
                                                }
                                            }
                                        });
                                      }"),
                              ]),
                    ]);

blade scripts
    <x-slot name="scripts">
        <script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/4.6.3/papaparse.min.js"></script>
        <script>
            $.fn.uploadCallback = function (editor, csv, header) {
                var selectEditor = new $.fn.dataTable.Editor();
                var fields = editor.order();

                for (var i = 0; i < fields.length; i++) {
                    var field = editor.field(fields[i]);

                    selectEditor.add({
                        label: field.label(),
                        name: field.name(),
                        type: 'select',
                        options: header,
                        def: header[i]
                    });
                }

                selectEditor.create({
                    title: 'Map CSV fields',
                    buttons: 'Import ' + csv.length + ' records',
                    message: 'Select the CSV column you want to use the data from for each field.'
                });

                selectEditor.on('submitComplete', function (e, json, data, action) {
                    // Use the host Editor instance to show a multi-row create form allowing the user to submit the data.
                    editor.create(csv.length, {
                        title: 'Confirm import',
                        buttons: 'Submit',
                        message: 'Click the <i>Submit</i> button to confirm the import of ' + csv.length + ' rows of data. Optionally, override the value for a field to set a common value by clicking on the field below.'
                    });

                    for (var i = 0; i < fields.length; i++) {
                        var field = editor.field(fields[i]);
                        var mapped = data[field.name()];

                        for (var j = 0; j < csv.length; j++) {
                            field.multiSet(j, csv[j][mapped]);
                        }
                    }
                });
            }
        </script>
        {{ $dataTable->scripts() }}
    </x-slot>

Yes, I gave it a try. Made it work yesterday, but threw all the code in buttons.server-side.js and didn't liked it at all, since I was hardcoding the editor part(LaravelDataTables['videos-table-editor']) in it. The way you tested it seems much better. I hope someone will find the snippets useful. Thank you!


For example:
+ test *(1-99)

with chunking == false:
> input: test one. two. three. => expected: one. two. three. => captured:

with chunking == true:
> input: test one. two. three. => expected: one => captured: one

refs: #210

Fix is actually in the ss-parser. Bumped here.


HELP: returning  Json data type while posting boolean from esp32

Hi,
I am posting boolean/int/string/float from esp32 using "set()" functions, but the stream data always returns json type instead of bool/int/string/float. How can i get the exact data type which i have posted from esp32 hardware ?
Thanks

Please show your code.

You need to show your working code for me to check and test.

If you're not provide any code, I'm sorry to delete the issue.


[Feature Request] Shared 'popular' prompts + Library/Log + Export features.

There's a few chrome extensions that have some of these features. I'm trying to implement it w/ WebViews+Flutter but not really a mobile dev. This app is pretty sleek so would be cool to add these features.

Hey @patrickcurl, sorry for the delayed response. I think one of my great colleagues @Nash0x7E2 may have a similar solution to this. Any idea for this? 😄

Hey @patrickcurl, this blog post may be of interest to you https://getstream.io/blog/build-flutter-chrome-extension/


Markdown Static Sites

Create a full single-page static site with Markdown.

Deprioritize Markdown Static Sites to some other point in the future, because we are building PB in a way to abstract all of Azure's infrastructure and containerize it for the user.


bwtestclient and server should not crash when reacting to SCMP

It seems that bwtestclient and server crash because some SCMP messages. Avoid that.
Original driver issue is here: https://github.com/netsec-ethz/netsec-scion/issues/18

This has been fixed in one of the many changes since then.


pipewire: introduce roc-toolkit support

Motivation for this change
roc-streaming is a library for robust streaming of audio data over (unreliable) networks. pipewire has support for it via the libpipewire-module-roc-{sink,source} modules. Here I add derivations for the openfec and roc-toolkit libraries, as well as introduce support for the latter in the pipewire derivation.
Things done

Built on platform(s)

[x] x86_64-linux
[x] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Ccing @jansol
N.B. I have based this on #150999

Ccing @jansol
N.B. I have based this on #150999

@jansol all good?

Haven't tested but looks good with the exception of that openfec flag.

FWIW, I am able to load the roc-sink and roc-source modules and can stream audio between them.

For the record, this was tested using the backport to 21.11 in https://github.com/bgamari/nixpkgs/tree/wip/rpi-pipewire-21.11.

For the record, this was tested using the backport to 21.11 in https://github.com/bgamari/nixpkgs/tree/wip/rpi-pipewire-21.11 (which also upgrades pipewire to 0.3.42). Perhaps this should be merged to nixos-21.11?

No strong opinion on that but since is a non-trivial change of the package, we should gives this some weeks in the nixos-unstable channel to see if there any regressions.


Reverting it back to the initial version

I have reverted it back to the original version as there were some commits needed to be deleted.

It is reverting back so I will be merging it.

Merging changes


using phone numbers without the prefix crashes the application

Initially when I started using the application I used my phone number without the international prefix. So 415000000 -- so North American phone number.
Then second try I worked out what was going on and put the +1 prefix in front.
Other applications often list all the prefixes at the front with country flags. Long term that might be a good fix, short term catch the exception and show a error to the user.
Thanks :)
Application: Tel.Egram.exe
CoreCLR Version: 4.6.26919.2
Description: The process was terminated due to an unhandled exception.
Exception Info: ReactiveUI.UnhandledErrorException: An object implementing IHandleObservableErrors (often a ReactiveCommand or ObservableAsPropertyHelper) has errored, thereby breaking its observable pipeline. To prevent this, ensure the pipeline does not error, or Subscribe to the ThrownExceptions property of the object in question to handle the erroneous case. ---> TdLib.ErrorException: PHONE_NUMBER_INVALID
   --- End of inner exception stack trace ---
   at ReactiveUI.RxApp.<>c__DisplayClass0_0.<.cctor>b__2() in D:\a\1\s\src\ReactiveUI\RxApp.cs:line 64
   at System.Reactive.Concurrency.Scheduler.Invoke(IScheduler scheduler, Action action) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Concurrency\Scheduler.Simple.cs:line 83
   at Avalonia.Threading.AvaloniaScheduler.Schedule[TState](TState state, TimeSpan dueTime, Func`3 action)
   at ReactiveUI.RxApp.<>c.<.cctor>b__0_1(Exception ex) in D:\a\1\s\src\ReactiveUI\RxApp.cs:line 68
   at System.Reactive.AnonymousSafeObserver`1.OnNext(T value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\AnonymousSafeObserver.cs:line 46
   at System.Reactive.ScheduledObserver`1.Run(Object state, Action`1 recurse) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Internal\ScheduledObserver.cs:line 254
   at System.Reactive.Concurrency.Scheduler.InvokeRec1[TState](IScheduler scheduler, Pair`2 pair) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Concurrency\Scheduler.Recursive.cs:line 89
   at Avalonia.Threading.AvaloniaScheduler.<>c__DisplayClass2_1`1.<Schedule>b__1()
   at Avalonia.Threading.JobRunner.RunJobs(Nullable`1 priority)
   at Avalonia.Win32.Win32Platform.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
   at Avalonia.Win32.Interop.UnmanagedMethods.DispatchMessage(MSG& lpmsg)
   at Avalonia.Win32.Win32Platform.RunLoop(CancellationToken cancellationToken)
   at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken)
   at Avalonia.Application.Run(Window mainWindow)
   at Tel.Egram.Program.Run(IDependencyResolver resolver) in D:\a\1\s\src\Tel.Egram\Program.cs:line 72
   at Tel.Egram.Program.Main(String[] args) in D:\a\1\s\src\Tel.Egram\Program.cs:line 18

Last build has this dropdown with county codes and phone mask. Closing this for now. Thanks for the idea.


Set tag to COSIGN_PRIVATE_KEY_PEM_LABEL for ec.rs

Signed-off-by: Daniel Bevenius<EMAIL_ADDRESS>
Summary

This commit suggests changing the tag used in EcdsaKeys::private_key_to_encrypted_pem from SIGSTORE_PRIVATE_KEY_PEM_LABEL to COSIGN_PRIVATE_KEY_PEM_LABEL.
The motivation for this is that using such a key with Go cosign will currently result in an unsupported pem type error. It seems like Go cosign is using CosignPrivateKeyPemType when checking the tag of the pem.
I'm not sure about the differences between
SIGSTORE_PRIVATE_KEY_PEM_LABEL and COSIGN_PRIVATE_KEY_PEM_LABEL and I might be missing something here but if the change in this PR is a valid then this should probably be done for rsa and ed25519 as well.
Release Note

NONE
Documentation

NONE

Hi @danbev Thanks for pointing out the bug here! It LGTM. But still some problems to ensure.
The pem label SIGSTORE_PRIVATE_KEY_PEM_LABEL was brought in sigstore-rs at the first time here https://github.com/sigstore/sigstore-rs/pull/87/files#diff-1264d08d322b15d92a0ff5f49178e377fd247b5d9e1f02f5b5cd0b928c4df6e6R66 by me.
I referred the countepart in sigstore-go here https://github.com/sigstore/sigstore/blob/main/pkg/cryptoutils/privatekey.go#L41 .
It seems that this label only shows in the definition here with name EncryptedSigstorePrivateKeyPEMType.
I also wonder whether this definition is useful. And I'm happy and welcome that change that rsa, ed25519 together with ec keys all change the label to COSIGN_PRIVATE_KEY_PEM_LABEL and abondon the label SIGSTORE_PRIVATE_KEY_PEM_LABEL .
Could you give some suggestions and is there anything I ignored?
cc @lukehinds @dekkagaijin

I believe going forward we should implement the SIGSTORE_ prefix especially with the desire to standardise client implementations.
What are the current consequences of using SIGSTORE_PRIVATE_KEY_PEM_LABEL, am I right in that sigstore-rs generated keys won't work in cosign, but the reverse is true the sigstore-rs can manage cosign generated keys?
cc @znewman01 & @asraa

I believe going forward we should implement the SIGSTORE_ prefix especially with the desire to standardise client implementations.

Strong +1 to this. Filed https://github.com/sigstore/cosign/issues/2471

I believe going forward we should implement the SIGSTORE_ prefix especially with the desire to standardise client implementations.

Strong +1 to this. Filed sigstore/cosign#2471

That means we don't have to do any change to our code. Do I get it right? Can this PR be closed then?

Agree on closing, given that there is consensus on targetting only SIGSTORE_PRIVATE_KEY_PEM_LABEL, and signing is a new unreleased feature; we aren't even introducing a regression on sigstore-rs.

Thanks everyone for commenting, I'll close this now.


setup react and linters

Changes

Used create-react-app  to set up react and all necessary modules.
Add linters for JavaScript and CSS.

Hi @Ellon-M,
While you made a great effort in this project, I cannot proceed to review your code.
Invalid Code Review Request
You have used the wrong workflow. You are to work on a feature branch and then open a PR from feature to develop branch - but you worked on develop and now trying to merge to main which is incorrect
Your Code Review Request will be marked as invalid in your Dashboard, so please submit a new one once you are ready 🙏
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.

Invalid Code Review Request does not count into the code reviews limit.


Application Gateway HTTPListeners do not support host parameter

For multisite support both host and sni fields should be allowed. sni field could be implicit based on http/https type. However lack of host field on listeners renders this scenario not workable. This is a big functionality gap.
azureuser@amitubuntu15:~$ appgw http-listener create -h
Command
az network application-gateway http-listener create: Create a new application gateway HTTP
listener.
Arguments
--frontend-ip       [Required]: The name or ID of the frontend IP configuration.
--frontend-port     [Required]: The name or ID of the frontend port.
--gateway-name      [Required]: The name of the application gateway.
--name -n           [Required]: The name of the HTTP listener.
--resource-group -g [Required]: Name of resource group.
--no-wait                     : Do not wait for the long running operation to finish.
--ssl-cert                    : The name or ID of the SSL certificate to use.

@amarzavery please not that Xplat also does not support these parameters.

@MikhailTryakhov - Please look into this.

Hi @amitsriva
it wasn't implemented because we didn't know anything about these changes :(
As for xplat-cli - see host name parameter in SDK, it's implemented in PR#3510.


information about binary wheel builds

As I understand you plan to update your series, may be  it will be good if you'll mention about the auditwheel project. Many interesting details can be found here

Thank you, this looks great! Don't know why I missed it the first time round.

Piggybacking on this, do you have any guidance for distribution of releases of our Poetry project? Particularly, for distribution as an executable or app file?
Poetry seems to want us to call scripts via poetry run, but all distribution tools I've seen like py2exe or pyinstaller want us to provide a script beforehand. Should we create an entry point layer of indirection to act as a substitute for not being able to directly call our scripts via poetry so that consumers of our Click CLI app can still run certain commands (e.g. myapp run console  -l pl)?

@wanderrful Don't hesitate to open your own issue :)
I'll just give you some pointers to interesting projects for distributing Python applications:

pipx
zipapp (standard library)
pex
shiv
pyoxidizer
briefcase

Please note that poetry run is not intended for end users at all, because it requires a Poetry environment installed from a source tree to work. Poetry allows you to build a wheel and upload it to PyPI, and that's where its job ends. (Although Poetry 1.1 will have a bundle command with additional deployment options.)
When deploying services into a production environment, Docker is a great option. Check out Itamar Turner Trauring's series on Production ready Docker packaging. As for Poetry and Docker, my SO answer may be useful.


fix: show editor dropdown after click event

Description
Along with https://github.com/asyncapi/studio/pull/492, I introduced a bug where the editor's drop-down cannot be shown. This PR fixes this bug and also improves the width of the inputs in some modals.

/rtm


Remove extra newline under numbered list

This is to remove the spacing above and below the 3

You should make pull request here - https://github.com/zsh-users/prezto. For more information checkout this issue https://github.com/sorin-ionescu/prezto/issues/1239


Final questions about Preeg summary

I have just a couple questions about the new paragraph on agriculture I will make on the commit.

Clarifications made in commit 5940df6


invalid_grant / no description

Hi, I am using the IdentityModel.OidcClient2 Dll for a connection to an OpenId server to get a token after giving the credentials or Authentication via Browser, and I got the the following Error. I checked and try to find something in internet without successful.  I got the error on  var result = await client.ProcessResponseAsync(formData, state); anybody has a hin ?
var options = new OidcClientOptions {
LoadProfile = true,
Authority = _Authority ,
ClientId = "client",
ClientSecret = "secret",
RedirectUri = "http://localhost:5678",
Scope = "openid profile",
Flow = OidcClientOptions.AuthenticationFlow.AuthorizationCode ,
FilterClaims = true
sample: https://github.com/IdentityModel/IdentityModel.OidcClient.Samples/blob/master/ConsoleSystemBrowser/ConsoleSystemBrowser/Program.cs
Many Thanks.
Carlos

invalid grant can mean many things. Check the logs of our OIDC provider to see what's really wrong.

where can I check the logs? or I have to check the main Project?

I don't know which OpenID Connect provider you are using.

Provider is "IdentityServer3 OpenID Connect Provider and OAuth 2.0 Authorization Server Framework for ASP.NET 4.x/Katana"

https://identityserver.github.io/Documentation/docsv2/configuration/logging.html

thanks for those tips, I saw something on internal class ResponseProcessor private async Task RedeemCodeAsync(string code, AuthorizeState state), errortype: protocol.

invalid grant is coming from the server. Find out why.

I also have this problem. I have Provider Identity Server 3. In my logs i get this error:
invalid_grant { id: 3001, category: "Endpoints", subjectId: null, name: "Endpoint failure" } { Name: "IdSrvFailureEvent", Id: 801, Scope: "IdAppEvent" }

It looks like ProcessResponseAsync in the OidcClient fails when it tries to call the token endpoint. I noticed that OidcClient requires System.IdentityModel.Tokens.Jwt version 5.1.3 while my Identity Server 3 uses version 4.0.3. Could there be any breaking changes from version 4.0.3 to 5.1.3 that makes the call to the token endpoint give the invalid_grant error?

Did you enable PKCE for your client in IS3 ? PKCE is mandatory.

@petteas that is the event output you are showing - logging output would be more detailed.

Setting Flow = Flows.HybridWithProofKey; for my client in IS3 made it work. Thanks for your quick response and help @leastprivilege!

in relation with my issue, it was something in Server, the person on it gave me another ClientID, und clientsecret. then it worked well

Quick follow up is there any know issues with IS3 with PKCE running on an IIS farm behind ARR? I am seeing the invalid state error on one set of servers, but not another and I have not figured out if that is related to PKCE or something else.


Improve the same object highlighting so that it is constrained to a single dump rather than page wide.

Improve the same object highlighting so that it is constrained to a single dump rather than page wide.
Probably need to add some sort of unique identifier to each dumped object's classes and or ids and update the JS to use that identifier to keep things separate. May even be able to use the for loop counter for the main for loop as the identifier as it will be unique for each dumped object.

This is sort of working. A number of times dumped counter was added to the unique to know. So, it works for all root objects but fails for any nested duplicate objects. Need to see about having dups append the dup number to all child attributes as well so that each dump is completely separate.

...don't we want this to be page-wide though? At least that's what I understood our conclusion from today to be, from earlier discussion.

Potentially want to have different highlighting for duplicated nested objects. EX: a root object has two properties. Both properties point to the exact same instance of something else. To help identify when an object may have more references to something than what is needed. Would also help identify self-references easier. This should happen on a per dump basis I think. Meaning not page wide. May need more trial and error / discussion as it will be difficult to have two types of highlighting at the same time.

Closing this as I don't think that we are going to do this and instead leave the highlighting the way that it is. Does not match Symfony / Laravels behavior, but should be fine so long as there aren't a ton of self-referential objects being dumped. Can be re-opened if opinions change.


Improve UI of the Page

The current UI of the page is outdated and lacks visual appeal, which may affect user engagement and satisfaction. Enhancing the UI with modern design elements and improved layout will provide a better user experience and make the page more attractive.
Request:
Please assign this issue to me. I will work on improving the UI of the page to enhance its visual appeal and user experience.

Hey, Could you please add a level label to it?


no matching manifest for linux/arm/v7 in the manifest list entries.

I have this error in regular installation, can you fix it?
docker: no matching manifest for linux/arm/v7 in the manifest list entries.

Currently, Python wheels for the Matter SDK (which this implementation is built on) for 32-bit Arm are not supported by the Matter SDK itself. I don't expect that this will change. :cry:
You have to migrate to a 64-bit installation to use our Matter Server (either aarch64 or x86-64).


Slices Getting Mixed Up?

So, I connected HL2 to an ARM-based SBC via Ethernet port, relying on the APIPA local network address to talk to it. I then created four separate receivers in OWRX, all pointing to the same APIPA address:

HL2-1 - Nomally off, lets user manually select one of several profiles
HL2-2 - Always on, tuned to 20m profile
HL2-3 - Always on, tuned to 40m profile
HL2-4 - Normally off, lets user manually select one of several profiles

Then I looked at the 20m profile using HL2 slices #1 and #2 (above), compared to the similar profile received via RSPdx. Here is what I have got:

To clarify the above image:

RSPdx shows what looks like normal 20m band on Sunday night, with FT8, SSTV, and people talking using USB.

HL2-1 shows what looks like 40m band, with LSB transmissions.

HL2-2 shows something totally different. Based on the noise pattern, I suspect it is something around 10MHz.

So, my first question would be: am I doing something obviously wrong? If not, then there is clearly some issue with hpsdrconnector not being able to manage HL2 slices correctly. Is it going to make sense to let the user define what slice each receiver is going to use?
Here is my current HL2 config in OWRX (there are four copies of the same thing):

Did some more experimentation last night and it looks like the center frequency change simply starts failing on a device for some reason. Consider this HL2-1 device, previously tuned to the "10m + CB" and then shut down due to switching away to another device (not HL2):
Previously:
2023-12-04 09:17:47,369 - owrx.source.HL2-1 - DEBUG - activating profile "10m + CB" for "HL2-1"
2023-12-04 09:17:47,514 - owrx.source.HL2-1 - DEBUG - sending property change over control socket: center_freq changed to 27887000
2023-12-04 09:18:09,401 - owrx.source.HL2-1 - INFO - STDOUT: 2023/12/04 09:18:09 client: Received an interrupt, stopping...
2023-12-04 09:18:09,408 - owrx.source.HL2-1 - DEBUG - shut down with RC=0

Now, I am going back to HL2-1, selecting the "20m" profile. The device gets started with whatever center frequency it used the last time (i.e. "10m + CB"):
2023-12-04 10:12:13,491 - owrx.source.HL2-1 - INFO - Started sdr source: hpsdrconnector --gain 60 --samplerate 384000 --radio <IP_ADDRESS> --debug --frequency 27887000 -p 32781 -c 49847
2023-12-04 10:12:13,493 - owrx.source.HL2-1 - INFO - STDOUT: 2023/12/04 10:12:13 [DEBUG] Debug is on
2023-12-04 10:12:13,520 - owrx.source.HL2-1 - INFO - STDOUT: 2023/12/04 10:12:13 [DEBUG] client: Sending command 'new_receiver:32781:49847:27887000' to server
2023-12-04 10:12:13,529 - owrx.source.HL2-1 - DEBUG - opening control socket...
2023-12-04 10:12:13,533 - owrx.source.HL2-1 - INFO - STDOUT: 2023/12/04 10:12:13 [DEBUG] client: Waiting for close signal

Notice the last message, indicating that it is waiting for the close signal. While I do not have firm understanding of your code, the message might indicate that hpsdrconnector is blocked somehow.
And now, activating the "20m" profile:
2023-12-04 10:12:20,937 - owrx.source.HL2-1 - DEBUG - activating profile "20m" for "HL2-1"
2023-12-04 10:12:21,006 - owrx.source.HL2-1 - DEBUG - sending property change over control socket: center_freq changed to 14175000

No other messages show in the log. The HL2-1 device keeps showing what looks like "10m + CB" output, i.e. the switch to "20m" has never taken place.

Things always break for me when I do this:

Select a profile on one HL2 slice (let us say HL2-1)
Select a profile on another HL2 slice (let us say HL2-4)
Go back to a profile on the first HL2 slice (HL2-1)

At this point, you will not be able to control center frequency on either of the two slices (HL2-1 or HL2-4). Both will be stuck on the last selected frequency until OWRX, hpsdrconnector clients, and hpsdrconnector server are restarted.
Could you please look into this? I am afraid that at the current point in time, this issue and the lack of a proper 12V power supply are two showstopping issues for me, as far as HL2 use is concerned. The power supply problem is on myself, of course :)

At step #3 above, when going back to HL2-1 and enabling 20m profile there, the client says:
2023-12-06 22:25:42,771 - owrx.source.HL2-1 - INFO - STDOUT: 2023/12/06 22:25:42 [DEBUG] Debug is on
2023-12-06 22:25:42,774 - owrx.source.HL2-1 - INFO - STDOUT: 2023/12/06 22:25:42 [DEBUG] client: Sending command 'new_receiver:49841:44301:7054000' to server
2023-12-06 22:25:42,775 - owrx.source.HL2-1 - INFO - Started sdr source: hpsdrconnector --gain 60 --samplerate 384000 --radio <IP_ADDRESS> --debug --frequency 7054000 -p 49841 -c 44301
2023-12-06 22:25:42,776 - owrx.source.HL2-1 - INFO - STDOUT: 2023/12/06 22:25:42 [DEBUG] client: Waiting for close signal
2023-12-06 22:25:42,793 - owrx.source.HL2-1 - DEBUG - opening control socket...
2023-12-06 22:25:50,222 - owrx.source.HL2-1 - DEBUG - activating profile "20m" for "HL2-1"
2023-12-06 22:25:50,268 - owrx.source.HL2-1 - DEBUG - sending property change over control socket: center_freq changed to 14175000

Notice ports 49481 and 44301 above. Now, the server says:
023-12-06 22:25:42,776 - owrx.source.HL2-2 - INFO - STDOUT: 2023/12/06 22:25:42 [DEBUG] server(7300): Opened connection on server port
2023-12-06 22:25:42,779 - owrx.source.HL2-2 - INFO - STDOUT: 2023/12/06 22:25:42 [DEBUG] server(7300): Received server command 'new_receiver:49841:44301:7054000'
2023-12-06 22:25:42,780 - owrx.source.HL2-2 - INFO - STDOUT: 2023/12/06 22:25:42 [DEBUG] server(7300): addReceiver(49841, 44301, 7054000)
2023-12-06 22:25:42,781 - owrx.source.HL2-2 - INFO - STDOUT: 2023/12/06 22:25:42 [DEBUG] server(7300): Added receiver on control port 44301, closed: false
2023-12-06 22:25:42,783 - owrx.source.HL2-2 - INFO - STDOUT: 2023/12/06 22:25:42 [INFO] server(7300): Added receiver listening on control port 44301
2023-12-06 22:25:42,784 - owrx.source.HL2-2 - INFO - STDOUT: 2023/12/06 22:25:42 [DEBUG] server(7300): Error listening on port 44301, retrying: listen tcp <IP_ADDRESS>:44301: bind: address already in use
2023-12-06 22:25:42,815 - owrx.source.HL2-2 - INFO - STDOUT: 2023/12/06 22:25:42 [DEBUG] server(7300): Opened connection on IQ port 49841
2023-12-06 22:25:42,816 - owrx.source.HL2-2 - INFO - STDOUT: 2023/12/06 22:25:42 [DEBUG] server(7300): handleIQListener stopReceiver
2023-12-06 22:25:42,818 - owrx.source.HL2-2 - INFO - STDOUT: 2023/12/06 22:25:42 [DEBUG] server(7300): IQ goroutine for port 49841 exiting
2023-12-06 22:25:42,819 - owrx.source.HL2-2 - INFO - STDOUT: 2023/12/06 22:25:42 [DEBUG] server(7300): Opened connection on control port 44301
2023-12-06 22:25:42,820 - owrx.source.HL2-2 - INFO - STDOUT: 2023/12/06 22:25:42 [DEBUG] server(7300): handleControlListener stopReceiver
2023-12-06 22:25:42,837 - owrx.source.HL2-2 - INFO - STDOUT: 2023/12/06 22:25:42 [INFO] server(7300): Control goroutine for port 44301 exiting
2023-12-06 22:25:42,844 - owrx.source.HL2-2 - INFO - STDOUT: 2023/12/06 22:25:42 [DEBUG] server(7300): Added listener 0x40000a3f80
2023-12-06 22:25:42,844 - owrx.source.HL2-2 - INFO - STDOUT: 2023/12/06 22:25:42 [DEBUG] server(7300): Removing listener 0x40000a3f80
2023-12-06 22:25:42,844 - owrx.source.HL2-2 - INFO - STDOUT: 2023/12/06 22:25:42 [DEBUG] server(7300): Removed listener 0x40000a3f80
2023-12-06 22:25:42,844 - owrx.source.HL2-2 - INFO - STDOUT: 2023/12/06 22:25:42 [DEBUG] server(7300): Closing IQ socket on port 49841
2023-12-06 22:25:43,287 - owrx.source.HL2-2 - INFO - STDOUT: 2023/12/06 22:25:43 [INFO] server(7300): Listening on IQ port 49841
2023-12-06 22:25:43,288 - owrx.source.HL2-2 - INFO - STDOUT: 2023/12/06 22:25:43 [DEBUG] Calling Accept on control port 44301
2023-12-06 22:25:43,288 - owrx.source.HL2-2 - INFO - STDOUT: 2023/12/06 22:25:43 [DEBUG] server(7300): Calling Accept on IQ port 49841
2023-12-06 22:25:50,117 - owrx.source.HL2-2 - INFO - STDOUT: 2023/12/06 22:25:50 [DEBUG] server(7300): Opened connection on IQ port 49841
2023-12-06 22:25:50,118 - owrx.source.HL2-2 - INFO - STDOUT: 2023/12/06 22:25:50 [DEBUG] server(7300): Calling Accept on IQ port 49841
2023-12-06 22:25:50,163 - owrx.source.HL2-2 - INFO - STDOUT: 2023/12/06 22:25:50 [DEBUG] server(7300): Added listener 0x4002202fc0

There is some really strange stuff the about failing to bind to port 44301, closing, then reopening things. It appears that port 44301 never connects properly and all the control messages sent there (like center frequency changes) get lost. Or have I misunderstood the situation?

Can you point me to the Git commit that corresponds to that, so I can try to reproduce it here?

Absolutely. Use tag "1.2.41" in the master branch here:
https://github.com/luarvique/openwebrx
There are also csdr 0.8.16, pycsdr 0.8.16 and other pieces there, in case you want to build them from the sources.

I have been able to reproduce it on the OWRX develop branch without using the scheduler. I sometimes need to toggle between profiles multiple times to trigger it. It seems to be a race within the connector, so I can believe that the scheduler makes it more likely to occur.

I am sure that OWRX's habit of first opening device with the last selected profile and then adjusting it to the new profile does not make it any easier on the connector. Avoiding the extra profile change is on my todo list (since it also looks unsightly to the user).

This should be fixed in release 0.7.0. Please test it and let me know if you still see issues.

Seems to work. Below is the result of sidestepping outside the CB band on HL2-1, after switching between all four slices and back to HL2-1:

As seen from the screenshot, the center frequency changes just fine. I could never do it before, with 0.6.6.
Thanks!

Problem appears gone in 0.7.


Re-useable workflows for PluginPlay

Status

Currently in testing CI phase [done]
Ready for merging into master

Brief Description
Added Re-useable workflows with composite actions for PluginPlay
Detailed Description (Optional)
Added Re-useable workflows with composite actions for the following four workflow files:

c-cpp.yaml
test_docs.yaml
format.yaml
deploy_docs.yaml

I guess this can be merged into master. All checks have passed.


tracking torch.compile compatibility with cpu offloading

Your current environment
N/A
Model Input Dumps
No response
🐛 Describe the bug
When we use cpu offloading together with torch.compile, it will error:
torch._dynamo.exc.Unsupported: builtin: setattr [<class 'torch._dynamo.variables.dicts.ConstDictVariable'>, <class 'torch._dynamo.variables.constant.ConstantVariable'>, <class 'torch._dynamo.variables.dicts.ConstDictVariable'>] False

The error is caused by this line:
https://github.com/vllm-project/vllm/blob/49628fe13e1021ce036bbae257242ab71e40aa25/vllm/model_executor/models/utils.py#L482
Creating a state dict during forward will error.
I tried another approach of using tensor subclasses in https://github.com/vllm-project/vllm/pull/10609 . It works well for unquantized models, but does not work for quantized models.
The problem with quantized models, is that we have some classes inherits torch.nn.Parameter, e.g.
https://github.com/vllm-project/vllm/blob/49628fe13e1021ce036bbae257242ab71e40aa25/vllm/model_executor/parameter.py#L19
Using both tensor subclasses and parameter subclasses is a known problem in pytorch. See https://github.com/albanD/subclass_zoo/blob/main/custom_parameter.py for example.
To make torch.compile compatible with cpu offloading and quantization, we need to refactor the weight loading logic and how we create/store weights.
Take the GPTQ linear layer for example:
        qweight = PackedvLLMParameter(
            data=torch.empty(
                input_size_per_partition // self.quant_config.pack_factor,
                output_size_per_partition,
                dtype=torch.int32,
            ),
            input_dim=0,
            output_dim=1,
            packed_dim=0,
            packed_factor=self.quant_config.pack_factor,
            weight_loader=weight_loader)

We should avoid using nn.Parameter, and directly register the tensor as buffer:
self.qweight = torch.empty(
                input_size_per_partition // self.quant_config.pack_factor,
                output_size_per_partition,
                dtype=torch.int32,
            )
self.qweight.weight_loader = weight_loader
self.qweight_packed_factor = self.quant_config.pack_factor

The key ideas are:

No nn.Parameter, no class inheritance. We directly assign a tensor to the module. The tensor should be registered as a buffer.
Every tensor can have a weight_loader attribute. We can bind arguments needed for weight loading, e.g. self.qweight.weight_loader = partial(generic_weight_loader, args)
For the information we need during runtime (i.e. computing the forward pass), we store them in the module object, e.g. self.qweight_packed_factor = self.quant_config.pack_factor.

With all these changes, we should be able to use cpu offloading with quantization and torch.compile .
Before submitting a new issue...

[X] Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

cc @dsikka

Hey @youkaichao - are there any specific quantization methods that are failing? We ran into this problem when originally refactoring the quantization parameters. Inside process_weights_after_loading, we actually save the loaded weights into a raw nn.Parameter - is this code not run during cpu offloading?

the issue is quite complicated.

the current cpu offloading method is not compatible with torch.compile . this is not relevant to quantization. any user using cpu offloading cannot use torch.compile .
To solve the compatibility, I'm investigating the tensor subclasses approach in #10609 . It works for unquantized models, but does not work for quantization.
To get the full compatibility of torch.compile + cpu offloading + quantization, we need to refactor the quantization weight loading logic.

we actually save the loaded weights into a raw nn.Parameter

Although we reset the loaded weights into a raw nn.Parameter later, it turns out tensor subclasses initialization is quite complicated. The moment we create PackedvLLMParameter, there are something we don't want happening.


Meeting Agenda #4 - December 21, 2021

Please note that due to the Christmas holiday on December 25, we are moving this month's meeting to Tuesday, December 21!
Please leave comments on what items should be included for discussion for this meeting:
Agenda

Announcements & Reminders
Stale Pull Requests Review
Q&A about Upcoming Features
New Ideas/Proposals that need traction/attention (that already have an Issue or Discussion Open)
Q&A and FYI about Developer Experience
Open Discussion & Forum

Please include a link to any issue or PR that you wish to discuss.

Announcements: Nautobot 1.2.0/1.2.1 released, have begun development toward 1.3.0.
Stale PRs: none needing a callout at this time. We'll re-review open PRs (especially draft ones) now that 1.2.0 is out the door.
Upcoming features (https://github.com/nautobot/nautobot/issues?q=is%3Aopen+is%3Aissue+milestone%3A"v1.3.0+", though we probably need to prune this list somewhat)

Unified Device/VM data model (https://github.com/nautobot/nautobot/issues/1178)
Lots of refinements to Jobs UI/UX (various issues)
Enhanced IPAM model relationships (https://github.com/nautobot/nautobot/issues/1032)
Dynamic object groups (https://github.com/nautobot/nautobot/issues/896)
Notes (https://github.com/nautobot/nautobot/issues/767)

New Ideas/Proposals

"I wish" feedback link (https://github.com/nautobot/nautobot/issues/1175)

Minutes: #17.


--grid-size is not recognized

I'm following the CLI tiling example quite literally, but it returns datum: error: unrecognized arguments: --grid-size, even though running datum transform -t tile says that --grid-size is required:
usage: tile [-h] --grid-size N_ROWS N_COLS [--overlap PERC_HEIGHT PERC_WIDTH] [--threshold-drop-ann THRESHOLD_DROP_ANN]
tile: error: the following arguments are required: --grid-size

What am I missing here?

following the Python package example raises NotImplementedError when trying to save the tiled images:
Traceback (most recent call last):
  File "/home/ims/.cache/pypoetry/virtualenvs/individualizacao-54J0ewh6-py3.8/lib/python3.8/site-packages/datumaro/plugins/data_formats/coco/exporter.py", line 900, in _apply_impl
    self._save_image(
  File "/home/ims/.cache/pypoetry/virtualenvs/individualizacao-54J0ewh6-py3.8/lib/python3.8/site-packages/datumaro/components/exporter.py", line 277, in _save_image
    item.media.save(path, crypter=crypter)
  File "/home/ims/.cache/pypoetry/virtualenvs/individualizacao-54J0ewh6-py3.8/lib/python3.8/site-packages/datumaro/components/media.py", line 142, in save
    raise NotImplementedError
NotImplementedError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/mnt/d/dev/individualizacao/tile.py", line 36, in <module>
    tiled_dataset.export(dataset_path + "/tiled", "coco", save_media=True)
  File "/home/ims/.cache/pypoetry/virtualenvs/individualizacao-54J0ewh6-py3.8/lib/python3.8/site-packages/datumaro/util/scope.py", line 158, in wrapped_func
    ret_val = func(*args, **kwargs)
  File "/home/ims/.cache/pypoetry/virtualenvs/individualizacao-54J0ewh6-py3.8/lib/python3.8/site-packages/datumaro/components/dataset.py", line 633, in export
    raise e.__cause__
datumaro.components.errors.ItemExportError: Failed to export item ('P012V001-0237_tile_0', 'default')

Hi @martimpassos, Thanks for your interest on our project.
Sorry for inconvenience. It seems because we have missed updating tiling part to the latest as well. We acknowledged it and will try to resolve it as soon as possible.

There were two problems on this:

Saving the tiled image (RoIImageFromFile) has not been working properly.
Documentation for CLI usage of Tile transform has not been not correct.

You should insert a double dash between -t tile and --grid-size, such as, datum transform -t tile -- --grid-size 3 2 --overlap 0.1 0.1 --threshold-drop-ann 0.1. This is because --grid-size ... are dedicated arguments for TileTransform not for datum transform. Please see datum transform --help for more details.

Therefore, to fix this issue, we will merge https://github.com/openvinotoolkit/datumaro/pull/1123 to the develop and it will be released to the next version. If you want to use it before the future release, you can install Datumaro from the source with following this guide: https://github.com/openvinotoolkit/datumaro/blob/develop/contributing.md.
Thanks!

Thanks a lot!

@wonjuleee, Could we make a bug-fix release for this?

@wonjuleee, Could we make a bug-fix release for this?

Thanks @vinnamkim for your quick execution. We plan to have a regular release 1.5.0 in the mid of next month (September). @martimpassos, please wait 1.5.0 or I suggest you to install from the develop branch for a while.

Closed this issue since Datumaro 1.5.0 version was released.


reordered list alphabetically

makes it easier to find links for specific languages, etc.

Duplicate of https://github.com/sindresorhus/awesome/pull/150, https://github.com/sindresorhus/awesome/pull/201, https://github.com/sindresorhus/awesome/pull/7 and https://github.com/sindresorhus/awesome/issues/216.


Compile Error: b''

Getting the below error on Win10 x64 with latest Python 3.9.2:
python builder.py -s c:\temp\shellcode.bin -p {redacted} -o c:\temp\shellcode.exe
[i] Key, IV Generation:       Successful
   [+] Key:   76a4bdc4d17ef05116bd8c122841aef093e75eb701ff68628ceece84ce37e547
   [+] IV:            871b56e90419ec41c0e01fd6bd93a589
   [+] Salt:  b35a686992959641a2668b9d731c567d
[i] Encrypt Shellcode:        Successful
[i] Variable Swap:    Successful
Compile Error: b''

this is also true of PoshC2 shellcode. See beow.

I'm very confident this is due to the sizing issue seen here. I will test it on my end. If either of you (@mrothbart @dlimanov ) could send your shellcode that is throwing this exception, I would greatly appreciate it.

I'm using a default Covenant shellcode payload. Let me know what's the best way to send it to you.

Same with default PoshC2 shellcode. I linked the repo in my comment so you can generate it yourself and use the excellent framework. I am of course happy to send it to you as well. What's the best way to send it over?

@mrothbart try: https://github.com/cribdragg3r/Alaris/tree/builder_patch

Same here:
python.exe builder.py -s c:\temp\GruntHTTP.bin -p pass123 -o c:\temp
[i] Key, IV Generation:       Successful
   [+] Key:   f4a76d3b9d980a3db3a6c73367c67941f97a9e6f94ddb4c82ee83c63500cc47e
   [+] IV:            d893325678310dace7599153baf5cdf2
   [+] Salt:  3941242bb17da618b20aff44c4571b8a
[i] Encrypt Shellcode:        Successful
[!] Shellcode Too Large, a string can't be longer than 16380 single-byte characters.
[i] https://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/compiler-error-c2026?view=msvc-160&viewFallbackFrom=vs-2019

Okay, that's expected behavior. I will review the MSDN docs tonight and see if there isn't a easy way around this by breaking up the string.

@mrothbart @dlimanov  This "Should" fix it, mind having a go to test on your system? https://github.com/cribdragg3r/Alaris/tree/builder_patch

You're on the builder_patch branch?

I'm not having the same issues on my end which, is odd. I thought for sure when I hit the max string size of 65,535 bytes I would get the same exception but I'm not. Could you check the loader.cpp source to see how big the shellcode string object is?

Mine is 222596 for some reason.
Posh_v4_x64_Shellcode.zip
I've uploaded my posh shellcode here. The password is alaris
You should use 7z to unzip it as it is aes and not zip crypto.
If this shellcode works for you, then there is a local issue that we need to pin down.

If you like I can upload my loader.cpp tomorrow as well.

New builder_batch worked for me, was able to generate a binary from a 43kb shellcode.

Yeah that doesn't hit the 65k limit like the posh shellcode does.


Uncaught AuthenticationError in exception_mapping_utils.py line 310

Aider version: 0.62.1
Python version: 3.11.5
Platform: macOS-15.0.1-arm64-arm-64bit
Python implementation: CPython
Virtual environment: No
OS: Darwin 24.0.0 (64bit)
Git version: git version 2.47.0
An uncaught exception occurred:
Traceback (most recent call last):
  File "openai.py", line 854, in completion
    raise e
  File "openai.py", line 767, in completion
    openai_client: OpenAI = self._get_openai_client(  # type: ignore
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "openai.py", line 575, in _get_openai_client
    _new_client = OpenAI(
                  ^^^^^^^
  File "_client.py", line 105, in __init__
    raise OpenAIError(
openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 1587, in completion
    raise e
  File "main.py", line 1560, in completion
    response = openai_chat_completions.completion(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "openai.py", line 864, in completion
    raise OpenAIError(
litellm.llms.OpenAI.openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "aider", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 827, in main
    coder.run()
  File "base_coder.py", line 738, in run
    self.run_one(user_message, preproc)
  File "base_coder.py", line 781, in run_one
    list(self.send_message(message))
  File "base_coder.py", line 1278, in send_message
    saved_message = self.auto_commit(edited)
                    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "base_coder.py", line 1979, in auto_commit
    res = self.repo.commit(fnames=edited, context=context, aider_edits=True)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "repo.py", line 110, in commit
    commit_message = self.get_commit_message(diffs, context)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "repo.py", line 195, in get_commit_message
    commit_message = simple_send_with_retries(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "sendchat.py", line 118, in simple_send_with_retries
    _hash, response = send_completion(**kwargs)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "sendchat.py", line 98, in send_completion
    res = litellm.completion(**kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "utils.py", line 1013, in wrapper
    raise e
  File "utils.py", line 903, in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "main.py", line 2999, in completion
    raise exception_type(
          ^^^^^^^^^^^^^^^
  File "exception_mapping_utils.py", line 2116, in exception_type
    raise e
  File "exception_mapping_utils.py", line 310, in exception_type
    raise AuthenticationError(
litellm.exceptions.AuthenticationError: litellm.AuthenticationError: AuthenticationError: OpenAIException - The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable

Thanks for trying aider and filing this issue. The API provider denied your key, but aider should handle this more gracefully.
The fix is available in the main branch. You can get it by installing the latest version from github:
aider --install-main-branch

# or...

python -m pip install --upgrade --upgrade-strategy only-if-needed git+https://github.com/Aider-AI/aider.git

If you have a chance to try it, let me know if it works better for you. I'm going to close this issue for now, but feel free to add a comment here and I will re-open. Or feel free to file a new issue any time.


README Compliance

Add READMEs to each cog.

This issue will stay open for some time, whilst I document each cog.

This issue will stay open for some time, whilst I document each cog.

This is something which cannot be committed to due to time constraints. Docs will continue in their own time with no immediate rush to get them completed.


DAtawedge NG Simulscan

I've been trying Zebra NG Simulscan.
I manage to get response from Datawedge.
Using C# I'm unable to extract data from the response I receive.
Using java I get a bundle with several bundles according to the number of barcode I scanned.
But using  C# after this instruction
var myObject1 = intent.GetSerializableExtra("com.symbol.datawedge.barcodes");
var myObject1  gets an structure wich I' unable to extract usefull information

Do you have any idea how to treat this in order to get useful information?
Thanks
Fernando

This is what I get using Java with Android Studio

Hi Nicola.
It worked.
Thank you for your help, again.


To cyclically (clockwise) rotate a list of integers by N, Python, CP

💥 Proposal
Given a list of integers, cyclically rotate the list clockwise by N
Example:
Input: [1, 2, 3, 4, 5]
Output: [5, 1, 2, 3, 4]
The list is rotated by 1
Have you read the Contributing Guidelines on Pull Requests?
(Yes)

I would like to work on this proposal

I would like to work for java and c++under DWOC.
please assign to me

@atarax665

I would like to work on this proposal under DWOC

Go ahead @chicken-biryani


npm ERR! 500 Internal Server Error<EMAIL_ADDRESS>

Hi @pekeler ,
I'm using the<EMAIL_ADDRESS>package in a Meteor.sj project. But during npm install the package server is giving me a 500.
Has this issue been reported this far?
Error log
$ npm install
npm ERR! code E500
npm ERR! 500 Internal Server Error<EMAIL_ADDRESS>
npm ERR! A complete log of this run can be found in:

same issues..

Any solutions?

@suhasgavad i have the same issue but your solution do not work :(

@muraliakula my solution was remove all nodejs and npm, and install newly how ?
In my case in linux:
Using Command which type: => Which node
/usr/lib/nodejs/
then
sudo rm -rf /usr/lib/nodejs/*
and Install nodejs newly
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - sudo apt-get install -y nodejs

I was also facing the same issue for 2-3 hours. I just switched my network provider it worked. Wierd but it work.
I had got this error before:
npm ERR! code E500
npm ERR! 500 Internal Server Error: passport-local-mongoose@latest

E500
npm ERR! 500 Internal Server Error - PUT https://npm.pkg.github.com/@my-scope%2Fmy-repo - Internal Server Error
👍 2