Profile resets on createDefaultProfile

I am experiencing a similar issue as described in https://github.com/circus-kitchens/flutter_datawedge/issues/22.
Also running Android 11 and Datawedge 11.3.28. (Everything seemed to work fine on Android 10)
Every time createDefaultProfile is called the settings of the profile are reset.
I need a specific decoder to be enabled which is not enabled by default.
I also tested this with the example app from this repo and tried to use the updateProfile method to specifically enable the decoder each time I need it. However I couldn't make it work and I am not sure if the error is in my config structure.
Following this documentation https://techdocs.zebra.com/datawedge/13-0/guide/api/setconfig/ I added this code in the button_tab_view of the example app:
Row(
  children: [
    Expanded(
      child: ElevatedButton(
        onPressed: () => fdw.updateProfile(
          profileName: 'Example app profile',
          pluginName: 'BARCODE',
          config: {
            'PARAM_LIST': {
              'scanner_selection': 'auto',
              'EXTRA_DATA': {
                'decoder_australian_postal': true,
                'decoder_i2of5': true,
              }
            }
          },
        ),
        child: Text('Enable decoder'),
      ),
    ),
  ],
),

The ActionResult returns 'SUCCESS' but the decoder stays disabled.
When createDefaultProfile is called there are ActionResults that return 'FAILURE RESULT_CODE: PROFILE_ALREADY_EXISTS' which seems to be correct.
And is there a way to select the active profile? Because at the moment it seems like I need to call createDefaultProfile every time (even if the profile already exists) when I want to set the active profile.

I would recommend not checking for existing profiles via requestProfiles and not creating new profiles all the time. You still might want to call updateProfile every time to make sure the config is valid for your use case.
This library just forwards command via intents to the zebra device/software itself. If there are differences between Android versions, there unfortunately not much we can do.

Yes, I will try to avoid creating new profiles. However this comment https://github.com/circus-kitchens/flutter_datawedge/issues/22#issuecomment-1752969264 led me to believe that trying to create a profile that already exists will not override settings which does not seem to be the case.
I will try to use requestProfiles and requestActiveProfile so I can check if the profile already exists and is selected.
But what would be your recommended solution if the active profile isn't the one I need (and maybe it already exists and I can't use createDefaultProfile)?
Do you have any experiences with trying to enable decoders with updateProfile ?
I would be interested in seeing how a working updateProfile-call looks like.
It's not that easy to try different android versions for me as the device is managed by a different company.
It would help a lot to know if the code that I posted above works on a different version.

@MMitlmeier this library used to create/overwrite a profile every time it was initialized. This not the case anymore.

I will try to use requestProfiles and requestActiveProfile so I can check if the profile already exists and is selected.
But what would be your recommended solution if the active profile isn't the one I need (and maybe it already exists and I can't use createDefaultProfile)?

That is a bit up to you. You might decide to create new profiles you don't find a suitable one. Or update existing profiles. I'm not sure if there is a recommended way by Zebra.

Do you have any experiences with trying to enable decoders with updateProfile ?
I would be interested in seeing how a working updateProfile-call looks like.

Sorry, no

It's not that easy to try different android versions for me as the device is managed by a different company.
It would help a lot to know if the code that I posted above works on a different version.

I can't help either, I currently only have access to a Zebra with Android 10

I am having a similar issue with enabling a barcode in the profile, the example keystroke works but I have read through the same documentation and cannot get the profile to enable or disable a barcode, @bobekos any chance you could provide an example of this please?

@MMitlmeier
This should work (tested on Zebra TC21 DataWedge 8.2.60)
fdw.updateProfile(
   profileName: 'Example app profile',
   pluginName: 'BARCODE',
   config: {
     'scanner_selection': 'auto',
     'decoder_australian_postal': 'true',
     'decoder_i2of5': 'true',
   },
 )

The config map is already parsed as the "PARAM_LIST" Bundle on the native side so you don't need to pass it extra.
@james-rich
Which exactly option to you try to activate? Can you provide me a example based on the documentation.

Thanks you @bobekos I was doing it a similar way to @MMitlmeier and looking at the documentation it makes sense, however your example solves my issue so I can now update the profile and I also believe it solves @MMitlmeier issue as you can now create a new profile and set the initial decodes.

how to run it without main.dart please ( sorry if its a stupid question i'm beginner )

how to run it without main.dart please ( sorry if its a stupid question i'm beginner )

What do you mean without main.dart? Can you share your idea of what you are trying to achieve?


Fix hyper client feature flag

Fix build when using the hyper-client feature flag.
Description
This change adds some missing optional dependencies that needed to be included when using the hyper-client feature. This also updates some other packages that were bringing in a conflicting version of futures-timer when combined with the hyper-client feature flag.
Motivation and Context
Any project using this library cannot build with the hyper-feature.
How Has This Been Tested?
You can replicate this issue with the following:

1. Create a new rust project
2. Add `surf` as a dependency with the `hyper-client` feature enabled
3. Build the project.

Instead of building successfully, you will see issues due to missing
dependencies; mainly `hyper-tls` and `native-tls`.

After this change, this builds as expected.
Types of changes

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

Checklist:

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

Doesn't #34 fix the same, together with some compilation issues? It doesn't update async libs versions only.

@berkus Good call, I missed that! I think upgrading the async libs will be necessary as you get a compilation error without them though.

@berkus I just tested and it actually does work without the version bumps! I'm not exactly sure why that conflict is not happening now but I can't reproduce on that branch so it should be good!

@jbcden yes, I have compiled hyper support successfully with #34 but it messes up my json bodies so it's not fully operational for me.


Find compatible engine image automatically

Assuming:

diambra-arena version x.y.z is compatible with diambra-engine x.y.*
diambra-engine always has a (moving) tag vx.y

This change will always use the engine image diambra/engine:vx.y for any diambra-arena version vx.y.*
We can

I have two questions:

we currently have diambra-arena 2.0xx out, but two different engine versions on docker hub: v2.0 and v2.0.0-rc0, but if I got all correctly it will pull the v2.0. If this is the case, can we remove the 2.0.0-rc0 from dockerhub?

When I test new things locally for diambra arena, and I install it with pip install . it installs diambra-arena0.0.0, I think I can use the env.image arg for the cli to specify the engine version I want, correct?

we currently have diambra-arena 2.0xx out, but two different engine versions on docker hub: v2.0 and v2.0.0-rc0, but if I got all correctly it will pull the v2.0. If this is the case, can we remove the 2.0.0-rc0 from dockerhub?

I think we should provide both a 'moving' tag (v2.0) and a immutable tag that identifies a specific version (v2.0.0-rc0)

When I test new things locally for diambra arena, and I install it with pip install . it installs diambra-arena0.0.0, I think I can use the env.image arg for the cli to specify the engine version I want, correct?

Yes, either use --env.image or do VERSION=v2.0<something> pip install .

Actually, now that I think about it, this means that every new image we want arena a.b.xxx to pull, we need to push a new engine a.c AND a new arena a.c.xxx, even if we don't have changes on arena, correct?
Is not possible to make the CLI look for the last engine image having major.minor ?

(copying from discord relevant bits for reference)

the cli always pulls the latest image that has the same major+minor version as diambra-arena
so if you have arena v2.3.4 installed, it will pull the newest v2.3, which could be 2.3.1 or 2.3.9 or whatver
let say you want to change engine. if it's compatible with the current arena version, you only increment the patch number


PiranhaJava: Piranha versions >=0.1.0 do not error out on piranha.properties as expected

The old configuration format has been deprecated. It was intended that PiranhaJava crashed when seeing such configuration file as opposed to the new .json format. See https://github.com/uber/piranha/blob/master/java/piranha/src/main/java/com/uber/piranha/XPFlagCleaner.java#L262
This warning is currently not triggering when deploying Piranha 0.1.0 with the old configuration format, rather Piranha silently fails to pick up any flag API methods from the configuration.

Never mind, this is a duplicate of #76

Closed by #79


_focus change handler doesnt have full focusPath

As you loop through the focus change handler:
https://github.com/WebPlatformForEmbedded/Lightning/blob/master/src/application/Application.mjs#L107
The focusPath is being created one item at a time. I'd like to know the full focus path in an App level _focus handler.  Setting this._focusPath = newFocusPath two lines above should solve the issue.

Hi @chiefcll
This is intended behaviour, whether the design decision was good or bad is up for debate. However, the proposed change is potentially breaking for existing apps, so there must be a very good reason to do it.
Can you share problem you're trying to solve this change would help you with?
Best regards

At the app level I've created an accessibility screen reader - when Focus changes in the app I want it to get information from the screen on what to read out to a blind user.
 _focus() {
    // Lightning isn't giving us the updated focus path
    let focusPath = this.application.__getFocusPath();
    // let focusPath = this.application.focusPath;
    let lastFocusPath = this._lastFocusPath || [];
    let focusDiff = focusPath.filter(elm => !lastFocusPath.includes(elm));

    let toAnnounce = focusDiff.reduce((acc, elm) => {
      elm.announce && acc.push(elm.announce());
      return acc;
    }, []);

    focusDiff.reverse().reduce((acc, elm) => {
      elm.announceContext && acc.push(elm.announceContext());
      return acc;
    }, toAnnounce);

    this._lastFocusPath = focusPath.slice(0);
    toAnnounce = toAnnounce.filter(a => a);
    if (toAnnounce.length) {
      speak(toAnnounce);
    } else {
      speak('Nothing');
    }
  }

Doing this at the app level I don't have the full focus path yet to go through the elements.

@chiefcll
I see, this is very unusual use case. Nevertheless, your approach is correct, even though __getFocusPath method is private, it's safe to use.
Best regards


Too many open files (regression?)

a few hours into the indexing after starting the
INFO:  Merging partial vocabularies in byte order (internal only) ...

phase the indexing crashes with:
2022-05-23 00:10:53.144	- ERROR: ! ERROR opening file "wikidata.tmp.for-prefix-compression..tmp.partial-vocabulary.1018" with mode "r" (Too many open files)

see also https://github.com/ad-freiburg/qlever/issues/571
As far as i remember the script https://github.com/ad-freiburg/qlever/issues/562 sets the soft ulimit to 1048576 to avoid this but i am not sure whether this is a regression in the script or a bug (regression) in qlever itself.

ulimit -Sn 1048576

The error showed up again on the next attempt.
ulimit -n 1000000

Yes, very good point, this should definitely be part of the script.

Addressed by 3b5dbcb1fbe342b43ae460ddd04a4ea22be452b1


Update the DG: user stories, glossary, NFRs, use cases

Complete the following. Refer to tP week 7, point 4 for more info.

[x] Target user profile
[x] value proposition
[x] user stories:
[x] Use cases

Give use cases (textual form) for a few representative user stories that need multiple steps to complete. e.g. Adding a tag to a person (assume the user needs to find the person first)

[x] Non-functional requirements

Note: Many of the given project constraints can be considered NFRs. You can add more. e.g. performance requirements, usability requirements, scalability requirements, etc.

[x] Glossary: Define terms that are worth recording.

Target user profile, value proposition and user stories updated in #28

Fixed by #49 and #48


Name with blank doesn't work

When I choose a name of the mob that contains a blank, it doesn't work

Could you give an example ? I tried this and it seems to work : https://mob-time-server.herokuapp.com/with space

For now I slugified the mob names, which means spaces will be replaced by dashes. It seemed better than enforcing a difficult rule on the client side for mob names. Right now the room url name and the room name are the same. The goal in the future will be to dissociate them.
Is that fix ok for you ?

Everything is ok and working now. Thanks :)


Add crosschecks for objects & counts between Sphinx and sphobjinv parsing

Once finished, will close #181 and close #182 and close #183.

Codecov Report

Merging #189 (fb36b1c) into master (6b0d318) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master      #189   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           18        18
  Lines          664       664
=========================================
  Hits           664       664

Impacted Files
Coverage Δ

src/sphobjinv/re.py
100.00% <ø> (ø)

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 6b0d318...fb36b1c. Read the comment docs.


Add Auto Climb Command

Climb using a single button press.

Implementation moved to issue branch #76 (from AutoClimb branch)
Ready to test and merge to "Prepare-For-Greater-Boston"

Fixed with issue #93


feat: add a horizontal progress bar on top.

add a horizontal progress bar to show the user how much they has scrolled and how much content is left.
I am expecting a level 2 label and , assign me this under gssoc-ext and hacktoberfest label.

/assignme


[TA] Fix pretty check and resolve spell check for swagger version v3.1-preview.4

The swagger specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.4/TextAnalytics.json reported by PrettyCheck and SpellCheck.
Follow the steps documented below to resolve them:
https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/ci-fix.md#prettier-check
https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/ci-fix.md#spell-check

This PR is not necessary. We have resolved all of these in the dev branch PR against master.

@anuchandy this issue seems to have been solved and i will close it. You can reopen this if you have any problem~


Date Picker not unfocusing correctly

Hi there, there's a major issue with your implementation of pickadate. It does not unfocus correctly. Go to your own docs, open the Date Picker by clicking, click outside of the form (or click 'Close) to close the form. Now open a new tab, to go it, and come back to the original tab. The Date Picker will reopen itself.
This does not happen if you click on something else on the page after closing the Date Picker - so clearly it's not unfocusing correctly.

