Question - Usage Example

Would you please provide simple main complete example to resize the Image ?
I can not find complete usage code for this library, i just do below steps but not succeed.
1- open original Image
2- resize by library
3- save to new file
in step 2 i dont know how should i set the output buffer size then i set it to original file size,
the code below has exception (segmentation fault) after  ImageResizer.resizeImage
Successfull Compile by G++ Version :
g++ (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Complie Command:
g++ main.cpp -o run
Runtime Error:
Segmentation fault (core dumped)
Source Code:
#include <iostream>
#include <string.h>
#include "avir.h"
#include <fstream>

inline void setFileContent(const std::string &pFileName, const std::string &pFileContent)
{
    std::ofstream fileStreamWrite(pFileName);
    fileStreamWrite << pFileContent;
    fileStreamWrite.close();
}

inline std::string getFileContent(const std::string &pFileName)
{
    std::ifstream fileStreamRead(pFileName);
    std::string fileContents((std::istreambuf_iterator<char>(fileStreamRead)),
            std::istreambuf_iterator<char>());
    return fileContents;
}

int main()
{

    std::string pOriginalImage = getFileContent("test.jpg");

    char cstr[pOriginalImage.size() + 1];
    std::copy(pOriginalImage.begin(), pOriginalImage.end(), cstr);
    cstr[pOriginalImage.size()] = '\0';

    uint8_t * inputBuffer = new uint8_t [pOriginalImage.size() + 1];
    inputBuffer = reinterpret_cast<uint8_t *>(cstr);

    uint8_t * outputBuffer = new uint8_t [pOriginalImage.size() + 1];

    avir :: CImageResizer<> ImageResizer( 8 );
    ImageResizer.resizeImage( inputBuffer, 640, 480, 0, outputBuffer, 320, 240, 3, 0 );
    std::string OutPut(reinterpret_cast< char const * >(outputBuffer));
    setFileContent("resize.jpg",OutPut);
   return 0;
}

Your request looks like a very basic programming question. Sorry, I can't provide assistance for such case, I suggest you to study arrays and buffers and how images are organized first.

Yes it is VERY Basic question about using your library, it is not related to programming, most of well documented libraries provide the tutorial, and complete example to show how you can use it, if i have complete knowledge about the image and processing images and image buffers, i could write my own image lib to handle my requirements, and never refer to the Libs, there are lots of open source libraries can handle this smoothly and without needs in-depth information about the library itself, because most of people just want to use it and they are not expert in that particular concept.
Just for more information for other people need the library for advanced and basic image processing, may they need examples and how to manuals, like me with very very basic programming knowledge 😉 and also they don't need extra info about the structure of internal library structure, could use these opensource Libs that noted below:
OpenCV - Well Documented, with complete example usage
imlib2 - Well Documented, with complete example usage
CImg - Well Documented, with complete example usage
Boost/GLI - if you are using boost it can be helpful
ImageMagic
GraphicsMagick
Intel - IPP
And the other libraries you can find in GitHub that can handle this task without involving you to deal with low level image data and buffers, etc...

Sorry, but you are a bit misinformed - AVIR's interface is as simple as possible, much easier to use than most libraries you've noticed. I think you simply lack a very basic understanding how buffers work, how much size you need to allocate, how image sizes correspond to buffer sizes. Without this knowledge you won't be able to use any library you've mentioned.

I don't have any  argument in this regard but for clarification about your sentence that mentioned above that slandered me to provide the "misinformed" i will share the OpenCV example to resize and edit photos below for you to show how they work without difficultly,
and also it is not just related to me you can see the The Problem for many people that using this Lib
In the other hand, i think this argument takes more time from you and me to write many sentence to prove our understanding or trying to help each other, you can easily provide one basic high level main file for people like me ( by assuming that they don't have any knowledge about buffers or other staffs) to show how the you can use the library. it is very simple, easy and will good for your lib and many people can use it for now your library takes about 70 star and 10 watcher, if it was easy in could take more scores than this numbers.
Any way, with all due respect to your attitude and viewpoint on this matter, I think I received the full answer and hope you will always be successful and successful.
Simple Example To Show How to Open Edit Resize Photos in Open CV:
#include "opencv2\highgui.hpp"
#include "opencv2\imgproc.hpp"
#include "opencv2\video\background_segm.hpp"
#include "opencv2\video\tracking.hpp"

using namespace cv;
using namespace std;

int main(int argc, const char** argv)
{
  //  Load the image from file
 Mat LoadedImage;
 // Just loaded image Lenna.png from project dir to LoadedImage Mat
 LoadedImage = imread("Lenna.png", IMREAD_COLOR);
 //I would like to visualize Mat step by step to see the result immediately.
 // Show what is in the Mat after load
 namedWindow("Step 1 image loaded", WINDOW_AUTOSIZE);
 imshow("Step 1 image loaded", LoadedImage);
 waitKey(1000);
 // Same the result from LoadedImage to Step1.JPG
 imwrite("Step1.JPG", LoadedImage);

// Saved Image looks like original :)
// You can load colored image directly as gray scale
 LoadedImage = imread("Lenna.png", CV_LOAD_IMAGE_GRAYSCALE);
  // Show what is in the Mat after load
 namedWindow("Step 2 gray image loaded", WINDOW_AUTOSIZE);
 imshow("Step 2 gray image loaded", LoadedImage);
        // Show the result for the longer time.
        // If you want to see video frames in high rates in the loop jist put here waitKey(20).
 waitKey(1000);

 // Same the result from LoadedImage to Step2.JPG
 imwrite("Step2.JPG", LoadedImage);
  //  Basic resize and rescale
 //
 // Resize LoadedImage and save the result to same Mat loaded Image.
 // You can also resize( loadedImage, Result, ..... )

 // Load again source images
 LoadedImage = imread("Lenna.png", IMREAD_COLOR);
 //You can resize to any size you want Size(width,heigth)
 resize(LoadedImage, LoadedImage, Size(100, 100));

 // Vizualization
 namedWindow("Step 3 image resize", WINDOW_AUTOSIZE);
 imshow("Step 3 image resize", LoadedImage);
 waitKey(1000);

 // Yes it is smaller than source. 100x100 image
  //Save above image to Step3.jpg
 imwrite("Step3.JPG", LoadedImage);
 LoadedImage = imread("Lenna.png", IMREAD_COLOR);

 // Better is resize based on ratio of width and heigth
 // Width and heigth are 2 times smaller than original source image
 // result will be saved into same mat. If you are confused by this.
 // You can try to modify the code and add MAT outputImage and dysplay it.
 //!! cols number of collumn of the image mat. and rows are rows
// cols and rows are same ase width and heigth
 resize(LoadedImage, LoadedImage, Size(LoadedImage.cols/2, LoadedImage.rows/2));

 // Vizualization
 namedWindow("Step 4 image resize better", WINDOW_AUTOSIZE);
 imshow("Step 4 image resize better", LoadedImage);
 waitKey(1000);
  // Save
 imwrite("Step4.JPG", LoadedImage);
 //All the steps are saved in Step1 Step
}

I cannot speak for others, but I do have a good working knowledge of buffers, yet I am having the same difficulty as Moshen.  Your software may well be very easy to use, but in the absence of an example to show us how to use it, we will never know.

Well, a lot of libraries offer you "frontend" for image loading and manipulation where you do not even need the knowledge how images are composed and physically stored. AVIR requires you to have low-level knowledge how image buffers work. Each image consists of pixels - 3 elements usually, RGB. Then image buffer consists of scanlines, each scanline consists of pixels. So, 640x480 3-channel 8-bit image image consists of 6404803 elements of type uint8_t.
Take a look at this Issue: https://github.com/avaneev/avir/issues/8 People there do not have such issues like you have, they've even delved in a very advanced area of multi-threaded usage of AVIR, and succeeded after all.
You do really need to up your C++ and image processing knowledge a bit to use AVIR.

Driving from my house to my work is really very easy - if you know how, or if you figure it out.  If you don't know, I do not criticise your ability to drive - I simply show you the directions.  A simple example program is like a map to a driver - it makes it easy for people to use your software, or to evaluate from the example usage if your software is suitable for their needs.

After reading these, and not seeing any solution, here is my try, apperantly it worked (using opencv to read and write).
#include "avir.h"
#include <opencv2/opencv.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/videoio.hpp>
int main()
{
cv::Mat InBuffer;
uint8_t * inputBuffer, * outputBuffer;
int w, h, c;
avir::CImageResizer<> ImageResizer(8);
InBuffer = cv::imread("original.jpg");
w = InBuffer.cols;
h = InBuffer.rows;
c = InBuffer.channels();
inputBuffer = new uint8_t[w * h * c];
inputBuffer = InBuffer.data;
outputBuffer = new uint8_t[(w * 2) * (h * 2) * c];// deseried size 868x1292
ImageResizer.resizeImage(inputBuffer, w, h, 0, outputBuffer, w * 2, h * 2, c, 0);
cv::Mat OutBuffer(h*2, w*2, CV_8UC3, outputBuffer);
cv::imwrite("resize.jpg", OutBuffer);

return 0;

}

Thanks for the example.

This example is very helpful - thank you for it.

Thanks for the example.

This example is very helpful - thank you for it.

My pleasure!

Thanks for the example.

Sir, thank you for this great API!

Thanks a lot for the example @virtualenv, it helps a lot!

Thanks a lot for the example @virtualenv, it helps a lot!

My pleasure!

I concur, a set of examples showing buffer construction in the docs would be very helpful.  I am trying to feed it a buffer with ARGB pixels and I cannot tell what it is choking on.  I need to step through the code and see where it is going out of bounds.  I don't see anything in the docs that describes if this library can handle alpha channels.  I get it you have to set the parameter to 4 instead of 3 indicating the number of bytes per pixel.  But it doesn't say if the pixels need to be in RGBA or ARGB.  Maybe it doesn't matter.

RGBA or ARGB, it does not matter. Only 4 for channel count matters.

Thank you!

@avaneev is the idea of templatizing the buffers so that you don't assume a byte per ElCountIO?  I think I was thinking the input and output required a pointer to a buffer with bytes.  However, my buffer pointer was QRgb which is a 32 bit int.  So I need to reinterpret_cast<uchar*>(QRgb*) to feed to the resize function.  It now makes sense which is was crashing.  It was treating each ElCountIO as a 32 bit int instead of an 8 bit char.

Yeah, you have to be more attentive when reading function descriptions. Templating the buffer element allows to have the same code to resize 8-, 16-bit and float buffers.

Your api description needs work.
I was able to get it to scale image last night.  I have been directly comparing the output to the scaling function from here:
https://doc.qt.io/qt-5/qimage.html#scaled
I am not seeing a big difference in output for the different scaling resolutions.  I am using this setting on the scaler from Qt:
Qt::SmoothTransformation | 1 | The resulting image is transformed using bilinear filtering.
When I tried some of the other settings of avir some things looked slightly better, but then those introduced some strange shadowing/outline effects in the transition from light to dark.  I saw this quite a bit on CImageResizerParamsUltra.  Is that the ringing you talk about in your code comments?

Yes, "Ultra" produces ringing/outline. If you do not see a difference between AVIR and bilinear filtering, I can't help or argue. Working with images requires quite a bit of experience to understand the differences and seeing the bigger picture.


Entity doesn't exist in AsyncLocal -  .WithContextMissingStrategy(ContextMissingStrategy.LOG_ERROR) does not work

The following code still throws a runtime exception when tracing DbContexts/HttpClients/Sdk
                    AWSXRayRecorder recorder = new AWSXRayRecorderBuilder()
                        .WithDaemonAddress(xrayDaemonAddress)
                        .WithContextMissingStrategy(ContextMissingStrategy.LOG_ERROR)
                        .Build();
                    AWSXRayRecorder.InitializeInstance(recorder: recorder);
                    AWSSDKHandler.RegisterXRayForAllServices();
                    builder.UseXRay(config[ApplicationName]);

Can there not be a guard that will simply create a segment if one is not found?
It seems better to simply have some tracing data that needs to be improved over time than crippling an application.
EDIT: setting AWS_XRAY_CONTEXT_MISSING does nothing

Hi @chazt3n,
You need to start a segment before making requests using an instrumented HTTP client. You can either manually begin segments or, if using a web app framework, have the SDK automatically create segments for incoming requests. The instrumented HTTP client will attempt to begin a subsegment, and if there is no parent segment for it to attach to a runtime exception will be thrown.
That's very strange that a runtime error is still thrown after setting the context missing strategy to log error. Setting it to log error should guarantee runtime exceptions are not thrown and the errors are simply logged instead. Can you post the stacktrace and more detailed reproduction code if the exception is being thrown even after setting LOG_ERROR?

at Amazon.XRay.Recorder.Core.Internal.Context.AsyncLocalContextContainer.GetEntity()
at Amazon.XRay.Recorder.Core.AWSXRayRecorderImpl.GetEntity()
at Amazon.XRay.Recorder.Handlers.EntityFramework.EFInterceptor.ProcessCommandError(CommandErrorEventData eventData)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Amazon.XRay.Recorder.Core.Internal.Context.TraceContextImpl.HandleEntityMissing(IAWSXRayRecorder recorder, Exception e, String message)
at Amazon.XRay.Recorder.Handlers.EntityFramework.EFInterceptor.ProcessCommandError(CommandErrorEventData eventData)
at Amazon.XRay.Recorder.Handlers.EntityFramework.EFInterceptor.CommandFailed(DbCommand command, CommandErrorEventData eventData)
at Microsoft.EntityFrameworkCore.Diagnostics.RelationalLoggerExtensions.CommandError(IDiagnosticsLogger1 diagnostics, IRelationalConnection connection, DbCommand command, DbContext context, DbCommandMethod executeMethod, Guid commandId, Guid connectionId, Exception exception, DateTimeOffset startTime, TimeSpan duration)    at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteScalar(RelationalCommandParameterObject parameterObject)    at Microsoft.EntityFrameworkCore.Migrations.HistoryRepository.Exists()    at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.Migrate(String targetMigration)    at Pomelo.EntityFrameworkCore.MySql.Migrations.Internal.MySqlMigrator.Migrate(String targetMigration)    at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.Migrate(DatabaseFacade databaseFacade)    at Service.Start.Startup.InitializaDatabase(IApplicationBuilder app, ILogger1 logger) in C:\Users\Service\Start\Startup.cs:line 795
at Service.Start.Startup.Configure(IApplicationBuilder app, IWebHostEnvironment env, ILogger`1 logger) in C:\Service\Start\Startup.cs:line 748
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder)
at Microsoft.AspNetCore.Hosting.ConfigureBuilder.<>c__DisplayClass4_0.b__0(IApplicationBuilder builder)
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)

So the littering of segments throughout the code is a tough pill to swallow for us. We have a microservices application with a common nuget package which is responsible for ensuring guaranteed delivery of SQS/SNS messages - services themselves hav many entry points that are not web requests.
Is the Auto-Instrument agent a better option for us?
I just need a way to get this deployed and we can have an ongoing effort

Hey @chazt3n ,
When you're trying to trace the EF Core request, some initialization queries may be executed before a parent segment is created, which causes the Entity doesn't exist in AsyncLocal exception, can you double check in your code? Also, a repro would be very helpful if you can provide one.
If you don't feel like modifying your code, you may try the auto instrumentation agent and instrument your application with X-Ray SDK out-of-box.

OK I definitely want to go the auto instrumentation route - I'm gonna be a customer for a long time so definitely do plan on contributing - I must prioritize getting to production with some visibility first!
My test setup is Xunit + In Memory Web api using Test Server + Create Client
        public static IApplicationBuilder UseMyCompanyXRay(this IApplicationBuilder builder, IWebHostEnvironment env,
            bool shouldEnableXrayLocally = false)
        {
            var logger = builder.ApplicationServices.GetService<ILogger<IApplicationBuilder>>();
            var config = builder.ApplicationServices.GetService<IConfiguration>();
            string xrayDaemonAddress = config.GetValue(XrayDaemonAddressEnvVar, DefaultXrayDaemonAddress);
            try
            {
                if (!env.IsDevelopment() || shouldEnableXrayLocally)
                {
                    AWSXRayRecorder recorder = new AWSXRayRecorderBuilder()
                        .WithDaemonAddress(xrayDaemonAddress)
                        .WithContextMissingStrategy(ContextMissingStrategy.LOG_ERROR)
                        .WithTraceContext()
                        .Build();
                    AWSXRayRecorder.InitializeInstance(recorder: recorder);
                    builder.UseXRay(config[ApplicationName]);
                }
            }
            catch (Exception exception)
            {
                logger.LogError(exception,
                    "Error Occurred Enabling AWS XRay. isDevelopmentEnvironment: {isDevelopmentEnvironment}, xrayDaemonAddress {xrayDaemonAddress}", env.IsDevelopment(), xrayDaemonAddress);
            }

            return builder;
        }

During test setup when creating the server, I call useStartup which calls that method.
I'm running in a docker-compose and passing the env var + hardcoding missing context - I have no appsettings.json settings related to xray (intentionally, maybe a problem though)
I think you're making a lot of sense suggesting that since we're still IN startup when we hit this error, something's going on there.
But if I added a segment around the migration, it would succeed and I would get the error later in the test scenario.

Going to close this out in favor of the discussion in https://github.com/aws/aws-xray-dotnet-agent/issues/20, @chazt3n feel free to reopen if needed!


G7 launch

Allow all services to be returned by API
Previously the buyer frontend expected the API to raise a 404 or 410 if the framework status was not valid. It now handles that itself by looking at the frameworkStatus so now the API can return all services it knows about.
Test search API call on draft publishing
Test that the search API is called correctly during the draft publishing process. Services should only be indexed in the search API if the framework is live.
Prevent draft deletion on publish submission
This change has been introduced to prevent drafts created through the submission process (submissions) from being deleted when they are published. In implementing this I have tightened up what actions can happen in various different states.
The not-submitted and submitted statuses are only possible on drafts that were created during the submissions process. They will not have a service ID until they are published. Because only submissions with the 'submitted' status can be published only they can have service IDs. When this kind of draft is published it is not deleted so as to preserve the submission.
The enabled, disabled and published statuses are inherited from the service model. Drafts can only have these statuses if they are created from an existing service. These drafts will always have a service ID. When this kind of draft is published it is deleted.

Reviewed - couple of very minor comments but otherwise looks good.

Nice one :+1:


Update deprecation status on crates.io, update Cargo maintenance status

http://doc.crates.io/manifest.html#package-metadata

Thanks for filing the issue!
I've just changed the status to "deprecated": https://crates.io/crates/coco


SAMZA-2406: Add ConfigLoader interface and default PropertiesConfigLo…

…ader implementation
Design:
https://cwiki.apache.org/confluence/display/SAMZA/SEP-23%3A+Simplify+Job+Runner
Changes:

Add ConfigLoader interface which will be used in job coordinator to retrieve config from.
Add PropertiesConfigLoader which is a default implementation of ConfigLoader that reads a local properties file given the file path.

API Changes:
N/A
Upgrade Instructions:
N/A
Usage Instructions:
N/A
Tests:

Add TestPropertiesConfigLoader to unit test PropertiesConfigLoader.

@bharathkk and @abhishekshivanna offered to look at this.
@kw2542 Can you update usage/upgrade instructions in the description with changes required for using this new feature? This information will be collected for the release notes and changelog for the next release.
Let's also fix the commit title (wrapping).

@bharathkk and @abhishekshivanna offered to look at this.
@kw2542 Can you update usage/upgrade instructions in the description with changes required for using this new feature? This information will be collected for the release notes and changelog for the next release.
Let's also fix the commit title (wrapping).

@kw2542 Can you also update the API changes in the description and add more details about this API (internal vs external) etc

@kw2542 , could you also clarify as part of this patch the reason we need this new implementation over the existing config-factory (eg: PropertiesConfigFactory) and config-path implementation ? Is this meant to be a replacement for the way we do config loading today ? If so, should we deprecate the old way ?

@kw2542 , could you also clarify as part of this patch the reason we need this new implementation over the existing config-factory (eg: PropertiesConfigFactory) and config-path implementation ? Is this meant to be a replacement for the way we do config loading today ? If so, should we deprecate the old way ?

@kw2542 , could you also clarify as part of this patch the reason we need this new implementation over the existing config-factory (eg: PropertiesConfigFactory) and config-path implementation ? Is this meant to be a replacement for the way we do config loading today ? If so, should we deprecate the old way ?

Updated both the PR description as well as SEP itself.
ConfigLoader will replace ConfigFactory interface, which will be deleted in the following PRs.

Discard to start a new PR clean.


embassy BLE example not showing up on macos on the esp32c3

When running the "wifi_embassy_ble" example on an esp32c3 on the most recent release (and also on the github main branch), the device is detectable and can be connected to on windows and android, but cannot be found on mac (having tried on two separate macos devices).
The logs incase they are useful:
I (24) boot: ESP-IDF v5.1.2-342-gbcf1645e44 2nd stage bootloader
I (24) boot: compile time Dec 12 2023 10:50:58
I (25) boot: chip revision: v0.4
I (29) boot.esp32c3: SPI Speed      : 40MHz
I (34) boot.esp32c3: SPI Mode       : DIO
I (38) boot.esp32c3: SPI Flash Size : 4MB
I (43) boot: Enabling RNG early entropy source...
I (48) boot: Partition Table:
I (52) boot: ## Label            Usage          Type ST Offset   Length
I (59) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (67) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (74) boot:  2 factory          factory app      00 00 00010000 003f0000
I (82) boot: End of partition table
I (86) esp_image: segment 0: paddr=00010020 vaddr=3c030020 size=079e0h ( 31200) map
I (101) esp_image: segment 1: paddr=00017a08 vaddr=3fc84e5c size=00378h (   888) load
I (103) esp_image: segment 2: paddr=00017d88 vaddr=3fca47f4 size=00078h (   120) load
I (111) esp_image: segment 3: paddr=00017e08 vaddr=40380000 size=04e5ch ( 20060) load
I (125) esp_image: segment 4: paddr=0001cc6c vaddr=00000000 size=033ach ( 13228)
I (131) esp_image: segment 5: paddr=00020020 vaddr=42000020 size=28b94h (166804) map
I (175) boot: Loaded app from partition at offset 0x10000
I (175) boot: Disabling RNG early entropy source...
INFO - esp-wifi configuration Config { rx_queue_size: 5, tx_queue_size: 3, static_rx_buf_num: 10, dynamic_rx_buf_num: 32, static_tx_buf_num: 0, dynamic_tx_buf_num: 32, ampdu_rx_enable: 0, ampdu_tx_enable: 0, amsdu_tx_enable: 0, rx_ba_win: 6, max_burst_size: 1, country_code: "CN", country_code_operating_class: 0, mtu: 1492, heap_size: 65536, tick_rate_hz: 100, listen_interval: 3, beacon_timeout: 6, ap_beacon_timeout: 300, failure_retry_cnt: 1, scan_method: 0 }
Connector created
Ok(CommandComplete { num_packets: 5, opcode: 3075, data: [0] })
Ok(CommandComplete { num_packets: 5, opcode: 8198, data: [0] })
Ok(CommandComplete { num_packets: 5, opcode: 8200, data: [0] })
Ok(CommandComplete { num_packets: 5, opcode: 8202, data: [0] })
started advertising

Nothing appears in wireguard with the esp extension, either.
This may be an issue with bleps, but I cannot verify this yet - that would be solved by #1933.

I don't have those but I remember Mac and especially iOS devices have their own idea how BLE peripherals should look and behave. What did you try to search for BLE devices? Without any 3rd party software, it's unlikely that MacOS will show anything at all

I attempted to search using only the default bluetooth macos gui - I will try and look into what macos requires (and if I get it working would it be worth me adding to an example?)

You might also want to try another BLE utility on MacOS - I think I used https://github.com/jnross/Bluetility before (long time since I used MacOS before)

that was completely the issue - I didn't understand the differences between bluetooth and BLE. Using the BLE scanner it appeared straight away (granted with a UUID service tag of "Health Thermometer", but I think thats just me messing around with UUIDs) - Thanks for the pointers @bjoernQ!


Facebook::Messenger::FacebookError: An active access token must be used to query information about the current user.

I have a valid access token.
I have an output 'true' when I subscribe in my app.
However, I still get this error:
Facebook::Messenger::FacebookError: An active access token must be used to query information about the current user.
I successfully exit at binding.pry but get the error when I message.reply.
When I output the ENV variable for message_access_token, it matches what is in the Facebook app under developer.facebook.com.
So this is confusing why message fails.
Bot.on :message do |message|
	binding.pry
	puts "inside bot message"
  	message.reply(text: 'Hello!')

end

How can I better debug this?

Facebook::Messenger::FacebookError at /webhook

Facebook::Messenger::FacebookError at /webhook
An active access token must be used to query information about the current user.

Ruby

/usr/local/rvm/gems/ruby-2.2.1/gems/facebook-messenger-1.0.0/lib/facebook/messenger/bot/error_parser.rb: in raise_errors_from, line 53

Web
POST dev.hellokaya.com/webhook

Jump to:

GET
POST
Cookies
ENV

Traceback (innermost first)

/usr/local/rvm/gems/ruby-2.2.1/gems/facebook-messenger-1.0.0/lib/facebook/messenger/bot/error_parser.rb: in raise_errors_from

 error_subcode = error['error_subcode']

 raise_code_only_error(error_code, error) if error_subcode.nil?

 raise_code_subcode_error(error_code, error_subcode, error)

 # Default to unidentified error

 raise FacebookError, error...

 end

 private

 def raise_code_only_error(error_code, args)

 raise InternalError, args if internal_error?(error_code)

 raise AccessTokenError, args if access_token_error?(error_code)

/usr/local/rvm/gems/ruby-2.2.1/gems/facebook-messenger-1.0.0/lib/facebook/messenger/bot.rb: in deliver

 response = post '/messages',

 body: JSON.dump(message),

 format: :json,

 query: {

 access_token: access_token

 }

 Facebook::Messenger::Bot::ErrorParser.raise_errors_from(response)...

 response.body

 end

 # Register a hook for the given event.

 #

 # event - A String describing a Messenger event.

/usr/local/rvm/gems/ruby-2.2.1/gems/facebook-messenger-1.0.0/lib/facebook/messenger/incoming/common.rb: in reply

 def reply(message)

 payload = {

 recipient: sender,

 message: message

 }

 Facebook::Messenger::Bot.deliver(payload, access_token: access_token)...

 end

 def access_token

 Facebook::Messenger.config.provider.access_token_for(recipient)

 end

 end

 end

/root/kaya-nitrous/bot.rb: in block in <top (required)>

subscribe = Facebook::Messenger::Subscriptions.subscribe(access_token: ENV["MESSENGER_ACCESS_TOKEN"])

puts 'running bot.rb'

puts subscribe

Bot.on :message do |message|

 message.reply(text: 'Hello!')...

 binding.pry

end

/usr/local/rvm/gems/ruby-2.2.1/gems/facebook-messenger-1.0.0/lib/facebook/messenger/bot.rb: in call

 end

 # Trigger the hook for the given event.

 #

 # event - A String describing a Messenger event.

 # args - Arguments to pass to the hook.

 def trigger(event, *args)

 hooks.fetch(event).call(*args)...

 rescue KeyError

 $stderr.puts "Ignoring #{event} (no hook registered)"

 end

 # Return a Hash of hooks.

 def hooks

 @hooks ||= {}

/usr/local/rvm/gems/ruby-2.2.1/gems/facebook-messenger-1.0.0/lib/facebook/messenger/bot.rb: in trigger

 end

 # Trigger the hook for the given event.

 #

 # event - A String describing a Messenger event.

 # args - Arguments to pass to the hook.

 def trigger(event, *args)

 hooks.fetch(event).call(*args)...

 rescue KeyError

 $stderr.puts "Ignoring #{event} (no hook registered)"

 end

 # Return a Hash of hooks.

 def hooks

 @hooks ||= {}

/usr/local/rvm/gems/ruby-2.2.1/gems/facebook-messenger-1.0.0/lib/facebook/messenger/bot.rb: in receive

 #

 # payload - A Hash describing the message.

 #

 # * https://developers.facebook.com/docs/messenger-platform/webhook-reference

 def receive(payload)

 callback = Facebook::Messenger::Incoming.parse(payload)

 event = Facebook::Messenger::Incoming::EVENTS.invert[callback.class]

 trigger(event.to_sym, callback)...

 end

 # Trigger the hook for the given event.

 #

 # event - A String describing a Messenger event.

 # args - Arguments to pass to the hook.

 def trigger(event, *args)

/usr/local/rvm/gems/ruby-2.2.1/gems/facebook-messenger-1.0.0/lib/facebook/messenger/server.rb: in block (2 levels) in trigger

 events['entry'.freeze].each do |entry|

 # If the application has subscribed to webhooks other than Messenger,

 # 'messaging' won't be available and it is not relevant to us.

 next unless entry['messaging'.freeze]

 # Facebook may batch several items in the 'messaging' array during

 # periods of high load.

 entry['messaging'.freeze].each do |messaging|

 Facebook::Messenger::Bot.receive(messaging)...

 end

 end

 end

 def respond_with_error(error)

 @response.status = 400

 @response.write(error.message)

/usr/local/rvm/gems/ruby-2.2.1/gems/facebook-messenger-1.0.0/lib/facebook/messenger/server.rb: in each

 # periods of high load.

 events['entry'.freeze].each do |entry|

 # If the application has subscribed to webhooks other than Messenger,

 # 'messaging' won't be available and it is not relevant to us.

 next unless entry['messaging'.freeze]

 # Facebook may batch several items in the 'messaging' array during

 # periods of high load.

 entry['messaging'.freeze].each do |messaging|...

 Facebook::Messenger::Bot.receive(messaging)

 end

 end

 end

 def respond_with_error(error)

 @response.status = 400

/usr/local/rvm/gems/ruby-2.2.1/gems/facebook-messenger-1.0.0/lib/facebook/messenger/server.rb: in block in trigger

 # periods of high load.

 events['entry'.freeze].each do |entry|

 # If the application has subscribed to webhooks other than Messenger,

 # 'messaging' won't be available and it is not relevant to us.

 next unless entry['messaging'.freeze]

 # Facebook may batch several items in the 'messaging' array during

 # periods of high load.

 entry['messaging'.freeze].each do |messaging|...

 Facebook::Messenger::Bot.receive(messaging)

 end

 end

 end

 def respond_with_error(error)

 @response.status = 400

/usr/local/rvm/gems/ruby-2.2.1/gems/facebook-messenger-1.0.0/lib/facebook/messenger/server.rb: in each

 rescue JSON::ParserError

 raise BadRequestError, 'Error parsing request body format'

 end

 def trigger(events)

 # Facebook may batch several items in the 'entry' array during

 # periods of high load.

 events['entry'.freeze].each do |entry|...

 # If the application has subscribed to webhooks other than Messenger,

 # 'messaging' won't be available and it is not relevant to us.

 next unless entry['messaging'.freeze]

 # Facebook may batch several items in the 'messaging' array during

 # periods of high load.

 entry['messaging'.freeze].each do |messaging|

 Facebook::Messenger::Bot.receive(messaging)

/usr/local/rvm/gems/ruby-2.2.1/gems/facebook-messenger-1.0.0/lib/facebook/messenger/server.rb: in trigger

 rescue JSON::ParserError

 raise BadRequestError, 'Error parsing request body format'

 end

 def trigger(events)

 # Facebook may batch several items in the 'entry' array during

 # periods of high load.

 events['entry'.freeze].each do |entry|...

 # If the application has subscribed to webhooks other than Messenger,

 # 'messaging' won't be available and it is not relevant to us.

 next unless entry['messaging'.freeze]

 # Facebook may batch several items in the 'messaging' array during

 # periods of high load.

 entry['messaging'.freeze].each do |messaging|

 Facebook::Messenger::Bot.receive(messaging)

/usr/local/rvm/gems/ruby-2.2.1/gems/facebook-messenger-1.0.0/lib/facebook/messenger/server.rb: in receive

 @response.write 'Error; wrong verify token'

 end

 end

  def receive

 check_integrity

 trigger(parsed_body)...

 rescue BadRequestError => error

 respond_with_error(error)

 end

 # Check the integrity of the request.

 #

 # Raises BadRequestError if the request has been tampered with.

/usr/local/rvm/gems/ruby-2.2.1/gems/facebook-messenger-1.0.0/lib/facebook/messenger/server.rb: in call

 def call(env)

 @request = Rack::Request.new(env)

 @response = Rack::Response.new

 if @request.get?

 verify

 elsif @request.post?

 receive...

 else

 @response.status = 405

 end

 @response.finish

 end

/usr/local/rvm/gems/ruby-2.2.1/gems/facebook-messenger-1.0.0/lib/facebook/messenger/server.rb: in call

 some time, check your app's secret token.

 HEREDOC

 # This module holds the server that processes incoming messages from the

 # Facebook Messenger Platform.

 class Server

 def self.call(env)

 new.call(env)...

 end

 def call(env)

 @request = Rack::Request.new(env)

 @response = Rack::Response.new

 if @request.get?

/usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.8/lib/rack/urlmap.rb: in block in call

 rest = m[1]

 next unless !rest || rest.empty? || rest[0] == ?/

 env['SCRIPT_NAME'] = (script_name + location)

 env['PATH_INFO'] = rest

 return app.call(env)...

 end

 [404, {CONTENT_TYPE => "text/plain", "X-Cascade" => "pass"}, ["Not Found: #{path}"]]

 ensure

 env['PATH_INFO'] = path

 env['SCRIPT_NAME'] = script_name

/usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.8/lib/rack/urlmap.rb: in each

 def call(env)

 path = env[PATH_INFO]

 script_name = env['SCRIPT_NAME']

 hHost = env['HTTP_HOST']

 sName = env['SERVER_NAME']

 sPort = env['SERVER_PORT']

 @mapping.each do |host, location, match, app|...

 unless casecmp?(hHost, host) \

 || casecmp?(sName, host) \

 || (!host && (casecmp?(hHost, sName) ||

 casecmp?(hHost, sName+':'+sPort)))

 next

 end

/usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.8/lib/rack/urlmap.rb: in call

 def call(env)

 path = env[PATH_INFO]

 script_name = env['SCRIPT_NAME']

 hHost = env['HTTP_HOST']

 sName = env['SERVER_NAME']

 sPort = env['SERVER_PORT']

 @mapping.each do |host, location, match, app|...

 unless casecmp?(hHost, host) \

 || casecmp?(sName, host) \

 || (!host && (casecmp?(hHost, sName) ||

 casecmp?(hHost, sName+':'+sPort)))

 next

 end

/usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.8/lib/rack/tempfile_reaper.rb: in call

 class TempfileReaper

 def initialize(app)

 @app = app

 end

 def call(env)

 env['rack.tempfiles'] ||= []

 status, headers, body = @app.call(env)...

 body_proxy = BodyProxy.new(body) do

 env['rack.tempfiles'].each { |f| f.close! } unless env['rack.tempfiles'].nil?

 end

 [status, headers, body_proxy]

 end

 end

end

/usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.8/lib/rack/lint.rb: in _call

 assert("No env given") { env }

 check_env env

 env['rack.input'] = InputWrapper.new(env['rack.input'])

 env['rack.errors'] = ErrorWrapper.new(env['rack.errors'])

 ## and returns an Array of exactly three values:

 status, headers, @body = @app.call(env)...

 ## The *status*,

 check_status status

 ## the *headers*,

 check_headers headers

 check_hijack_response headers, env

/usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.8/lib/rack/lint.rb: in call

 ## after to catch all mistakes.

 ## = Rack applications

 ## A Rack application is a Ruby object (not a class) that

 ## responds to +call+.

 def call(env=nil)

 dup._call(env)...

 end

 def _call(env)

 ## It takes exactly one argument, the *environment*

 assert("No env given") { env }

 check_env env

/usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.8/lib/rack/showexceptions.rb: in call

 def initialize(app)

 @app = app

 @template = ERB.new(TEMPLATE)

 end

 def call(env)

 @app.call(env)...

 rescue StandardError, LoadError, SyntaxError => e

 exception_string = dump_exception(e)

 env["rack.errors"].puts(exception_string)

 env["rack.errors"].flush

 if accepts_html?(env)

/usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.8/lib/rack/commonlogger.rb: in call

 def initialize(app, logger=nil)

 @app = app

 @logger = logger

 end

 def call(env)

 began_at = Time.now

 status, header, body = @app.call(env)...

 header = Utils::HeaderHash.new(header)

 body = BodyProxy.new(body) { log(env, status, header, began_at) }

 [status, header, body]

 end

 private

/usr/local/rvm/gems/ruby-2.2.1/gems/sinatra-1.4.8/lib/sinatra/base.rb: in call

 env['sinatra.commonlogger'] ? @app.call(env) : super

 end

 superclass.class_eval do

 alias call_without_check call unless method_defined? :call_without_check

 def call(env)

 env['sinatra.commonlogger'] = true

 call_without_check(env)...

 end

 end

 end

 class NotFound < NameError #:nodoc:

 def http_status; 404 end

 end

/usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.8/lib/rack/chunked.rb: in call

 false

 else

 true

 end

 end

 def call(env)

 status, headers, body = @app.call(env)...

 headers = HeaderHash.new(headers)

 if ! chunkable_version?(env['HTTP_VERSION']) ||

 STATUS_WITH_NO_ENTITY_BODY.include?(status) ||

 headers[CONTENT_LENGTH] ||

 headers['Transfer-Encoding']

 [status, headers, body]

/usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.8/lib/rack/content_length.rb: in call

 include Rack::Utils

 def initialize(app)

 @app = app

 end

 def call(env)

 status, headers, body = @app.call(env)...

 headers = HeaderHash.new(headers)

 if !STATUS_WITH_NO_ENTITY_BODY.include?(status.to_i) &&

 !headers[CONTENT_LENGTH] &&

 !headers['Transfer-Encoding'] &&

 body.respond_to?(:to_ary)

/usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.8/lib/rack/handler/webrick.rb: in service

 env[QUERY_STRING] ||= ""

 unless env[PATH_INFO] == ""

 path, n = req.request_uri.path, env["SCRIPT_NAME"].length

 env[PATH_INFO] = path[n, path.length-n]

 end

 env["REQUEST_PATH"] ||= [env["SCRIPT_NAME"], env[PATH_INFO]].join

 status, headers, body = @app.call(env)...

 begin

 res.status = status.to_i

 headers.each { |k, vs|

 next if k.downcase == "rack.hijack"

 if k.downcase == "set-cookie"

 res.cookies.concat vs.split("\n")

/usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb: in service

 servlet, options, script_name, path_info = search_servlet(req.path)

 raise HTTPStatus::NotFound, "`#{req.path}' not found." unless servlet

 req.script_name = script_name

 req.path_info = path_info

 si = servlet.get_instance(self, *options)

 @logger.debug(format("%s is invoked.", si.class.name))

 si.service(req, res)...

 end

 ##

 # The default OPTIONS request handler says GET, HEAD, POST and OPTIONS

 # requests are allowed.

 def do_OPTIONS(req, res)

/usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb: in run

 if callback = server[:RequestCallback]

 callback.call(req, res)

 elsif callback = server[:RequestHandler]

 msg = ":RequestHandler is deprecated, please use :RequestCallback"

 @logger.warn(msg)

 callback.call(req, res)

 end

 server.service(req, res)...

 rescue HTTPStatus::EOFError, HTTPStatus::RequestTimeout => ex

 res.set_error(ex)

 rescue HTTPStatus::Error => ex

 @logger.error(ex.message)

 res.set_error(ex)

 rescue HTTPStatus::Status => ex

 res.status = ex.code

/usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb: in block in start_thread

 addr = sock.peeraddr

 @logger.debug "accept: #{addr[3]}:#{addr[1]}"

 rescue SocketError

 @logger.debug "accept: <address unknown>"

 raise

 end

 call_callback(:AcceptCallback, sock)

 block ? block.call(sock) : run(sock)...

 rescue Errno::ENOTCONN

 @logger.debug "Errno::ENOTCONN raised"

 rescue ServerError => ex

 msg = "#{ex.class}: #{ex.message}\n\t#{ex.backtrace[0]}"

 @logger.error msg

 rescue Exception => ex

 @logger.error ex

Request information
GET
No GET data.
POST
No POST data.
COOKIES
No cookie data.
Rack ENV

Variable
Value

CONTENT_LENGTH
348

CONTENT_TYPE
application/json

GATEWAY_INTERFACE
CGI/1.1

HTTP_ACCEPT
*/*

HTTP_ACCEPT_ENCODING
gzip

HTTP_CF_CONNECTING_IP
<IP_ADDRESS>

HTTP_CF_IPCOUNTRY
US

HTTP_CF_RAY
38d9b44f8f082456-IAD

HTTP_CF_VISITOR
{"scheme":"https"}

HTTP_CONNECTION
Keep-Alive

HTTP_HOST
dev.hellokaya.com

HTTP_VERSION
HTTP/1.1

HTTP_X_FORWARDED_FOR
<IP_ADDRESS>

HTTP_X_FORWARDED_PROTO
https

HTTP_X_HUB_SIGNATURE
sha1=9950b65cbac721687c836b0bd3e14e2384096075

PATH_INFO
/webhook

QUERY_STRING

REMOTE_ADDR
<IP_ADDRESS>

REMOTE_HOST
<IP_ADDRESS>

REQUEST_METHOD
POST

REQUEST_PATH
/webhook

REQUEST_URI
https://dev.hellokaya.com/webhook

SCRIPT_NAME

SERVER_NAME
dev.hellokaya.com

SERVER_PORT
443

SERVER_PROTOCOL
HTTP/1.1

SERVER_SOFTWARE
WEBrick/1.3.1 (Ruby/2.2.1/2015-02-26)

rack.errors
#<Rack::Lint::ErrorWrapper:0x000000022ba960 @error=#<IO:<STDERR>>>

rack.hijack
#<Proc:0x000000022bb400@/usr/local/rvm/gems/ruby-2.2.1/gems/rack-1.6.8/lib/rack/lint.rb:525>

rack.hijack?
true

rack.hijack_io
nil

rack.input
#<Rack::Lint::InputWrapper:0x000000022ba988 @input=#<StringIO:0x000000022e4558>>

rack.multiprocess
false

rack.multithread
true

rack.request.cookie_hash
{}

rack.request.query_hash
{}

rack.request.query_string

rack.run_once
false

rack.tempfiles
[]

rack.url_scheme
http

rack.version
[1, 3]

sinatra.commonlogger
true

You're seeing this error because you use Rack::ShowExceptions.

I have discovered the problem.  The code implies that by subscribing and providing the access token, that all methods would work when requiring it.
It turns out the ENV['ACCESS_TOKEN'] is hard coded elsewhere....I subscribed with the following:
subscribe = Facebook::Messenger::Subscriptions.subscribe(access_token: ENV["MESSENGER_ACCESS_TOKEN"])
I have tons of other access tokens in my app so each one needs to be identified.
The error is fixed when I explicitly do the following:
ENV['ACCESS_TOKEN'] = ENV['MESSENGER_ACCESS_TOKEN']
This is confusing: the code implies that the application understand the access token identified when subscribing.  But it looks like a hard-coded value for it is used elsewhere.
Is there a way to make token assignments more explicit and consistent?

You can make a configuration provider https://github.com/jgorset/facebook-messenger#make-a-configuration-provider

I ended up with something like this
class FacebookVerificationProvider < Facebook::Messenger::Configuration::Providers::Base
  def valid_verify_token?(token)
    ENV['FACEBOOK_VERIFICATION_TOKEN'] == token
  end

  def app_secret_for(page_id)
    ENV['FACEBOOK_APP_SECRET']
  end

  def access_token_for(page_id)
    ENV['FACEBOOK_ACCESS_TOKEN']
  end
end

You could potentially include some sort of validation that the page_id you get is the one you want your bot to reply from but not even sure if necessary.
However, I agree with @angelacode, the  name for the environment variable should not be hardcoded in the gem and rather get that from a configuration users can set on an initializer or similar, especially the name of such variable being 'ACCESS_TOKEN'

I agree, @oscarsiniscalchi -- it's hard to change it now without breaking compatibility, though, and considering that it is possible to change by writing your own configuration provider I guess that'll have to do.


Display bag

Did a thing that's nice where I can read a bag file and display the footage from it.

Great, that means that we can now bag some camera data! By next week we'll have some bag data for you to look at.


Small change to the name

Only an esthetic change, not really important ^^
Right now the name is like that:

Maybe putting spammer below sms would make it clearer.

Check if 297fdd9d1c solved this ;)


cmd/go: configure -buildvcs via environment variable

Would there be any appetite for an environment variable alternative that configures the -buildvcs flag?
Use case - in order to build my project with 1.18 I need to set -buildvcs=false - our repository layout breaks the "main package and the main module containing it are in the repository containing the current directory rule."
If I unconditionally set -buildvcs=false, the project builds successfully on Go 1.18, but fails on 1.17 because it doesn't understand the -buildvcs flag. In order to support both Go versions, I have to add logic to handle version-specific flags.
Something like an environment variable would allow builds on 1.17 and 1.18 to succeed.

maybe we should just backport recognizing (and ignoring) -buildvcs in GOFLAGS for 1.17
cc @bcmills @matloob

I suspect that your use-case will be fixed more simply by CL 398855 (#51748).

@zmb3, could you have a look at #51748 and see if that will resolve your use-case?

@bcmills I'm happy to close this one if there's no further action needed and -buildvcs will be backported to Go 1.17 - let me know (or just go ahead and close).

I don't think -buildvcs will be backported, only that the new default (auto) for 1.18 means you shouldn't need to set anything that may conflict between versions.

Ah, I understand now. That's fine too!

Duplicate of #51748


Fix lint on master

Azure is failing after linting due to a now-unneeded null assertion. I'm not sure why Travis still succeeds.

Oh. Ha ha. The rule name is @typescript-eslint/no-unnecsssary-assertion


Adding an about us page to the website. [GSSoC'23]

Is your feature request related to a problem? Please describe.
The website doesn't have a about us page, I can create an about us page for the website, which will make the website look better and more user friendly.
Describe the solution you'd like
I will create an about us page.
Describe alternatives you've considered
No response
Additional context
Please assign me this issue under GSSoC'23.

Please assign me this issue under GSSoC'23

@1Shubham7  All the info about the application is conveyed via the footer and title, what additional things can we add via the About us page?

About us page can further explain the cause and motive of the web page and also It shows a more direct and professional approach from the business point of view. Please assign me this issue under GSSoC'23

yup, since you explained the reason so well, @J0SAL , please assign me this issue.

As @1Shubham7 was the one to create the issue, I'm assigning it to hi; but I liked @avoxaya's response, I think @avoxaya can help in reviewing the PR, once it is ready


[Diagnostics] Updated diagnostic printing style

This PR adds a new diag printing style behind the -enable-experimental-diagnostic-formatting frontend flag. A few notes:

This style supports -no-color-diagnostics, but mostly just for testing purposes. When this is supported in the driver, I think it would be better just to fallback to the LLVM style if color is unsupported or disabled.
This relies on a lot of expensive line-breaking SourceManager operations. Perf seems ok so far, but I intend to investigate alternatives before this becomes an officially supported feature.
Until #28313 lands, enabling this feature will break the verifier.
I assume vim/emacs can't parse this format out of the box, but I haven't tested it yet.
I'm not a designer so some of the color/layout decisions here are probably terrible :)

The code/tests aren't the easiest to parse, so here's an example of a program:
func foo(a: Int, b: Int) {
  a + b
}

foo(b: 1, a: 2)

func baz() {
  bar(a: "hello, world!")
}

struct Foo: Codable {
  var x: Int
  var x: Int
}

func bar(a: Int) {}
func bar(a: Float) {}

func bazz() throws {

}
bazz()

struct A {}
extension A {
  let x: Int = { 42 }
}

let abc = "👍

Which produces diags that look like this:
￼

I've only tested this on macOS so far, let's get some preliminary results on other platforms.
@swift-ci please test

@swift-ci please test Windows platform

@swift-ci please test Windows platform

@swift-ci please test Windows platform

This is a big change, so here's a rough overview of how everything fits together.

The PrintingDiagnosticConsumer entry point remains handleDiagnostic Depending on whether experimental formatting is enabled, it either uses the existing LLVM-style formatting, or creates an AnnotatedSourceSnippet which groups a diagnostic and any notes which follow it.

AnnotatedSourceSnippet manages a group of AnnotatedFileExcerpts. Often this will only be one unless the diagnostic and notes span multiple files/compiled modules. It also tracks any parts of the diagnostic with unknown source locations.

Each AnnotatedFileExcerpt has one or more AnnotatedLines, which collect the messages, highlights, and inline fix-its for a single line in the source file.

Printing each message is a two stage process. First, as the consumer receives diags and associated notes, it builds up an AnnotatedSourceSnippet using the appropriate add* methods. Then, once the snippet is complete, render is called to perform the actual printing to an output stream.

Thank you, @owenv! I'll try to take a look asap

Kicking off another round of tests to verify the recent changes
@swift-ci please smoke test

@xedin Thanks for looking over this! In that case, should I wait to merge this PR? Since this is frontend-only right now, I was planning on improving it on master until I'm ready to add driver support or make it public.

Since this is under a flag and doesn't affect anything else I think you can go ahead and merge it.

@xedin sounds good, I'll just make sure this is still passing tests on all three platforms then.

@swift-ci please test

@swift-ci please test Windows platform


feat: Pilot debug APIs support remote anonymous requests

Ⅰ. Describe what this PR did
Make pilot debug APIs support remote anonymous requests, so we don't need to generate an access token on purpose  for Higress Console in standalone deployment.
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Codecov Report

Merging #386 (6a99511) into main (51d7124) will increase coverage by 0.17%.
The diff coverage is n/a.

Additional details and impacted files

@@            Coverage Diff             @@
##             main     #386      +/-   ##
==========================================
+ Coverage   41.56%   41.73%   +0.17%
==========================================
  Files          44       44
  Lines        5877     5877
==========================================
+ Hits         2443     2453      +10
+ Misses       3261     3251      -10
  Partials      173      173

see 1 file with indirect coverage changes


Language proposal

It should be similar to C-style languages, like C#, and use curly braces, and semicolon.
Read proposal here.

Some features:

Type inference
Type annotations

Functions are first-class members
let f (a, b) = a + b;
let a = f(2); // Partial application
a(3);

Signature:
x : int -> int
(a, b) -> int


Highlighted text in code section

Describe the bug

When the word searched is in a code section, it shows up with <mark>  tags and not highlighted.
To Reproduce
Steps to reproduce the behavior:

Search the word "cache"
Go on the question 97 from GitHub actions.
Look at the title

Expected behavior
The text should be highlighted
Screenshots

Additional context
I know it is not a important issue and it is not happening on a lot of question maybe but it is still there.

Hi @icepick4
I can't seem to reproduce this myself on Windows 10 using Chrome or Microsoft Edge browsers

Either way, this "question" plugin is a third party library that has little to no maintenance so I highly doubt there would be a quick fix for that
With all that in mind - I will close this bug report
Thanks for raising the issue !

Hey @FidelusAleksander,
Sorry I did not mentionned that it is when you search with search bar on top left. Not with CTRL+F.

Ok I understand. I will submit the issue on the repo.


json/chown error (with suggested fix)

I downloaded the Python 3.0.1 zip and the version 3.0.0 release and both resulted in this error on Ubuntu:
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "./HiyaCFW_Helper.py", line 309, in get_latest_hiyacfw
    latest = jsonify(conn)
  File "/usr/lib/python3.5/json/__init__.py", line 268, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib/python3.5/json/__init__.py", line 312, in loads
    s.__class__.__name__))
TypeError: the JSON object must be str, not 'bytes'

I know Python 2.7, so I decided to research. What I found is that when urlopen() gets the response, it gives a file-like output. I know that you can use file.read() to get the output of these files. Replicating your code with the python3 prompt in the command line, I ran this:
>>> from json import loads as jsonify
>>> from urllib.request import urlopen, urlretrieve
>>> conn = urlopen('https://api.github.com/repos/RocketRobz/hiyaCFW/releases/latest')
>>> latest = conn.read()

I was able to get the retrieved data, but the issue was it was in a byte format, not a string. According to this article, you would be able to use conn.read().decode('utf-8') to get the data. I was able to run:
>>> from json import loads as jsonify
>>> from urllib.request import urlopen, urlretrieve
>>> conn = urlopen('https://api.github.com/repos/RocketRobz/hiyaCFW/releases/latest')
>>> latest = jsonify(conn.read().decode('utf-8'))
>>> print(latest['assets'])

This ran fine with no issues. Also, I used loads in line 1, because json.load will try to load a file, but won't load an encoded file. If you read the file, decode it, then use json.loads, it works.
Here is what I changed:
#Line 20 from:
from json import load as jsonify
#to:
from json import loads as jsonify

#Line 309 from:
latest = jsonify(conn)
#to:
latest = jsonify(conn.read().decode('utf-8'))

#Line 784 from:
latest = jsonify(conn)
#to:
latest = jsonify(conn.read().decode('utf-8'))

I ran that and was fine until I got near the end and had a bunch of chown: changing ownership of '/media/<username>/<SD card folder>': Operation not permitted errors.
On the lines that use Popen([ 'chown',  ... , maybe change it to Popen(['sudo', 'chown', ... . I did run the script as sudo.

Can you please tell me which distro are you using?

Ubuntu 17.04 I believe. I messed with one of my files a while ago so commands like lsb_release -a will say Ubuntu 16.04, but doing cat /etc/*release will result with DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS" and VERSION="17.04 (Zesty Zapus)". Should be 17.04 though.
Also using Python 3.5.3 (in case you need it).

Please do: sudo apt update && sudo apt upgrade -y && sudo apt dist-upgrade -y && sudo apt-get autoremove -y to update your distro (might take a while). Should be 16.04 cuz 17.04 has Python 3.6.

Readme updated with minimal python version required. Closing...


Does not dump dwViewAngles

It can dump everything on every file, but dwViewAngles is missing in offsets.json

This is due dwCSGOInput not being found (#208 )

heres viewangles offset, thank me later. " 0x19D2E48"

constexpr std::ptrdiff_t dwViewAngles = 0x19D2E48; if you want c + p

For people even more lazy
offsets.json

thanks, I was trying to figure out how to build a rust app for too long and I was getting desperate lmao

heres viewangles offset, thank me later. " 0x19D2E48"

Anyone knows if it is dumping correctly?

i'll check my cheat rn

working fine for me, except buttons.json because dwCSGOInput has to dump it

i'll try to build #210 and send the exe here

Designer name and m_pentity changed, that was my problem

working fine for me, except buttons.json because dwCSGOInput has to dump it

I confirm TriggerBot is dead for now

Designer name and m_pentity changed, that was my problem

i think they are dumper correctly, i dont use those offsets on my external

working fine for me, except buttons.json because dwCSGOInput has to dump it

I confirm TriggerBot is dead for now

you could use mouse_event or sendinput, works just as well, for more security if you are using kernel driver implement mouse click

working fine for me, except buttons.json because dwCSGOInput has to dump it

I confirm TriggerBot is dead for now

you could use mouse_event or sendinput, works just as well, for more security if you are using kernel driver implement mouse click

i use mouse_event for trigger and it isnt working either

i'll try to build #210 and send the exe here

it still says outdated dwCSGOInput

Entitylist or something is broken, bones are not being rendered on any other pawn than my localplayer.

but RCS, AIM, trigger doesn't work which is weird

any update about this @Skwrr ?


Cwmissions 10&11?

Are either of these possible?
especially with allies I know of quite a few NPCs that could be added to cwallies faction
Additionally
11 the one with the orc could be an imperial exclusive, even though Rikke and Galmar both have dialogue for the giant and orc quests, we could make the Goldar and orc quests faction exclusive (stormcloak Goldar imperial orc)
if not possible that’s fine these ones don’t need to be added,
however mission 00 might be interesting since spys/scouts are already implemented but it could still be too much work considering there are only 2 scripts

Additionally ima just stop suggesting things as the backlog is getting very big and I don’t want to put too much pressure on you

Unfortunately both of these have almost nothing remaining from the base game. CWMission11 really does not have anything to do with the Civil War and the base game is missing everything from dialogue to whatever this 'Gar-shutan' thing is. CwMission10 does not have any dialogue and based on the quest description, I don't really know how to build a quest around that beyond a basic fetch quest (in this case, talking to somebody).

Fair enough, didn’t think they were able to be restored wow Bethesda really good game you made here guys, thanks todd


Cursor missing during SSH

When trying to ssh, the cursor seems to get stuck at the end of the line that called the ssh command. For the entire ssh session, the cursor remains there but when I run some other command like vim and then exit vim, the cursor comes back and acts normal.

Works in the latest release.


Windows Server 2019 Standard [Fully Supported, but only two connections are working]

Hi
Does anyone help me with this issue. Fully Supported, but only two connections are working
I try to add one more blank line to rdpini but that doesnt work for me.

Thanks!

Try:

Download RDP Wrapper 1.6.2 and extract this to any directory.
Place rdpwrap.ini in the same directory.
Open CMD as administrator
Execute this commands

cd C:\path\to\directory\
rdpwinst -u -k
rdpwinst -i

Enjoy!

Original message: https://t.me/rdpwrap/49131

One termsrv.dll version = ONE opened issue!

Duplicate of https://github.com/stascorp/rdpwrap/issues/2167

Thanks a LOT! Finally it works.


feat: make topic configurable via properties

This pull request makes @Topic(name = "${...}") possible. Fixes the issue number #85.

@naah69, how are you?
Makes sense to add the responsability to get from configuration.properties in another class for now? Like ConfigUtils, what do you think?

@naah69, how are you?
Makes sense to add the responsability to get from configuration.properties in another class for now? Like ConfigUtils, what do you think?现在在另一个类中添加从 configuration.properties 获取的责任是否有意义？喜欢 ConfigUtils ，你怎么看？
Hi @gastaldi, this same logic is used on rest-client-reactive, makes sense to move this approach into a utility class on quarkus project to centralize it?

I think that we shouldn't add the code part of parsing the config in DaprProcessor.
If the config expressions are parsed in buildtime,we will lost the ability that can be changed on startup.
It is my view that parse them in runtime is a better way.
In this method,what do u think?
https://github.com/quarkiverse/quarkus-dapr/blob/0dfe850830919a3037260ffc837da58100a51e4d/runtime/src/main/java/io/quarkiverse/dapr/runtime/DaprRuntimeRecorder.java#L17

It makes sense! TY


Constructing CascadingRDD

Hi,
On spark-shell I am trying to construct a CascadingRDD as follows:
val fields = new Fields(schema.split(",").toSeq :_*)
val source =SequenceFile("hdfs://nameservice1:8020/sandbox/20150526/part-01291", fields)
val rdd = CascadingRDD(sc, source)
I don't want to use --class com.twitter.Scalding.Tool for example
I am getting errors as follows:
Caused by: cascading.CascadingException: unable to load deserializer for: scala.collection.immutable.$colon$colon from: org.apache.hadoop.io.serializer.SerializationFactory
at cascading.tuple.hadoop.TupleSerialization.getNewDeserializer(TupleSerialization.java:464)
In the demo sequence file jobs, SparkJob has been used and if I use SparkJob I have to use Tool to run it as it derives on top of scalding.Job but all my compute is spark now..why still dependency on map-reduce..
Thanks.
Deb

It might be due to dependency but I recompiled with scalding 0.11.1 which was used to write the files...also we are using cdh but I did not think I compiled spark-scalding with cdh cascading yet..so those can be a issue but other than I am allowed to construct CascadingRDD without running scalding Job ?

yes this should work.
looks like your sequence files have scala classes in them, probably
serialized using kryo.
CascadingRDD relies on cascading's serialization, not sparks. kryo is not
enabled (registered) by default.
i think you need to register kryo as a serializer by modifying the hadoop
Configuration passed into CascadingRDD. i can get you details later when i
am back at a computer. SparkJob (well really scalding's Job) does this by
default.
SparkJob does not depend on/use mapred, but i agree its not necessary to
use it. its mostly there to make the transition easier for people who are
used to Job.
Maybe we should register kryo by default for CascadingRDD to make
out-of-box experience better.
On May 30, 2015 10:49 PM, "Debasish Das"<EMAIL_ADDRESS>wrote:

It might be due to dependency but I recompiled with scalding 0.11.1 which
was used to write the files...also we are using cdh but I did not think I
compiled spark-scalding with cdh cascading yet..so those can be a issue but
other than I am allowed to construct CascadingRDD without running scalding
Job ?
—
Reply to this email directly or view it on GitHub
https://github.com/tresata/spark-scalding/issues/5#issuecomment-107113206
.

Got it...Let me send the SparkJob's configuration while constructing CascadingRDD(sc, source, conf)...Althought I thought default new Configuration registers kryo by default in scalding but may be not...

i believe this should mimic scalding's defaults for serialization:
val conf = new Configuration
conf.set("io.serializations", "org.apache.hadoop.io.serializer.WritableSerialization,cascading.tuple.hadoop.TupleSerialization,com.twitter.chill.hadoop.KryoSerialization")
conf.set("com.twitter.chill.config.configuredinstantiator", "com.twitter.scalding.serialization.KryoHadoop")
new CascadingRDD(sc, source, conf)
let me know if this works for you

I don't have to set key for conf.set("com.twitter.chill.config.configuredinstantiator", "com.twitter.scalding.serialization.KryoHadoop") ?
With this setting I am getting the following error:
Caused by: com.twitter.chill.config.ConfigurationException: Could not find class for: com.twitter.scalding.serialization.KryoHadoop
at com.twitter.chill.config.ConfiguredInstantiator.(ConfiguredInstantiator.java:62)
at com.twitter.chill.hadoop.KryoSerialization.setConf(KryoSerialization.java:69)
I can import the class com.twitter.scalding.serialization.KryoHadoop on spark-shell so it is part of --jars I provide:
scala> import com.twitter.scalding.serialization.KryoHadoop
import com.twitter.scalding.serialization.KryoHadoop
May be it is not being copied to Spark workers but I did give all the scalding dependences in spark-shell --jars option..

Yup I can see the scalding files loaded as CTuple if I run local mode...in yarn mode I am getting that failure...weird..I am at Spark 1.2

ah yes sorry we ran into this before. i forgot about this. chill uses some reflection that breaks in spark, probably a classloader issue.
instead try:
val conf = new Configuration
conf.set("io.serializations", "org.apache.hadoop.io.serializer.WritableSerialization,cascading.tuple.hadoop.TupleSerialization,com.tresata.spark.scalding.serialization.KryoSerialization")
new CascadingRDD(sc, source, conf)

It worked. I made a gist for future references. Thanks a lot for the pointers.
https://gist.github.com/debasish83/0112dcea08a5ef749276
As I use it more to load scalding sequence files on Spark, I will understand more..partitions for example should be pulled from spark context right ?
new CascadingRDD(sc, tap, conf, minPartitions)

thats right

Should I change the default CascadingRDD constructor to build Configuration with the serialization options in a PR ? That way users can build CascadingRDD out-of-box for scalding sources...The second change I would like to add is to pick minPartitions from spark context in CascadingRDD constructor...

what do you think?
i originally left that out since CascadingRDD can also be used by people
that come from a pure cascading background, in which the scalding defaults
are not necessary the right ones. but it does seem to make it harder to use
(you are not the first to run into this issue).
the second one makes sense to me, just as it makes sense to me that the
default configuration should be sc.hadoopConfiguration, instead of new
Configuration. my frustration is that you cannot say:
class CascadingRDD(@transient sc: SparkContext, tap: HadoopTap, @transient
conf: Configuration = sc.hadoopConfiguration, minPartitions: Int =
sc.defaultMinPartitions)
On Mon, Jun 1, 2015 at 12:43 PM, Debasish Das<EMAIL_ADDRESS>wrote:

Should I change the default CascadingRDD constructor to build
Configuration with the serialization options in a PR ? That way users can
build CascadingRDD out-of-box for scalding sources...The second change I
would like to add is to pick minPartitions from spark context in
CascadingRDD constructor...
—
Reply to this email directly or view it on GitHub
https://github.com/tresata/spark-scalding/issues/5#issuecomment-107630985
.

I have to look into SequenceFile RDD in spark core and understand how does it pick up Hadoop configuration and numPartitions...we should use similar idea right ?

Did you pass a object / class to CascadingRDD.map{ x => MyObj.func1(x) } in tests ? I am getting serialization error with "java.io.NotSerializableException: org.apache.hadoop.conf.Configuration"

Will the private variables from CascadingRDD get serialized if I broadcast an object ? This is the only code from CascadingRDD that uses org.apache.hadoop.conf.Configuration:
private val serializedJob = new SerializableWritable(new JobConf(conf))

There might be issues in HadoopConf broadcast...why are u not broadcasting Configuration like HadoopRDD.scala ?

can you provide some more detail about when you get "java.io.NotSerializableException: org.apache.hadoop.conf.Configuration"?
serializedJob should not cause any issues with serialization.

I am doing something like this:
object Utils{
def f1(x:String) : String {}
}
val rdd = cascadingrdd(sc, source, conf)
rdd.map{case(x)=> Utils.f1(x)}
This fails on hadoop conf serialization
Now if I use mapPartitions and define f1(x) inside closure job runs fine...

we do lots of map operations on CascadingRDD without these issues. what is
the full stacktrace? is this on the REPL?
On Mon, Jun 1, 2015 at 11:08 PM, Debasish Das<EMAIL_ADDRESS>wrote:

I am doing something like this:
object Utils{
def f1(x:String) : String {}
}
val rdd = cascadingrdd(sc, source, conf)
rdd.map{case(x)=> Utils.f1(x)}
This fails on hadoop conf serialization
Now if I use mapPartitions and define f1(x) inside closure job runs fine...
—
Reply to this email directly or view it on GitHub
https://github.com/tresata/spark-scalding/issues/5#issuecomment-107784343
.

Yes its on repl...let me try it in code...the exact pattern I showed works for you ?

yes the pattern works for me in a unit test.
the repl can be tricky, since it has a tendency to suck everything into
serialization. is the hadoop Configuration defined on the repl?
On Mon, Jun 1, 2015 at 11:27 PM, Debasish Das<EMAIL_ADDRESS>wrote:

Yes its on repl...let me try it in code...the exact pattern I showed works
for you ?
—
Reply to this email directly or view it on GitHub
https://github.com/tresata/spark-scalding/issues/5#issuecomment-107786361
.

Yup

Repl might be the issue then.. I will try in code and update

Yup issues got fixed when I added the changes in the code...sometime I do see that breaking the lineage helps but I have not yet been able to consistently reproduce the issue. I will open up the issue when I find it.


updated navbar and add new button

Added a new animated button and add  a rotation effect on gdsc logo in navbar

Hi, there seems to be a merge conflict, please resolve it

how to resolve conflict can you please tell..

Add your name in the Data.js please along with the number of buttons you've added as written in the ReadMe

Please check #1346

Closing this as can't fixed!
Please create another PR, I will tell the instructions asap.


Comparing GUIDs via object.Equals() should be reported as issue

For performance reasons, comparing GUIDs using object.Equals() should not be allowed. There is boxing/unboxing involved which is completely unnecessary as the GUIDs can never be null and have an own Equals()  (or == implementation).

Duplicate of #43


OCI client version function was showing as dead code

We have dead code warnings for the oci_distribution::Client::version function.  It's not clear whether it was intended to be public, or simply fell out of use.  As there are tests for it, I'm guessing the former.  Reviewers, if you think it's truly dead code, comment and I'll do it that way instead grin.

It is truly dead code. After pairing with @radu-matei he explained that the only two functions that should be public are pull_image and fetch_manifest_digest. So it can probably be removed.

I deaded it


Add http://uwdata.github.io/lyra/ Demo page.

If you can create a branch name 'gh-pages' we can publish the application as a public project page (https://help.github.com/articles/user-organization-and-project-pages/#project-pages).
I have forked and created the demo like this. http://sarathsaleem.github.io/lyra/, So if you have a "gh-pages" branch i can give a pull request

Thanks for bringing this up. The reason I haven't published Lyra to github pages yet is because Cross-Site security constraints within browsers would make it impossible to load custom/external datasets via a URL. We circumvent this with our deployed version by using the proxy.php script to route requests.
Any ideas on what we can do for gh-pages?

You could serve the gh-pages from a cs domain. We did that for myria.cs.washington.edu. @dhalperi knows how to do this.

@domoritz How do you mean serve gh-pages from a cs domain? If all we're doing is pointing a cs address to github, doesn't the issue still persist since I don't believe gh-pages allows any server-side scripting to allow us to route external requests?

Oh, I misunderstood the problem. I thought the problem are resources on a cd domain.
Could you only host the proxy script on our servers and serve Lyra from github?

@arvind  Ok. I was unaware of the deployed live version. My intention behind raising this issue this was to give  quick live version to users. So its already taken care.
I think its better to add a link to live version in the master readme page. Since I came directly to the gitpage I was unaware of deployed live version.
Yes you are right, cross site issues cannot be solved straight forward , but has some workaround like JSONP. This is irreverent since the issue is already solved. Pls close this.

I added a link to http://idl.cs.washington.edu/projects/lyra/ to the repository. There is a link to the demo below the abstract.

Thanks @sarathsaleem, good call on adding a link to the readme. And agreed on JSONP, I'm not particularly happy with the proxy.php method, and we should think about supporting JSONP with Vega.
@domoritz, I didn't see a commit from you in the lyra repo? I updated README.md, did you update somewhere else?

I added a link next to the repo title.

Oh perfect! That's a great place to include it too. Thanks :)


Add response code verification into integration DSL

Issue Number
#104

Overview

[ ] I have added expectResponseCode method into DSL and some temporary test on external service http://httpbin.org just to check it works. The method checks if the response has expected response code.

Comments
This expectResponseCode only works for response produced by response' method which just returns raw response in the form of Response ByteString. I kinda like it bacuase it seems you can get a response code or response body or response headers from it using different methods from Network.HTTP.Client. At this point it seems to be more versatile than response (old unsafeRequest) which contains additional logic for getting the response depending on response codes.
¯_(ツ)_/¯

Fixed and cleaned up the imports. :+1:

Will rebase/squash and merge after #107 :+1:


Warpd not working

To reproduce:

install waprd along with hyprland
run warpd --hint

Expected: warpd show up tags that I may trigger
Actual: [destroyed object]: error 4: surface was destroyed before its role object

I have the same issue with https://github.com/moverest/wl-kbptr 👀

@abhinav3398 doesn't help.

Oh my bad! Didn't see your error message. Your error is different than what I was getting. I'm curious as to how did you install warpd? For me, I used warpd_wayland_git

I reinstall warpd-git instead of warpd on Arch, it's working for me now. Thanks

hi, i still have this problem on nixos to this day :-(

Only thing that's worked for me (NixOS, Hyprland) is running warpd commands as sudo, but it's still buggy as hell.


How to change A1 motor ID?

How to change A1 motor ID?
your code does not work...   : (

Hello,could you please provide more information? For example, what information does the terminal prompt.

The terminal screen shown in the datasheet appears as follows:

We finished by entering "a" after turning the motor twice. But id is still the same as 0. How do I solve this?

Hello @yuna-hyu, Please check :
<EMAIL_ADDRESS>= MotorType::B1;    // set the motor type, A1 or B1
If so, please modify it to:
MotorType::B1 -> MotorType::A1
and rebuild it.

Hello @yuna-hyu, Please check<EMAIL_ADDRESS>= MotorType::B1; // set the motor type, A1 or B1
If so, please modify it to: MotorType::B1 -> MotorType::A1 and rebuild it.

The terminal screen shown in the datasheet appears as follows:

We finished by entering "a" after turning the motor twice. But id is still the same as 0. How do I solve this?

Hello @yuna-hyu, Please check :
<EMAIL_ADDRESS>= MotorType::B1;    // set the motor type, A1 or B1
If so, please modify it to:
MotorType::B1 -> MotorType::A1
and rebuild it.

Hello @yuna-hyu, Please check :
<EMAIL_ADDRESS>= MotorType::B1;    // set the motor type, A1 or B1
If so, please modify it to:
MotorType::B1 -> MotorType::A1
and rebuild it.

I'm sorry for this! Tomorrow, I will test this code again to find out what is wrong in your case.

hello:)
Changing the ID was successful!
But.. Is there a Python code that can drive the motor?
Thanks

in the future Release.it will come soon.


Legacy tests: Sandbox ClientOptions

XCTestExpectation was created before the https://sandbox-rest.ably.io:443/apps request and the timeout was easily exceeded.

LGTM, good one!

⚠ Please, do not merge.
Tests are still failing, so I decided to test the Travis network. I created this repo and added it to Travis. The internet connection is not slow (65.2 MB/s ⚡). The build#2 proves that something weird is happening on the backend when a client is requesting a new snadbox app where sometimes it takes more than 10 seconds to retrieve an answer. I also tried to add more time for the https://sandbox-rest.ably.io:443/apps request and sometimes it takes more than 16 seconds to complete the request:
Test Case '-[ARTRealtimeMessageTest testSubscribeToName]' started.
2016-04-19 13:57:52.573 xctest[1659:6783] START sandbox app request +[ARTTestUtil setupApp:withDebug:withAlteration:appId:callback:] 2016-04-19 13:57:52 +0000
2016-04-19 13:58:09.119 xctest[1659:7948] END sandbox app request __64+[ARTTestUtil setupApp:withDebug:withAlteration:appId:callback:]_block_invoke 2016-04-19 13:58:09 +0000 (elapsed 16.546053)
Test Case '-[ARTRealtimeMessageTest testSubscribeToName]' passed (21.156 seconds).

The build#2193 last 48 min 16 sec and the test suite didn't finished (The job exceeded the maxmimum time limit for jobs, and has been terminated.).
I'm going back to the specs list.
@paddybyers Does this make any sense? Can you take a look at the backend please? /cc @mattheworiordan @tcard

@ricardopereira but we should only ever be using one app, so why is 16s even an issue?  Are we not sharing apps across the test suite?

@mattheworiordan Every test is requesting a new app. Wrong approach then?

@mattheworiordan Every test is requesting a new app. Wrong approach then?

Definitely, we should fix that. In pretty much all other suites, we create one app and share that app for all tests as creating an app is expensive and by ensuring tests run on their own unique channels, there is no risk of overlap.
I believe the only exception to this is in some cases for stats tests as other activity can effect stats.  So please go ahead and make that change, it will drastically improve performance.

... it will drastically improve performance.

Yes it will, indeed!

@ricardopereira I'll be focusing on iOS in the following days, so I'll tackle this first.

@tcard Thanks 👍

Please remove ecd3231. I was just testing on Travis.


Object not found! Error in Last two panel

Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
03/14/20 12:57:37
Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1

The last two frames show your configured icingaweb2 instance via iFrames. For this to work you need to enter the right url in your ./config/icinga2.json or ./config/icinga2.local.json. Sometimes you also need to adjust the iFrame-settings on the webserver hosting your icingaweb2-instance. For this you would need to contact your webadministrator.

Where I can found the iFrame-settings ????

As I told you in my last post already, this depends heavily on the way you configured Icingaweb2 on your web host. If you followed the Icingaweb2 installation documentation, you probably used Apache2. Then you would have to add the directive
Header set X-Frame-Options ALLOW-FROM https://<ip-address or domain of dashing-icinga>
to the relevant config files handling and serving your icingaweb2 instance. As I said, talking to your web admin about this matter will probably be more valuable than opening an issue (which it probably isn't, at least not with dashing-icinga) here.

That's fine now I found the solution thanks for this,

One more Icinga dashing site can’t provide a secure connection cannot make a SSL connection

This is once again up to your configuration. Due to dashing-icinga running its own thin-webserver on port 8005 per default, you would most likely want to establish an SSL-connection port 443 of your system and redirect/reverse-proxy to port 8005 then. Once again: please ask your web admin about these issues. I am closing here for now.

that's steps has finished again facing the same issue
https://community.icinga.com/t/shared-web-server-for-dashing-icinga2-and-icingaweb2/330


Visual editor button is missing

Setup

Browsers and versions: Latest Opera/Opera Beta/Google Chrome
MediaWiki version: 1.29
Database version: MySQL 5.7.19
PHP version: 7
Pivot version: 1.0.5
Extension version (if connected to the issue): VisualEditor 0.1.0 (7a8b171)

Issue
The button for the visual editor doesn't seem to show up when I click on the Actions tab. I only see the source editor. Is this a bug or is visual editor not supported yet?

Do you have visual editor enabled for pivot skin. Check settings of visual editor as you must specify the skins which can use it.

Where can I do that? I went to the page of the VisualEditor extension on mediawiki.org but I didn't find any section talking about how can I enable it for specific skins. The only part which talks about skins there is the Skin compatibility section, but that only says "it should be compatible with any skin that uses the required HTML structure".

Oh never mind. I found a sub page briefly mentioning $wgVisualEditorSupportedSkins. I added this to my LocalSettings.php and now it works:
$wgVisualEditorSupportedSkins = array(
    'vector',
    'pivot'
);

Closing and marking solved


feat(Button): Move to svelte 5

#94  👈 (View in Graphite)
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Merge activity

Dec 29, 1:38 AM EST: A user started a stack merge that includes this pull request via Graphite.


No Search results for "customer journey analytics"

Search for "customer journey analytics" does not return any results on the help documentation
https://docs.adobe.com/content/help/en/experience-platform

Searching for Customer Journey Analytics doesn't return a full set of results because the CJA documentation resides in its own help guide. This is a known limitation in the current search functionality that will hopefully be resolved soon.
CJA documentation can be found here: https://docs.adobe.com/content/help/en/analytics-platform/using/cja-landing.html

Hi Wendy
Can you please re open the ticket until the issue has been confirmed to be
resolved after the release.
closing before the issue is actually fixed could leave gaps and remaining
issues if not confirmed before closing.
Thanks
Ian
On Wed, 30 Sep 2020 at 04:02, Wendy Braun<EMAIL_ADDRESS>wrote:

Searching for Customer Journey Analytics doesn't return a full set of
results because the CJA documentation resides in its own help guide. This
is a known limitation in the current search functionality that will
hopefully be resolved soon.
CJA documentation can be found here:
https://docs.adobe.com/content/help/en/analytics-platform/using/cja-landing.html
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/AdobeDocs/experience-platform.en/issues/39#issuecomment-700884555,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMIVVL7XHIAQ6YLNVNXAEYDSIIOLJANCNFSM4R5I7ITQ
.


select/filter broken

the mutators that adjust the number of inputs to select/filter are broken.

Fixed with commit 972e4c7.


feat: help now redirect to docs/faqs

Edit:
Fixes Issue
Fixes #9291

Changes proposed

Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[ ] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[x] All new and existing tests passed.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

Screenshots

Note to reviewers

fixed issue #9291
now if a user click on the help button it will redirect to the faqs page

Thank you all, great collab 💪


Truncate blog posts

This PR fixes #30 by truncating blog posts on the index view so you can see more!
Here is a screenshot...

Trail of Bits' osquery blog posts that we would like re-added to the community articles page:

What do you wish osquery could do? April 10, 2018
What are the current pain points of osquery? December 21, 2017
Announcing the Trail of Bits osquery extension repository December 14, 2017
How are teams currently using osquery? November 9, 2017
Tracking a stolen code-signing certificate with osquery October 10, 2017
Windows network security now easier with osquery September 27, 2016

@mike-myers-tob great, I will work with you to add the content of these posts in a separate PR.


Update stable version in repo from 1.1.4 to 1.2.1

Think about update stable version to 1.2.1
Version: stable=1.1.4 (765 days old) => latest=1.2.1 (15 days old)
Installs: stable=1471 (88.03%), latest=101 (6.04%), total=1671
Click to edit

will wait for 1.2.2


Add PatternFly styling to Area charts

Add PatternFly styling to Area charts.

@martinpovolny please review

What about the "No Value"?

No value is value :+1:

@PanSpagetka @martinpovolny Same question as on the line charts, any way to move the legend to the right and out of the way of the chart?


[doc] add help documentation for huawei switch monitoring

What's changed?

Add help documentation(https://github.com/apache/hertzbeat/issues/1795) for clickhouse database monitoring
Checklist

[x]  I have read the Contributing Guide
[x]  I have written the necessary doc or comment.
[ ]  I have added the necessary unit tests and all cases have passed.

Hi, please resolve the code conflict with the master branch

Hi, please resolve the code conflict with the master branch

I‘ve resolved the confilcts

Thank you for your contribution.


feat: add langs field

1. Description
Adds the lang field on posts.
I haven't found any unit tests related to this, but do tell me if I need to add some somewhere :)
1.1. Checklist

[x] The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc).
[x] I have read the Contributor Guide and followed the process outlined for submitting PRs.
[ ] I have updated/added tests for ALL new/updated/fixed functionality.
[x] I have updated/added relevant documentation in docs and added dartdoc comments with ///.
[ ] I have updated/added relevant examples in examples.

1.2. Breaking Change

[ ] Yes, this is a breaking change.
[x] No, this is not a breaking change.

1.3. Related Issues
Fixes #640

Codecov Report

Merging #642 (b64eff8) into main (40e16a4) will increase coverage by 2.27%.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##             main     #642      +/-   ##
==========================================
+ Coverage   86.54%   88.81%   +2.27%
==========================================
  Files         223        5     -218
  Lines        2475      152    -2323
==========================================
- Hits         2142      135    -2007
+ Misses        333       17     -316

see 218 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Hi @Uinelj !
There is a following unit test, but this is to ensure the minimum necessary behavior, so don't worry about it, at least not yet. I have already confirmed the correctness of your implementation. But well I plan to add more accurate tests in the future.

https://github.com/myConsciousness/atproto.dart/blob/40e16a4c3f3a6c90c28e1fba66803f7baaf4a371/packages/bluesky/test/src/entities/adaptor/repo_commit_adaptor_test.dart

Thanks for your contribution, it looks good to me :)


[Interactive CLI] render should consider all passed options, not only format

If it doesn't, passed tests will never be rendered, even in the verbose mode.
This is a cherry-pick from #31.

I was about to say this is the kind of thing you should commit directly but I just spotted an issue: ...options will error if options is undefined.

Nice catch! Thank you.

This is why I don't commit directly—someone needs to keep an eye on me. 😅

This is why I don't commit directly—someone needs to keep an eye on me. 😅

Well, presumably if that ever happened options.format would also produce an error, so I imagine options is initialized somewhere higher up in the call stack.


Pulumi aws.alb.LoadBalancer configuration for access_logs is not enabling the logs attribute for load balancer

Describe what happened
When using the pulumi python for creating load balancer we are not able to configure the access_logs for the alb if we have a prefix. It only works if we don't add any prefix.
The ideal behaviour should be that the alb should create the directory for prefix by itself and the configuration should work. This is the case if we do it manually. But with pulumi this is not working like that and won't throw any error as well.
The preview shows the change in access_logs and pulumi up won't give any error. But the access_logs are never enabled for the load balancer.
Sample program
This can be reproduced with the same code given in the documentation as well.  https://www.pulumi.com/registry/packages/aws/api-docs/alb/loadbalancer/
import pulumi
import pulumi_aws as aws

test = aws.lb.LoadBalancer("test",
    name="test-lb-tf",
    internal=False,
    load_balancer_type="application",
    security_groups=[lb_sg["id"]],
    subnets=[subnet["id"] for subnet in public],
    enable_deletion_protection=True,
    access_logs={
        "bucket": lb_logs["id"],
        "prefix": "test-lb",
        "enabled": True,
    },
    tags={
        "Environment": "production",
    })

Log output
preview output
 ~   ├─ aws:alb:LoadBalancer           aws-ag-foo-alb                  update     [diff: ~accessLogs]
 ~   ├─ aws:alb:LoadBalancer           aws-ag-bar-alb                    update     [diff: ~accessLogs]

up output
 ~   ├─ aws:alb:LoadBalancer           aws-ag-foo-alb                   updated     [diff: ~accessLogs]
 ~   ├─ aws:alb:LoadBalancer           aws-ag-bar-alb                     updated     [diff: ~accessLogs]

preview output again
~   ├─ aws:alb:LoadBalancer           aws-ag-foo-alb                  update     [diff: ~accessLogs]
 ~   ├─ aws:alb:LoadBalancer           aws-ag-bar-alb                    update     [diff: ~accessLogs]

Affected Resource(s)
Enabling Access Logs for AWS ALB.
Output of pulumi about
CLI
Version      3.123.0
Go Version   go1.22.5
Go Compiler  gc
Plugins
KIND      NAME        VERSION
resource  aws         6.41.0
resource  aws-native  0.108.4
language  python      3.11.9
Host
OS       darwin
Version  14.5
Arch     arm64
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Thank you for pointing this out and suggesting a workaround. Our team will take a look as time permits.

Hi @pk-hugo, would you care to try again? Specifying a prefix is working fine for me. I'm using Python as well:
import pulumi_aws as aws

aws.lb.LoadBalancer(
    "test"
    access_logs={
        "bucket": <bucket name>,
        "enabled": True,
        "prefix": <prefix>,
    },
    internal=True,
    security_groups=[<security_group_id>],
    subnets=[<subnets>],
)

I'm using Pulumi 3.135.1 and Pulumi-AWS 6.54.2.


Some Suggestions

I have already said that the text renderer should be out, but I have something more.
The voices here probably run through the sfx Channel, but they should do it through the Voice Channel.
There should also be a mode for anime sprites that only have 3 different mouth positions. Is a bit difficult to adjust these to the 8 positions or how many that is.
If it's possible, maybe even livecomposite support because I actually use that instead of layeredimages as I didn't warm up to it, but I think it wouldn't be a problem if I switched to layered.

Thanks for suggestions! I really appreciate it. I will definitely consider those ideas in further improvements.

Hi, i truly apologize for an insufficient bug fix on this tool.
Below is my new bug-fix & update plan, so stay tuned if you're still interested!
https://github.com/Wendy-Nam/RenPy-Lipsync-Plugin/issues/8


More defaults

Closes #90

Changed the parsing of IDL to take care of default values.
Document the default values in base.py
Implement the default values of sub-arguments (dicts) in rs.py
The most notable api change is that we no longer have texture.create_default_view(). Instead you call texture.create_view() without arguments.

LGTM!


Is it possible to make it

Hello brother !
I have found you on HF.Can you make it UAC Bypass just single click no popup.I mean It will be able to get Admin privilege with out clicking on yes/no prompt ?
Thanks

I've no idea what HF mean. If it infamous "hackforums" then you cannot find me there, because I never registered on it. Your suggestion is out of purpose of this tool.


Infinite nw_socket_handle_socket_event error

Please provide all the information requested. Issues that do not follow this format are likely to stall.
Description
Bug #21030 still occurs for me with RN 0.63.2
One of the fixes mentioned works, making this change in AppDelegate.m:
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
  NSURL *jsUrl = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
  [[RCTBundleURLProvider sharedSettings] setJsLocation:jsUrl.host];
  return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
...

React Native version:
0.63.2

Hi @crystalneth thanks for the issue. If one of the fixes worked, are you proposing the fix should be implemented in the template? If so, feel free to open a PR.
Otherwise, can we close this issue?


Switch to vanilla san-serif font

We were missing the link to load Work Sans font, so even though we specified it in css, for most people they have just been seeing plain sans-serif.  This PR removes Work Sans from the css so that everyone gets plain sans-serif.

Deploy preview for calico ready!
Built with commit 4ea67a45639fd551e73c3781389c1662740c759a
https://deploy-preview-3273--calico.netlify.com


Stopped working for some reason

Hi
Not sure if that's something for your "wrapper" but for some unknown reason etrv2mqtt stopped connecting to Eco2s. I have two devices and I didn't change the layout so it's not like the range changed. Do you know anything about this? Should I head to keton/etrv2mqtt instead?

It may be something to do with overall issue with BT having issue working: https://github.com/home-assistant/operating-system/issues/1264 , https://github.com/custom-components/ble_monitor/issues/295 , https://github.com/custom-components/ble_monitor/issues/167

hmm, all my thermostats are off right now so i didn't even notice.
i will find time to investigate soon!

I've manage to get it back online - forgot to mention it here. I had to restart not only HA but the whole machine. Not sure what was the problem though...Feel free to close this if you'd like.


Optimized kperf load and improved test coverage

Changes

Optimize kperf load

add two function getReplicaResult(), getPodResults(), to simplify the infinite loop with select and switch https://github.com/knative-sandbox/kperf/pull/234#discussion_r891669991
add a function setLoadFromZeroResult() to add all items to LoadFromZeroResult
add a function deleteFile() to help remove wrk lua script

Add more test code, and improve test coverage of load.go from 20% to 70%+

/ok-to-test


✏ Fix typo on dependencies utils and cleanup unused variable

Small PR.
Changes:

Removed unused param_supported_types = (str, int, float, bool)
Fix typo on multlipart -> multipart

Nice! Good catch, thanks! :mag: :cake:


How to run Keras-yolo3 in multi-node multi GPU environment?

The code is able to run on 2 gpus on a single node (on hpc system).  But when i try to run it on multiple nodes (with 2gpus on each node), the code is still detecting only one node with 2 gpus. Any idea, how do i make it run on each node's gpus?

So in the config.json file i have:
"gpus":                 "0,1,2,3",
Its only detecting the 0 & 1 (first node) correctly and works well but not detecting 2 & 3 i.e the second node.

Hi rupeshcash,
I wonder if you have sorted out this problem. I have access to similar HPC (with 2 gpus on each node), so to make my CNN run on 4 gpus, I have to specify number of nodes=2. in my resources request And it does detect all the 4 gpus. But my problem is that Keas outputs two different outcomes (losses) from two different nodes separately. Any idea how to merge them?


chore: release main

:robot: I have created a release beep boop
renderer: 1.0.8
1.0.8 (2023-12-23)
Bug Fixes

update pipeline (66bc698)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/pavophilip/react-shader-fiber/releases/tag/renderer-v1.0.8 :sunflower: