How to run KITE test in Docker Swarm ?

I have installed KITE locally, and I can run KITE tests from hub to nodes (different machines, same network) by this configuration:
Config file of the project:
{
"name": "MessengerLogin %ts",
"grids": [
{
  "type": "local",

   "url": "http://<IP_ADDRESS>:4444/wd/hub"
}.......
   }
  }
}

],
"clients": [
{
"browserName": "chrome",
"PLATFORM" : "LINUX"
}
Hub configuration:
@echo off
setlocal
title Hub
java -jar ../selenium.jar -role hub --debug -host ipAddress
endlocal
pause
Node configuration:
java -Dwebdriver.chrome.driver=./chromedriver.exe -jar ../selenium.jar -role node -maxSession 10 -port xyz -host ipAddress -hub http://ipAddress:port/grid/register  -browser browserName=chrome,maxInstances=10 --debug
Now I need to do same work but through Docker Swarm (not locally) https://prnt.sc/psly63 . So , I am able to create grid through yml file in swarm:
version: "3.7"
networks:
main:
driver: overlay
services:
hub:
image: selenium/hub
ports:
- "4444:4444"
networks:
- main
deploy:
mode: replicated
replicas: 1
labels:
selenium.grid.type: "hub"
selenium.grid.hub: "true"
restart_policy:
condition: none
placement:
constraints: [node.role == worker]
chrome:
image: selenium/node-chrome-debug
entrypoint: >
bash -c '
export IP_ADDRESS=$$HOSTNAME &&
SE_OPTS="-host $$IP_ADDRESS" /opt/bin/entry_point.sh'
volumes:
- /dev/urandom:/dev/random
- /dev/shm:/dev/shm
environment:
HUB_PORT_4444_TCP_ADDR: hub
HUB_PORT_4444_TCP_PORT: 4444
NODE_MAX_SESSION: 1
networks:
- main
deploy:
mode: replicated
replicas: 3
labels:
selenium.grid.type: "node"
selenium.grid.node: "true"
selenium.grid.node.type: "chrome"
restart_policy:
condition: none
placement:
constraints: [node.role == worker]
firefox:
image: selenium/node-firefox
entrypoint: >
bash -c '
export IP_ADDRESS=$$HOSTNAME &&
SE_OPTS="-host $$IP_ADDRESS" /opt/bin/entry_point.sh'
volumes:
- /dev/shm:/dev/shm
- /dev/urandom:/dev/random
environment:
HUB_PORT_4444_TCP_ADDR: hub
HUB_PORT_4444_TCP_PORT: 4444
NODE_MAX_SESSION: 1
networks:
- main
depends_on:
- hub
deploy:
mode: replicated
replicas: 3
labels:
selenium.grid.type: "node"
selenium.grid.node: "true"
selenium.grid.node.type: "firefox"
restart_policy:
condition: none
placement:
constraints: [node.role == worker]
Now, my question is how can i integrated KITE tests to be run in swarm, cuz when i hit run https://prnt.sc/psm609 , it shows me this https://prnt.sc/psm6l5

Hi,
What do you see when you open http://<IP_ADDRESS>:4444/grid/console in your browser?
There needs to be at least on Chrome on OS LINUX.

@Emmanuel ,  http://<IP_ADDRESS>:4444 is the grid ip that i set up on Docker Swarm, <IP_ADDRESS> is the manager node ip and 4444 is the port. When i open this in browser it shows me connected nodes , but i cannot run kite tests on them   https://prnt.sc/psly63  :

It should be working. Do you confirm the clients is LINUX?
"clients": [
{
"browserName": "chrome",
"PLATFORM" : "LINUX"

}

closed


Validate units

Is there a recommended way to validate units? My application accepts a scale as a query param, and I want to handle the user typing invalid scales.
I considered trying to leverage normalizeUnits for this, but I'm not sure if it will work:
moment.normalizeUnits('pasta');
// => pasta

moment.normalizeUnits('day');
// => day

At the moment I'm hardcoding the accepted values, then seeing if the input value is in the array.

Note that normalizeUnits is also going to handle tokens like GG which you probably don't want handled :)
Just write it yourself, and use this list as a reference:
['millisecond', 'second', 'minute', 'hour', 'day', 'date', 'week', 'isoWeek', 'month', 'quarter', 'year', 'dayOfYear', 'weekday', 'isoWeekday', 'weekYear', 'isoWeekYear']

try removing an s at the end and then search case insentitive.


Clicking build error or warning opens up new instance of same file

VSCode Version: 1.28.2
OS Version: Windows 7 64-bit

Steps to Reproduce:

Open a C file in the editor that is part of the workspace or open folder via Quick Open.
Force a build error by putting junk in the file.
Build project.
Click on build error or warning in the Output Pane. A new instance of file opens, this time with the absolute path instead of a relative path.
Launch Quick Open again. This time two versions of same file will appear. One with absolute path, one with relative path.

This seems like a minor thing, but by having two versions of same file opened, it's easy to get the "The content on disk is newer. Please compare your version with the one on disk."

Does this issue occur when all extensions are disabled?: Yes

@BaronZemo can you mouse over each of the tabs and tell us what the paths say?

Duplicate of https://github.com/Microsoft/vscode/issues/12448


i'm using acarla 0.9.5 i'm trying to make a safe distance between my car and another in front of  it . I'm using lidar to do that but i cannot understand the location points that attached with lidar measurmet. how can i make use of it ??

+1
Have you figured out?


feat: add maybe_reset_index for pandas-like dataframe or series

What type of PR is this? (check all applicable)

[ ] 💾 Refactor
[x] ✨ Feature
[ ] 🐛 Bug Fix
[ ] 🔧 Optimization
[ ] 📝 Documentation
[ ] ✅ Test
[ ] 🐳 Other

Related issues

Related issue #
Closes #1070

Checklist

[x] Code follows style guide (ruff)
[x] Tests added
[x] Documented the changes

If you have comments or can explain your changes, please do so below.

Hey @raisadz thanks for addressing this! It definitly was in my wish list 🚀
I have a tiny comment regarding the return object 🙈

Hey @FBruzzesi, thanks for noting that the return should be a narwhals object, I addressed it


Workflow selection does not work

On 8.x, go to “Add Event” → “Workflow” and select the first workflow from the drop-down menu
Try to select the second one: This does not work at all.
Select the first one again: The UI for the second one is selected.

This feels like someone messed up the index of the workflows picked from some list in the JavaScript. You can test this issue right now on develop.opencast.org. For development, it probably suffices to use the admin interface mockup:

Admin Interface :: Live working with a Mockup

Seems like this is already fixed. @lkiesow


fabric support

When I want to run my project on RN 0.72.2 with fabric
I encountered this error
Cannot specify link libraries for target "react_codegen_RNScreenshotPreventSpec" which is not built by this project.

I explore this error. I write later about result search fix this error. Thx!)

same issue

@killserver I'm running into the same issue attempting to enable the new architecture on react native v0.74. Any thoughts on how to fix this?


[FIX] bring back script to convert issue to pages

The PYTHONPATH needs to be restored as well if we are rolling back:
https://github.com/brainhackorg/global2021/pull/102/files#diff-c38a96b6cda86be5107e196035cad1096fdca0eb57dda7e7c0bf70c2f825dc1eL27

And have the requirements installed, etc.


schema is not getting evolved when we use have extra columns in whenNotMatchedInsert

while doing scd type 2 we need to update the record content before inserting it to the table, so we are calling some function before inserting into the table, but if there is some schema change in the new record which is getting inserted, then this below error is thrown,
cannot resolve col5 in INSERT clause given columns existing.col1, existing.col2, existing.col3, existing.col4
Code:-
builder = SparkSession.builder.appName("quickstart")\
         .config("spark.sql.extensions", "io.delta.sql.DeltaSparkSessionExtension")\
         .config("spark.sql.catalog.spark_catalog", "org.apache.spark.sql.delta.catalog.DeltaCatalog")\
         .config("spark.databricks.delta.schema.autoMerge.enabled","true")

deltaTable.alias("existing")\
    .merge(df.alias("new"), "existing.col1 = new.col2")\
    .whenMatchedUpdateAll()\
    .whenNotMatchedInsert(values = getValues())\
    .execute()

Could you provide the entire stack trace and the entire code if possible? This would be helpful to investigate such issue.


Add DumpIt and Redline

DumpIt is a Windows memory imaging tool. It makes use of win32dd and win64dd. Redline on the other hand, is a all in one tool that can assist in development of a threat assessment profile.

Heyy,
Thanks for the contrib! but..
Please note DumpIt was already added : https://github.com/meirwah/awesome-incident-response#windows-evidence-collection.
Please remove it , and I will merge the PR for the Redline tool.

@JohnTroony Please see #18

Okay... Seems I wasn't keen on checking the list of tools. I'll make the changes and send a PR. Thanks

Oh, Seems like you've already merged the commit. No need to send another PR right?


Images

The architecture images do not display well on the dark document background. Please consider adopting practices to ensure that images are readable in both backgrounds.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 66022e29-3f7d-633d-fa34-2fd3afc2bc7a
Version Independent ID: fe935bd7-efe5-8a76-02f7-4de3e6caade3
Content: High Availability and Disaster Recovery for SQL Server
Content Source: articles/virtual-machines/windows/sql/virtual-machines-windows-sql-high-availability-dr.md
Service: virtual-machines-sql
GitHub Login: @MikeRayMSFT
Microsoft Alias: mikeray

Thanks for the feedback! We are currently investigating and will update you shortly.

@dcbrown16 Thanks for bringing this to our attention. I have assigned the issue to the content author to investigate further and update the document as appropriate.


COMP: Numerical computation precision limit in resampling

Coordinate computations for nearest neighbor are computed at the limits of numerical precision for this image during resampling.  arm64 and x86_64 compute input continuous index coordinates as<PHONE_NUMBER>9999999 vs 105.4 which requires a slight tolerance acceptance in the comparisons
Add --compareRadiusTolerance 1 to test validation.

https://open.cdash.org/tests/1506666894
PR Checklist

[x] No API changes were made (or the changes have been approved)
[x] No major design changes were made (or the changes have been approved)
[x] Added test (or behavior not changed)
[x] Updated API documentation (or API not changed)
[x] Added license to new files (if any)
[x] Added Python wrapping to new files (if any) as described in ITK Software Guide Section 9.5
[x] Added ITK examples for all new major features (if any)

@hjmjohnson did you accidentally deleted this branch? And possibly also #4571?


Getting 'malformed config.xml' error in Phonegap Build

I'm getting a  'malformed config.xml' error in Phonegap Build when I include the plugin like so:
<plugin name="phonegap-plugin-push" spec="~1.8.4" source="npm"> 	<param name="SENDER_ID" value="<MySenderID>" /> </plugin>
When I take that out, it passes, so the problem is in this block. It seems fine to me, can someone tell me what's wrong with it? (Of course, I have my actual sender ID in there for the value.)
Most plugin names for Phonegap start with "cordova", that's not it, is it?

Okay, took the brackets out for the version number, just using the number itself between the quotes, and it passed. The example in the instructions seemed to indicate you need the brackets.

@jamminjames what example instructions?

At https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/PHONEGAP_BUILD.md

@jamminjames oh, I see. No, don't include the < or >. Everything inside those brackets should be replaced including the brackets.

Reopening for doc improvement.

Fixed on abdb656315bd4457c7ae43aaa52e2357df85d139, @jamminjames please let me know if that makes it clear. Also, thanks for spotting hard spots on the docs!

Yes, thanks, and you're quite welcome!


Move ChunkStreamIterator to package:async

Let's propose ChunkStreamIterator for package:async.
TODOs:

[x] Document what happens when calling read before previous call is done (pretty sure it's a StateError, let's also test this).
[ ] Consider adding an optional makeList function or listBuilder abstraction in place of the extension for ChunkedStreamIteratorByteStreamExt

Filed -> https://github.com/dart-lang/async/pull/161

You might want to also mark the package as discontinued on pub.dev if it's not supposed to be used anymore?


Typescript-Resolvers' generated code has errors if noUnusedParameters option enabled in tsconfig

Which packages are impacted by your issue?
@graphql-codegen/typescript-resolvers
Describe the bug
Are updating to the typescript-resolver v4.0.0 we're running into an issue with our typescript compilation. In our tsconfig.json settings, we enable the noUnusedParameters check, and it seems that this change introduced some generics that is causing that check to fail.
We're working around this by using the add plugin to prepend a // @ts-nocheck at the top of the file, but it'd be nice to have the files included in the checks
Your Example Website or App
https://github.com/AlexLorenzi/codegen-example
Steps to Reproduce the Bug or Issue

Checkout example project
Run yarn and yarn generate
Run yarn tsc

Expected behavior
Expect generated code to compile successfully
Screenshots or Videos
No response
Platform

OS: macOS
NodeJS: v16.20.0
graphql version: 16.6.0
@graphql-codegen/* version(s): 4.0.0

Codegen Config File
import type { CodegenConfig } from '@graphql-codegen/cli'

const config: CodegenConfig = {
    schema: './schema.graphqls',
    generates: {
        './src/graphql/schema-types.generated.ts': {
            plugins: ['typescript', 'typescript-resolvers']
        }
    }
}
export default config

Additional context
No response

Hello 👋
This is the same as https://github.com/dotansimha/graphql-code-generator/issues/9486. I've left a reply here.
Please discuss in that issue. Thanks!


Add support for getTimezoneName() and getTZ(timezoneName)

The ESPAsync_WiFiManager library had support for exposing the timezone. I tried using the same setting:
// Use false to disable NTP config. Advisable when using Cellphone, Tablet to access Config Portal.
// See Issue 23: On Android phone ConfigPortal is unresponsive (https://github.com/khoih-prog/ESP_WiFiManager/issues/23)
#define USE_ESP_WIFIMANAGER_NTP     true

to ensure the flag was set but ESPAsync_WiFiManager_Lite doesn't appear to have the required getTimezoneName and getTZ methods.
I would appreciate this new/parity feature being added or documented if there is a way to do it that I just haven't found.
Thank you!

Check the answer in The Config Portal does not automatically open after connecting to the access point #12, but this won't be added as it already created more problems even to the full-fledged ESPAsync_WiFiManager library
Regards,


Move pattern compiler to own class

By moving the pattern compiler to its own class we get a better
separation of concerns - PatternRepository is for loading patterns (and
gettting a compiled version), PatternCompiler is for compiling and can
be used with dicts from other sources than PatternRepository.

Hi, I know this is not the greatest piece of engineering work but for now it does what it is supposed to do with the logstash grok pattern files and this is mainly what I am using. I am not a huge fan of big designs but I am sure you have a good point. For now I want to keep it simple as it is. Thank you for your input. -Mark


Is cupy/internal.py redundant?

It seems that it does nothing but provides a duplicate of cupy.core.internal.prod(). Looks like we could just remove that file? I think all functions in *.pxd/*.pyx/*.pxi already use cupy.core.internal.prod(), so only the following two files need to change the import:

cupy/testing/helper.py
cupy/linalg/product.py

(based on grep --include=\*.{py,pxd,pyx,pxi} -R './' -e 'internal.prod').

Relevant: #2689.

I think it's redundant and can be removed.


Fix add-on directory link

With the new Directory, URLs changed as well

This change is

Reviewed 1 of 1 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


doc(v6e): mention initial v6e support

What does this PR do?
Since we tested optimum-tpu and TGI on v6e, we mention it.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


Fix issue causing qualified path duplication for struct completions

This pull request relates to #10889.
Change checks for a qualified path in the completion context. If one exists, the qualified path is not added. Otherwise, the qualified path is used, which could just be the struct name.
I think that this resolves the above issue, but please let me know if I have missed something.

@andrewleverette Any updates here?

Hey, @Veykril! Thanks for checking in. I haven't had a chance to revisit this recently, but I will have more available time after today. I still don't quite understand how you would like to handle this. For your first suggestion, are you saying that the qualified path completions shouldn't be shown at all? Any further guidance would be greatly appreciated.

No worries, what I meant was that the way its written now is for my written example
mod x { pub struct Bar; }

fn main() {
    let _: x::Bar = foo::$0;
}

we would get a completion for Bar, even though the path(foo::) doesn't expose Bar. So we should either not show these types of completions at all if there is a qualifier, or we should make sure that the qualifier exposes the struct in question.

@Veykril, so correct me if I'm wrong about any of this, but I've spent some time trying to see if there is a convenient way to check if a qualifier exposes a specific struct. I wasn't able to find anything thing. I think the best course of action is to revert PR #10889 so that qualifiers completions are ignored.

Ye disabling this completion when a qualifier exists seems to be the simplest approach right now.
There are definitely ways to check if the struct is exposed from the module or not but I am not quite sure how myself right now.


idea: variables like --media-gt-sm

I noticed there are no --media-lt-* or --media-gt-* variables. I think those would be useful.
F.e. instead of
.foo {
	--layout-mobile: var(--media-lte-sm) column;
	--layout-desktop: var(--media-md-lg, var(--media-xl)) row; /* not sure I did it right, but there isn't a variable that includes everything including anything gte xl, so this is complicated */
}

