Cannot build in place on Mac OS X

So currently both pip install pyhsmm breaks and attempting to manually build via
python setup.py build_ext --inplace --with-cython  breaks with the same error:
pyhsmm/internals/hmm_messages_interface.cpp:271:10: fatal error: 'numpy/arrayobject.h' file not found
There are other examples of this online (i.e. it is apparently due to cython compiler not finding the numpy header files)
Have you successfully compiled on mac?

Yeah; actually my main development machine is a mac.
It sounds like there may be a problem with your python setup. Are you able to build other cython code that uses numpy (via cimport numpy)?
Things to check:

numpy and scipy versions
locate the arrayobject.h file(s) on your system and compare to the output of np.get_include()

If you're not already using anaconda or miniconda, now might be a good time to give those a shot.

Here's a small test to see if cython is able to build things:
Put this in foo.pyx:
import numpy as np
cimport numpy as np

def foo(double[:] a, double[:] b):
    return np.dot(a,b)

Put this in setup.py:
from distutils.core import setup
import numpy as np
from Cython.Build import cythonize

setup(ext_modules=cythonize('*.pyx'), include_dirs=[np.get_include()])

I checked that the generated foo.c includes numpy/arrayobject.h.

Thanks, yep your example didn't work on my machine.  Interesting.  I used to be able to compile, but for some reason it doesn't work now.  Maybe homebrew did something, but I will close this as it is definitely my environment.

Just a heads up:  if I change from:
distutils.core import setup
to:
from numpy.distutils.core import setup
everything works.  This seems super crazy.  Apparently with disutils, the default clang couldn't see the numpy header files?  Strange...


Support for ignoring Daylight Savings Time? (e.g. UTC vs BST)

Checklist

[X] I have filled out the template to the best of my ability.
[X] This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
[X] This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.
I have an electricity meter that provides cheap rate power at night and expensive power during the day. This schedule does not adjust with daylight savings time so is the same all year round despite my local time changing by 1 hour forward in Spring and 1 hour backwards in autumn.
Describe the solution you'd like
Ability to ignore local time and follow UTC with some sort of checkbox.
Describe alternatives you've considered
Manually adjusting my scheduled events.
Additional context
None needed

This is perfect thankyou so much 👍


Option to unlatch the door

Thank you for this addon, it works great and saves me 100€ for the bridge.
Are there any options to add unlatch the door?
This option is in the NukiBleEsp32 library

Hi @leranp, thank you for the positive feedback.
I can try to implement this based on "open" service as defined in the documentation of the lock integration.

Hi @leranp, open was implemented. Please try and let me know if it works for you.

Hi @leranp, open was implemented. Please try and let me know if it works for you.

Hi! I'm very interested in this option too. I'm trying both via command "open" on mqtt and via home assistant service call, but still no joy. I also cleaned build and reinstalled firmware on the esp32, but it seems nothing changed about the command "open". Is there something else I should do to try this new feature? Thanks!!!

this is the log after rebooting the esp32 with the new install:
[19:23:57][D][lock:055]: 'Nuki Lock': Sending state LOCKED
[19:24:09][D][lock:055]: 'Nuki Lock': Sending state UNLOCKED
[19:24:26][I][nukilock.lock :022]: event notified 0
[19:24:29][I][nukilock.lock :034]: Bat state: 0xc8, Bat crit: 1, Bat perc:100 lock state: 3 19:24:32
[19:24:29][D][sensor:125]: 'Nuki Battery Level': Sending state 100.00000 % with 0 decimals of accuracy
[19:24:35][W][lock:046]: 'Nuki Lock' Does not support Open.
[19:25:05][W][lock:046]: 'Nuki Lock' Does not support Open.
[19:25:30][I][ota:105]: Boot seems successful, resetting boot loop counter.
[19:25:30][D][esp32.preferences:114]: Saving preferences to flash...

Hi @leranp, open was implemented. Please try and let me know if it works for you.

Hi! I'm very interested in this option too. I'm trying both via command "open" on mqtt and via home assistant service call, but still no joy. I also cleaned build and reinstalled firmware on the esp32, but it seems nothing changed about the command "open". Is there something else I should do to try this new feature? Thanks!!!

I have the same results, open command doesn't do anything

@marcor78, @leranp, I'm not sure how you've cleaned the build, but esphome clean does not delete the external components folder. Please delete manually .esphome/external_components, compile and run again.

@marcor78, @leranp, I'm not sure how you've cleaned the build, but esphome clean does not delete the external components folder. Please delete manually .esphome/external_components, compile and run again.

You are right, cleaning the compile folder was fixed the problem and now the open command is working great, thanks again

Great to hear.
@marcor78, waiting also for your feedback. Please confirm that it works, or reopen the issue if it doesn't.

Great to hear. @marcor78, waiting also for your feedback. Please confirm that it works, or reopen the issue if it doesn't.

Just tried again and it works flawlessly! In my case, deleting .esphome/external_components wasn't enough. I had to also manually delete the esp32 specific content in folder .esphome/build/xxxx, then compiling again and reflash the esp32. But then finally everything works as expected. I still can't run the open command in home assistant (service lock.open yield an API error in Nodered), but the command given through mqtt (nuki-lock/lock/nuki_lock/command open) works perfectly. Thanks so much!


python310Packages.yalexs-ble: init at 1.1.3

Description of changes
Library for Yale BLE devices
https://github.com/bdraco/yalexs-ble

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 186062 run on x86_64-linux 1

2 packages built:

python310Packages.yalexs-ble
python39Packages.yalexs-ble

Result of nixpkgs-review pr 186062 run on aarch64-linux 1

2 packages built:

python310Packages.yalexs-ble
python39Packages.yalexs-ble


Publish package to npm

It would make a lot of sense to publish this package to npm so updating would be a lot easier.

+1 great idea! ;)

Actually it is already on npm : #248

But a very old version.


problem when testing posenet?

Hi,@tinghuiz
I want to train posenet on KITTI data_odometry_color. And i got the trianed net. BUT when i testing , the problem as following:
InvaildArugmentError: Assign requires shapes of both tensors to match. lhs shape=[7,7,15,16], rhs shape=[7,7,9,16].
But it didn't exist on your posenet.
Whether if you train posenet or save it independly?

I guess I know the reason. The data you input is generated with sequence length 5 while the model is trained with sequence length 3. So the shape is not consistent. So you may need to change the sequence length in test_pose.py.

@Huang-Jin Ohh, thank you. It's unconsistent sequence length that cause it.

@Huang-Jin I used kitti_odometry because that's the official KITTI split for odometry benchmarking.


How to set timer for the running time of each algorithm?

I had two questions about your library:

How to get the exact running time of each algorithm? I noticed there is a startTimer() and stopTimer command, but there is no duration time when the running finishes.

How to run and debug the algorithms in Visual Studio without using the gui? For example, if I wanted to change something about one of the algorithms and see the result in a VS solution file.

Hi @hadi-ghnd
Thanks for your questions, and sorry for my late reply. Here are my comments:

How to get the exact running time of each algorithm? I noticed there is a startTimer() and stopTimer command, but there is no duration time when the running finishes.

Following this post, you can compute the running time using the following code:
const clock_t begin_time = clock();
// ...your code...
std::cout << float(clock () - begin_time) / CLOCKS_PER_SEC << std::endl;

How to run and debug the algorithms in Visual Studio without using the gui? For example, if I wanted to change something about one of the algorithms and see the result in a VS solution file.

You can check the examples folder added in the new version of the master branch.
Please, see: https://github.com/andrewssobral/bgslibrary/tree/master/examples

Update:
For the the running time, you can also use:
auto t_start = std::chrono::high_resolution_clock::now();
// ...your code...
auto t_end = std::chrono::high_resolution_clock::now();
double elaspedTimeMs = std::chrono::duration<double, std::milli>(t_end-t_start).count();
std::cout << "Elapsed time: " << elaspedTimeMs << "ms" << std::endl;


Cancel previous workflows

:scroll: Description
#skip-changelog
:bulb: Motivation and Context
Adds https://github.com/styfle/cancel-workflow-action to cancel previous workflows.
:green_heart: How did you test it?
:pencil: Checklist

[ ] I reviewed submitted code
[ ] I added tests to verify changes
[ ] I updated the docs if needed
[ ] All tests passing
[ ] No breaking changes

:crystal_ball: Next steps

Codecov Report
Base: 90.21% // Head: 90.13% // Decreases project coverage by -0.08% :warning:

Coverage data is based on head (2056140) compared to base (b728df4).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1119      +/-   ##
==========================================
- Coverage   90.21%   90.13%   -0.09%
==========================================
  Files         117      108       -9
  Lines        3597     3405     -192
==========================================
- Hits         3245     3069     -176
+ Misses        352      336      -16

Impacted Files
Coverage Δ

dio/lib/src/sentry_dio_extension.dart

logging/lib/src/logging_integration.dart

dio/lib/src/breadcrumb_client_adapter.dart

logging/lib/src/extension.dart

dio/lib/src/failed_request_interceptor.dart

dio/lib/src/sentry_transformer.dart

dio/lib/src/tracing_client_adapter.dart

dio/lib/src/dio_event_processor.dart

dio/lib/src/sentry_dio_client_adapter.dart

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


physical resource name limit

Is this feature request related to a new rule or cfn-lint capabilities?
No response
Describe the feature you'd like to request
I want to be able to determine before launching CFN if any resources have names which exceeds the service limitations.
Lambda functions limit is 64 characters
buckets are limited to 64 characters
glue jobs are 255 characters
event bridge rules are 64 characters.
If I've use CDK to dynamically generate the names (so they are static in the outputted cfn) the names may exceed the limitations of the individual service
Describe the solution you'd like
an error generated if any resources with static names(no sub or ref support) has a name which exceeds the max length supported by those resources.
Additional context
No response
Is this something that you'd be interested in working on?

[ ] 👋 I may be able to implement this feature request

Would this feature include a breaking change?

[ ] ⚠ This feature might incur a breaking change

@kddejong Did a quick check of the code base, but isn't this already (largely) implemented via src/cfnlint/rules/resources/properties/StringSize.py that fetches StringMin and StringMax (E3033)?
If I create a template of an AWS::S3::Bucket with a BucketName longer than 63 characters I get this:
$ cfn-lint s3-bucket.yml
E3033 String has to have length between 3 and 63 at Resources/S3Bucket/Properties/BucketName. Current length 71.

