Unable to connect

Hello,
I am trying to connect the twincat runtime which is running in the PC with the python to read and write data. Currently I am facing the following issue.
ERROR!!
Traceback (most recent call last):
  File ".\test.py", line 9, in <module>
    print(plc.read_by_name('VelocityRead', pyads.PLCTYPE_DINT))
  File "C:\Users\RRLAB-PK\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pyads\ads.py", line 898, in read_by_name
    return adsSyncReadByNameEx(
  File "C:\Users\RRLAB-PK\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pyads\pyads_ex.py", line 777, in adsSyncReadByNameEx
    handle = adsGetHandle(port, address, data_name)
  File "C:\Users\RRLAB-PK\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pyads\pyads_ex.py", line 725, in adsGetHandle
    handle = adsSyncReadWriteReqEx2(
  File "C:\Users\RRLAB-PK\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pyads\pyads_ex.py", line 600, in adsSyncReadWriteReqEx2
    raise ADSError(err_code)
pyads.pyads_ex.ADSError: ADSError: target port not found   ADS Server not started (6).

I have setup the twincat router as follows. ![image_twincat](

ams id
router_1.pdf
Note that we are using the simulink for the motor control.

Main Goal is to read/write the signal using python so that we can have a simple way to change the parameters.
I the using the following the code:
import pyads

# add route to remote plc
# pyads.add_route("<IP_ADDRESS>.1.1", "<IP_ADDRESS>")

# connect to plc and open connection
print(pyads.PORT_SPS1)
plc = pyads.Connection('<IP_ADDRESS>.1.1', pyads.PORT_SPS3)
plc.open()

# read int value by name
i = plc.read_by_name("GVL.VelocityRead", pyads.PLCTYPE_DINT)
print(i)

# write int value by name
# plc.write_by_name("GVL.int_val", i, pyads.PLCTYPE_INT)

# close connection
plc.close()

ERROR!!
Traceback (most recent call last):
  File ".\test.py", line 9, in <module>
    print(plc.read_by_name('VelocityRead', pyads.PLCTYPE_DINT))
  File "C:\Users\RRLAB-PK\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pyads\ads.py", line 898, in read_by_name
    return adsSyncReadByNameEx(
  File "C:\Users\RRLAB-PK\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pyads\pyads_ex.py", line 777, in adsSyncReadByNameEx
    handle = adsGetHandle(port, address, data_name)
  File "C:\Users\RRLAB-PK\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pyads\pyads_ex.py", line 725, in adsGetHandle
    handle = adsSyncReadWriteReqEx2(
  File "C:\Users\RRLAB-PK\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pyads\pyads_ex.py", line 600, in adsSyncReadWriteReqEx2
    raise ADSError(err_code)
pyads.pyads_ex.ADSError: ADSError: target port not found   ADS Server not started (6).

Make sure you are using the right port for connection. In your example you are using PORT_SPS3 which is unlikely to work. You can investigate which port your plc is using in yourTwinCAT project (SPS stands for PLC):

Also make sure your TwinCAT system is in RUN mode.

@stlehmann Thank you for the reply!!
I am not using PLC or PLC project. its TwinCAT XAR installed on PC. for project we are using Simulink Model and its linked to A Task which has Port 350

I am trying to access variable: 'VelocityRead' from the TcCOM object

We tried this code also changed the variable name to 'test.TcModuleInput.VelocityRead' but it gave the same error.
import pyads

# add route to remote plc
# pyads.add_route("<IP_ADDRESS>.1.1", "<IP_ADDRESS>")

# connect to plc and open connection
plc = pyads.Connection('<IP_ADDRESS>.1.1', 350)
plc.open()
print(plc.read_by_name('VelocityRead', pyads.PLCTYPE_DINT))
plc.close()

it gives the following error.

As the error states the symbol can not be found. I'm not sure if it works but try to use the fully qualified name for your symbol: "test.TcModuleInput.VelocityRead". If this does not work either try to use a variable in the Global variables list as a proxy.


Remove unused HeapCompactor

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/8116/
Test PASSed.

ping @gpang

alluxio-bot, merge this please


Add Xaya (CHI)

Successfully tested swaps on blocked with current settings.

please also update manifest-latest.json

please also update manifest-latest.json

please also update manifest-latest.json

Updated manifest-latest.json as requested.

please also update manifest-latest.json

Updated manifest-latest.json as requested.


feat: adds Segment (analytics-next)

Adds Segment Analytics to track

If a wallet is funded

Last login time

Connected to external application

Onboarding completed

Adds setting tab to opt-out of analytics

Edit 8/21:

also includes opt-in for existing users without 'setting_analytic' in their storage:

and additional step for onboarding and existing users

All analytics recorded are anonymous
TODO: Add PLASMO_PUBLIC_SEGMENT_WRITEKEY to .env
https://www.npmjs.com/package/@segment/analytics-next

@martonlederer One last thing, if a user doesn't interact with the opt-in analytics checkbox on the last step of the setup, it'll prompt the user with AnalyticsConsent when they first open the extension, is that by design?

Not by design. Let me fix that quickly

@nicholaswma this should fix it


Update word-count extension

Description
Add reading and speaking time to Word Count extension
Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Looking great! Thanks @koayon

@raycastbot approve


Provide HttpContext to getProxiedAddress Func

There are cases where the HttpContext is required for building the proxied URL. For example, access to the query string.

Great idea!  However, can you make an overload that keeps the existing behavior and does not require a lambda with context?

Actually, nevermind.  It was a bit more involved, and we might as well cover more scenarios, so I went ahead and did it.

Closing in favor of #3.  I will release soon™.


[weex]TypeError: CreateListFromArrayLike called on non-object

Version
2.5.17
Reproduction link
Steps to reproduce
Sorry, I can't reproduce it because it's for the "weex" platform.
What is expected?
What is actually happening?

This bug occurs in the platform "weex". In the function "src/platforms/weex/runtime/modules/class.js/updateClass", the following two lines of code:
Because the types of "oldData.class" and "data.class" are strings, not "Array" required by "apply".

oldClassList.push.apply(oldClassList, oldData.class)``classList.push.apply(classList, data.class)

@ts0307 Some vue code will probably help @Hanks10100  to check this

@Hanks10100 @posva I have provided an example to reproduce this problem

@ts0307 Thanks for your remind, I put your demo on the weex playground.
The code you point out had been changed to this https://github.com/vuejs/vue/pull/7930/files#diff-c4874f4bae144c328950ba14ed7601abR35 . It will not throw errors when the type of data.class is not array, but still doesn't support binding plain text yet. We can fix it later.

Refer to https://github.com/vuejs/vue/pull/9139

good job!


Append newline to printout of "Defaulted constraints"

Currently, when dumping ConstraintSystem, the "Defaulted constraints" section doesn't end with a newline. If this is the last section, it doesn't play nice with lldb's command line.

Thanks
@swift-ci smoke test and merge


sc.exe FAILED 1059 - Circular service dependency

the full command was:
sc.exe config lanmanworkstation depend= browser/mrxsmb20/nsi
[SC] ChangeServiceConfig FAILED 1059:
Circular service dependency was specified.
so these instructions aren't working on Windows Server 2012 and Windows 7 Pro at least.
also the article shows "bowser" but probably it should say "browser"
[Enter feedback here]

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

ID: 8a91db45-ca3c-7a2e-3f32-2f5b57837b03
Version Independent ID: b83cbaab-c0df-d6e7-a67f-f4c99a46e30a
Content: How to detect, enable and disable SMBv1, SMBv2, and SMBv3 in Windows
Content Source: WindowsServerDocs/storage/file-server/Troubleshoot/detect-enable-and-disable-smbv1-v2-v3.md
GitHub Login: @Deland-Han
Microsoft Alias: delhan

So lanmanworkstation huh? Have you ever considered whatever you’re attempting to illegally obtain from my network isn’t working because I now too own the very expensive ($3999) a year program known as Burp Suite. I see all the illegal injections and poisoning that have been done to my network and have everyone’s involved dead to rights. No matter what happens on you guys and I’ll still have all I need for when AT&T and the sheriffs department meet me at my place after 2pm. You should be concerning yourselves with your plans for the future and not my network.
Sent from my iPhone

On May 29, 2020, at 10:21 AM, Jeremy Jackson<EMAIL_ADDRESS>wrote:

the full command was:
sc.exe config lanmanworkstation depend= browser/mrxsmb20/nsi
[SC] ChangeServiceConfig FAILED 1059:
Circular service dependency was specified.
so these instructions aren't working on Windows Server 2012 and Windows 7 Pro at least.
also the article shows "bowser" but probably it should say "browser"
[Enter feedback here]
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: 8a91db45-ca3c-7a2e-3f32-2f5b57837b03
Version Independent ID: b83cbaab-c0df-d6e7-a67f-f4c99a46e30a
Content: How to detect, enable and disable SMBv1, SMBv2, and SMBv3 in Windows
Content Source: WindowsServerDocs/storage/file-server/Troubleshoot/detect-enable-and-disable-smbv1-v2-v3.md
GitHub Login: @Deland-Han
Microsoft Alias: delhan
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

SO, it appears that "bowser" is the correct spelling.  The documentation should mention this, since there is another closely related service "browser", and many people had assumed this was a spelling mistake, which led them to these problems.

SO, it appears that "bowser" is the correct spelling. The documentation should mention this, since there is another closely related service "browser", and many people had assumed this was a spelling mistake, which led them to these problems.

Fair point. Do you have any particular wording in mind, or would it be enough to add a Note blob (colored) pointing out that the service name is bowser, not "browser"?

Even more confusingly, the kernel-mode driver "bowser" has the display name "Browser" in U.S. English, while the user-mode service "Browser" has the display name "Computer Browser".
A Microsoft employee blogged about the name in March 2006 and again in May 2011.

Thank you for the links. Those two (archived) blog posts are quite entertaining to read. They highlight how the issue affects people in ways you would not have anticipated back in 2001 or in the 1990s, not to mention the plethora of messages to have the perceived service name typo corrected. Oh well. So much for allowing the use of cute and/or funny names in core parts of the operating system.

#please-close

#please-close


Update index_en.rst

Various grammatical, syntactic and typographic fixes

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

 All committers have signed the CLA.

Can one of the admins verify this patch?


🐛 Operator documentation hints at memory values being in Mebibytes but they are actually expected as Megabytes

What happened?

https://github.com/redpanda-data/helm-charts/blob/6ef4004d0c7c7453b50bce311c4e9c10c6625005/charts/redpanda/templates/_helpers.tpl#L188-L206
What did you expect to happen?
For the Helm chart to take Mebibytes and Gib and probably save any conversions.
How can we reproduce it (as minimally and precisely as possible)?. Please include values file.

$ helm get values <redpanda-release-name> -n <redpanda-release-namespace> --all
# paste output here

Anything else we need to know?
No response
Which are the affected charts?
Redpanda, Operator
Chart Version(s)
❯ helm -n redpanda list
NAME             	NAMESPACE	REVISION	UPDATED                                	STATUS  	CHART          	APP VERSION
redpanda         	redpanda 	4       	2024-04-03 18:33:01.170109 -0400 EDT   	deployed	redpanda-0.1.1 	0.1.0
redpanda-broker  	redpanda 	1       	2024-04-03 22:28:53.750492162 +0000 UTC	deployed	redpanda-5.7.37	v23.3.10
redpanda-operator	redpanda 	1       	2024-04-01 18:14:29.732128 -0400 EDT   	deployed	operator-0.4.20	v2.1.15-23.3.7

Cloud provider

Azure / AKS

@c4milo can you provide a bit more detail about what's not working as expected?
There's parsing of the input values in some places but I believe it's largely correct and isn't really surfaced to end users. Is this more or less an extension of being unable to control the memory flags and/or resource requests directly?

This is not a blocker, BTW. Only a small but important detail that can be corrected either in the docs or the Helm chart.
The units are different between the docs and what the Helm chart seems to expect as input. The latter seems to expect multiple of 10 values (MB, GB, etc); the docs hint the user to pass multiple of 2 values (GiB, MiB, etc).


test PR with Github API

Please pull this in!

Docs Build status updates of commit 6fd519f:
:warning: Validation status: warnings

File
Status
Preview URL
Details
Dependent Files

sdp-test/page-model-documents/Tutorial.yml
:warning:Warning

Details

sdp-test/page-model-documents/Tutorial.yml

[Warning] Unable to find uid "challenge-uid".

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit 5ffa882:
:warning: Validation status: warnings

File
Status
Preview URL
Details
Dependent Files

sdp-test/page-model-documents/Tutorial.yml
:warning:Warning

Details

sdp-test/page-model-documents/Tutorial.yml

[Warning] Unable to find uid "challenge-uid".

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Warn/error on incompatible Java/Scala version

Some combinations of versions of Java, Scala, and Daffodil are known to be incompatible. The plugin should error or have a prominent warning when this is the case.
Known/documented incompatibilities:

// Compatible version sets include:
// Java 8, 11, Scala 2.12.11 (exactly), Daffodil 3.0.0 (and below)
// Java 8, 11, 17, Scala 2.12.15 (and above), Daffodil 3.1.0 (and above)
// cannot be java 17 with daffodil 2.7.0 and scalaVersion 2.12.11.

Note that we should only error on known incompatibilities so we can still test with new versions, even if they are not yet known to be compatible. If we later determine new versions are incompatible then we can update the plugin.

Another discovered compatibility issue is Java 21 requires scala 2.12.18 or newer. This is confirmed by the scala compatibility chart here:
https://docs.scala-lang.org/overviews/jdk-compatibility/overview.html

Another discovered compatibility issue is Java 21 requires scala 2.12.18 or newer. This is confirmed by the scala compatibility chart here:
https://docs.scala-lang.org/overviews/jdk-compatibility/overview.html

So, should the sbt-daffodil plugin also be specifying the default scala version then? My guess is this whole matrix of java/scala/daffodil compatibility is too complex to leave dribs and drabs of it in every schema's build.sbt file.

Probably. I opened https://github.com/apache/daffodil-sbt/issues/34 to consider providign a default scala version. We still might want this warning/error since a project could always override it the setting.


⚠ captana.io | API has degraded performance

In 209ec6b, captana.io | API ($CAPTANAIO_API_BACKEND_CHECK) experienced degraded performance:

HTTP code: 200
Response time: 3045 ms

Resolved: captana.io | API performance has improved in 62cb58b.


[cmd] Handle duplication warning at store

Closes #2510

Somehow it is possible that the store command tries to write the same
source file to the zip multiple times. This patch will handle that use
case and add a file to the zip if the file is not in there.

Duration of assembling .zip file increased from 3.5 sec to 5.24 sec on Xerces project with this change. This is just a few seconds, so it is not a huge problem. I'm not sure about this ration in case of a bigger project, but if this becomes a real issue, then we should consider normalizing and thus uniqueing paths instead of peeking in the .zip file.

Duration of assembling .zip file increased from 3.5 sec to 5.24 sec on Xerces project with this change. This is just a few seconds, so it is not a huge problem. I'm not sure about this ration in case of a bigger project, but if this becomes a real issue, then we should consider normalizing and thus uniqueing paths instead of peeking in the .zip file.

By the way the issue can be reproduced by having the same file with multiple paths in .plist files, e.g.:
a/b/c and /a/b/../b/c.

By the way the issue can be reproduced by having the same file with multiple paths in .plist files, e.g.:
a/b/c and /a/b/../b/c.


Override of System.Text.Encodings.Web.TextEncoder by SQLitePCL.raw?

Hi,
I am currently working on a Xamarin.Forms application running (at the moment) on iOS and when adding SQLitePCL.raw to the project, in order to provide a local database instance for the App to use, it for some reason breaks my API calls that I am doing using Refit. Once I remove SQLitePCL.raw from the project the calls work again.
I am getting the following Exception:
Method not found: int System.Text.Encodings.Web.TextEncoder.FindFirstCharacterToEncodeUtf8(System.ReadOnlySpan1)`
Has anyone a idea what is causing this? And ideally a way to work around that issue? I already tried putting the latest System.Text.Encodings.Web Nuget on the iOS project, but that did not have any effect.
Since this is breaking core logic at the moment I am stuck and would really appreciate any help.
Best regards

System Info:
Visual Studio Community 2019 for Mac
Version 8.9.4 (build 25)
Installation UUID: a4a44f83-393c-4630-b1c2-a0c15cd3e58a
	GTK+ 2.24.23 (Raleigh theme)
	Xamarin.Mac <IP_ADDRESS> (d16-6 / 088c73638)

	Package version: 612000125

Mono Framework MDK
Runtime:
	Mono <IP_ADDRESS> (2020-02/8c552e98bd6) (64-bit)
	Package version: 612000125

Roslyn (Language Service)
3.9.0-6.21152.10+c10f884b30737542ddd84ca889a4aad9281ce210

NuGet
Version: <IP_ADDRESS>60

.NET Core SDK
SDK: /usr/local/share/dotnet/sdk/5.0.201/Sdks
SDK Versions:
	5.0.201
	5.0.103
	5.0.102
	5.0.101
	5.0.100
	3.1.407
	3.1.406
	3.1.405
	3.1.404
	3.1.403
MSBuild SDKs: /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Sdks

.NET Core Runtime
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
	5.0.4
	5.0.3
	5.0.2
	5.0.1
	5.0.0
	3.1.13
	3.1.12
	3.1.11
	3.1.10
	3.1.9
	2.1.23

.NET Core 3.1 SDK
SDK: 3.1.407

Xamarin.Profiler
Version: <IP_ADDRESS>
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

Updater
Version: 11

Apple Developer Tools
Xcode 12.4 (17801)
Build 12D4e

Xamarin.Mac
Version: <IP_ADDRESS> (Visual Studio Community)
Hash: 3836759d4
Branch: d16-9
Build date: 2021-02-10 17:56:43-0500

Xamarin.iOS
Version: <IP_ADDRESS> (Visual Studio Community)
Hash: 3836759d4
Branch: d16-9
Build date: 2021-02-10 17:56:44-0500

Xamarin Designer
Version: <IP_ADDRESS>6
Hash: 2241b204a
Branch: tags/vsm-rel/d16.9-4540908
Build date: 2021-03-10 21:18:10 UTC

Xamarin.Android
Version: <IP_ADDRESS> (Visual Studio Community)
Commit: xamarin-android/d16-9/877f572
Android SDK: /Users/ban/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		8.1 (API level 27)

SDK Tools Version: 26.1.1
SDK Platform Tools Version: 30.0.5
SDK Build Tools Version: 30.0.2

Build Information:
Mono: 5e9cb6d
Java.Interop: xamarin/java.interop/d16-9@54f8c24
ProGuard: Guardsquare/proguard/v7.0.1@912d149
SQLite: xamarin/sqlite/3.34.1@daff8f4
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-9@d210f11

Microsoft OpenJDK for Mobile
Java SDK: /Users/ban/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_<IP_ADDRESS>
1.8.0-25
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

Android SDK Manager
Version: <IP_ADDRESS>
Hash: a391de2
Branch: remotes/origin/d16-9~2
Build date: 2021-03-24 08:30:26 UTC

Android Device Manager
Version: <IP_ADDRESS>
Hash: fc2b3db
Branch: remotes/origin/dev/jmt/d16-9bump~1
Build date: 2021-03-24 08:30:44 UTC

Build Information
Release ID: 809040025
Git revision: 5d0f80a4343884101c6c7869bc61d5101cf30052
Build date: 2021-03-25 08:43:13-04
Build branch: release-8.9
Xamarin extensions: 5d0f80a4343884101c6c7869bc61d5101cf30052

Operating System
Mac OS X 10.15.7
Darwin 19.6.0 Darwin Kernel Version 19.6.0
    Tue Nov 10 00:10:30 PST 2020
    root:xnu-6153.141.10~1/RELEASE_X86_64 x86_64

Enabled user installed extensions
DeepClean 1.2.5
Android Signature Tool 2.2.0

Okay, never mind, did more digging and found a reference to a Xamarin issue at  xamarin/xamarin-macios#10548 and this points to the issue being in the System.Memory assembly and is tracked under mono/mono#20805.
For anyone who runs into this issue in the future while the System.Memory issue is not resolved, here is a workaround mentioned in the mono issue:

Workaround
In the Xamarin.iOS project file add the following item group and restore packages afterwards:
<ItemGroup>
    <PackageReference Include="System.Memory" Version="4.5.4">
      <IncludeAssets>none</IncludeAssets>
    </PackageReference>
    <PackageReference Include="System.Buffers" Version="4.5.1">
      <IncludeAssets>none</IncludeAssets>
    </PackageReference>
  </ItemGroup>

The <IncludeAssets>none</IncludeAssets> lines are critical, without those the workaround will not work.


Update UninferrableSourceError message

Since source has been renamed to object, it is misleading to keep source keyword in that UninferrableSourceError message

Wouldn't this also make sense?
class UninferrableSourceError < NameError
  # ...
end

UninferrableSourceError = UninferrableObjectError # TODO: deprecate this

@seanlinsley did you mean class UninferrableObjectError < NameError? makes sense to me
If you want I can do this in the scope of this PR as well

Yeah that's what I meant 😄 It'd also be good to update any internal uses to UninferrableObjectError.

@seanlinsley updated according to your comment
For the record: CI check for this PR was red once: https://travis-ci.org/drapergem/draper/builds/192448535 seems to be some random issue, I've tried to reproduce it locally but bundle exec rake fails on my machine with an error about missing Mongo connection (totally valid point though).

@ertrzyiks Thanks for the contribution. Inconsistency is the worst! I'm going to go ahead and merge this as is. I'm thinking about removing the backward compatibility (UninferrableSourceError = UninferrableObjectError) as well since this will be going in a major release. Do you see any major issue in doing so?

Would something like this work?
class UninferrableSourceError < NameError
  def intialize
    ActiveSupport::Deprecation.warn 'Use UninferrableObjectError ', caller
    super
  end
end

Yeah, I wasn't sure how we wanted to handle these name changes. We could either:

Deprecate them with active support and remove them in 3.1.0. I would think this would be the best practice, however some of these name changes are actual conflicts (https://github.com/drapergem/draper/issues/725), so it might benefit from being removed entirely.

Just remove them and list them as a breaking change in the changelog. Not the best practice, but neither is upgrading to a major release of gem without reading the changelog.

What do you think?

Ah, remove it then.


ir::Integer type doesn't support *=

This one fails in a funky way:
x := 1
x *= 2

Error message:
[140472633321288 :0] Assertion failed
    Expected: found == true
         LHS: false
         RHS: true

Note that this does work for x += 2, somehow.

Also if you change the first line to x: i64 = 1 then everything works as expected.

It's rather annoying, but the "correct" fix here according to the intended language semantics at the moment would be to emit an error on x := 1, because you can't use integer at run-time.

Related crash with the same error message: casting an integer to f64:
x := 1
x as f64


BarbParams::_init does not set default variable or gracefully fail when none found

If _dataMgr->GetDataVarNames returns an empty array, SetVariableName is called with the string "". This causes problems later.

Unable to reproduce.  Need a procedure.  Maybe it got fixed in the last pull request?


Render 'Details' section with property list key information.

Bug/issue #, if applicable: rdar://131373480
Summary
Add a translator to render the already existing Details section. This section will display the data of the new SymbolKit mixin plistDetails.
The Details section contains:
1.Type - Type of the symbol.
2. Key (optional) - Name of the symbol if the title of the page is overwritten and does not shows the key name.
3. Name (optional) - A human-readable name of the key.
Details section displaying the human-readable name:

Details section displaying the key name:

Dependencies
This change depends on a new commit of SymbolKit.
Testing
Steps:

Preview the attached documentation catalog.
Assert that symbols Foo and Bar show the Details section.

plist.docc.zip
Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.

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

@swift-ci please test

@swift-ci please test

@swift-ci please test


Adds flex to card-divider and fixes card width for narrow content

Adds display: flex; to .card-divider so that flex-utilities can be applied (ref #9533)
Adds flex-grow: 1; to .card to fix issue with card width collapsing when in display: flex parent. (ref #9533)

Also adds test case for both

Tagging in @DaSchTour and @brettsmason as well to review, as y'all are more familiar with cards & flex cards than I am.

I see this is targeted for 6.3.1 as a bugfix, can you explain a little more about what bugs it is fixing? The referred issue is a feature list

This can be considered a feature so deferring to 6.4 is fine. Waiting on feedback from others!

Going to go ahead and merge this... are there any Migration notes required?

@kball Not migration notes though updating the docs to point out this feature would be great.

Opened https://github.com/zurb/foundation-sites/issues/9962


Set "Highlight" on server side with jsdom

I have used rangy at client side and got range like "type:textContent|2335$2406$1$highlight$".
But now i want to set "highlight" class with span on selected range at server side in node.js with jsdom.
Is there any way to use it or any other alternative?

I'm basically trying to achieve the same thing - pre-rendering highlights on the server. In my case, I got rangy working perfectly on the client side. But my application frequently needs to display several 100s of highlights (including overlapping and intersecting highlights).
In principle, everything works as it should. But the rendering is becoming painfully slow (several minutes). So my plan was to do all the DOM manipulation on the server and then just push the rendered HTML to the client.
Has there been any progress on this?

You can't use this range value as it will give you different range on serv

I'm using my own storage, with text offsets, combined with Rangy's range.selectCharacters (see #330). So I guess the approach should work... at least in theory... if Rangy's text selector works on the server in principle.

U r right. I gonna same theory. Buy unfortunately jsdome add or remove some extra space at server side.

Try with last line of one paragraph and first line of second paragraph. Or test with list items.

Thanks - I'll definitely try this out. However at the moment I can't even get Rangy to run at all. It seems I can call window.rangy.init() just fine. But then, the window.rangy object does not contain a .createRange() method.
Any thoughts and/or some sample code you used to run rangy on jsdom?

P.S.: my code basically just does this...
var jsdom = require("jsdom");

jsdom.env(
  '
Hello World!
',

  [
    "http://code.jquery.com/jquery.js",
    "rangy-core.js",
    "rangy-textrange.js"
  ],

  function (err, window) {
    window.jQuery(window).ready(function() {
      window.rangy.init();
      var range = window.rangy.createRange();
      range.selectCharacters(jQuery('p')[0].childNodes[0], 3, 6);
      console.log('selected: ' + range.toString());
    });
  }

);

but then silently crashes at the .createRange call.

The error that rangy gives is
"Rangy is not supported in this environment. Reason: Neither Range nor TextRange are available"
and jsdom doesn't have ranges implemented as of yet
https://github.com/tmpvar/jsdom/issues/317


anonymous user downloading form

When an anonymous user tries to download a form, it causes a 500 error.
http://formhub.org/odk_viewer/export_spreadsheet/tutorial_1.csv
The error:
File "/project_env/lib/python2.6/site-packages/django/db/models/fields/init.py", line 292, in get_prep_lookup
return self.get_prep_value(value)
File "/project_env/lib/python2.6/site-packages/django/db/models/fields/init.py", line 479, in get_prep_value
return int(value)
TypeError: int() argument must be a string or a number, not 'AnonymousUser'

This can be fixed by putting an @login_required decorator on this view:
https://github.com/modilabs/formhub/blob/master/odk_viewer/views/csv_export.py#L90


Hardware Buttons Forward/Backward Vol +/- does not work

Hi,
at first, thank you for this great Projekt.
I have some Issues with the GPIO Buttons Vol up / down and also Forward and Backward.
Play/Pause and on/off is working fine.
Is there a possibility to test the buttons and see it in the command line?
Thanks for your help
pi@raspberrypi:~ $ /home/pi/RPi-Jukebox-RFID/scripts/helperscripts/Analytics_AfterInstallScript.sh

*** PHONIEBOX INFO
*** version: 2.0 rc7
*** edition: plusSpotify
*** Audio_iFace_Name: PCM
*** Audio_Folders_Path: /home/pi/RPi-Jukebox-RFID/shared/audiofolders
*** Audio_Volume_Change_Step: 7
*** Max_Volume_Limit: 100
*** Idle_Time_Before_Shutdown: 60
*** Second_Swipe: PAUSE
*** Playlists_Folders_Path: /home/pi/RPi-Jukebox-RFID/playlists
*** ShowCover: ON

*** CONF FILES DEFAULT
*** /etc/samba/smb.conf
-rw-r--r-- 1 root root 8.2K Oct  3 14:55 /etc/samba/smb.conf
path=/home/pi/RPi-Jukebox-RFID/shared
path=/home/pi/RPi-Jukebox-RFID/shared/audiofolders
*** /etc/lighttpd/lighttpd.conf
-rw-r--r-- 1 root root 2.1K Oct  3 14:55 /etc/lighttpd/lighttpd.conf
*** /etc/lighttpd/conf-available/15-fastcgi-php.conf
-rw-r--r-- 1 root root 575 Oct  3 14:55 /etc/lighttpd/conf-available/15-fastcgi-php.conf
*** /etc/php/7.0/fpm/php.ini
ls: cannot access '/etc/php/7.0/fpm/php.ini': No such file or directory
*** /etc/sudoers
-r--r----- 1 root root 784 Oct  3 14:55 /etc/sudoers
*** /etc/systemd/system/phoniebox*
-rw-r--r-- 1 root root 296 Oct  3 14:55 /etc/systemd/system/phoniebox-rfid-reader.service
-rw-r--r-- 1 root root 340 Oct  3 14:55 /etc/systemd/system/phoniebox-startup-sound.service
-rw-r--r-- 1 root root 289 Oct  3 14:55 /etc/systemd/system/phoniebox-gpio-buttons.service
-rw-r--r-- 1 root root 291 Oct  3 14:55 /etc/systemd/system/phoniebox-idle-watchdog.service
*** /etc/mpd.conf
-rw-r----- 1 mpd audio 13K Dec 16  2018 /etc/mpd.conf
music_directory         "/var/lib/mpd/music"
music_directory are changed.
symbolic links outside of the configured music_directory.
symbolic links inside of the configured music_directory.
mixer_control   "PCM"           # optional
mixer_control   "PCM"           # optional
*** /etc/dhcpcd.conf
-rw-rw-r-- 1 root netdev 131 Oct  3 14:55 /etc/dhcpcd.conf
static ip_address=<IP_ADDRESS>/24
static routers=<IP_ADDRESS>
static domain_name_servers=<IP_ADDRESS> <IP_ADDRESS>
*** /etc/wpa_supplicant/wpa_supplicant.conf
-rw-rw-r-- 1 root netdev 149 Oct  3 14:55 /etc/wpa_supplicant/wpa_supplicant.conf
country=DE

*** +Spotify Edition
*** /etc/locale.gen
-rw-r--r-- 1 root root 8.9K Oct  3 14:55 /etc/locale.gen
*** /etc/locale.gen
-rw-r--r-- 1 root root 8.9K Oct  3 14:55 /etc/locale.gen
*** /etc/mopidy/mopidy.conf
-rw-r----- 1 mopidy root 1.1K Oct  3 14:55 /etc/mopidy/mopidy.conf
username
*** ~/.config/mopidy/mopidy.conf
ls: cannot access '/home/pi/.config/mopidy/mopidy.conf': No such file or directory
cat: /home/pi/.config/mopidy/mopidy.conf: No such file or directory

I try to give a few hints.
If 2 of the 5 buttons are working, I would start with checking the pinout.
IO number vs Pin number can be quiete confusing with the RaspberryPi. https://www.raspberrypi.org/documentation/usage/gpio/ has picture containing both information.
For debugging on the command line there are several options:

stop the  gpio service and call the script from the command line. This will print the changes mpd sees everytime a button is pressed. Try it first with Play to see what it looks with a working button
 sudo systemctl stop phoniebox-gpio-buttons.service
cd ~/RPi-Jukebox-RFID
./scripts/gpio-buttons.py
as above but additionaly edit gpio-buttons.py and add a print("button xyz was pressed  ") in the def def_but section. see example below. this should print the message if the button is pressed
def def_volD():
    print("button volume down was pressed")
    check_call("./scripts/playout_controls.sh -c=volumedown", shell=True)

For debugging purposes there is the handy command line utility gpio which can be installed via
sudo apt-get install wiringpi
Have a look at http://wiringpi.com/the-gpio-utility/ for all commands.
The command gpio readall shows you that state of all I/Os.
You can have a "live view" by executing watch -n 0.1 gpio readall

@Florian1974 @Squelsh
Thanks a lot! This helped me to find the issue.
My buttons are not working relieable. I ordered new ones.
When they arrived and I have some time, I give you a feedback :)
Maybe meanwhile the reaction failure with the buttons is already fixed.
Thanks again!


Binary Gulp Not found

When Doing yarn start Git said the binary gulp was not found how do I fix this issue?
(exact error
$ yarn start yarn run v1.1.0 $ gulp error Couldn't find the binary gulp info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.  Thanks for your time please help me!

You forgot to run yarn install. If you're on Windows, you need to run the Install.bat file in the SharpBot folder.


Minimal Dockerfile?

Could someone please add minimal Dockerfile (even to run it on CPU) ?
Thank you!

I've added a Dockerfile in 1beb83d. Let me know if you have any issues using it.


Controlling privacy light, buzzer and arcade button

I have looked at aiy.vision.leds and have not been successful in even turning on the privacy light.
Below is my naive attempt to turn on the privacy led.
also what is the GPIO  pin  for the led so I can do it directly with low level code.
Also  GPIO for buzzer and Arcade button
is there a basic example for the arcade button.
print ("----- Start AIY_LED +++++")
from aiy._drivers._hat import get_aiy_device_name
from aiy.toneplayer import TonePlayer
from aiy.vision.inference import CameraInference
from aiy.vision.leds import Leds
from aiy.vision.leds import PrivacyLed
from aiy.vision.models import face_detection
from contextlib import contextmanager
from gpiozero import Button
from picamera import PiCamera
import time
print ("+++++ Imports Completed +++++")
leds = Leds()
leds.privacy_on(brightness = 255)
time.sleep(3)
Thanks

Please check our code examples:  https://github.com/google/aiyprojects-raspbian/blob/aiyprojects/src/examples/vision/leds_example.py

The example you provide imports:
from aiy.leds import Leds
from aiy.leds import Pattern
from aiy.leds import PrivacyLed
from aiy.leds import RgbLeds
Which are not found...but when I change this to
from aiy.vision.leds import Leds
from aiy.vision.leds import Pattern
from aiy.vision.leds import PrivacyLed
from aiy.vision.leds import RgbLeds
The demo works.
I am now going to see what I can do in my own test.
Thanks


implementation version of zugferd is null

In the generated xml of ZUGFeRD2PullProvider the comment states that the implementation version is null:
<rsm:CrossIndustryInvoice xmlns:rsm="urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ram="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100" xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100" xmlns:qdt="urn:un:unece:uncefact:data:standard:QualifiedDataType:100">
  <!-- generated by: mustangproject.org vnull-->
  <rsm:ExchangedDocumentContext>

mustang Version: 2.14.0
Steps to recreate:

Use the ZUGFeRD2PullProvider to generate an xml.
The generated xml should contain "vnull"

I believe thats on test versions only because it usues a placeholder which is only generated when a release is run... if anybody ever finds out how to generate the placeholder files pls add it to the dev doc :-)

You could create a filtered resources file src/main/resources-filtered/mustang.properties like this:
<EMAIL_ADDRESS>
and add to the build section of the pom.xml
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>false</filtering>
            </resource>
            <resource>
                <directory>src/main/resources-filtered</directory>
                <filtering>true</filtering>
            </resource>
        </resources>

and finally put that in a constant:
public class Constants {
    public static final String VERSION_STRING;

    static {
        try (InputStream is = ImsConstants.class.getClassLoader().getResourceAsStream("mustang.properties")) {
            if (is == null) {
                throw new IOException("File not found");
            }
            Properties mustangProperties = new Properties();
            mustangProperties.load(new InputStreamReader(is));
            VERSION_STRING = "Mustang " + mustangProperties.getProperty("mustang.version");
        } catch (IOException e) {
            throw new IllegalStateException("Could not access properties", e);
        }
    }
}

to fix your trouble check this solution click
maybe this will solve your problem.


Raspberry pi getting started points to deprecated base image

Hi,
Don't know which file to edit, the improve this doc button points to a 404.
However, the raspberry-pi (1) in-combination with python getting started doc, refers to the resin/raspberrypi-python base image but this should be resin/raspberry-pi-python. Since raspberrypi is replaced with raspberry-pi
Thanks!

@nghiant2710 is resin/raspberrypi-python deprecated?

https://hub.docker.com/r/resin/raspberrypi-python/ says "This repository is obsolete." and https://hub.docker.com/r/resin/raspberry-pi-python/ does indeed appear to be the correct one. The base-images docs also refer to resin/raspberry-pi-python.
Hmmm... https://docs.resin.io/runtime/resin-base-images/ has Docker images named like resin/raspberry-pi-python, resin/raspberry-pi2-python and resin/raspberrypi3-python whereas https://docs.resin.io/devicetypes/ lists the "Resin Machine Name"s as raspberrypi, raspberrypi2 and raspberrypi3.
https://docs.resin.io/deployment/docker-templates/ also claims the Docker images are named like resin/raspberrypi-python, resin/raspberrypi2-python and resin/raspberrypi3-python, which again conflicts with what https://docs.resin.io/runtime/resin-base-images/ says :confused:

@FRVisser @floion and @lurch yup, its pretty confusing, but this is the following correct base images:

resin/raspberry-pi-*
resin/raspberry-pi2-*
resin/raspberrypi3-*

Note: the RPI3 base image is different from all the others due to some ugly legacy reasons.


Specflow 2.2

Hi
I wanted to ask if is there any plan to make it work with Specflow 2.2?
Right now, even using the pull request from @zaccharles (https://github.com/gasparnagy/SpecFlow.Autofac/pull/7) I still face some issues when my BeforeFeature hook has FeatureContext as parameter to be resolved.
Basically it goes to ResolveBindingInstance before registering scenario/feature in runtimePluginEvents.CustomizeScenarioDependencies
That only happens if you are using 2.2 Specflowchanges (Like I mentioned, BeforeFeature with feature context as parameter)
Thanks!

@Icaroto yes. i will try to make it in one of my evenings next week.

Hi,
I also want to ask you about Specflow 2.2 version support?
Do you have any plans to include it in the feature versions and eventually when?
Regards,
Elena

Hi Gaspar,
any updates on the Specflow 2.2 support? I saw you merged https://github.com/gasparnagy/SpecFlow.Autofac/pull/7 but at least the NuGet Package still has 2.1. as dependency.
BR,
Matthias

@matthiaslischka @elenatosheva The upgrade was done a couple of days ago (just forgot to push). I was struggling with #6, that turned out to be a more generic issue (or even two), but I have a workaround at least.
I will make a pre-release now. If anyone could look at the other open issues that would be great.

https://www.nuget.org/packages/SpecFlow.Autofac/1.1.0-pre20171024


Demo: Migrate to yarn

npm install is having some weird issues, while yarn seem to work well. Also, bumped almost all dependencies.

@birkskyum apparently yarn is already included in the docker node image.  I updated it to the latest just in case.


Update README.md

Fixed a list of found spelling/ grammar mistakes.

Closing based on https://github.com/smartdevicelink/rpc_spec/pull/275#pullrequestreview-475726767


langchain_community.embeddings is depricated and replacing with langc…

from langchain_community.embeddings import VertexAIEmbeddings is depricated and therefore I am replacing this with from langchain_google_vertexai import VertexAIEmbeddings which is the new suggested import from langchain.
This solves https://github.com/crewAIInc/crewAI/issues/1213 from CrewAI
Description
Replaces the deprecated VertexAIEmbeddings module from langchain_community.embeddings with the new recommended module VertexAIEmbeddings from  langchain_google_vertexai .
The change is only a change in the library and the rest of the code remains the same.
The old import creates this issue on CrewAI https://github.com/crewAIInc/crewAI/issues/1213 from CrewAI
Fixes # (issue)
Type of change
Please delete options that are not relevant.

[*] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[*] Refactor (does not change functionality, e.g. code style improvements, linting)
[ ] Documentation update

How Has This Been Tested?
Run CrewAI with the new import fixes the issue I was getting
Please delete options that are not relevant.

[ ] Unit Test
[x] Test Script (please provide)

Checklist:

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

Maintainer Checklist

[ ] closes #xxxx (Replace xxxx with the GitHub issue number)
[ ] Made sure Checks passed

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@anifort Thanks for making this contribution.