we could write
.foo {
	--layout-mobile: var(--media-lte-sm) column;
	--layout-desktop: var(--media-gt-sm) row;
}

We can't use --media-gte-sm because then it overlaps, whereas we want a non-overlapping distinction.
In the first example, I don't think var(--media-md-lg, var(--media-xl)) row even works, because then the final result is always initial, right? So with the lack of the -gt- and -lt- variables, a casual CSS user might not know exactly how to achieve that.

Hey! Thank you for checking this out @trusktr !
I didn't include --media-gt-sm (or similar) because it would be the same as --media-gte-md.
So this:
.foo {
  --layout-mobile: var(--media-lte-sm) column;
  --layout-desktop: var(--media-md-lg, var(--media-xl)) row;
  /* not sure I did it right, but there isn't a variable that includes everything including anything gte xl, so this is complicated */
}

becomes this:
.foo {
  --layout-mobile: var(--media-lte-sm) column;
  --layout-desktop: var(--media-gte-md) row; /* includes everything that's not small or extra small (no max limit) */
}

Does that help? I'm open to suggestions for what the docs should say around those too!

Oh riiight. That makes sense; I totally overlooked it. Wdyt if we were to have gt-sm as alias of gte-md, etc? (Like in languages where we can choose between > or >=).

You can include this CSS on your site:
html {
  --media-gt-sm: var(--media-gte-md);
}

and it will be available as an alias everywhere!
Though note that the "--media-" prefix is meant to be a namespace for the library (like "--aug-" in augmented-ui or "--bs-" in the newest bootstrap) so you'll have to be aware if updates come that you might be stepping on toes then.
That said, I do not intend to add aliases since it will bulk up the code and they're not necessary so creating them yourself is likely a safe thing in this case!
Make sense? Anything else I can help with? :)


Android Nougat Crash

android.os.FileUriExposedException:
file:///storage/emulated/0/update-2017-01-09.apk exposed beyond app through Intent.getData()

In Android > 7 you should use a FileProvider after the download is completed to run the installer.

Hi, fixed crash
compile 'com.github.atzcx:AppVerUpdater:1.0.1'

👍 Thanks


Pod loopback connection via service does not work for certain application in eBPF mode

I’m trying eBPF mode on AWS EKS. In this mode i experience weird networking issue:
.NET 5 application can not connect to itself (from that pod) via service IP (172.20.x.x), but can connect via pod IP (192.168.x.x). What adds to confusion is that i can connect that way with utils like curl, nc or telnet from that pod, also application can connect to other services IPs, also that issue does not occur in non eBPF mode.
Expected Behavior
Connection shouldn't timeout while connecting application running on the same pod via service IP.
Current Behavior
Getting connection timeout while connecting application running on the same pod via service IP.
Possible Solution
On Calico slack was suggested that issue is with connect time load balancer.
"Sounds like the connect time load balancer is not firing for the .NET application.  It must use some unusual pattern of socket operations to set up its socket.  We rely on the connect time load balancer for loop back to the same pod to work."
Steps to Reproduce (for bugs)

Run .NET 5 application listening on HTTP in Alpine Linux pod/deployment.
primary-proxy-api-6df5f77599-97mz8                                1/1     Running     0          45h   <IP_ADDRESS>    ip-10-31-82-143.ec2.internal

Create ClusterIP service for that deployment
primary-proxy-api                                    ClusterIP   <IP_ADDRESS>            80/TCP     45h

Use standard HttpClient class (https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient?view=net-5.0)

Try to GET it's own service local URL (http://primary-proxy-api or it's address http://<IP_ADDRESS> )

Also i’ve been able to reproduce the same behavior with nmap: it works fine with Connect method (-sT), but times out with all other methods (like -sS) which use raw sockets.
Your Environment

Calico version was running on 3.16.x, now running on 3.20.2
AWS EKS 1.18
Container OS: Alpine Linux 3.11.6
Node OS: Ubuntu 20.04
.NET 5 SDK 5.0.300

