Speed up use of PBKDF2 when building in Debug configuration

MongoKitten users (including those using the Fluent 4 driver built on it) sometimes experience significant connection delays during development due to the compiler not optimizing the PBKDF2 implementation. With a little help from Instruments, these delays can be massively reduced. The follow shows a timing comparison between the original code and that provided in this PR:
Comparisons
10,000 iterations of each hash are repeated 10x, and the total times averaged. Each test is run in Debug and Release configurations, against the original and revised implementations. The first number is the runtime average of the original code; the second number is the runtime average of the new code. The third number expresses how much of the original implementation's runtime is used by the revised one.
macOS (Xcode 15 beta 5)

Config
MD5
SHA-1
SHA-256

debug
5.736s / 0.256s (4.6%)
10.268s / 0.491s (4.8%)
13.799s / 0.483s (3.5%)

release
0.066s / 0.064s (97.0%)
0.099s / 0.089s (90.0%)
0.126s / 0.116s (92.1%)

Linux (swift:5.8-jammy)

Config
MD5
SHA-1
SHA-256

debug
1.711s / 0.297s (17.4%)
2.088s / 0.634s (30.2%)
3.135s / 0.631s (20.1%)

release
0.119s / 0.067s (56.3%)
0.083s / 0.082s (98.8%)
0.100s / 0.095s (95.0%)

Linux (5.9 nightly - swift-5.9-DEVELOPMENT-SNAPSHOT-2023-07-25-a)

Config
MD5
SHA-1
SHA-256

debug
1.379s / 0.290s (21.0%)
1.435s / 0.565s (39.4%)
1.625s / 0.715s (44.0%)

release
0.121s / 0.070s (57.9%)
0.083s / 0.085s (102%)
0.130s / 0.124s (95.4%)

For comparison, here's a quick set of performance numbers for using the SwiftCrypto Insecure.MD5, Insecure.SHA1, and SHA256 implementations:
macOS (Xcode 15 beta 5)

Config
MD5
SHA-1
SHA-256

debug
0.141s
0.119s
0.120s

release
0.087s
0.067s
0.067s

Linux (swift:5.8-jammy)

Config
MD5
SHA-1
SHA-256

debug
0.340s
0.237s
0.258s

release
0.076s
0.063s
0.065s

Linux (5.9 nightly - swift-5.9-DEVELOPMENT-SNAPSHOT-2023-07-25-a)

Config
MD5
SHA-1
SHA-256

debug
0.352s
0.248s
0.280s

release
0.074s
0.062s
0.064s

Conclusions:

SwiftCrypto's MD5 implementation is oddly slow.
SwiftCrypto's SHA-2 implementation is massively faster than us.

Might be the numbers would change all around on an Intel machine, though.


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_b5f2l0v_sf/clone/recipe/meta.yaml:15: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_b5f2l0v_sf/clone/recipe/meta.yaml:21: missing_wheel: For pypi packages, wheel should be present in the host section
ERROR: /tmp/abs_b5f2l0v_sf/clone/recipe/meta.yaml:49: missing_dev_url: The recipe is missing a dev_url
WARNING: /tmp/abs_b5f2l0v_sf/clone/recipe/meta.yaml:49: missing_description: The recipe is missing a description
ERROR: /tmp/abs_b5f2l0v_sf/clone/recipe/meta.yaml:49: http_url: http://github.com/altair-viz/altair_saver/ is not https
ERROR: /tmp/abs_b5f2l0v_sf/clone/recipe/meta.yaml:49: missing_documentation: The recipe is missing a doc_url or doc_source_url
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_dalrzj9r_3/clone/recipe/meta.yaml:15: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_dalrzj9r_3/clone/recipe/meta.yaml:21: missing_wheel: For pypi packages, wheel should be present in the host section
WARNING: /tmp/abs_dalrzj9r_3/clone/recipe/meta.yaml:49: missing_description: The recipe is missing a description
ERROR: /tmp/abs_dalrzj9r_3/clone/recipe/meta.yaml:49: missing_documentation: The recipe is missing a doc_url or doc_source_url
ERROR: /tmp/abs_dalrzj9r_3/clone/recipe/meta.yaml:49: http_url: http://github.com/altair-viz/altair_saver/ is not https
ERROR: /tmp/abs_dalrzj9r_3/clone/recipe/meta.yaml:49: missing_dev_url: The recipe is missing a dev_url
Errors were found


Translate documentation in English

Documentation is fulling in French because this tool was only internal before.
Since we decided to OpenSource it, we would need to translate in English:

The documentation (mainly README.md
Also check if we left some comments in the code in French as well

Work has already been started on the feature/english-readme branch.
@colasbd started working on the translation, but not all paragraphs have been translated yet, so there's still work to do.
If you want to contribute, please make a PR on that feature/english-readme branch (and not on master)


i18n(zh-cn): Update api-reference.mdx

Description (required)
Update api-reference.mdx
Related issues & labels (optional)

#9422
Suggested label: i18n

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale
File
Note

zh-cn
reference/api-reference.mdx
Localization changed, will be marked as complete.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

Thanks @Nin3lee, there have been a few changes in this file, could you take a look? https://github.com/withastro/docs/commits/main/src/content/docs/en/reference/api-reference.mdx?since=2024-09-16T15:23:34.000Z


Hotfix/video text bug

Fix to a bug that caused video_to_text_converter to not update the corresponding fields.

Needs testing @NAshwinKumar and @sreedeepack

Are we using this branch? @NAshwinKumar @sreedeepack


fix prefetch related with UUID fields

Because the foreign key is stored as a string (char field) and
the uuid field is returned as a UUID (StringUUID) object, prefetch
related does not work.
This patch makes StringUUID dict keys equivelent to string dict
keys.

The fix is not working when you are using hyphen = True in your model.
In this case in the dictionary it will be UUID with hyphen and checked against hex format what is incorrect.
IMHO you should __hash__ and __eq__ do against hex values always to be determenistic

Hi all, What's the status of this PR? I am facing a lot of issues while using prefetch_realted with using UUID for my foreign keys and I am using a lot of UUID. If this can fix the issue that be a lot helpful


Fix or remove /homepage-search-cache

/homepage-search-cache was broken by changes to the agencies table which removed columns referencing data sources.
However, /homepage-search-cache is also

Only for internal use
Not seemingly in active use
Still available in production

So we have a moment to consider whether we still want this endpoint and its attendant functionality, or if we'd just like to get rid of it completely

I do not remember offhand which of our services was supposed to use this endpoint, do you?
Related: https://github.com/Police-Data-Accessibility-Project/data-sources-app/issues/428

I do not remember offhand which of our services was supposed to use this endpoint, do you?
Related: #428

@josh-chamberlain This was part of one of the data requests I'd worked on early in my contracting days, where we were trying to solve for agencies that didn't have homepage urls in our database. I developed the /homepage-search-cache as a way to cache the results of those searches so we didn't repeat them multiple times. However, it seems we performed searches for most of the outstanding agencies (although we may come across more in the future).


Fix tsc compilation with --strict

For libraries, it's always best to specify a return type in the TS typings
Added void return type to "on" functions
Actually, I dont know what the right branch for this

Hmm, looks like we missed that in all branches) Added this in master for beginning, thanks 👍


Add external links to documentation

Specifically, links to global JavaScript/TypeScript types, e.g. Promise.

Done in commit aa33aaa0608fe0af86aaa431215f8d86180c6bc6.


Add maxFiles and minFiles rules to MultipleFileUpload

This PR adds two rules in MultipleFileUpload to limit the maximum and minimum number of files (including the spatie plugin).
I'm currently using this implementation in a project and I believe it will be useful for everyone.

@dmandrade I have rolled support for your PR into #806 so there is a consistent approach.
Your PR highlighted a couple of areas I had previous missed in my approach, great work!

@danharrin I will close this PR in favor of #806


[BUG] - llama-cpp will not load local models

Description
Have tried a number of huggingface models and consistently get the error message:
llama_model_load: error loading model: done_getting_tensors: wrong number of tensors; expected 292, got 291
This appears to be an old bug that was fixed months ago in llama-cpp.  Is it possible your run_linux script is installing an older version of llama-cpp (and/or its python server)?
Reproduction steps
Change env var for LOCAL_MODEL to a downloaded llama-3.1-8B...gguf model from huggingface.
execute run_linux.sh

Screenshots
No response
Logs
No response
Browsers
Other
OS
Linux
Additional information
No response

