FTP Offline

code:-
ESP32_FTPClient ftp1 (ftp_server_t,ftp_user_t,ftp_pass_t,3000,2);
void ftp_send(){
int chn;
if(FTP_enable){
if(ftp_enable1==1){
ftp1.OpenConnection();
if(ftp1.isConnected()){
Serial.println("FTP 1 : Connected");
ftp1.ChangeWorkDir(ftp_dir[0]);
for(chn=0;chn<sensors;chn++)
{
if(enchn[chn]!=0){
char fname[30];
char dem[30];
//String temp ="20230324_KVARtest1.csv";
sprintf(fname,"%04d%02d%02d_%s.csv",curdate.year+2000,curdate.mon,curdate.date,compid[chn].c_str());
//sprintf(fname,"%s",temp);
Send_FTP_file(SD, fname, ftp1);                 // 272,546
sprintf(dem,"File Send: %s",fname);
Serial.println(dem);
}
}
}else{
Serial.println("FTP 1 : DISCONNECTED");
}
ftp1.CloseConnection();
}

}
void Send_FTP_file(fs::FS& fs, const char* path, ESP32_FTPClient ftpClient) {
//Serial.printf("Reading file: %s\n", path);
String fullPath = "/";
fullPath.concat(path);
Serial.print("File Path:");
Serial.print(path);
File file = SD.open(fullPath);
if(!file){
    Serial.print("Failed to open file for reading");
    return;
}

ftpClient.InitFile("Type I");
ftpClient.NewFile(path);
char sz = file.size();
int fileSize = file.size();
Serial.print("File Size:");
Serial.print(fileSize);
unsigned char * downloaded_file = (unsigned char *) malloc(fileSize);
size_t bytesRead = file.read(downloaded_file, fileSize); // read the file contents into the array
//const char* myString = reinterpret_cast<const char*>(downloaded_file);  // for converting unsigned char to const char*
ftpClient.WriteData(downloaded_file, fileSize);
free(downloaded_file);
ftpClient.CloseFile();
file.close();

}
Error:
FTP error: Offline
Connecting to: <IP_ADDRESS>
Command connected
FTP error: Offline
Connecting to: <IP_ADDRESS>
Command connected
Send USER
Send PASSWORD
FTP error: Offline
Connecting to: <IP_ADDRESS>
Command connected
FTP error: Offline
Connecting to: <IP_ADDRESS>
Command connected
FTP error: Offline
Connecting to: <IP_ADDRESS>
Command connected
FTP error: Offline
Connecting to: <IP_ADDRESS>
Command connected
FTP error: Offline
Connecting to: <IP_ADDRESS>
Command connected
FTP error: Offline
Connecting to: <IP_ADDRESS>
Command connected
FTP error: Offline
Connecting to: <IP_ADDRESS>
Command connected
FTP error: Offline
Connecting to: <IP_ADDRESS>
Command connected
FTP error: Offline
Connecting to: <IP_ADDRESS>
Command connected
FTP error: Offline
Connecting to: <IP_ADDRESS>
Command connected
FTP error: Offline
Connecting to: <IP_ADDRESS>
Command connected
FTP error: Offline
Connecting to: <IP_ADDRESS>
Command connected
FTP error: Offline
Connecting to: <IP_ADDRESS>
Command connected
FTP error: Offline
Connecting to: <IP_ADDRESS>
Command connected
FTP error: Offline
Connecting to: <IP_ADDRESS>
Command connected
FTP error: Offline
Connecting to: <IP_ADDRESS>
Command connected
FTP error: Offline
Connecting to: <IP_ADDRESS>
Command connected....
It remains in the condition unitl  FTP connected, Can u impalement no of tries in the FTPAnswer routine. To skip if tit exceeds no of tries . So that it can again try to reconnect when the function of send is called. Or is there any other way to tackle this issue

I’ll not work on that, feel free to change as per your requirements.

i am unable to figureout the exact issue with ftp : offline, it shows ftp offline and after few tries it connects. Again after few time , shows FTP : OFFLINE


Implement scripts/module to support Python

Implementation of this feature is on hold now. Please, see PR #133 for more details.


⚠ Bofrost.lu has degraded performance

In 0404618, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1639 ms

Resolved: Bofrost.lu performance has improved in 5fd1f8b after 39 minutes.


AccessControl filter does not support RBAC rules

Problem description
RBAC rules are very useful to solve complex authorization problems. Unfortunately the AccessControl filter does not support them out of the box because custom parameters can not be fed to the roles. So one must use each time the matchCallback with custom implementation, but it results in such non elegant access rules where the real role check is hidden in the callback:
[
    'allow' => true,
    'roles' => ['@'],
    'matchCallback' => function($rule, $action) {
        return Yii::$app->user->can('updateOwnPost', ['postId' => 2]);
    }
]

Proposed solution
Here I'm proposing a solution to add an optional ruleParamsCallback which should return any parameters necessary for the User::can check. For example:
[
    'allow' => true,
    'roles' => ['updateOwnPost'],
    'ruleParamsCallback' => function($rule, $action, $role) {
        return ['postId' => 12];
    }
]

Additional info

Q
A

Yii version
2.0.12

PHP version
any

Operating system
any

This is just some brain storming.  Trying to think outside the box.
With the current implementation of the ACF and RBAC I kind of favor @arogachev - it just seems like you're dealing with the specifics where the specifics are needed.  That said...

Several duplicate issues already exist: #7643, #13273, #13552.
I think I explained well why this should not be implemented in yiisoft/yii2#13273 (comment).

If this is the fourth issue considering incorporating RBAC into the ACF, then maybe the current implementation of the ACF needs to be revisited.  It is after all the Access Control Filter.  You would think that's where you would handle the Access Control whether you are using RBAC or not.  Like a cross-cutting concern.
There are two drawbacks that I can think of to using the ACF to handle any RBAC with Rules.
[ ] Having to pre-access any data models before even getting to the Action.  Caching can help, but I don't think caching should be the solution.  There would need to be a way for the ACF to pass in any data it pre-access to the Action if access is allowed.
[ ] Controllers and Action methods are just php.  There is nothing to prevent one Action from calling another Action directly - not via a redirect.  That direct call would completely bypass the ACF. {Who does this!? I don't know, but it's possible - so we should consider it...}
Maybe ACF should be handled right in the Action itself.  This would be more like a typical cross-cutting concern.  You put the call to the Concern where it's concerned.  The only benefit to having an ACF isolated in a configuration method is that it can send the user to login if needed before even calling the action.  But I think that's a minimal use case.  The vast majority of Access Control is going to be handled better after we get to the Action.  Each Action could handle it's own redirects or exceptions as best needed.
And currently you add an Action and you also have to make sure the action is listed in the ACF, so you are bouncing between two different sections of the controller.  With ACF in the Action, you add in the Action and specify the ACF requirements first thing in the Action itself right where you are typing in your code.
Why even have ACF?  Well for when RBAC is not needed.  Also the simple check for a required Login.  The trick would be to make the coding a light as possible.  Like methods named loginAndCan() or something.  Actually it's quite simple any call to ACF/RBAC would assume they need to be logged in.  Otherwise just don't call any access control methods.

Re-reading it all and getting to @nd4c made me realize that ACF itself isn't really needed and direct calls are actually much cleaner and safer.

@samdark I realize that this is closed and I agree that ACF isn't really needed.
However, please let me point out that it did one thing really well if it was configured correctly (ie: having ['allow' => false] as the last element of the 'rules') - it prevented a developer from forgetting to add in access control.  The action would fail until something was done about access control.
It would be nice to have some way to have all actions unaccessible by default (or not).  This could be a property of the base controller that all controllers extend from.  It could even have the base controller beforeAction check if rbac is enabled or not and preset it one way or another.
Sorry if this seems kind of paranoid. ;)