Based on the discussion here it is likely a bypass of the connect time load balancer without a proper turn around of the packets back. Pod usually reject packets with their own source IP unless accept_local is set. However, that would not be enough as the NATing is done outside and of the pod and response packets would not hit it.


How to change the color of the hamburger?

is there any option to change the color of the hamburger from black to white?

https://github.com/jfoenixadmin/JFoenix/blob/master/demo/src/main/resources/css/jfoenix-components.css#L12-L17

Yes, there is.
.jfx-hamburger StackPane {   -fx-background-color: white; }

I want to change the color of the three bars, not the background. sorry if this was not clear.

But that's how you can change these bars.

Example:

Code:
.jfx-hamburger {
	-fx-background-color: lightgrey;
}

.jfx-hamburger StackPane {
	-fx-background-color: green;
}

@skmedix Sorry, I just can't read, you are totally right.

Any way to do it from Gluon SceneBuilder?


Quick reference to C++ standard library headers

Include a document containing declarations of  various C++ standard library headers.

Ask Aman Gupta, CSE 2nd year to help you with this.

Add the complexities to the wiki page. Don't add .rst files.

How do I do that? Help please.


ci: merge ci job added for automatically close PR where database and …

This PR is made for add new CI Job (merge) to automatically close PR where database and artwork changes there.
Condition

Database changes:

If there is only one file changed and of it is database.json then PR will auto-merge.

Artwork changes:

If there are two file changed one is artwork.json and image file for the artwork changes. then PR will auto-merge.

The merge job is dependence on web and worker job. Once both job gets success then only this job will work. Also it will merge only on pull_request event.

Wwe've just now released an update that no longer uses database.json: https://deno.land/posts/registry2. As for the artwork, I think this complexity is too much for what it achieves. Thanks for the patch, but closing without merge.


Outdated bindings to Google ML Kit Vision Text Regognition api

Because we’re using ML Kit for Firebase (https://firebase.google.com/docs/ml-kit) for on-device text recognition and this is an old version, we need to migrate to the actual version of ML Kit (https://developers.google.com/ml-kit/vision/text-recognition ).
As Dutch government, we develop our apps using Xamarin and we need to migrate as well our Xamarin.iOS as our Xamarin.Android implementation.
For Xamarin.iOS we’re using nuget package Xamarin.Firebase.iOS.MLKit.Vision version 0.21.0 from Microsoft while for Xamarin.Android we’re using nuget package Xamarin.GooglePlayServices.Vision version 120.1.3, also from Microsoft. These packages contain C# bindings to ML Kit for Firebase.
Surprisingly there seems to be no Xamarin nuget packages available for the current GoogleMLKit/TextRecognition (https://developers.google.com/ml-kit/vision/text-recognition). Neither for Xamarin.iOS nor for Xamarin.Android.
We did try to make bindings ourselves. While we did succeed in making and invoking these bindings, text is never recognized. In the console output the MLKit framework did write the following messages:

[lvl=3] +[MLKITx_CCTClearcutUploader crashIfNecessary] Multiple instances of CCTClearcutUploader were instantiated. Multiple uploaders function correctly but have an adverse affect on battery performance due to lock contention.
Failed to locate required resources. Please verify the resource bundle is imported.
[lvl=3] -[MLKITx_GIPPseudonymousIDStore initializeStorage] Shared App Groups unavailable

We ask you to make nuget packages available for the current versions of Google MLKit, specifically for cocoapod GoogleMLKit/TextRecognition and maven repository com.google.android.gms:play-services-mlkit-text-recognition.
Related issue: https://github.com/xamarin/GooglePlayServicesComponents/issues/420

@SotoiGhost you've helped me a year a go with bindings for iOS. I heard the Components team was dissolved. Could you please help us by either making new Google ML Kit Vision TextRecognition (no Firebase) api's available or support us in making our own bindings work?
As you can read in the issue text, we successfully generated bindings. With our bindings we can invoke the MLKTextRecognizers ProcessImage and ResultsInImage methods. That the framework is successfully invoked is confirmed by the fact that the MLKTextRecognitionCallback of the ProcessImage method is called, but text is never recognized while the error object is null and an instance of the MLKText object is returned. We've tried all orientation flags. In the application console there are three messages (mentioned in the initial issue text above).
Could you or an experienced colleague of yours help us please? Thank you very much in advance!
Here some details for your information:

I made a podfile (see under) because sharpie pod init 'GoogleMLKit/TextRecognition' resulted in a pod file using pod 'GoogleMLKit'
I used pod update instead of sharpie because sharpie has no option to use the existing podfile
after installing cocoapods I needed to call pod repo update to be able to successfully call the pod update command
Before calling sharpie pod bind I had to unselect Mac for each project target (General tab -> deployment info) in the XCode Pods project (./Pods/Pods.xcodeproj)
In my Xamarin Bindings library I only included MLKitTextRecognition_ApiDefinitions.cs and MLKitVision_ApiDefinitions.cs and I added a native reference to all the framework files (from the ./Bindings folder).
In my iOS project I had to set the linker behavior to don't link

Podfile
platform   :ios, '14.3'
--
install! 'cocoapods',   :integrate_targets => false
target   'ObjectiveSharpieIntegration' do
use_frameworks!

pod   'GoogleMLKit/TextRecognition'
end

@mattleibow could you please help me with this issue? It's enough for me when I have local working bindings (only text recognition), while it would be very nice when the bindings would be globally available as a nuget package.

Here a solved issue i found with the same error, maybe this helps solving the cause?
https://github.com/xamarin/GoogleApisForiOSComponents/issues/382

@mavispuford yes, my bindings did work but without succesfull text recognition (the ocr result callback function was called, so the interaction was succesfull). However, reproducing the steps now results in a xamarin iOS project with linker errors.

@mavispuford Thank you very much! I'll try it as soon as possible. I'll let you know

@mavispuford
I think you did use the MLKitCommon, MLKitTextRecognition and MLKitVision frameworks straight from a pod update resulting in the contents of the Dependency/Pods directory?
For the Dependency/PodBuilder/Prebuilt contents I tried to use PodBuilder like you did. I did make a XCode iOS app project and workspace only because the PodBuilder requires them. Copied my podfile into the project directory. I was able to run pod_builder init. But pod_builder build_all did fail. Can you tell me how you did that?
Thanks for your help!

@mavispuford
Yes, it's working! Thanks you very much!
I have one question about your latest solution: How did you prevent the Firebase.Core nuget package from being stripped because it's not explicitly referenced from code?
I did so by including a static class with a private static Action reference = Firebase.Core.App.Configure; but maybe you did use a more elegant way?

@deelw That's great!  I'm glad to hear it.
For Android, we have an r8.cfg to prevent linking with entries like this:
-keep class com.google.firebase.** { *; }
-keep class androidx.camera.core.** { *; }
-keep class com.google.mlkit.vision.** { *; }

As for iOS, I don't think I did anything special to prevent it from being linked out.  We were actually already using Firebase.Core in our app, since we use Firebase for push notifications and analytics.  Since you're not using it anywhere, you may have to add a Linker.xml entry or just keep that reference around.

Thanks for the info!

One question: How you defined in MLKitVision_ApiDefinitions.cs the GMLImage_MLKitCompatible Extension/Category, that it extends an Interface?
At the Moment, i create Bindings for the new MLKitBarcodeScanning funktionality. For the MLKitBarcodeScanning.framwork, I successfuly created Bindings. But I stuck At this Point in MLKitVision.
P. S.: Thanks @deelw and @mavispuford for your discussion, it helped me a lot.

@albertruff for MLKitTextRecognition 1.2.0 it works great, but version 1.3.0 I did also not succeed in making working bindings because of the new GMLImage_MLKitCompatible. I tried several ways including modifying the generated bindings. Maybe @mavispuford has a solution?
I did take a look at the release notes of MLKit and Google is working on a new version thats in beta MLKitTextRecognition (2) 1.4.0-beta1
So, at this moment you could stay at 1.2.0 or try the beta.

For the MLKitBarcodeScanning, the 1.4.0 is not in beta, it is the relase version and i use them.
For the GMLImage_MLKitCompatible-Problem, I found a working solution but it's not ideal:

In the MLKitVision ApiDefinition.cs I commented out the interface MLKitCompatible
Then I build the MLKitVision Project to creat the dll
After that, I created, for the MLImage, the ApiDefinition.cs and a Binding-Project
In the MLImage-Binding-Project, I referenced to the MLKitVision.dll
After that it was possible to implement the IMLKCompatibleImage on the GMLImage
It is the same functionality, that was created in MLKitVision with the MLKitCompatible. The problem is, that in Obj-C it is possible to create an extension for a class to say that this class implements an interface. In C#, I dont found such a possibility.

@albertruff
In C# you can you only have extensions for methods. Another way you could possibly achieve your goal is when you define a class as partial then you can 'extend' that class with an interface definition.

@albertruff
In C# you can only have extensions for methods. Another way to achieve your goal is to define a class as partial, then you can 'extend' that class with an interface definition by defining a partial class with the same name in the same namespace that extends the interface.

I'm a bit late to this party (or early depending on how you look at it 😉), but do I understand correctly from the the second comment by @deelw that this repository is essentially no longer maintained?

@ElteHupkes thats right. There are some people maintaining the Android part, but at the iOS side there is no maintenance. Th team was dissolved because everybody had to work on Maui.

@deelw Well, that's... annoying. A notice on the front page of the repo would've been nice. Preaching to the choir of course, I'm grateful someone knew and shared it here, thanks.
I must say I've avoided the rabbit hole of creating bindings for iOS so far, but if I get to it this time (and succeed) I might turn it into a NuGet package.

Is anybody able to share the bindings they have. Trying to generate them myself, but it seems to be a bigger nightmare than initially thought.
Doesn't help that the sharpie pod command doesn't work anymore, which makes half of the documentation useless...

Hi all,
I've create updated bindings for the following SDKs, at the time of posting this includes,

Text Recognition v2
Face Detection
Barcode Scanning
Image Labeling
Object Detection & Tracking
Digital Ink Recognition

MLKit Vision Bindings
MLKit Vision Sample
I'll probably merge these into branch for #501.
@deelw Could you please reopen this issue? Thanks!
Also tagging #431, as it's a related issue.

@dmariogatto, thanks for this!!
I initially had some issues building the --targets=externals, because Firebase.CloudFirestore had some issues with generating the SSL package bindings in one of its deeper dependencies. As I don't really need those, I commented them out in the cake files and I could then without issues generate the nuget packages.
However, when using them, I can reference all the methods from my project, but when running it on a simulator I keep getting the following error:
Could not create an native instance of the type 'MLKit.TextRecognition.LatinTextRecognizerOptions': the native class hasn't been loaded. It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false
After some extra digging and comparing with your samples application (which does work), I think the issue lays around the xamarin.build.download integrations in the target files. I think it should download these files, but I have the impression it just ignores them which then leads to the error that the native libraries aren't there.
Do you have any idea why these could be ignored when calling it from within a NuGet package? I tried loosening up the conditions on the <ItemGroup Condition="('$(OutputType)'!='Library' OR '$(IsAppExtension)'=='True')"> that surrounds the <XamarinBuildDownload Include="$(_GoogleAppMeasurementItemsFolder)"> tag as I thought it had something to do with my project type, but that didn't seem to work either.

@BjornVanslembrouck
I haven't had a build error for the SSL package, was it XCode? I assume it was BoringSSL-GRPC?
The missing native class definitely sounds like the targets file isn't running. A trick to see if the target is actually executing is to add a Message element inside the Target (example), it'll display in the build output. I'd double check your iOS project imports and whether your walking up the correct number of directories.

@dmariogatto, that is what confused me quite a bit TBH. I always assumed that when a .target file lives inside the build folder inside the NuGet package, it gets added to the project automatically.
Read a bit more about it and it indeed seems that that is what it should do. There are however some articles mentioning that you need to add the targets and props files specifically to the nuspec, which isn't the case at the moment.
Not sure if adding it to the nuspec file is for the old config file approach or for the packageReference as well.
I added the following lines to my .csproj and it now seems to work as expected:
	<Import Project="$(NuGetPackageRoot)Xamarin.Firebase.iOS.Core/8.8.0/buildTransitive/Xamarin.Firebase.iOS.Core.targets" /> 	<Import Project="$(NuGetPackageRoot)Xamarin.MLKit.iOS.Core/4.0.0/buildTransitive/Xamarin.MLKit.iOS.Core.targets" /> 	<Import Project="$(NuGetPackageRoot)xamarin.mlkit.ios.textrecognition/1.0.0/buildTransitive/Xamarin.MLKit.iOS.TextRecognition.targets" /> 	<Import Project="$(NuGetPackageRoot)Xamarin.MLKit.iOS.TextRecognition.Latin/1.4.0/buildTransitive/Xamarin.MLKit.iOS.TextRecognitionLatin.targets" /> 	<Import Project="$(NuGetPackageRoot)Xamarin.MLKit.iOS.VisionKit/3.0.0/buildTransitive/Xamarin.MLKit.iOS.VisionKit.targets" />
Thanks for the help!!

@dmariogatto for iOS we did switch to Apple Vision for OCR. Would you still want me to reopen this issue?

@deelw Thanks for following up. I wouldn't worry about reopening the issue.

@dmariogatto I would not reopen this issues unless you request me to. And you did so Nov 21th 2021 by tagging me "@deelw Could you please reopen this issue? Thanks!"
Do you still want me to reopen this issue?

@deelw Apologies, I forgot about my previous request. Leave it closed for the moment, it's up to the project maintainers if they want it reopened.


dropdowns render off the screen

When you have a button with a drop down the dropdown renders out of the screen like this:
http://cloud.phil-taylor.com/1j2D1x1n1h2L2n0X2d42
However in the top menu bar these will render on screen as per:
http://cloud.phil-taylor.com/2d3o3d3C0T2d2h0B0a0B

by "out of the screen" I mean, which is not clear from the screenshot, that the dropdown goes out edge of the browser viewport

Example, jsFiddle: http://jsfiddle.net/prazgod/auUEL/

With 2.0.2, you'll be able to make the dropdown go to the right with an additional CSS class. In another release, I'll ask @fat if we can hook up automatic detection and application of this.


Expose more Utility Functions from MediaTransformer

MediaTransformer does a really nice job of being very simple to use when you're first getting started.
Once you want advanced functionality however, you are faced with creating your own MediaTarget, MediaFormat, TrackTransforms etc.
There's a lot of nice logic in LiTr that has been written to do exactly that, but a lot of it is private, even if it doesn't have any side effects. When building my own more custom transformer, I found myself copying logic from MediaTransformer (createTargetMediaFormat, isAudioIncompatible, ...) constantly.
I think there is a big opportunity to make LiTr more approachable by exposing more of the Utility that is hidden away inside. Dealing with MediaFormats is both a daunting task for beginners, but also very essential in a lot of cases, so I assume a lot of users would benefit from improving the usability in that regard :)
A first step would be opening up some of the functions that are already there, but on top of that, more utility functions could still be written

This is an excellent suggestion! I have been thinking about writing some helper methods for MediaFormat creation - things like typical resolutions/aspect ratios, etc. But I didn't think about exposing some internal util methods. Any specific functionality you would want to see exposed?


NTR: positive regulation of imaginal disc-derived wing size

Could I request:
'positive regulation of imaginal disc-derived wing size'
as a child of: GO:0044719 regulation of imaginal disc-derived wing size
The negative regulation term already exists.
Ref: PIMD:23485686
GOC:ha

Hi @hattrill
Since the neg reg term had a definition slightly different than the standard def, but that made more sense for a term specifically talking about size:

Any process that reduces the size of an imaginal disc-derived wing.

I made a parallel def for the pos reg term, just changing the word 'reduces' to 'increases', but let me know if you feel any modifications to these defs need to be made.
I also added the equivalency axiom to the neg reg term to reflect the pre-existing equivalency axiom of the plain regulation term.
-Karen

That sounds all good! Thanks, Karen!


[tool_crash] StateError: Bad state: No element

Command
flutter --no-color run --machine --track-widget-creation --device-id=emulator-5554 --start-paused --flavor=dev --flavor=dev --dart-define=flutter.inspector.structuredErrors=true lib\main_dev.dart

Steps to Reproduce

...
...
...

Logs
StateError: Bad state: No element
#0      ListMixin.firstWhere (dart:collection/list.dart:167:5)
#1      DartDevelopmentService.startDartDevelopmentService (package:flutter_tools/src/base/dds.dart:63:32)
<asynchronous suspension>
#2      FlutterDevice.connect.<anonymous closure> (package:flutter_tools/src/resident_runner.dart:249:11)
<asynchronous suspension>

[✓] Flutter (Channel dev, 1.26.0-1.0.pre, on Microsoft Windows [Version 10.0.19042.685], locale en-US)
    • Flutter version 1.26.0-1.0.pre at C:\flutter
    • Framework revision 63062a6443 (5 weeks ago), 2020-12-13 23:19:13 +0800
    • Engine revision 4797b06652
    • Dart version 2.12.0 (build 2.12.0-141.0.dev)

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Claudiu\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[✓] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] IntelliJ IDEA Community Edition (version 2020.2)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.1.2
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.52.1)
    • VS Code at C:\Users\Claudiu\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (2 available)
    • SM A520F (mobile)           • 5210935c46b2c34b • android-arm64 • Android 8.0.0 (API 26)
    • sdk gphone x86 arm (mobile) • emulator-5554    • android-x86   • Android 11 (API 30) (emulator)