@ashemedai I think you're right

[X] Lambda functions limit is 64 characters
[X] buckets are limited to 64 characters
[ ] glue jobs are 255 characters
[ ] event bridge rules are 64 characters.

Shouldn't be hard to add the other two as we have the process to do this.

This PR should take care of the other two

@kddejong Fastest would be to get a proper entry to src/cfnlint/data/CloudSpecs/us-east-1.json e.g.
  "AWS::Glue::Job.Name": {
  "AllowedPatternRegex": "^[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*$",
  "StringMax": 255,
  "StringMin": 1
  },
  "AWS::Events::Rule.Name": {
  "AllowedPatternRegex": "^[\.\-_A-Za-z0-9]+$",
  "StringMax": 64,
  "StringMin": 1
  },

It currently does not have such an entry for Glue Job Name or Events Rules Name that I can spot quickly. The pattern matches might need some tweaking between what I found in documentation and proper JSON/JavaScript regex.

@ashemedai we can for sure build out some more additions here. As these resources move to the registry we should see these values auto-populate as well.


Support for Backup Channels using FFMPEG as buffer.

Adding in Github for tracking.
When selecting FFMPEG as the buffer in Threadfin, threadfin does not cycle through the backup channel if one is set.
Add support for Backup Channels using FFMPEG as the buffer.

Duplicate of #12

I don't believe this is a duplicate of #12.
#12 is regarding Threadfin, while using Threadfin Buffer, not cycling through a backup channel if said backup channel every errored out.


ExceptionMapping for path and body id mismatch

We need an exception handling when path id and the id in the body not matching during entity creation.
Similar to the handling in issue #11

PR #17

fixed with #17


Suggested steps too low

Describe the bug
The suggested steps are in some cases too low for a successful proof. While 1672 steps are suggested, 1768 steps are required.
$ run_spat -Ptest.gpr --suggest
[...]
package Prove is
   for Proof_Switches ("rflx-arrays-tests.adb") use ("--prover=Z3", "--steps=1672", "--timeout=1");
end Prove;

$ sparkprof -Ptest -u rflx-arrays-tests
---------------------------------------------------------------------------------------
UNIT                                                  MAX STEPS    MAX TIME  TOTAL TIME
[...]
rflx-arrays-tests                                       1768 steps     0.0 s     0.0 s

Here is the relevant .spark file: rflx-arrays-tests.spark.txt
Used version: run_spat V1.1.3 (compiled by SYSTEM_NAME_GNAT Community 2020 (20200429-93))

I can confirm the defect.
Maximum number of steps reported in that file is '1864090' Z3 steps, which by the Z3 formula (steps - 450_000) / 800 should translate into the expected 1768 steps.
Instead, spat seems to pick up '1786890' Z3 steps as maximum, which by above formula result in the reported 1672 steps.
No obvious reason why that would happen, I'll investigate.

Fixed in v1.1.4 and fix merged to main branch.


Refreshing Component and Pass Value