Still can not test due to other bug logged (startup issue)...HOWEVER, if I change the script to d/l and install llama_cpp_python v0.2.90, it appears to load the local model and that starts correctly.
(End of output is
INFO:  Started server process[0000]
INFO  Waiting for application startup.
INFO:  Application startup complete.
INFO:  Uvicorn running on http://localhost:31415 (Press CTRL+C to quit)


Add support for an initial directive argument without a name

Bug/issue #, if applicable:
Summary
This adds support for the first directive argument to be unlabeled / unnamed. This can be useful—avoid duplication in the authoring syntax—when the directive name acts also describes the first argument. For example:
@DisplayName("A custom name")

instead of
@DisplayName(name: "A custom name")

Only the first argument is can be unlabeled / unnamed. I feel that this provides most of the authoring syntax benefits without impacting the ability to diagnose directive argument syntax errors.
Dependencies
n/a
Testing
I will update this with testing instructions when I mark this as non-draft.
Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.

[x] Added tests
[x] Ran the ./bin/test script and it succeeded
[x] Updated documentation if necessary

I like this idea! The PR looks good so far.
@swift-ci Please test

I've updated the documentation to reflex the syntax changes for name value arguments. This is ready for a review now.

@swift-ci please test

@swift-ci please test


GPU usage

Hi thanks for the amazing codebase. I am wondering does the code use gpu during training? I did not find anything relevant on setting the device for training in the code.

Hi,
Yes I think it does. Otherwise you can set the training with multi cores and it doesn't run that slowly (20 minutes for 10,000 epochs with 32 cores)

Hi,
the training code examples are implemented for CPU usage. However, with some PyTorch code adjustments you can run the code also on a GPU.
Best, Sven


Can we use the values present inside a configmap and refer those in a when condition

So, my need is, I want to enable a global variable called codeqlscan in tekton. So the value for this comes from a configMap
apiVersion: v1
kind: ConfigMap
metadata:
name: global-config-codeql
data:
enableCodeqlScanGlobal: "true"
So the flow is , my pipeline should refer this configmap and when the enableCodeqlScanGlobal value is false, a task say.codeql scan should not participate in that .
I want to use this variable in the when condition .
And based on this global variable, participation of task should  happen in a pipeline

Yep. Thanks.

Here's an example of a PipelineRun that loads a key from a ConfigMap into an environment variable, emits it as a result, and uses it as input to a when expression:
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
  generateName: configmap-guard-
spec:
  pipelineSpec:
    tasks:
      - name: load-configmap
        taskSpec:
          results:
            - name: feature-flag
          steps:
            - name: get-feature-flag
              image: alpine
              env:
                - name: FEATURE_FLAG
                  valueFrom:
                    configMapKeyRef:
                      name: feature-flags
                      key: myFeatureFlag
              script: |
                #!/usr/bin/env sh
                echo -n $FEATURE_FLAG | tee $(results.feature-flag.path)
      - name: guarded
        when:
          - input: "$(tasks.load-configmap.results.feature-flag)"
            operator: in
            values: ["true"]
        taskSpec:
          steps:
            - name: guarded
              image: alpine
              script: |
                #!/usr/bin/env sh
                echo Hello


Add proper license (link to R repo issue)

https://github.com/UBC-MDS/chemboxR/issues/26

License discussion for both checmbox and chemboxR is discussed in this chemboxR license issue ( https://github.com/UBC-MDS/chemboxR/issues/26 ).


replace deprecated moment.js with date-fns or similar

https://github.com/joanllenas/ngx-date-fns
https://medium.com/javascript-in-plain-english/removing-moment-js-locales-from-your-angular-app-js-bundles-2abfec434109
https://terodox.tech/migrating-away-from-momentjs-part1/#:~:text=MomentJs recently announced that the,core library at my company.
https://blog.date-fns.org/post/we-cut-date-fns-v2-minimal-build-size-down-to-300-bytes-and-now-its-the-smallest-date-library-18f2nvh2z0yal/
https://dev.to/imben1109/date-handling-in-angular-application-part-2-angular-http-client-and-ngx-datepicker-3fna

Better: Interceptor https://gist.github.com/reinzwei/2d44374951ce3f08cfd2690d8f72287b

Better: Interceptor https://gist.github.com/reinzwei/2d44374951ce3f08cfd2690d8f72287b


any documentation on the search endpoint ?

I cannot find any documentation on the search endpoint? Could you please provide a couple of examples of different search queries ? Thank you

The method receives any text, such as a code of an airport or airline, or the name of an airport or airline, or the registration of an aircraft, etc. Anything. It works the same way of seaching at the search bar of the website.
const { FlightRadar24API } = require("flightradarapi");

const frApi = new FlightRadar24API();

async function main() {
    const result = await frApi.search("Lukla");
    // ...
}
main();


Offline map caches like zip or mbtiles should not be considered for cache trimming

This issue is pretty much as the title states:
Using MOBAC, I initially created an mbtiles database that contains the tiles that I'm interested in displaying offline. The file is large, but not excessively so at ~1.3GB.
If I place this mbtiles database on the SD card at /sdcard/osmdroid/tiles it is immediately deleted the next time I start up osmdroid. If I use MOBAC to pack an OsmDroid ZIP archive, the zip is also deleted on the next startup of osmdroid.
The telltale clue I finally got with the mbtiles, after several red herrings, is a pair of lines from logcat (edited):
D OsmDroid: Trimming tile cache from<PHONE_NUMBER> to 524288000
and then eventually D OsmDroid: Finished trimming tile cache.
The next few lines on logcat spell out the fact that the SQLite cannot find the mbtiles file:
E SQLiteLog: (1802) os_unix.c:29136: (2) fstat (/sdcard/osmdroid/tiles/xxx.mbtiles)
E SQLiteLog: (1802) disk I/O error.
W OsmDroid: Error getting db stream: /17/76816/73878
Another thing I should probably mention is that I'm using a hybrid of online and offline tiles using the basic map tile provider as it provides the filesystem provider, the archive provider and the downloader provider without having to do any additional work. For the online tiles, I simply use Mapnik.
I can understand this being very helpful for purging the older / lesser used individual tiles from online caches, but surely if I'm supplying the bulk of the map in the form of a package, be it mbtiles or zip, I don't want that purged :)
At the moment, the work-around that I'm using is to just set the cache larger via OpenStreetMapTileProviderConstants.setCacheSizes() and setting the cache and trimming sizes a fair amount larger than I actually need.

You're putting the database in the wrong spot. Try /sdcard/osmdroid/, not
the tiles folder
On Nov 28, 2015 9:50 AM, "TriptoKnocker"<EMAIL_ADDRESS>wrote:

This issue is pretty much as the title states:
Using MOBAC, I initially created an mbtiles database that contains the
tiles that I'm interested in displaying offline. The file is large, but not
excessively so at ~1.3GB.
If I place this mbtiles database on the SD card at /sdcard/osmdroid/tiles
it is immediately deleted the next time I start up osmdroid. If I use MOBAC
to pack an OsmDroid ZIP archive, the zip is also deleted on the next
startup of osmdroid.
The telltale clue I finally got with the mbtiles, after several red
herrings, is a pair of lines from logcat (edited):
D OsmDroid: Trimming tile cache from<PHONE_NUMBER> to 524288000
and then eventually D OsmDroid: Finished trimming tile cache.
The next few lines on logcat spell out the fact that the SQLite cannot
find the mbtiles file:
E SQLiteLog: (1802) os_unix.c:29136: (2) fstat
(/sdcard/osmdroid/tiles/xxx.mbtiles)
E SQLiteLog: (1802) disk I/O error.
W OsmDroid: Error getting db stream: /17/76816/73878
Another thing I should probably mention is that I'm using a hybrid of
online and offline tiles using the basic map tile provider as it provides
the filesystem provider, the archive provider and the downloader provider
without having to do any additional work. For the online tiles, I simply
use Mapnik.
I can understand this being very helpful for purging the older / lesser
used individual tiles from online caches, but surely if I'm supplying the
bulk of the map in the form of a package, be it mbtiles or zip, I don't
want that purged :)
At the moment, the work-around that I'm using is to just set the cache
larger via OpenStreetMapTileProviderConstants.setCacheSizes() and setting
the cache and trimming sizes a fair amount larger than I actually need.
—
Reply to this email directly or view it on GitHub
https://github.com/osmdroid/osmdroid/issues/198.

It strikes me as odd that it does work from the tiles directory, though.
With osmdroid 5.0.1, If I place the mbtiles file in /sdcard/osmdroid, my tiles are not shown - only if I place the mbtiles file in /sdcard/osmdroid/tiles do I see anything. If I revert back to osmdroid 4.3, the expected path of /sdcard/osmdroid works fine.

They wouldn't be shown if if the tile source name given to osmdroid does not match the source name listed in the zip, sqlite, etc. I think mbtiles is not affected by this since they don't store the tile source name in the database.
You can also try using the OfflineTileProvider, which ignores the tile source entirely and just loads up whatever zip or database that you give it

In MapTileArchiveProvider.java (in package org.osmdroid.tileprovider.modules)
private void findArchiveFiles() {

		mArchiveFiles.clear();

		if (!getSdCardAvailable()) {
			return;
		}

          // path should be optionally configurable
          File cachePaths = OpenStreetMapTileProviderConstants.TILE_PATH_BASE;
          final File[] files = cachePaths.listFiles();
          if (files != null) {
               for (final File file : files) {
                    final IArchiveFile archiveFile = ArchiveFileFactory.getArchiveFile(file);
                    if (archiveFile != null) {
                         mArchiveFiles.add(archiveFile);
                    }
               }
          }
	}

cachePaths is set to the tiles path to search for the archives / databases. If you change this to
File cachePaths = OpenStreetMapTileProviderConstants.OSMDROID_PATH;

then everything works as you previously described.

They wouldn't be shown if if the tile source name given to osmdroid does not match the source name listed in the zip, sqlite, etc. I think mbtiles is not affected by this since they don't store the tile source name in the database.

I have verified this by creating and then independently loading a zip file, an sqlite db, and an mbtiles db - as long as the source name is correct for whichever format you use, everything is fine. I can also verify that the .mbtiles file name must match the source name in order for it to be displayed.

The cache path typically maps to /sdcard/osmdroid/tiles where as the OSMDROID_PATH is /sdcard/osmdroid.
I'm confused and I'm not too sure what the issue is at this point. Is the root problem that sqlite, zip, etc are loaded from within /sdcard/osmdroid/tiles/? or that your database was deleted because it was in /sdcard/osmdroid/tiles/?

Apologies, I think I've morphed the problem  after digging through the code.
The problem is two-fold:

The original problem: Databases and zips don't load from anywhere but /sdcard/osmdroid/tiles. If you do place them there and they are are larger than the cache size boundaries, the databases / zips are deleted by the cache trimmer.
Following from point 1, we both agree that the databases and zips should be stored in /sdcard/osmdroid and not in the tiles directory.

In the code block I posted in my previous post, I noticed that the archive loader defaults to loading the archives / databases from the tile directory. Using the fix detailed in my previous post should fix both problems:

The archives / databases will no longer have to be placed in the tiles directory, and won't be trimmed when they exceed the cache.
The archives / databases will be loaded from the expected directory as per the old osmdroid 4.3 behaviour (specifically, /sdcard/osmdroid/xxx.zip or /sdcard/osmdroid/xxx.sqlite)

Sorry for being an insufferable pedant :)

ahh i see the problem...

Looks like it was me that buggered it up back in august.  I pushed the changes to branch #198. Would you mind testing it on your end?

I've given it a reasonable test - everything now works as expected. Thanks!

merged. thanks for testing!


Smelting Infobox