! Doctor found issues in 1 category.

Flutter Application Metadata
Type: app
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: beta
Creation framework version: 198df796aa80073ef22bdf249e614e2ff33c6895
Plugins
advance_pdf_viewer-1.2.1+2
cloud_firestore-0.14.4
cloud_firestore_web-0.2.1+2
device_info-1.0.0
downloads_path_provider-0.1.0
file_picker-2.1.4
firebase_auth-0.18.4+1
firebase_auth_web-0.3.2+3
firebase_core-0.5.3
firebase_core_web-0.2.1+1
firebase_storage-5.2.0
firebase_storage_web-0.1.1+1
flutter_plugin_android_lifecycle-1.0.11
image_picker-0.6.7+17
native_pdf_renderer-2.4.0
path_provider-1.6.24
path_provider_linux-0.0.1+2
path_provider_macos-0.0.4+6
path_provider_windows-0.0.4+3
permission_handler-5.0.1+1
printing-3.7.2
shared_preferences-0.5.12+4
shared_preferences_linux-0.0.2+4
shared_preferences_macos-0.0.1+11
shared_preferences_web-0.1.2+7
shared_preferences_windows-0.0.1+3
sqflite-1.3.2+1

Closing this as duplicate of https://github.com/flutter/flutter/issues/72385. Please follow up on that issue.
Thank you

Closing this as duplicate of https://github.com/flutter/flutter/issues/72385. Please follow up on that issue.
Thank you


Remove  DataTable V2  code after 0.8.0 release

As discussed in https://github.com/apache/incubator-pinot/pull/6710#issuecomment-810385539, We will stop supporting DataTable V2 after 0.8.0 is released.
Create this issue to track TODOs after 0.8.0 release:

remove all DataTable V2 related code.
change the getMetadata() API return a Map<MetadataKey, String> instead of Map<String, String>

is this ticket closed?
I recently discovered some performance benefit if we can remove V2 support

reduce float size from 8bytes to 4bytes
move bytes type to variable byte buffer instead of converting to hex string and using String type (dictionary map) to store data
some other issues with BYTES_ARRAY and OBJECT type.

Please let me know if you would like to extend this issue, alternatively, I can also create a new issue.


cpu does not support invariant TSC

Hello , I use Microsoft surface

I follow your script "docker run bosagora/agora --testnet"
but I got error is  "cpu does not support invariant TSC"
please see below image

Should be fixed the next release

Can you test with https://github.com/bosagora/agora/releases/tag/v0.35.2 ?
You can do so by doing docker pull bosagora/agora.

It should be working now after v0.35.2
#3072


Issue58

Display post location in subtitle

reduced whitespace between labels and values on ResultPage by using table

a proposal for the fix of issue #58
On Desktop:

On Mobile:

I would recommed to align the headers on the top.

It becomes clearer where the individual sections begin.

I would recommed to align the headers on the top.

It becomes clearer where the individual sections begin.

This is a good idea!


Add SpaceTime to diffusers

Nice work!  Can you add this work to the huggingface's diffusers?

Hi howardgriffin,
Thank you for your interests to our work! Yes, we do plan to add it to huggingface's diffusers for easier usage. Since our current codebase (i.e. base code for stable diffusion) is from CompVis Github (https://github.com/CompVis/stable-diffusion) instead of huggingface diffusers, this might take some time to implement. We will update in README and this thread after we

Hi howardgriffin,
Thank you for your interests to our work! Yes, we do plan to add it to huggingface's diffusers for easier usage. Since our current codebase (i.e. base code for stable diffusion) is from CompVis Github (https://github.com/CompVis/stable-diffusion) instead of huggingface diffusers, this might take some time to implement. We will update in readme and this thread after we release it. Thank you!


Add Maven support to build executable jar

