Feature request : Media Embed when Image/video are not available via OpenGraph

I have an odd RSS feed, it's constructed out of Twitter/X users, only their media posts, using RSShub (no API usage)
The original RSS feeds looks like this : https://rsshub.app/twitter/media/Defmon3/
I aggregate many osint users into one inoreader folder and the RSS looks like this :
RSS https://www.inoreader.com/stream/user/1005072895/tag/OSINTbridge/
JSON https://www.inoreader.com/stream/user/1005072895/tag/OSINTbridge/view/json
HTML view : https://www.inoreader.com/stream/user/1005072895/tag/OSINTbridge/view/html?t=OSINTbridge&cs=m&sb=y
In a Inoreader usecase such as this one, the media file is on the description field of the RSS feed
I tried to fetch this link and store it in a  item inside the RSS channel
but I didn't manage to be able to post image/videos from this field
This feed is taken from the JSON link above and I manipulate it with N8N to construct the RSS feed the way I want
I removed the media elements from my feed, so that the bluesky bot can post using the description field safely.
https://webhook.ukrainewararchive.eu/webhook/osint.rss
So I was wondering, would it be complicated, doable to default on the media link (video or image) on the Description field if there is nothing to fetch on the OpenGraph meta of the source link ?
Secondary question : would Bluesky API allow to upload media files from the enclosure item of an RSS feed ?
(going to explore this question reading their doc, but perhaps you have some idea about this already)

In the new queue branch, I have it set to take metadata information from the RSS feed if OpenGraph data is not available. The RSS spec does have a field for images, but I don't know of a lot of feeds that use it.
I didn't fully understand, but I think this is my answer to what you were asking: It would be sort of complicated to scan the description field for media links and then feed those to Bluesky. I don't think that there are a lot of use cases where that would be needed, so it wouldn't be worth adding it. Now, you could use/make something that looks at the RSS feed, and then creates a new RSS feed with the <image> tag and then fee that to the bot, and I can add support for the image tag.
Hopefully, I understood that right. Correct me if I got anything wrong.

Yes you got me right, and your proposal should work, I could reformat the rss feed to get the media URL to be an  element tag, I will work on a demo RSS feed and paste it here once I'm done

I tried to replicate this with this bot
RSS feed has an enclosure tag with even the size of the images, I'm wondering if this could be integrated
view-source:rappel.conso.gouv.fr/rss  not sure it's very standard, but I'm seeing this in a bunch of different feeds for images tho
I also tried to recondition this RSS feed by having the enclosure image url content wrapped into an  tag but I had issues with my reconstructed feed with the datefield not being found (all tho I was using pubDate)

Can you send me the example for one of your reconstructed items in the RSS feed?

Can you send me the example for one of your reconstructed items in the RSS feed?

Here is the link

check this out, I was talking to a contact about this issue for this particular RSS feed and he went on and added a new Config option for images, is this how you would play out this request?
https://github.com/garaytc/bsky.rss/commit/2a4e0cb4168a4dee9cf5077b8f274a82ffb45a99

Feature added to queue branch with the use of imageField: ""