Well for anyone looking for a fix, I came up with a quick CSS fix:
.picker__holder {
pointer-events: none;
}
.picker__wrap {
	pointer-events: auto;
}

@isaachinman i came up with a working solution, i have the code u need to add, of course it's all written by me so it took a few hours to figure this thing out, it's a hack to make it work, i didn't actually change their code, i am sorry i didn't explain this code enough with comments , but give it a try , this worked for me, this is the codepen
$(function() {
  // change this to your own
  var $datePicker = $('.datepicker')
  var $input = $datePicker.pickadate()

  // Use the picker object directly.
  var picker = $input.pickadate('picker');
  var times = 0;
  var prevActiveElement;
  var original = $datePicker.get(0);

  $(window).on("blur", function(e) {
    prevActiveElement = document.activeElement.classList.contains('picker__holder') ? original : null;
  }).on("focus", function(e) {
    var theOrg = document.activeElement.classList.contains('picker__holder') ? original : null;
    console.log();
    if (theOrg == prevActiveElement && times > 0 && picker.get('open') == false) {
      // force close ASAP
      requestAnimationFrame(function() {
        picker.close();
      });
    }
    times=1;
  });

  $('input').on('focus', function(e) {
    prevActiveElement = document.activeElement.classList.contains('picker__holder') ? original : null;
  })
  picker.on('close',function() {
    prevActiveElement = null;
  })
});

@max1011 I've tried very similar thing (in a ember component), but I'm not use a times to tracking, actually I'm not sure why you use a times? I tried with your implementation, but it fails at the first time tab switching. After remove the times tracking, all is well.

@nightire it was for debugging initially but i didn't remove after i was done cause it will not harm anything, but if it causes a problem for you then remove it

I went with a basic blur solution.
If you do not care about Tab support, you can simply add an onClose handler for corresponding picker where you blur the $holder (input):
$('input.datepicker').pickadate({
    onClose : function()
    {
        this.$holder.blur();
    }
});

Though, if you do care about Tab, then you can store blurrable elements and blur them only if the window is blurred:
var $blurWithWindow = $();

$(window).on('blur', function()
{
    $blurWithWindow.blur();
});

$('input.datepicker').pickadate({
    onStart : function()
    {
        $blurWithWindow = $blurWithWindow.add(this.$holder);
    }
});

While the other solution will break Tab support after the window has been changed, it still was sufficent fix for me.

Hey  isaachinman, your fix seems to work here. Thanks!

isaachinman, thanks a lot elegant solution.

Let's please keep conversations where they've already been started (with a simple search): https://github.com/amsul/pickadate.js/issues/160


[StarryNight] Mismatched description of the song

Prerequisites
Before opening an issue, make sure

You have the most recent spicetify version.
Your Spotify version is compatible with the spicetify version you are using.
You have the most recent version of the themes.
You followed the installation instructions for the theme you are using (please go through the entire theme README).

Describe the bug
It just is too high in the page
To Reproduce
Steps to reproduce the behavior:

Open Spotify with Spicetify installed
Download StarryNight

Expected behavior
It to be lower in the page
Screenshots

Logs
Add logs from console. To do that

Run spicetify enable-devtools in terminal
Spotify will be restarted
Hit Ctrl + Shift + I to open DevTools window
Navigate to tab Console
Copy console window content.