Add functionality to generate executable jar of RoboSim app.
Specify main class in POM file.

@Honey-Haidi Generated jar should contains all dependencies.

done in https://github.com/faisal-hameed/robosim/pull/14


demoniac role

Closing this pr since it looks like you deleted your branch and recreated it, losing your changes. Please create another PR


/usr/spark-1.6.2 belongs to... nobody

When those Containers (gettyimages/spark:1.6.2-hadoop-2.6) are used (as a Slave) on a Apcera Platform, the following exceptions are raised:
[system-error] Process 'app' failed with status "exited(1)"
[stderr] 16/08/31 20:35:20 ERROR worker.Worker: Failed to create work directory /usr/spark-1.6.2/work

Indeed, the owner of spark-1.6.2 is... nobody:
root@ip-169-254-0-25:/# cd usr
root@ip-169-254-0-25:/usr# ls
bin  games  hadoop-2.6.3  include  java  jdk1.8.0_92  lib  local  sbin  share  spark-1.6.2  src
root@ip-169-254-0-25:/usr# ls -al
total 52
drwxr-xr-x 23 root   root    4096 Aug 26 23:31 .
drwxr-xr-x 41 root   root    4096 Aug 26 23:25 ..
drwxr-xr-x  2 root   root    4096 Aug 26 22:27 bin
drwxr-xr-x  2 root   root    4096 Aug 26 22:27 games
drwxr-xr-x  9  10021   10021 4096 Aug 26 22:27 hadoop-2.6.3
drwxr-xr-x  2 root   root    4096 Aug 26 22:27 include
lrwxrwxrwx  1 root   root      16 Aug 26 22:27 java -> /usr/jdk1.8.0_92
drwxr-xr-x  7 uucp       143 4096 Aug 26 22:28 jdk1.8.0_92
drwxr-xr-x 29 root   root    4096 Aug 26 23:18 lib
drwxrwsr-x 13 root   staff   4096 Aug 26 22:27 local
drwxr-xr-x  2 root   root    4096 Aug 26 22:27 sbin
drwxr-xr-x 62 root   root    4096 Aug 26 22:27 share
drwxr-xr-x 12 nobody nogroup 4096 Aug 26 22:28 spark-1.6.2
drwxr-xr-x  2 root   root    4096 Aug 26 22:28 src

Looks like Docker is natively able to get around that ownership, but not some other platforms... Therefore a chown would be useful.
Alternative (?): create in advance the /usr/spark-1.6.2/work/ directory under the root ownership.

FYI, the (temporary) logimethods/docker-spark-gettyimages Docker Image does solve that issue:
FROM gettyimages/spark:1.6.2-hadoop-2.6
RUN chown root ${SPARK_HOME}

Thanks for reporting this. I agree it's an issue.
I'm unsure how to repro exactly. bin/spark-shell --conf spark.local.dir=/usr/spark-1.6.2/work does the right thing and creates the directory.

I'm pretty sure you cannot reproduce this using the "official" Docker platform.
It only occurs when that image is run by Apcera (which has a stronger security policy)...
For me, Docker should not also allow the manipulation of the /usr/spark-1.6.2/work/ directory, but that's another story.

Try pulling the new build of the 1.6.2-hadoop-2.6 image. Please let me know how it goes on Apcera.

Looks like this new build solved this issue!
Thank you very much.

Btw, I'm using your docker-spark images on the docker-nats-connector-spark project.

Awesome! Thanks for sharing. The Gatling pipeline idea is very cool.

I've also updated 2.0.0-hadoop-2.7 and latest.


Successfully Updated alternative

Description
enter here if you have any details
Program Name -
Issue No.- #41

Type issue number after hash(#)

Checklist(self check)

[x] Yes, this task assigned to me.
[x] My code follows the style guidelines(Clean Code) of this project
[x] I have performed a self-review of my own code
[ ] My Filename is in camelCase format
[x] I have added Problem statement, Problem link in file.

Please Take Care Of Naming conventions for this Repo. we are using camelcase here.
Rename your file to phoneLetterCombinationAlternative.cpp

ok i will do it sorry for that

Done !!!

[ ]  - Task Complete
Issue no. - #41


split TemplateRendererInterface in multiple interfaces

Following the Interface Segregation Principle I would like to propose to split the TemplateRendererInterface in three smaller interfaces
interface RendererInterface
{
    public function render($name, $params);
}

interface PathConfigurableRendererInterface
{
    public function addPath($path, $namespace);
    public function getPaths();
}

interface DefaultParameterRendererInterface
{
    public function addDefaultParam($templateName, $param, $value);
}

Then we could redefine TemplateRendererInterface as
interface TemplateRendererInterface extends RendererInterface, PathConfigurableRendererInterface, DefaultParameterRendererInterface

Often, when TemplateRendererInterface is required as a dependency, only the render method is actually used. With this proposal, we could use and type hint only on RendererInterface.
This could turn out useful if we want to implement a renderer which does not have the need to be configured with a set of paths to work properly

Often, when TemplateRendererInterface is required as a dependency, only the render method is actually used. With this proposal, we could use and type hint only on RendererInterface.

What do you mean by often. In my code I load most of the templates from disk, so I need to add their location. I guess if you have templates stored in a database you could talk about often. You would need to load the template and pass it as a string to the renderer.

This could turn out useful if we want to implement a renderer which does not have the need to be configured with a set of paths to work properly

I think you can already use it without setting paths? I didn't try it yet though.

In my code I load most of the templates from disk, so I need to add their location. I guess if you have templates stored in a database you could talk about often. You would need to load the template and pass it as a string to the renderer.

I call Pareto here: seen this only once in my ZF projects, and it got phased out immediately as a build-time step/cache.

I think you can already use it without setting paths? I didn't try it yet though.

__construct is fine to pass in paths, and that's not interfaced, nor should be.

@xtreamwayz the point is was trying to make is not where you store your templates. My point is if a single interface should have all the responsibilities of being able to render a template, to manage the paths and to set default values.
Consider a more or less standard Action like the following:
class MyAction extends MiddlewareInterface
{
    /**
     * @var TemplateRendererInterface
     */
    private $renderer;

    public function __construct(TemplateRendererInterface $renderer)
    {
        $this->renderer = $renderer;
    }

    public function process(Request $request, Delegate $delegate)
    {
        return new HtmlResponse($this->renderer->render('templateName'));
    }
}

Only the render method is used and I doubt someone is going to use addPath or getPaths here. Therefore it seems more correct to me to type hint the renderer on an interface that has only the render method.
As @Ocramius said, that renderer could have been configured with arguments received in its contructor, or in some other way. Still, this detail should not emerge in the MyAction class

This repository has been closed and moved to mezzio/mezzio-template; a new issue has been opened at https://github.com/mezzio/mezzio-template/issues/1.


Desktop About Page - Change Information Collection Statement to Popup/Modal

Activated on click (similar to a terms and conditions modal)
┆Issue is synchronized with this Trello card by Unito

Did a little something, hope that helps


Better GCP Credentials Auth

This PR improves a GCP auth function to also check the GOOGLE_APPLICATION_CREDENTIALS environment variable for credentials.

Improves: #243

@yorinasub17 no and as part of #243 I was going to go and document it much further

as part of #243 I was going to go and document it much further

Got it makes sense! Feel free to merge!


Using custom audio input other than default microphone.

Hey there!
I've been struggling for an afternoon to allow the user to select the audio input to use with AudioConfig (https://docs.microsoft.com/en-us/javascript/api/microsoft-cognitiveservices-speech-sdk/audioconfig?view=azure-node-latest), but I just can't figure it out. I read through the sdk code as well as the docs to track down an idea of what's expected/how to do it (I assume AudioConfig.fromStreamInput is the right way), but to no avail.
I tried using the getUserMedia web api to obtain a stream (which is of a specific audio input), and then passing that stream to AudioConfig.fromStreamInput, but that didn't work.
I also tried using createMediaStreamSource (of the Web Audio API)  to convert the stream from getUserMedia to a MediaStreamSourceNode, but that didn't work either.
How do I get a stream from another source in the format "AudioInputStream" like the documentation requests? Or, am I going about this completely wrong?
Thanks!

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: a765d478-6ca6-7555-dfc8-260e7adf7523
Version Independent ID: 211f0cc9-2958-98fe-17f2-cecdf5f57f40
Content: Quickstart: Recognize speech in JavaScript in a browser using the Cognitive Services Speech SDK - Microsoft Cognitive Services
Content Source: articles/cognitive-services/Speech-Service/quickstart-js-browser.md
Service: cognitive-services
GitHub Login: @fmegen
Microsoft Alias: fmegen

Thanks for the feedback! We are currently investigating and will update you shortly.

Hi @jpetitte,
please use
  static function fromDefaultMicrophoneInput()

to create an audio configuration that uses the default microphone of the users browser.
This requires the user to approve use of the microphone the first time this function is called (in case you serve this over https) or each time the function is called (in case you server over http or from a local file).
If the user declines to accept, an error should be raised so your code can handle the decline or the audio permission.
The other two functions are useful in scenarios where the user wants to upload an existing audio file. In this case, the file must be recorded in 16000 samples/sec, 16 bits/sample, 1channel (mono). Any other format will currently raise an error.
hope that helps.
kind regards,
friedel

Thanks for the reply @fmegen!
Just to clarify to make sure I understand correctly: there is no way to select the audio input source? It will always have to be the default microphone?

Hi @jpetitte,
To be clear, there are TWO ways to specify the audio source.

Use AudioConfig.fromDefaultMicrophoneInput() This will access your microphone.

Use AudioConfig.fromWavFileInput() This will use the File() you opened (in a browser, this is usually some upload)

a third option is AudioConfig.fromStreamInput(), for custom streams.
In any case, the only supported configuration is 16000Samples/sec, 16bits/sample, 1channel (mono)

@fmegen,
I see. That's what I was afraid of. Is there a github repo for this SDK (I found one for the old SDK)?
After reading through the webpack bundle for a few hours, I think I could make a method that allows the user to select the audio input source and process it to the expected format. I think I can do this just by copying the fromDefaultMicrophoneInput method (rename it to a new method), adding an option to input the ID of the audiosource (as defined by enumerateDevices), then using that selection when calling get userMedia, such as line 3642 in the bundle.
I could do this with the webpack bundle, but after something has been webpacked, it's much tougher.
This is functionality that I will need (I have no choice unfortunately), so I'll have to build something one way or another. It would be cool if I can add it so everyone can use it.

Hi @jpetitte,
thanks a lot for your offer.
(@wolfma61) there are plans to opensource the library but currently there is date decided on when.

@jpetitte Thanks a lot for your input. We will now proceed to close this thread. If there are further questions regarding this matter, please respond here and @YutongTie-MSFT and we will gladly continue the discussion.
@jpetitte Thanks for your response.

@YutongTie-MSFT
I went ahead and modified the current browser sdk webpack bundle to use a custom input. I'm sure you guys already know how to do it, but if you're interested in seeing the changes I made, let me know. I don't mind having a hack to make things work for us for now, but having something officially supported will be good long term.

@jpetitte I know its late. But I am trying to do the same thing for 2 days. I have tried searching for the solution and I am lost. Can you please help me out?

@mitanshu001 no worries. I should be able to get to this tomorrow.

@mitanshu001 It looks like custom mic input is now a native part of the SDK: https://docs.microsoft.com/en-us/javascript/api/microsoft-cognitiveservices-speech-sdk/audioconfig?view=azure-node-latest#frommicrophoneinput-string-


Improve checking of in operator combined with noUncheckedIndexedAccess

follow up to https://github.com/microsoft/TypeScript/pull/50666 , mostly piggy-backing on the logic introduced there
fixes https://github.com/microsoft/TypeScript/issues/43614
cc @ahejlsberg @andreialecu

Thanks! This is exactly what's preventing us from using noUncheckedIndexedAccess, so I'm looking forward to seeing this merged

@ahejlsberg could you confirm we're ok with the solution proposed here of adding extra intersections with Record<propName, propType> during narrowing when noUncheckedIndexedAccess is true?

First, I very much like the idea of narrowing indexed accesses guarded by in checks since we already do that for optional properties in --exactOptionalPropertyTypes mode. But, by that same reasoning, I think it should be done through the same mechanism as --exactOptionalPropertyTypes, i.e. use of the special missingType that indicates an undefined originating in a missing property. Specifically, we should use missingType as the undefined that is added when reading from an index signature and then rely on our existing CFA infrastructure to remove that missingType in code guarded by an in check. This would also get us support for narrowing through obj.hasOwnProperty("foo") checks, which is already in place for optional properties.
I realize that it is possible to get a similar effect using intersections, but it leads to more complex types and is oddly inconsistent with what we do for optional properties. And, really, index signatures are just another form of optional properties.
I will put up a PR in the next day or two to show what I mean. We may need to do a bit of optimizing of the logic that detects multiple kinds of undefined in unions and intersections, but we'll see what the performance suites reveal.

Closing as superseded by https://github.com/microsoft/TypeScript/pull/51653


Create UAT and testing with docker

@nixel2007
may be we need an CI-CD for this plugin ? with auto checks and auto run.

@allustin CI at least :) we can use scheme from vsc-language-1c-bsl plugin - mocha tests + travis ci (appveyor can be added also).
Need to write some integration tests for connected mode.