Question
Here is a nice demo to update a component from a other component: https://putyourlightson.com/sprig/cookbook#refreshing-components
{# Sets the `id` attribute on the component #}
{{ sprig('_components/counter', {}, {'id': 'counter'}) }}

{# Sets the `_` attribute on the component #}
{{ sprig('_components/entry') }}

{{ sprig.script }}

{#--- _components/counter ---#}

{# Sets the value to `1` if this is an AJAX request (not initial page load) #}
Liked: {{ sprig.isRequest ? 1 : 0 }}

{#--- _components/entry ---#}

{% set entry = craft.entries.one() %}

{% if sprig.isRequest %}

{% endif %}

  {{ entry.title }}

  {# If this is an AJAX request (not initial page load) #}
  {% if sprig.isRequest %}

  {% else %}
    {# Refreshes the component on click #}

  {% endif %}

I want to pass a value from the entry component to the counter component and show this value there but I couldn't find a way to do this. Maybe this is more complicated than I thought. Any hints how I can solve this?

You can do this via Javascript, but I'd need to see a use-case to give you pointers.


texlab: 3.3.0 → 3.3.1

Motivation for this change
Update to the latest version: https://github.com/latex-lsp/texlab/releases/tag/v3.3.1
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

@doronbehar

Result of nixpkgs-review pr 146005 run on x86_64-linux 1

1 package built:

texlab

Result of nixpkgs-review pr 146005 run on x86_64-darwin 1

1 package built:

texlab

The Darwin build is still affected by https://github.com/NixOS/nixpkgs/issues/144704, it took me 8 tries to get it to build.


improvements to rtm_send_message() example in docs

Description
The docs show an example for sc.rtm_send_message() that has some confusion nuance.

the snippet is missing a call to sc.rtm_start() which is necessary.
while it will work from the repl, it usually doesn't work from a file. my hunch is that its because the "hello" message from the platform has not arrived at the client at the time sc.rtm_send_message() is called. there doesn't seem to be a reliable way to wait for that "hello" message (doing so would require a queue or a loop inside the client).

Let's try and improve that example.
Requirements (place an x in each of the [ ])

[x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
[x] I've read and agree to the Code of Conduct.
[x] I've searched for any related issues and avoided creating a duplicate issue.

I'm closing this issue as there are currently no plans to improve examples for previous versions.


Create business process flow from https://web.powerapps.com/.

Unable select solution, can only create with prefix new_.

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

ID: 5dad73cd-63b8-b3e3-dc37-c48dbad9205f
Version Independent ID: 8e8cf5c4-5ec6-8c57-f97c-41841296de8c
Content: Add an on-demand workflow to a business process flow - Microsoft Flow
Content Source: flow-docs/bpf-add-on-demand-workflow.md
GitHub Login: @Mattp123
Microsoft Alias: matp

@MSFTMan Can you please look into this issue.

@JaKovac87 Thanks for reporting this issue. We are not able to reproduce this issue. Kindly let us know if you can still reproduce this. Thanks!


Integrate Rat Check

Add files/items needed to configure Apache Rat Check. Good reference is https://github.com/apache/daffodil

The sbt header check plugin can be removed in favor of the rat check.
#29 broke headerCheck on existing scala files, but that doesn't matter much since they need updated for #27 anyhow.


Line detection using hough transform in Matlab

Topic Suggestion
Line detection using hough transform in Matlab
line detection using hough transform in Matlab
Proposed article introduction
Hough transform is a technique which can be used to isolate features of a particular shape within an image. Because it requires that the desired features be specified in some parametric form, the classical Hough transform is most commonly used for the detection of regular curves such as lines, circles, ellipses, etc. A generalized Hough transform can be employed in applications where a simple analytic description of a feature(s) is not possible. Line detection is important in analysis of two objects. This can give more important link between two objects.
In this tutorial, we will look at how we can use the hough transform in Matlab. We will understand the importance of the line detection and how to carry this out using Matlab code.
Key takeaways

Standard hough transform.
Extracting line segments using hough transform.
Matlab code

Article quality
This article cover hough transform into details and how we can use this transform to detect lines and extract line segments.
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

How does your article differ from the official docs? @atienodorine3

This article shows how to create a hough transform matrix, locate peaks and extract line segments. Also, here we use the utility function hough transform matrix.
In this article, we make use of the colour thresholding app and perform BLOB analysis for the images.

Sounds like a helpful topic - let's please be sure it adds value beyond what is in any official docs and/or what is covered in other blog sites. (the articles should go beyond a basic explanation - and it is always best to reference any EngEd article and build upon it). @atienodorine3
Please be attentive to grammar/readability and make sure that you put your article through a thorough editing review prior to submitting it for final approval. (There are some great free tools that we reference in EngEd resources.)
ANY ARTICLE SUBMITTED WITH GLARING ERRORS WILL BE IMMEDIATELY CLOSED.
Please be sure to double-check that it does not overlap with any existing EngEd articles, articles on other blog sites, or any incoming EngEd topic suggestions (if you haven't already) to avoid any potential article closure, please reference any relevant EngEd articles in yours. - Approved


Write "parallel: reading inputs from standard input" to STDERR

parallel always print parallel: reading inputs from standard input to STDOUT, writing to STDERR would be better.

Issue Resolved


Add logs in e2e tests when running agent commands

What does this PR do?

Add logs in e2e tests, in the hostname subcommand tests, and in general when running agent commands.
Motivation

We had a test last 1h40m without any logs (and it succeeded eventually !), so we don't even know where it was blocked.
Pulumi logs have recently been removed, resulting in not really knowing what's happening unless adding a lot of logs in the test. Adding these logs should help understand what's going on.
Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

/merge


issue-470

This looks very good. But we should merge it into our develop.
@TiSiE how do we do this?

This relates to #470


Port "truckersmp-cli" script to Python 3

Porting truckersmp-cli script to Python 3, with some new features and improvements.

Don't create/use temporary files
Don't use external program to download files
Long options (e.g. --update) can be specified
Check MD5s when downloading mod files
Detect Steam installation on Debian-based systems (~/.steam/debian-installation/ or ~/.steam/)
Use OpenGL rendering backend by default (D3D11 can be used but it doesn't work without native 64-bit d3dcompiler_47.dll)
Provide an option to activate (download + add DLL override setting) native 64-bit d3dcompiler_47.dll when starting (needed for D3D11 rendering backend)
Provide an option to start singleplayer game (useful for save editing, using DXVK, etc.)
Logging

Python ~3.2 (released in Feb 2011)~ 3.3 (released in September 2012) or later is required (for subprocess.DEVNULL ~and shutil.which()~).
List of options:

Short option
Long option
Description

-a
--ats
Use American Truck Simulator

-e
--ets2
Use Euro Truck Simulator 2

-p
--proton
Start the game with Proton

-w
--wine
Start the game with Wine

-h
--help
Show help

-s
--start
Start the game

-u
--update
Update the game

-v
--verbose
Verbose output (none:error, once:info, twice or more:debug)

-g DIR
--gamedir DIR
Choose a different directory for the game files [Default: $XDG_DATA_HOME/truckersmp-cli/(Game name)/data]

-i APPID
--proton-appid APPID
Choose a different AppId for Proton (Needs an update for changes)

-m DIR
--moddir DIR
Choose a different directory for the mod files [Default: $XDG_DATA_HOME/truckersmp-cli/TruckersMP, Fallback: ./truckersmp]

-n NAME
--account NAME
Steam account name to use

-o DIR
--protondir DIR
Choose a different Proton directory [Default: $XDG_DATA_HOME/truckersmp-cli/Proton]

-l LOG
--logfile LOG
Write log into LOG, -vv option is recommended [Default: Empty string (only stderr)] Note: Messages from Steam/steamcmd won't be written, only from this script (Game logs are written into My Documents/{ETS2,ATS}MP/logs/client_*.log)

-x DIR
--prefixdir DIR
Choose a different directory for the prefix [Default: $XDG_DATA_HOME/truckersmp-cli/(Game name)/prefix]

-c
--activate-native-d3dcompiler-47
Activate native 64-bit d3dcompiler_47.dll when starting (Needed for D3D11 renderer)

(Not available)
--use-wined3d
Use OpenGL-based D3D11 instead of DXVK when using Proton

(Not available)
--enable-d3d11
Use Direct3D 11 instead of OpenGL

(Not available)
--disable-proton-overlay
Disable Steam Overlay when using Proton

(Not available)
--beta VERSION
Set game version to VERSION, useful for downgrading (e.g. temporary_1_35)

(Not available)
--singleplayer
Start singleplayer game, useful for save editing, using/testing DXVK in singleplayer, etc.)

I just discovered this repo, thank you so much for this handy tool.
I hope my impromptu review was not out of place, I just want to help :)

What do I need to provide to debug this? I'm running into Unable to find ETS2 or ATS in this GAMEDIR and have come here as per suggestion.
Installation runs fine but when I go to launch it, it still seems to error out.
Arch Linux
Main Steam folder and Proton are on main SSD, game library on external HDD

$ ./truckersmp-cli -eusp -n parkerlreed
...
...
Waiting for user info...OK
 Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
 Update state (0x5) validating, progress: 15.94 (574103108 /<PHONE_NUMBER>)
 Update state (0x5) validating, progress: 34.46<PHONE_NUMBER> /<PHONE_NUMBER>)
 Update state (0x5) validating, progress: 52.80<PHONE_NUMBER> /<PHONE_NUMBER>)
 Update state (0x5) validating, progress: 71.14<PHONE_NUMBER> /<PHONE_NUMBER>)
 Update state (0x5) validating, progress: 89.71<PHONE_NUMBER> /<PHONE_NUMBER>)
Success! App '227300' fully installed.
Traceback (most recent call last):
  File "/home/parker/.local/share/truckersmp-cli/Proton/proton", line 726, in <module>
    g_session.init_session()
  File "/home/parker/.local/share/truckersmp-cli/Proton/proton", line 496, in init_session
    g_compatdata.setup_prefix()
  File "/home/parker/.local/share/truckersmp-cli/Proton/proton", line 296, in setup_prefix
    with self.prefix_lock:
  File "/home/parker/.local/share/truckersmp-cli/Proton/filelock.py", line 323, in __enter__
    self.acquire()
  File "/home/parker/.local/share/truckersmp-cli/Proton/filelock.py", line 271, in acquire
    self._acquire()
  File "/home/parker/.local/share/truckersmp-cli/Proton/filelock.py", line 384, in _acquire
    fd = os.open(self._lock_file, open_mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/parker/.local/share/truckersmp-cli/Euro Truck Simulator 2/prefix/pfx.lock'

You might want to try --gamedir DIR(-g DIR) option. DIR is your game directory.
If you want to debug, insert the code: printdbg("Game directory:", args.gamedir)

Does gamedir want the Steam installed dir or the steamcmd download run by the script? I would assume it would be using what it just downloaded.
When I checked that folder it didn't seem to create the prefix. Which would lead to that error above. Before testing and posting that irst comment I nuked the entire ~/.local/share/truckerms-cli folder so I started fresh with only this python.
[parker@e55 Euro Truck Simulator 2]$ pwd
/home/parker/.local/share/truckersmp-cli/Euro Truck Simulator 2
[parker@e55 Euro Truck Simulator 2]$ ls
data

@parkerlreed Sorry. I found/reproduced the issue (The Python3 script doesn't create new prefix directory when it doesn't exist) and fixed it. Could you retest with latest?

Just got back around to trying this. Appears to launch fine and the menu comes up but mouse interaction is doing nothing. I can get partially through the menus with keyboard.
Is there a way to tell what Proton version this is picking? I have a few custom builds in compatibilitytools.d and I'm not sure if they are interfering.

Testing again I can see that I have control of the mouse for about 1 second after it loads but then it just comes to a stop.
https://www.youtube.com/watch?v=QAO4Gukd-wk

For now, Windows version of d3dcompiler_47.dll (64-bit) is needed for D3D11 renderer. It can be installed via Winetricks. Built-in (Wine/Proton) version of d3dcompiler_47.dll is incomplete and not working (It outputs a lot of <error> Failed to load texture 'xxx.png'. messages and doesn't show TruckersMP login screen).
(Show Proton version)
$ cat ~/.local/share/truckersmp-cli/Proton/version
1574789123 proton-4.11-9

(Install d3dcompiler_47 / ETS2 default prefix)
$ WINEPREFIX=~/.local/share/truckersmp-cli/Euro\ Truck\ Simulator\ 2/prefix/pfx WINE=~/.local/share/truckersmp-cli/Proton/dist/bin/wine winetricks d3dcompiler_47

(Install d3dcompiler_47 / ATS default prefix)
$ WINEPREFIX=~/.local/share/truckersmp-cli/American\ Truck\ Simulator/prefix/pfx WINE=~/.local/share/truckersmp-cli/Proton/dist/bin/wine winetricks d3dcompiler_47

IMPORTANT: If you want to use DXVK, version 1.4.6 or newer is needed (See https://github.com/doitsujin/dxvk/issues/1250). I needed to replace existing DXVK DLLs (/path/to/Proton/dist/lib64/wine/dxvk/) with v1.4.6 DLLs as of Proton 4.11-9.
I tested "Proton 4.11-9 + DXVK 1.4.6 + ETS2MP + native d3dcompiler_47.dll" and it's working.

Thanks for the updates. Any idea why the mouse is killing itself? Same result without the --use-wined3d
[parker@e55 ~]$ cat ~/.local/share/truckersmp-cli/Proton/version
1574789123 proton-4.11-9

Any idea why the mouse is killing itself?

I guess D3D11 renderer is being used without native d3dcompiler_47.dll on your system. Does your terminal show <error> Failed to load texture 'xxx.png'. messages? You can check ~/.local/share/truckersmp-cli/*/prefix/pfx/drive_c/users/steamuser/My Documents/ETS2MP/logs/client_xx_xx_xxxx.log.
Recently (ETS2/ATS v1.36) D3D9 support has been dropped and this is a major change for us. There are 2 options:

Use D3D11 renderer with native d3dcompiler_47.dll: When built-in (Wine/Proton) version of d3dcompiler_47.dll is used, TruckersMP login screen is not shown and mouse cursor doesn't move. When Windows version of d3dcompiler_47.dll (64-bit) is used, TruckersMP login screen is shown. I added --activate-native-d3dcompiler-47(-c) option that downloads/activates the Windows version of DLL (Winetricks is not needed). If you want to use D3D11 renderer, use this option with --start(-s). If you want to use DXVK, use version 1.4.6 or newer.
Use OpenGL renderer: When D3D11 is not available, OpenGL renderer is used as fallback. I added --disable-d3d11 option that disables D3D11. If you want to use OpenGL renderer, use this option with --start(-s). See also https://github.com/lhark/truckersmp-cli/issues/42

Thank you. Will check this out when I get a chance. Appreciate the updates!

Well the native d3dcompiler is definitely out of the question for me... :D https://youtu.be/MllG-N2tj_o?t=19
I'll try and get the DXVK updated

What arguments do I need for DXVK?

Oh it auto used DXVK after the native compiler install

DXVK is used by default when using Proton. wined3d can be used if PROTON_USE_WINED3D=1(--use-wined3d option in this PR) is specified, but I don't recommend it because OpenGL renderer is faster than wined3d.

https://youtu.be/MllG-N2tj_o?t=19

DXVK < 1.4.6 was used when the video was captured, right?

I assume so. It cleared up after 1.4.6. I just thought it was funny.

I assume so. It cleared up after 1.4.6. I just thought it was funny.

All right, thank you for testing and comments.
Have fun!

Haven't seen it by looking at the code, do you mind to include #39?

It has been implemented. This is enabled by default and can be disabled by --disable-proton-overlay option.
Frame rate can be displayed with this "Steam Overlay" and/or "D3D11 + DXVK + environment variable DXVK_HUD" when using Proton.

@parkerlreed @Lucki OpenGL renderer is used by default now because it was less user-friendly (D3D11 has d3dcompiler_47.dll issue). If you want to use D3D11, use --enable-d3d11 option.

I placed mods on ~/.local/share/truckersmp-cli/TruckersMP/data/ets2/mods but still not detecting the mods, what can i do?

@Klairm
"Multiplayer mod" files are downloaded and verified automatically and you don't need to place them manually.
If you see <error> Failed to load texture 'xxx.png'. messages and login screen is not shown, try OpenGL renderer (don't use --enable-d3d11 option) or --activate-native-d3dcompiler-47 option (to use native d3dcompiler_47.dll).
If you mean "Winter mod" and you're using Proton(-p), *.scs files need to be placed into ~/.local/share/truckersmp-cli/Euro Truck Simulator 2/prefix/pfx/drive_c/users/steamuser/My Documents/ETS2MP/mod/.

@Klairm
"Multiplayer mod" files are downloaded and verified automatically and you don't need to place them manually.
If you see <error> Failed to load texture 'xxx.png'. messages and login screen is not shown, try OpenGL renderer (don't use --enable-d3d11 option) or --activate-native-d3dcompiler-47 option (to use native d3dcompiler_47.dll).
If you mean "Winter mod" and you're using Proton(-p), *.scs files need to be placed into ~/.local/share/truckersmp-cli/Euro Truck Simulator 2/prefix/pfx/drive_c/users/steamuser/My Documents/ETS2MP/mod/.

I mean any custom mod, I tried the path you said and still not detecting them, strange

@Klairm Default paths to mod directories (for Proton) are:

ETS2: $XDG_DATA_HOME/truckersmp-cli/Euro Truck Simulator 2/prefix/pfx/drive_c/users/steamuser/My Documents/Euro Truck Simulator 2/mod/
ATS: $XDG_DATA_HOME/truckersmp-cli/American Truck Simulator/prefix/pfx/drive_c/users/steamuser/My Documents/American Truck Simulator/mod/

@Klairm Default paths to mod directories (for Proton) are:
* ETS2: `$XDG_DATA_HOME/truckersmp-cli/Euro Truck Simulator 2/prefix/pfx/drive_c/users/steamuser/My Documents/Euro Truck Simulator 2/mod/`

* ATS: `$XDG_DATA_HOME/truckersmp-cli/American Truck Simulator/prefix/pfx/drive_c/users/steamuser/My Documents/American Truck Simulator/mod/`

Also not working, I tried a lot of paths for the mod, strange issue, and if I use the -m option for a custom path it will also not detect it

@Klairm
The paths work for me in singleplayer game (--singleplayer option is needed).
ETS2:

ATS:

AFAIK almost all 3rd party mods are not compatible with TruckersMP. (ProMods is supported but I can't test "TruckersMP + ProMods" because I don't have map DLCs.)
-m option changes the directory for "Multiplayer mod" and it's unrelated to your issue.
If the paths don't work, more information is needed:

Mod information
Command line and terminal output (use --verbose option)

@Klairm
The paths work for me in singleplayer game (--singleplayer option is needed).
ETS2:

ATS:

AFAIK almost all 3rd party mods are not compatible with TruckersMP. (ProMods is supported but I can't test "TruckersMP + ProMods" because I don't have map DLCs.)
-m option changes the directory for "Multiplayer mod" and it's unrelated to your issue.
If the paths don't work, more information is needed:
* Mod information

* Command line and terminal output (use `--verbose` option)

The mod is the Speed Limit Indicator ( downloaded here https://trucksimulator.org/ets2-speed-limit-indicator-v1-0-1-35-x/)
And there's the information using --verbose ( I don't see anything useful here)  ->  https://pastebin.com/2G0yGGrZ

@lhark what's holding this back? Would you mind to add some more active maintainers?

Today I got a 302 from download.ets2.com which python doesn't seem to follow. Investigating on Firefox it resolves to https://failover.truckersmp.com/. downloads.ets2.com gave me 502.
We should probably add this as fallback or follow the redirect.
** ERROR **  Server download.ets2mp.com responded with status code 302.
** ERROR **  Server downloads.ets2mp.com responded with status code 502.

@Lucki I've given you and @kakurasan access to the repo, which I should have done at least a year ago. I'm sorry I've left this repo hanging for so long :(
I want to thank you for the work you put into improving my little hack. I hope that now with full access to the repo you can continue to push linux gaming forward :)

@Lucki I'd like to combine the commits into a single commit before merging. Is it OK?

Yes, polish it as you like. We need this in master since master is broken quite some time already.

@Lucki Ready to go. I won't merge this myself because this is my PR. Could you merge this pull request instead of me? You can see/click "Merge pull request" button in this page. Thanks.

Thank you for all the feedbacks, comments, and merging (@Lucki).


Allow specifying run name prefix and suffix

This will be displayed before and after the name of a Run respectively.

Prefix: BUILDKITE_ANALYTICS_RUN_NAME_PREFIX
Suffix: BUILDKITE_ANALYTICS_RUN_NAME_SUFFIX

Is it worth adding something to the readme to document how to use this?

Is it worth adding something to the readme to document how to use this?

Yup will ping docs team to get it documented.


Limit memory consumption by removing cancelled tasks from thread pool

Thanks to @galak for pointing out the issue.  I believe the correct solution is identical to the one made by @akarnokd in https://github.com/ReactiveX/RxJava/pull/1922.  This will compile with Java 6/7 but only take effect with a Java7 runtime.

I've done some preliminary investigation into this fix, and it requires replacing the use of ThreadPoolExecutor with SchedulerThreadPoolExecutor, since that's the only concrete implementation that contains the removeOnCancelPolicy configuration.
That comes with some other side-effects: From what I can tell, threads get created eagerly, never get killed by idleness, and come with a default unbounded queue.  I'll need to do some more evaluation on this aspect.

The upcoming RxJava 1.0.5 has a solution for JDK 6 ScheduledThreadPoolExecutors as well by calling purge periodically (the functionality is there and here I added some documentation on configurability just recently).

Thanks for calling that out, @akarnokd .  That looks like it would remove the plumbing around different JDKs from Hystrix, which would be nice.

Punting to 1.4.x - not blocking 1.4.0


Content Suggestion: THNDR GAMES

Link to Content: https://thndr.games
Briefly Describe Content: Lightning Gaming - Win bitcoin playing mobile games via the Lightning Network
Suggested Section: Get Bitcoin

Both games look to enter the gamer into a raffle. What are the odds of winning?

Hey! Correct. As long as the user collects 1 ticket in the game, they are guaranteed 10 sats (at time of writing).
We also do weekly tournaments where users compete in the games for sats prizes. Here is an example of a tournament:
https://thndr.games/event/roadtrip016 (already finished)
Here is our twitter where we post about these tournaments https://twitter.com/thndrgames
We were the first commercial lightning network games on the App Store and Google Play
More information about our back story in this article https://www.btctimes.com/news/lightning-game-startup-thndr-games-surpasses-100000-downloads
:)

Added to new Win section of get-bitcoin page


added option to optimize by comments

Hi,
Ok, I will do that as soon as I have the final version that’s work,
probably until the end of the week.
Sivan
On Mon, 12 Sep 2022 at 11:54 chkp-ofirs @.***> wrote:

Please do the PR to the staging branch
https://github.com/CheckPointSW/SmartMove/tree/staging
—
Reply to this email directly, view it on GitHub
https://github.com/CheckPointSW/SmartMove/pull/87#issuecomment-1243420118,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXRQQX7CJU3MOVRH4GWGDB3V53VS7ANCNFSM6AAAAAAQCOSBBE
.
You are receiving this because you authored the thread.Message ID:
@.***>


puppet/archive: allow 5.x

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

I was hoping that this causes the puppet module tool to resolve the dependencies, but that doesn't work :(

This depends on https://github.com/puppetlabs/puppetlabs-java/pull/476

@bastelfreak puppetlabs/puppetlabs-java#476 is merged now


[Question] gif played issue when slide to pop vc

Hi All,
We are having an issue when playing a gif image.
We find the gif image simply disappeared when we are trying to pop a view controller to the controller which contains the gif image using gestures.
Suppose there is a gif image playing on view controller A, then we push another view controller B on top of it. It is perfectly fine if we click the back button on the navigation bar, but when we try to use the sliding gesture to pop the view controller, the gif image on the previous page disappears during the panning.
Anyone have seen this issue? Many thanks for help.

which version of this library are you using? do you use the FLAnimatedImageView to render the gif? can you replicate it on the demo project?

SDWebImage version is 3.8.2, yet most of my code is still using sd instead of FLAnimatedImageView. Here is my simple demo, I'd appreciate it very much if this problem could be solved, or at least let me known the reason about this phenomenon.
IssueAboutGifDemo.zip

can you try with the latest version 4.0.0 and let us know?
also maybe this ?

ok i'll have a try soon later with 4.0.0, but i think maybe it's not the key point.

closing this. please reopen when you have more info


valueError

I am facing an error with my work with w2w and wonder what is causing this ? i qm using katest version
--> Create LCZ-based urban extent geo_em file (excluding other LCZ-based info)
--> Expanding land categories of parent domain(s) to 41
--> Start sanity check and clean-up ...

Check 1: Urban class removed from geo_em.d03_NoUrban.nc? OK
Check 2: LCZ Urban extent present in geo_em.d03_LCZ_extent.nc?
WARNING: LCZ-based urban extent missing
Check 3: Urban LCZ classes exists in geo_em.d03_LCZ_params.nc? OK: LCZ Classes ([]) present
Check 4: FRC_URB2D present in geo_em.d03_LCZ_params.nc? OK: FRC_URB2D values range between 0.00 and 0.00
Check 5: URB_PARAMS matrix present in file geo_em.d03_LCZ_params.nc? OK
Check 6: Do URB_PARAM variable values follow expected range in geo_em.d03_LCZ_params.nc?

OK for LP_URB2D
OK for MH_URB2D
OK for STDH_URB2D
OK for HGT_URB2D
OK for LB_URB2D
OK for LF_URB2D
Traceback (most recent call last):
File "/home/sarr/.local/bin/w2w", line 8, in
sys.exit(main())
File "/home/sarr/.local/lib/python3.10/site-packages/w2w/w2w.py", line 200, in main
checks_and_cleaning(
File "/home/sarr/.local/lib/python3.10/site-packages/w2w/w2w.py", line 1596, in checks_and_cleaning
if np.nanmax(np.abs((100 - hi_sum).values)) > 0.1:
File "<array_function internals>", line 5, in nanmax
File "/usr/lib/python3/dist-packages/numpy/lib/nanfunctions.py", line 434, in nanmax
res = np.fmax.reduce(a, axis=axis, out=out, **kwargs)
ValueError: zero-size array to reduction operation fmax which has no identity

duplicate #38
please search the issue tracker and use the issue template as we asked you before: https://github.com/matthiasdemuzere/w2w/issues/93#issuecomment-1250083371

Hi,
I certainly should mention #38 and seen how that was fixed. I am surprise because I am using the last version and indicated the band in my w2w command, this is why I am posting it in case the error is from another reason?
Thank you

as long as you don't provide a standalone reproduction (following the issue template) there's nothing we can do here. Please comment on #38 to not have things spread out between 2 issues.


[Bug] Duplicating data message

[REQUIRED] Please fill in the following fields:

Pre-built SDK from the website or open-source from this repo: both_
Firebase C++ SDK version: 8.6.0___
Problematic Firebase Component: messaging___ (Auth, Database, etc.)
Other Firebase Components in use: _____ (Auth, Database, etc.)
Platform you are using the C++ SDK on: Mac_ (Mac, Windows, or Linux)
Platform you are targeting: ios_ (iOS, Android, and/or desktop)

[REQUIRED] Please describe the issue here:
When sending a message like, a second notification comes
{
"data": {
"str1": "str1",
"str2": "str2"
},
"content_available": true
}
Steps to reproduce:
Send message with:
"content_available": true
Have you been able to reproduce this issue with just the Firebase C++ quickstarts ?
Yes
What's the issue repro rate? (eg 100%, 1/5 etc)
100%
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.
Relevant Code:
curl --location --request POST 'https://fcm.googleapis.com/fcm/send'
--header 'Authorization: key=....'
--header 'Content-Type: application/json'
--data-raw '{
"to" : "...",
"content_available": true,
"data" : {
"key1" : "value1",
"key2": "value2",
"key3": "value3"
}
}'

8.7.0 - same problem

Hi @mea405
Are you using Firebase C++ SDK or Firebase Messaging REST API? I am asking because in the Relevant code section, you mentioned a Curl command line.
Also, could you elaborate on what you meant by this?

When sending a message like, a second notification comes
{
"data": {
"str1": "str1",
"str2": "str2"
},
"content_available": true
}

Thank you

Hi,
Our iOS project uses Firebase C++ SDK in  to receive messages. When we send a test message using curl script we get two notifications.
This happens with QuickStart cpp example: https://github.com/firebase/quickstart-cpp/tree/master/messaging/testapp
Moreover, if a regular notification is sent, then the receiving handler is triggered only once.
As far as I can tell, repeated invocation of the receive handler causes
"content_available": true
without which data messages (“silent” messages) are not delivered.
Thank you

On 11 Nov 2021, at 05:56, chkuang-g @.***> wrote:
Hi @mea405 https://github.com/mea405
Are you using Firebase C++ SDK or Firebase Messaging REST API? I am asking because in the Relevant code section, you mentioned a Curl command line.
Also, could you elaborate on what you meant by this?
When sending a message like, a second notification comes
{
"data": {
"str1": "str1",
"str2": "str2"
},
"content_available": true
}
Thank you
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/firebase/firebase-cpp-sdk/issues/716#issuecomment-965944365, or unsubscribe https://github.com/notifications/unsubscribe-auth/AELGYAI3HEB5HDIB3A2PEODULMWENANCNFSM5HELO3OQ.
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Maxim
@.***

I was able to successfully reproduce the problem on iOS using curl and the quick start. Thanks for creating this issue and providing the necessary information to reproduce it!  I'll mark this as a bug so that we can track it internally.

Unfortunately, this seems to still be an issue 2 years later. I am seeing this on 11.6.0, but I'm actually getting three messages per message now.
@DellaBitta Sorry to @ you but could you update the issue internally, or confirm if it still exists?
Thanks


[20.03] pythonPackages.stem: unmarked as broken

The package was marked broken but seems to work on 20.03

suggestion: change title to [20.03] ...
@GrahamcOfBorg build python27Packages.stem python37Packages.stem python38Packages.stem

Best as I can tell, it fails on python3.8 due to platform.linux_distribution() being deprecated on py3.8 (see ofborg log, relevant line I found):
operating system version...                          failed
module 'platform' has no attribute 'linux_distribution'

If you want to unbreak, you should either patch it or see if there's a new upstream version that works with py38

whoops. Looks like this is a duplicate PR of https://github.com/NixOS/nixpkgs/pull/85642. That one includes update to 1.8.0. I'd recommend taking that one instead.

whoops. Looks like this is a duplicate PR of #85642. That one includes update to 1.8.0. I'd recommend taking that one instead.

Alright, thanks!
I'll close this PR in favor of #85642


Enable passing custom class to tooltip

There are some cases we want different tooltip style for different component.
E.g. the arrow direction, different tooltip html style for different component.

Overriding .material-tooltip can change tooltip style, but it will apply to all tooltips.
I haven't found a way we can pass css into the below class (.material-tooltip) and custom the style for different component.

I am a tooltip

I think we can achieve this feature by passing an option class name shown as below.

Please let me know if there is an existing better way to achieve.

I tried changing the style using the html attribute, but that also fails. As soon as I use something as simple as

test tooltip

I just get an empty box
https://jsfiddle.net/zrub5f4k/

You can get around this issue with using the html option
$('.tooltipped').tooltip({
html: "Tooltip"
});


Replace last usages of old Vector2i

Requires changes in a few (mostly world-generating) modules.

Refer to this link for build results (access rights to CI server needed):
http://jenkins.terasology.org/job/TerasologyPRs/298/
Hooray Jenkins reported success with all tests good!


Added Railfence Cipher Algorithm in Python

🛠 Issue (Number) #530

Issue no #530
👨💻 Changes proposed
Added Railfence Cipher algorithm in python

✔ Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

📄 Note to reviewers

📷 Screenshots

Thank you. :)


Update ca.js

Small note change to reflect "and" in catalan. Code was correct.

Thanks for fixing! I merged the changes, but will not bump the version or deploy an update since no code was modified.


What Version of ENet in the Packaged Releases?

I'm curious what version of ENet the packaged releases are using. I can't seem to figure it out on my own. The most recent version of ENet is 1.3.13 and I would like to know how far behind we are.

Everything you need to know described in the readme, please read it carefully. This fork is an independent project which not tied to the original ENet, we freely modify it and move forward.

Ok, that makes sense and also explains why in my situation it's not communicating properly with another instance running the original ENet code. I'm guessing they're no longer using the same exact protocol.
Thanks

Yep, the major 2.x.x version indicating that the protocol is no longer compatible with the original.


PyPI 1.9.2 release on 0d790e7?

It would be great if we could get a PyPI release on 0d790e7 :)

BTW It seems like setup.py version is out of date:
https://github.com/typeddjango/pytest-mypy-plugins/blob/0d790e7a92292da20dcafded1c5b1d637a22b0da/setup.py#L18


Required Roles / Permissions

This article doesn't provide guidance on the necessary roles and permissions to manage OATH tokens. It mentions that the actions can be performed by a Global Administrator, but is that the only role that can perform these actions?

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

ID: 3580bf07-789b-a9c0-26c2-68d21eb66b70
Version Independent ID: f61c354b-cac2-c3e2-881a-2f0540bdd8e1
Content: OATH tokens authentication method - Microsoft Entra ID
Content Source: docs/identity/authentication/concept-authentication-oath-tokens.md
Service: entra-id
Sub-service: authentication
GitHub Login: @Justinha
Microsoft Alias: justinha

@jrg-jeff
Thanks for your feedback! We will investigate and update as appropriate.

Hi @jrg-jeff
While the article does not provide specific guidance on roles and permissions required to manage OATH tokens, it does mention that a Global Administrator can upload and activate OATH tokens. However, it is important to note that Global Administrator is the highest level of administrative privilege in Azure AD, and it is recommended to limit the number of users who have this role.
In general, the ability to manage OATH tokens is controlled by the "Authentication Administrator" role in Azure AD. This role allows users to manage authentication methods, including OATH tokens. Additionally, the "Privileged Authentication Administrator" role can manage authentication methods and also has access to sensitive authentication data.
To assign these roles to users, you can use the Azure AD portal or PowerShell. For more information on managing roles and permissions in Azure AD, you can refer to the following documentation: https://docs.microsoft.com/en-us/azure/active-directory/users-groups-roles/directory-assign-admin-roles

@jrg-jeff
We are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation


Session cannot generate requests

Issue Type: Bug

Behaviour
Get a "Session cannot generate requests" without any additional details.
Expected
At least a button to restart VS Code, Python, the world … whatever needs restarting to fix this Session.
Actual
No button or action to get out of this.
Steps to reproduce:

I was running a Notebook in a Dev Container, all working.
Got a "Kernel is dead" error.
Hit "Restart", hoping this would fix it.
Now I get a "Session cannot generate requests" without any additional details.

Diagnostic data

Python version (& distribution if applicable, e.g. Anaconda): Python 3.7.3
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): unknown
Value of the python.languageServer setting: Jedi

"Python" channel in the OUTPUT panel

Error 2021-07-09 19:27:46: Failed to check if file needs to be fixed [EntryNotFound (FileSystemError): Unable to read file 'vscode-remote://dev-container+7b22686f737450617468223a222f55736572732f64696769746172616c642f7265706f732f6465766469762d6d6574726963732d616e642d616e616c79736573222c2273657474696e6773223a7b22636f6e74657874223a226465736b746f702d6c696e7578227d7d/root/.config/Code - Insiders/User/settings.json' (Error: Unable to resolve non-existing file 'vscode-remote://dev-container+7b22686f737450617468223a222f55736572732f64696769746172616c642f7265706f732f6465766469762d6d6574726963732d616e642d616e616c79736573222c2273657474696e6773223a7b22636f6e74657874223a226465736b746f702d6c696e7578227d7d/root/.config/Code - Insiders/User/settings.json')
	at _handleError (/vscode/vscode-server-insiders/bin/x64/2d23c42a936db1c7b3b06f918cde29561cc47cd6-insider/out/vs/server/remoteExtensionHostProcess.js:84:167834)
	at async y.readText (/root/.vscode-server-insiders/extensions/ms-python.python-2021.7.1012204448-dev/out/client/extension.js:9:344114)
	at async p.doesFileNeedToBeFixed (/root/.vscode-server-insiders/extensions/ms-python.python-2021.7.1012204448-dev/out/client/extension.js:59:589055)
	at async /root/.vscode-server-insiders/extensions/ms-python.python-2021.7.1012204448-dev/out/client/extension.js:59:588182
	at async Promise.all (index 0)
	at async p.getFilesToBeFixed (/root/.vscode-server-insiders/extensions/ms-python.python-2021.7.1012204448-dev/out/client/extension.js:59:588128)
	at async p.updateTestSettings (/root/.vscode-server-insiders/extensions/ms-python.python-2021.7.1012204448-dev/out/client/extension.js:59:587755)] {
  code: 'FileNotFound'
}
Error 2021-07-09 19:27:46: Diagnostic Code: InvalidPythonInterpreterDiagnostic, Message: No Python interpreter is selected. You need to select a Python interpreter to enable features such as IntelliSense, linting, and debugging.
Error 2021-07-09 19:40:35: stderr jediProxy Error (stderr) /root/.vscode-server-insiders/extensions/ms-python.python-2021.7.1012204448-dev/pythonFiles/completion.py:596: DeprecationWarning: Providing the line is now done in the functions themselves like `Script(...).complete(line, column)`
  sys_path=sys.path,

Error 2021-07-09 19:40:35: stderr jediProxy Error (stderr) /root/.vscode-server-insiders/extensions/ms-python.python-2021.7.1012204448-dev/pythonFiles/completion.py:596: DeprecationWarning: Providing the column is now done in the functions themselves like `Script(...).complete(line, column)`
  sys_path=sys.path,
/root/.vscode-server-insiders/extensions/ms-python.python-2021.7.1012204448-dev/pythonFiles/completion.py:596: DeprecationWarning: Deprecated since version 0.17.0. Use the project API instead, which means Script(project=Project(dir, sys_path=sys_path)) instead.
  sys_path=sys.path,

Error 2021-07-09 19:40:35: stderr jediProxy Error (stderr) /root/.vscode-server-insiders/extensions/ms-python.python-2021.7.1012204448-dev/pythonFiles/completion.py:624: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).infer instead.
  script.goto_definitions(), request["id"]

Error 2021-07-09 19:40:44: stderr jediProxy Error (stderr) /root/.vscode-server-insiders/extensions/ms-python.python-2021.7.1012204448-dev/pythonFiles/completion.py:601: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).goto instead.
  script.goto_assignments(follow_imports=True), request["id"]

Error 2021-07-09 19:40:44: stderr jediProxy Error (stderr) Traceback (most recent call last):
  File "/root/.vscode-server-insiders/extensions/ms-python.python-2021.7.1012204448-dev/pythonFiles/completion.py", line 657, in watch
    response = self._process_request(rq)
  File "/root/.vscode-server-insiders/extensions/ms-python.python-2021.7.1012204448-dev/pythonFiles/completion.py", line 601, in _process_request
    script.goto_assignments(follow_imports=True), request["id"]
  File "/root/.vscode-server-insiders/extensions/ms-python.python-2021.7.1012204448-dev/pythonFiles/lib/python/jedi/api/__init__.py", line 353, in goto_assignments
    **kwargs)
  File "/root/.vscode-server-insiders/extensions/ms-python.python-2021.7.1012204448-dev/pythonFiles/lib/python/jedi/api/helpers.py", line 486, in wrapper
    column, line_len, line, line_string))
ValueError: `column` parameter (17) is not in a valid range (0-1) for line 1 ('{\n').

Error 2021-07-09 19:40:44: stderr jediProxy Error (stderr) Traceback (most recent call last):
  File "/root/.vscode-server-insiders/extensions/ms-python.python-2021.7.1012204448-dev/pythonFiles/completion.py", line 657, in watch
    response = self._process_request(rq)
  File "/root/.vscode-server-insiders/extensions/ms-python.python-2021.7.1012204448-dev/pythonFiles/completion.py", line 601, in _process_request
    script.goto_assignments(follow_imports=True), request["id"]
  File "/root/.vscode-server-insiders/extensions/ms-python.python-2021.7.1012204448-dev/pythonFiles/lib/python/jedi/api/__init__.py", line 353, in goto_assignments
    **kwargs)
  File "/root/.vscode-server-insiders/extensions/ms-python.python-2021.7.1012204448-dev/pythonFiles/lib/python/jedi/api/helpers.py", line 486, in wrapper
    column, line_len, line, line_string))
ValueError: `column` parameter (17) is not in a valid range (0-1) for line 1 ('{\n').

Extension version: 2021.8.1013163132
VS Code version: Code - Insiders 1.58.0-insider (2d23c42a936db1c7b3b06f918cde29561cc47cd6, 2021-07-07T12:08:00.172Z)
OS version: Darwin x64 20.5.0
Restricted Mode: No
Remote OS version: Linux x64 5.10.25-linuxkit

System Info

Item
Value

CPUs
Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz (16 x 2400)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
2, 2, 2

Memory (System)
64.00GB (17.36GB free)

Process Argv
--enable-proposed-api donjayamanne.kusto --crash-reporter-id 4cf0a6f0-aaf8-4da3-9b2b-81f6c639c12b

Screen Reader
no

VM
0%

Item
Value

Remote
Dev Container @ desktop-linux

OS
Linux x64 5.10.25-linuxkit

CPUs
Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz (8 x 2400)

Memory (System)
1.94GB (1.41GB free)

VM
0%

A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30291494
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30291487
pythontb:30258533
pythonvspyt551cf:30291413
vspre833:30321513
pythonptprofiler:30281269
vshan820:30294714
pythondataviewer:30285072
vscus158:30321503
pythonvsuse255:30319630
vscorehov:30301224
00j7a122:30294756
vscod805:30301674
pythonvspyt200:30323110
vscextlang:30310088
vsccppwtct:30312693
bridge0708:30335490

@digitarald Could you provide the logs from the Jupyter output?

Also seeing this bug since latest update on linux, unfortunately don't have time to add any info.

@mcchong Please could you file a separate issue with provide the output from the Jupyter output panel.
Closing this issue as its stale.


Added Lab Computers feature

This change is

Reviewed 8 of 8 files at r1.
Review status: all files reviewed at latest revision, 3 unresolved discussions.

app/src/main/AndroidManifest.xml, line 342 at r1 (raw file):

			<meta-data
					android:name="description"
					android:value="Find available on-campus computers." />

Get iOS description

app/src/main/java/edu/byu/suite/features/labComputers/controller/LabComputersMainActivity.java, line 42 at r1 (raw file):

				for (Building building : buildings) {
					int available = 0;
					for (Building.Room room : building.getRooms()) {

We might be able to do this with a filter (if it makes it simpler). Then you can just use the length of the resulting list

app/src/main/java/edu/byu/suite/features/labComputers/service/LabComputersClient.java, line 17 at r1 (raw file):

	@Override
	public String getBaseUrl() {
		return "http://open-computers.lib.byu.edu/";

I believe there is a WSO2 url for this one

Comments from Reviewable

Review status: 6 of 8 files reviewed at latest revision, 3 unresolved discussions.

app/src/main/java/edu/byu/suite/features/labComputers/controller/LabComputersMainActivity.java, line 42 at r1 (raw file):
Previously, romrell4 (Eric Romrell) wrote…
We might be able to do this with a filter (if it makes it simpler). Then you can just use the length of the resulting list

I don't understand

app/src/main/java/edu/byu/suite/features/labComputers/service/LabComputersClient.java, line 17 at r1 (raw file):
Previously, romrell4 (Eric Romrell) wrote…
I believe there is a WSO2 url for this one

Yeah but this is a web view

Comments from Reviewable

Review status: 6 of 8 files reviewed at latest revision, 3 unresolved discussions.

app/src/main/AndroidManifest.xml, line 342 at r1 (raw file):
Previously, romrell4 (Eric Romrell) wrote…
Get iOS description

"BYU offers free use of lab computers in select buildings around campus. This feature will help you find available lab computers."

Comments from Reviewable

Reviewed 2 of 2 files at r2.
Review status: all files reviewed at latest revision, 1 unresolved discussion.

Comments from Reviewable

Review status: 5 of 8 files reviewed at latest revision, 1 unresolved discussion.

app/src/main/AndroidManifest.xml, line 342 at r1 (raw file):
Previously, romrell4 (Eric Romrell) wrote…
"BYU offers free use of lab computers in select buildings around campus. This feature will help you find available lab computers."

Done.

Comments from Reviewable

Reviewed 3 of 3 files at r3.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


/refresh/mode/set. wrong type

Always when I try to set the value of the State /refresh/mode/set to one of the following states (periodic/off/force), I get this error.
You are assigning a string to the state "mqtt.0.saic.xxxxxxxxxx.refresh.mode.set" which expects a number.
Anyone know which numeric values are for the 3 states

Hi @JohGrei
try with:

FORCE: 1
OFF: 2
PERIODIC: 3

Whatever you are doing there, more context would help.

The mode is a string value on the MQTT Broker.
In Python you could re-use the RefreshMode Enum.

Thanks for the reply, i changed the Type in ioBroker to string and now it works without any problems.


[#30703][prism] Update logging handling

Migrate the SDK to consistently use "log/slog" since we've moved to Go 1.21 as base.
Improve SDK side logging: logs should be emitted to the prism process at least.

TODO in separate PR: Check that Prism is outputting to stderr for local Java and Python execution.
Improve the format, clarify the log source for SDK logs. Better field grouping.
Include SDK sourced Custom Data structured logging fields if present.

Improve Prism's ability to debug issues in the Docker image

Print the Docker log when an unexpected context cancellation occurs.
Add new debug print when we're unable to copy the Google Auth file to the container.

Standalone Prism logging improvements:
New flag "log_kind" which sets the log formatting, to one of "json", "text", and "dev".  "dev" is the default.

"dev" uses the zero dependency "github.com/golang-cz/devslog" package to format console logs instead of the default slog behavior.
Adds colour and better structure, more suitable for development uses.

New flag "debug" which sets the log level for the Prism binary to Debug, printing all the various debuging prints. Intended for Core SDK developers and  Prism developers.

Enables Source file lines for prism locations.

Improve plumbing of a logger through a job. This work is ongoing, eg. TODO: element manager.
Various minor improvements to logging messages, to wrap with slog.Attrs to reduce allocations.

New Development console logs.

SDK side Errors:

Prism Debug prints:

Exact colours will vary on your Terminal configuration.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

R: @byronellis @damondouglas
This is a smaller change than it looks, it only touches so many files because of the swap to the Standard Library slog package. Otherwise most files can be reviewed independently.


Gallery UI Breakage on Product View Page

Unstable Layout and Mobile Breakage with Over 10 Gallery Images
_ Issue Description_
In the product view page, when the gallery contains more than 10 images in an array, the UI of the page breaks. Specifically, the width of the section automatically increases, causing the entire page layout to break. Additionally, on mobile devices, the layout completely collapses when more than 8 or 10 images are added to the product view page gallery.
Solution
Implement a scrollable feature for the gallery to prevent the automatic width increase and layout breakage. Referencing the react-image-gallery package as an example, aim for a responsive and stable gallery layout that can handle a larger number of images without compromising the overall page structure.
Reference:
react-image-gallery - Example version for a stable and responsive gallery.

https://github.com/vercel/commerce/assets/51308779/cb7f0e62-6910-4251-a142-e8a5663abd97

Not a perfect solution but my approach was to add a flex-wrap to this element. For a store, I'd rather have all variants visual in case the user doesn't know to scroll. However, that does introduce the potential for widow elements at certain widths.


Update Naming in Package

Naming has been partially implemented. With all endpoints handled, naming of the functions and struct should be modified to create a better experience for users and allow expandability of the package.
Guidelines should be as follows:

[x] Function to Struct naming differences should be easy to understand and consistent
[x] Function naming should be specific to the feature
[x] If Function is Bearer specific then it should not start with User, Team, or any naming used for other features
[x] Naming that HTB API made inconsistent or hard to understand should be updated

Note: Guidlines subject to editing

#34


Code Action only works once

I can only use one code action each time I open a file in VS Code. The second time and beyond it does not work.
Steps to reproduce the behavior:

open QuantumKatas/Teleportation in VSCode
Add namespace Foo with a function Bar
Add namespace FooTwo with a function Bar
open both Foo and FooTwo within namespace Quantum.Kata.Teleportation
Call Bar within namespace Quantum.Kata.Teleportation
Close and reopen the file
Select the code action to change it to Foo.Bar (or FooTwo.Bar) [successfully changes it]
Change it back to Bar
Select the code action to change it to Foo.Bar (or FooTwo.Bar)

Expected:
Bar is changed to Foo.Bar
Actual:
Nothing changes
Note: Even if I try to use other code actions (such as deleting a different open statement and using the code action to put it back), none of them work after the first time.
System information

macOS Mojave Version 10.14
VSCode 1.35.1 and 1.36.1
Extension: Microsoft Quantum Development Kit for Visual Studio Code 0.8.19071701

Thanks for the report! Would you be willing to provide us the extension output logs? That would be really helpful in diagnosing the problem. To bring up the logs, press Ctrl+Shift+U and select "Q# Language Extension" in the dropdown menu (see screenshot below).

Thank you!

[Info  - 3:29:58 PM] workspace folder: /Users/Ryan/Projects/QuantumKatas/Teleportation
Discovered Q# project '/Users/Ryan/Projects/QuantumKatas/Teleportation/Teleportation.csproj'.
Loading project '/Users/Ryan/Projects/QuantumKatas/Teleportation/Teleportation.csproj'.
Done loading project '/Users/Ryan/Projects/QuantumKatas/Teleportation/Teleportation.csproj'

@cgranade This was discovered during the hackathon - it doesn't look like it's a server problem per se - the same setup works fine on other OS/Editor combinations. I'll have to see if I can reproduce it on another machine such that we can poinpoint more.

I can reproduce this on my Mac with the same version numbers: VS Code 1.36.1, QDK 0.8.19071701 on macOS 10.14.5.


new Blob() sends InvalidStateError when calling outputAsync

Hi @dtjohnson,
I found out I needed to change line 636 of Workbook.js from
if (process.browser && type === "blob") return new Blob([buffer], { type: Workbook.MIME_TYPE });
to
if (process.browser && type === "blob") return new Blob([new Uint8Array(buffer)], { type: Workbook.MIME_TYPE });
in order to have is work with IE11
This is not really an issue anymore for me since I found this solution but that could be useful to others.
Regards,
PS: I'm using xlsx-populate in a create-react-app project so I had to use a transpiled ES5 version of the code.
PPS: forgive me if I was supposed to do something else to post this info (like make a pull request) but I'm not familiar with the process

Hmmmmm... the current version works fine for me in IE11: https://gitcdn.xyz/repo/dtjohnson/xlsx-populate/master/examples/browser/index.html


Electric Chest and Cardboard boxes

Forge version: <IP_ADDRESS>7
Mod version: <IP_ADDRESS>
Other mods: http://tinyurl.com/wwpack
Cardboard boxes can pick up Electric Chests by default. Seems like they shouldn't be able to while the chest is locked, but it would be nice to be able to move them while they're unlocked.

Done!


require parentheses around log messages

One PR reviewer pointed out I was inconsistent in my use of parenthesis around log messages.
Is there an option to check for that? I could not find it.

I neer heard about a CodeNarc rule about that :/
Or even any linter analyzing the content of log message strings :/

Not really about the contents.  The issue is that sometimes I have:
log.debug "msg"
and other times
log.debug("msg", e)
Not a huge issue, but I can see why it looks weird.

More generally, is there a Groovy idiom for when parenthesis are required on method invocation?

Oh sorry I didn't get without the example, i though it was about log.debug("(parenthesis here !)") :)
I'm not purist enough to care about such detail... when I worked with Groovy, I also used to add return before the variable at the end of the method, even if it's not necessary... but I found it more readable :)

All the rules behind npm-groovy-lint are here, maybe there is some but I'm not sure: https://codenarc.org/codenarc-rule-index.html
You can also ask on CodeNarc repo, maybe they'd be ok to create a new rule for their next version, and it would land in npm-groovy-lint later :)

Interesting. This is the closest:
https://codenarc.org/codenarc-rules-unnecessary.html#unnecessaryparenthesesformethodcallwithclosure-rule
UnnecessaryParenthesesForMethodCallWithClosure Rule

Since CodeNarc 0.14

If a method is called and the only parameter to that method is an inline closure then the parentheses of the method call can be omitted.

Example of violations:

    [1,2,3].each() { println it }

That sort of implies that parentheses ARE necessary in other cases, but I can't see any way to configure it.

Asked over there. Thanks!


assertion failure in particle.ts for implicit handle connections

If I change this recipe:
recipe UdnieStyler
  use as image
  use 'udnie-model' as model
  ImageStyler
    image = image
    model = model
  description `image style transfer using Udnie model`

and remove the trivial handle bindings...
recipe UdnieStyler
  use as image
  use 'udnie-model' as model
  ImageStyler
  description `image style transfer using Udnie model`

it produces many instances of this error:
assert-web.ts:14 Uncaught (in promise) Error
    at assert (assert-web.ts:14)
    at Particle.addConnectionName (particle.ts:230)
    at match-free-handles-to-connections.ts:28
    at walker.ts:183
    at Array.forEach (<anonymous>)
    at Object.runUpdateList (walker.ts:182)
    at Object.onResultDone (walker.ts:124)
    at walker.ts:137
    at Array.forEach (<anonymous>)
    at Function.walk (walker.ts:135)

Is this still an issue? @Cypher1

I'm pretty sure it is still happening, this is bug in MatchFreeHandlesToConnections strategy, so it only surfaces when full Planner is used.

As far as I know this bug has not been fixed.

Fixed by #6197 \o/

Woo! Thank you!


Unable to add a descriptive name to an action

What is your Test Scenario?

I'm using a licensed version of TestCafe Studio and want to record multiple actions. However, i noticed that there is no way to change the default action names like Click to something more descriptive like Click on Submit button and have it print with the report.
What is the Current behavior?

I cannot add custom step description.
Report does not provide any granularity for each action.

What is the Expected behavior?

I should be able to add custom step description.
Report should provide action level granularity.

What is your web application and your TestCafe test code?

Execute this command...
See the error...

Your Environment details:

testcafe version:  1.11.0
node.js version:
command-line arguments:
browser name and version:
platform and version:
other:

We reviewed our testing approach a while ago and changed the API: https://devexpress.github.io/testcafe/faq/#has-testcafe-v20151-been-deprecated. We do not plan to return to the concept of named steps anytime soon.
As for the reporter, we are planning to improve it. Thank you for the idea. We will discuss it with the team.
P.S. This repository is for the Open Source version of TestCafe. Also, you have the TestCafe Studio Community Subscription license which includes only the community support service: https://www.devexpress.com/products/testcafestudio/#pricing. It is better to address such inquiries to StackOverflow (https://stackoverflow.com/questions/ask?tags=testcafe) - an amazing platform for users to ask and answer questions.

We reviewed our testing approach a while ago and changed the API: https://devexpress.github.io/testcafe/faq/#has-testcafe-v20151-been-deprecated. We do not plan to return to the concept of named steps anytime soon.
As for the reporter, we are planning to improve it. Thank you for the idea. We will discuss it with the team.
P.S. This repository is for the Open Source version of TestCafe. Also, you have the TestCafe Studio Community Subscription license which includes only the community support service: https://www.devexpress.com/products/testcafestudio/#pricing. It is better to address such inquiries to StackOverflow (https://stackoverflow.com/questions/ask?tags=testcafe) - an amazing platform for users to ask and answer questions.

Do you have any timelines or ticket that can tracks reporter related changes.
It would be awesome if we can have reporters that can print each action's outcome.

There is a ticket for improving the report so that it contains a description about each executed action: More verbose output about actions and assertions. We can't give any time estimates for its implementation at the moment. Stay tuned to that ticket for updates.


Zipcode restriction

In this PR, I've added two pages to do the zip code restriction #18
The first iteration contains:

a map (using leaflet and google maps tiles) via bower, I retrieve the user location and center the map on the user if we got the location
if the zipcode enters starts by 94, the zip code is considered like available (i.e. 94117 good, 54312 not good)
if it is a valid zipcode, we redirect to the buyer page
if it is an invalid zipcode, we redirect to a page where the user can enter an email address (I am not really happy with the content of the page, but we can improve it later. The text needs to be proofread and improved though)

What needs to be done in the future:

after the location is retrieved, we need to call the back end to retrieve the zip code from the gps coordinates
a call to the server with the zipcode entered to check the real availability
a call to the server with the zipcode + email address to notify the user once the app is available in its area

So if you are guys are ok, I would like to start the review and merge the PR (once reviewed), we can improve the content and the API calls later.
@valdrinkoshi, @marcandreoli, feedback highly appreciated, thanks :)

Thanks @dbaq , I like the first iteration a lot. If this is the new style guide, it looks good to me.
My comments:
Not all zip codes starting with ’94’ should be accepted at first. Only the following: 94114, 94131, 94110, 94102, 94103, 95117.
For the second page, I assume we have already stored the user’s zip code so don’t need to ask it again. I propose the following text:
“"
Sorry, your area is not yet supported. (bold)
HomeCooked is growing fast. Please enter you email address and we will notify you when your area is available. (normal font)
Email Address (input field)
Get Notified (button)
""
After the user clicks on “get notified”, he can get a “thank you, we will be in touch shortly” pop-up.
@jonbwhite  Take a look at the API calls referenced in the previous message and share any feedback.

Nice stuff @dbaq!
It's not clear to me how the user arrives to this page (so far is reachable only by url).
@marcandreoli, so only users from a certain zipcode can use the app? or can it be that someone from Redwood city can still order food in one of the valid zipcodes?

Ok, now i see, we get to this page if we are not logged in. There is another fix to be done in the menu.controller.js then, to be redirected to this screen if not logged in (in the interceptor of the state change). I'll fix that now

@dbaq please check my last 3 commits, right now we send the user to validate-zip page only once. If he inputs a good zipcode, we store it in the local cache and next times he'll be sent to buyer's page

You the best @valdrinkoshi, this is what I wanted to do today :) I will review your commits during the day.

All good.
@marcandreoli, I will update the text. Also, after the email is registered I already made a small alert.
I need title + text for this modal too.

@valdrinkoshi I have updated the branch to match @marcandreoli's comments.
I also add a commit to remove the zipcode key in the storage on logout.
I let you check and merge.

@dbaq all looks good, I committed a change on the way we were caching things, please have a look and let me know if all looks good.
Right now everytime the user logs out, we send him to the zipcode validation, since the cache with all the data is emptied.
I was thinking we should have the Sign in button on that screen too, something like this

What do you think? If that looks good, @dbaq this would need to copy/paste the modal code of the menu.controller into zipcoderestriction.controller which is not great. We can create a ModalService that handles all the modals shared across the app. We can do this in a separate PR or in this one, your call

Your commits looks good to me. However, I am not sure the sign in link on the zip code restriction is a good idea:

you see this page only if you are not logged in and if you never entered your zip code, which is supposed to happen only once. Nobody logs out from applications nowadays, when was the last time you logged out from an app? (fb, twitter, instagram, etc)
I believe it adds some distractions on the page, the page has one goal, to let the user enters 5 digits and that's all. The benefit of doing the signing here to skip the zip code validation looks like overkill to me).

So I won't put a link for signin there.

If you login we clear the cache from all user data (Zipcode included), so you'll see again the validate Zipcode screen.
I don't think we should store the Zip-code on logout.
(Ps: I logout from FB many times, eg when I'm in a new device or in incognito mode :p )

Sorry I meant "if you logout"

Anyways, I'll merge this and we can discuss about that and have a separate PR

Ok thanks.


new derives renderer

With this pr it is now possible to render Deriveds for images and PDF files in a cloud function.
The corresponding cloudfunction can be found here .
https://github.com/viur-framework/viur-cloudfunctions/tree/main/thumbnailer
You can use it like so:
main.py:
from viur.core.modules.file import cloudfunction_thumbnailer

conf["viur.file.thumbnailerURL"]="https://xxxxx.cloudfunctions.net/imagerenderer"
conf["viur.file.derivers"] = {"thumbnail": cloudfunction_thumbnailer}

conf["derives_pdf"] = {
"thumbnail": [{"width": 1920,"sites":"1,2"}]
}

skeletons/xxx.py:
test = FileBone(derive=conf["derives_pdf"])

Can we please get the naming correct? This would probably be best with our 3.5 release, because it will introduce breaking changes anyway.
derives is a verb
the noun would be derivation
derived could be the past tense of the verb OR an adjective. I think it is important to use correct English in an open source project, at least when naming methods and classes in the code.

Hello @xnopasaranx  can you please  mark the specific code that you mean ?

* [ ]  Also I would like to follow PEP-8 (snake_case, shorter line-length) but obliviously this makes technically no difference – @phorward  Should decide if this is necessary ;)

If possible, please use PEP-8 already in new code. I'm waiting for this PR to finish to merge it into develop.

Yes, I also updated the corresponding cloudfunction this morning an all works well.


Storage is not initialized and will revert on read()

Given the contract code:
contract;

storage {
    x: u64 = 64,
}

abi MyContract {
    #[storage(read)]
    fn get_value() -> u64;
}

impl MyContract for Contract {
    #[storage(read)]
    fn get_value() -> u64 {
        storage.x.read()
    }
}

storage.x.read() will revert because we call unwrap() on a None value.
To recreate follow the steps from the fuel book: https://fuelbook.fuel.network/master/quickstart/smart-contract.html,  and use the contract example above.

I tried it again.

Created a new project with forc init.
Added tests with cargo generate --init fuellabs/sway templates/sway-test-rs --name {SOME_NAME}.
Built with forc 0.40.0.
Ran tests with cargo test ( used fuels-rs 0.42 and fuel-core 0.18.2)

I still get the Revert(0) panic

you have to call the method. Here is the whole test.
use fuels::{prelude::*, types::ContractId};

// Load abi from json
abigen!(Contract(
    name = "MyContract",
    abi = "out/debug/{SOME_NAME}-abi.json"
));

async fn get_contract_instance() -> (MyContract<WalletUnlocked>, ContractId) {
    // Launch a local network and deploy the contract
    let mut wallets = launch_custom_provider_and_get_wallets(
        WalletsConfig::new(
            Some(1),             /* Single wallet */
            Some(1),             /* Single coin (UTXO) */
            Some(1_000_000_000), /* Amount per coin */
        ),
        None,
        None,
    )
    .await;
    let wallet = wallets.pop().unwrap();

    let id = Contract::load_from(
        "./out/debug/predicate-true.bin",
        LoadConfiguration::default(),
    )
    .unwrap()
    .deploy(&wallet, TxParameters::default())
    .await
    .unwrap();

    let instance = MyContract::new(id.clone(), wallet);

    (instance, id.into())
}

#[tokio::test]
async fn can_get_contract_id() {
    let (instance, _id) = get_contract_instance().await;

    instance.methods().get_value().call().await.unwrap();
}

SOME_NAME - use your project name.
FYI I also tried the test with forc 0.40.1 and I get the same revert.


contracts-upgradeable/proxy/Initializable.sol not found

Hi I am trying to run the upgrade examples of the documentation and after installing the openzeppeling upgrade contract I am having this error:
ParserError: Source<EMAIL_ADDRESS>not found
--> project:/contracts/MonitoringCenter.sol:5:1:
The file is on node_modules/@openzeppeling folder
I am using ubuntu 20.04 and
npx truffle version
Truffle v5.4.10 (core: 5.4.10)
Solidity - 0.8.4 (solc-js)
Node v16.9.1
Web3.js v1.5.2
package.json
{
....
"devDependencies": {
"@openzeppelin/contracts": "^4.3.1",
"@openzeppelin/contracts-upgradeable": "^4.3.2",
"@openzeppelin/test-helpers": "^0.5.13",
"@openzeppelin/truffle-upgrades": "^1.9.1",
"chai": "^4.3.4",
"truffle": "^5.4.10"
}
}
thanks in advance

file Initializable.sol is at
<EMAIL_ADDRESS>why my node is not installing on the documentation path?

Can you try running npm install again? You have the right package version installed. The file should be there.

Can you try running npm install again? You have the right package version installed. The file should be there.

I deleted node_modules folder and ran npm install and I get the same error. The file is just not there.

Oh yes, sorry I misread your issue. The documentation was wrong. The path you shared here is the right one.
I've fixed the docs now. https://github.com/OpenZeppelin/openzeppelin-upgrades/commit/71cbfe8d3eabaef9908c19e60dedfb291c06f2d4


Develop ie

modified getFantomMint() to return FantomMint instead of IFantomMintBalanceGuard
modifed test scripts to sync with changes in function auctionBid and startLiquidation in FantomLiquidationManager

Hi. I'll have to look into the conflicts with the liquidator manager. Looks like formatting issue only on the first glance, but I'd like to be sure before merging.


simpify tocEl ternary

The current ternary is hard to read

If we remove hideToc variable, and move his value inside ternary we'll see duplicated  themeContext.layout === 'raw' check

We can safely remove the first one check

Thanks, good refactor!


A way to get a specific amount of images?

Is there a way to get a specific amount of images?

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

ID: 0b43a111-8bde-8bf3-d4ad-66d07b493e9b
Version Independent ID: d8afef31-a935-f263-4d41-b93127324112
Content: Call and response - Java Quickstart for Azure Cognitive Services, Bing Image Search API
Content Source: articles/cognitive-services/Bing-Image-Search/quickstarts/java.md
Service: cognitive-services
GitHub Login: @v-jerkin
Microsoft Alias: v-jerkin

@rajawilliams Thanks for your feedback, we will investigate it and get back to you later.

@v-jerkin Hi, do you have any idea about that? Thanks.

@rajawilliams You can use the count=n parameter in the query, which sets the maximum number of results to n. Note that fewer results than requested might be returned (for example, if you request 50, but there are only 10 images matching the query, you'll only get 10 results).
More API details are available in the reference here: https://dev.cognitive.microsoft.com/docs/services/8336afba49a84475ba401758c0dbf749/operations/56b4433fcf5ff8098cef380c

@v-jerkin Thanks a lot!
@rajawilliams
We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Update Dockerfile (golang 1.22)

Same issue with golang 1.17 as in https://github.com/PacktPublishing/A-Developer-s-Essential-Guide-to-Docker-Compose/pull/8

I will expand this to fix whole chapter


Deployment procedure and updating status of tasks

There are three parts to this:

SSH Git server
Deployment (CD)
Running the checks -- running, then uploading to the server

For deployment, we will only consider deploying with Hamr. Hamr has the API to support deploying new apps and CD. One issue to figure out will be how to display the logs in case something goes wrong during deployment.
We will need to create a unique git repository URL for users, and add special instructions in the UI for this task. This should be a special kind of task, and a call should be made on whether this should use the same table as normal tasks or not.
The deployment script can be a YAML file that mentions the Hamr URL to hit when a repository is pushed.
For running the checks, we can use a checker service that will hit the Capstone API endpoint when it is finished with checks. This checker service could be a separate network process or a Python function.

done.


Service call to create/modify/delete calendar event

This will require new permissions and therefore a re-authentication for the user.
I need to figure out a way of prompting them.

Included in release v2.1.0