Yes, that's one of the things that could not be achieved without actions filter. Will see what we can do but for now I think sticking with no ACF is better.

I agree that the ACF is not needed.  I've been trying to think of a way to incorporate the few benefits of the ACF.  Since we aren't running RBAC (or ACF) before the Action, there is no way in the Action to "require" some kind of rbac decision as the first thing in the action.  (Maybe that will be some kind of future function construct.)  For now the easiest way to do this would be to extend the base Controller into an rbac controller which would pass the rbac manager as the first parameter to the action.  It would be kind of hard to forget at that point.  For someone building an rbac app this kind of emphasizes the security without actually doing anything preset - it's still up to the programmer to management as seems best.  Again, this might be overkill.  Just want to share some ideas.

Just my 5 cents ;)
We've created and happily using this implementation for quite some time:
https://github.com/hiqdev/hipanel-core/blob/master/src/filters/EasyAccessControl.php
Here is an example of usage:
https://github.com/hiqdev/hipanel-module-client/blob/master/src/controllers/ClientController.php#L39
It works fine for us. But your mileage may vary.
And I absolutely agree with previous comments that the same effect could be achieved with other means.


fix: emit NONE instead of OFF into outputs when MFA is not enabled

Problem

Auth construct emit unexpected OFF into outputs. The expected value is NONE.
Issue number, if available:
https://github.com/aws-amplify/amplify-backend/issues/1644
Changes
This PR changes the emitted output to NONE when mfa is explicitly disabled or not enabled.
Alternatives considered
The a mapping from OFF to NONE could as well reside in client-config.
It is questionable if the fix for this should go into client-config or auth-construct.
Stack outputs are considered implementation detail, hence fix could go into auth-construct without break.

Corresponding docs PR, if applicable:
Validation

Checklist

[ ] If this PR includes a functional change to the runtime behavior of the code, I have added or updated automated test coverage for this change.
[ ] If this PR requires a change to the Project Architecture README, I have included that update in this PR.
[ ] If this PR requires a docs update, I have linked to that docs PR above.
[ ] If this PR modifies E2E tests, makes changes to resource provisioning, or makes SDK calls, I have run the PR checks with the run-e2e label set.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Well. Nope.
This may break users of deployed backend client.

For reference. The proper fix is in https://github.com/aws-amplify/amplify-backend/pull/1652 .


Beta: Highlight current challenge in map?

For some challenges (mainly the "introduction" challenges), I can't tell what challenge I'm currently on because the title isn't displayed in the description. Most of the challenges have the title at the top of the description so I can figure out what challenge it is. However, even when the title is displayed at the top I have trouble finding it on the map.

I propose to highlight the currently displayed challenge in the map somehow.
And perhaps highlight the parent category/categories

I agree. I think the easiest way to do this would be to put the current challenge in bold.

@QuincyLarson  the text is already bold so making it bold will have no effect. But we can make the background  highlight on selection. Any suggestions?


Fix timeline page layout

⚠ This repo is Continuously Deployed: make sure you follow the guidance ⚠
What
Fix the layout of the summary list component on /coronavirus/landing by removing the custom styles that were being applied to the component in this context. These styles were setting widths that caused this component to break.
The layout still isn't perfect, but it's considerably more readable. We'll try to improve the component itself to fix the layout of the Change/Delete links in future.
Why
We shouldn't have styles in applications that override component styles - this breaks component isolation and makes it harder to iterate components.
Visual changes

Before
After

May I suggest the following, if you change the wording from "Change" to "Edit" - it doesn't cause wrapping issues:

# line 7 app/views/coronavirus/pages/show/_timeline_entries.html.erb
     edit: { href<EMAIL_ADDRESS>timeline_entry), link_text: "Edit" },

# line 7 app/views/coronavirus/pages/show/_timeline_entries.html.erb
     edit: { href<EMAIL_ADDRESS>timeline_entry), link_text: "Edit" },

@DilwoarH Perhaps you could raise a PR?

# line 7 app/views/coronavirus/pages/show/_timeline_entries.html.erb
     edit: { href<EMAIL_ADDRESS>timeline_entry), link_text: "Edit" },

@DilwoarH Perhaps you could raise a PR?

done #1540


Segmented control

Check specs and validate against Swing implementation.

@rock3r I have created a basic working implementation of segmented controls as seen below:

(Sorry for the poor quality image as it has been cropped.)
I would like to make a pull request, however, I have a couple of questions related to it:

Should I name the files and composables as SegmentedControl or SegmentedButton?
I have implemented the feature similar to Tabs. However, in tabs, the TabStrip element does not have any visual elements such as borders and backgrounds and therefore does not have a separate styling for it. In the case of segmented controls, the strip requires changing the border color depending on its state. So, should I create a separate style for it as well or should I just add extra color elements to the SegmentedButton's style? Or should this feature be implemented in a different way?

Hi @RivanParmar, thanks in advance for your contribution!

In the Int UI specs, it's called Segmented control — I'd go with that. A Segmented button is a button with a side that shows a dropdown (like the Push button when pushing to VCS)
Given the SegmentedControl and its SegmentedControlButton are separate (yet nested) components, I'd provide each with its own styling.
Yes please! Samples are our only "documentation" for now, so that's very welcome. It also shows the reviewer how using that API looks like, which is always good.

@rock3r Thanks for clearing up the confusion. I will make the pull request after making the necessary changes. Also, could please let me know what colors to use for the different states of the buttons? I've looked into the Figma file but I couldn't find anything regarding it.

When we don't have specs from the Figma (and even when we do, just in case) we check the Swing implementation and use it as reference. This is essential because it'll tell you which theme keys to use in the bridge theme, and in turn you'd use those resolved colours/metrics in the standalone version.
Note that there are several instances where the Swing implementation can have hardcoded values/colours, and not use theme values. In these cases, copying the values from the relevant Swing Darcula*UI class is the only way. If you look at the bridge theme implementation, you'll see many such hardcoded values. This is why :)

Sorry for the late response. However, there are a few things that I'm unable to resolve:

The focus interaction does not seem to work with the outer component, i.e., with the SegmentedControl. I've set an interactionSource to it but it just doesn't seem to be getting the focus and so it's border's color isn't changing.
In dark theme, the color of the text remains black. I've set the content color in the style to IntUiDarkTheme.colors.grey(12) but still it doesn't work.

@RivanParmar do you have any in-progress code we can look at? Hard to help otherwise...

@rock3r Please have a look at #387


Updates README.md to add a cleaner approach to displaying the model output

Hi @pdmIV. Thanks for sharing this. Taking generated text and using a conventional NLP tokenizer to split the results into sentences is an interesting use case, but it falls outside the focus of this library.


move configuration values out of configService.js file #9

Variables including Endpoint API's moved to env file

@microsoft-github-policy-service agree company="Spektra Systems"


[Issue 3101] fix: bug missing custom tokens on applying patch

Related issues:
#3101

🚀 Deployed on https://pr-3102--sw-web-runner.netlify.app


[Android] Add latitude, longitude and date taken at to image picker response

https://github.com/marcshilling/react-native-image-picker/issues/178

Hi @Dacello!
Thx for the PR. Nice work!


Recurring donations - Support option for "Always use last day of month"

Critical Changes

A new field has been added to the Recurring Donations object for "Always Use Last Day of Month". Admins will need to manually enable permissions for this new field and add it to the Recurring Donations layout.