[xpui.app.spotify.com-1724248205472.log](https://github.com/user-attachments/files/16692542/xpui.app.spotify.com-1724248205472.log)

Specifics (please complete the following information):

OS: Windows 11
Spotify version <IP_ADDRESS>5.g81fd6352
Spicetify version v2.37.1
Theme name StarryNight

@b-chen00

Are you using any other apps, extensions, or snippets?

Are you using any other apps, extensions, or snippets?

Try uninstalling the "Fix Listening On" snippet. I was able to replicate this bug with that snippet installed as shown below:

The Listening On should be fine even without this snippet though I don't like how it isn't centered.

Thank you, it worked!


Choice parsing: support turn timeout decisions

...are your commit descriptions more than 72 chars wide? o_O

I'm not sure if this is really the way I'd implement it, but this is better than the current system.

Inserting random line breaks is a burden. Do we care about that? I've only limited commit headers so far...
How would you implement it? I thought on the alternative of having a pokemon.resolveDecision() method and call it at Battle.choose for 'default' choices, but that increases the times 'LockMove' and 'LockMoveTarget' are run.

I limit my own commit messages to 72 columns because that's what I've been told, and because it plays better with certain commandline Git commands.
I don't use any of those commands personally, though, so I don't care too much if you leave off the manual wrapping.

I'm not sure how exactly I'd personally implement this (if I cared enough to think through how to refactor it, I'd just commit said refactor), but intuitively this seems like more code than necessary.


to many reference can not use

i download this project.
to many refreence can not find in project.
sorry, my english is pool.as much as possible describe the problem.
why not package these dll in one folder?

The packages are restored by NuGet when you build. If you have not enabled package restore, you should as it is how most assemblies are packaged now using .NET.
You should also be using Visual Studio 2015 for the best experience.

thank you for your replied, and i try it. if have any problem, i will  ask you,


Newlib license complexity

libtock-c depends on newlib. The newlib codebase contains code under many different licenses, including the GPL and LGPL. Because newlib's codebase is large (over 6000 source files), this poses a challenge for closed-source projects that want to utilize libtock-c. In particular:

Depending on a codebase (specifically, the newlib source tarball) that contains many GPL-licensed files makes it difficult for closed-source projects to verify they are in compliance with the GPL.
Depending on a library with LGPL components in a statically-linked environment makes it difficult for closed-source projects to verify they are in compliance with the LGPL.

Perhaps there is an alternative C library we can migrate to that is under licenses more similar to libtock-c's Apache-2.0 OR MIT licensing?

picolib should solve the license issues and there is https://github.com/tock/libtock-c/pull/305 adding support to libtock-c

https://github.com/tock/libtock-c/pull/305 only adds RISC-V support though. ARM support is trickier with the position independent requirements, but it probably wouldn't be too hard to do

picolib looks great, with one possible catch. It contains a single AGPL file, and Google is not a fan of the AGPL: https://opensource.google/documentation/reference/using/agpl-policy
If Tock wants to go with picolib, I'll want to ask around internally to make sure that I'm not replacing one challenge with another.

examples/ble-uart and examples/rf233 both seem to contain code licensed under different licenses as well

Would it help if we did:
tar -xzf picolib-1.8.5.tar.xz
rm picolibc-1.8.5/scripts/GeneratePicolibcCrossFile.sh
... continue on with building

in our picolib build script?


Updated AspNet.Identity.Mongo from 2.0.4 (pre) to 2.0.8 (stable)

and removed references to EntityFramework and Microsoft.AspNet.Identity.EntityFramework as requested.

@g0t4

Hey there were a few references here to EF still so I updated the example with a clean call to Update-Package, thanks for pointing this out.


Fix typo in bot quick start article

In reading quick start guide, I found a small typo.

The content no longer mentions bot file.


Allowed memory size

Hi
This package cause this problem while installing:
Allowed memory size of<PHONE_NUMBER> bytes exhausted (tried to allocate 4096 bytes)
I have this issue only with this package.
I know that I can run composer update to solve this problem, but It effects on all next packages that I want to install. and all of installations face this problem after having this package.

This is a composer related issue and not cause of this package.
You can refer to quick fixes given for it in this thread to resolve it - https://stackoverflow.com/questions/49212475/composer-require-runs-out-of-memory-php-fatal-error-allowed-memory-size-of-161
-TT


UI updated

have updated the ui

Thanks for PR. It has been merged.

But the website is not updated…what might be the issue? Sent from Mail for Windows From: Suraj VishwakarmaSent: Sunday, October 15, 2023 12:46 PMTo: surajondev/text-to-speechCc: Anjana; AuthorSubject: Re: [surajondev/text-to-speech] UI updated (PR #26) Thanks for PR. It has been merged.—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>Virus-free.www.avast.com


Build failures on macOS when using RichTextFX 0.11.0

Expected Behavior
updating to 0.11.0 should work with no other changes (if I'm already using Java 11 or above).
Actual Behavior
Gradle build using the 'application' plugin fails with the following error:
* What went wrong:
Execution failed for task ':startScripts'.
> Error while evaluating property 'relativeClasspath' of task ':startScripts'.
   > Could not resolve all files for configuration ':runtimeClasspath'.
      > Could not find javafx-fxml-19-win.jar (org.openjfx:javafx-fxml:19).
        Searched in the following locations:
            file:/Users/scott/.m2/repository/org/openjfx/javafx-fxml/19/javafx-fxml-19-win.jar
      > Could not find javafx-controls-19-win.jar (org.openjfx:javafx-controls:19).
        Searched in the following locations:
            file:/Users/scott/.m2/repository/org/openjfx/javafx-controls/19/javafx-controls-19-win.jar
      > Could not find javafx-graphics-19-win.jar (org.openjfx:javafx-graphics:19).
        Searched in the following locations:
            file:/Users/scott/.m2/repository/org/openjfx/javafx-graphics/19/javafx-graphics-19-win.jar
      > Could not find javafx-base-19-win.jar (org.openjfx:javafx-base:19).
        Searched in the following locations:
            file:/Users/scott/.m2/repository/org/openjfx/javafx-base/19/javafx-base-19-win.jar

I am building and running on macOS and have specified JavaFX 19 with the gradle plugin for javafx.  Note the reference to "-win"
Looking at
~/.gradle/caches/modules-2/files-2.1/org.fxmisc.richtext/richtextfx/0.11.0/99a3f3d838ce91c8ecc1d34a664c83718439c621/richtextfx-0.11.0.module
I see several "thirdPartyCompatibility" references that specific a "win" classifier.  I'm not sure if this is the issue, but it seems wrong.
  84   │           "thirdPartyCompatibility": {
  85   │             "artifactSelector": {
  86   │               "name": "javafx-graphics",
  87   │               "type": "jar",
  88   │               "extension": "jar",
  89   │               "classifier": "win"
  90   │             }
  91   │           }

Environment info:

RichTextFX Version: 0.11.0
Operating System: macOS 12.6.2
Java version: 17.0.4

Here's a javafx-gradle-plugin issue that I think is related: Remove classifier from JavaFX artifacts when publishing to Maven Central

Well I fixed my issue of the artifacts not resolving... It's a Gradle issue where if it finds some version of an artifact at a particular repo, it won't look in other repos even if it doesn't find the actual version it is looking for in the first repo.  I had mavenLocal() listed before maventCentral() in my build.gradle file.  Because maven local had older versions of the artifact it prevented the missing artifact from being found at maven central.  There is still an issue, but it isn't stopping me anymore.

Great, thanks for the feedback. When the next version of RichTextFX is released, I'll try and convince Gradle not to include the Javafx dependency stuff.


Todo: Number of clicks to go into editing mode varies randomly

On the home page , on a good mobile connection, the number of touches required to change from editing one row and then another varies randomly.
v0.15.6
To isolate the bug I am only clicking on the text . Not the checkbox or red delete button.
it’s either 1, 2 or 3 clicks. I could not nail down a pattern yet.
I tried waiting 1 second or more between touches to try to isolate the bug to a latency race condition but it did not influence it.
this bug is on IOS Safari. I have not tested on Mac Chrome or  Mac Safari yet.
This behaviour is highly jarring for a user.

It may be easier, to have dedicated edit and save buttons per row like :
https://data-star.dev/examples/click_to_edit
it’s ugly because you edit up with the same buttons on every row though.  Really bad use of screen real estate …

I've moved the SSE on the /api/todos GET feed to be after the cookie upsert, probably correct now.

Are you deploying these to live ?

I tested on Mac Safari and IOS Safari just now
V0.15.6
On Mac, there is always 1 click to get to editing. It works perfectly.
On IOS, it's 1, 2 or 3 clicks .
I wonder if the static caching if not invalidating properly ? When you load the statics, maybe use the git tag in the query string trick to force cache invalidation client side ...
I tried refreshing but still get the bug on IOS.

It's already doing hash static resources.  Clear your cookies
On Thu, Jun 20, 2024, 5:21 PM ged @.***> wrote:

I tested on Mac Safari and IOS Safari just now
V0.15.6
On Mac, there is always 1 click to get to editing. It works perfectly.
On IOS, it's 1, 2 or 3 clicks .
I wonder if the client side static caching if not invalidating properly ?
When you load the statics, maybe use the git tag in the query string trick
to force cache invalidation client side ...
I tried refreshing but still get the bug on IOS.
—
Reply to this email directly, view it on GitHub
https://github.com/delaneyj/datastar/issues/91#issuecomment-2181765806,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADK73D4TMTBBH4HAIKHUO3ZINWZ5AVCNFSM6AAAAABJTI57NOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBRG43DKOBQGY
.
You are receiving this because you commented.Message ID:
@.***>

ok.
Again, are your PR's causing a Prod to Update ? I could be testing stuff that is already fixed.
Here is my reproduction  on IOS:

Clear the web site data for data-star: https://support.apple.com/en-au/105082
Refresh and its V0.15.6

Now we have the same 2 bugs:

delay in allowing editing of about 5 minutes. You click on the text but it will not change to editable.

After 5 minute I refreshed so that it becomes editable. Now at least the text can be edited but it takes 1,2 or 3 clicks.

On Mac Safari there are none of these errors.

Today I had time to catch up and did a local build of main.
But the todo does not show up. Any tips ?
I can then debug off my iPhone.

To-do is in main branch,
https://github.com/delaneyj/datastar/blob/9c315d7b4750f609bb942de58e8803656b0879d4/backends/go/site/routes_home.templ#L102
On Thu, Jun 20, 2024, 9:49 PM ged @.***> wrote:

Today I had time to catch up and did a local build of main.
But the todo does not show up. Any tips ?
I can then debug off my iPhone.
—
Reply to this email directly, view it on GitHub
https://github.com/delaneyj/datastar/issues/91#issuecomment-2181993507,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADK73G7HQ3LBJ7YIN2K3CDZIOWEVAVCNFSM6AAAAABJTI57NOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBRHE4TGNJQG4
.
You are receiving this because you commented.Message ID:
@.***>

thanks @delaneyj
Npm is now working for me, and I see the ToDo demo.

Nah it was my bun setup screwing it up …
I will test things out on iOS

think the is closed, if you are getting odd behavior on only iOS but not Mac it has to do with Safari's version of webkit.  reopen or submit different bug

OK will try it out here and try to nail down the bug.


Unexpected 'Object of type "None" cannot be called (reportOptionalCall)' messages

Environment data

Language Server version: 2021.6.3
OS and version: macOS 10.15.7
Python version: 3.8.7

Expected behaviour
Pylance should not put a warning on lines like this:
    self.ref.register_event("test")(self._test_event_handler)

For reference, self.ref.register_event is typed to return Optional[Callable[..., Awaitable[Optional[str]]]]
Actual behaviour
When opening a file that previously had no warnings, I now see warnings like this from Pylance:
Object of type "None" cannot be called   Pylance(reportOptionalCall)

Logs
Nothing of note was found in the trace logs.
Code Snippet / Additional information
Unfortunately I have been unable to reproduce this issue in a small, standalone sample. 😞 I'm hoping there's enough info here to give you something to go on.
But to give you some idea, the code in question is architected kinda like this, but with the classes split across multiple modules. (Unfortunately, this code does not give the Object of type "None" cannot be called warning that I'm seeing in my other workspace.)
One thing I did notice that may be worth pointing out: if I right-click on _register in the __call__ method of register_event (again, in the code where I'm seeing the issue, not the code below) and choose "Go to Definition", VS Code says "No definition found for _register" even though the method is there (just further down in the class).
class App:
    # Register an event handler (NOTE: can be used as a decorator or as a method)
    def register_event(self, event: str) -> Optional[Callable[..., Awaitable[Optional[str]]]]:
        def __call__(*args, **kwargs):
            functions = list(kwargs) if kwargs else list(args)
            return self._register(list(functions))

        return __call__

    def _register(
        self,
        functions: Sequence[Callable[..., Awaitable[Optional[str]]]]
    ) -> Optional[Callable[..., Awaitable[Optional[str]]]]:
        ...

class Dispatcher:
    def __init__(self, thing) -> None:
        self.app = self.thing.app

    def initialize(self) -> None:
        self.app.register_event("test")(self._test_event_handler)

    async def _test_event_handler() -> None:
        ...

This is intended behavior. We recently enabled the reportOptionalCall diagnostic check by default in basic type checking mode. This change was based on feedback from users. If you don't want this check on, you can disable it in the settings.
If a value is None, you cannot call it. So if a value is a union between None and some other callable type, you need to first validate that it's not None before you can safely call it. That's what this error is telling you. You can validate it through an if statement (if x is not None) or with an assert (assert x is not None).

OK, this is really odd. I restarted VS Code (I hit Cmd-Q accidentally, thinking I was focused on another app) and now the 7 lines that were just giving me the reportOptionalCall warning no longer have any warnings, and I didn't change anything...
I thought maybe something updated, but the Python Language Server item in the Output tab still says Pylance language server 2021.6.3.

Do you have typeCheckingMode set to 'basic'? This diagnostic check is off if typeCheckingMode is set to 'off'.
Are other language server features working? For example, do you see text if you hover over a symbol, or does it just say "Loading..."?

Just checked, and I did have typeCheckingMode set to off.
I set it to basic, and then restarted VS Code for good measure, but the reportOptionalCall warnings didn't come back for the file in question. However, having typeCheckingMode set to basic does cause a reportOptionalCall warning to show up in the sample code in my original comment.
Other language server features are working fine. For example, I can hover and get this:

but when I hover over self._register the pop-up just says _register: Unknown.
But if I go down to where the _register method is defined in the class, and hover over _register there, it shows the method args in the pop-up.
(Also, I can jump to _register from the Breadcrumbs navigation bar, for whatever that's worth.)

Note that the change to the optional setting default wasn't in the last Pylance release, but will be in the next one, so maybe some of the discrepancies in what squiggles you're seeing are just that.

The issue I mentioned in [https://github.com/microsoft/pylance-release/issues/1519#issuecomment-873191429](this comment) (about self._register being listed as "Unknown") are no longer an issue in Pylance language server 2021.7.2 (pyright adb49aaa).
Since the reportOptionalCall behavior is intended, and the issue mentioned above has resolved itself, I'm closing this issue.


Design two binders simultaneously

Using the BindCraft, is it possible to simultaneously generate two binders binding to different interfaces on one target protein? I am thinking of running the pipeline twice, where you used the output complex from the first round as your target in the second round. Are there other ways?

not two at a time, but you can use target+binder1 as input into a second round

Thanks so much, @martinpacesa! I will try this method anyway.
Now I have another issue. After binder hallucination and optimization, I can get satisfying trajectories with low i_pae (~0.2). But after passing through MPNNsol, the i_pae usually becomes quite large (~0.8+). I know that the binder sequence has been changed a little bit by MPNNsol, but why has the i_pae significantly deteriorated? Do you have some suggestions in this case?


cfn-lint usage has changed.

cfn-lint Version
You can use cfn-lint --version to check the cfn-lint version on your system
% cfn-lint -v
cfn-lint 1.10.2

Provide additional details e.g. code snippets. Be sure to remove any sensitive data.
When I run multiple files, it pipes the findings from the last file. I have to run each file individually to get an output. What am I doing wrong?
Steps to reproduce

Run cfn-lint or cfn-lint -t with multiple files in a single command

Expected output
cfn-lint pipes out the findings from both files, one after the other.
Actual Output
When I run multiple files, it pipes the findings from the last file in the command. I had to run each file individually to get an output for every file. Just to show that both files have findings, I have added the last command.
% cfn-lint -t Elasticbeanstalk/ElasticBeanstalk.yml ECS/ECS.yml
E0000 Duplicate found "PubliclyAccessible" (line 4389)
ECS/ECS.yml:4389:7

E0000 Duplicate found "PubliclyAccessible" (line 4411)
ECS/ECS.yml:4411:7

% cfn-lint Elasticbeanstalk/ElasticBeanstalk.yml ECS/ECS.yml
E0000 Duplicate found "PubliclyAccessible" (line 4389)
ECS/ECS.yml:4389:7

E0000 Duplicate found "PubliclyAccessible" (line 4411)
ECS/ECS.yml:4411:7

% cfn-lint -t Elasticbeanstalk/ElasticBeanstalk.yml
E0000 Duplicate found "CustomerName" (line 413)
Elasticbeanstalk/ElasticBeanstalk.yml:413:7

E0000 Duplicate found "CustomerName" (line 421)
Elasticbeanstalk/ElasticBeanstalk.yml:421:7

E0000 Duplicate found "ExportTag" (line 425)
Elasticbeanstalk/ElasticBeanstalk.yml:425:7

E0000 Duplicate found "DomainName" (line 435)
Elasticbeanstalk/ElasticBeanstalk.yml:435:7

Please advise.

What OS and shell are you using?

OS version: macOS Sonoma 14.6.1 (23G93)
% zsh --version
zsh 5.9 (x86_64-apple-darwin23.0)

Interesting we have the same exact setup
➜  cfn-lint -t one.yaml two.yaml
E3031 'BadBucketName' does not match '^[a-z0-9][a-z0-9.-]*[a-z0-9]$'
one.yaml:5:7

E3012 {'Key': 'Value'} is not of type 'string'
two.yaml:6:7

Its an issue with how we are handling the parsing errors like duplicate found.  Looking into it.

Tested and the fix resolves the issue.


Spark-Retrieval/data/embed.csv is empty

I noticed that you are still updating your code， some bugs sometimes appear.
Is there any historical version of the code that works fine?
Would you like to share it?
Thank you very much.

The library is currently in developing mode and I don't keep the historical versions.
The main branch should be runnable. Could you describe your process and what kind of bugs you are facing?
If the training is successful, it's weird that embed.csv is empty.


[documentation]: #422 Update CONTRIBUTING.md

Issue number
Relevant issue number (e.g. #404): #
Please describe additional details for testing this change
CONTRIBUTING.md
I change CONTRIBUTING.md in Make Changes section
We follow semantic versioning (semver) for Cuttle Cards, which uses version numbers like 4.3.22. The versioning scheme consists of major, minor, and patch versions. When submitting a PR, please update the version field in package.json based on the version label of the issue being addressed.
If the issue is labeled patch-version, increment the patch number in the version field (e.g., from 4.3.22 to 4.3.23).
If the issue is labeled minor-version, reset the patch number to zero and increment the minor version (e.g., from 4.3.22 to 4.4.0).
If the issue is labeled major-version, set both the patch and minor versions to zero and increment the major version (e.g., from 4.3.22 to 5.0.0).
Please note that you don't need to repeat this process for package-lock.json as it automatically inherits the version number from package.json whenever dependencies are updated.

I Update pakage.json version field. can you merge my pull request  @itsalaidbacklife @seriouslysean


Better eval

check this out?
ast.literal_eval

it doesn't take user's inputs, so we don't care about safety. plus in readme it's recommended to redefine eval to allow support of your modules, where you can use literal_eval if you wish


Internal Server Error for url: http://nuclio:8070/api/function_invocations

I deployed successfully the following services:
nuctl deploy --project-name cvat \
  --path serverless/tensorflow/matterport/mask_rcnn/nuclio \
  --platform local --base-image tensorflow/tensorflow:1.15.5-gpu-py3 \
  --desc "GPU based implementation of Mask RCNN on Python 3, Keras, and TensorFlow." \
  --image cvat/tf.matterport.mask_rcnn_gpu \
  --triggers '{"myHttpTrigger": {"maxWorkers": 1}}' \
  --resource-limit nvidia.com/gpu=1

nuctl deploy --project-name cvat \
  --path serverless/pytorch/facebookresearch/detectron2/retinanet/nuclio \
  --volume `pwd`/serverless/common:/opt/nuclio/common \
  --file serverless/pytorch/facebookresearch/detectron2/retinanet/nuclio/function-gpu.yaml \
  --platform local \
  --triggers '{"myHttpTrigger": {"maxWorkers": 1}}' \
  --resource-limit nvidia.com/gpu=1

nuctl deploy --project-name cvat \
  --path serverless/openvino/dextr/nuclio \
  --volume `pwd`/serverless/common:/opt/nuclio/common \
  --platform local

nuctl get function
#  NAMESPACE |                      NAME                      | PROJECT |  STATE   | NODE PORT | REPLICAS
#  nuclio    | openvino-dextr                                 | cvat    | ready    |     49168 | 1/1
#  nuclio    | pth.facebookresearch.detectron2.retinanet_r101 | cvat    | ready    |     49194 | 1/1
#  nuclio    | tf-matterport-mask-rcnn                        | cvat    | ready    |     49153 | 1/1

But I am getting the following error during its usage:

Anyone knows what it can be?

@andrewssobral , I only can guess. Try to remove one of serverless functions which you deployed on GPU. GPU has limited amount of memory. In many cases it doesn't allow to run several functions on GPU at the same time. We will work to remove the limitation in the future.

@andrewssobral , I will close the issue. Don't hesitate to ask our community for help here: https://gitter.im/opencv-cvat/public


Document Policy for Supporting Compilers/Runtimes

Hello!

Vote on this issue by adding a 👍 reaction
If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details
This repository offers container images for all of our supported languages. However, we don't provide documentation of what version of the language is installed on the container image.
We want customers to know our policy for upgrading the compilers/runtimes associated with each language.
This has two primary benefits:

It allows customers who rely on these images but run old versions of the language to know how much time they have to upgrade. For example, support a customer is running Go 1.18. They may want to know when we plan to bump the version of this Go image from 1.18 to 1.19 so they can prepare their source code to be compatible with 1.19. In the case of Go, this isn't too much of a problem since the Go compatibility promise guarantees straightforward upgrading. However, for languages like NodeJS, this is not the case.

It establishes a timeline for us to upgrade the container images. We want to know when we can upgrade the images without breaking our customers' programs.

As an ancillary benefit, documenting the upgrade policy increases our accountability. Right now, container images seem to be inconsistently upgraded across languages. For example, the Go version is pinned to 1.18, but our NodeJS runtime floats to whatever is LTS.
You can see we won't specify the language version in our Dockerhub documentation (Go, for example).

Affected area/feature

Dockerhub Documentation
The Dockerfile ARGs themselves
This repo's README

This now documented in https://github.com/pulumi/pulumi-docker-containers?tab=readme-ov-file#language-versions


Imptests: negative treasury, action priorities

Description
Resolves:  #4133
Checklist

[x] Commit sequence broadly makes sense and commits have useful messages
[x] New tests are added if needed and existing tests are updated
[x] When applicable, versions are updated in .cabal and CHANGELOG.md files according to the
versioning process.
[x] The version bounds in .cabal files for all affected packages are updated. If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)
[x] All visible changes are prepended to the latest section of a CHANGELOG.md for the affected packages. New section is never added with the code changes. (See RELEASING.md)
[x] Code is formatted with fourmolu (use scripts/fourmolize.sh)
[x] Cabal files are formatted (use scripts/cabal-format.sh)
[x] hie.yaml has been updated (use scripts/gen-hie.sh)
[x] Self-reviewed the diff

The treasury-withdrawals part of this PR is superseded by this PR:https://github.com/IntersectMBO/cardano-ledger/pull/4189, which includes the commit and adds some improvements on it.

Closing, as superseded by:
https://github.com/IntersectMBO/cardano-ledger/pull/4189
https://github.com/IntersectMBO/cardano-ledger/pull/4201


Problem when running multiple SITL

When running "./Tools/sitl_multiple_run.sh" the scripts open two SITL instances. I tried to connect using mavros to those instances but it was impossible. I'm following the same steps as when running "./Tools/sitl_run.sh".
Running one SITL:

./Tools/sitl_run.sh posix-configs/SITL/init/rcS none gazebo iris <REPO_PATH>/build_posix_sitl_default
roslaunch mavros px4.launch fcu_url:=udp://localhost:14540@localhost:14557
After that I get a connection with SITL instance.

Running two SITL instances:

./Tools/sitl_multiple_run.sh
roslaunch mavros px4.launch fcu_url:=udp://localhost:15016@localhost:15016
In this case I don't get a connection. Note that I changed udp ports to match the ones that appear in sitl_multiple_run.sh file.

One of the differences I see is that when running "simulator start -s" in rcS_gazebo_iris it doesn't have a udp port assigned, but when using "rcS_multiple_gazebo_iris" simulator is started using an udp port (i.e: 15019 instead of the default 14560).
I changed "sitl_multiple_run.sh" to use 14560 port but I still couldn't connect.
What am I doing wrong?

@AndreasAntener Is this something similar to #4578 ??

how to insert another PX4 model on gazebo?

@marianobianchi has this been resolved or is it still an issue?
@cynthiamoon what exactly do you want to do?

@julianoes i read this.https://github.com/PX4/sitl_gazebo/pull/30.i want to run multiple autopilots  in one SITL gazebo.i know different physical objects in Gazebo must have different names.i don't  know how to add another autopilots on one SITL gazebo.

I don't know how this works but a pointer is here: https://github.com/PX4/Firmware/blob/master/Tools/sitl_multiple_run.sh
The point is you also need the PX4 simulator, etc. to run for every model, just adding a model in Gazebo won't do it.


Building pistache for ARM

Hello!
Thank you for this great library! As reading the documents looks like it is very well designed and looks a lot like the ASP.Net WebAPIs in C# world.
So, we are trying to build the library for one of our ARM devices and this is the output:
guto@GUTO-SURFACE3:/mnt/c/Dev/Linux/pistache/build$ cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
-- The C compiler identification is GNU 5.2.0
-- The CXX compiler identification is GNU 5.2.0
-- Check for working C compiler: /mnt/c/Dev/Linux/toolchain/bin/arm-arm1176jzs-linux-gnueabi-gcc
-- Check for working C compiler: /mnt/c/Dev/Linux/toolchain/bin/arm-arm1176jzs-linux-gnueabi-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /mnt/c/Dev/Linux/toolchain/bin/arm-arm1176jzs-linux-gnueabi-g++
-- Check for working CXX compiler: /mnt/c/Dev/Linux/toolchain/bin/arm-arm1176jzs-linux-gnueabi-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Performing Test COMPILER_SUPPORTS_CXX0X
-- Performing Test COMPILER_SUPPORTS_CXX0X - Success
CMake Warning at examples/CMakeLists.txt:16 (find_package):
  By not providing "FindRapidJSON.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "RapidJSON", but CMake did not find one.

  Could not find a package configuration file provided by "RapidJSON" with
  any of the following names:

    RapidJSONConfig.cmake
    rapidjson-config.cmake

  Add the installation prefix of "RapidJSON" to CMAKE_PREFIX_PATH or set
  "RapidJSON_DIR" to a directory containing one of the above files.  If
  "RapidJSON" provides a separate development package or SDK, be sure it has
  been installed.

-- Could NOT find GTest (missing:  GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
-- Found PythonInterp: /usr/bin/python (found version "2.7.6")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/c/Dev/Linux/pistache/build
guto@GUTO-SURFACE3:/mnt/c/Dev/Linux/pistache/build$ ls
CMakeCache.txt  cmake_install.cmake  examples                  Makefile  tests
CMakeFiles      CTestTestfile.cmake  googletest-release-1.7.0  src

The complaining part is CMake trying to find RapidJSON. The docs say that Pistache has no dependency... Do we need to ignore that warning or should we build RapidJSON?
Also, I saw that you have interest in implement WebSocket in it, I would love to use and test it.
Thanks!

RapidJson used to be requied but is not anymore. GTest is only used for unit-testing of the code and is not requiered either.

@sebt3 thanks, but looks like it still required:
[ 81%] Building CXX object examples/CMakeFiles/rest_description.dir/rest_description.cc.o
In file included from /mnt/c/Dev/Linux/pistache/examples/rest_description.cc:10:0:
/mnt/c/Dev/Linux/pistache/include/serializer/rapidjson.h:10:36: fatal error: rapidjson/prettywriter.h: No such file or directory
compilation terminated.
make[2]: *** [examples/CMakeFiles/rest_description.dir/rest_description.cc.o] Error 1
make[1]: *** [examples/CMakeFiles/rest_description.dir/all] Error 2
make: *** [all] Error 2

Ok... I passed by the build error and now I'm having this message while trying to follow http://pistache.io/quickstart:
terminate called after throwing an instance of 'std::runtime_error'
  what():  eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC): Function not implemented
Aborted

@sebt3 Any idea?

@oktal any ideas on how to workaround it? Thank you

What is your kernel and libstdc++ version ?
Your error seems odd as this is implemented since a while now.
I would suggest you to try building on your raspberryPi instead of using this generic cross-compiling toolchain as it might not sync well enough with your real hardware

@sebt3 it is not a PI. It is a proprietary payment terminal:
/data/opt $ uname -a
Linux localhost 3.0.56+ #1 Wed Mar 9 17:26:02 CST 2016 armv6l GNU/Linux

libstdc++ is libstdc++.so.6.0.21
We can't build on the device, it has to be cross compiled. Like I said, the compilation is running OK. The problem is at runtime...

Then i'm clueless, I hope @oktal will be more knowledgable.
EFD_NONBLOCK and EFD_CLOEXEC are both feature added in the late 2.6 kernel devel line( I think it's 2.6.27) So your 3.0 kernel should provide this. And this libstdc++ is new enough to provide these too...

/Ping @oktal :)

Hello guys,
Thanks for reporting the issue. I'll take a look when I get some time this week-end

@oktal thanks for get back! Please let me know if/when you have an experimental fix so I can try that out. We really liked pistache here and want to embedd it on our devices. Thanks!

Guys, just to report back. I got it to work on the device! :) Although the device kernel and the libs support eventfd, it was disabled at the device Kernel. The manufacturer issued an update of the kernel for me with it enabled and now it works perfectly so far without any change on code, so thanks for trying to help.
One last thing... When server.serve() is called, it blocks the main thread... Is there another method that I can start a pistache service without blocking and without having to manually create a new thread?
THanks a lot! Keep the good work here! Pistache is far away compared with other webserver libs for C++ I almost feel myself on ASP.Net WebAPI :) and the only missing thing is WebSockets :)

Hello @galvesribeiro
That's a great news. I was a little bit surprised that eventfd was not supported by your kernel. I guess that it could have been replaced by something else like a pipefd but it would have been a little bit painful.
To answer your question, yes serve() will start and block the event-loop in the main-thread. If you want it to start the event-loop in an other thread, just use serveThreaded and it won't block your main thread anymore.
As for websockets, that's something that has already been asked, but I haven't had time to implement it yet.
Thanks for the support, glad you enjoyed the framework :)

@oktal thanks for the support! Will keep moving here.
Please let us know if you find time to get websockets implemented.
Thanks!


Fix ignoring tab settings

I wrote this to handle the issue of writing go and javascript where tabs are the norm. This adds a check for the shiftwidth and expandtab settings, and finds the necessary number of tabs or spaces to insert, instead of defaulting to spaces.
Effectively takes care of #12. I don't have ruby, so I don't know if this correctly passes the tests, but from my attempts to break it, seems to be working so far.

It does seem to pass the tests, or at least that's what my build is saying :). Thank you for your work, it seems pretty reasonable, so I'll go ahead and merge.


Unit tests for doSelectedOperationFunction

Description

Unit tests for doSelectedOperationFunction
100% code coverage with all cases tested

Fixes https://issues.redhat.com/browse/CCXDEV-11474
Type of change

Unit tests (no changes in the code)

Testing steps
To be checked on CI.
Checklist

[ ] make before_commit passes
[ ] updated documentation wherever necessary
[ ] added or modified tests if necessary
[ ] updated schemas and validators in insights-data-schemas in case of input/output change

maybe you could have used table testing?


Postgres Discovery & Writer Module

Resolve #1

Wondering if this attribute is duplicated.
https://github.com/SeaQL/sea-schema/blob/81852583dcabba4788d8398dd819869c9522ff22/src/postgres/def/schema.rs#L23-L24

Seems it's not straightforward to discover primary columns and we don't have primary key info on ColumnInfo struct.
https://dba.stackexchange.com/questions/47098/how-do-i-determine-if-a-column-is-defined-as-a-serial-data-type-instead-of-an-in

Isn't we have that in table constraints already?

In order to handle composite primary key, even in mysql, we loop over the indexes.

Yes, but not in column info

The MySQL separate primary key as a separate call too, and not relying on the column info indeed


Control Characters (LF, CR) are not shown in editor

At least on my Linux machine the rendering of (some) control characters does not work. I'm interested to see LF or LFCR at the end of each line.
Neither Toggle Control Characters, nor workspace settings "editor.renderControlCharacters": true change anything.
Here is a screenshot:

VSCode Version: 1.7.2
OS Version:  Ubuntu Gnome/Mutter 14.04, Kernel 4.4.0

This issue is somehow related to this one, but has a different focus.

VSCode (by design) normalizes line endings once a file is opened. IMHO this is a good thing probably 99.99% of the time.
#127 tracks that we add the option to opt out of it.
Until then, rendering LF or CRLF inline would be superfluous as the current line ending for the file can be always seen in the status bar:


Add example for Embedded Continuous Recognition

Essentially, combining continuous_recognition_from_file with embedded_recognize_once_async.
Bindings.rs was auto-updated in my VS Code instance. Please let me know if that introduces an issue.

hi,
thank you for the PR! Embedded models is something I am  really interested in testing for long long time. The problem is Microsoft exposes embedded models' details only to enterprise customers in limited access program(see here https://learn.microsoft.com/en-us/azure/ai-services/speech-service/embedded-speech?tabs=android-target%2Cjre&pivots=programming-language-csharp#embedded-speech-sdk-packages).
Do you have access to some embedded model? Otherwise there is no way to test it.

Do you have access to some embedded model? Otherwise there is no way to test it.

I will attempt to get access and test this example. Expect this to take a week or two.

it would be great to have this model somewhere available for download and testing with library. this feature is there for long time but was never tested properly. At the time when this was introduced it was not easy to get the access from Microsoft, maybe things have changed form that time for better :) I wasn't following on this for some time, not sure.

It's probably still difficult to get access if you're not working on an enterprise product, even then embedded speech is viewed as last resort for enterprises with internet / data policy constraints.
https://learn.microsoft.com/en-us/legal/cognitive-services/speech-service/embedded-speech/limited-access-embedded-speech?context=%2Fazure%2Fai-services%2Fspeech-service%2Fcontext%2Fcontext#registration-process

ok, let me think about it for a moment. Since you don't have access to embedded models and this PR simply adds example there is no real need to merge it soon. I will keep it open so that I don't forget about it. I will try get the access somehow as well, let's see how it goes.


I also dug a bit into the need for ignition-complete.target to carry its own OnFailure declaration.  The test case in @jlebon's bug no longer works on F30/F31.  Overriding initrd.target to OnFailureJobMode=isolate, as @jlebon suggested, does avoid the problem.  Since the workaround in ignition-complete.target is localized and I believe it to be reliable, I've updated the comment there and am inclined to leave it alone for now.
Part of https://github.com/coreos/fedora-coreos-config/pull/177.

Kola doesn't have negative tests at all


feat: update neutronjs to sdk47 #ntrn-146

https://hadronlabs.atlassian.net/browse/NTRN-147
What's done:

Uses buf to generate protobuf generated files
Moved all newer sdk47 branch code for sdk47 into neutronjs
Removed all helper's code from integration tests

Integration tests: https://github.com/neutron-org/neutron-integration-tests/pull/244
NeutronJS: https://github.com/neutron-org/neutronjsplus/pull/11

https://github.com/neutron-org/neutronjsplus/pull/11#pullrequestreview-1755071868
reason is that it's redundant directory, since all the library code was in "helpers".
I think it's the old legacy of the code being in neutron-integration-tests, where it made sense.
So I think in the future (refactoring) we can move files under some meaningful structure, but helpers is not it.

https://github.com/neutron-org/neutron-tests/actions/runs/7046159446


tree-sitter-css doesn't highlight correctly

The https://github.com/tree-sitter/tree-sitter-css grammar parser, for whatever unfathomable reason, marks the class selectors, CSS properties and various other things the same colour. See https://github.com/tree-sitter/tree-sitter-css/issues/34 for photo examples. This issue on this repo implies that the treesitter-css parser is the only one that works with the svelte parser.
My question: is there any way for me to use the default CSS parser instead of the treesitter one? The default CSS syntax highlighting is exactly how I want it to look, but it's physically impossible to replicate it with the treesitter-css parser.
BTW: Loving this parser in all other facets, great work!

I think this is not possible. BTW, are you using this for Neovim or just for parsing? I can help though

@sammce Did you try ":TSInstall scss css" in neovim?


camera_i2c for Pi 4B

For the Pi 4B, what's the recommended camera_i2c to set up the gpio? Thanks!

For a quick test, adding 'a03111'|'b03111|'c03111' in to 3B's setting in camera_i2c seems to work fine for now.

camera_i2c updated.


Update TV SDK, mac address bug addressed and synced content launch xml files per spec.

Problem

ContentLaunch.LaunchContentRequest command was not passing parameterList to delegate objects
ContentLaunch.LaunchURLRequest command was not passing brandingInformation to delegate objects
Content Launch Cluster commands LaunchContent and LaunchURL were not aligned per spec. The parameters were miss-configured.
WakeOnLan.MacAddress was stubbed for linux, now it's returning the real mac addres.

Issues reported
This PR will resolve these reported issues:
https://github.com/project-chip/connectedhomeip/issues/14035
https://github.com/project-chip/connectedhomeip/issues/14521
Change overview
see above
Testing
Run ./scripts/run_in_build_env.sh \                     "./scripts/tests/run_test_suite.py \                      --chip-tool ./out/debug/standalone/chip-tool \                      run \                      --iterations 1 \                      --all-clusters-app ./out/debug/standalone/chip-all-clusters-app \                      --tv-app ./out/debug/standalone/chip-tv-app \                   "

/rebase


Add pow2 setting

closes #56
Not working yet unfortunately. For some reason the pow2 field results in a 400 bad request with the following message:
{
	"error": "pow2: not supported field"
}

even though I can see that the editor uses the same API endpoint 🤔

Now obviously I don't have access to the serverside code, but is there anything there which might explain why I'm seeing this error?
It isn't a documented field: https://developer.playcanvas.com/en/user-manual/api/asset-update/
but the editor appears to be using a field with that name as you pointed out @yaustar.

Having a look through the server code and it looks like we have an explicit list of fields that are permitted via the public API. I will take a look at adding pow2.

I've created an internal PR adding pow2 property to the public API on create/update API paths

@mathiassoeholm Sorry about the wait, I've added the pow2 param to the asset create and update REST APIs in the last Editor release :)

Thanks @yaustar, I really appreciate the effort! 😊
It works perfectly 👍

Tested the branch locally on a test project, looks good!


fix: updates ipld-dag-pb dep to version without .cid properties

Follows on from ipld/js-ipld-dag-pb#99 and updates this module to not rely on DAGNodes having knowledge of their CIDs.
Bonus: also fixes #24 by removing use of js-ipfs from this module breaking another circular dependency from the project.
License: MIT
Signed-off-by: achingbrain<EMAIL_ADDRESS>

N.b. this PR uses a github url for the ipld-dag-pb dependency temporarily and will need a new release of js-ipld that dependes on ipld-dab-pb with ipld/js-ipld-dag-pb#99 merged


It's possible fill any pdf or only if I create a form with the same tool?

I am digging up for a while e tring to use this tool only to fill a pdf that I already have, but with no success. That's raise me the doubt if that's is possible.
So, it's possible fill a pdf easily? If yes, some trick?

Hello @aismaniotto! Yes, this is certainly possible to do. pdf-lib has a new form filling API that makes this quite easy. Here’s an example: https://github.com/Hopding/pdf-lib#fill-form. See the README and API docs for more info.

Yesss, I see that. But i don't know how to get the field of my pdf, because thats pdf wasn't me who create, it's a generic government pdf, that's why I ask if I also need create the form. Get it?
https://www.icmbio.gov.br/cepsul/images/stories/mapa_bordo/mb_anexo_ii_espinhel_long_line_superficie.pdf

You can open the document in some PDF readers (e.g. Adobe Acrobat) to see what the field names are. You can also get all the fields and print out their names programmatically. See https://pdf-lib.js.org/docs/api/classes/pdfform#getfields. E.g.
const form = pdfDoc.getForm()
const fields = form.getFields()
fields.forEach(field => {
  const type = field.constructor.name
  const name = field.getName()
  console.log(`${type}: ${name}`)
})

Using this programmatically I received a empty array :+1:
So, I should guess that is not possible use this package on this pdf?

Finded it the answers that I was looking for :)
With the currently pdf it's not possible fill it, but I can use this package to create the form on the pdf or some another tool.
Any way, thanks

@aismaniotto I took some time yesterday evening and today to look at the PDF you shared. The reason that pdf-lib returned an empty array is because the PDF doesn't actually contain any form fields whatsoever. You can confirm that this is the case by opening the document in any PDF reader, including Adobe Acrobat, and attempting to edit the form fields. You will be unable to do so. I tried it myself with Preview, Foxit Reader, Adobe Acrobat, and Google Chrome. None of them found any form fields in the PDF.
However, you can modify the document to add form fields to it. You can do this with pdf-lib if you like. But you'll have to manually figure out all the coordinates for the text fields in the PDF's various tables. A better alternative might be to use another tool to scan the PDF you shared and produce a modified version with form fields. Adobe Acrobat is capable of doing this, so I've gone ahead and done it for you already. Here's a copy of your document with form fields added by Acrobat:
with_form_fields-mb_anexo_ii_espinhel_long_line_superficie.pdf.
If you use the above snippet to load this new document and print out its form fields, you will see the following (truncated for brevity):
PDFTextField: Lance N
PDFTextField: Lance N_2
PDFTextField: Lance N_3
PDFTextField: LançamentoData diamês
PDFTextField: RecolhimentoData diamês
PDFTextField: LançamentoData diamês_2
...
PDFTextField: N Reg SEAPPR
PDFTextField: N InscCapPortos

Thank you so much for that. I figured that lattely and start to work with some tool to make this form. Honestly, I took to much time to understand that, not because your doc (your doc is great), because I actually never has seen a fillable PDF before hehe
Only one last doubt, the tool on Adobe Acrobat to create the form on pdf is a premium or free feature?
And again, thank you soo much.

Pretty sure it's a premium feature. Although, you can get a trial version of Acrobat Premium for free (seems like it expires after a month or so). And no worries about your confusion. PDFs are hard ¯_(ツ)_/¯

I want to get PDF field Names with Page number, is it possible ?


Added The American School of Bangkok

Added The American School of Bangkok

@ThanakornSS First stage of verification passed, official domain is asb.ac.th as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@ThanakornSS Pull request merged. Thank you!


Fixed numpy error on macos

I had the following issue on macos and fixed it.
$ python3 setup.py build_ext --inplace
Compiling dehaze.pyx because it changed.
[1/1] Cythonizing dehaze.pyx
running build_ext
building 'dehaze' extension
creating build
creating build/temp.macosx-10.12-x86_64-3.6
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c dehaze.c -o build/temp.macosx-10.12-x86_64-3.6/dehaze.o -O3
dehaze.c:447:10: fatal error: 'numpy/arrayobject.h' file not found
#include "numpy/arrayobject.h"
         ^
1 error generated.
error: command 'clang' failed with exit status 1

Thanks for this bug-fix.


[Bug] Recording Stream 3x

After Streamer Went live I went to check if everything with the new folder naming was working. Where I noticed that the same Stream is beeing recorded 3times. Everything got called 3 Times, even got the notification on telegram 3x.

2022-09-02 15:58:13.143 29 | hook  Hook called
2022-09-02 15:58:24.754 29 | automator.handle  Automator stream.online event for h0llylp (retry 0)
2022-09-02 15:58:39.184 29 | channel  Create VOD JSON for h0llylp: h0llylp_202209_4.json @ /usr/local/share/twitchautomator/data/storage/vods/h0llylp/20220909
2022-09-02 15:58:39.185 29 | vodclass  Saving JSON of h0llylp_202209_4  (create json)
2022-09-02 15:58:39.189 29 | vodclass  No chapters on h0llylp_202209_4!
2022-09-02 15:58:39.192 29 | vodclass  Loaded VOD h0llylp_202209_4 is not finalized!
2022-09-02 15:58:39.194 29 | channel  Vod on disk and vod in memory are not the same for h0llylp
2022-09-02 15:58:39.194 29 | channel  Vod on disk and vod in main memory are not the same for h0llylp
2022-09-02 15:58:39.196 29 | vodclass  Saving JSON of h0llylp_202209_4 with no chapters!!
2022-09-02 15:58:39.197 29 | vodclass  Saving JSON of h0llylp_202209_4  (is_capturing set)
2022-09-02 15:58:39.200 29 | automator  Update game for h0llylp_202209_4
2022-09-02 15:58:39.201 29 | automator  Channel data for h0llylp fetched from cache.
2022-09-02 15:58:39.202 29 | vodclass  Saving JSON of h0llylp_202209_4 with no chapters!!
2022-09-02 15:58:39.203 29 | vodclass  Saving JSON of h0llylp_202209_4  (dt_capture_started set)
2022-09-02 15:58:39.203 29 | automator  Starting capture with filename h0llylp_202209_4.ts
2022-09-02 15:58:39.226 29 | automator  Spawned process 58 for capture_h0llylp_202209_4
2022-09-02 15:58:39.228 29 | job  Save job capture_h0llylp_202209_4 with PID 58 to /usr/local/share/twitchautomator/data/cache/pids/capture_h0llylp_202209_4.json
2022-09-02 15:58:39.231 29 | vod.addChapter  Adding chapter The Last of Us Part I - Tag 2 (PS5|GROUNDED) / Danke Sony! | @H0llyLP (The Last of Us Part I) to h0llylp_202209_4
2022-09-02 15:58:39.232 29 | chapter  No next chapter or vod end time for chapter The Last of Us Part I - Tag 2 (PS5|GROUNDED) / Danke Sony! | @H0llyLP (2022-09-02T13:55:35.855Z), duration will probably be 0.
2022-09-02 15:58:39.232 29 | vodclass  Saving JSON of h0llylp_202209_4  (game update)
2022-09-02 15:58:39.241 29 | automator  Stream updated on 'h0llylp' to 'The Last of Us Part I' (The Last of Us Part I - Tag 2 (PS5|GROUNDED) / Danke Sony! | @H0llyLP) using cache.
2022-09-02 15:58:39.370 29 | hook  Hook called
2022-09-02 15:58:39.372 29 | automator.handle  Automator stream.online event for h0llylp (retry 1)
2022-09-02 15:58:39.372 29 | automator.handle  h0llylp is already live, yet another stream online event received.
2022-09-02 15:58:39.376 29 | channel  Create VOD JSON for h0llylp: h0llylp_202209_6.json @ /usr/local/share/twitchautomator/data/storage/vods/h0llylp/20220909
2022-09-02 15:58:39.376 29 | vodclass  Saving JSON of h0llylp_202209_6  (create json)
2022-09-02 15:58:39.381 29 | vodclass  No chapters on h0llylp_202209_6!
2022-09-02 15:58:39.384 29 | vodclass  Loaded VOD h0llylp_202209_6 is not finalized!
2022-09-02 15:58:39.385 29 | channel  Vod on disk and vod in memory are not the same for h0llylp
2022-09-02 15:58:39.385 29 | channel  Vod on disk and vod in main memory are not the same for h0llylp
2022-09-02 15:58:39.387 29 | vodclass  Saving JSON of h0llylp_202209_6 with no chapters!!
2022-09-02 15:58:39.388 29 | vodclass  Saving JSON of h0llylp_202209_6  (is_capturing set)
2022-09-02 15:58:39.391 29 | automator  Update game for h0llylp_202209_6
2022-09-02 15:58:39.392 29 | automator  Channel data for h0llylp fetched from cache.
2022-09-02 15:58:39.393 29 | vodclass  Saving JSON of h0llylp_202209_6 with no chapters!!
2022-09-02 15:58:39.393 29 | vodclass  Saving JSON of h0llylp_202209_6  (dt_capture_started set)
2022-09-02 15:58:39.394 29 | automator  Starting capture with filename h0llylp_202209_6.ts
2022-09-02 15:58:39.401 29 | automator  Spawned process 59 for capture_h0llylp_202209_6
2022-09-02 15:58:39.402 29 | job  Save job capture_h0llylp_202209_6 with PID 59 to /usr/local/share/twitchautomator/data/cache/pids/capture_h0llylp_202209_6.json
2022-09-02 15:58:39.404 29 | vod.addChapter  Adding chapter The Last of Us Part I - Tag 2 (PS5|GROUNDED) / Danke Sony! | @H0llyLP (The Last of Us Part I) to h0llylp_202209_6
2022-09-02 15:58:39.405 29 | chapter  No next chapter or vod end time for chapter The Last of Us Part I - Tag 2 (PS5|GROUNDED) / Danke Sony! | @H0llyLP (2022-09-02T13:55:35.855Z), duration will probably be 0.
2022-09-02 15:58:39.405 29 | vodclass  Saving JSON of h0llylp_202209_6  (game update)
2022-09-02 15:58:39.414 29 | automator  Stream updated on 'h0llylp' to 'The Last of Us Part I' (The Last of Us Part I - Tag 2 (PS5|GROUNDED) / Danke Sony! | @H0llyLP) using cache.
2022-09-02 15:58:40.921 29 | automator  Stream resolution for h0llylp_202209_4: 1080p60
2022-09-02 15:58:40.922 29 | automator  Capturing of h0llylp_202209_4, will try to remove ads!
2022-09-02 15:58:40.922 29 | automator  Streamlink now writing output to container.
2022-09-02 15:58:40.932 29 | automator  Stream resolution for h0llylp_202209_6: 1080p60
2022-09-02 15:58:40.934 29 | automator  Capturing of h0llylp_202209_6, will try to remove ads!
2022-09-02 15:58:40.934 29 | automator  Streamlink now writing output to container.
2022-09-02 15:58:52.996 29 | hook  Hook called
2022-09-02 15:58:52.997 29 | automator.handle  Automator stream.online event for h0llylp (retry 2)
2022-09-02 15:58:52.997 29 | automator.handle  h0llylp is already live, yet another stream online event received.
2022-09-02 15:58:55.973 29 | channel  Create VOD JSON for h0llylp: h0llylp_202209_8.json @ /usr/local/share/twitchautomator/data/storage/vods/h0llylp/20220909
2022-09-02 15:58:55.973 29 | vodclass  Saving JSON of h0llylp_202209_8  (create json)
2022-09-02 15:58:55.977 29 | vodclass  No chapters on h0llylp_202209_8!
2022-09-02 15:58:55.981 29 | vodclass  Loaded VOD h0llylp_202209_8 is not finalized!
2022-09-02 15:58:55.981 29 | channel  Vod on disk and vod in memory are not the same for h0llylp
2022-09-02 15:58:55.982 29 | channel  Vod on disk and vod in main memory are not the same for h0llylp
2022-09-02 15:58:55.984 29 | vodclass  Saving JSON of h0llylp_202209_8 with no chapters!!
2022-09-02 15:58:55.984 29 | vodclass  Saving JSON of h0llylp_202209_8  (is_capturing set)
2022-09-02 15:58:55.987 29 | automator  Update game for h0llylp_202209_8
2022-09-02 15:58:55.988 29 | automator  Channel data for h0llylp fetched from cache.
2022-09-02 15:58:55.988 29 | vodclass  Saving JSON of h0llylp_202209_8 with no chapters!!
2022-09-02 15:58:55.989 29 | vodclass  Saving JSON of h0llylp_202209_8  (dt_capture_started set)
2022-09-02 15:58:55.989 29 | automator  Starting capture with filename h0llylp_202209_8.ts
2022-09-02 15:58:56.001 29 | automator  Spawned process 78 for capture_h0llylp_202209_8
2022-09-02 15:58:56.002 29 | job  Save job capture_h0llylp_202209_8 with PID 78 to /usr/local/share/twitchautomator/data/cache/pids/capture_h0llylp_202209_8.json
2022-09-02 15:58:56.005 29 | vod.addChapter  Adding chapter The Last of Us Part I - Tag 2 (PS5|GROUNDED) / Danke Sony! | @H0llyLP (The Last of Us Part I) to h0llylp_202209_8
2022-09-02 15:58:56.005 29 | chapter  No next chapter or vod end time for chapter The Last of Us Part I - Tag 2 (PS5|GROUNDED) / Danke Sony! | @H0llyLP (2022-09-02T13:55:35.855Z), duration will probably be 0.
2022-09-02 15:58:56.006 29 | vodclass  Saving JSON of h0llylp_202209_8  (game update)
2022-09-02 15:58:56.014 29 | automator  Stream updated on 'h0llylp' to 'The Last of Us Part I' (The Last of Us Part I - Tag 2 (PS5|GROUNDED) / Danke Sony! | @H0llyLP) using cache.
2022-09-02 15:58:57.285 29 | automator  Stream resolution for h0llylp_202209_8: 1080p60
2022-09-02 15:58:57.287 29 | automator  Capturing of h0llylp_202209_8, will try to remove ads!
2022-09-02 15:58:57.287 29 | automator  Streamlink now writing output to container.

Looks like it moved the files itself somerwhere else and then starts to record again?
error_log.txt

is this happening for each chapter change? i could guess where something could go wrong

pretty sure it happens because the check if the capture is running is made before the final name is created which is used for checking... gonna have to find a new way to identify the events - annoying because there's no id sent with them

pretty sure it happens because the check if the capture is running is made before the final name is created which is used for checking... gonna have to find a new way to identify the events - annoying because there's no id sent with them

same error one master branch now? Stream is beeing recorded 2x

master branch does not support changing the template of vods, so that is not possible

master branch does not support changing the template of vods, so that is not possible

well then its another error?

unless that was stuck and it's not recording right now, that's not possible on the master branch

unless that was stuck and it's not recording right now, that's not possible on the master branch

you are right its not recording:

yeah can't explain that, impossible for the old version to have names like that

yeah can't explain that, impossible for the old version to have names like that

But that's master branch and I can set the name here?

wait did i actually push that to master? that seems careless :o
well, any bugs on master won't be fixed until it eventually merges

wait did i actually push that to master? that seems careless :o
well, any bugs on master won't be fixed until it eventually merges

Xd well now it's 3 times recording.

if you're still on the master branch it will continue to happen if you have changed the basename template

if you're still on the master branch it will continue to happen if you have changed the basename template

Oh ok got it :D


U tabs: debug svelte - aria-selected bug

Hi there, I have made two simple test-cases in svelte that breaks u-tabs. So this is sort of a bug-report, sort of a way of sharing my problem outside an issue.
I have not had the time to look into fixing anything as I'm not yet very familiar with the inner workings of u-elements.
This is the two cases:

localStorage backed tabs (remembers the last tab you visited)

tab[0] is always selected when page refreshes.

reactive variable (Not including all the other code that was the original reason for using a reactive variable here)

both tabs are selected when page loads
both tabpanels show up when the last tab is active

Both of these things works in u-tabs 0.0.3.

Fantastic! Thanks for sharing and excellent with code examples Morten! We'll look into it 🌟

Hi @mortenkjelling!
This was a tricky one! It turns out Svelte performs some partial rendering under the hood, gradually making parts of the DOM available. This behavior was preventing u-tabs, u-tablist, u-tab, and u-tabpanel from properly identifying their related elements.
Fortunately, MutationObserver groups all DOM changes within the same event loop. We've leveraged this under the hood to reliably detect the initially selected tab.
This fix is included in<EMAIL_ADDRESS>It would be fantastic if you could test your use case with this release and let us know if it resolves the issue 🙏
Thanks again for your detailed report — really appreciate it! 🌟 🥳

This fix is included in<EMAIL_ADDRESS>It would be fantastic if you could test your use case with this release and let us know if it resolves the issue 🙏

Yes, this seems to be working smoothly in 0.0.8 🙌🏻
I`ll do some more thorough testing and get back to you if there are any more issues. Closing this PR at least since I see you included the test-cases in main now.
Thanks a lot for fixing this so fast :)


How to run cloudfoundry-client-js

Hi
I  want to know whether the application is just a library i can use for my own nodejs application or an application that can run against cloudfoundry?
If 2nd, i don't find any documents about how runing it.
Tks.

Hello
This is a library to help you connect to the Cloud Foundry API. You can use it in your own Node.js applications by following the instructions in the Node.js Usage section of the README.
Cheers!


playerctl: 0.6.0 -> 0.6.1

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/playerctl/versions.
meta.description for playerctl is: '"Command-line utility and library for controlling media players that implement MPRIS"'.
Release on GitHub
Compare changes on GitHub

Checks done (click to expand)

built on NixOS
/nix/store/9rg6d9fqsm67mh8idrli9scy6imnzggm-playerctl-0.6.1/bin/playerctl passed the binary check.
1 of 1 passed binary check by having a zero exit code.
1 of 1 passed binary check by having the new version present in output.
found 0.6.1 with grep in /nix/store/9rg6d9fqsm67mh8idrli9scy6imnzggm-playerctl-0.6.1
directory tree listing: https://gist.github.com/528e8df5e25dc1dab1d36d881a041c83
du listing: https://gist.github.com/89685569a4cb264aedd0e409625a6ca2

Test this build with Cachix (click to expand)

One time setup in nixpkgs Git checkout:
cachix use r-ryantm
git remote add r-ryantm https://github.com/r-ryantm/nixpkgs.git

Test this build:
git fetch r-ryantm && git checkout a73049b1756c115fec19b9acb5134c20fda98935 && nix-shell --pure -I nixpkgs=. -p playerctl

cc @puffnfresh for testing.

Success on x86_64-linux (full log)
Attempted: playerctl
Partial log (click to expand)
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/9rg6d9fqsm67mh8idrli9scy6imnzggm-playerctl-0.6.1
shrinking /nix/store/9rg6d9fqsm67mh8idrli9scy6imnzggm-playerctl-0.6.1/lib/libplayerctl-1.0.so.0.0.0
shrinking /nix/store/9rg6d9fqsm67mh8idrli9scy6imnzggm-playerctl-0.6.1/bin/playerctl
gzipping man pages under /nix/store/9rg6d9fqsm67mh8idrli9scy6imnzggm-playerctl-0.6.1/share/man/
strip is /nix/store/90vmpr41dzsx350k5argycaf693hnl1l-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/9rg6d9fqsm67mh8idrli9scy6imnzggm-playerctl-0.6.1/lib  /nix/store/9rg6d9fqsm67mh8idrli9scy6imnzggm-playerctl-0.6.1/bin
patching script interpreter paths in /nix/store/9rg6d9fqsm67mh8idrli9scy6imnzggm-playerctl-0.6.1
checking for references to /build in /nix/store/9rg6d9fqsm67mh8idrli9scy6imnzggm-playerctl-0.6.1...
/nix/store/9rg6d9fqsm67mh8idrli9scy6imnzggm-playerctl-0.6.1

Success on x86_64-darwin (full log)
Attempted: playerctl
Partial log (click to expand)
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/private/tmp/nix-build-playerctl-0.6.1.drv-0/source'
make[1]: Leaving directory '/private/tmp/nix-build-playerctl-0.6.1.drv-0/source'
glibPreFixupPhase
post-installation fixup
gzipping man pages under /nix/store/rskxzq253ng1kaj04miqyl8m3yff8kwf-playerctl-0.6.1/share/man/
strip is /nix/store/8axizw5mf6dx7wip65nbkyrmlkhmjhc5-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/rskxzq253ng1kaj04miqyl8m3yff8kwf-playerctl-0.6.1/lib  /nix/store/rskxzq253ng1kaj04miqyl8m3yff8kwf-playerctl-0.6.1/bin
patching script interpreter paths in /nix/store/rskxzq253ng1kaj04miqyl8m3yff8kwf-playerctl-0.6.1
/nix/store/rskxzq253ng1kaj04miqyl8m3yff8kwf-playerctl-0.6.1

Success on aarch64-linux (full log)
Attempted: playerctl
Partial log (click to expand)
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/fcsvrxihk0kga2iqanp42c9d80vwk81m-playerctl-0.6.1
shrinking /nix/store/fcsvrxihk0kga2iqanp42c9d80vwk81m-playerctl-0.6.1/bin/playerctl
shrinking /nix/store/fcsvrxihk0kga2iqanp42c9d80vwk81m-playerctl-0.6.1/lib/libplayerctl-1.0.so.0.0.0
gzipping man pages under /nix/store/fcsvrxihk0kga2iqanp42c9d80vwk81m-playerctl-0.6.1/share/man/
strip is /nix/store/7iyn7gn33i7xxjgmwf25k20246y6nd9d-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/fcsvrxihk0kga2iqanp42c9d80vwk81m-playerctl-0.6.1/lib  /nix/store/fcsvrxihk0kga2iqanp42c9d80vwk81m-playerctl-0.6.1/bin
patching script interpreter paths in /nix/store/fcsvrxihk0kga2iqanp42c9d80vwk81m-playerctl-0.6.1
checking for references to /build in /nix/store/fcsvrxihk0kga2iqanp42c9d80vwk81m-playerctl-0.6.1...
/nix/store/fcsvrxihk0kga2iqanp42c9d80vwk81m-playerctl-0.6.1


Update data download, demo configs, and readme

Needs revisiting for robustness of demos. Not to be merged yet.


api/products return null in 1.3.0

Bug report
After updating to V1.3.0 the the api url is not working for products, it's giving error:
"message": "Trying to get property 'product' of non-object",

Closing this one since another issue report already exists #4645.
Please try to verify on the Issues page if a issue has already been reported before submitting a new issue report.


[Feature Request] Access request Management - Revoke Access

Access request Management - Revoke button for active granted Access request.
See #68

This is already available on the Access Request Main Form Command Bar if the Access Request Status Reason is Granted


Installing via poetry

Hello,
I would like to use this to install torch with poetry, but when running it as such poetry run ltt --help or any other command poetry run ltt install torch, I get
 File "/home/david/.cache/pypoetry/virtualenvs/torch-coco-detection-l0t67CWY-py3.6/lib/python3.6/site-packages/light_the_torch/cli/__init__.py", line 173, in add_pip_install_arguments
    assert len(options) == 1
AssertionError

Is this even possible? Or do I have to do get this repo as kind of poetry source?
Btw, it works perfectly if I use it how you explain in the documentation.
Thanks by the way for this.

Hey @dmatos2012

Is this even possible? Or do I have to do get this repo as kind of poetry source?

I don't know. I've never worked with poetry before. Could you post the pyproject.toml file that you are using? Without it, I'm not even getting to the error above.
The error itself is also weird. I was fairly certain that this would never be triggered, hence no error message. What pip version are you using?

Hi @pmeier thanks for the quick reply.
[tool.poetry]
name = "torch-coco-detection"
version = "0.1.0"
description = "blah"
authors = ["blah"]
readme = "README.md"
packages = [{include = "torch_coco_detection"}]

[tool.poetry.dependencies]
python = "3.6.9"
torch = "1.7.1+cu101"
torchvision = "0.8.2+cu101"
light-the-torch = "^0.3.1"

[tool.poetry.dev-dependencies]
pytest = "^6.2.4"
pytest-cov = "^2.12.1"
black = "^21.6-beta.0"
isort = "^5.9.1"
flake8 = "^3.9.2"
bandit = "^1.7.0"
safety = "^1.10.3"

[[tool.poetry.source]]
name = "torch_rep"
url = "https://eternalphane.github.io/pytorch-pypi"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

pip --version
# 20.1`

Basically what I am trying to do is get torch, torchvision with poetry, but this issue came up.  I solved it by adding that poetry.source repo and was able to do poetry add torch=1.7.1+cu101. However, I was trying to get torch instead by using your tool.
So by running poetry run ltt --help in my project root folder, i get the whole error
Traceback (most recent call last):
  File "/home/david/.cache/pypoetry/virtualenvs/torch-coco-detection-l0t67CWY-py3.6/bin/ltt", line 8, in <module>
    sys.exit(main())
  File "/home/david/.cache/pypoetry/virtualenvs/torch-coco-detection-l0t67CWY-py3.6/lib/python3.6/site-packages/light_the_torch/cli/__init__.py", line 12, in main
    args = parse_args(args)
  File "/home/david/.cache/pypoetry/virtualenvs/torch-coco-detection-l0t67CWY-py3.6/lib/python3.6/site-packages/light_the_torch/cli/__init__.py", line 26, in parse_args
    parser = make_ltt_parser()
  File "/home/david/.cache/pypoetry/virtualenvs/torch-coco-detection-l0t67CWY-py3.6/lib/python3.6/site-packages/light_the_torch/cli/__init__.py", line 87, in make_ltt_parser
    add_ltt_find_parser(subparsers)
  File "/home/david/.cache/pypoetry/virtualenvs/torch-coco-detection-l0t67CWY-py3.6/lib/python3.6/site-packages/light_the_torch/cli/__init__.py", line 164, in add_ltt_find_parser
    add_pip_install_arguments(parser, "platform", "python_version")
  File "/home/david/.cache/pypoetry/virtualenvs/torch-coco-detection-l0t67CWY-py3.6/lib/python3.6/site-packages/light_the_torch/cli/__init__.py", line 173, in add_pip_install_arguments
    assert len(options) == 1
AssertionError

It can also be that I am doing something wrong, which in that case it would be unrelated to you but thought i would ask anyways.

I still can't reproduce your error. With the pyproject.toml you posted above it seems to be working as expected:
$poetry run ltt install torch
Collecting torch==1.9.0+cu111
  Downloading https://download.pytorch.org/whl/cu111/torch-1.9.0%2Bcu111-cp39-cp39-linux_x86_64.whl (2041.4 MB)
     |▍                               | 23.1 MB 39.5 MB/s eta 0:00:52

Could you "start fresh" and check if this is also working for you? If not, what extra steps do I need to perform to hit your error?

How are you installing light-the-torch? Because oddly enough, if I create  a venv, and pip install light-the-torch and go back to my project and do  poetry run ltt install torch within the venv it works.
However, if i just make a random directory, and do poetry add light-the-torch to add your package, and then do poetry run ltt I get the previously mentioned error.
Doing system-wide install yielded the same error. This is so strange. So sorry if I am wasting your time in this.

How are you installing light-the-torch? Because oddly enough, if I create a venv, and pip install light-the-torch and go back to my project and do poetry run ltt install torch within the venv it works.

That is also how I did it.

However, if i just make a random directory, and do poetry add light-the-torch to add your package, and then do poetry run ltt I get the previously mentioned error.

If I do the same, I get
RuntimeError

  Poetry could not find a pyproject.toml file in /tmp/bar or its parents

If I copy the pyproject.toml from before, I get
The following packages are already present in the pyproject.toml and will be skipped:

  • light-the-torch

If you want to update it to the latest compatible version, you can use `poetry update package`.
If you prefer to upgrade it to the latest available version, you can use `poetry add package@latest`.

Nothing to add.

So IMO there are some steps missing from your description.

So sorry if I am wasting your time in this.

Well, I'm happy to help you debug your issue, because it might be a problem on my end. But as stated above, I've never used poetry before, and I'm not up to learn all its intricacies just for debugging this. Thus, I need a full minimal working example (MWE) from you that I can follow step by step to get to your bug. A good MWE takes some skill and time to compile, but believe me maintainers will really appreciate having one in a bug report.

RuntimeError
Poetry could not find a pyproject.toml file in /tmp/bar or its parents

Oh sorry, I forgot to mention in my comment you had to do poetry init in the directory created, which creates a pyproject.toml with only python as dependency, thats why that error. It also said light-the-torch was installed because when you copied my pyproject.toml , it was already in the dependencies.

A good MWE takes some skill and time to compile, but believe me maintainers will really appreciate having one in a bug report.

Yeah, I dont know how to do one, as I have never provided one before. I am not that experienced with dependencies, and those kind of things.

But as stated above, I've never used poetry before, and I'm not up to learn all its intricacies just for debugging this.

I understand 100%, so feel free to close this issue, and perhaps if I learn how to do a proper MWE, I can reference this issue and open a new one.
Thanks for the quick replies, and willingness to help :)

Yeah, I dont know how to do one, as I have never provided one before. I am not that experienced with dependencies, and those kind of things.

In that case, lets use this as a learning opportunity. An MWE for the bug you are seeing might look like this:

pip install poetry
poetry init -n
poetry add light-the-torch
ltt --help

Lets go through it step by step:

pip install poetry: Since poetry is not part of this project, it is good practice to include install instructions.
poetry init -n: The -n flag actually has two advantages here:

I don't need to go through the configuration manually.
Since we only using default options, we can be fairly certain that it is not a weird configuration that is causing the problem.

poetry add light-the-torch: Nothing of particular interest here.
ltt --help: The failure is happening even without running it from poetry! That means just by installing it from another tool light-the-torch is not working properly.

With these 4 steps I now have a clear way of debugging this without ever needing to step into poetry land. I'll get right on it.

Are you sure you have pip==20.1? I'm unable to reproduce the error for this version. I do, however, see this for pip>=21. It seems that poetry add light-the-torch does not resolve the dependencies properly, because light-the-torch specifies
https://github.com/pmeier/light-the-torch/blob/eff3ea97b3892d2f580699444c52f5594df81ff4/setup.cfg#L32-L33

No, I am sorry, you are completely right. I did pip --version, and forgot that its just the pip version for my system, which is 20.1
However, looking at the actual pip used by poetry, its indeed what you expect,
pip --version #21.1.2

With these 4 steps I now have a clear way of debugging this without ever needing to step into poetry land. I'll get right on it.

Awesome, thanks for teaching me tho. I thought it was a way more in-depth, including logs and everything. I appreciate the time!

Awesome, thanks for teaching me tho. I thought it was a way more in-depth, including logs and everything. I appreciate the time!

Glad I could help. Remember this later in your OSS journey if you encounter someone that also does not know this and help them out :slightly_smiling_face:

After some further debugging, I found that poetry completely ignores the pip dependency. To test this I've included an requests<2.20 dependency and this is resolved properly:
$poetry add -vvv git+https://github.com/pmeier/light-the-torch.git#poetry
Resolving dependencies...
   1: fact: poetry-ltt is 0.1.0
   1: derived: poetry-ltt
   1: fact: poetry-ltt depends on light-the-torch (rev poetry)
   1: selecting poetry-ltt (0.1.0)
   1: derived: light-the-torch (0.4.0.dev3+g752cf17 git rev poetry)
   1: fact: light-the-torch (rev poetry) depends on requests (<2.20)
   1: selecting light-the-torch (0.4.0.dev3+g752cf17 752cf17)
   1: derived: requests (<2.20)
PyPI: No release information found for requests-0.0.1, skipping
PyPI: No release information found for requests-0.12.01, skipping
PyPI: No release information found for requests-2.15.0, skipping
PyPI: 131 packages found for requests <2.20
   1: fact: requests (2.19.1) depends on chardet (>=3.0.2,<3.1.0)
   1: fact: requests (2.19.1) depends on idna (>=2.5,<2.8)
   1: fact: requests (2.19.1) depends on urllib3 (>=1.21.1,<1.24)
   1: fact: requests (2.19.1) depends on certifi (>=2017.4.17)
   1: selecting requests (2.19.1)
   1: derived: certifi (>=2017.4.17)
   1: derived: urllib3 (>=1.21.1,<1.24)
   1: derived: idna (>=2.5,<2.8)
   1: derived: chardet (>=3.0.2,<3.1.0)
PyPI: No release information found for certifi-0, skipping
PyPI: 21 packages found for certifi >=2017.4.17
PyPI: No release information found for urllib3-0.3, skipping
PyPI: No release information found for urllib3-0.3.1, skipping
PyPI: No release information found for urllib3-0.4.0, skipping
PyPI: No release information found for urllib3-0.4.1, skipping
PyPI: 3 packages found for urllib3 >=1.21.1,<1.24
PyPI: No release information found for idna-0.1, skipping
PyPI: 3 packages found for idna >=2.5,<2.8
PyPI: 3 packages found for chardet >=3.0.2,<3.1.0
   1: selecting urllib3 (1.23)
   1: selecting idna (2.7)
   1: selecting chardet (3.0.4)
   1: selecting certifi (2021.5.30)
   1: Version solving took 4.563 seconds.
   1: Tried 1 solutions.

At this point, I can't offer any further support, because this seems to be either a bug in poetry or intended behavior. In any case, I think it is better to raise this issue to them. If you do, you can link to this thread, so the maintainers don't have to do the debugging again.
I'll close this for now. If there is new information and it turns out that I need to fix something feel free to reopen.