Update qemu to v5.2.0

https://wiki.qemu.org/ChangeLog/5.2

Seems riscv has issue with new build logic. Make a separate commit to remove that if needed and point to old image if anyone needs riscv variant.

Was an issue with Debian dist servers actually. Looks good now.


Doesn't work well with quasi-quanitipisiridididi (dunno how it's called)

This time I am a bit lazy to provide full good bug report, but briefly the problem is the following. We have such definition:
helpMsg :: Text
helpMsg = [text|
Avaliable commands:
   balance <address>              -- check balance on given address (may be any address)
   send <N> [<address> <coins>]+  -- create and send transaction with given outputs
                                     from own address #N
|]

It does some magic, I have no idea what it means. The problem is that there was such import and it was removed by importify:

import           NeatInterpolation                (text)

This is known issue. And this is not a bug of importify. This is because of bugs in haskell-names library: https://github.com/haskell-suite/haskell-names/issues/96
I don't think this can be fixed w/o dirty hacks and I don't actually want to do such hacks..


Special font-size for quick fix widget?

Why do we use a special font size for quick fix widget, imho it should be the same font size as the editor so it reads nicer. The current way it feels a bit alien to me

My proposal:

Font is defined here: https://github.com/Microsoft/vscode/blob/master/src/vs/editor/contrib/quickFix/browser/quickFix.css#L40

Good find, I wasn't aware that we use a special font, probably some leftover.


Abnormal swarm behavior while querying port

I am running swarm as a separate container, using docker 1.9.1 version. Swarm is listening on http://<IP_ADDRESS>:2376, When I view containers json I get 2 records, cdn_lr001_m2_fkt and cdn_lr001_m1_fkt, But when I do docker -H tcp://<IP_ADDRESS>:2376 port cdn_lr001_m1_fkt, I see abnormal behavior. It works for cdn_lr001_m2_fkt and doesn't work for cdn_lr001_m1_fkt.
Am I missing something? or is it a bug?
_This is the trace- _ (If I am not clear enough)
user@lr1:~$ curl -v http://<IP_ADDRESS>:2376/containers/json

Hostname was NOT found in DNS cache
Trying <IP_ADDRESS>...
Connected to <IP_ADDRESS> (<IP_ADDRESS>) port 2376 (#0)

GET /containers/json HTTP/1.1
User-Agent: curl/7.35.0
Host: <IP_ADDRESS>:2376
Accept: /

< HTTP/1.1 200 OK
< Content-Type: application/json
< Date: Mon, 01 Feb 2016 12:55:33 GMT
< Content-Length: 828
<
[
{"Id":"c5e5730fd5f3f624a6d04910fd56ee1bd31db3973acc7e5ca70ae6caf0de122d",
"Names":["/lr2/cdn_lr001_m2_fkt"],
"Image":"alef-cdnv2-child:latest",
"Command":"childapp -parent=<IP_ADDRESS>:80 -cust-id=fkt -db-dir=/db-dir -content-dir=/content-dir",
"Created":1454329736,
"Status":"Up 26 minutes",
"Ports":[{"IP":"<IP_ADDRESS>","PrivatePort":3001,"PublicPort":32768,"Type":"tcp"}],
"SizeRw":0,
"SizeRootFs":0,
"Labels":{}},
{"Id":"fae5a3ad3625e76f9ec3eb26c768721cc0faa472f37f2e01ecb224a185a66212",
"Names":["/lr1/cdn_lr001_m1_fkt"],
"Image":"alef-cdnv2-child:latest",
"Command":"childapp -parent=<IP_ADDRESS>:80 -cust-id=fkt -db-dir=/db-dir -content-dir=/content-dir",
"Created":1454329731,
"Status":"Up 26 minutes",
"Ports":[{"IP":"<IP_ADDRESS>","PrivatePort":3001,"PublicPort":32768,"Type":"tcp"}],
"SizeRw":0,
"SizeRootFs":0,
"Labels":{}}
]

Connection #0 to host <IP_ADDRESS> left intact

user@lr1:~$ docker -H tcp://<IP_ADDRESS>:2376 port cdn_lr001_m1_fkt
Error response from daemon: No such container cdn_lr001_m1_fkt
user@lr1:~$ docker -H tcp://<IP_ADDRESS>:2376 port cdn_lr001_m2_fkt
3001/tcp -> <IP_ADDRESS>

@Yogesh9692 Is the Docker daemon where cdn_lr001_m1_fkt runs reachable or not? What's the output from docker -H tcp://<IP_ADDRESS>:2376 ps -a? I vaguely remember an issue like that.
cc @vieux.

@Yogesh9692 any update based on Dongluo's comment above?

@dongluochen @amitshukla Yes cdn_lr001_m1_fkt is reachable. And when I do <ps -a> it shows me all running containers. Actually when I do <ps -a> swarm is also listed, so  works fine.

@Yogesh9692 What's the output from docker -H tcp://<IP_ADDRESS>:2376 ps -a | grep -i cdn_lr001_m1_fkt? Do you see one record or more than one? Swarm gets confused when there are more than containers with same name.

@dongluochen I see only one record, the one which I grep. I am not running containers with same names, they are similar though but not same does that matters? I think it should not.

@Yogesh9692 What do you get from docker -H tcp://<IP_ADDRESS>:2376 inspect cdn_lr001_m1_fkt?

I am not facing this issue now. Don't know why! I am using same docker version. I am trying to reproduce the bug will update you soon. Closing it for now.


Pod fails to start on OpenShift: Error: runc create failed: unable to start container process: eaccess /atlas: permission denied

I'm trying to deploy Chainloop on an OpenShift environment, using a command similar to the following:
helm install chainloop oci://ghcr.io/chainloop-dev/charts/chainloop
--set global.openshift=true
--set development=true
--set controlplane.auth.oidc.url=url
--set controlplane.auth.oidc.clientID=client
--set controlplane.auth.oidc.clientSecret=secret
--set controlplane.image.repository=local/chainloop/control-plane
--set controlplane.image.tag=v0.91.0
--set controlplane.migration.image.repository=local/chainloop/control-plane-migrations
--set controlplane.migration.image.tag=v0.91.0
--set cas.image.repository=local/chainloop/artifact-cas
--set cas.image.tag=v0.91.0
However, the chainloop-controlplane pod fails during initialization (Init:CreateContainerError) with error:
Error: container create failed: time="2024-06-07T12:16:22Z" level=error msg="runc create failed: unable to start container process: eaccess /atlas: permission denied"
Any idea how to solve this issue?

Hi @hanygirgis.
Do you mind sharing some more information about your openshift environment? We are in the process of adding support of customizable podsecuritycontext that might be the culprit of your issue.
Thanks!

Hi @migmartri,
I'm using this version:
OpenShift version: 4.13.27
Kubernetes version: v1.26.11

A suggestion is to maybe used the same global.openshift boolean flag that is used by Vault to configure the podsecuritycontext, to allow openshift compatibility with just one setting (if possible).
Thanks!

That's a great pointer! Summoning @javirln, who's currently working on some Helm Chart changes to discuss next steps.
In any case, @hanygirgis we are open to contributions if you want to give it a try, we'll be happy to assist, either here at Github or also in our Slack :)
Thanks

Thanks for the invitation : ) Sure, I'll be glad to contribute.

Hello @hanygirgis :)
We are migrating our current Chart approach to Bitnami Charts. There, you can see how to set up pod security policies and container security policies, which we will need to add to our configurations.
Each chart includes a common chart that provides examples of how to inject these security policies. Since we are adopting Bitnami's contributing guidelines, this is the approach we should follow.
For an example, see how OpenShift is handled in this helper.
Aaand thank you so much for your interest on Chainloop :D

Hello @javirln :) thanks for your answer.
I'm now checking the Bitnami compatibility helper you pointed to (but so far it's not clear what changes I need to make).
Initially I tried just setting runAsUser to 1001, but got Forbidden: not usable by user or serviceaccount, provider restricted-v2: .initContainers[0].runAsUser: Invalid value: 1001: must be in the ranges: [1000880000,<PHONE_NUMBER>]