I have been cooking and fishing and I noticed that there is an infobox like this:
https://runelite.net/img/features/fishing.png
It displays the Action Status (Fishing (Green) / NOT FISHING (Red); Cooking / NOT COOKING), and the count per hour.
I am suggesting the same InfoBox model for Smelting.
I noticed this infobox is absent (which might be a bug or simply wasn't developed) while smelting cannonballs out of steel bars, for example.
For me it's particularly useful to see the bright red InfoBox saying "Not Fishing"  and the item unit count/unit count per hour so I can do my own math.
Sample Code from other plugins that may be useful for this:
https://github.com/runelite/runelite/blob/master/runelite-client/src/main/java/net/runelite/client/plugins/fishing/FishingOverlay.java
Line 67

For Smelting cannonballs this should work (SmithingPlugin.java):
public void onChatMessage(ChatMessage event)
{
	if (event.getType() != ChatMessageType.SPAM)
	{
		return;
	}

	if (event.getMessage().equals("You remove the cannonballs from the mould."))
	{
		session.setLastItemSmithed(Instant.now());
	}
}


[APINotes] One more 0-valued option set case.

rdar://problem/27482020

Before merging this pull request to apple/swift repository:

[ ] Test pull request on Swift continuous integration.

Triggering Swift CI
The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:
Smoke Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please smoke test
    All supported platforms     | @swift-ci Please smoke test and merge
    OS X platform               | @swift-ci Please smoke test OS X platform
    Linux platform              | @swift-ci Please smoke test Linux platform

A smoke test on macOS does the following:

Builds the compiler incrementally.
Builds the standard library only for macOS. Simulator standard libraries and
device standard libraries are not built.
lldb is not built.
The test and validation-test targets are run only for macOS. The optimized
version of these tests are not run.

A smoke test on Linux does the following:

Builds the compiler incrementally.
Builds the standard library incrementally.
lldb is built incrementally.
The swift test and validation-test targets are run. The optimized version of these
tests are not run.
lldb is tested.

Validation Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please test
    All supported platforms     | @swift-ci Please test and merge
    OS X platform               | @swift-ci Please test OS X platform
    OS X platform               | @swift-ci Please benchmark
    Linux platform              | @swift-ci Please test Linux platform

Lint Testing
    Language     | Comment
    ------------ | -------------
    Python       | @swift-ci Please Python lint

Note: Only members of the Apple organization can trigger swift-ci.

Holding until CI stabilizes a bit.

As a Metal API change, this has no Linux effects.
@swift-ci Please test OS X platform

Assigning to Ted to merge.


SSL Error

I am trying to create a droplet using "knife digital_ocean droplet create" command.
On my DEV environment everything is working fine. On UAT server I am receiving the error:
Faraday::SSLError: SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A
It looks like an untrusted certificate problem. I am wondering if it is related to the most recent configuration of CloudFlare in DigitalOcean.
Any thoughts?

another approach:
start irb and get the default config directory of your openssl config:
require 'openssl'
File.dirname OpenSSL::Config::DEFAULT_CONFIG_FILE

then just place your cert.pem in that directory. Ruby's OpenSSL will automatically pick it up, and afaik faraday, too.

Was there a solution found here? It would be nice to document it in the readme if so.

@rmoriz the result of your program is:
C:/Users/Luis/Code/luislavena/knap-build/var/knapsack/software/x86-windows/openssl/1.0.0n/ssl
It is obvious that I have no this catalog on the machine. So, you recon I should create it?
@gregf as I mentioned before I was able to solve the issue as described in my comment. So, it is good enough for me. Thanks!

@pkorsukov Hm, in this case you are out of luck. Looks like the variable is defined at build-time (c preprocessor) and that's the path on Luis system (Ruby for Windows maintainer).
https://github.com/openssl/openssl/blob/master/crypto/cryptlib.h#L85
So you'll stick with your solution to explicitly modyfing the OpenSSL::SSL::SSLContext from Ruby.
IMHO droplet_kit needs to expose the faraday option hash, so this gem could provide a method to set it directlly. See https://github.com/lostisland/faraday/wiki/Setting-up-SSL-certificates

Ok, thank you. I can live with that workaround.


Add "Copy of" prefix to orchestration template name during copy

@mzazrivec I found 2 items:
1-On pressing Save button, I get:
[----] I, [2015-03-27T10:37:02.176211 #32048:5b7e94]  INFO -- : Started POST "/catalog/ot_copy_submit/10000000000005?button=save" for <IP_ADDRESS> at 2015-03-27 10:37:02 -0700
[----] I, [2015-03-27T10:37:02.199278 #32048:5b7e94]  INFO -- : Processing by CatalogController#ot_copy_submit as JS
[----] I, [2015-03-27T10:37:02.199373 #32048:5b7e94]  INFO -- :   Parameters: {"name"=>"Copy of Dans Sample", "description"=>"Sample template for testing 2", "template_content"=>"{\"test\" : \"test value\"}\r\n", "button"=>"save", "id"=>"10000000000005"}
[----] F, [2015-03-27T10:37:02.248311 #32048:5b7e94] FATAL -- : Error caught: [ActionView::MissingTemplate] Missing template catalog/ot_copy_submit, application/ot_copy_submit with {:locale=>[:en], :formats=>[:js, "application/ecmascript", "application/x-ecmascript", :html, :text, :js, :css, :ics, :csv, :png, :jpeg, :gif, :bmp, :tiff, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip], :handlers=>[:erb, :builder, :jbuilder, :rjs, :haml]}. Searched in:
  * "/home/dclarizio/dev/manageiq/vmdb/app/views"

2-Copy should use Add screen
The "Copy of" prefix is being added to the name field when doing a copy, but I noticed something else that isn't quite right.  When doing a copy, it is putting the user into an Edit screen (with Save/Reset/Cancel buttons) and the buttons aren't lit up until I change something.  It should put the user into an Add screen (with Add/Cancel buttons), so if it's an exact duplicate, they could just press Add.  Here's a screen shot of how it is now:

Since I don't think this PR introduced it, I will open a BZ on issue 2 and I will merge this once you fix issue 1.
Thx, Dan

@mzazrivec BZ for above issue: https://bugzilla.redhat.com/show_bug.cgi?id=1206672

@dclarizio I rebased this PR on top of current master, I cannot reproduce the issue number 1 there.

Verified fix, restarted timed out Travis test, awaiting results.


Correction for raw affiliation Department of Biochemistry, Institute for Research in Immunology and Cancer, Université de Montréal, 2950 Chemin de Polytechnique, Montréal, Québec, H3T 1J4, Canada

Correction needed for raw affiliation Department of Biochemistry, Institute for Research in Immunology and Cancer, Université de Montréal, 2950 Chemin de Polytechnique, Montréal, Québec, H3T 1J4, Canada
raw_affiliation_name: Department of Biochemistry, Institute for Research in Immunology and Cancer, Université de Montréal, 2950 Chemin de Polytechnique, Montréal, Québec, H3T 1J4, Canada
new_rors: 00wj6x496;0161xgx34
previous_rors: 00wj6x496;05f8d4e86;0161xgx34
works_examples: W2043748764
contact: 0718fe144b3d6367a66b0209830e6177:e84b6a104e8a3b9d52c84d @ polymtl.ca

This issue was accepted and ingested by the OpenAlex team on 2024-11-01. The new affiliations should be visible within the next 7 days.


Planned breaking changes for typescript plugins 🚀

Hi,
We are currently planing to refactor and reimplement the typescript plugins.
These changes include:

Change the scope of the plugins. Today we have typescript-common, typescript-client, typescript-server and typescript-resolvers. After this change, we'll have typescript (which includes all types, similar to server and common packages), typescript-client (types for queries, mutations, subscriptions and fragments, based on the typescript types), and typescript-resolvers.
Use Pick<> to get the fields from typescript plugin declarations. It also means that we no longer need to generate namespaces.
Changes and refactor to the configuration flags.
Allow to add __typename automatically to the generated output.
Allow scalars config to override every type.
Better naming solution, we know that the current solution might be annoying. We still plan to use pascalCase as default, but it will be easier and less buggy to override it.
We will try to provide backward compatibility, and it might not be easy.

And maybe:

Allow to generate internal fields of graphql.
Add support for mappers in typescript package. Should make it easier later to use those types with typescript-resolvers.

Please feel free to add to this thread more ideas regarding the typescript package! 🚀

Allow to add __typename automatically to the generated output.

Does this mean adding __typename to the full schema types? (see my comment here)

@jonaskello The goal is to add __typename automatically to selection set. We added a similar solution for flow templates. Can you please elaborate how adding __typename can benefit to the schema types as well? If you are dealing with client-side cache, I guess that adding __typename to every type will solve this issue for you?

Yes, adding __typename to all types, including the "full" types that are today generated by typescript-server would solve my use-case. I need __typename when I add entities to the client-side cache because I use it to generate the unique ID in the cache. To explain some more, I have this on the client-side:
const newProduct: Partial<WithTypename<GqlSchema.Product>> = {
        __typename: "Product",
        id: "theid",
        key: "thekey",
        name: "thename",
        retired: false,
        description: "thedescription",
      };
const patch = GqlCachePatch.createEntity<Partial<GqlSchema.ProductAtTx>>(getObjectId(newProduct), newProduct),

The getObjectId function uses __typename to generate a concatenated unique ID in the flat normalized cache as __typename;obj.id. WithTypename is my current workaround to add __typename. It is simply type WithTypename<T> = T & { readonly __typename: string }; but this is not safe as it is string rahter than the correct string literal type. I understand my use-case and this example is probably unusual but I hope the example clarifies rather than adds more confusion :-).
My understanding of the outlined plan is that the typescript-common and typescript-server packages will be joined into a typescript package. This new package will also somehow be the base for typescript-client. So if the typescript package supports adding __typename then it will be possible to add it everywhere, both to types for query/mutation documents and for full schema types.

Yeah that's right, common and server will be joined into typescript, and it will be the base for typescript-documents. I'm still thinking about adding __typename to the types, because it's not part of the GraphQL standard, and I'm need to check how it will behave with the typescript-resolvers package.
We are making it way more easy to make changes, so it might be very easy to implement if you need a custom behaviour.

Agreed, the __typename field is a bit special since it is part of the schema in the sense that you can query for it (and I guess that ability is part of the spec). But then again it is not really part of the schema as you don't declare it in the types.
Btw, I just migrated from 0.13 to 0.17 yesterday and I am loving the new config files, so much simpler 👍

Just some weird thought, maybe it helps.

Create schema changes overview. Our app is using graphql-modules and we can generate schema's without running the application (so no endpoint needed). It would be nice if we could compare it with the current schema on production (which is also in our codebase). Then in our pipeline we can show this overview without running anything.
Accept regex in the current graphql documents glob so it will be able to use this to generate generated files per matched item. So for example: '//src/module/([a-z])+/(.*).graphql/' then it knows it can place all module/user stuff in that folder, and maybe all common stuff in module. Don't know if it then becomes more friendly or the opposite :)

@maapteh

Accept regex in the current graphql documents glob so it will be able to use this to generate generated files per matched item. So for example: /\/src\/modules\/([a-z])+\/(.*)\.graphql/ then it knows it can place all modules/user stuff in that folder, and maybe all common stuff in module. Don't know if it then becomes more friendly or the opposite :)

We support glob which is an easier way to do regex when dealing with files.
If you wish to get all files recursively, you can use src/modules/**/*.graphql.

@maapteh

Create schema changes overview. Our app is using graphql-modules and we can generate schema's without running the application (so no endpoint needed). It would be nice if we could compare it with the current schema on production (which is also in our codebase). Then in our pipeline we can show this overview without running anything.

It feels like this feature it not part of the codegen's scope, but I think https://github.com/kamilkisiela/graphql-inspector can do this for you :)

Wow this last i totally missed, will run it today.
My second thought was about how to generate types per module, but as already discussed it will be hard when modules require other modules. So one file maybe is still best :)

Super excited to see this merged in! In my enthusiasm I decided to try 0.19.0-alpha.07841c6! But no cigar. I get a is_glob_1.default is not a function error when trying to run the generator. I know this is an alpha, just wanted to make sure it was on your radar

@ardatan Nice! Tried 0.19.0-alpha.85ff402e, and #1468 seems to have done the trick. Everything except one plugin seems to be working for me now. When using typescript-apollo-angular I now get an error: indent_string_1.default is not a function

Could you try again with the latest canary? @NickClark

@ardatan I tried ``, but it seems to have the same issue. I then manually edited module (removed all the .default's), so I would have expected your fix to work. Did the right version get deployed to npm? Also, I found out, that even with that fix, I now get an issue with my fragments:
  ✔ Parse configuration
  ❯ Generate outputs
    ❯ Generate src/client/generated/graphql.ts
      ✔ Load GraphQL schemas
      ✔ Load GraphQL documents
      ✖ Generate
        → Syntax Error: Unexpected $

 Found 1 error

  ✖ GraphQL request
    Syntax Error: Unexpected $

    GraphQL request (7:5)
    6: }
    7:     ${DeviceAttributesFragmentDoc}
           ^

Something went wrong
error Command failed with exit code 1.

My current deps:
    "graphql-code-generator": "^0.19.0-alpha.14bf4dca",
    "graphql-codegen-schema-ast": "^0.18.0",
    "graphql-codegen-typescript": "^0.19.0-alpha.14bf4dca",
    "graphql-codegen-typescript-apollo-angular": "^0.19.0-alpha.14bf4dca",
    "graphql-codegen-typescript-operations": "^0.19.0-alpha.14bf4dca",
    "graphql-codegen-typescript-resolvers": "^0.19.0-alpha.14bf4dca",

But the lock file seems to be using the wrong deps?

@NickBolles can you please share the fragment file? and your .yml config?

@dotansimha Assuming you're talking to me 😉... I'll see if I can make a simpler reproduction of the issue. Also, I'm still getting the following when printing out errors:
  ❯ Generate outputs
    ❯ Generate src/client/generated/graphql.ts
      ✔ Load GraphQL schemas
      ✔ Load GraphQL documents
      ✖ Generate
        → Syntax Error: Unexpected $
indent_string_1.default is not a function

I've kinda hijacked this issue... should I move this to a dedicated issue? Wasn't sure, since this all alpha stuff.

@dotansimha Here's a minimal reproduction. You may need to open a new terminal and run yarn start manually. I believe this shows both the indent_string_1.default is not a function and the fragment issue

@NickClark I checked your example and the master branch has a fix, you can try it yourself under 0.19.0-alpha.dd5bacfd (pin dependencies).

(pin dependencies)

...of course! 🤦♂  Thanks!

Looking over the output... Good work guys! Also love that Class documents are exported separately now!

Looks like the enums config has changed... checking...

1.0.0 is available now 👍
@NickClark Please open a new issue if something is wrong :)

Yay!

Does there happen to be something like a Slack channel for following the development?


Install rocm packages on host system on dnf based system

Was using ollama in podman containers via podman-ollama on Fedora Kinoite 40, it didn't work until I installed these packages on the base OS and rebooted.

@jmorganca @dhiltgen @oatmealm could I get this reviewed?

We make the minimal ROCm dependencies available for download, and the script attempts to pull that down from https://ollama.com/download/ollama-linux-amd64-rocm.tgz
Did that bundle not work?

@dhiltgen it only seemed to work for me once I installed the Fedora packages, now that could be down to me using one of the Fedora Atomic Desktop variants Kinoite, but still

I won't lie I'm having a tough time getting my PRs reviewed in general in Ollama, this should be an easy one for example:
https://github.com/ollama/ollama/pull/3615


Menu UI

This is the integration of the menu.
Options doesn't have anything in it, partially because I want to rename that to controls ? or add Charmaine's compendium there
Music may need to be tested to check itf it's double looping when game was paused and unpaused OR when we escape and go into the main menu and restart the game.
The button to Pause is the ESC key.


snap usage: stop parsing the population name

Reopen of #110

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (87edf75) 84.85% compared to head (68c046b) 84.85%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #111      +/-   ##
==========================================
- Coverage   84.85%   84.85%   -0.01%
==========================================
  Files          76       76
  Lines        5283     5281       -2
==========================================
- Hits         4483     4481       -2
  Misses        800      800

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Import [feature request]

I paired the app with my ftms treadmill.
I just need a record of my runs.
Simple stats. Date, diatance, duration, pace.
I like the way the app displays the info and the stats are actually accurate.
I see there is integrations with strava etc but their starts at somehow inaccurate.
I also see there is fit,tcx and csv export.
What I can't find is a way to import those files back to the app.
It would be great if I could import/restore the exported workouts in case that the app is reinstalled etc
Thanks

Nevermind
Feature already there
Found it
Sorry

No worries. I wish I had a documentation, it's planned but I don't have time for it right now.


OSX & xCode Version requirements question

The main readme for this repo states that we need OSX 10.10.3+ and XCode 6.3+ -- can someone point to me why we need that late of an OS and XCode 6.3?
I'm currently have a Maverick build server with XCode 6.2 all fully functional and rather than spend a lot of time upgrading to 10.10.3 if I don't need to; can someone point to me why 10.10.3/6.3 is the minimum and if their is maybe a easy way to work around the minimum if this truly is the case?

These are the prerequisites necessary to build JavaScriptCore. We use Yosemite in the team, and 10.10.3 is the minimum supported Yosemite because of a few system headers for frameworks such as PDFKit which were added in that version.
You might be able to build on Mavericks with Xcode 6.2 (the WebKit docs say Xcode 6.1.1 is the minimum if you want to target iOS), but this isn't something we've tested ourselves.

Awesome, so it might be possible without spending too much more time on it.   I just need to get a Apple signing key for the project and try it out...    Thanks @fealebenpae for the info.   I'll let you know what I find out once I can purchase a signing key for my build server...

With Xcode 7, you can deploy on your devices without paying the $100 yearly fee.

I didn't now that; but that wouldn't server the purpose anyways.I need to be able to distribute them -- its for building the ios nightlys on the nativescript.rocks site...

You don't need to codesign the runtime in order to distribute it - static libraries aren't codesigned and frameworks are re-signed by the NativeScript template application during build so their original signing identity doesn't matter.  In fact, to speed up the build you can edit the build script and remove the two test apps which are only used for CI testing and aren't part of the final distributable.

I knew that it would be re-signed; but everything I was reading said that it would still be signed by your key during building (and the error was about missing the signing key).     If the test app is what is causing it to fail; I'll try to remove it and see if that helps.   Thanks for the pointer.

For the framework build you can use these instructions to disable codesigning completely, then after you've disabled the test apps from being built you won't need a key to build a distributable package.

@fealebenpae - Thanks, that insight actually worked very well.

Oh and I should say, you can build this perfectly fine on Maverick with xCode 6.2...

Thanks, good to know.


wrong RSA_PRV_DER_MAX_BYTES for odd MBEDTLS_MPI_MAX_SIZE

This is the PR for issue #4093
Description
It adds parenthesis to fix the computation of RSA_PRV_DER_MAX_BYTES and also adds parenthesis to other macros to make them safer to use.

Thanks for adding the changelog @d-otte! Unfortunately it now seems to be failing CI (trailing whitespace and missing newline in the changelog). Could you please fix these errors and also rename the changelog entry to "Security" as opposed to "Bugfix" as I think this constitutes a security risk due to the potential buffer overflow. Sorry if my earlier wording was not clear on this.


Update to wgpu 0.15

This is just the lowest friction path to wgpu main.
The biggest issue is naga has changed global variables from let to const, in line with the spec. This is not yet supported by wgsl-analyzer.

Yeah, I imagine so. It's unclear when wgsl-analyzer will update - there's only one maintainer.


Invalid Dialyzer warnings for Plaid.LinkToken.User

I'm running into this issue in my project now, where the type definition for Plaid.LinkToken.User expects all fields to be strings. This is a problem as some of the fields are optional in the Plaid API and I don't have a use for them, but passing them as nil produces a dialyzer warning.
Adding an empty string "" fixes the type warning, but then the API call to Plaid fails (empty string is not accepted in place of null, which makes sense). As a workaround, I've added the following to the top of my context module:
  @dialyzer {:nowarn_function, create_link_token: 1}

Suggested fix: Update the Plaid.LinkToken.User type definition so that keys that are optional in the Plaid API are typed as String.t() | nil.

Fixed with https://github.com/tylerwray/elixir-plaid/pull/8


Immediately after adding a new service, keyboard shortcut to switch to that service not working

Describe the bug
Immediately after creating a new service, use the Cmd+<number> shortcut to move to the first service. Then try to use the corresponding  to switch back to the service that was just added - it will not switch to that service. This service-switching though works correctly after restarting Ferdi.
To Reproduce
Steps to reproduce the behavior:

Create 1 service in Ferdi
Close and restart Ferdi
Create a 2nd service
Type Cmd + 1 - focus should switch to the 1st service
Type Cmd+2 - focus will remain on service 1
Restart Ferdi
Now you will be able to toggle focus between the 2 services by using the appropriate Cmd+<number>

Expected behavior
At step 5 above, the focus should have switched to the newly added service
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: macOS Catalina
Browser Ferdi
Version 5.3.3

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Related to #147. The menu bar doesn't update correctly when Ferdi changes its content.

reopened

I haven't checked this recently - but, don't think this was specifically
fixed.
On Sat, May 30, 2020 at 11:02 PM stale[bot]<EMAIL_ADDRESS>wrote:

This issue has been automatically marked as stale because it has not had
recent activity. Please check if this issue is still relevant and please
close it if it's not. This will make sure that our open issues are actually
of use and reduce the list of obsolete issues. Thank you for your
contributions.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/getferdi/ferdi/issues/204#issuecomment-636361233, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAQ77PANXCCOPLMKAWKWD3RUE7MHANCNFSM4JNOIAEA
.

The problem still exists. Had the same while configuring Ferdi today. It seems that Ferdi can't quick switch between workspaces which causes that problem. After adding a news service it's listed in the QuickSwitcher also if the app isn't in that Workspace.

I experienced this as well. Below is what happened to me. I'm using a Mac (11.6).

I added two instances of Gmail and one instance of Notion. Could not toggle between services with CMD+1, CMD+2 etc.
Restarted Ferdi a couple of times, to no avail.
Removed one insance of Gmail, it now started to work.
Re-added the second instance of Gmail, and toggling still works.

I experienced this as well. Below is what happened to me. I'm using a Mac (11.6).

I added two instances of Gmail and one instance of Notion. Could not toggle between services with CMD+1, CMD+2 etc.
Restarted Ferdi a couple of times, to no avail.
Removed one insance of Gmail, it now started to work.
Re-added the second instance of Gmail, and toggling still works.


Fedora Copr for all your projects

Hey bro, first off, I love your projects.
I use mostly your nwg-look which is wayyyy better than any other gtk-settings / theming app in my opinion.
Question:
Do you have any plans on maintaining a COPR repo for our fedora users?
Building from source is kinda takes long tbh and would be nice if there is for Fedora
(oh and maybe Debian) :)
TIA

Hi @JaKooLit!
Sorry but I know nothing on Fedora. I only maintain Arch (AUR) packages. The person you need is talk to is @t0fik.

cool thanks alot for the quick reply and being honest...


Connect to Data Source credentials

Lab Name: Create a dataflow
Task: Create a dataflow
Step: 05
Issue Type: blocking
Description of issue: Step 5 is marked as TODO. I think it should have the credentials to help the user Connect to Data Source.
Repro steps (please include screenshot if applicable):

It looks like we need the Server, Username, and Password to connect.

Minor "TODO: Provide an image" in same lab (Create a Dataflow)

this feedback is so great - thank you! It's updated now :) Both pieces.


yolov5s_hand.yaml内容与原版yolov5s.yaml不一致

yolov5s_hand.yaml的内容是对模型结构的重新定义，是分拆的吧，与原版yolov5内容不一致，这样就得以你定义的yaml重新训练模型，在稀疏训练，再剪枝和微调。
能不能直接用原版yolov5.yaml预训练的模型，直接稀疏训练，再剪枝和微调呢？

我也发现了好多错误，没法复现

The different between yolov5s_hand.yaml and yolov5s.yaml only is the num of class.
I have provided my training file in google cloud disk.
I think it is easy to reproduce it and make a compare.
If there is a bug, please show me the code.Talk is cheap.

@eeric Training the coco dataset need a lot of computing resources.
You can try it by yourself.

你为什么不用原版yolov5s.yaml训练呢，你可以把类数量修改吧。如果你按照它原来的模型设计，可以清楚看到如何准确找到BN层，而对后面的相邻层通道进行剪枝吧

The different between yolov5s_hand.yaml and yolov5s.yaml only is the num of class.The network structure is the same.
Can you tell me the different between the yolov5s_hand.yaml and yolov5s.yaml except the num of class.

我是希望你能基于原版.yaml做成一套剪枝方法，而不是等同于把原网络结构拆解，再按推断顺序不变的方式吧。

I have not a good idea for the analysis of network structure in yaml.The index of layer in yaml is not friendly to prune.
We need to build another set of tools to do it.
But this project is based on tanluren/yolov3-channel-and-layer-pruning.

ok, thanks!

First time I have a try on yaml and find it unfriendly for the terrible layer name.Just like layer_name[].BottleneckCSP.cv1.conv，arr and dict are mixed together.It bad for prune adjacent channel.


Honour custom attribute values in TestNG default reports

TestNG Version

Note: only the latest version is supported
7.5

TestNG supported the notion of custom attributes in it as part of this issue https://github.com/cbeust/testng/issues/2003
But these custom attributes don't show up in the TestNG provided default reports. This issue tracks this requirement.

@krmahadevan Thanks for making this attribute also available in testng reports. Is it possible to add this custom attribute as part of junit xml reports also? perhaps as:
<testcase classname="com.tests.ExampleTest" name="test_example_method" time="23.164" attributes="{ATTR_NAME:ATTR:VALue}"/>
This will then enable other reporters to parse this information from JUNIT XML reports produced by TestNG.


Create a Dockerfile

Docker is a software to create and administrate LXC (Linux Containers) easily. With it (and its Dockerfile) we can easily share how to build new container images in a portable way.
Since NLTK depends on numpy, scipy and matplotlib and the process of installing it is really complicated (because depends on headers files, C compiler, FORTRAN compiler and lots of libraries that needs to be installed by the system package manager, not by pip), it'll be easier for beginners to install NLTK on a container (to use it, deploy to production, or use as a development environment to run tests).
The process of creating a Dockerfile will also help to document dependencies and the installation process (related to #541).

3+ years on... Anaconda has done the job of nicely packaging the scientific computing tools/libraries for Python and the new pip install instructions should be easy enough =)

I agree, anaconda works universally for me on Linux and Mac.


:seedling: Use ossf score card

Summary
Related issue(s)
https://github.com/open-cluster-management-io/ocm/issues/296
Fixes #

/cc @qiujian16

/approve
/lgtm


When annotation is not "locked for deletion" audio wave representation should be rendered as long as marker timeline

will be fixed with #478


Update HTML highlighting & IntelliSense

HTML syntax highlighting and IntelliSense in CSS were out of sync and somewhat outdated.
Removed deprecated:

acronym
big
strike
tt
frame
frameset
noframes
eventsource

Added from HTML5:

bdo
data
embed
main (also added to the HTML IntelliSense)
rb, rp, rt, rtc, ruby
s
source
template
track
u
wbr

Added from HTML5.1 (less stable spec but many have 1 or 2 implementations)

svg (also added to CSS IntelliSense)
menuitem

Also updated the CSS transition snippet, which uses the wrong order and has -o- prefix that has not been needed for a long time.

Hi @dstorey, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (David Storey). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

…the HTML elements in CSS IntelliSense should now be consistent with what is syntax highlighted via the TextMate file. There are things that could arguably be removed, like  that was dropped from the WhatWG spec (and Edge will not implement, and Chrome want to deprecate) and , which was dropped from the W3C version of the spec.
The HTML IntelliSense also needs double checked. I added the  element as that was bugging me, but as it is not in alphabetical order, it will take a while to cross check against the 2 other HTML lists and the spec. It would be nice eventually to only have one list of elements rather than 3 that need to be kept in sync.

Decided to update the HTML auto-complete/IntelliSense file while I was at it. It should be now in sync with the CSS auto-complete for HTML elements, and have all the correct attributes per the latest HTML5.1 spec and WHATWG Living standard, along with the valid enum and boolean values for those

@dstorey Really nice, thanks so much. One thing:
CSS.plist is from https://github.com/textmate/css.tmbundle. Would you mind also make a pull request there, so we stay in sync? I can also do it, just let me know.

You mentioned the 3 files we have to keep in sync.
The tokenizer will always be separate as we want to use the text mate tokenizer from the community and don't want to branch off.
Code reuse between languages is tricky. For runtime, each language is packaged separately. If we reference the htmlTags file from CSS that whole file and dependencies end up in the CSS package, increasing the memory foot print of CSS. We would have to break it up in small pieces and make sure it stays useful for both HTML and CSS.
Eventually CSS and HTML will become real VS code extensions. Right now they are implemented in an old style and are located in our VSCode repo. They would each go in their own git repo. Code sharing would then have to be done through a common node module that provides the shared code.
So I think for now I'd rather avoid that and live with two separate tables.

@aeschli sure, I can look at making a PR to TextMate. I did a similar update to Atom when it was new, which I guess wasn't pushed back to TextMate as this version was further out of date than that version. I guess there are a fair few of these files of different vintages across the different editors that use TextMate plists.

@dstorey Lets submit the pull request and see if they take it. The experiences so far have been good, with a quick turnaround. Our goal is to avoid a branch as long as we can, so either side can profit from bug fixes.


Web: support base global type and fix the remaining renderers

🔖

It's the bots, man.

I meant it in the metaphorical sense.

Still probably the bots though.


Fix for single geometries on a locations entry

.count is undefined for an array of elements.

Ah my mistake! Sorry about that! I have also though about some additional things with regards to this drawer! More to follow.

This has been checked and ready for further review!


Intellisense not working on user custom snippet since vscode 1.2.6 version

I defined some snippet with $1, $2, but find since 1.2.6 version, if I trigger my snippet and before finish editing my snippet, there's no intellisense. See the following gif. I append 2 gif which is 1.2.8 vs 1.2.5.
version 1.2.8:

version 1.2.5:

This is on mac.

Have this setting: "editor.suggest.snippetsPreventQuickSuggestions": false


netcore project file

Fixes #2, but there's no real impact at all on this project given that it's meant to be single-file included.

Thank you @baronfel


KAS-3658: Source file as main file

Make existing source files be the "main" file of a piece
Replace the predicate between piece and file

Update Elastic config to find files

Rename relations between file and derived (now source and derived instead of primarySource and primarySourceOf
testdata.zip contains Piece with a file that has a derived file. First uploaded using the old version (so file + source file), then after migrations ran it was correctly set as source file + derived file. (This was my best attempt at showcasing the the main migration of this story actually works and is kind-of testable)

@sergiofenoll
As for the testdata.zip file, I was about to merge a  testdata.zip with a whole new setup (2 agendas with subcases) for a cypress ticket. I did not know (or check) that someone else was changing the zip file.
So your zipfile should not be merged as that will not work without losing that entire setup.
Are you a
I could add some source/derived files to current agendaitems or publications and update my zip.
In any case, as long as this ticket is still open, there is still time to change the zip on development after my merge, just let me know.

@sergiofenoll
As for the testdata.zip file, I was about to merge a  testdata.zip with a whole new setup (2 agendas with subcases) for a cypress ticket. I did not know (or check) that someone else was changing the zip file.
So your zipfile should not be merged as that will not work without losing that entire setup.
I could add some source/derived files to current agendaitems or publications and update my zip.
In any case, as long as this ticket is still open, there is still time to change the zip on development after my merge, just let me know.

If you can add a file + a "source" file to your zip that would be great, then I'll discard the changes to the zip in this PR. Otherwise, I'll merge dev back into here and add one myself.

Services to bump before merging this PR:

[ ] https://github.com/kanselarij-vlaanderen/yggdrasil/pull/49
[ ] https://github.com/kanselarij-vlaanderen/file-bundling-job-creation-service/pull/3

added 11 source files to testdata.zip in my PR.
Will update when this is merged, just make sure to accept the incoming zip.
In any case, I got backups locally

added 11 source files to testdata.zip in my PR. Will update when that PR is merged, just make sure to accept the incoming zip. In any case, I got backups locally

my zip got merged.
You should find docs with sourcefiles on 22/04/2022 and 23/04/2022 agendas


Allow arbitrary approximation order

At the moment approximation order is hardcoded to 2, this needs to be generalized to higher orders for the following:

[x] Cartesian Finite Difference.
[ ] Spherical Finite Difference.
[x] Nonlinear Cartesian Laplacian.
[ ] Nonlinear Spherical Laplacian.

Am I right in inferring that the discretize method for a spherical domain is open for contribution ?
If so, I would like to know the discretization scheme(For the azimuthal coordinate) that you had in mind. Any references is really appreciated! :D


Update tdpu.txt

@AcerNitro5 Could you please explain why the file corresponding this university email domain has to be updated? Why do you wish to add a website URL there?

@AcerNitro5 You might miss my previous comment. Please react.

@AcerNitro5 Pull request does not have now any files, thus I safely close it without merging. Thank you.


implement client detecting cloudflare worker

Listens for any requests that go to assets.every.org/donate-button/:clientId/*
saves a mapping from client ID to bundle URL base to Cloudflare KV
when a request for the bundle comes in, like assets.every.org/donate-button/:clientId/bundle.js, proxies the actual bundle based on the bundle URL that client is currently on
if a client ID hasn't been seen before, defaults to the "default" (i.e. newest) bundle as defined by a variable in the script (alternatively we can save this as a variable too)
in the future we can also potentially save other configuration beyond just the version here, like if we wanted to bundle a full donate button config object alongside the JS bundle for a client, and just give them embed code that "just works" with no configuration.

@markulrich i think this might be interesting to you!

gotta still tweak this a bit but almost good to go!

OK should be good now!
some follow ups:

automated github pages deploy that keeps old versions
CI, ideally that can auto deploy changes here


[DUOS-367][riskno] fix ncu/npu translation

Addresses https://broadinstitute.atlassian.net/browse/DUOS-367
Update NCU/NPU logic when translating data use json to structured use restriction.

Coverage decreased (-0.5%) to 73.812% when pulling ff576c33def713e4465aeb1a10635f9c0c397a57 on duos-367 into 2afb57fa8f9c161d5098293a36eb06f054dbb31e on develop.


minimal changes for sbt to 0.13.16 plus aws sdk, ivy, sbt-pgp and sbt…

…eclipse-plugin upgrades
tied for sbt 1.0.1 but ran into compile hangs

just saw pr#33 so feel free to ignore this pr - actually I will just close this pr


how to get pose with rotation like smpl 24 pose ?

i want to show the result in blender in real time, maybe i need to get smpl pose or use other methods.
can you give me some advience ?

We do not try the result in blender or in smpl. You can refer to some 3D human shape recovery papers.


[Datasource creation]When using alias, make the password text plain

Description
When the alias is selected while creating a Datasource, the password text is hidden which may imply a wrong impression to the user.

Fixed with https://github.com/wso2/devstudio-tooling-dss/pull/138/commits/f0fde402b9251858fc1f324e63d9f5b3bc6d9b2a


[PAY-1816] Payment Sheet Loading States

📲 What
Before and after the "New Payment Method" button is tapped we have a lag that is time taken during network requests from our end before Stripe's payment sheet is displayed.
Let's inform the user that he/she needs to wait before seeing the new UI/UX, and
🤔 Why
It's good to let the user understand there is a waiting period before we eventually update the UI/UX with the data from Stripe's payment sheet.
🛠 How
PledgePaymentMethodAddCell gets a loading state with an ActivityIndicator.
PledgePaymentMethodsDataSource gets a state to turn on/check loading for the above cell.
PledgeViewController gets a delegate to cancel appearance of payment sheet if the user pledges/clicks TOS/presents other views. User cannot click on "Add new card" until its out of its loading state.
PledgeViewModel gets a shouldCancelPaymentSheetAppearance signal that is triggered whenever the above delegate method is called, also internally when new cards are selected and if there is an error on PledgePaymentMethodsViewController.
👀 See
Before 🐛
https://user-images.githubusercontent.com/4282741/186445009-45b22cbc-6bd1-46b9-93ff-087066bcc954.mp4
After 🦋
https://user-images.githubusercontent.com/4282741/186443072-0f3cce47-2645-4cf6-956e-964021cd8e80.mp4
✅ Acceptance criteria

[x] Loading state appears before payment sheet is shown
[x] Loading state continues to appear until payment method/error/payment sheet closed.

⏰ TODO

[x] Ensure no duplicate taps occur when tapping the "Add New Payment" button
[x] Ensure that loading spinner stops spinning when either error/payment card added.
[x] Ensure selecting a new card stops showing of payment sheet.
[x] Ensure pledging can occur during loading state (regular and Apple Pay)
[x] Write tests.

SwiftFormat found issues:

File
Rules

Library/ViewModels/PledgePaymentMethodsViewModel.swift:321:1
warning: (indent) Indent code in accordance with the scope level.

  Generated by :no_entry_sign: Danger

SwiftFormat found issues:

File
Rules

Kickstarter-iOS/Views/Controllers/PledgePaymentMethodsViewControllerTests.swift:108:1
warning: (indent) Indent code in accordance with the scope level.

  Generated by :no_entry_sign: Danger


Not reading all nodes

Didn't see this issue in the documentation but it's only hitting the first node in my XML document.  For example I have multiple "Alert" nodes
<CTAAlerts>
<TimeStamp>20171127 11:47</TimeStamp>
<ErrorCode>0</ErrorCode>
<ErrorMessage/>
<Alert>...</Alert>
<Alert>...</Alert>
<Alert>...</Alert>

Even though I'm using a for loop it only returns the value I want from the first node and ignores the rest.  Am I missing a feature that's not mentioned?

Is this your complete XML?
If it is, it doesn't look like a valid XML document
If it isn't, can you post your complete xml document?

No it's not, I was just giving an example of what I was trying to achieve.  Here's the full XML: http://www.transitchicago.com/api/1.0/alerts.aspx
Basically I'm trying to go in each "Alert" node and check for values and such, but it's not looping.  It's only hitting the first node then returning out.


Add authentication layer for new request with IP

Fixed in https://github.com/pax0r/pax0r-ddns/pull/10

In fact I have not finished it


Implement Unit Testing and Conform to Go Project Structure Best Practices

Title: Implement Unit Testing and Conform to Go Project Structure Best Practices
Description:
This PR introduces two major changes:

Unit Testing: Adds unit tests for the existing functionalities. Three main functions, ReadLines, SortLines, and WriteLines, are tested to ensure they are working as expected.
Project Structure: Reorganizes the codebase to conform to Go project structure best practices. The main code and tests are moved into a cmd directory.

Changes:

Move gnu-sort-text.go to cmd/gnu-sort-text.go
Add main_test.go under cmd with unit tests for ReadLines, SortLines, and WriteLines
Introduce error handling and logging in the main code

Checklist:

[x] Code compiles correctly
[x] Created tests which fail without the change (if possible)
[x] All tests passing

Reviewers:
@danilo-gemoli

Additional fixes made to avoid silly mistake faced earlier by unit testing a go feature instead of the function


Issuing credits

Issue 100 credits to @engn33r.

 Follow up
On Monday, 12-Aug-24 06:31:16 UTC by Gov4Git dev
Issued 100 credits to member @engn33r.


feature/se-9-upload CMDI

Problem description
For the admin must be a option to upload CMDI file in the Submission UI. The CMDI file must be stored in the:

METADATA bundle - the admin has selected the option to upload the CMDI file
ORIGINAL bundle - the hasn't selected the option to upload the CMDI file

[x] Define a new local metadata type hasCMDI
[x] Create a test for a new local metadata
[x] Define a new input field (checkbox) for the admin - is uploading a cmdi file.
[x] Every file will be pushed to the bundle ORIGINAL then the CMDI file will be moved to the METADATA bundle by the MetadataValidation class.
[x] If the user is admin and has selected option to upload CMDI file, the CMDI file must be stored in the bundle METADATA. If the user hasn't selected option to upload CMDI file but is uploading the CMDI file, the CMDI file must be stored in the bundle ORIGINAL. This check will be done by the MetadataValidation in the method of the new class CMDIFileBundleMaintainer.updateCMDIFileBundle.
[x] Create a test for uploading CMDI file.
[x] Create a tests for maintaining CMDI file in the correct bundles.

How to test:

[x] Admin should see a new input field: Has CMDI file
[x] User shouldn't see a new input field: has CMDI file
For admin:
With CMDI file
[x] Normally create a new Item with the file -> After depositing the file should be seen in the Files section in the Item View page.
[x] Create a new Item with the file but mark Has CMDI file  checkbox to "Yes" and deposit new Item. -> After depositing you shouldn't see the file in the Files section in the Item View.
[x] Create a new Item -> mark Has CMDI file to "Yes" and upload file. -> remove file -> unmark Has CMDI file -> again upload file and mark _Has CMDI file to "Yes". Then deposit Item and the file shouldn't be seen in the Item View in the Files section.
NO CMDI file (some normal file)
[x] Normally create a new Item with file -> Deposit -> the file should be seen in the File section in the Item View.
[x] Create a new Item with file -> mark Has CMDI file to "No" -> the file should be seen in the Files section in the Item View.
For user:
[x] Normally create a new Item with CMDI file -> the file should be seen in the Files Section in the Item View page.
[x] Normally create a new Item with NO CMDI file -> the file should be seen in the Files Section in the Item View page.

it is possible to edit metadata informed if file is cmdi or not by admin
there is no information in metadata that file is not cmdi
there is no check if file is really cmdi when user marks "Has CMDI file"
there is no option to mark the file as cmdi after deposit
cannot delete cmdi file when "Has CMDI file" is marked - the same behavior with bitstream file

@Paurikova2

Yes, if the admin edit hasCMDI in the metadata it is his mess
It is ok that user do not know about cmdi file - cmdi file is not standard file and there is no need to have information that the item doesn't have cmdi file
That check is unnecessary
Yes, the admin must be careful when is creating the Item with CMDI

@Paurikova2 The CMDI file should be possible to remove - test it again please

It is not possible to upload one cmdi file as "Has CMDI file" and another cmdi file as no "Has CMDI file"

@milanmajchrak
It is possible to remove CMDI file (bitstream).

It is not possible to upload one cmdi file as "Has CMDI file" and another cmdi file as no "Has CMDI file"

It is ok

Tested


System testing test suite

SecHub already has a set of integration tests, allowing one to test different parts of the system (subsystems). However, SecHub does not have system tests. System tests in the context of SecHub are tests, which test the entire system and real products used by SecHub. System tests are emulating a user interacting with SecHub.
We currently run system tests manually. For example, by triggering a code scan against a known repository or application with vulnerabilities. This naive approach works well with a very limited amount of products. However, as we integrate more products this approach does not scale. In addition, this approach relies on humans repeating the same tasks over and over again with high precision. Humans tend to make errors. Computers are much better at executing the same steps over and over again.
The purpose of this issue is to create a test suite which makes it easy to initialize all system tests. There should be a single Gradle task executing and running all the system tests. Additionally, the result of the system tests should be in the JUnit test format, to make it easy to identify issues in tests which are not working.
The main objective is to be able to test SecHub with real products in an int (preview) environment. It is important to be able to test the same test scenarios in an automated and repeatable way.

Jeremias Eppler<EMAIL_ADDRESS>Daimler TSS GmbH, imprint

Libraries we could use for system tests and REST Assured for REST API testing and Selenium for the WebUI.
A behavior driven testing approach for system tests is probably favorable, as behavior driven testing focuses more on use cases.


Distinction between generated and fixed shading

For the new shade editor to work we need a distinction between generated and fixed shading. With this we can add multiple fixed shades for a color and interpolate only the missing ones correspondingly

Added boolean fixed to class Shade
Adapted all classes using shades constructor
Added unit tests for Shade


Start/end dates don't show precision

Manga https://myanimelist.net/manga/516 only has a precision of a year. However, the Jikan API returns that the manga started on January 1 of the year. The only way to find out the difference is to look at the string representation and regex it. I think a new field should be added, where if the month and date are not there then the month and date fields should be null.

This is the appropriate response we've set it to return.
If there's only a year provided by MAL, then that's the best estimated precision you can get.

This is the appropriate response we've set it to return.
If there's only a year provided by MAL, then that's the best-estimated precision you can get.
If you need the actual value that MAL returns, that's also passed as a string.

My problem is that there is no easy way to distinguish between "2003", "Jan 2003", and "Jan 1, 2003". All 3 would show the same values unless I parsed the human-readable string. I need to know this because the way I am using the data, the other platform allows month/days to be null, so it's important to leave those null when it's a guess.

My problem is that there is no easy way to distinguish between "2003", "Jan 2003", and "Jan 1, 2003". All 3 would show the same values unless I parsed the human-readable string.

Before I used Jikan, I've faced this issue as well, and because I agree that 2003, Jan 2003 and Jan 1, 2003 are 3 different things, I created a workaround solution for it back then. So after finding it again, and concluding it hasn't really aged very well, it still seems to work. I will rewrite it, and if you're still interested, post the snippet here.

... the other platform allows month/days to be null, so it's important to leave those null when it's a guess.

I'm not sure which "other platform" you're referring to, but I've seen AniList's GraphQL having separated the properties year, month and day as well, also being nullable.
@irfan-dahir Related to this issue, there currently is no property in the Anime model which allows to get the raw airdate string. So I would suggest adding a property there, which can use the  the getAnimeAiredString from the AnimeParser. If you're okay with that, I can make the PR.

Could you share the snippet? I have a solution that seems to work but has some edge cases (like when an end date is missing)

@PythonCoderAS Want to discuss it further here or shall we move it to Discord (to prevent further noise here)? I'm available at ToshY#0823.

@ToshY thanks but your snippet is in PHP while I'm working in Python. I appreciate it though so I can get at the edge cases.

Well... it's a PHP library after all 🙃 Anyway, hope you can figure it out too 👍

@ToshY responded within PR
@PythonCoderAS If I were to make changes here to allow for nullable, I'd change the default behavior of aired.prop rather than add a new property so it doesn't return an estimation and rather just null.
However, one issue is; the  start_date and end_date properties are ISO8601 formats and they need day/month. Their values would be different from aired.prop (as it will force estimation to fit in the DateTime format)

@irfan-dahir Seems that the Person model also has a getBirthday() which returns null when a person has a birthday format of Y (example) or M Y (example). Is it possible to add unparsed here as well?

@irfan-dahir That was my original idea but won't it cause a breaking change?

Hmm, kinda. Tho, these are very minor edge cases where the date isn't fully provided.

@ToshY yes, but that would be a breaking change as it's not a date range and the data type would change.
We'd probably have to introduce a new object that handles dates and timestamps specifically. So it could perhaps return both parsed info like ISO8601 and props and the unparsed date string.
And have every date property return that object.
But these minor edge cases are only in a few areas where dates are often estimated or incorrectly entered like anime or a person's birthday (for some reason 😅)

Bump

bump

Hey, any news on this issue? Just realized this was a thing when I noticed how "Isekai Suicide Squad" showed start date as "January 1, 2024" in my app, making me think it had started, only to realize the date was only officially set to "2024" and leaving disappointed to try and search for the cause 😅


Fix display collapse

evi:

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

Thanks for catching this @changeworld .


x/cmd/dotls: add tool to list all ops in a readable fashion

Codecov Report

Merging #271 into master will not change coverage.
The diff coverage is n/a.

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


captive portal : adding CAS SSO authentication

Hello there, I'm a long time user of pfsense boxes and newer ones are now Opnsense. Great job for the interface rewriting !
Central Authentication Server is an auth SSO web service often used in educational environements and has benefits to grants tickets instead of username/password. https://www.apereo.org/projects/cas
This feature is a missing one in most of the captive portal projects, so I decided to try to implement it in the Opnsense captive portal. I have succeeded but I think the bad way :
I used a modified captive portal web server with php enabled in the CP chroot, and a modified default template with phpCAS client installed.
It would be best to implemented it in the API but seems too difficult for me: no traditional login/password form and eraly redirects before the headers are sent.
I think I could implement it more nicely witin the ui, and the services but need your opinion before I fork the core.
Here is the link of the project : https://github.com/rrignier/opnsense-captive-cas
Regards

@rrignier the code indeed doesn't comply with our standards, our captive portal client code doesn't include php script execution to keep a clear separation between untrusted client code and guarded api end points for example.
We have had the question before to include sso using cas, saml or OAuth2, but it's quite some work to implement it properly, for which we have no funding (just not enough demand either).
If you could develop an implementation, which doesn't require php in the captive portal http server and could easily be validated/tested, I would gladly have a look, but the amount of time I can spend on the subject is quite limited.

OK, I'll have a look in the api to see what could be implemented. if I have time to this.
Thank you for report.

needs more compliant implementation


About pos_position_ids and neg_position_ids

In HLLM/code/REC/data/dataset/trainset.py, there is this code:
pos_position_ids.extend((torch.array(len(ids) + self.item_emb_token_n) + (self.max_ text_length - len(ids))).tolist())
may I ask why add an offset like self.max_text_length - len(ids)? I think because the ids may perform a padding operation, but I didn't find a padding operation for the ids.

I have the same problem.It seems that ids is not padded, which will cause the pos_input_ids dimension to be inconsistent. Stacking in the customize_rmpad_collate function should result in an error
'ids = self.tokenizer.encode(text_str)
ids = ids[:self.max_text_length]'
'pos_input_ids.extend(ids + [0] * self.item_emb_token_n)'
' if isinstance(elem, torch.Tensor):
out = None
if torch.utils.data.get_worker_info() is not None:
If we're in a background process, concatenate directly into a
shared memory tensor to avoid an extra copy
numel = sum(x.numel() for x in batch)
storage = elem.storage()._new_shared(numel)
out = elem.new(storage)
return torch.stack(batch, 0, out = out)'

I have the same problem. It seems that the ids are not padded, which will cause the pos_input_ids dimension to be inconsistent. Stacking in the customize_rmpad_collate function should result in an error.
In trainset.py
ids = self.tokenizer.encode(text_str)  ids = ids[:self.max_text_length]
pos_input_ids.extend(ids + [0] * self.item_emb_token_n)
In customize_rmpad_collate:
 if isinstance(elem, torch.Tensor): ...         return torch.stack(batch, 0, out=out)

Hi~
We use rmpad operation to faster training with flash attention, you could check codes in https://github.com/bytedance/HLLM/blob/main/code/REC/data/dataset/collate_fn.py#L131


docs: Added Doppler recipe to cookbook

This commit adds recipes for using Doppler secrets from Dagger.
Closes #5079

The current recipes for Python and Node.js use the Doppler API and an HTTP client to fetch individual secrets and then feed them into the Dagger pipeline. This is as per the suggestion in the Doppler docs: https://docs.doppler.com/docs/sdk-javascript
I discussed this with @kpenfound and he had a different suggestion ie. pulling all Doppler secrets as an env file and mounting the file as a secret. I've included snippets of our conversation below and would like to arrive at a consensus about how the recipe should work.
[kyle]  look at their recommended setup in a dockerfile for example: https://www.doppler.com/integrations/docker
...
The preferred path is doing a doppler run -- and it just injects the environment. The alternative is the doppler secrets download thing. Realistically, if a dev is using doppler and dagger, they'll doppler run -- go run ci.go and dagger would handle the env variables as if they were normal variables
...
 I think technically what we'd want is the thing inside the dagger pipeline to be run like doppler run --, so maybe what we want is to set all secrets in a particular config as secrets, or pull them as an env file. Kind of like in the dockerfile example they have

[vikram]
OK, so (I think!) you're saying that the Go/Python/Node code should:
- init a container using Dagger
- install Doppler in the container
- exec doppler login in the container, reading login creds from the host env
- exec doppler run -- in the container to inject the secrets into the container env
- exec whatever else using those secrets
If I understood it right, there could still be some issues:
- I guess Doppler puts the secrets in the container env as plaintext?
- you can't be granular with the injected secrets ie. if you use doppler run -- when creating a base image, all children of that image will inherit the same env with all the secrets, even the final prod image, unless you manually remove the unwanted ones from the env?
- there's an extra dependency on the doppler cli?

[kyle]
Yeah exactly, those are the problems with the doppler run -- in the container. But if instead we get an env file (from the api or cli) on the host, and then mount that as a secret file, I think that's a good "doppler compatible" way to go about the problem

[vikram]
OK so then the two approaches are:
- above: we are getting all the secrets at once (from api or cli) and mounting them in the container as a secret/env file
- PR version: we are pulling the secrets individually  (from api) and storing them in the pipeline as Dagger secrets

[kyle]
Yeah exactly. The main difference is just dagger's awareness to what is/isn't in doppler. Pulling the whole config seems more like what doppler wants

Please add your thoughts @kpenfound @gerhard @jlongtine @helderco @slumbering

Did I understand your suggestions @kpenfound's correctly?

download secrets using doppler CLI (instead of client-side GET requests)
run doppler CLI as a container (instead of using the Doppler API)
download all secrets at once (instead of one at a time)
expose all secrets via an env file (instead of env variables)

If that is the case, how is secret scrubbing going to work for individual secrets if they are loaded all at once, via the file that you are suggesting? FWIW https://dagger.io/blog/dagger-engine-0-4-0

Next time, could we add suggestions as comments on PRs, maybe even on specific lines of code? I can imagine that conversation flowing better than Discord DMs / threads.


Post-login redirect not working correctly

I set up an MVC client using Implicit flow, and everything seems to be working fine when the user is already authenticated. If I clear my cookies and go to an [Authorize] page, I am redirected to the IdentityServer login page as expected. However I am not redirected back after successful login, and instead I see IdentityServer's page indicating my login was successful (and stay there).
I checked the requests made, and it seems that I am redirected to the /account/login page with the parameters from the /authorize page. Any idea what I could be doing wrong?
The requests from the network tab: http://i.imgur.com/TTfFtwX.png

Any update? Not much info for us to go on here. You might need to do some more debugging.

Hi, I am facing the same issue.
What is the set of debug info that I could add which will help with diagnosing this?


Adding Firefox and Sauce karma launchers.

Note: The Sauce launcher won't work correctly until more config options are added.

My todos:

[ ] Release new sanjo:karma version
[ ] Depend on new sanjo:karma version

Any idea when you'll get to those? I tested it and the Firefox runner definitely works on travis so I'd love to use it asap. Thanks!

bump

Firefox is now available in 0.11.0. Thanks for reminding me.

Thanks!


replacement of parameters

Need to replace some parameters in the POST method
how can this be done?

Hey @W0rkX  I am looking to do the same, did you find any solution? how to replace parameters in POST request


fix: added min width to wrap long page names

Summary of changes

Added min width to the context menu
Changed from display:none to visibility: hidden for the EditName component because UI was getting distorted after hover for long page names. This was also done to ensure that the link icon gets populated perfectly without changing the positions of the other DOM elements on hover. Refer below video for the reference.
Changed the width of the ContextMenu Pop over while editing and non-editing scenarios. The width is changed so that we can see ellipses when there is a long page name present.
Added ContextMenuPopOver and ContextMenu classes to added css.

Fixes #9987
Type of change

Please delete options that are not relevant.

Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?
I have tested this manually. There are two scenarios:

While viewing the page name in the contextMenu it should have ellipses as shown below:

While editing the page name, the size of the context menu pop over should remain constant and the user still be able to enter the page name. Please find below the video for the reference:

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

Test coverage results :test_tube:
:red_circle: Total coverage has decreased
// Code coverage diff between base branch:release and head branch: fix/fix-long_pg_name_icon_algn

Status
File
% Stmts
% Branch
% Funcs
% Lines

:red_circle:
total
55.12 (0)
36.62 (-0.01)
34.56 (0)
55.65 (0)

:green_circle:
app/client/src/pages/Editor/Explorer/Entity/Name.tsx
62.35 (0)
34.69 (0.65)
38.46 (0)
61.73 (0)

:red_circle:
app/client/src/utils/autocomplete/TernServer.ts
52.71 (-0.23)
40.83 (-0.84)
36.21 (0)
56.74 (-0.25)

/ok-to-test sha=23a0c7b

/ok-to-test sha=886aa6a

It has been tested and working fine


investigate into lua API for editing animted lau sprite using tweening

Added animated title cards to most songs. Need to know if there any other sprites that would need animation by tweening, hence the question label.

IF super sonic's anims by default don't include him floating up and down im sure tweening would work to re-create that affect

That could be done with one (1) single line of Lua in the song script; I'm experimenting with that now... though... he doesn't float up and down in the actual song, does he...? I didn't see it...

yeah regardless of what anim is used hes always floating


Not compiling with SDCC

Hi,
I'm using platformio to develop for an STM8 but nanoMODBUS is not compiling.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm8/stm8sblue.html
PLATFORM: ST STM8 (2.1.0) > ST STM8S103F3 Breakout Board
HARDWARE: STM8S103F3P6 16MHz, 1KB RAM, 8KB Flash
DEBUG: Current (stlink) External (stlink)
PACKAGES:
 - framework-arduinoststm8 @ 0.50.210317
 - tool-stm8binutils @ 0.230.0 (2.30)
 - toolchain-sdcc @ 1.30901.11242 (3.9.1)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 13 compatible libraries
Scanning dependencies...
Dependency Graph
|-- nanoModbus
Building in release mode
Compiling .pio\build\stm8sblue\src\main.c.rel
Compiling .pio\build\stm8sblue\libb6b\nanoModbus\nanomodbus.c.rel
src\main.c:32: warning 85: in function read_serial unreferenced function argument : 'arg'
src\main.c:51: warning 85: in function write_serial unreferenced function argument : 'arg'
src\main.c:63: warning 85: in function handler_read_holding_registers unreferenced function argument : 'unit_id'
src\main.c:63: warning 85: in function handler_read_holding_registers unreferenced function argument : 'arg'
lib\nanoModbus\nanomodbus.c:1152: error 2: Initializer element is not a constant expression
lib\nanoModbus\nanomodbus.c:1290: error 0: Duplicate symbol 'subreq_file_number', symbol IGNORED
lib\nanoModbus\nanomodbus.c:1261: error 177: previously defined here
lib\nanoModbus\nanomodbus.c:1291: error 0: Duplicate symbol 'subreq_record_number', symbol IGNORED
lib\nanoModbus\nanomodbus.c:1262: error 177: previously defined here
lib\nanoModbus\nanomodbus.c:1292: error 0: Duplicate symbol 'subreq_record_length', symbol IGNORED
lib\nanoModbus\nanomodbus.c:1263: error 177: previously defined here
lib\nanoModbus\nanomodbus.c:1293: error 20: Undefined identifier 'subreq_record_length'
lib\nanoModbus\nanomodbus.c:1296: error 20: Undefined identifier 'subreq_file_number'
lib\nanoModbus\nanomodbus.c:1296: error 20: Undefined identifier 'subreq_record_number'
lib\nanoModbus\nanomodbus.c:1297: error 20: Undefined identifier 'subreq_record_length'
lib\nanoModbus\nanomodbus.c:1305: error 20: Undefined identifier 'subreq_record_length'
lib\nanoModbus\nanomodbus.c:1311: error 20: Undefined identifier 'subreq_record_length'
*** [.pio\build\stm8sblue\libb6b\nanoModbus\nanomodbus.c.rel] Error 1
========================================================================================= [FAILED] Took 10.02 seconds =========================================================================================

I'm new to C development and microcontrollers in general so I'm sorry if this is something obvious.
Any help is appreciated.

Can you try building with the --std-c99 compiler flag? I expect it to fix at least the errors about undefined identifiers

I never used this compiler, so I made a couple of tests:

with latest SDCC 4.3.0, almost all errors are gone, except for the one about VLAs (Initializer element is not a constant expression), which looks like SDCC is not supporting at all
with your version, 3.9.0, I couldn't find any flag that could mitigate the problem, as per the documentation C99 support is incomplete

So I would say, since all the errors are inside handle_read_file_record(), as a workaround you could disable it by defining NMBS_SERVER_READ_FILE_RECORD_DISABLED, if you don't plan on using FC 20  .
Otherwise this function should be substantially changed to remove the usage of features not supported by SDCC

The new new one builds with the c99 flag. The defines didn't do anything.

The new new one builds with the c99 flag.

Nice! Also I think the --std-c99 was never necessary, so you can omit it

The defines didn't do anything.

Strange, how are you defining them? I added -DNMBS_SERVER_READ_FILE_RECORD_DISABLED -DNMBS_SERVER_WRITE_FILE_RECORD_DISABLED to the sdcc command line and these functions were skipped as expected

I just put
#define NMBS_SERVER_READ_FILE_RECORD_DISABLED
#define NMBS_SERVER_WRITE_FILE_RECORD_DISABLED

into my main.c.

ae6a93c963b497fc71296aa727ba09b40c15a2e7

@debevv,  I want to discuss about commit a08d59c. I think, it is non-optimal memory usage in struct subreq. Now, it usage 7*23=245 bytes on stack always. It may be big for embedded devices. It's a shame that almost always only the first element will be used (when we didn't use multiple sub-requests in one request). Maybe we can leave variable-length array (VLA)? VLA is part of C99 standard. Old versions SDCC were not supported VLA, but it fixed in last year and it already available in SDCC-4.3.0-RC1. Also, I can offer next variant:
struct {
        uint8_t reference_type;
        uint16_t file_number;
        uint16_t record_number;
        uint16_t record_length;
    }
#ifdef __STDC_NO_VLA__
    subreq[35];    // 245 / subreq_header_size
#else
    subreq[subreq_count];
#endif

Macros __STDC_NO_VLA__ is is part of the standard С11, but old versions SDCC understand it too, including --std-c99.
What do you think?

@arhiv6 Yes, that would be a downside of this approach. But consider that this is not the only place where it happens: the first one it comes to my mind is in handle_read_discrete() where a whole nmbs_bitfield is loaded onto the stack (or, in general, the nmbs_bitfield array itself when used by the user). For me it's a decent compromise between memory usage and ease of development.
Anyway, in this case it doesn't make sense to not use your solution, I really didn't know the existence of these macros. I will implement it asap
PS are you sure about SDCC 4.3.0 rc1? Because I tried 4.9.0 and the VLA didn't compile (see my previous comment)

I checked VLA in SDCC 4.3.0-rc1 and it it not fully supported :( They added support VLA to their changelog and removed the line from the "SDCC Compiler User Guide" that VLA is not supported. I will send them a issue.  But this is not so important if you use a macro __STDC_NO_VLA__. Good news: I checked supporting macros __STDC_NO_VLA__ for different SDCC versions. It supported since version 3.2 (released in July 2012) to last version 4.3 (released 07.07.2023).
Where did you get version 4.9.0? Maybe we are talking about different compilers? I checked it: https://sdcc.sourceforge.net/.

@debevv, I want to discuss about commit a08d59c. I think, it is non-optimal memory usage in struct subreq. Now, it usage 7*23=245 bytes on stack always. It may be big for embedded devices. It's a shame that almost always only the first element will be used (when we didn't use multiple sub-requests in one request). Maybe we can leave variable-length array (VLA)? VLA is part of C99 standard. Old versions SDCC were not supported VLA, but it fixed in last year and it already available in SDCC-4.3.0-RC1. Also, I can offer next variant:
struct {
        uint8_t reference_type;
        uint16_t file_number;
        uint16_t record_number;
        uint16_t record_length;
    }
#ifdef __STDC_NO_VLA__
    subreq[35];    // 245 / subreq_header_size
#else
    subreq[subreq_count];
#endif

Macros __STDC_NO_VLA__ is is part of the standard С11, but old versions SDCC understand it too, including --std-c99.
What do you think?

e3456986b551c891d4b95e89aaf5eded15e6f3a2


Antipolarized Concentrated Pym Essence Recipe.

The antipolarized concentrated pym essence recipe takes effect whenever two items that are not already a recipe are placed into a crafting bench.
Steps to reproduce the behavior:

Open a crafting bench
Place two items into it in a way that should not craft anything.
Antipolarized Concentrated Pym Essence will appear in the output slot

Expected behavior
Nothing will be in the output slot
Screenshots

Additional information:

Installed mods: Chiseled-Me, Chisels and bits
Forge version: <IP_ADDRESS>47
Mod version: <IP_ADDRESS>

asap

Yeah didn't really work out, but soon I will do a lot of work with this mod, as I've said in a lot of places.


Update track README to point to correct docs

As @petertseng noted in https://github.com/exercism/x-common/pull/797#issuecomment-302968769, the newly bootstrapped language tracks should point to the documentation in the docs repository rather than the x-common contributing guide.

I advise that it would be good to hasten the moving of some sections to the new location?

Yeah, I advertised these as "good first patches" and tweeted about them. If nobody takes the bait in the next couple of days I might prioritize this myself. I'm eager to get the documentation into a better state.

honestly, don't know where these should go

Me neither. I think we might have a need for a generic "contributing" directory where we can put these things.
We could ask that they be put into the "kitchen sink" directory for now (https://github.com/exercism/docs/pull/17)