Changes

When the "Always Use Last Day of Month" field is checked on a Recurring Donation, Monthly and Quarterly installment Opportunities will be created with the Close Date set the last day of the month (whatever that last day is). For Recurring Donations without that field checked and where the Next Payment date is the 28th-30th, new Installment Opportunities will be created with the Close Date set to that specific day of the month. A Next Payment (or Date Established) date of the 31st of any month is effectively equivalent to having the "Always Use Last Day of Month" box checked. This new change only affects Recurring Donations with an Installment Period of either Monthly or Quarterly.

Issues Closed
Fixes #2034

@smarovich Please note the new field on the Recurring Donations object (with inline help text) as well as the detailed PR comments.

@jessingrass This is going to need extra testing attention.
@force2b I have it in a scratch org and I'll start playing around with it as much as I can this week.

@force2b @jessingrass let me know when testing is complete and this is ready to be merged, since I've already done the code review.  thanks.

@jessingrass @force2b I'm going to update my branch with the latest and do some exploratory testing on this tonight.

In testing, I just created an open monthly RD with Date Established of 8/31/2017.  Now when the RD's get created, once it gets moved back due to a short month (ie, 9/30), it stays at that earlier date (so I get 10/30).  Once you roll thru Feb, now it gets pinned to the 28th.  While the fix was to improve the original fix to avoid this flaw, I thought we would still honor the original Date Established day in these scenarios?  @judisohn @force2b what is the new behavior we are trying for?

Seems like this fix prevents someone from successfully specifying 29th or 30th and having it stick.  wasn't that the original problem that customers complained about?

@davidhabib @force2b  When I tested a date of the 31st, I thought I had observed that it stuck with the last day of all months? I'll try again first thing in the morning, but this was something I thought I had specifically checked for. If set for the 29th it would stay as the 29th for all months except February if the 'Last Day..." wasn't checked.

@davidhabib and @judisohn  I definitely tested the 28/29/30 scenario as well. When selecting that as a date and "Use Last Day of Month" is unchecked, it should respect that day of the month for all future installments - adjusting as necessary for February. I'll retest as well.

note that in my testing, I set Established Date, but left the other dates blank.  not sure if that is a nuance that caused me to see the bug, but you two to miss it.

@davidhabib Thanks. That was the key difference.

Fixed

Thanks @force2b and @davidhabib I'm testing one last time now to be sure everything appears okay, also to be sure how to communicate to affected customers how to correct their data.


Feedback

Hello.
Firstly, thank you for this amazing tool.
Secondly, I have just worked my way through getting this working and I would like to add a little feedback that will make the instructions easier for someone who is potentially inexperienced to follow:

I think it would be worth explaining that the CMakeLists.txt from the respective examples should be moved to the root.
I'm using CLion and I needed to add the following to the CMake options (the second -D was critical)

-D CMAKE_TOOLCHAIN_FILE=Arduino-toolchain.cmake -D SERIAL_PORT=COM9

Hey, Thanks for your feedback.
For 2, I understand your problem. You are actually using some "undocumented" feature to set the default value of the serial port when invoking the CMake. You can also use the documented way of passing the serial port as environment variable in CLion. However, CLion or other IDE specific usage documentation is lacking and expected to improve in the future.  I suggest you continue using the method you discovered. Note that in release 1.1 of the toolchain, the name changed to ARDUINO_UPLOAD_SERIAL_PORT.
For 1, I did not understand your problem. As far as I know, there is no need to move CMakeLists.txt anywhere. Just need to point to the appropriate directory as the CMake source directory (i.e. Use Examples as CMake source directory to build all examples, or use Examples/01_hello_world to build only the hello world example.)

Hey, thanks for getting back to me so quickly.
I was running off master. I have just moved to release 1.1 and I am not having "issue" 1 anymore. I suspect this has more to do with something I changed on my side than the version change.
For the sake of helping anyone who tries to set this up on CLion in the future. The "tricks" for setting up a working project are as follows:

Extract the "Arduino-CMake-Toolchain-release-1.1-dev" to wherever you would like to keep the toolchain.
Create a folder for your project and copy the example of your choice (for example CMakeLists.txt hello_world.cpp).
Open CLion, and open the project folder. It will automatically load the CMake project and fail.
In the File -> Settings -> Build, Execution, Development -> CMake dialog set the CMake options to -D CMAKE_TOOLCHAIN_FILE=path/to/Arduino-toolchain.cmake -D ARDUINO_UPLOAD_SERIAL_PORT=COM9 (Check the actual port for your device).
Click OK. The build will fail as per the documentation to allow selection of the board.
Build again and upload as per the documentation.

The most important point is that you should not open the root "Arduino-CMake-Toolchain-release-1.1-dev" in CLion as it will create additional CMakeLists.txt files that will cause issues.

Hi. Next challenge:
I am struggling to include BLE libraries. Interestingly this is one library with several includes. Maybe that is related to the issue?
I have tried replacing BLEDevice  with the library name ESP32 BLE Arduino.
I have tried the other includes: BLEUtils  and BLEServer.
I have also tried AUTO_PUBLIC, AUTO_PRIVATE, PUBLIC and PRIVATE.
CMakeList.txt:
#=================================================================
# app
add_executable(arc003-2 arc003-2.cpp)

target_link_arduino_libraries(arc003-2 PRIVATE BLEDevice core)
# This is needed for the generation of HEX binary and uploading it
target_enable_arduino_upload(arc003-2)

#=================================================================
# libs
add_library(serial_debug utils/serial_debug/serial_debug.h)
target_link_arduino_libraries(serial_debug AUTO_INTERFACE utils/serial_debug/serial_debug.h AUTO_PRIVATE)

Error:
"C:\Program Files\JetBrains\CLion 2020.1\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -D CMAKE_TOOLCHAIN_FILE=C:/workspace/arduino/Arduino-CMake-Toolchain-release-1.1-dev/Arduino-toolchain.cmake -D ARDUINO_UPLOAD_SERIAL_PORT=COM9 -G "CodeBlocks - MinGW Makefiles" C:\workspace\ARC003-2
CMake Error at C:/workspace/arduino/Arduino-CMake-Toolchain-release-1.1-dev/Arduino/System/BoardBuildTargets.cmake:433 (message):
  Arduino library BLEDevice could not be found in
  C:/workspace/ARC003-2;C:/workspace/ARC003-2;C:/workspace/ARC003-2/cmake-build-debug/_pkg_mgr;C:/Users/Raph/Documents/Arduino;C:/Users/Raph/AppData/Local/Arduino15/packages/esp32/hardware/esp32/1.0.4;C:/Program
  Files (x86)/Arduino
Call Stack (most recent call first):
  C:/workspace/arduino/Arduino-CMake-Toolchain-release-1.1-dev/Arduino/System/BoardBuildTargets.cmake:650 (find_arduino_library)
  C:/workspace/arduino/Arduino-CMake-Toolchain-release-1.1-dev/Arduino/System/BoardBuildTargets.cmake:617 (_add_internal_arduino_library)
  C:/workspace/arduino/Arduino-CMake-Toolchain-release-1.1-dev/Arduino/System/BoardBuildTargets.cmake:183 (_link_ard_lib_list)
  CMakeLists.txt:9 (target_link_arduino_libraries)

-- Configuring incomplete, errors occurred!
See also "C:/workspace/ARC003-2/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "C:/workspace/ARC003-2/cmake-build-debug/CMakeFiles/CMakeError.log".

[Failed to reload]