It now works with helm chart 1.61.0 (and image versions v0.91.6)
Thanks a lot!

Awesome, thanks for your help :)


When git-lfs features is used, local .gitconfig wont be copied in to devcontainer

By default, user local .gitconfig should be copied into devcontainer, it works when using git feature only.
However, when git-lfs is used, then it wont be copied.
I guess it probably because we run git-lfs install in install process, so .gitconfig is not empty so vscode server stop copying local .gitconfig to prevent from overriding.

I'm having the same problem. .gitconfig seems to get copied across in the start phase, whereas I think the git-lfs feature is run in the create phase. A workaround is to just install git-lfs in the postStartCommand using a custom script, i.e. after .gitconfig is copied across to the container. Adding some control to devcontainer.json around exactly when .gitconfig gets copied would be a solution.

I don't know if this is definitely related, but I'm getting some odd file system permission issues with features. I'm finding that I often have to do some chmod shenanigans before I can git commit successfully

Experiencing the same issue.

Hi 👋
The cause of this bug is not due to the Features, because remote containers help with the gitconfig.
I have reported this bug in https://github.com/microsoft/vscode-remote-release/issues/7589
Feel free to comment on that issue with comments/thoughts.


ensureIndex bug?

Database file repeats the following over 200 times in my file, ever increasing.
{"$$indexCreated":{"fieldName":"username","unique":true}}
{"$$indexCreated":{"fieldName":"id","unique":true}}

let database = Datastore.create("/app/data/users.db");
database.ensureIndex({ fieldName: "username", unique: true });
database.ensureIndex({ fieldName: "id", unique: true });

using https://www.npmjs.com/package/nedb-promises as a wrapper for Promises.

have you resolved this bug? I face it too

I did not, I just ended up deleting the file every time.
On Sun, Jun 28, 2020 at 9:27 AM coderkang<EMAIL_ADDRESS>wrote:

have you resolved this bug? I face it too
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/louischatriot/nedb/issues/618#issuecomment-650780324,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACOIAXJ3SXOPHQAZZ5SR633RY5OMNANCNFSM4JW5CUCA
.


Deprecation tests are failing

We're relying on RDatasets' use of DataFrames.read_rda to test for a deprecation warning given by read_rda by redirecting STDERR and looking for the deprecation message. However, a recently merged RDatasets PR (that was subsequently tagged) fixes the deprecation warning, so there's no message for us to read in the test.
I see two possible courses of action here:

Add an RDA file and manually read it using read_rda to continue to test the existence of a deprecation warning.

We know the deprecation works since the test had been passing until RDatasets fixed it on their end, and read_rda here won't change (it's only referenced in a @deprecate), we could just remove the test.

Thoughts?

Let's just remove the method. It's not worth spending more time on writing a new test for this.

You mean the test? Personally I don't think the deprecation period has been long enough to remove read_rda entirely yet.

Yes. I meant the test.

Oh, okay. Yeah, that's what I was thinking as well. I can submit a PR for it in a bit. Thanks for your input!


Set default resource lock to leases for extensions

How to categorize this PR?

/area control-plane
/kind enhancement
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
CC - @ialidzhikov
Release note:

The default leader election of extensions has been changed to `leases`. Please make sure, that you had at least<EMAIL_ADDRESS>before upgrading so that it has successfully acquired leadership with the hybrid resource lock (`configmapsleases`) at least once.

The release note should be breaking dependency and it's not related to any running gardener version, right? This is only affecting the extensions...

The release note should be breaking dependency and it's not related to any running gardener version, right? This is only affecting the extensions...

Yes, The idea is anything that imports g/g should have v1.17 at least to upgrade it to the latest.

/lgtm

@ialidzhikov Any concerns?


Exported WINEPREFIX for better readability

Using WINEPREFIX=~/.WineApps/Adobe-Photoshop in every wine related operation is not a good idea.
In this pr, that problem was fixed with exporting WINEPREFIX variable in scripts.

Have you tested this?

Have you tested this?

I realized I forgot to switch to wineprefix in some commands. I will make this pr ready for review when I fix.

Hello, don't bother the script you modified is the old one for cc2021
I know it isn't that readable because the old script was intended to install only in that dir unlike the new one

I didn't saw that you modified the new one too but if I use this method it's to keep it compatible with the GUI version

I tested installing photoshop with file scripts/photoshop2022install.sh and it worked with this changes.

I tested installing photoshop with file scripts/photoshop2022install.sh and it worked with this changes.

Yeah it works in cli but it was also designed to work with the GUI

I tested installing photoshop with file scripts/photoshop2022install.sh and it worked with this changes.

Yeah it works in cli but it was also designed to work with the GUI

CLI might work but GUI isn't working that easy

After a test, it's not working with GUI version... I'm sorry but I can't merge it at the moment.
But still I really appreciate your contribution.
Thanks it means a lot.

install only in that dir unlike the new one

Did you get that idea from my fork @MiMillieuh?

install only in that dir unlike the new one

Did you get that idea from my fork @MiMillieuh?

It was for the GUI installer since I find a way to get dir path through GUI I wanted to implement it but nothing comes from your fork...

@MiMillieuh
Is gui app open source?

@MiMillieuh
Is gui app open source?

It is but code is a bit messy...
Just don't try to work on it I have a lot of changes incoming on my local workplace


off-canvas automatically scroll on first link

How to reproduce this bug:

Create an off-canvas like describe in foundation off-canvas documentation
Add a link at overlay bottom -out of screen height
Click on off-canvas trigger button

What should happen:
Off canvas overlay should opened and not scroll
What happened instead:
Off-canvas overlay directly scroll to first link -a tag- found in overlay
Browser(s) and Device(s) tested on:
Chrome Version 59.0.3071.115 (Developer Build) (64-bit)
Foundation Version(s) you are using:
6.4.1
Test case link:

codepen issue demo

@WnP All you need to do is add data-auto-focus="false" to your off canvas. By default it focuses the first link in the off canvas so you have to disable this open.
Does that work for you?

@brettsmason that's great, sorry for the inconvenience I didn't figuring it out while reading the doc.
Thanks

@WnP No problem glad its working 👍


[VOTE] TVM 0.5 Release

Dear TVM Community,
This is the vote to release TVM version v0.5. Voting will start today, Friday February 1st and will close on Wednesday Feb 6th.
Link to release notes candidate: https://github.com/dmlc/tvm/issues/2448
Everyone in the community is welcomed to participate, please vote (by replying to the thread, emoji is also fine but a reply is better):
+1 if you agree
+0 if you do not care
-1 because ...
We partially adopt the Apache Release Policy:

For a release vote to pass, a minimum of three positive votes and more positive than negative votes MUST be cast. Releases may not be vetoed. Votes cast by PMC members are binding.

While again we encourage everyone to review, verify and vote, your feedback is invaluable to the community and is greatly appreciated.
cc @dmlc/tvm-committer

+1

+1

+1

+1

+1

+1

Hi community, thanks to everyone who voted on this thread. However, we have several bug-fix PRs for the new feature, liker #2495 #2573 #2580 . Members like @tqchen , @yzhliu and me believe that It would be better to have them in the 0.5 release. According to the apache rule, we need to cancel this vote and have another round of vote for the new commit. I will move the vote forward with another Github issue.


Add type declarations

Add type declarations to improve library's usage in Typescript.
Fixes #21

Hi!
I wanted to ping you on this PR, did you have time to review it?
Thanks!

Hi!
I wanted to ping you on this PR, did you have time to review it?
Thanks!

Hey there! Since this functionality is important for us we've started maintaining this package over at https://github.com/auteon/puppeteer-har. The API has changed slightly and the whole thing is written in TypeScript now.


Remove build-tool-version annotation from the SOCI index manifest

Description of changes:
Remove build-tool-version annotation from the SOCI index manifest
The old zTOC format contained a separate field for the build tool version. This was deliberately removed because we want people testing against the zTOC file format version, not the build tool version. This PR removes the build tool version from the SOCI index manifest as well (and for the same reason). In both cases, there is still a "build tool identifier string". This is strictly informational. It is not (and should not) be parsed.
Testing performed:
make && make test && make check
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

oops


Quiet, Other Language Recipes don't Quiet

When a recipe is written by other language. Quiet symbol @ seems to have a reverse meaning.
hello:
    #!/usr/bin/env python
    print('Hello')

@quiet_hello:
    #!/usr/bin/env python
    print('Hello')

just hello will not print recipe, but just quiet_hello will.
$ just hello
Hello
$ just quiet_hello
#!/usr/bin/env python
print('Hello')
Hello

I am using just v0.5.8. Is this a bug? I can't find any documents describe this feature.

Thanks for reporting this! This is definitely weird behavior, and I don't remember what I was thinking when I implemented it.
I'm not entirely sure what the right thing to do is. In linewise recipes, printing each line before executing it is useful because it shows you what just is doing as it does it. Printing shebang recipes doesn't seem useful, because the only option is printing the whole script before executing anything, which doesn't seem useful.
The current behavior does seem useful, although perhaps confusing. My hunch is that the right thing to do might just be to document the current behavior in the readme.
What do you think?