So this is working (and it works with anything (media:content on my reconstructed RSS feed, or enclosure from a vanilla RSS feed) BUT
But some reasons, I'm not seeing the pooling/queuing system at work, it fetched new items and posted them right away and so overflown the limit with this error :
bsky-rss-sciencesFR  | (node:30) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 22 terminated listeners added to [Fetch]. Use emitter.setMaxListeners() to increase limit
bsky-rss-sciencesFR  | (Use `node --trace-warnings ...` to show where the warning was created)
bsky-rss-sciencesFR  | /build/node_modules/@atproto/xrpc/src/client.ts:126
bsky-rss-sciencesFR  |         throw new XRPCError(resCode, res.body.error, res.body.message)
bsky-rss-sciencesFR  |               ^
bsky-rss-sciencesFR  | XRPCError: too many concurrent writes
bsky-rss-sciencesFR  |     at ServiceClient.call (/build/node_modules/@atproto/xrpc/src/client.ts:126:15)
bsky-rss-sciencesFR  |     at processTicksAndRejections (node:internal/process/task_queues:95:5)
bsky-rss-sciencesFR  |     at async PostRecord.create (/build/node_modules/@atproto/api/src/client/index.ts:1519:17) {
bsky-rss-sciencesFR  |   status: 400,
bsky-rss-sciencesFR  |   error: 'ConcurrentWrites',
bsky-rss-sciencesFR  |   success: false
bsky-rss-sciencesFR  | }
bsky-rss-sciencesFR  | error Command failed with exit code 1.
bsky-rss-sciencesFR  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Just found a case, with this RSS feed, that when using the imageField config, even tho the image is present in the feed, it does not get posted but also does not generate any error.
I used enclosure as image field, the same way I used it with this feed which is working hust fine, both use the enclosure tag for images

I cannot replicate the rate-limiting issue, using https://feeds.simplecast.com/54nAGcIl (and posting all of that to Bluesky). I'll look into the imageField issue.

Found my issue, I accidentally did a docker build -t my-docker image . inside a git repo on the main branch, and called it bsky-queue and then used this imade on different bots, basically creating my own problem while testing it!!!
So, the queue branch is fine, along with the ImageField, it's all working perfectly and sites/RSS that previously did not have images are now able to post with images just fine.

just clarify on this, this this error only happened because the bot was running on the main branch, my bad.

Ah, I see.

One thing, after testing with some other uses case,
I think it would be best if the fetching of the image was outside the opengraph loop
can be reproduced with this feed : https://reporterre.net/spip.php?page=backend-simple

Yes, we definitely need to change how the first image option is taken, it should be OpenGraph first and if not, then enclosure

Moved the image fetching for RSS-provided images outside of the Open Graph fetching on the latest commit to the queue branch.
As for parsing for img src in descriptions of feeds, like I've stated before that's not in-spec at all, so I don't see it making sense to add it. Personally, I've not come across many, if at all, any feeds that do that. If you would like to get images from the description, I'd suggest fetching the feed and rewriting the data in a standard format, or creating a PR with your suggested implementation of this.

Alright, will probably be going to the route of rewriting these RSS feeds for the feed concerned (French & Belgian media CMS's with odd implementation of RSS specs)
Thanks very much !

Moved the image fetching for RSS-provided images outside of the Open Graph fetching on the latest commit to the queue branch.
As for parsing for img src in descriptions of feeds, like I've stated before that's not in-spec at all, so I don't see it making sense to add it. Personally, I've not come across many, if at all, any feeds that do that. If you would like to get images from the description, I'd suggest fetching the feed and rewriting the data in a standard format, or creating a PR with your suggested implementation of this.

I have tried this on a few bots, but with or without "imageField": "enclosure" I can't get it to pick the OpenGraph like it used to, so I end up with no images at all, even if the queue is working properly.

Odd, mind giving me the RSS feed you're using?

[Sat, 26 Aug 2023 19:14:02 GMT] - [bsky.rss QUEUE] Queuing item (In case anyone wanted a good laugh this morning)
/build/app/utils/rssHandler.ts:63
        let imageUrl: string = openGraphData.ogImage[0].url;
                                             ^
TypeError: Cannot read properties of undefined (reading '0')
    at FeedSub.<anonymous> (/build/app/utils/rssHandler.ts:63:46)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v18.17.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.22.19
$ tsx ./app/index.ts
[Sat, 26 Aug 2023 19:14:22 GMT] - [bsky.rss APP] Started RSS reader. Fetching from https://www.inoreader.com/stream/user/1004571328/tag/Trump

RSS  feed

Should be fixed now

Should be fixed now

No more errors, but no images embed, on the last git pull & rebuilt local docker image

Can you send me your config.json?

config.json for this bot
`{
"string": "$title",
"publishEmbed": true,
"languages": ["en"],
"truncate": true,
"runInterval": 60,
"imageField": "enclosure",
"dateField": ""
}
`

The RSS feed you provided doesn't have an enclosure feed for items, and when you provide a value for imageField in the config, the application looks for that and ignores Open Graph images.

The RSS feed you provided doesn't have an enclosure feed for items, and when you provide a value for imageField in the config, the application looks for that and ignores Open Graph images.

Ohh it ignores it? I thought it was checking one or the other, but OpenGraph first
ok, so if my feed is not concerned by missing opengraph tags, I should not be using the new Imagefield, correct ?

imageField should only be used if you want to strictly take images from the RSS feed posts and never from Open Graph. If the feed doesn't consistently post images, then using Open Graph to fetch images will probably be a better option than using imageField

Understood !
I'm testing now without imageField, using :
`image: ghcr.io/milanmdev/bsky.rss:queue-2d5e0b6`

Output
RSS feed

{
  "string": "$title",
  "publishEmbed": true,
  "languages": ["en"],
  "truncate": true,
  "runInterval": 60,
  "dateField": ""
}

Same issue basically than with the Trump bot here

Can you send me your config.json? Posts were working fine for me.

So I moved all my bots to your image, removed any imageField from config.json, unless the feed is unique and has an enclosure for image on its own, then I docker-compose up and it's all getting posted, but no image where there was images previously, before the imagefield was merged I guess ?
here or here or here
for each of these, the config.json is equal to https://github.com/milanmdev/bsky.rss/issues/27#issuecomment-1694494723

Pushed a fix. Available in ghcr.io/milanmdev/bsky.rss:queue-002738b

Pushed a fix. Available in ghcr.io/milanmdev/bsky.rss:queue-002738b

Thanks a lot for the fixes!!, redeployed with this image and it's now properly running, with images !

Confirm that everything is running neat also on my side, beside two multi-feeds, that have sources with their own lack of OpenGraph support
producing this error :

[Sun, 27 Aug 2023 11:57:18 GMT] - [bsky.rss QUEUE] Starting queue handler. Running every 60 seconds
/build/app/utils/rssHandler.ts:64
          let imageUrl: string = openGraphData.ogImage[0].url;
                                               ^
TypeError: Cannot read properties of undefined (reading '0')
    at FeedSub.<anonymous> (/build/app/utils/rssHandler.ts:64:48)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v18.17.1
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.

Which second @garaytc can be fixed with this PR https://github.com/milanmdev/bsky.rss/pull/37

Tested @garaytc queue branch directly and it does fix this issue. (he's yet to push to here though)


lxd/storage_*bit.go add build tags for s390(x)

Signed-off-by: Dimitri John Ledkov<EMAIL_ADDRESS>

This pull request didn't trigger Jenkins as its author isn't in the whitelist.
An organization member must perform one of the following:

To have this branch tested by Jenkins, use the "ok to test" command.
To have a one time test done, use the "test this please" command.

Those commands are simple Github comments of the format: "jenkins: COMMAND"

jenkins: ok to test


Compare with other sprites plugin in docs

Hi @ai , the reason that conducted us to build postcss-cyspriter basically is that doesn't exist something similar for postcss.
We searched a lot and for much time but without fortune.
We built this plugin thinking about compass spriting, the our goal was (is) to have something that makes spriting immediate, readable.
By the way,
open source software is focused on contribution and if you know something similar or you have any idea that helps to make documentation or software better we'll appreciate :)

We have even two sprites plugin:
https://github.com/glebmachine/postcss-easysprites
https://github.com/2createStudio/postcss-sprites
So user will be glad if yoou write clear what is yur benefits and difference.


Django runserver.  PYTHONPATH empty.

(base) markdavis@macbook mysite_proj_220224h % python3 manage.py runserver
Traceback (most recent call last):
File "/Users/md/data/dev/web+css+html+django/mysite_proj_220224h/manage.py", line 11, in main
Traceback (most recent call last):
File "/Users/md/data/dev/web+css+html+django/mysite_proj_220224h/manage.py", line 11, in main
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/md/data/dev/web+css+html+django/mysite_proj_220224h/manage.py", line 22, in
main()
File "/Users/md/data/dev/web+css+html+django/mysite_proj_220224h/manage.py", line 13, in main
raise ImportError(
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?

Thanks for the bug report, but unfortunately, we need some more information from you in order to triage this issue appropriately. Please follow instructions here to create a new bug with all the critical details we need for diagnosis.


LanguageServer Error

I'm running this extension for the first time, and it's not working. On my statusbar, I see Starting LS Julia, and after a while duplicates of this will form. In addition, when I :CocInfo I get the following:
## Output channel: Julia Language Server Trace
ERROR:
MethodError: no method matching Union{Int64, String}(::String)

Stacktrace:

 [1]
LanguageServer.InitializeParams
(
::
Dict{
String,Any}) at /home/samueltwallace/.julia/packages/LanguageServer/mpNvN/src/protocol/initialize.jl:111
 [2] parse_params(::Type{Val{
:
initialize}}, ::
Dict{String,Any}) at /home/samueltwallace/.julia/packages/LanguageServer/mpNvN/src/requests/init.jl:123
 [3] parse(::Type{
LanguageServer.JSONRPC.Request
}, ::Dict{String,Any}) at /home/samueltwallace/.julia/packages/LanguageServer/mpNvN/src/jsonrpc.jl:46
 [4] run(::LanguageServerInstance) at /home/samueltwallace/.julia/packages/LanguageServer/mpNvN/src/languageserverinstance.jl:246
 [5] top-level scope at none:1
[Info  - 11:51:51 PM] Connection to server got closed. Server will restart.
[Error  - 11:51:51 PM] /usr/bin/julia exited with code: 1

Closed, as this isn't a coc-julia problem.


.NET 3.5 support

Install-Package : Could not install package 'Bugsnag <IP_ADDRESS>'. You are trying to install this package into a project that targets '.NETFramework,Version=v3.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:1

Install-Package Bugsnag

CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

Potentially there's a solution in https://docs.nuget.org/Create/Enforced-Package-Conventions#supporting-multiple-.net-framework-versions-and-profiles.

Fix landed in master


ScopeProvider error when injecting $scope into a controller when using v0.5

I'm seeing a scope provider error with v0.5 of new Angular Router (n.b. it didn't seem to be present in v0.4).
The error message is:
[$injector:unpr] Unknown provider: $scopeProvider <- $scope <- TestController↵http://errors.angularjs.org/1.4.0-beta.6/$injector/unpr?p0=%24scopeProvider%20%3C-%20%24scope%20%3C-%20TestController
n.b. This error is swallowed and displays only as a warning "Could not instantiate controller TestController" in the console.
I've created a Plunker that demonstrates the issue at http://plnkr.co/edit/dPaCCogHwNYjgvyvTP9R?p=preview.
The Error only occurs when $scope is injected into the Test Controller.
If I remove the $scope injection from the controller, I then see no errors.

This feels like a major bugg, unless 1.4 plans to move $watch etc away from the $scope.

Yep, this is a bug. I'll look into it this afternoon.

Just tried to adopt 0.5.0 and ran into this issue.
I really enjoy this router and want to say thanks for all your work, @btford. It's nice code to learn from.
I'm keen to hear when this is fixed or you have an update. Thanks again!

Just an added comment to try to help narrow this issue down.  Commit a6166ff works fine for me, but commit b9321e6 shows up the same error as mentioned above with routeProvider not being found.  Hope that helps!

So it's a bit complicated to explain, but ctrl.activate is the right place to get ahold of $scope.
I'll update the Lifecycle docs with more on this soon.

can you give us a quick example on how to access scope from ctrl.activate ?

@btford Is it how it's going to be? Am I missing something?
var SomeController = ['$rootScope', function ($rootScope) {
	var $scope;

	this.activate = ['$scope', function (scope) {
		$scope = scope;
		this._init();
	}];

	this._init = function () {
		// all the $scope are belong to us
	};

}];

Yep, scope isn't a provider and not deserve a mere injection, but I personally find it a bit too much. Unless it is being planned as a common behaviour for all 1.4 controllers, then sure, syntactic bitter all the way.

I just ran into this. Is it covered in the docs yet? I didn't see anything here https://angular.github.io/router/lifecycle but not sure if it's covered somewhere else. This could also use a more descriptive error message as it will probably come up a lot.
Other than this the new router has been working out great for me. Thanks @btford !

So two controllers cannot share a common state unless a single common controller is defined in the router, using the "components:" syntax?  Fairly common in plural/detail scenarios.
/pluralthings
/singularthing/1
when there is a common list of things accessible to a controller.  What is the best practice in this context.

Hello!
Check it out http://donnaguyler.com/near.php?1mb
<EMAIL_ADDRESS>

NEWER ANSWER
With the new router the controller gets initiated before the child scope is being created.
The child scope (the controller's scope) is created when the activate method is being called - that is - after the actual compilation of the view is finished. Therefore, it is simple impossible the inject $scope - it is simple created later.
Long story made short...
There is a better, built-in solution for this.

Instead of assigning your properties to the non-existing-yet $scope, simply assign them on the "this" variable - the controller instance variable. Then on the view, you can use them by referring the controller name:
angular.module('app.home').controller('HomeController', HomeController);

function HomeController() {
    this.name = "tomer";
}

And now on the template html:
<div>
    <h1>{{home.name}}
</div>

Makes sense?

Hi. Yeah. It makes sense. But is there a way to access it in the view by directly writing name? Without the home prefix? I find this a bit much typing home. everything over and over again.


chapter-4/2-similarity-search-level-3.ipynb Accuracy calculation on 2048 dim is too slow

It is taking ~40 minutes on my CPU which is unbearable.
Why not use numpy?
class_ids was pickled but not used.
Here's the full code, takes < 1 second (i didn't wrap in function or multiply accuracy by 100)
class_ids = pickle.load(open('features/class_ids-caltech101.pickle', 'rb'))

neighbors = NearestNeighbors(n_neighbors=5,
                             algorithm='brute',
                             metric='euclidean').fit(feature_list_compressed)

distances, np_indices = neighbors.kneighbors(feature_list_compressed)

neighbors_class_ids = class_ids[np_indices]
class_equalities = np.equal(neighbors_class_ids[:, [0]], neighbors_class_ids[:, 1:5])
class_equalities.mean()

Thanks! Can you send this as a PR?


Function to delete entity?

Is there a delete entity function?

Oops, I am sorry, we haven't need it yet, so no, pyodata lacks the delete feature. Do you want to contribute and open a PR adding support?
We need to add the wrapper function to class EntityProxy:
https://github.com/SAP/python-pyodata/blob/master/pyodata/v2/service.py#L679
and we need a new class EntityDeleteRequest inheriting from the class ODataHttpRequest. There are already classes from EntityModifyRequest, EntityCreateRequest, and EntityGetRequest.

I think the wrapper function 'delete_entity' should be added to the class EntitySetProxy rather to the EntityProxy. Are there any reasons why to separate this functionality from the rest of 'REST' functions? Also, we could do both as I see an added benefit in calling MyInstance.delete

Correct, use EntitySetProxy.

@qcdhl Hi, I created PR https://github.com/SAP/python-pyodata/pull/57, which should add requested functionality to our lib. Would it be possible for you to test the new code?

@mamiksik Hi, I have tested in my system. It works. Thank you!


Can't delete individual guide line

Hi, thank you for making such a wonderful ruler script. It works fine all leading browsers. Can you please add a function to delete individual guide line. Thank you

I want to use this library as it is provides the exact solution to my problem. Just one shortcoming I am facing is this issue. Any hopes this will get fixed?


File size getting added after each 64 characters

Hello,
I am writing a set of characters in one file and reading them back.
After reading, I have found that the read size is getting added  in the file after each 64 characters.
eg. I am writing 0x31, 0x32,.....,0x38 multiple times until file size is 2KB
After reading, I am getting this,
0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38
0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38
0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38
0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38
0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38
0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38
0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38
0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38
0xC0 0x07 0x0A
0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38
0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38
0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38
0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38
0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38
0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38
0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38
0x31 0x32 0x33 0x34 0x35 0x36 0x37 0x38
0x0A
Has anyone came across this situation?
How you have fixed it?

It seems extremely unlikely that this is a littleFs problem - if you look at the number of people successfully using littleFs, and the detailed testing others have done, a fundamental problem like this would surely have been found already.
So I suggest you have a very close look at your code, and if you can't see the problem then add details of your configuration and code here.
The "0x0A" value suggests that maybe you are writing data using writeln() or similar, since its an end of line character.

@e107steved : My bad..
I was adding a read length into the print buffer using some other function.
Now I have fixed it.


Video example

Hello.
Where can I see sample videos created by this robot?
Share someone a link to the finished videos).
Thank you.

Hi,
I used this robot a year ago and tested it but I already deleted the YouTube channel.
I do not have videos to share but you can configure it with your channel and see it.
Hope that helped.
Thanks.


feat(actor): allow async initialStateFunc

Add the ability to supply an actor with an async initialStateFunc
Description

This change includes:

Changing the type of the initialStateFunc for Actor to include functions that return a Promise<State>
Add Actor#waitUntilInitialized to wait until the state has been initialized
Calling waitUntilInitialized as part of Actor#handleMessage to prevent processing messages until the initialize function is called
Add unit tests to test using async initialStateFunc both under normal circumstances and when throwing an error

Related Issue

Motivation and Context

This allows for Actors have state that is initialized asynchronously. This functional example that this was added to solve is having an actor that relies on some feature flag value that can only be retrieved using an asynchronous function.
How Has This Been Tested?

I have added unit tests to test that the dispatch works correctly when using an asynchronous initialStateFunc. Similarly, I've added a unit test to make sure that if an error is thrown in an asynchronous initialStateFunc it will call the onCrash handler correctly.
Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

LGTM


Setup GitHub Action workflow

Create .github/workflows/twitter-together.yml to setup a new GitHub Action workflow for twitter-together
Refer https://github.com/gr2m/twitter-together/blob/master/docs/02-create-twitter-together-workflow.md for content of the twitter-together.yml file.
Required secrets are already added to this repo by @saiyam1814:

/assign

/assign

Resolved by #3


Drop support for Python 3.7 (EOL since June 2023)

See: https://endoflife.date/python

Codecov Report
Patch has no changes to coverable lines.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:loudspeaker: Thoughts on this report? Let us know!.


Mono/Linux support, SerialPortStream DTR handshaking

I was trying to modify ArduinoSketchUploader to work with Mono/Linux but apparently a dependency (SerialPortStream) does not support DTR and DSR handshaking causing it to fail safely under Linux (the DTR not supported error is handled in SerialPortStream, so the application does not crash, it just logs a "DTRhandshaking not supported" message and does nothing), I was going to open an issue over at the SerialPortStream repo but figured I should get some info here first.
How would I go about porting ArduinoSketchUploader back to System.IO.Ports or is it possible to get ArduinoSketchUploader working without DTR?
I looked into SerialPortStream's source and saw that they use a helper native library (over here) in unix to work with the serial port, would it be the correct approach for me to plug another library with DTR support (such as this one) in place of their helper library to get DTR handshaking working?

Hi @blahlicus,
Thank you for your interest in this library! Sorry it took me so long to respond, I had a couple of very intense months at work, and the open source stuff always gets pushed out then.
Proper .NET Core (cross platform) has been requested a couple of times already. Even with the evolving .NET Core ecosystem, as far as I know there's still no reasonable cross platform "drop in replacement" for what the default .NET Framework SerialPort provides (from an interface perspective). For the longest time, SerialPortStream (the current dependency) seemed to be the very best bet, but it definitely still has issues of it's own (on anything other than Windows).
I have created a separate experimental branch (netcore-support), so feel free to play around with it!


[Docs]: Add a Contributing Guide

You can copy this contributing guide and just check if all the links work, may need a few changes because this is not on the same ORG (Links might be broken 😬)

I'd like to carry out this task
Kindly assign it to me


Fix Travis

llvm-apt went and exploded, so I need to reconfigure travis to behave
I also need to repair the install_os_deps, since apparently it can't be found anymore (is the matrix before_install overriding the top-level one?)

Okay, so the clang fixes I tried aren't taking, and clang for some reason is in some backwards state of absolute disrepair. "Too much load", says llvm/apt. "Ever heard of a load balancer", I says...

https://travis-ci.org/ThePhD/sol2/builds/136849439 Praise be.


Numba+Cuda doesn't work for me on WSL 2 (but PyTorch+Cuda works fine)

Cuda works fine in PyTorch on my WSL 2 (Windows 11 + 22.04.2 LTS) install but it doesn't work for numba.
$ python -c "import torch; print(torch.cuda.is_available())"
True
$ python -c "from numba import cuda; print(cuda.is_available())"
False
$ python -c "import numba; print(numba.version)"
0.58.0dev0+190.gc9cc06ba1
I found https://github.com/numba/numba/issues/7104 while trying to troubleshoot and everything I'm seeing pretty much matches what Sahuta saw. I've pasted the output from the various diagnostic commands he was asked to run below.
$ python -c "from numba import cuda; cuda.detect()"
Traceback (most recent call last):
  File "/home/jorlow/mambaforge/envs/course22p2/lib/python3.10/site-packages/numba/cuda/cudadrv/driver.py", line 258, in ensure_initialized
    self.cuInit(0)
  File "/home/jorlow/mambaforge/envs/course22p2/lib/python3.10/site-packages/numba/cuda/cudadrv/driver.py", line 331, in safe_cuda_api_call
    self._check_ctypes_error(fname, retcode)
  File "/home/jorlow/mambaforge/envs/course22p2/lib/python3.10/site-packages/numba/cuda/cudadrv/driver.py", line 399, in _check_ctypes_error
    raise CudaAPIError(retcode, msg)
numba.cuda.cudadrv.driver.CudaAPIError: [100] Call to cuInit results in CUDA_ERROR_NO_DEVICE

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/jorlow/mambaforge/envs/course22p2/lib/python3.10/site-packages/numba/cuda/api.py", line 470, in detect
    print('Found %d CUDA devices' % len(devlist))
  File "/home/jorlow/mambaforge/envs/course22p2/lib/python3.10/site-packages/numba/cuda/cudadrv/devices.py", line 49, in __len__
    return len(self.lst)
  File "/home/jorlow/mambaforge/envs/course22p2/lib/python3.10/site-packages/numba/cuda/cudadrv/devices.py", line 26, in __getattr__
    numdev = driver.get_device_count()
  File "/home/jorlow/mambaforge/envs/course22p2/lib/python3.10/site-packages/numba/cuda/cudadrv/driver.py", line 428, in get_device_count
    self.cuDeviceGetCount(byref(count))
  File "/home/jorlow/mambaforge/envs/course22p2/lib/python3.10/site-packages/numba/cuda/cudadrv/driver.py", line 296, in __getattr__
    self.ensure_initialized()
  File "/home/jorlow/mambaforge/envs/course22p2/lib/python3.10/site-packages/numba/cuda/cudadrv/driver.py", line 262, in ensure_initialized
    raise CudaSupportError(f"Error at driver init: {description}")
numba.cuda.cudadrv.error.CudaSupportError: Error at driver init: Call to cuInit results in CUDA_ERROR_NO_DEVICE (100)

$ python -c "import cupyx; print(cupyx.get_runtime_info())"
OS                           : Linux-<IP_ADDRESS>-microsoft-standard-WSL2-x86_64-with-glibc2.35
Python Version               : 3.10.11
CuPy Version                 : 12.0.0
CuPy Platform                : NVIDIA CUDA
NumPy Version                : 1.24.3
SciPy Version                : None
Cython Build Version         : 0.29.35
Cython Runtime Version       : None
CUDA Root                    : /home/jorlow/mambaforge/envs/course22p2
nvcc PATH                    : None
CUDA Build Version           : 11020
CUDA Driver Version          : 12020
CUDA Runtime Version         : 11080
cuBLAS Version               : 111103
cuFFT Version                : 10900
cuRAND Version               : 10300
cuSOLVER Version             : (11, 4, 1)
cuSPARSE Version             : 11705
NVRTC Version                : (11, 8)
Thrust Version               : 101000
CUB Build Version            : 101000
Jitify Build Version         : 47538c5
cuDNN Build Version          : None
cuDNN Version                : None
NCCL Build Version           : None
NCCL Runtime Version         : None
cuTENSOR Version             : None
cuSPARSELt Build Version     : None
Device 0 Name                : NVIDIA GeForce RTX 2080 Ti
Device 0 Compute Capability  : 75
Device 0 PCI Bus ID          : 0000:0C:00.0

$ python -c "from numba import cuda; cuda.cudadrv.libs.test()"
Finding driver from candidates: libcuda.so, libcuda.so.1, /usr/lib/libcuda.so, /usr/lib/libcuda.so.1, /usr/lib64/libcuda.so, /usr/lib64/libcuda.so.1...
Using loader <class 'ctypes.CDLL'>
        trying to load driver...        ok, loaded from libcuda.so
Finding nvvm from Conda environment
        located at /home/jorlow/mambaforge/envs/course22p2/lib/libnvvm.so.4.0.0
        trying to open library...       ok
Finding cudart from Conda environment
        located at /home/jorlow/mambaforge/envs/course22p2/lib/libcudart.so.11.8.89
        trying to open library...       ok
Finding cudadevrt from Conda environment
        located at /home/jorlow/mambaforge/envs/course22p2/lib/libcudadevrt.a
Finding libdevice from Conda environment
        trying to open library...       ok

wsl --update

Checking for updates.
The most recent version of Windows Subsystem for Linux is already installed.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.2 LTS
Release:        22.04
Codename:       jammy

Running https://github.com/numba/numba/issues/7104#issuecomment-859470459
(c_ulong(10612637696), c_ulong(11810832384))
c_ulong(47399829504)
(c_ulong(10610540544), c_ulong(11810832384))
(c_ulong(10612637696), c_ulong(11810832384))

Running https://github.com/numba/numba/issues/7104#issuecomment-859483573 yields
Traceback (most recent call last):
  File "/tmp/x2.py", line 62, in <module>
    my_init()
  File "/tmp/x2.py", line 25, in my_init
    raise RuntimeError(f'Unexpected return code {ret} from cuInit')
RuntimeError: Unexpected return code 100 from cuInit

What does:
python -c "import ctypes; x = ctypes.CDLL('libcuda.so'); x.undef()"

print?

$ python -c "import ctypes; x = ctypes.CDLL('libcuda.so'); x.undef()"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/jorlow/mambaforge/envs/course22p2/lib/python3.10/ctypes/__init__.py", line 387, in __getattr__
    func = self.__getitem__(name)
  File "/home/jorlow/mambaforge/envs/course22p2/lib/python3.10/ctypes/__init__.py", line 392, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /lib/x86_64-linux-gnu/libcuda.so: undefined symbol: undef

Thanks, that info is useful - it sounds like you have the Linux (as opposed to WSL2) driver installed in your WSL2 instance. I'm guessing you might have a package called libnvidia-compute-510 installed - can you try to remove it with apt-get? If that's not installed, can you provide the output of
dpkg --get-selections | grep nvidia

please?

Your hunch was right. I've had this WSL2 image for a while so it's hard for me to say when/how this got installed.
$ dpkg --get-selections | grep nvidia
libnvidia-compute-510:amd64                     install
I removed the package and (just in case) reinstalled cuda-11-8. I re-ran the above command to double check the package had not somehow returned -- it hadn't.
After that, I re-ran this
$ python -c "import ctypes; x = ctypes.CDLL('libcuda.so'); x.undef()"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/jorlow/mambaforge/envs/course22p2/lib/python3.10/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libcuda.so: cannot open shared object file: No such file or directory

But, most importantly,
$ python -c "from numba import cuda; print(cuda.is_available())"
True
Thanks for the help! Any idea why this didn't trip up PyTorch?

Thanks for the help! Any idea why this didn't trip up PyTorch?

I'd guess that PyTorch is linked to the libraries in some way such that it loads the correct libraries for WSL2, whereas Numba interacts directly with the driver API through ctypes, so will load whichever libcuda.so it finds first, starting with the one that's already on the dynamic linker's search path.

Btw my mind is blown at the prospect of writing cuda kernels in Python. Super cool project! Thanks for all your work on it and your help!

Many thanks for your kind words!

Now that we understand (in general) how to diagnose this quickly, I've added #9034 that gives the absolute location of the libcuda.so driver so we can tell just from numba -s what the cause of the issue is quickly.

@jorlow Are you happy if we close this issue now?

Thanks!


Fix s3 bucket create and make sure our test actually test against minio

Codecov Report

Merging #50 (84096a3) into master (304ae0b) will decrease coverage by 0.17%.
The diff coverage is 60.00%.

@@            Coverage Diff             @@
##           master      #50      +/-   ##
==========================================
- Coverage   61.31%   61.14%   -0.18%
==========================================
  Files         115      115
  Lines        9870     9862       -8
==========================================
- Hits         6052     6030      -22
- Misses       3818     3832      +14

Impacted Files
Coverage Δ

assemblyline/filestore/transport/s3.py
77.87% <60.00%> (+15.04%)
:arrow_up:

assemblyline/common/backupmanager.py
60.41% <0.00%> (-16.35%)
:arrow_down:

assemblyline/remote/datatypes/__init__.py
69.49% <0.00%> (-0.51%)
:arrow_down:

assemblyline/remote/datatypes/queues/comms.py
77.77% <0.00%> (-0.49%)
:arrow_down:

assemblyline/datastore/stores/es_store.py
71.02% <0.00%> (-0.05%)
:arrow_down:

assemblyline/run/pubsub_reader.py
0.00% <0.00%> (ø)

assemblyline/datastore/helper.py
26.11% <0.00%> (+0.04%)
:arrow_up:

assemblyline/run/cli.py
24.54% <0.00%> (+0.04%)
:arrow_up:

assemblyline/common/caching.py
31.86% <0.00%> (+0.34%)
:arrow_up:

assemblyline/odm/randomizer.py
95.28% <0.00%> (+0.47%)
:arrow_up:

... and 2 more

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 304ae0b...84096a3. Read the comment docs.

Codecov Report

Merging #50 (84096a3) into master (304ae0b) will decrease coverage by 0.17%.
The diff coverage is 60.00%.

@@            Coverage Diff             @@
##           master      #50      +/-   ##
==========================================
- Coverage   61.31%   61.14%   -0.18%
==========================================
  Files         115      115
  Lines        9870     9862       -8
==========================================
- Hits         6052     6030      -22
- Misses       3818     3832      +14

Impacted Files
Coverage Δ

assemblyline/filestore/transport/s3.py
77.87% <60.00%> (+15.04%)
:arrow_up:

assemblyline/common/backupmanager.py
60.41% <0.00%> (-16.35%)
:arrow_down:

assemblyline/remote/datatypes/__init__.py
69.49% <0.00%> (-0.51%)
:arrow_down:

assemblyline/remote/datatypes/queues/comms.py
77.77% <0.00%> (-0.49%)
:arrow_down:

assemblyline/datastore/stores/es_store.py
71.02% <0.00%> (-0.05%)
:arrow_down:

assemblyline/run/pubsub_reader.py
0.00% <0.00%> (ø)

assemblyline/datastore/helper.py
26.11% <0.00%> (+0.04%)
:arrow_up:

assemblyline/run/cli.py
24.54% <0.00%> (+0.04%)
:arrow_up:

assemblyline/common/caching.py
31.86% <0.00%> (+0.34%)
:arrow_up:

assemblyline/odm/randomizer.py
95.28% <0.00%> (+0.47%)
:arrow_up:

... and 2 more

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 304ae0b...84096a3. Read the comment docs.


Encountering the same reload  issue I had yesterday on this page

Challenge Declare JavaScript Variables has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36.
Today I actually received an error:
Error 504 Ray ID: 28c56387b0b90ecd • 2016-03-31 17:06:54 UTC
Gateway time-out
This is the link:
https://www.freecodecamp.com/challenges/declare-javascript-variables#?solution=%2F%2F Example
var ourName%3B

%2F%2F Define myName below this line

var myName%3B

Hi @interglobalmedia !
Thanks for reporting this.
We are sincerely sorry for the performance issues with regards to the website.
And as I mentioned yesterday, we are aware of this and are working on it.
Here is a post on our sub-reddit by Quincy @QuincyLarson giving the details.
We understand and share your frustration with this issue. This is not a problem with specific challenges, but with the infrastructure of our site. We have a potential fix planned to roll out on Saturday. These issues are all related to one root problem so there's no need to file additional issues.
Of course please feel free to continue the discussion on this thread. Or ping us on the Help Chat Room.
Closing as duplicate of #7818


Icon stays after rule is removed.

I removed a rule and after refreshing the target page, the title went back to original.
The icon stayed the red icon I had chosen with Env-Guard though. Is it possible to also clear the icon?
I used the StartsWith rule.
The site doesn't have an favicon, perhaps that's why this one doesn't go away.

Steps to reproduce:
1 - create a rule for a page that does not have a favicon on it:
2 - go to the page and refresh it. icon and title should be changed
3 - delete the rule
4 - go back and refresh the page again. Title goes back to normal but favicon remains.
Test site (www.pudim.com.br) Funny and odd site.


Getting started with python plug-ins for GIMP

Formatting and structure checks

[x] Have you used the correct folder and file structure? - see Contribution Guidelines

[x] Is your article properly formatted in Markdown? - see Github Markdown guide

[x] Have you used our preferred heading structure? - H3 (###) and up

[x] Does your article follow any of the suggested structure formats? - see example formats

[x] Is your article over 750 words? - Tool: Wordcounter.net

[x] Is the article you are submitting an in-depth and unique article? Does it go beyond what is in the official docs and what is covered in other blog sites. See these articles as examples.

[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.

[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.

[x] Have you included a hero image that is 600x400 pixels and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid - Grammarly
[x] Please place your article through a 3rd party plagiarism checker. We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[ ] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide
[x] Have you checked your code runs correctly and you've highlighted all necessary dependencies for installation?
[x] Are the software programs and packages you're highlighting in your article up to date, using current versions and not deprecated?

This closes #4843

Hi @mercymeave, I have just made the requested changes and counter-checked throughout the article to reduce the review complexity. I was requesting if you could reopen the PR so that I could push the change. Thank you.

@mercymeave, or should I open a new PR?

Yes please open a new PR and ensure you have worked on all the readability issues to avoid closure of the article.


ensure hauler can serve hauler

to address the pain points of having to rsync/scp hauler around in an airgap environment to every location hauler is required, ensure hauler can collect and serve itself through a curlable  endpoint

potentially just add an optional arg that adds the right hauler platform/arch during save time instead of sync time.
something like:
hauler store save --embed
# -- airgap --

hauler store serve

# $highport is some random unauthenticated high port not part of the registry
curl $haulerurl:$highport -o hauler

Definitely still relevant! @amartin120

work-around:

create a hauler manifest that references the desired version of hauler
⬇ hauler store sync --files hauler.yaml
⬆ hauler store load [...]
⬆ hauler store serve fileserver
see:
https://rancherfederal.github.io/hauler-docs/docs/guides-references/manifests
https://rancherfederal.github.io/hauler-docs/docs/guides-references/command-line/hauler-store#hauler-store-serve-fileserver


Bug: Repeat repeats all songs, not the current one

Environment

Browser: Firefox
Browser Version:  57.0 x64
Operating System: Windows 10 Home
Amplitude.js Version: 3.2.3

Issue description
When repeat is activated, it loops all songs instead of repeating the current one.
Steps to reproduce the issue

Open one of the playlist examples
Click play
Wait and observe (alternatively, skip to the end of the current song or the playlist)

What is expected?
As it is clearly stated in the documentation: "The repeat button, when active, will repeat the current song when the song has ended."
Either add another button that exhibits the expected behaviour, or fix this.
Link to where issue can be reproduced
https://521dimensions.com/open-source/amplitudejs/examples/blue-playlist

Since it is a playlist, it loops the playlist (like in iTunes or Spotify). We just need to update the documentation to state this clearly.
Let us know if you have any thoughts or questions on the behavior of repeating playlists instead of individual songs. Thanks!

Hmm okay. Personally, I also like to have a repeat button that repeats a single song. I've programmed my own now.

This was added in 3.3.


unrelated command crashes Ferret, after redefining time axis of multi-cdf dataset

Reported by andrew wittenberg on 14 May 2014 19:22 UTC
This bug crashes Ferret, with an error message that is similar to what we saw in bug #2172.
First we create a 2-file multi-NetCDF dataset:
 	NOAA/PMEL TMAP
 	FERRET v6.9
 	Linux 2.6.32-431.5.1.el6.x86_64 64-bit - 04/03/14
 	14-May-14 15:16

yes? let slp = t[let tlo = tboxlo[gt=time](gt=time]
yes?)
yes? let thi = tboxhi[def ax/t/bounds/cal=julian/t0="01-JAN-0001 00:00:00"/unit=days time = 913, 0, 1826
yes? save/clob/file=1.nc slp, tlo, thi
 LISTing to file 1.nc
yes? def ax/t/bounds/cal=julian/t0="01-JAN-0001 00:00:00"/unit=days time = 2739, 1826, 3652
Replacing definition of axis TIME
yes? save/clob/file=2.nc slp, tlo, thi
 LISTing to file 2.nc
yes? can var slp tlo thi
yes? can axis time
yes? sp make_des [12](gt=time]
yes?).nc > a.des

The descriptor file looks like this:
&FORMAT_RECORD
   D_TYPE             = '  MC'
   D_FORMAT           = '  1A'
/

&BACKGROUND_RECORD
   D_TITLE            = ''
   D_T0TIME           = '01-JAN-0001 00:00:00'
   D_TIME_UNIT        = 86400
   D_TIME_MODULO      = .FALSE.
   D_CALTYPE          = 'JULIAN'
/

&MESSAGE_RECORD
   D_MESSAGE          = ' '
   D_ALERT_ON_OPEN    = .FALSE.
   D_ALERT_ON_OUTPUT  = .FALSE.
/

&EXTRA_RECORD
/

&STEPFILE_RECORD
   S_FILENAME         = '1.nc'
   S_AUX_SET_NUM      = 0
   S_START            = 913
   S_END              = 913
   S_DELTA            = 1
   S_NUM_OF_FILES     = 1
   S_REGVARFLAG       = ' '
/

&STEPFILE_RECORD
   S_FILENAME         = '2.nc'
   S_AUX_SET_NUM      = 0
   S_START            = 2739
   S_END              = 2739
   S_DELTA            = 1
   S_NUM_OF_FILES     = 1
   S_REGVARFLAG       = ' '
/

&STEPFILE_RECORD
   S_FILENAME         = '**END OF STEPFILES**'
/

Next we use the dataset, redefining its time axis:
yes? use "a.des"
yes? def ax/t/bounds/cal=julian/t0="01-JAN-0001 00:00:00"/unit=days time1 = (tlo+thi)/2, tlo, thi

Now an entirely unrelated command will crash Ferret:
yes? say `b,r=isready`
At line 89 of file depend_stat_var_sub.F
Fortran runtime error: Array reference out of bounds for array 'uvar_text', lower bound of dimension 1 exceeded (0 < 1)

Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/2178

Comment by ansley.b.manke on 14 May 2014 22:56 UTC
I don't think it has to do with redefining the time axis in the descriptor file, but in some program states with
yes? say `b,r=isready`

when b is not defined. It seems that if I load some data from a file, whether netcdf or a descriptor or ascii, and then do the return=isready, we get the runtime error:

  ! This is correct
yes?  say `b,return=isready`
 !-> MESSAGE/CONTINUE 0
0

yes? use etopo120
yes? shade rose

yes? say `c,return=isready`
At line 89 of file depend_stat_var_sub.F
Fortran runtime error: Array reference out of bounds for array 'uvar_text', lower bound of dimension 1 exceeded (-2147483648 < 1)
/home/users/ansley/build/flat_64/FERRET/bench>

Possibly something to do with loading data from a dataset?  Just synthesizing variables doesn't seem to cause it.
yes? list {1,2,3}
             VARIABLE : {1,2,3}
             SUBSET   : 3 points (X)
 1   / 1:  1.000
 2   / 2:  2.000
 3   / 3:  3.000
yes? say `b,return=isready`
 !-> MESSAGE/CONTINUE 0
0

Comment by andrew.wittenberg on 15 May 2014 16:58 UTC
For context: this arose in our automated diagnostic suite, where we're checking for existence of an input variable before producing a figure.  The variable may or may not exist in the descriptor file.  And in the original example (but not in this simplified version) the data has multiple unevenly-spaced time steps within each "constituent file" pointed to by the descriptor.  Ferret by default assumes that all the time steps are evenly spaced within each constituent file, so we need the regridding to correct the time coordinates.
Note that this bug is fairly fragile, in the sense that if we eliminate the regridding, or concatenate the constituent datasets into a single NetCDF file, the crash goes away:
 	NOAA/PMEL TMAP
 	FERRET v6.9
 	Linux 2.6.32-431.5.1.el6.x86_64 64-bit - 04/03/14
 	15-May-14 12:56

yes? ferret
 **ERROR: unknown command: ferret
yes? use "a.des"
yes? say `b,r=isready`
 !-> MESSAGE/CONTINUE 0
0

 	NOAA/PMEL TMAP
 	FERRET v6.9
 	Linux 2.6.32-431.5.1.el6.x86_64 64-bit - 04/03/14
 	15-May-14 12:50

yes? use a.des
yes? save/clob/file=a.nc slp, tlo, thi
 LISTing to file a.nc

 	NOAA/PMEL TMAP
 	FERRET v6.9
 	Linux 2.6.32-431.5.1.el6.x86_64 64-bit - 04/03/14
 	15-May-14 12:50

yes? use a.nc
yes? def ax/t/bounds/cal=julian/t0="01-JAN-0001 00:00:00"/unit=days time1 = (tlo+thi)/2, tlo, thi
Replacing definition of axis TIME1
 *** NOTE: grid  used by data set a
 *** NOTE: Redefinition may alter apparent contents of data set
yes? say `b,r=isready`
 !-> MESSAGE/CONTINUE 0
0

Unfortunately though, these are impractical workarounds in the original application.

Comment by steven.c.hankin on 19 May 2014 16:47 UTC
fixed inconsistent data type declaration of variable memory, leading to return=isReady crash utl/get_dependency_status.F.  The bug only show up when the internal "work" array is beyond the first memory block, because that's when the offset is incorrectly computed as a result of the variable type being wrong (4 bytes for INTEGER; 8 bytes for REAL with compiler double precision)


Selected functionality not working in CustomDynamicNodeComponent

Hi,
Here is a stackblitz example
I have a custom dynamic node component in which i set the selected status myself.
Problems:

If I click on other nodes, the current selection is not cleared
If i click on vflow area, the selection is not cleared

Hi! Should be fixed in this release: https://github.com/artem-mangilev/ngx-vflow/releases/tag/v1.0.0

I tried with 1.0 release and it works now. Thanks!


Broken links

Several links are broken on this page: http://clouddocs.f5.com/cloud/openstack/v1/heat/.

"F5 OpenStack Heat plugins." (2 places)
"Install the F5 Heat Plugins"

@dflanigan This is a known issue, it is tracked in f5-openstack-docs 225.


Add mercantile to required installation package

I was trying to install morecantile to a new venv and spotted that it was missing mercantile package.
$ mkvirtualenv -p python3.9.1 mor

$ pip install morecantile

$ morecantile --help                                                                                127 ↵

Traceback (most recent call last):
  File "/Users/pratikyadav/.virtualenvs/mor/bin/morecantile", line 5, in <module>
    from morecantile.scripts.cli import cli
  File "/Users/pratikyadav/.virtualenvs/mor/lib/python3.9/site-packages/morecantile/scripts/cli.py", line 7, in <module>
    from mercantile.scripts import configure_logging, coords, iter_lines, normalize_input
ModuleNotFoundError: No module named 'mercantile'

🤦 thanks @pratikyadav
The tests fails due to GDAL version change in Rasterio wheels so 👌

I have bumped the version to 2.1.1
Feel free to merge @vincentsarago (or let me know if the PR is lacking something)

👋 @pratikyadav sorry for the looooooonnnnnnnng wait. I'm going to merge this today.
I've updated your last commit to remove the version change (I'll let bum2version do it when I'll cut a new release) 🙏


Added App Module Methods and Is Member of Team

Added GetAppModuleID to get the Data Model Driven App ID based on the Unique App name. e.g. new_app
Added GetAppRecordUrl to return the Record URL with the defined App Guid appended to open in the preferred App.
Added IsMemberOfTeam to check if a user is a member or not.

Merged on Master


[5.5] [Concurrency] Put Builtin.Executor type behind a feature flag.

Fixes rdar://77041644.

@swift-ci please test


Checked for undefined/null on component during destroy

What kind of change does this PR introduce? (check at least one)

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

Does this PR introduce a breaking change? (check one)

[ ] Yes
[x] No

If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:

[x] It's submitted to the dev branch for v2.x (or to a previous version branch), not the master branch
[x] When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx], where "xxx" is the issue number)
[x] All tests are passing: https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md#development-setup
[ ] New/updated tests are included

If adding a new feature, the PR's description includes:

[ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:
When we run our test suite with relatively new ( >beta13 ) on vue-test-utils we end up with this issue failing a portion of our test suite as it appears somehow that componentInstance is undefined by the time this hook gets called.
I spent about an hour trying to find where to put a test where the destroy hook gets called, but couldn't figure out how to test it properly.  I even attempted to find a good spot by having that function throw, but even that wasn't very helpful, so I'd love some help with that.
I'm also happy to help with code there, or whatever, but I could use some guidance since there is a lot of complexity going on around this area of the code, the stack trace we got was:
    TypeError: Cannot read property '_isDestroyed' of undefined

      at destroy (node_modules/vue/dist/vue.runtime.common.js:4174:27)
      at invokeDestroyHook (node_modules/vue/dist/vue.runtime.common.js:5741:59)
      at removeVnodes (node_modules/vue/dist/vue.runtime.common.js:5757:11)
      at VueComponent.patch [as __patch__] (node_modules/vue/dist/vue.runtime.common.js:6170:11)
      at VueComponent.Vue._update (node_modules/vue/dist/vue.runtime.common.js:2668:19)
      at VueComponent.updateComponent (node_modules/vue/dist/vue.runtime.common.js:2786:10)
      at Watcher.get (node_modules/vue/dist/vue.runtime.common.js:3140:25)
      at Watcher.run (node_modules/vue/dist/vue.runtime.common.js:3217:22)
      at Watcher.update (node_modules/vue/dist/vue.runtime.common.js:3205:10)
      at VueComponent.Vue.$forceUpdate (node_modules/vue/dist/vue.runtime.common.js:2689:19)
      at updateChildComponent (node_modules/vue/dist/vue.runtime.common.js:2863:8)
      at prepatch (node_modules/vue/dist/vue.runtime.common.js:4142:5)
      at patchVnode (node_modules/vue/dist/vue.runtime.common.js:5923:7)
      at updateChildren (node_modules/vue/dist/vue.runtime.common.js:5820:9)
      at patchVnode (node_modules/vue/dist/vue.runtime.common.js:5934:29)
      at updateChildren (node_modules/vue/dist/vue.runtime.common.js:5820:9)
      at patchVnode (node_modules/vue/dist/vue.runtime.common.js:5934:29)
      at updateChildren (node_modules/vue/dist/vue.runtime.common.js:5820:9)
      at patchVnode (node_modules/vue/dist/vue.runtime.common.js:5934:29)
      at updateChildren (node_modules/vue/dist/vue.runtime.common.js:5820:9)
      at patchVnode (node_modules/vue/dist/vue.runtime.common.js:5934:29)
      at updateChildren (node_modules/vue/dist/vue.runtime.common.js:5820:9)
      at patchVnode (node_modules/vue/dist/vue.runtime.common.js:5934:29)
      at VueComponent.patch [as __patch__] (node_modules/vue/dist/vue.runtime.common.js:6094:9)
      at VueComponent.Vue._update (node_modules/vue/dist/vue.runtime.common.js:2668:19)
      at VueComponent.updateComponent (node_modules/vue/dist/vue.runtime.common.js:2786:10)
      at Watcher.get (node_modules/vue/dist/vue.runtime.common.js:3140:25)
      at Watcher.run (node_modules/vue/dist/vue.runtime.common.js:3217:22)
      at Watcher.update (node_modules/vue/dist/vue.runtime.common.js:3205:10)
      at Dep.notify (node_modules/vue/dist/vue.runtime.common.js:695:13)
      at Object.reactiveSetter [as isEditing] (node_modules/vue/dist/vue.runtime.common.js:1012:11)
      at VueComponent.proxySetter [as isEditing] (node_modules/vue/dist/vue.runtime.common.js:3298:26)
      at Object.<anonymous> (projects/static/projects/js/views/task-item.spec.js:107:18)
          at Promise (<anonymous>)
          at <anonymous>
      at process._tickCallback (internal/process/next_tick.js:188:7)

Did you make sure it also fails without vue test utils?

Good point, no it doesn't if I just do the $mount myself. So it sounds like something is going on over there with the VNode lifecycle too, but the fix here seems relevant as well, since it seems harmless to null check before operating on the object. Of course unless it was left out explicitly so that this sort of thing would happen to help track down other bugs lol

I think you should share the test that caused the error (a boiled down version is better 😄 ). pinging @eddyerburgh just in case but I will also look at it

I thought you might want that, here is the most boiled down version I have that still fails:
<template>

    <transition name="fade" mode="out-in">

      <task-form
        v-else
        key="editing"
        ></task-form>
    </transition>

</template>

and the spec (using jest if that helps):
import { shallow } from '@vue/test-utils'
import Vue from 'vue'

import TaskItem from './task-item.vue'

describe('Test suite for Task Item', () => {
  let wrapper
  let vm

  beforeEach(() => {
    wrapper = shallow(TaskItem, {
      propsData: {
        task: {
          id: 55,
        },
        isCreator: false,
        isParticipant: false,
      },
    });
    ({ vm } = wrapper)
  })
  it('shows the tasks form when isEditing, otherwise shows the task', () => {
    vm.isEditing = true
  })
})


Adding dependencies to both RabbitMQ and Kafka binders cause natively compiled Spring Boot 3 applications to fail during startup

Describe the issue
Note: This is a followup on #2569.
Adding dependencies to both RabbitMQ and Kafka binders:
implementation 'org.springframework.cloud:spring-cloud-starter-stream-rabbit'
implementation 'org.springframework.cloud:spring-cloud-starter-stream-kafka'

...and setting the property spring.cloud.stream.defaultBinder cause natively compiled applications using Spring Boot 3 to fail during startup with one of the error messages:
Caused by: java.lang.IllegalStateException: Can't determine which binder to use: rabbit/2
Caused by: java.lang.IllegalStateException: Can't determine which binder to use: kafka/2

Depending on if the property is set to either rabbit or kafka.
To Reproduce
Steps to reproduce the behavior:

Use the cloud-stream-rabbit project in the spring-aot-smoke-tests GitHub-repo:
git clone git@github.com:spring-projects/spring-aot-smoke-tests.git
cd spring-aot-smoke-tests/cloud/cloud-stream-rabbit

Add spring.cloud.stream.defaultBinder: rabbit to the file src/main/resources/application.yml

Add implementation("org.springframework.cloud:spring-cloud-stream-binder-kafka") to the file build.gradle

Native compile:
../../gradlew nativeCompile

Run the natively compiled application
./build/native/nativeCompile/cloud-stream-rabbit

It will fail during startup with the root cause error:
Caused by: java.lang.IllegalStateException: Can't determine which binder to use: rabbit/2

Note: The same problem can be observed in the project cloud-stream-kafka if the property is set to kafka and the dependency implementation 'org.springframework.cloud:spring-cloud-starter-stream-kafka' is added.
Version of the framework
Spring Framework: 6.0.2
Spring Boot: 3.0.0-SNAPSHOT
Spring Cloud Stream: 4.0.0-SNAPSHOT
Expected behavior
That the application starts with no errors, as when only one dependency to either the RabbitMQ or the Kafka binder is used.
Screenshots
No
Additional context
No

@magnus-larsson We addressed this issue through the commit mentioned above. Could you try the app and verify now?

Thanks, works fine now!


Request for App: Name Auto-renewal App

It would be nice to have a desktop tool that could periodically run blockstack whois to see which of your names need to be renewed. If a name is getting close to expiration, the tool should let the user know so they can run blockstack renew (e.g. via desktop notification, via email, via SMS, whatever).
A slightly more advanced version would automatically renew the name.
This is an interesting problem, because renewal can't be put off until the last second (lest your transaction get stuck in a backlog for example). I personally would do my renewal no less than a month in advance.
(his task is moved from: https://github.com/blockstack/sample-apps/issues/3 since we renamed another repo with a more appropriate name)

cc @dsmurrell


Javascript syntax highlighting

Updating Code Blocks to use javascript syntax highlighting

@AndrewCook : Thanks for your contribution! The author, @aliuy, has been notified to review your proposed change.

@AndrewCook Thanks for your contribution, we will merge the PR soon.

#sign-off

@SnehaGunda: I'm sorry - only the author of this article, @aliuy, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

@v-shils can you please merge.


Container proxy in 43 and prtests

What does this PR change?
Add packages for containerized proxy on 4.3 and uyuni proxies

umpteenth attempt to fix https://github.com/SUSE/spacewalk/issues/19314


Can't push file to device

Hello,
Why i can't push configuration file only if i put the same oui and Product class of the device?
It's a bug? or there is reason that it's like this?
Thanks.

Please close this issue and take your question to the mailing list. GitHub is for defect tracking, this is not a defect.
-dan

On Mar 7, 2017, at 11:06 PM, giln344<EMAIL_ADDRESS>wrote:
Hello,
Why i can't push configuration file only if i put the same oui and Product class of the device?
It's a bug? or there is reason that it's like this?
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Files do not work in illustrator

Very odd the .ASE files work perfectly in Photoshop but not in Illustrator sadly. Is anyone else having this issue?

I have the same issue.  I exported the sketch-default.sketchpalette as an .ase file from the demo.  It opens perfectly in photoshop, but is empty in Adobe Illustrator.
Photoshop:

Illustrator:

Not really sure how to debug this error.  But, if you have any ideas or other files, I’d be glad to test them

Other libraries to try:

https://github.com/DominikGuzei/node-ase-utils
https://github.com/andywillis/rbg2ase

I believe the code that writes to '.ASE' format is faulty:
https://github.com/1j01/anypalette.js/blob/eaf17cca78203bf2e68298137859f3f23cc46520/src/formats/Adobe.coffee#L328C2-L331C33
view.writeString("ASEF")
view.writeUint32(1) # version
view.writeUint32(blocks.length)

Which should probably be:
view.writeString("ASEF")
view.writeUint16(1) # version
view.writeUint16(0) # version
view.writeUint32(blocks.length)

This might not be the only issue with the '.ASE' writing code.

One general strategy to test this would be to load a known-good .ASE file in anypalette.js and save it as .ASE and compare the files to see what's different. Of course this may be difficult since it's a binary format, and there may be many unimportant differences to address before any important difference is detected (depending on the complexity of the format).
One could write a Kaitai Struct definition for ASE in order to help with this analysis. That in itself would be tedious, but maybe ChatGPT (or another LLM) can help with it, giving it a format specification document and/or parser source code to work off of.
Not saying this would be the best way to go about it. Might be easier to compare across library code, since @jlarmstrongiv pointed to some working libraries.
@peteroupc This strikes me as likely-equivalent code. It depends on the byte ordering, but the bit representation of 1 in Uint16 vs Uint32 is the same, right? Other than the number of 0 bits?

@peteroupc This strikes me as likely-equivalent code. It depends on the byte ordering, but the bit representation of 1 in Uint16 vs Uint32 is the same, right? Other than the number of 0 bits?

Assuming writeUint16 and writeUint32 are big-endian, as it appears to be—

the first code block writes the bytes 'A','S','E','F',0,0,0,1, then blocks.length in big-endian.
the second code block writes the bytes 'A','S','E','F',0,1,0,0, then blocks.length in big-endian.

In fact, although GIMP supports the .ASE format, files currently generated by Anypalette appear to cause GIMP to crash.

@peteroupc You're right. This does seem to be a difference in the output of the anypalette.js compared to the palette files I have.
I've updated the code to use writeUint16.
Does this new output work in Illustrator and InDesign? I confirmed it works in GIMP and that it crashes on the old output.
I had to put it in a ZIP file to upload to GitHub:
CSS3_named_colors.new-ase-output.zip


bugfix: bubble up JQ errors are warning logs to help diagnose problems

closes #64

The log lines end up looking like:
7:00PM WRN Failed JQ Execution jq: error (at :2): null (null) has no keys Field=service.import[1].tags.assign[2] Filter=".tags | to_entries"
7:00PM WRN Invalid JQ Filter  Field=service.import[2].repository[1] Filter=test


Allow reuse of DynamoType from models.py

By having models.py as one big file it causes to
easily create circular dependencies. With the current
setup it is not possible to re-use DynamoType. This
refactor moves it out to its own file while trying to
keep the structure as much as it is.
Creating a separate pull request given that it is a refactor change without functional change.
At this time models contains a lot of code in one file due to which it is easy to get circular dependencies. For example; for adding Validation to the tree-based parsing https://github.com/spulec/moto/pull/2885#issuecomment-612452300 I want to re-use the DynamoType class but I would need to import it from models.py which is the component that would already be creating the parser.  This can be solved by splitting out model.py.
There are multiple options here with at extreme ends:

Only split out the minimum to have DynamoType isolated (this CR)
Move out the maximum currently possible. Also move out Item, StreamRecord, StreamShard, DynamoJsonEncoder

I have taken the the minimal approach to avoid conflicts with existing pull requests as much as possible but I am open to any suggestion that would unblock me from having this import cycle.

Coverage increased (+0.0008%) to 94.286% when pulling 4be97916bfa80b04764ca9aa0024ba91a57232ae on pvbouwel:split_models into 755a08e13710f8fbdd0b7452194d506e75cd8423 on spulec:master.

the minimal approach to avoid conflicts
That's my preference as well - hopefully this unblocks you for now!


Visualization of Deformable Attention Reference Points?

Thanks for your great work, can you provide visual code for attention in deformable decoders?

Thank you for your patience. For reference, please see this, sampling_point_visualization.ipynb.

Thank you very much for your reply and help, it's very useful to me.


720 preserve filtering context in resource list paging

I have used session object to store various filtering context for resource listing. Not sure if that's the correct way to do it.

Can one of the admins verify this patch?

looks like most session variables are not deleted. Not sure whether this poses any issues for us. Not sure whether there is a better approach than using session variables. Perhaps @ironfroggy and/or @selimnairb can chime in with ideas?

It looks like its only deleting the session variables it uses, so its mostly safe, but the whole use of the session for this raises a lot of other questions. About the safety of the session variables @pkdash says:

In order to get to the resource listing page, the 'RESOURCES, menu option has to be selected (startno is None) in which case the session variables will be set.

That isn't true at all.
What if the link was bookmarked and they came back after hte session expired? What if they have more than one tab open to this page and pagination in different directions? What if they e-mail the link to someone else?
What are the session variables here used for at all? You should be able to generate the page based only on the URL, user, and parameters. Adding state to the mix is only going to get messy.

I am assuming that would need some changes to html and possibly javascript.

@hyi @ironfroggy @dtarb I kind of figured out how to to generate the necessary urls in html for page navigation. But since @mauriel133 is going to redesign the my resources page, there is no point for me to fix this issue. I plan to close this PR.


fix: set in derived that triggers another call to the same derived

@fbasso Thank you for your review!


"CanvasShaderGLES2: Fragment shader compilation failed" on BlueStacks emulator

Godot version:
Godot 3.2.3 stable, Godot 3.2.4 beta2
OS/device including version:
Android 7.1.1 on gles2 (android emulator BlueStacks <IP_ADDRESS>2) on Windows 7 64 bit
Issue description:
Hello,
I have a problem with my mobile game.
I Exported app from godot and installed it on android emulator (BlueStacks <IP_ADDRESS>2) Android 7.1.1, on gles2 and only gray screen is showing, music working.
On gles3 everything working.
I have log for this error on gles2
E/godot: **ERROR**: CanvasShaderGLES2: Fragment shader compilation failed
2020-11-22 12:30:43.233 3968-4009/? E/godot: **ERROR**: CanvasShaderGLES2: Fragment shader compilation failed:
    0(83) : error C7614: OpenGL/ES doesn't allow use of reserved word texture2DLodEXT
    0(83) : error C7506: OpenGL does not define the global function texture2DLodEXT
    0(474) : warning C7555: 'varying' is deprecated, use 'in/out' instead
    0(475) : warning C7555: 'varying' is deprecated, use 'in/out' instead
    0(812) : warning C7533: global variable gl_FragColor is deprecated after version 120
2020-11-22 12:30:43.233 3968-4009/? E/godot:    At: drivers/gles2/shader_gles2.cpp:130:_display_error_with_code() - CanvasShaderGLES2: Fragment shader compilation failed:
    0(83) : error C7614: OpenGL/ES doesn't allow use of reserved word texture2DLodEXT
    0(83) : error C7506: OpenGL does not define the global function texture2DLodEXT
    0(474) : warning C7555: 'varying' is deprecated, use 'in/out' instead
    0(475) : warning C7555: 'varying' is deprecated, use 'in/out' instead
    0(812) : warning C7533: global variable gl_FragColor is deprecated after version 120
2020-11-22 12:30:43.233 3968-4009/? E/godot: **ERROR**: Method failed. Returning: __null
2020-11-22 12:30:43.233 3968-4009/? E/godot:    At: drivers/gles2/shader_gles2.cpp:377:get_current_version() - Method failed. Returning: __null
2020-11-22 12:30:43.233 3968-4009/? E/godot: **ERROR**: Condition "!version" is true. Returned: false
2020-11-22 12:30:43.233 3968-4009/? E/godot:    At: drivers/gles2/shader_gles2.cpp:89:bind() - Condition "!version" is true. Returned: false
2020-11-22 12:30:43.233 3968-4009/? E/godot: **ERROR**: Condition "!version" is true. Returned: -1
2020-11-22 12:30:43.233 3968-4009/? E/godot:    At: drivers/gles2/shader_gles2.h:267:_get_uniform() - Condition "!version" is true. Returned: -1

I use godot 3.2.3 stable
Old app from godot 2.1 stable working perfect on this emulator...
Screen from error:
https://imgur.com/a/SOqAWJA
Steps to reproduce:
Export project from godot 3.2.3 or godot 3.2.4_beta2 to apk and install it on android emulator (Android 7.1.1) BlueStacks <IP_ADDRESS>2
Minimal reproduction project:
Sample empty project to install
test_android_gles2_godot3.2.3.zip

I use godot 3.2.3 stable
Old app from godot 2.1 stable working perfect on this emulator...

The renderer was rewritten from scratch since. I doubt anyone has tested Godot 3.0 or later in a BlueStacks emulator.

I'm having the same error on godot 3.4.4 and bluestacks version <IP_ADDRESS>0 N32. It happens launching an empty project with an empty 2d scene.
I've made a launch log
launch.log
using the command bellow and then launching the game right after.
adb logcat -b all -c; adb logcat | grep 'godot   :' | tee launch.log

It looks like blue stacks is forcing the shaders to run in a newer version than is specified at the top of the shader.
As you can see, the first line of shader code specifies "version 100", but the errors you are receiving are errors from at least version 130. The code it is complaining about is valid version 100 code, but it is using features that were deprecated before version 130.
I'm not sure there is anything we can do on our end as this appears to be an issue with bluestacks overriding the glsl version that we specify.

Can we replace uses of texture2DLodEXT() with something that isn't deprecated in #version 130 if a BlueStacks GPU is detected?

Well, not really. texture2DLodEXT() is an optional extenstion that is used to support texture2DLod on mobile devices that do not support texture2DLod. The code causing an error here is inside an #ifdef statement that checks to see if the texture2DLod extension is present. So the code is only compiled when the extension is present. If the extension is not present we already do just replace it with texture2D.
On our end, we do everything we can to support the various configurations of drivers that do/do not support the feature. The trouble is, our code is version 100 code. And for some reason the bluestacks shader compiler appears to be treating version 100 code as if it is a higher version (at least 130). My guess is it is a driver bug with whatever driver bluestacks is using.
From a quick search online it appears that it has a lot of problems with buggy drivers.


vigem_target_x360_get_user_index returns wrong user index

Describe the bug
Create and add four x360 devices to the bus, call  vigem_target_x360_get_user_index to query the user index, it always returns 0.
To Reproduce
Steps to reproduce the behavior (example):
Compile and run this code.
int main()
{
    auto* client = vigem_alloc();
    if (!client) {
        cout << "Allocate client failed." << endl;
        return -1;
    }

    auto ret = vigem_connect(client);
    if (!VIGEM_SUCCESS(ret)) {
        cout << "Connect failed" << endl;
        vigem_free(client);
        return -1;
    }

    for (size_t i = 0; i < XUSER_MAX_COUNT; i++) {
        auto* xbox360 = vigem_target_x360_alloc();
        if (!xbox360) {
            cout << "Allocate xbox360 #" << i << " failed." << endl;
            continue;
        }

        ret = vigem_target_add(client, xbox360);
        if (!VIGEM_SUCCESS(ret)) {
            cout << "Add xbox360 #" << i << " failed." << endl;
            vigem_target_free(xbox360);
            continue;
        }

       ULONG index = 0xff;
        ret = vigem_target_x360_get_user_index(client, xbox360, &index);
        if (!VIGEM_SUCCESS(ret)) {
            cout << "Get user index #" << i << " failed." << endl;
            vigem_target_remove(client, xbox360);
            vigem_target_free(xbox360);
            continue;
        }
        cout << "#" << i << ": user index: " << index << endl;

        index = vigem_target_get_index(xbox360);
        cout << "#" << i << ": serial number: " << index << endl;
    }

    vigem_disconnect(client);

    vigem_free(client);

    return 0;
}

Expected behavior
Output as below.
#0: user index: 0
#0: serial number: 1
#1: user index: 1
#1: serial number: 2
#2: user index: 2
#2: serial number: 3
#3: user index: 3
#3: serial number: 4
Screenshots

System details (please complete the following information):

OS: Windows 10 pro 19044.3086
Feeder software: ViGEmBus, download from https://github.com/ViGEm/ViGEmBus/releases/tag/v1.21.442.0
Driver Version: 1.21.442.0

Additional context
Add any other context about the problem here.

This function never really was very reliable, it's timing sensitive due to the now aged code base that never really supported capturing the player index.
Here's a primitive test: add like a sleep 500 or greater after the plugin call and see if that changes things.

add like a sleep 500 or greater after the plugin call and see if that changes things.

no, I add std::this_thread::sleep_for(std::chrono::seconds(10)); and XInputGetState before call vigem_target_x360_get_user_index, still returns 0.

OK, hm, please subscribe to a EVT_VIGEM_X360_NOTIFICATION and print the LedNumber.

subscribe to a EVT_VIGEM_X360_NOTIFICATION and print the LedNumber.

Thanks you very much, it works perfectly.

subscribe to a EVT_VIGEM_X360_NOTIFICATION and print the LedNumber.

Thanks you very much, it works perfectly.

Great to hear! I guess figuring out what's wrong with the vigem_target_x360_get_user_index is still open, will leave the issue as a reminder for 2027 😬

Hi,
Strangely, and FWIW, vigem_target_x360_get_user_index() is working properly for me.
I haven't tried the repro example in the OP here (yet), but essentially I'm using it the same way -- vigem_target_x360_alloc() then vigem_target_add() and then get the LED number.  The obvious  differences are that:

I'm calling vigem_target_get_index() first, before vigem_target_x360_get_user_index() (I also call vigem_target_get_vid() and vigem_target_get_pid() first).
I'm not adding multiple devices in a tight loop (multiple, yes, but each is user-initiated).

(The full code is in here.)
I was a bit surprised when the resulting "user index" is zero-based, but it does increment for each new device, so I guess that's right.
Similar specs to the OP...

Windows 10 Pro, 22H2, 19045.3324  (also tested with some other Win10 installs)
ViGEm driver 1.21.442.0 from main GH project releases
ViGEm Client from latest master (no changes at all), x64 Release_LIB built with VS2022 (but keeping v142/VS2019 toolset), static link into another lib which is also built using v142/VS19 toolset.

LMK if any other details or info would be helpful.
Thanks for ViGEm!
-Max


Queries taking much longer to run and display

I've noticed recently that when executing a query its taking a long time to display any results in the output.
A normal select query with 460,000 rows on Exaplus is currently taking 0.4s with only displaying 20,000 where as the query on DBeaver is taking  1604 ms to display only 200 rows.
Is there anything I might be missing?

Maybe it is a side effect of #1541
Try to increase maximum memory limit in deaver.ini

How do I change the file .. I've found the route C:\Program Files\DBeaver but can't seem to find anything when opening it on notepad ++

It is C:\Program Files\DBeaver\dbeaver.ini
E.g. you can change -Xmx1024m parameter to something like -Xmx4000m (give DBeaver maximum 4 gb).

Hi @vinit9,
this has to do with the way dbeaver executes queries.
Exaplus does just a plain execute SQL and a display of the columns.
DBeaver does a lookup for the entity (if sql is not created by SQL-Auto complete), a lookup of column names and types and a query for unique identifiers.
This is necessary to provide the direct result set edit feature. However meta data queries are very slow in exasol. I've made various optimizations to speed up meta data query especially for exasol installations with a lot of objects however compared to other databases meta data queries are terribly slow in exasol.
If you want to get details about the execution time enable logging of meta data query

Enable Metadata read.
When you execute your query you should see the times for additional meta data query and the execution time in the query manager.
For example in our installation with > 50k Tables it takes > 3 s to query columns and constraints:

In the example query execution time is only 30ms.


The build instructions build Debug by default but install looks for Release

Running these instructions created a Debug build
git clone https://github.com/lfreist/hwinfo && cd hwinfo
mkdir build
cmake -B build && cmake --build build
cmake --install build

However, the install command is looking for it in Release
CMake Error at build/src/cmake_install.cmake:51 (file):
  file INSTALL cannot find
  ".../hwinfo/build/lib/Release/hwinfo_battery.lib":
  No error.
Call Stack (most recent call first):

From src/cmake_install.cmake:
# Set the install configuration name.
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
  if(BUILD_TYPE)
    string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
           CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
  else()
    set(CMAKE_INSTALL_CONFIG_NAME "Release")
  endif()
  message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
endif()

It seems when installing, BUILD_TYPE must be specified, otherwise it will default use Release.


Transparent background in diagrams doesn't play well with the dark color scheme of GitHub

Make the background of all images solid white.


Scma codebook

Just some cosmetics.
I have also added some references for the Continuous integration and regressions tests.

Refs are just here : https://github.com/OlivierHartmann/error_rate_references/tree/scma_codebooks/UNCODED/AWGN/SCMA

I didn't use notification too :) Sorry
I will merge tomorrow the branch. Thanks.

Refs are just here : https://github.com/OlivierHartmann/error_rate_references/tree/scma_codebooks/UNCODED/AWGN/SCMA

The results are correct. CS8 is suitable only for fading channels. For AWGN channel, BER is very high and fixed at arbitrary SNR.
Do you use .rst format for doc? I will provide detailed description instead of this: https://github.com/klimentyev/configuration_files/blob/scma_cb_files/mod/SCMA/README.md
With reference papers and comments.

Please do, we are just working on the documentation and changing all those files in .rst (just for you, but it's not stable at all for now).
We'll manage the merge, don't worry. Put the most information as you can.

Oh, it's very beautiful documentation) I used Doxygen and Markdown for html and latex generation on last work.
I will convert my doc from md to rst next week.

Refs are just here : https://github.com/OlivierHartmann/error_rate_references/tree/scma_codebooks/UNCODED/AWGN/SCMA

What do you think about different SIM_THR for different SNR and codebooks? We use the same number iterations, but results are different (may be about 10 times).

From my really quick search, the implementation complexity of the exponential is not necessary constant, depending of your CPU architecture and compiler versions, but can depend on the value itself to process (something like O(log(n)). I suppose then that as the values are more decided (bigger) then it takes more time to compute this exponential with a high SNR than with small one.
Trying with a --mdm-psi  PSI1 function, you get an identical throughput.
You can have more statistics with --sim-stats, but you need to stabilize them with lot of data (-e 50000).

Thanks. It's very interesting. I hope that I will investigate tomorrow this case.


A small bug & option file for UCIR model is missing.

Nice work!
A small bug I found:
In your models/ucir.py:105 ,  test_loader should be data_loader.
I want to run experiments on ucir model.  Cound you please provide an option file about ucir model?
Thanks~

Hello,
Thanks for catching this mistake, I've fixed it.
I've just pushed an option file for UCIR (https://github.com/arthurdouillard/incremental_learning.pytorch/blob/master/options/ucir/ucir_cifar100.yaml). You should use it with a data option files (see options/data).
Last time I've checked (several months ago) my UCIR was a bit worse (~2pts) than the paper UCIR, mainly because of the regularization loss. That is why in our paper PODNet, we used instead the original UCIR code base (https://github.com/hshustc/CVPR19_Incremental_Learning).

Thanks for you nicely reply~


PR

Peer Review for Group 4
Strengths: The progression from simple to more complex plots (and clearly showing these steps) was great to follow. There was a great variety of visuals that you had as well!! Really neat and excited to see how the final products will turn out! One other strength was there was clear communication throughout your Rmd that made it easy for anyone (even new people looking at this project, aka me) to follow and then work with.
There was definitely a lot I learned from this project (and made me feel like I am a thousand miles behind in my R skills lol). I learned more about the district data which I have been having trouble with and want to use myself (so big thank you). I also learned that you can write code to remove objects from your environment (to now I was deleting it manually with the little broom icon). And, I also learned about mapping the data to the US shape, something I have been wondering about so really nice to see an actual example.
For areas of improvements, I would say adding titles and editing axis titles. The words in the y-axis also seem to be squishing together in the faceted by states visual you have where you make it look like the shape of the US. For the one visual where you use geom_smooth, I'd change the default blue color. Just stay away from defaults always is my opinion. Other than that, I thought this was great code and you all had some interesting questions that you were able to bring to life!
@datalorax

Thanks Esme, I don't actually see any edits you made to the Rmd here, but the summary review is nice.


Add RBAC for NGINX Ingress Controller

According to https://kubernetes.github.io/ingress-nginx/deploy/rbac/

Thank you for the PR @twz123 . LGTM +1.


Excluding vulnerability sonatype-2022-6438 {patch}

Excluding sonatype-2022-6438 as DoS is not supposed to be a risk during intended use of this application (since it is only executed during tests).


Add tag_name to outputs

I needed the tag name of the created release for my next workflow steps.
I extended the callback function of the main function and added the releaseInfo object as parameter, so I could take tag_name from there to add it to the action outputs.

Looks great, thanks for the PR @lgk-bsw.
I will merge and release ASAP.

Awesome, thanks 🙌 @ChanTsune