library.properties:
name=ESP32 BLE Arduino
version=1.0.1
author=Neil Kolban<EMAIL_ADDRESS>maintainer=Dariusz Krempa<EMAIL_ADDRESS>sentence=BLE functions for ESP32
paragraph=This library provides an implementation Bluetooth Low Energy support for the ESP32 using the Arduino platform.
category=Communication
url=https://github.com/nkolban/ESP32_BLE_Arduino
architectures=esp32
includes=BLEDevice.h, BLEUtils.h, BLEScan.h, BLEAdvertisedDevice.h

I am going to keep at it, maybe I am missing something but your help would be great.
Thanks

I have marked this issue as enhancement to make the upload, ISP and other tool related options (like SERIAL_PORT) available through board options file, to improve the usage experience.

Thank you, that would be a nice enhancement.
I have another question. Again, not sure if I am doing something wrong.
I am building a large project and I have a .h and .cpp file in some nested folder:
modules/ble/services/wifi/ble_wifi_services.h
modules/ble/services/wifi/ble_wifi_services.cpp
CMake runs fine but when compiling I get:
CMakeFiles/arc003-2.dir/arc003-2.cpp.o:(.literal._Z8ble_initv+0x20): undefined reference to `BleServiceWifiConfig::BleServiceWifiConfig(BLEServer*)'
CMakeFiles/arc003-2.dir/arc003-2.cpp.o:(.literal._Z8ble_initv+0x24): undefined reference to `BleServiceWifiScanner::BleServiceWifiScanner(BLEServer*)'
CMakeFiles/arc003-2.dir/arc003-2.cpp.o: In function `ble_init()':
C:\workspace\ARC003-2/arc003-2.cpp:512: undefined reference to `BleServiceWifiConfig::BleServiceWifiConfig(BLEServer*)'
C:\workspace\ARC003-2/arc003-2.cpp:513: undefined reference to `BleServiceWifiScanner::BleServiceWifiScanner(BLEServer*)'
collect2.exe: error: ld returned 1 exit status
CMake Error at .scripts/LinkScript.cmake:286 (message):
  Linking arc003-2 failed!!!

mingw32-make.exe[7]: *** [arc003-2.elf] Error 1
mingw32-make.exe[6]: *** [CMakeFiles/arc003-2.dir/all] Error 2
mingw32-make.exe[5]: *** [CMakeFiles/arc003-2.dir/rule] Error 2
CMakeFiles\arc003-2.dir\build.make:89: recipe for target 'arc003-2.elf' failed
CMakeFiles\Makefile2:116: recipe for target 'CMakeFiles/arc003-2.dir/all' failed
CMakeFiles\Makefile2:123: recipe for target 'CMakeFiles/arc003-2.dir/rule' failed
Makefile:130: recipe for target 'arc003-2' failed
mingw32-make.exe[4]: *** [arc003-2] Error 2
CMake Error at .scripts/upload.cmake:153 (message):
  *** upload for 'arc003-2' failed!
Call Stack (most recent call first):
  .scripts/upload.cmake:325 (_build_and_resolve_target)

Questions:

In my main app, should I include ble_wifi_services.h as:
#include "modules/ble/services/wifi/ble_wifi_services.h"
OR
#include "ble_wifi_services.h" (when I do it this way the IDE does not find the h file but I'm concerned this is becuase it isn't linking).
Is the CMakeLists.txt below correct?

cmake_minimum_required(VERSION 3.0.0)

project(arc003-2 CXX)

#=================================================================
# app
add_executable(arc003-2 arc003-2.cpp)

target_link_arduino_libraries(arc003-2 AUTO_PRIVATE)

# This is needed for the generation of HEX binary and uploading it
target_enable_arduino_upload(arc003-2)

#=================================================================
# drivers

#=================================================================
# modules

# modules/ble/services/wifi
add_executable(ble_wifi_service modules/ble/services/wifi/ble_wifi_services.h modules/ble/services/wifi/ble_wifi_services.cpp)
target_link_arduino_libraries(ble_wifi_service AUTO_INTERFACE modules/ble/services/wifi/ble_wifi_services.h AUTO_PRIVATE)


bug(python): How is the return value '_distance' calculated? Whether I use L2 or cosine, '_distance' is always from small to large

LanceDB version
No response
What happened?
when create vector index i used l2 and cosine separately。but '_distance' is always from small to large
Are there known steps to reproduce?
No response

but '_distance' is always from small to large

ANN searches for the closest data points. Data points that are close to the query have a smaller distance. That's why they would be sorted from small to large.
Are the distance values different from what you expect? Can you provide specific examples of vectors and a query and what distance you expected versus what you got?


Feat(eos_cli_config_gen): Add schema for mac_security

Add schema for data model

Checklist
Contributor Checklist

[x] Create schema fragment matching data model described in README.md and README_v4.0.md

README.md is most complete with all keys. README_v4.0 includes partial data models after conversion to lists.
Schema fragment path is roles/eos_cli_config_gen/schemas/schema_fragments/<data_model_key>.schema.yml.
Copy line 1-5 from another schema (comments and outer type:dict).
Refer to schema documentation for syntax and/or use YAML Lint plugin from Redhat in VSCode.
Use convert_types on value that could be mixed type or misinterpreted like integers and numeric strings.

[x] If the data model has been converted from wildcard dicts:

Add convert_types: ['dict'] to the schema.
Remove convert_dicts from the templates/eos/<>.j2 and templates/documentation/<>.j2 templates.

[x] Run molecule converge -s build_schemas_and_docs to update schema and documentation.
[x] Test by running molecule converge -s eos_cli_config_gen and verify no errors or changes to generated configs/docs.

Reviewer Checklist

Reviewer 1: Carl

[ ] Verify that data model is fully covered in the described schema. Easiest by looking at the generated documentation.
[ ] Verify that convert_dicts has been removed from templates as applicable.
[ ] Verify no changes to configs/docs on any molecule scenario
[ ] Verify that CI pass

Reviewer 2: Emil

[x] Verify that data model is fully covered in the described schema. Easiest by looking at the generated documentation.
[x] Verify that convert_dicts has been removed from templates as applicable.
[x] Verify no changes to configs/docs on any molecule scenario
[x] Verify that CI pass

Thanks @carlbuchmann

@carlbuchmann please review this


UnboundLocalError: local variable 'base_urls' referenced before assignment

After a new install of 0.1.7 I encountered the following error:
[2024-02-22 09:27:32,595] root - ERROR - local variable 'base_urls' referenced before assignment
[2024-02-22 09:27:32,595] root - ERROR - Traceback (most recent call last):
  File "/home/pi/RPi_Relay_Board/python-bottle/utils.py", line 93, in send_ntfy
    ntfy(
  File "/home/pi/.local/lib/python3.9/site-packages/ntfy_wrapper/notifier.py", line 137, in __call__
    return self.notify(*args, **kwds)
  File "/home/pi/.local/lib/python3.9/site-packages/ntfy_wrapper/notifier.py", line 429, in notify
    if not isinstance(base_urls, list) or not base_urls or not base_urls[0]:
UnboundLocalError: local variable 'base_urls' referenced before assignment

https://github.com/vict0rsch/ntfy-wrapper/blob/131a5c53ca397ebba5e4be03dc82f576a75643bf/ntfy_wrapper/notifier.py#L429
It doesn't matter if I use the default config or a custom config. I even tried setting multiple urls to test if this works but without success.
Her's my sample conf which gets loaded (I tested with py-ntfy send --conf-path ...)
[notifier_init]
topics = my-secret-topic
emails =<EMAIL_ADDRESS>base_url = https://mylocal.domain,http://<IP_ADDRESS>:8085

[notify_defaults]
title = My NTFY Title
priority = 0
tags = fire
click =
attach =
actions =
icon = https://static-00.iconduck.com/assets.00/raspberry-pi-icon-2048x2048-p0y4r07x.png

Edit: I tested on a Raspberry Pi with Python 3.9.2

Nevermind, after adding debug_True to the ntfy() function reveiled the true root of the issue:
requests.exceptions.InvalidHeader: Header part (2) from ('priority', 2) must be of type str or bytes, not <class 'int'>
After changing the priority from an int to a  str the error was gone.


Update info on sheehui in our AboutMe page

Add github link.
Add profile photo in .png as specified by 2103T website.
Add a pseudo portfolio in tp/team.

Btw do u wanna delete the placeholder stuff in sheehui.md and just keep adding to it every week or how?

And I feel maybe we can delete the project summary in the sheehui.md, no point everyone copy paste that paragraph right?

And I feel maybe we can delete the project summary in the sheehui.md, no point everyone copy paste that paragraph right?

I think we might want to leave it in as it seems to be each individual members' "portfolio page" so it will be a bit more complete to provide context as a whole so the content is more cohesive.

Btw do u wanna delete the placeholder stuff in sheehui.md and just keep adding to it every week or how?

Removed placeholders. We should keep johndoe.md tentatively for reference as we update portfolio page in the future.


Bring sanity to the caching regime

There's a host of caching metadata we track in order to avoid doing work twice, as well as to decide how to do work given the already-available information. This intermixes the notion of existence (a la #7) with a degree of synchronization that's been performed, given existence.
Things are slapdash right now, but there needs to be a coherent system for recording this information that allows:

Clear identification of what state the source manager is currently in
Clear identification of what states the source manager is could (maybe) be moved to, in order to service a method call
The caller to express (or not care) about the source of the information being retrieved

I doubt there's some design that'll really clearly enable doing this, so there may end up being more tight coupling than would generally be comfortable.

#32 evidence of the problem


Convert tests.unit.concatenate.test_concantenate to pytest.

@pp-mo This pull-request is still in draft ... did you want me to hold off reviewing just now?

@pp-mo This pull-request is still in draft ... did you want me to hold off reviewing just now?

Not now it passes !
Knock yourself out ...

@pp-mo Awesome, cheers 🍻


Privilege Escalation not possible

I am trying to make 05-Privilege Escalation but my privileges stay "Contributor"
I tried like 5 times and also waited long periods of time but no "Owner" role for me :-(

Have updated the script causing this issue. This PR fixes the issue.


Normalize component generator

Description
This PR fixes #
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

@Revolyssup build check failure...


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target_e5b91741-5c53-43ca-8f48-ce64fc05725e/pull/1 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-archive-test-target_e5b91741-5c53-43ca-8f48-ce64fc05725e.git

Docs Build status updates of commit 659c4e8:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error-UserAccountBuildPermissionInsufficientError] Owner v-alji no longer has Read permission of the repository https://github.com/opstest2/docs-archive-test-source. It might be due to recent GitHub changes on SSO. Please ask the owner v-alji to logon to Docs Portal https://ops.microsoft.com once again. If it is not the case, please ask anyone of Admin permission of the repo to assign a new owner via Docs Portal https://ops.microsoft.com

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Unable to switch bot language in Composer 1.3.1

With Composer 1.3.1 that has three languages (English, Swedish, Finnish) we are unable to switch the language we are using to edit. Clicking the language selection button at the top of the window flashes the selection and immediately closes.

A quick test with a new bot with two languages implies that the problem is not with our older, migrated bot, but can be reproduced with a fresh bot on the Composer.
Version
Bot Framework Composer
            Version:  1.3.1
            Electron: 8.2.4
            Chrome: 80.0.3987.165
            NodeJS: 12.13.0
            V8: 8.0.426.27-electron.0

Browser

[X] Electron distribution

OS

[X] macOS
[X] Windows

To Reproduce
Create a bot with more than one language. Try to select some other than the default language to be edited.
Expected behavior
New language would be selected and we could edit the content for it.

https://user-images.githubusercontent.com/996293/107786614-c84c7100-6d56-11eb-8922-54597e2175b0.mp4
Here's a vid of this occurring with a fresh bot

If there's only en-us as language the menu opens (of course, not very useful then...)

@ttur if you author different languages for your bot, you will see them as selectable options in this list. See the following doc for explanation on how to do this: https://docs.microsoft.com/en-us/composer/how-to-use-multiple-language
Closing as a how-to

Thank you for the response.
Our bot is a year old already and we have been using the Composer since the beginning, from early beta. We have had the multi-language support since June. Our bot does not work now, on 1.3.1, at all. I studied the documentation linked, but it did not help, at all.
I will try to create a new bot with this composer to see if I get multiple languages working and figure out what has changed. But if you have done a breaking change to language support since version 1.1.1 – that means we have to re-create the bot for multiple languages – it would be appreciated if this was told to us now, since this is all very time-consuming.

You might also want to take a look at this issue which was verified earlier: https://github.com/microsoft/BotFramework-Composer/issues/5441

@ttur there have been no known breaking changes around multi-language authoring. Are you able to send us the solution to look at and troubleshoot?
The issue you linked has not been addressed in 1.3.1, however if you subscribe to the early adopters feed you would see the change. Perhaps try this as well. Note: this commit in particular has introduced some unwanted side-effects and we may revert and reimplement with a different approach.

I'm seeing the same issue. To repro

Create an empty bot
Add a language
See the language switch in the dropdown UI and cant change it
EmptyBot-8-Repro.zip

As mentioned, if I change the default language in the settings, the UI dropdown will switch to that language. I just cant use the dropdown itself.


complete URL to OpenWeatherMap city list

usefull to get same full URL as in README.md

Please send your pull requests the develop branch.
Don't forget to add the change to CHANGELOG.md.

Does the pull request solve a related issue?
If so, can you reference the issue?
What does the pull request accomplish? Use a list if needed.
If it includes major visual changes please add screenshots.

humm ... should have pulled to develop branch ...


conda/README.MD: MINICONDA variables must be metadata, not env vars

conda/README.MD currently states: "users can easily config for targeted versions via the following env vars [...] MINICONDA_VARIANT [...] MINICONDA_VER"
However, as far as I can tell, bootstrap-conda.sh only reads from instance metadata. The first lines of the script currently set these variables with:
MINICONDA_VARIANT=$(/usr/share/google/get_metadata_value attributes/MINICONDA_VARIANT || true)
MINICONDA_VERSION=$(/usr/share/google/get_metadata_value attributes/MINICONDA_VERSION || true)

I think there are two possible fixes:

Change README.MD to say "instance metadata" instead of "env vars".
Change the script to prefer existing environment variables, then instance metadata, then the hard coded defaults.

(We ran into this since some update to something broke our Python 2 scripts, since it started installing Python 3 instead. We first tried setting the environment variables before running the script, before realizing that we need to set instance metadata keys instead)

Good catch -- thanks! I went with the first option.

AWESOME thanks!


0.2.1 - Check coins access rules

Some Coins seems to be inverted on the map concerning access rules and/or order
Will make a solo game and check them level by level (or check the AP repository for the access rules)

#6 should be fixed in this Pull when applied

Fixed in last pull


IE error on tablet

If you have a question, please ask it on StackOverflow and use signature-pad tag instead of creating an issue.
Do you want to request a feature or report a bug?
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/szimek/h80phxyr/).
What is the expected behavior?
Which versions of SignaturePad, and which browser / device are affected by this issue? Did this work in previous versions of SignaturePad?

I'm using the sample files in the doc folder.  Chrome seems to work fine and it works fine on both IE and Chrome on desktop.
But in IE Tablet I get a yellowed box and no option to sign.  Is there another file I'm missing or setting. I saw a commented out if statement for IE 9.
Thanks,
Dan

Can you somehow open JS console to see if there are any JS errors reported?

It was a compatibility issue.
Thanks

I'll close this issue then.


[GPT3] Migrate gpt3 from fleetx into paddlenlp

PR types

Others
PR changes

Others
Description

[GPT3] Migrate gpt3 from fleetx into paddlenlp

hello @haohongxiang . 麻烦按照lint结果，修改一下代码风格错误


Feature - Revise templates' structure

There is an linting error. I added a commit to fix it, which worked on my machine, but somehow did not work on Github action.
My guess is that it's due to the OS (mine is MacOS, and the linting job is running in Ubuntu). If it's ok, I will try to fix it latter.

@FlorianJacta did clarify that the root.md is not the homepage, but it is was is shared by every page like the navbar and the general logic of the application.
We need to update the explanation in multi-page-gui/{{cookiecutter.application_name}}/pages/root.py and multi-page-gui/{{cookiecutter.application_name}}.


Unexpected behavior of the navbar

Description
On the contact page the navbar contents appear shifted to the right . is it a bug or have been done intentionally ? If it is a bug pls assign me this task to fix it .
Steps to Reproduce
When I go on the contact us page , the navbar elements appear to be shifted rightwards which I think is a bug and should be fixed .
Expected Behavior
No response
Actual Behavior
No response
Screenshots

Additional Information
No response
What browser are you seeing the problem on?

[ ] Firefox
[X] Chrome
[ ] Safari
[ ] Microsoft Edge

Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I want to work on this issue. (optional)

it has been done intentionally and we don't want any further updation on this page.
I have seen many navbar issues, and i have mentioned it before for contributors to not create issues regarding navbar and there should be no more navbar issues, so i have closed this issue, if you have any queries, you can join discord server for further updates and communication.
we are not looking for navbar updates for now, as it was done and changes many times before.
So I am closing this issue.
please understand.
and one more thing this project is going to be inactive from october 26th including me also.


Force Clustered (at Zoom Lvl)

Thank you for the great project! :sparkles:
Can I somehow force to place clusters even for population == 1 until spider-fied (or at a given/the highest zoom level)?

Hello, and thank you :)
This feature is not supported yet. Meanwhile, you could use the same specific icon for clusters and markers like this :
// Create the cluster icon
var clusterIconPop1 = leafletView.BuildLeafletClusterIcon({population :1});
...
// Attach the cluster icon to the marker (you have to do it for each marker)
marker.data.icon = clusterIconPop1;

Thank you for the hint, good point!
Can I also use that modified icon only for a specific zoom level (e.g., set/unset it on zoom level change events)? I am already using icons for the final, spiderfied objects.


Event emitter example does not work

I tried to run the code from the last example in the README:
import {FastifySSEPlugin} from "fastify-sse-v2";
import EventIterator from "event-iterator";

const server = fastify();
server.register(FastifySSEPlugin);

server.get("/", function (req, res) {
    const eventEmitter = new EventEmitter();
    res.sse(new EventIterator(
                (push) => {
                  eventEmitter.on("some_event", push)
                  return () => eventEmitter.removeEventListener("some_event", push)
                }
        )
    );
});

I changed "some event" to the events emitted by my event emitter ("scan"). But I still get the following error:
TypeError [ERR_INVALID_ARG_TYPE]: The "listener" argument must be of type function. Received an instance of Object
        at checkListener (events.js:111:11)
        at _addListener (events.js:348:3)
        at EventEmitter.addListener (events.js:406:10)
        at D:\Development\new-project\server\routes\index.js:25:21

Does this only work with certain versions of event-iterator? Or is there another issue I overlooked?

Try this instead:
const {EventIterator} = require('event-iterator')
If that works for you, then the example needs to be corrected.

Try this instead:
const {EventIterator} = require('event-iterator')
If that works for you, then the example needs to be corrected.

Oh, I forgot to mention I've already tried that, but it doesn't work :(

Oh, I forgot to mention I've already tried that, but it doesn't work :(

Try to wrap push like ({push}). EventIterator changed api afaik.

Try to wrap push like ({push}). EventIterator changed api afaik.

Thanks @mpetrunic, that works!

Thanks @mpetrunic, that works!

unfortunately the example doesn't work for me.
// working example
res.sse((async function * source () {
          for (let i = 0; i < 10; i++) {
            sleep(2000);
            yield {id: String(i), data: "Some message"};
          }
    })());

// doesn't work
res.sse(new EventIterator.EventIterator(
      ({ push, stop, fail }) => {
        eventEmitter.addListener("data", push)

        return () => {
          this.removeListener("data", push)
        }
      })
    );

Do you use fastify-compress or something similar?
What error do you get?
What version of fastify? Can you share link to example?

my plagins are
"fastify": "^2.0.0",
    "fastify-autoload": "^1.0.0",
    "fastify-cli": "^1.1.0",
    "fastify-cors": "^2.1.3",
    "fastify-env": "^1.0.1",
    "fastify-file-upload": "^2.0.1",
    "fastify-jwt": "^1.0.0",
    "fastify-plugin": "^1.5.0",
    "fastify-sse-v2": "^1.0.7",
    "fastify-static": "^2.5.0",

no error, just can't receive messages. hovewer I'm able to receive "open" and "close" events in browser

Can you share link to example?

probably on this week.. I don't have time enough to create an example from my sources

Btw, first example is working for you but not second? What version of EventIterator are you using?

"event-iterator": "^2.0.0"
It doesn't work because event doesn't contains data key.
The working examples are:
// pure nodejs without EventIterator library
   eventEmitter.emit('data', {data: 'data'});
    reply.sse((async function * source () {
      for await (let event of on(eventEmitter, 'data')) {
        console.log('event', event);
        yield {data: JSON.stringify(event[0])}
      }


Identifier doesn't work for Image Layer

This issue was imported from CodePlex
jirikadlec2 wrote 2011-02-09 at 20:34
The built-in DotSpatial identifier on the SpatialToolStrip doesn't work with image layers:

Open DemoMap and add a raster layer to the map

Click the identifier "(i)" button on the main toolbar

Click on a point on the image in the map

An empty "FeatureIdentifier" dialog appears. I would expect the dialog to show the image (RGB) value and the image row,column at the clicked point.

Good suggestion. Even more: now identifier throws unhandled exception on image layers. Schedule it to 2.0.

Remove milestone.


Add to graph in 1.1.38

In version 1.0.30, I had the option to add a variable to the graph. In the newest version, this button is gone. How do I add to graph in the newest version?

Thank you for reporting it!
I fixed in the new version.
Best regards,
FB


AKMicrophone init crash

I have seen this error pop up around here before but none of the attempts as fixing the issue have been any success for me.
Here's the error in all of it's glory:
Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required condition is false: IsFormatSampleRateAndChannelCountValid(hwFormat)'
And my code (as some other issues suggested, I have separated this code from my ViewController class into its own class):
var mic: AKMicrophone!
var tracker: AKFrequencyTracker!
var filter: AKHighPassFilter!
var silence: AKBooster!

init() {
    mic = AKMicrophone()
    filter = AKHighPassFilter(mic, cutoffFrequency: 200, resonance: 0)
    tracker = AKFrequencyTracker(filter)
    silence = AKBooster(tracker, gain: 0)
    AKSettings.audioInputEnabled = true
    AudioKit.output = silence
    try! AudioKit.start()
    Timer.scheduledTimer(timeInterval: 0.1,
                         target: self,
                         selector: #selector(self.informDelegate),
                         userInfo: nil,
                         repeats: true)
}

I am using AudioKit 4.7.2, Xcode 10.2.1, and testing on an iPhone 6 Plus (iOS 12.3.2) and an iPhone 7 Plus (iOS 13), both crash on AKMicrophone init.
Any help is greatly appreciated. Thanks in advance.

I've seen other issues say that the following solves the problem:
AKSettings.sampleRate = AudioKit.engine.inputNode.inputFormat(forBus: 0).sampleRate

However, this does not work for me, and AudioKit.engine.inputNode.inputFormat(forBus: 0).sampleRate always evaluated to 0.0.

Few things to try:
AKMicrophone recently was changed to a failable initializer, so try making mic an optional: var mic: AKMicrophone?
I know you are quickly prototyping but do wrap your `AudioKit.start() call in a do try:
do
{
    try AudioKit.start()
}
catch
{
   AKLog("Error:\(error.localizedDescription)
}
```

I do not believe AudioKit is updated for iOS 13 so stick with testing on iOS 12 for now

Lastly, As a sanity check I would try initializing the audioKit stuff in `viewDidAppear`, and of course refer to this article when you are ready to go from prototyping to production as AudioKit should be wrapped in a Singelton pattern: https://stackoverflow.com/questions/44258954/what-is-a-correct-way-to-manage-audiokits-lifecycle

@maksutovic Thanks for the quick reply. I went ahead and made these changes. I put the AudioKit.start() in a do catch block, as well as made AKMicrophone optional. I moved all of the AudioKit related code to the viewDidAppear (it was previously in viewDidLoad).
Even with all of these changes, exactly the same error. However, an even stranger thing, I tried moving all of my AudioKit code, just the core functionality of this one view, to a separate app which had only this one view controller and AudioKit functionality, and it has run perfectly on all of my devices. Maybe this is a problem with how I've set up the rest of the structure of my app? I've ensured the versions, Swift Compiler versions, etc are all the same between these two apps... I can't think of what would be causing the difference.
Thanks

@gm3197 that's very interesting since I and @maksutovic seemed to have the same problem. We couldn't recreate our issue in a separate app, but it would always crash on our app. Strange! I'm thinking we just haven't figured out how to exactly replicate the conditions in our app in the sample test app.

player.stop()
    do{
        try AudioKit.stop()
    }
    catch{
        print ("")
    }

add this line of code before moving to next screen. this works for me..
actually i am calculating the frequency. I was facing the same issue on the next controller.

Same here, here is my attempt to stabilize the issue, gathered several answers into this:
_ = AudioKit.engine.inputNode;
if let audioUnit = AudioKit.engine.inputNode.audioUnit {
AudioOutputUnitStop(audioUnit);
AudioUnitUninitialize(audioUnit);
}
AKSettings.audioInputEnabled = true;
let recordingFormat = AudioKit.engine.inputNode.inputFormat(forBus: 0);
AKSettings.sampleRate = recordingFormat.sampleRate;
microphone = AKMicrophone.init(with: recordingFormat);
tracker = AKFrequencyTracker(microphone);
AudioKit.output = AKBooster(tracker, gain: 0);
try? AudioKit.start();
}

It doesn't fix it but less devices crash, the main problem is iPhone 7.

Having the same issue here on iOS 13 beta 3. Tried every answer here, to no avail. I also tested with the "Recorder" example, and I also get the same error:
Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required condition is false: format.sampleRate == inputHWFormat.sampleRate'
The crash happens on line 116 in the example:
            do {
                try recorder.record()
            } catch { AKLog("Errored recording.") }

The phone I tested with is an iPhone XS (not in silent mode).

init AKMicrophone as a let in your app，not in class

I had the same issue but with AudioKit 4.9, it was resolved with no code change.

Hopefully it is fixed in 4.9, reopen if not.

I had the same issue. Initially the code was like this:
// Ivar
let mic = AKMicrophone() // this is what was causing the crash

I fixed it by changing it to this:
// Ivar
var mic: AKMicrophone!

override func viewDidLoad() {
       super.viewDidLoad()

       // ...
       mic = AKMicrophone()
}


Debian repository signature cannot be verified

Description
When executing the steps mentioned on https://dbeaver.io/download/ for installation from a repository on a Debian Testing system, apt complains
Err:19 https://dbeaver.io/debs/dbeaver-ce  InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D33A1BD725ED047D
Warning: https://dbeaver.io/debs/dbeaver-ce/InRelease: The key(s) in the keyring /usr/share/keyrings/dbeaver.gpg.key are ignored as the file has an unsupported filetype.
Warning: GPG error: https://dbeaver.io/debs/dbeaver-ce  InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D33A1BD725ED047D
Error: The repository 'https://dbeaver.io/debs/dbeaver-ce  InRelease' is not signed.
Notice: Updating from such a repository can't be done securely, and is therefore disabled by default.
Notice: See apt-secure(8) manpage for repository creation and user configuration details.

I don't know if something has recently changed how Debian treats repository keys, but if so, the instructions should be updated accordingly.
DBeaver Version
Community 24.3
Operating System
Debian Testing
Database and driver

Steps to reproduce
sudo  wget -O /usr/share/keyrings/dbeaver.gpg.key https://dbeaver.io/debs/dbeaver.gpg.key
echo "deb [signed-by=/usr/share/keyrings/dbeaver.gpg.key] https://dbeaver.io/debs/dbeaver-ce /" | sudo tee /etc/apt/sources.list.d/dbeaver.list
sudo apt-get update && sudo apt-get install dbeaver-ce

Additional context
No response

@tcrass
you can try this instructions
sudo mkdir -p /usr/share/keyrings/
curl -s https://dbeaver.io/debs/dbeaver.gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/dbeaver.gpg.key

instead of
sudo  wget -O /usr/share/keyrings/dbeaver.gpg.key https://dbeaver.io/debs/dbeaver.gpg.key

@tcrass you can try this instructions
sudo mkdir -p /usr/share/keyrings/
curl -s https://dbeaver.io/debs/dbeaver.gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/dbeaver.gpg.key

instead of
sudo  wget -O /usr/share/keyrings/dbeaver.gpg.key https://dbeaver.io/debs/dbeaver.gpg.key

Thanks a lot, you saved my day, fixed it.

Can confitm that this works; the trick seems to be processing the downloaded file through gpg. Also works with wget, of course.
Could you please update the instructions on the website?
Cheers -- tcrass


Proposal: Use go mod compatible semver for release tags.

Golang is now mid stage at rolling out go modules. It'll be the default in the next version ~6 months away. An important requirement that go mod enforces is the use of semantic version tags for releases. This means if a game studio wants to depend on Open Match 0.4.0 the recommended way in Go 1.13+ will be run go get -u<EMAIL_ADDRESS>Using branches and tag formats that are not vX.Y.Z will fail. There is a fall back for repositories that do not follow this standard which involves using the git commit hash instead which is ugly. See https://github.com/golang/go/wiki/Modules#version-selection for more information.
I'd like to propose we should start using semver starting with the 0.4.0 release. This change is tied with proposal, https://github.com/GoogleCloudPlatform/open-match/issues/97 which allows Open Match to confirm with typical Github workflows.

I like this idea.  There was some guidance I read when choosing the current tag format that had recommended having the '-alpha' after it for some reason.  I can't remember what it was any more, though.

We've had discussions with Unity that ended up coming out that using "alpha" is confusing because alpha means different things to each company. At some point GCP had this policy, https://cloudplatform.googleblog.com/2014/10/new-release-phases-for-google-cloud.html.

https://github.com/GoogleCloudPlatform/open-match/pull/106


Parser.Default.FormatCommandLine yields blanks when c.PrefeShortName is true and there is no short name

Parser.Default.FormatCommandLine(options, c => c.PreferShortName = true))
Yields blanks for options with only a long name, e.g.
    class Options
    {
        [Option("foo", HelpText = "foo option", Hidden = true)]
        public string foo { get; set; }
    }

I expected it to print the long name in the absence of the short one.

FWIW, problem is here (in unparser code):
var longName =
                optionSpec.LongName.Length > 0
                && !settings.PreferShortName;

Proposed change:
        private static string FormatName(this OptionSpecification optionSpec, UnParserSettings settings)
        {
            var longName =
                optionSpec.ShortName.Length == 0
                || optionSpec.LongName.Length > 0
                && !settings.PreferShortName;

Looks good to me... a pull request is easiest way to integrate this in.
Dan or I can merge it once you craft one up.
Thanks for the contribs!
On Sun, Mar 25, 2018 at 8:42 AM, gbritton1<EMAIL_ADDRESS>wrote:

Proposed change:
    private static string FormatName(this OptionSpecification optionSpec, UnParserSettings settings)
    {
        var longName =
            optionSpec.ShortName.Length == 0
            || optionSpec.LongName.Length > 0
            && !settings.PreferShortName;

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/commandlineparser/commandline/issues/261#issuecomment-375967718,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACG_zGlOmYA-7vT3amLDAwk3bIi3nh0kks5th5DCgaJpZM4S3_A_
.

--
E.Newton
Senior Software Craftsman
Cell:<PHONE_NUMBER>
EMail<EMAIL_ADDRESS>

Thanks Eric, working on that.  I found a simpler way, I think:
var longName = !settings.PreferShortName || optionSpec.ShortName.Length == 0;
Though it seems to read backwards, it reaches the same goal.  Short name not preferred?  Go with long!  No short name?  Has to be long!
I'll be sending a pull request shortly, but I want to know what to do about the solution as a whole, since, as cloned, it won't build for me.  (See https://github.com/commandlineparser/commandline/issues/263
I don't want to mess with this, since I'm not exactly sure what the intent is or how to fix it.
Suggestions?

This is fixed in my pull request, if you have a moment to look at it


307/308 redirects do not fully comply with their RFCs

Location header resolution should better follow the RFC
Currently the new request is set up in a non-ideal fashion, trying to hack through the url resolution process. It would be better to split the url resolution from the actual request process so redirects can bypass the url resolution.

@jFransham


Inserting parameter into LIKE operator in prepared statement

I can not get the prepare command to work when trying to insert a variable into the WHERE x LIKE '__' statement.
I have tried these so far:
db.prepare("select * from CARDS_VIEW where name like ? limit ?").all(name, limit)
db.prepare("select * from CARDS_VIEW where name like '?' limit ?").all(name, limit)
db.prepare("select * from CARDS_VIEW where name like ? limit ?").all('\''+name+'\'', limit)
db.prepare("select * from CARDS_VIEW where name like ? limit ?").all([name, limit])
For the first and last option, I get the error code SQLite: database schema has changed.. For the second option I get Too many parameters were provided..
For now, I've gotten around it by concatenating the name variable into the statement, but that does not sanitize the input. Is there any way I can insert a variable into the LIKE operator?

Both of these are correct:
db.prepare("select * from CARDS_VIEW where name like ? limit ?").all(name, limit)
db.prepare("select * from CARDS_VIEW where name like ? limit ?").all([name, limit])

The relevant error you're experiencing is SQLite: database schema has changed. This error occurs when trying to reuse the same prepared statement object before and after a schema change. If you ever do ALTER TABLE or DROP TABLE in your code, any previously created prepared statements will become invalid, and you must recreate them.
Alternatively, you could simply refrain from reusing prepared statements at all (create them, use them once, and then discard them). Unless you're executing thousands of queries every second, the cost of creating new prepared statements is negligible.

With the release of v2.3.0, you should no longer receive the error SQLite: database schema has changed, even if you reuse a prepared statement after changing the database schema.

Ahh. I see. I was returning the db.prepare from a function. so it was creating a new one each time. That makes sense, thank you.


Licence

Please would you add / grant a licence? Without a licence, then default copyright laws apply, meaning that you retain all rights to your source code and no one may reproduce, distribute, or create derivative works.  [https://help.github.com/articles/licensing-a-repository/] (https://help.github.com/articles/licensing-a-repository/) ). I'd like to create an AWS auth for hyperapp derived from your code, please. May I suggest MIT licence, in keeping with hyperapp?

Sure thing! I just added a LICENSE file; MIT as you suggested. Hope that helps 👍 keep me posted if there is ever anything you have made with it that you can share.


Consider adding a Donation Button instead of large QR on every page.

Cool site/idea!
Check out this button http://blog.coinkite.com/post/122796324311, all you need is to create a wallet there (multisig, or even forward the funds out), but it creates a proper bip32 HD checkout.
Adding the link to the template is as easy as adding a link or embedding an image.

Thanks for the feedback. I'll definitely consider it.
Perhaps both?  (a QR code and donate button)

The button would take you to a page with a QR, I get the motivation but register users will see it too much.

I guess I am missing the user experience need to show QR at all?  Kind of equivalent to having a wav file "say" a URL for you isn't it?  I mean links do actually work on websites, it is not like a user is reading this on a printout.

@wadestuart - you make a good point. I guess the idea was that if someone wants to whip out their phone and scan the QR code they could more easily donate.
But I like the idea of a donate button, and CoinKite has some nice looking ones.
I've added a Figaro environment variable (config/application.yml) called 'donate_code' that can hold the embeddable html.
CoinKite button live now at:
http://phez.co/
Appears to be working, too.

:+1:


Validate metric names normalization in metadata.csv

What does this PR do?
Make sure than metric names in metadata.csv are "normalized". If they aren't our backend won't understand it.
Motivation
Syncing metadata for aerospike is raising Exceptions.
Additional Notes
I didn't extract the normalization as a generic utils method as we already have a normalization method inside the AgentCheck base class that works slightly differently. This one is really about making sure that the backend won't fail.

Will rebase on https://github.com/DataDog/integrations-core/pull/5438#pullrequestreview-341277196 once it is merged


Allow custom renderer for group header (or tabs container)

Is your feature request related to a problem? Please describe.
Users with many tabs open find it hard to find the tabs and distinguish them from others, and they take up too much space. We'd like to group the tabs similar to what you can do in Chrome.

Describe the solution you'd like
Being able to specify the headerComponent for a group, in addition to left-, right- & prefixHeaderActionsComponent, like you can with a tabComponent but instead replacing the enitire content of .tabs-and-actions-container.
Describe alternatives you've considered
It could probably be solved by building more complex individual tabComponent that can render differently depending on how they are being grouped.
Additional context
This could also allow different implementations for handling tabs overflowing the header width.

Duplicate of https://github.com/mathuo/dockview/issues/259


Cannot see Cluster/Project name in alert message

rancher/rancher:master 02/14
Steps:

Enable monitoring
Add a rule based on metrics
Trigger the alert

Results:
There is no cluster/project name in alert message
Users can only see the cluster id and project id for it.

Version: master 2.2 (2/20/19) Image ID: 7c0a59c18460
This version can see the cluster/project name (ID)
Confirmed fixed.


How to get zoomed/cropped bitmap

After zooming in the view how can we get cropped/zoomed bitmap.

hello
did you find a solution for that @romaan-khan