I definitely agree with everything you've said. I do however think it's unfortunate to make basically every shebang recipe use a @. I, personally, have never needed to print out the text of a shebang recipe. Another factor is that switching the behavior of @ for shebang recipes would be a breaking change. (Well, it wouldn't really break anything, but it would change the behavior of current justfiles.)
I'm going to document the current behavior in the readme, and then open an issue for feedback on whether people would like the behavior switched.

I just landed #602, which documents the current behavior, and opened #603, for discussion of changing the current behavior to be more consistent.


After upgrade to Windows 11, Scanning isn't working from http

Hello,
after upgrade to Windows 11, scan from http server got huge difficulty to complete, here is log from CMD :
  loop = asyncio.get_event_loop() # get the current asyncio loop
[16:54:42] - Starting program with command-line arguments
[16:54:42] - Starting the HTTP Server on Port 8080...
[16:54:42] - -------------------------------------------------------------------------------------
<IP_ADDRESS> - - [05/Aug/2022 16:54:53] "GET /NeewerLite-Python/doAction?discover HTTP/1.1" 200 -
[16:54:53] - Processing HTTP arguments
[16:54:53] - Searching for new lights
[16:54:58] - Found new light! [NEEWER-RGB660] MAC Address: Redacted RSSI: -87 dBm
[16:54:58] - Found new light! [NEEWER-RGB660] MAC Address: Redacted  RSSI: -88 dBm
[16:54:58] - Found new light! [NEEWER-RGB660] MAC Address:  Redacted  RSSI: -87 dBm
[16:54:58] - Found new light! [NEEWER-RGB660] MAC Address: Redacted RSSI: -80 dBm
[16:54:58] - Found new light! [NEEWER-RGB660] MAC Address: Redacted  RSSI: -87 dBm
[16:54:58] - Attempting to link to light [NEEWER-RGB660] MAC Address: Redacted  (Attempt 1 of 6)
[16:54:58] - Attempting to link to light [NEEWER-RGB660] MAC Address: Redacted  (Attempt 1 of 6)
[16:54:58] - Attempting to link to light [NEEWER-RGB660] MAC Address: Redacted  (Attempt 1 of 6)
[16:54:58] - Attempting to link to light [NEEWER-RGB660] MAC Address: Redacted  (Attempt 1 of 6)
[16:54:58] - Attempting to link to light [NEEWER-RGB660] MAC Address: Redacted  (Attempt 1 of 6)
Exception in thread htmlProcessThread:
Traceback (most recent call last):
  File "C:\Users\Redacted \Downloads\NeewerLite-Python-0.12\NeewerLite-Python-0.12\NeewerLite-Python.py", line 2276, in connectToLight
    isConnected = await availableLights[returnLightIndexesFromMacAddress(lightMAC)[0]][1].connect() # try connecting it (and return the connection status)
  File "C:\Users\Redacted\AppData\Local\Programs\Python\Python310\lib\site-packages\bleak\backends\winrt\client.py", line 314, in connect
    await self.get_services()
  File "C:\Users\Redacted\AppData\Local\Programs\Python\Python310\lib\site-packages\bleak\backends\winrt\client.py", line 506, in get_services
    await self._requester.get_gatt_services_async(*args),
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Redacted\Downloads\NeewerLite-Python-0.12\NeewerLite-Python-0.12\NeewerLite-Python.py", line 2634, in parallelAction
    await asyncio.gather(*parallelFuncs) # run the functions in parallel
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Redacted\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "C:\Users\Redacted\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\Redacted\Downloads\NeewerLite-Python-0.12\NeewerLite-Python-0.12\NeewerLite-Python.py", line 2811, in processHTMLCommands
    loop.run_until_complete(parallelAction("connect", [-1], False)) # try to connect to *all* lights in parallel
  File "C:\Users\Redacted\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 646, in run_until_complete
    return future.result()
asyncio.exceptions.CancelledError

Thanks for any help

Hi @Lisra-git - sorry for the delay in responding!  I'm not 100% sure what's going on here, it looks like an asyncio CancelledError issue, but I'm not sure why it's cancelling - maybe it was the upgrade to Windows 11 that did that (possibly Bleak has an issue where it's not yet compatible with Win11?)  It definitely looks like it's partially working, as it's getting the light information on boot.  I don't have a Windows 11 install to test myself, but I could get a virtual machine setup going to check how it handles NeewerLite-Python.  Have you tried running the GUI version (just launching it directly in Windows) and seeing if you get the same error?

Hey
Thanks for replying
Actually I tried the GUI and Scan operation crash too
Sometime by rebooting the program and launching the scan again it will be successful but it's just a pain to do.

That's interesting - do you get the same kind of error with the GUI then?  The asyncio.CancelledError?  It looks like it's getting hung up on the connection phase - it scans for the lights fine, but when it goes to connect to them, it runs into an issue.  I will say, the RSSI level on those lights are pretty weak (~-80dBm), so it might have issues connecting to them due to that.  Although if Windows 10 worked fine all the time, it might be something else.

Yes exact same error
Did rollback to Win10 due to that and all work perfect like before

Huh - that's so odd!  I'm curious what's causing that now.

I'm going to close this for now @Lisra-git - I would like to get either a Win11 install or VM and test this out more in the future, but that's not quite on my plate at the moment... I'll let you know what happens when I get to that!


Use of undeclared type 'TVIRemoteParticipant' Error

Description
Hi
I want to install TwilioVideo and started it with video-quickstart-swift.  Firstly I've tried to install the podfile with  pod 'TwilioVideo', '~> 2.1.0' then  I take error like just below.

Then I want to try with pod 'TwilioVideo', '~> 1.0' and TwilioVideo has installed successfully.  I've opened VideoQuickStart.xcworkspace project and when I build the project I am having TVIRemoteParticipant error as seen below.

I've tried many variants for installing correctly because I've read older issues and in a commit, the Pod's name has changed from TwilioVideo to Twilio SDK, as I seen. But I haven't installed the correct framework to test TwilioVideo
Also I've read Migrations to 2.x from 1.x and in the documents there is a line

In 2.x applications should use [TVIRemoteParticipantDelegate subscribedToVideoTrack:publication:forParticipant:] and [TVIRemoteParticipantDelegte unsubscribedFromVideoTrack:publication:forParticipant:] to perform video rendering logic.

So I haven't try to change TVIRemoteParticipantDelegate weak variable to TVIParticipantDelegate.
Edit: TVIAudioCodec and TVIVideoCodec  have undescribed too.
Xcode
Version 9.2 (9C40b)
iOS Version
iOS 10
iOS Device
iPhone X

Hi @eliakorkmaz,
I'm sorry that you're having issues downloading our latest 2.1.0 release. Can you perhaps retry the pod install command with a clean working copy of the QuickStart? I just tried this locally and was able to fetch the 2.1.0 artifact, so I expect that you had a connection drop out in the middle of your transfer which failed the curl command.

I've tried many variants for installing correctly because I've read older issues and in a commit, the Pod's name has changed from TwilioVideo to Twilio SDK, as I seen. But I haven't installed the correct framework to test TwilioVideo

The QS app has an accurate podfile, you definitely don't want "Twilio SDK". I would recommend sticking to 2.1.0, but if you want to try an older release you can always hop onto the 1.x branch which has code compatible with the 1.x versions of our SDK.
https://github.com/twilio/video-quickstart-swift/tree/1.x
Best,
Chris

Hi @eliakorkmaz,
Were you able to pod install successfully? Is any more help needed?
Cheers,
Chris

Hi @ceaglest
I've cleaned my project structure and try to install 2.1.0 with pod install and I've seen this the internet connection of my area is not good to fetch anything. When I download something its blocking in middle of the fetch status. I will test it with another connection.
For testing, I will use pod 'TwilioVideo', '~> 1.4.0', I will comment in here to the response that I have.

Hey @eliakorkmaz,
Sounds good. Our recent SDK releases are hosted on Github. If you'd like, you can manually download them from:
https://github.com/twilio/twilio-video-ios/releases
If you want to use a download manager or browser which will allow you to resume interrupted downloads.
Cheers,
Chris


Triggering Event

Hi @MrToph and @plouh,
is there a way to make CountdownCircle invisible/disabled unless the user triggers some activation event, press a button for example?

I'm not entirely sure what you mean. Why don't you only mount the circle upon that triggered action? Then it's "invisible", not even mounted.
Or do you want the circle to be already running and only then show it?

Could you please explain how I can mount the circle upon the triggered action. That might help.
Here is my simple example: the app with a button and a countdown element.
import React, { Component } from 'react';
import {
  Platform,
  StyleSheet,
  Text,
  View,
  Button
} from 'react-native';
import CountdownCircle from 'react-native-countdown-circle'

export default class App extends Component{

  onPressStartCountdown = () => {
    console.log('StartCountdown pressed')
  }

  render() {
    return (
      <View>
      <View>
            <Button
        onPress={this.onPressStartCountdown}
        title="Start Countdown"
        color="#ff003f"
      />

      </View>
      <View>
      <CountdownCircle
        seconds={10}
        radius={30}
        borderWidth={8}
        color="#ff003f"
        bgColor="#fff"
        textStyle={{ fontSize: 20 }}
        onTimeElapsed={() => console.log('Elapsed!')}
      />
      </View>
      </View>

    );
  }
}

I want the countdown to be invisible/disabled until I press the button. OnButtonPress I want the countdown become visible/enabled and start counting down from the specified value (10 in this case)
What do you think?

@MrToph I feel what @alexsmartens is trying to say is that, is it possible to have a start, stop or restart props. i tried implementing what you said in your reply, about making it invisible by unmounting, but i noticed the countdown still runs in the background.
@alexsmartens  check this below this is how to implement the idea @MrToph gave
import React, { Component } from 'react';
import {
  Platform,
  StyleSheet,
  Text,
  View,
  Button
} from 'react-native';
import CountdownCircle from 'react-native-countdown-circle'

export default class App extends Component{
state: {
CountdownCircleVisible: false
}

  onPressStartCountdown = () => {
    console.log('StartCountdown pressed')
    this.setState({
     CountdownCircleVisible: true
    })
  }

  render() {
    return (
      <View>
      <View>
            <Button
        onPress={this.onPressStartCountdown}
        title="Start Countdown"
        color="#ff003f"
      />

      </View>
      <View>
{(this.state.CountdownCircleVisible)?
    <CountdownCircle
        seconds={10}
        radius={30}
        borderWidth={8}
        color="#ff003f"
        bgColor="#fff"
        textStyle={{ fontSize: 20 }}
        onTimeElapsed={() => console.log('Elapsed!')}
      /> :
       null
       }

      </View>
      </View>

    );
  }
}

@alexsmartens you can close this issue, if my code works

@MrToph and @Harkindey thank you for your insight. I got away with the solution allowing me to start/restart the countdown anytime and the countdown element is not running in the background. So, I kinda have Start/Restart and I think the Pause part is easy to implement on the top of my approach
Here is my code:
import React, { Component } from 'react';
import {
  Platform,
  StyleSheet,
  Text,
  View,
  Button
} from 'react-native';
import CountdownCircle from 'react-native-countdown-circle'

export default class App extends Component{
  constructor(){
    super();
    this.state = {
      isCountdown: false,
    }
  };

  onPressStartCountdown = () => {
    if (this.state.isCountdown) {
      this.setState({isCountdown: false})
    } else {
      this.setState({isCountdown: true})
    }
  }

  render() {

    let countdownElement;
    if (this.state.isCountdown){
      countdownElement = <CountdownCircle
      seconds={10}
      radius={30}
      borderWidth={8}
      color="#ff003f"
      bgColor="#fff"
      textStyle={{ fontSize: 20 }}
      onTimeElapsed={() => console.log('Elapsed!')}
    />;
    } else {
      countdownElement = null;
    }

    return (
      <View>
        <View>
          <Button
            onPress={this.onPressStartCountdown}
            title="Start Countdown"
            color="#ff003f"
          />
        </View>
        <View>
          {countdownElement}
        </View>
      </View>

    );
  }
}