79777543

Date: 2025-09-28 19:15:10
Score: 1
Natty:
Report link

Since JPEG doesn't support transparency, pillow fills those transparent areas with white by default. I would suggest you to manually add a black background before saving to JPEG.

black_bg = Image.new("RGBA", img.size, "black")
final_img = Image.alpha_composite(black_bg, img)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Avalvir Kaur Sekhon

79777534

Date: 2025-09-28 19:00:05
Score: 7.5 🚩
Natty:
Report link

I am also facing the same issues . And according to version compatability matrix diagram(https://docs.swmansion.com/react-native-reanimated/docs/guides/compatibility/) it should not happen .

Reasons:
  • Blacklisted phrase (1): I am also facing the same issue
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am also facing the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Akash Singh

79777532

Date: 2025-09-28 18:56:04
Score: 0.5
Natty:
Report link

i think the issue you're experiencing with deep-email-validator on AWS is likely due to outbound port restrictions on SMTP ports (typically 25, 465, or 587) used for mailbox verification. AWS EC2 instances block port 25 by default to prevent spam, and ports 465/587 may require explicit security group rules or EC2 high-throughput quota requests for unblocking. This prevents the library's SMTP probing step, causing all validations to fail after basic syntax/MX checks. Similar issues occur on other cloud platforms like GCP or Azure with firewall rules.

// (replace deep-email-validator usage):
const validator = require('validator');
const dns = require('dns').promises;
async function validateEmail(email) {
    // Syntax check
    if (!validator.isEmail(email)) {
        return { valid: false, reason: 'Invalid syntax' };
    }
    try {
        // MX record check (ensures domain can receive email)
        const domain = email.split('@')[1];
        const mxRecords = await dns.resolveMx(domain);
        if (mxRecords.length === 0) {
            return { valid: false, reason: 'No MX records (invalid domain)' };
        }
        return { valid: true, reason: 'Syntax and MX valid' };
    } catch (error) {
        return { valid: false, reason: `DNS error: ${error.message}` };
    }
}
// Usage
validateEmail('[email protected]').then(result =& gt; console.log(result));
Reasons:
  • RegEx Blacklisted phrase (1): Similar issue
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mohammad Sh

79777518

Date: 2025-09-28 18:28:57
Score: 1
Natty:
Report link

You could use a join,

right = df.select(pl.row_index("index")+1, pl.col("ref").alias("ref[index]"))

df.join(right, left_on="idx", right_on="index")
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: etrotta

79777506

Date: 2025-09-28 18:09:52
Score: 1.5
Natty:
Report link

When comparing two values by using <, >, ==, !=, <= or >= (sorry if I missed one), you don't need to use:
num1 : < num2

You can just use:
num1 < num2

This is true for at least C, C++, Python and JavaScript, I haven't used other languages

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Parth Sarathi Yadav

79777502

Date: 2025-09-28 18:05:52
Score: 3.5
Natty:
Report link

Please have a look at this post for a much simplified version. It has some key takeaways which can help solve slicing questions without even writing it down.

LinkedIN - https://www.linkedin.com/posts/shabbir-vejlani_deep-dive-into-python-slicing-activity-7378123564945833984-y2Lp?utm_source=share&utm_medium=member_desktop&rcm=ACoAABC9tUUBGNmscbUAGekJkFZ7jr6aGncIqsQ

Leave a comment if you find this post helpful.

Reasons:
  • Probably link only (1):
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Shabbir

79777491

Date: 2025-09-28 17:52:48
Score: 2
Natty:
Report link
 ggsurvplot(
  fit,
  data = data,
  fun = "event", 
axes.offset = F)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lily

79777490

Date: 2025-09-28 17:50:47
Score: 4
Natty: 4
Report link

I removed the translucent prop from StatusBar and works fine

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Vinicius Wovst

79777487

Date: 2025-09-28 17:49:47
Score: 1
Natty:
Report link

have you ever look at the developer tools under network tab when error happen?

  1. pop open Network tab

  2. redo whatever breaks it (reload / trigger request)

  3. find the failed one (should be azscore.co.it), click it

  4. check Response Headers — you’ll prob see something like:

HTTP/1.1 403 Forbidden
Cross-Origin-Embedder-Policy: require-corp

sometimes there’s also X-Blocked-By: Scraping Protection or just some salty error text in the response body

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: AndyLaode

79777476

Date: 2025-09-28 17:29:42
Score: 5.5
Natty:
Report link

I think what you need is at minute 3:43.

All credit and thanks go to Chandeep.

https://youtu.be/xVLi31mOxeo?si=72ssHH_VE0SO0F6o

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): youtu.be
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Leonardo Bergua

79777472

Date: 2025-09-28 17:23:40
Score: 3.5
Natty:
Report link

Try updating your nodejs using nvm and then try building it. It solved in my case.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bhuwan Darai

79777458

Date: 2025-09-28 16:57:33
Score: 7.5 🚩
Natty: 6
Report link

Does anybody know what could be the reasons that I am actually NOT getting this type error in my local vscode setup?
I am using the latest typescript version 5.9.2 and I made sure that my vscode actually uses that version and the tsconfig from my local workspace.
strict mode is set to true and yet I am not getting that type error...
What other tsconfig settings could have an influence on this behaviour?

Reasons:
  • Blacklisted phrase (1): what could be
  • Blacklisted phrase (1): anybody know
  • RegEx Blacklisted phrase (2): Does anybody know
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: PPillau

79777438

Date: 2025-09-28 16:18:24
Score: 2.5
Natty:
Report link

In that simple check your java version is to high downgrade the java version it will auto works

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Nikhil Kadam

79777435

Date: 2025-09-28 16:10:22
Score: 1.5
Natty:
Report link

Basically there are 2 main differences.

  1. :root has more specificity than html . (find more about specificty here)

  2. CSS can also be used for styling other languages.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mario

79777431

Date: 2025-09-28 16:05:20
Score: 1
Natty:
Report link

You want to deserialize a structure that does not correspond to your data.

You write :

Dictionary<string, T> results = JsonConvert.DeserializeObject<Dictionary<string,T>>(jsonString);

This line said that you want to deserialize a json like this (consider T is int) :

{
    "a": 1,
    "b": 2,
    "c": 3,
    "d": 4,
}

This will works for the line described : https://dotnetfiddle.net/6l3J9Q

But in you case, you have an interface that can't be solved without a little help.

You can see in this sample what it is different : https://dotnetfiddle.net/XbmKeO

When you deserialize object with interface property, you need to have the indication of whihc type the converter should deserialize to.

Please read this article that explained that very well: Using Json.NET converters to deserialize properties

Reasons:
  • Blacklisted phrase (1): this article
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yoann Blossier

79777429

Date: 2025-09-28 16:00:19
Score: 0.5
Natty:
Report link

Sidenote:

for those who prefer C++, this sort of thing will also work. I tried it:

#include <iostream> 

#define RED "\x1b[31m" 
#define RESET "\x1b[0m" 

int main() { 
    std::cout << RED << "a bunch of text" << RESET ; 
    return 0; 
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ashley Ben Story

79777422

Date: 2025-09-28 15:48:16
Score: 3
Natty:
Report link

Actually the best way at the moment (sep 2025) is to use the active_admin_assets rubygem:

Active Admin Assets

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: FredyK

79777409

Date: 2025-09-28 15:26:11
Score: 1.5
Natty:
Report link

It seems you don't define $JAVA variable.
Add this near the top of the script
JAVA="${JAVA:-java}"
or explicitly set it
JAVA="/usr/bin/java"

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Reyhaneh

79777407

Date: 2025-09-28 15:22:10
Score: 1.5
Natty:
Report link

It seems adding

"compilerOptions": {
    "esModuleInterop": true,
}

in my tsconfig.json resolved the issue.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Katlego

79777406

Date: 2025-09-28 15:21:09
Score: 2
Natty:
Report link

Seems to be a code analysis issue from PyCharms side so no need to fix this if everything works fine when ran.
If this really bothers you, you could maybe disable it in pycharm: Preferences -> Editor -> Inspections

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: EleckTroniiKz

79777404

Date: 2025-09-28 15:17:08
Score: 2.5
Natty:
Report link

if you can not see Unicode characters in console (when you run) correctly, do this:

settings -> editor -> general -> console and set the default encoding to UTF-8

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Baharvand

79777394

Date: 2025-09-28 15:00:03
Score: 0.5
Natty:
Report link

When you use @FeignClient(configuration = FeignEmptyConfig.class), Spring doesn't automatically recognize the beans from the parent class (FeignLogConfig). Because Spring's component scanning doesn't work with class inheritance in this specific context.

Your edit points to the right solution - using @Import annotation to handle this scenario:

@Import(FeignLogConfig.class)
public class FeignEmptyConfig {
}

Alternatively, you could define your Feign client with both configurations:

@FeignClient(
    value = "emptyClient", 
    url = "${service.url}", 
    configuration = {FeignEmptyConfig.class, FeignLogConfig.class}
)
public interface YourClient {
    // methods
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When you use
  • Low reputation (1):
Posted by: qingyi

79777390

Date: 2025-09-28 14:56:02
Score: 1.5
Natty:
Report link

In modern browsers, I found that using container queries was the best way forward

first, we need to identify an element, that is going to be the outermost element that will span from screen edge to screen edge. in 99.9% of cases, this will be body tag. More accurately, we are looking for page's scroll container.

body {
  container-type: inline-size;
  container-name: viewport;  /* yes, we creatively named it 'viewport' */
}

@container viewport (width > 0) {
  .w-screen {
    width: 100cqw;
  }
}

then, we can easily use the w-screen class to make a container use the width of the b

---

for those who use tailwind, there is already a w-screen utility class which suffers from the same problem, so add this to your global

body {
  @apply @container/viewport;
}

@layer utilities {
  .w-screen {
    @container viewport (width > 0) {
      width: 100cqw;
    }
  }
}

I'm using this answer for inspiration
100vw causing horizontal overflow, but only if more than one?

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Dibyodyuti Mondal

79777386

Date: 2025-09-28 14:51:00
Score: 2.5
Natty:
Report link

I facing an error on this one my vite and tailwind css are not sync properly while all the setup are still correct but still i facing the error , i put the same code in playcode.io it give me the execepted output but on my vs code it show viered and not execepted why it happen the HRM are loading properly but still i facing this problem i an week still now i cant solve this one all the openai model are working not properly

    <div className="bg-gradient-to-tr from-blue-400 to-pink-400 h-screen w-screen flex flex-col items-center">
      <div className="bg-white p-10 rounded-xl my-auto hover:shadow-2xl <w-84></w-84> ">
        <h1 className="text-blue-400 font-sans text-3xl font-medium text-center mb-16">
          Todo List
        </h1>
        <div className="flex flex-row mb-6">
          <input
            type="text"
            placeholder="Enter Your Task...."
            className="border border-gray-300 p-2 rounded-l-xl placeholder:text-gray-400 flex-grow placeholder:px-1 focus:outline-none"
          />
          <button className="bg-blue-400 text-white p-2 hover:bg-blue-300 rounded-r-xl font-medium">
            Add
          </button>
        </div>

        <ul className="bg-gray-200 ">
          <li>
            <div className="flex justify-between items-center">
              <input type="checkbox" className=""></input>
              <p>Sample Task</p>
              <button className="bg-red-500 py-2 px-4 rounded-lg">Delete</button>
            </div>
          </li>
        </ul>
      </div>
    </div>enter image description here
Reasons:
  • Blacklisted phrase (1): enter image description here
  • RegEx Blacklisted phrase (1): I facing an error
  • RegEx Blacklisted phrase (1): i facing the error
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Santhosh Mad

79777384

Date: 2025-09-28 14:49:00
Score: 2.5
Natty:
Report link

You're unable to fake static methods using 'FakeItEasy' (extensions methods too because they are static also) if you need logic like this you need to think about 'proxy pattern' or using 'Typemock Isolator'

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: TheMakarik

79777372

Date: 2025-09-28 14:27:55
Score: 0.5
Natty:
Report link

I had to uninstall cocoapods from gems and HomeBrew:

sudo gem uninstall cocoapods
brew uninstall cocoapods

Then, use brew to install:

brew install cocoapods

After this, restart your IDE and or Terminal.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vonarian

79777360

Date: 2025-09-28 13:52:48
Score: 1
Natty:
Report link

I think the issue occurs because Mendeley Desktop did not close properly, leaving a background process still running.

I’ve encountered the same situation myself.

As far as I know, the only solution is to manually kill the Mendeley process running in the background.

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: yongyouhe

79777359

Date: 2025-09-28 13:49:47
Score: 1
Natty:
Report link

I think the answer is to run the query this way:

SELECT TABNAME FROM SYSIBMADM.ADMINTABINFO WHERE TABSCHEMA = 'LIBRAT' AND REORG_PENDING <> 'N';

Because the value of that column can be either 'Y' (for reorg pending) or 'C' (for check pending)--both of which are an operation pending (state=57007).

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Dave Clark

79777356

Date: 2025-09-28 13:44:46
Score: 3.5
Natty:
Report link

enter image description here

As you can see i've already setup the business phone number, still not receiving / delivered test message into my whatsapp number from prod number.

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Muntasirul Islam

79777352

Date: 2025-09-28 13:33:44
Score: 2
Natty:
Report link

You can get the ApiVersion in the endpoint

To do this, use httpContext.GetRequestedApiVersion();

https://github.com/dotnet/aspnet-api-versioning/wiki/Accessing-Version-Information

Example:

app.MapPost("/create", ... (HttpContext httpContext ...) =>
{
    ApiVersion apiVersion = httpContext.GetRequestedApiVersion();
    ...
});
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user31342728

79777338

Date: 2025-09-28 13:15:39
Score: 2
Natty:
Report link

I’m Percy. It's

nice to meet you.

I was told a quest isn’t a

quest until you’ve said so?

Which is weird considering

you're a Halloween decoration.

Oh, geez.

You seem busy. I’ll come back.

Whoa.

Come on, really?

You shall go west and

face the god who has turned.

And you shall find what was

stolen and see it safely returned.

The Oracle has confirmed

what we expected,

that this quest will proceed

toward the Underworld,

where you will confront the god

who has rebelled against his brothers.

Hades.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: sound Lokesh

79777331

Date: 2025-09-28 12:59:36
Score: 3.5
Natty:
Report link

I got a win last night and it was real, I played on the JO777

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Queen

79777324

Date: 2025-09-28 12:46:33
Score: 3
Natty:
Report link

If you are willing to write a tiny bit of code, this library will allow you to simulate anything you want from a slave device: https://github.com/SiemensEnergy/c-modbus-slave

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jonas Almås

79777320

Date: 2025-09-28 12:40:31
Score: 3
Natty:
Report link

A change has been committed, please se https://github.com/ITfoxtec/ITfoxtec.Identity.Saml2/issues/256

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Anders Revsgaard

79777312

Date: 2025-09-28 12:21:27
Score: 2
Natty:
Report link

The page you requested cannot be displayed right now. It may be temporarily unavailable, the link you clicked on may be broken or expired, or you may not have permission to view this page.
Back to previous page

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: رجب ترکمن

79777305

Date: 2025-09-28 12:08:25
Score: 0.5
Natty:
Report link

you can use this:

numpy==1.24.4

opencv-python==4.5.5.64
Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Kourosh Hassanzadeh

79777301

Date: 2025-09-28 11:59:23
Score: 0.5
Natty:
Report link

I took some time to make it work (or at least address some major issues) in an online compiler. Here are my findings:

Scale Issues

This was an easy problem to fix. As i already mentioned in my comment, these formulas only work in the International System of Units (SI units), and when you scale down meters for your simulation (to avoid getting huge numbers in your rendering logic i assume, or to make them easier to read), you would also have to scale down everything else.

Because many formulas are not linear (for example: the gravity experienced by an object is depending on the square of the distance [1], so if you half the simulation distance and half your simulation mass, the result doesn't match anymore.

Therefore, i'd strongly recommend against scaling at all, at least for the physics.

In my project, i have seperated rendering and physics. You can define a factor (like 1 AU or ~10^-12, depending on your needs). For quick testing, i defined a 1 AU factor and applied it to your data (and my made up data):

const astronomicalUnit = 1.496 * (10**11);
const bodies = [
    {
        position: [0, 0.8 * astronomicalUnit],
        velocity: [0, 0],
        force: [0, 0],
        mass: 1.989 * 10 ** 30,
        radius: 3.5,
        trailPositions: [],
        colour: [1, 1, 0.8, 1],
        parentIndex: -1,
        name: "Sun",
    },
    {
        position: [29.7 * astronomicalUnit, 0], // Approximate distance at lowest point in orbit
        velocity: [0, 6.1 * 10 ** 3], // Orbital speed in m/s (approximate data for lowest point aswell)
        force: [0, 0],
        mass: 1.309 * 10 ** 22, // kg
        radius: 0.0064, // Scaled radius for visualization; actual radius ~1.1883 × 10^6 m
        trailPositions: [],
        colour: [0.6, 0.7, 0.8, 1], // Pale bluish-grey
        parentIndex: 0, // Assuming Sun is index 0
        name: "Pluto", // I picked pluto because it has well known orbital data and an eccentricity of 0.25, 
                       // which should make the second focus visually distinct
    }
];

And after all calculations are done, you can divide out the same factor to get a more readable and renderable result. It also enables you to use more even more real-world constants:

const gravity = 6.674 * (10**(-11)); // real world gravitational constant
findSecondFocus(1);

// Within findSecondFocus:
console.log("Semi-major axis:", (a / astronomicalUnit)); // Instead of printing a directly, for example

This already fixes the calculation of the semi-major axis!

To summarize: use realistic values, if you want realistic results (alternatively: experiment to find consistent values for an alternate universe, but that will take time and disable you from just looking up data). Most relevant for your project: meters, kilograms and seconds.

Implementation Issues

Here:

    // The eccentricity vector formula is: e = (v × h)/μ - r/|r|
    const rvDot = relativeSpatiumVector[0] * relativeVelocityVector[0] +
              relativeSpatiumVector[1] * relativeVelocityVector[1];

You write cross product in your comment, but use the dot product. You also use the dot product to calculate h, the angular momentum vector. Unfortunately, it takes quite a bit of effort to fix this one.

The cross product of two vectors produces a vector perpendicular to both input vectors [2]. Where does it go for 2D vectors? Outside of your plane of simulation.

Thats quite unfortunate, but we can cheese our way around.

First, i made some helpers for both 2D and 3D cross products:

// Seperate definition of a cross-product helper, so code is easier to read
function cross2D(a, b) {
    return a[0] * b[1] - a[1] * b[0];
}
function cross3D(a, b) {
    return [
        a[1] * b[2] - a[2] * b[1],
        a[2] * b[0] - a[0] * b[2],
        a[0] * b[1] - a[1] * b[0]
    ];
}

Then, i replaced the code for eccentricity vector calculation, i'll explain afterwards:

    // The eccentricity vector formula is: e = (v × h)/μ - r/|r|
    const rUnit = [
        relativeSpatiumVector[0] / r,
        relativeSpatiumVector[1] / r
    ];
    
    const angular_z = cross2D(relativeSpatiumVector, relativeVelocityVector);
    const angularMomentumVector = [0,0,angular_z]; // This is the "h"
    const liftedVelocityVector = [relativeVelocityVector[0], relativeVelocityVector[1], 0];
    const vxh = cross3D(liftedVelocityVector, angularMomentumVector);
    const eccentricityVector = [
        vxh[0] / mu_sim - rUnit[0],
        vxh[1] / mu_sim - rUnit[1],
    ]; // (v × h)/μ - r/|r|

Your rUnit looked fine, so i reused it. I created a angular velocity 3D vector angularMomentumVector by assuming everything on the 2D plane to be zero, which i can do because it has to be perpendicular to two vectors on this plane.

Then, we need to get the velocity into 3D (liftedVelocityVector) aswell. Thats easy, because it just doesn't move in the z direction.

Then, we get the cross product in vxh, and can finally apply the formula you already had in your comment.

We can ignore the z component (vxh[2]), because the cross product must be perpendicular to the angularMomentumVector, which only has z components.

Everything else in your code was perfectly fine, so well done!

Test results

With the data from earlier in the answer and these updated console logs:

    console.log("Second Focus coordinates:", secondFocus[0] / astronomicalUnit, ", ", secondFocus[1] / astronomicalUnit);
    console.log("Eccentricity:", eccentricityScalar);
    console.log("Semi-major axis:", (a / astronomicalUnit));

I get these results:

Second Focus coordinates: -19.369704292780035 ,  -1.321742876573199
Eccentricity: 0.2472841556295451
Semi-major axis: 39.39913738651615

Compared to Wikipedia Data, thats ~0.0015 off in eccentricity, and ~0.083 AU off in the semi-major axis. I blame the inaccuracy on my rounded input data and the fact we clipped off its entire inclination.

I could not find a reference value for the second focus, but it seems plausible.

Thanks for the fun challange and good look with your project!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: lightspace

79777298

Date: 2025-09-28 11:53:22
Score: 1.5
Natty:
Report link

Academic integrity means being honest and responsible in your studies. It includes respecting the work of others, avoiding cheating, and giving credit to sources when you use their ideas. Students with academic integrity show fairness, trust, and responsibility. Plagiarism, copying, or using unfair methods harms both the student and the learning process. Integrity also means completing assignments with your own effort, being truthful in exams, and respecting the rules of your school or university. It helps build strong character and prepares students for future careers. Academic integrity creates trust between teachers and students, and it encourages real learning. When students practice integrity, they not only succeed academically but also develop values that last for life.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Star 55

79777288

Date: 2025-09-28 11:38:18
Score: 5
Natty:
Report link

May be, you have started the server before writing writing the Timeentries model in your app. If you have written Timeentries model definition, can you please share it. Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2.5): can you please share
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Siddharth

79777285

Date: 2025-09-28 11:33:17
Score: 2
Natty:
Report link

<div id="1759058573960" style="width:100%;max-width:500px;height:375px;margin:auto;display:block;position: relative;border:2px solid #dee1e5;border-radius:3px;"><iframe allow="clipboard-write" allow="autoplay" allowfullscreen="true" allowfullscreen="true" style="width:100%;height:100%;border:none;" src="https://app.presentations.ai/view/QrHURkQ9v9" scrolling="no"></iframe></div>

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rosse Mary Lopez Chiri

79777281

Date: 2025-09-28 11:25:15
Score: 2.5
Natty:
Report link

You could try to use dbus-monitor (notifications are sent via dbus and you could capture them in some pyhton/c/rust/anything wrapper)

So the key command is:

dbus-monitor --session "destination='org.freedesktop.Notifications'"

See also some notification encoding:

https://specifications.freedesktop.org/notification-spec/1.3/protocol.html

Best regards

Reasons:
  • Blacklisted phrase (0.5): Best regards
  • Blacklisted phrase (1): regards
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jakub Kráľ

79777261

Date: 2025-09-28 10:37:06
Score: 2.5
Natty:
Report link

I truly invite you to use this library:
https://github.com/ShawnLin013/NumberPicker

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • High reputation (-1):
Posted by: reza_khalafi

79777260

Date: 2025-09-28 10:33:05
Score: 2
Natty:
Report link

as it obvious using ValueTask<T> Cause it's Struct is more memory Efficient Than Task in Large Scale but it also has some Restriction . For Example : you don't have Consume a ValueTask<T> Returned Method more than once in another Consumer But it also have some benefit when have Some Synchronous Operation in an Async Context for Example to Appling Atomic Database Transaction which is an Synchronous Operation but may has an Async Context actually

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: mohammadjavad pousti

79777259

Date: 2025-09-28 10:30:04
Score: 1.5
Natty:
Report link
import streamlit as st
import time
import uuid
from datetime import datetime
import json

# Page configuration
st.set_page_config(
    page_title="AI ChatBot Assistant", 
    page_icon="🤖",
    layout="wide",
    initial_sidebar_state="expanded"
)

# Custom CSS for ChatGPT-like styling
st.markdown("""
<style>
.main-container { max-width: 1200px; margin: 0 auto; }
.chat-message { padding: 1rem; border-radius: 10px; margin-bottom: 1rem; word-wrap: break-word; }
.user-message { background-color: #f0f0f0; margin-left: 20%; border: 1px solid #ddd; }
.assistant-message { background-color: #e3f2fd; margin-right: 20%; border: 1px solid #bbdefb; }
.chat-header { text-align: center; padding: 1rem 0; border-bottom: 2px solid #e0e0e0; margin-bottom: 2rem; }
.sidebar-content { padding: 1rem 0; }
.input-container { position: sticky; bottom: 0; background-color: white; padding: 1rem 0; border-top: 1px solid #e0e0e0; }
.action-button { background-color: #1976d2; color: white; border: none; padding: 0.5rem 1rem; border-radius: 5px; cursor: pointer; margin: 0.25rem; }
.action-button:hover { background-color: #1565c0; }
.speech-button { background-color: #4caf50; color: white; border: none; padding: 0.75rem; border-radius: 50%; cursor: pointer; font-size: 1.2rem; margin-left: 0.5rem; }
.speech-button:hover { background-color: #45a049; }
.speech-button.listening { background-color: #f44336; animation: pulse 1s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
.status-indicator { padding: 0.5rem; border-radius: 5px; margin: 0.5rem 0; text-align: center; }
.status-listening { background-color: #ffebee; color: #c62828; }
.status-processing { background-color: #fff3e0; color: #ef6c00; }
.status-ready { background-color: #e8f5e8; color: #2e7d32; }
.chat-stats { background-color: #f5f5f5; padding: 1rem; border-radius: 10px; margin: 1rem 0; }
.export-button { background-color: #ff9800; color: white; border: none; padding: 0.5rem 1rem; border-radius: 5px; cursor: pointer; width: 100%; margin: 0.5rem 0; }
.export-button:hover { background-color: #f57c00; }
</style>
""", unsafe_allow_html=True)

# --- Unified Voice + Text Input ---
def speech_to_text_component():
    speech_html = """
    <div id="speech-container">
        <div style="display: flex; align-items: center; gap: 10px; margin-bottom: 20px;">
            <input type="text" id="speechResult" placeholder="Speak or type your message..." 
                   style="flex: 1; padding: 12px; border: 2px solid #ddd; border-radius: 8px; font-size: 16px;">
            <button id="speechButton" onclick="toggleSpeechRecognition()" 
                    style="padding: 12px; background-color: #4caf50; color: white; border: none; 
                           border-radius: 50%; cursor: pointer; font-size: 18px; width: 50px; height: 50px;">
                🎤
            </button>
        </div>
        <div id="speechStatus" style="padding: 8px; border-radius: 5px; text-align: center; 
                                      background-color: #e8f5e8; color: #2e7d32; margin-bottom: 10px;">
            Ready to listen - Click the microphone to start
        </div>
        <button onclick="submitSpeechText()" id="submitButton"
                style="padding: 12px 24px; background-color: #1976d2; color: white; border: none; 
                       border-radius: 8px; cursor: pointer; font-size: 16px; width: 100%;">
            Send Message
        </button>
    </div>
    <script>
    let recognition;
    let isListening = false;

    if ('webkitSpeechRecognition' in window || 'SpeechRecognition' in window) {
        const SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition;
        recognition = new SpeechRecognition();
        recognition.continuous = false;
        recognition.interimResults = true;
        recognition.lang = 'en-US';

        recognition.onstart = function() {
            isListening = true;
            document.getElementById('speechButton').innerHTML = '🔴';
            document.getElementById('speechButton').style.backgroundColor = '#f44336';
            document.getElementById('speechStatus').innerHTML = 'Listening... Speak now!';
            document.getElementById('speechStatus').className = 'status-listening';
            document.getElementById('speechStatus').style.backgroundColor = '#ffebee';
            document.getElementById('speechStatus').style.color = '#c62828';
        };

        recognition.onresult = function(event) {
            let transcript = '';
            for (let i = 0; i < event.results.length; i++) {
                transcript += event.results[i][0].transcript;
            }
            document.getElementById('speechResult').value = transcript;
            if (event.results[event.results.length - 1].isFinal) {
                document.getElementById('speechStatus').innerHTML = 'Speech captured! Click Send or Enter.';
                document.getElementById('speechStatus').className = 'status-ready status-indicator';
            }
        };

        recognition.onerror = function(event) {
            document.getElementById('speechStatus').innerHTML = 'Error: ' + event.error;
            document.getElementById('speechStatus').className = 'status-listening status-indicator';
            resetSpeechButton();
        };

        recognition.onend = function() {
            resetSpeechButton();
        };
    } else {
        document.getElementById('speechStatus').innerHTML = 'Speech recognition not supported in this browser';
        document.getElementById('speechButton').disabled = true;
    }

    function resetSpeechButton() {
        isListening = false;
        document.getElementById('speechButton').innerHTML = '🎤';
        document.getElementById('speechButton').style.backgroundColor = '#4caf50';
        if (document.getElementById('speechResult').value.trim() === '') {
            document.getElementById('speechStatus').innerHTML = 'Ready to listen - Click the microphone to start';
            document.getElementById('speechStatus').className = 'status-indicator status-ready';
        }
    }

    function toggleSpeechRecognition() {
        if (recognition) {
            if (isListening) {
                recognition.stop();
            } else {
                recognition.start();
            }
        }
    }

    function submitSpeechText() {
        const text = document.getElementById('speechResult').value.trim();
        if (text) {
            window.parent.postMessage({
                type: 'streamlit:setComponentValue',
                value: text
            }, '*');
            document.getElementById('speechResult').value = '';
            document.getElementById('speechStatus').innerHTML = 'Message sent! Ready for next input.';
            document.getElementById('speechStatus').className = 'status-indicator status-ready';
            resetSpeechButton();
        } else {
            document.getElementById('speechStatus').innerHTML = 'Please speak or type a message first.';
            document.getElementById('speechStatus').className = 'status-listening status-indicator';
        }
    }

    document.getElementById('speechResult').addEventListener('keypress', function(e) {
        if (e.key === 'Enter') {
            submitSpeechText();
        }
    });
    </script>
    """
    return st.components.v1.html(speech_html, height=200)

def initialize_session_state():
    if "messages" not in st.session_state:
        st.session_state.messages = [
            {"role": "assistant", "content": "👋 Hello! I'm your AI assistant. How can I help you today?", "timestamp": datetime.now()}
        ]
    if "session_id" not in st.session_state:
        st.session_state.session_id = str(uuid.uuid4())
    if "user_name" not in st.session_state:
        st.session_state.user_name = "User"
    if "chat_count" not in st.session_state:
        st.session_state.chat_count = 0

def generate_ai_response(user_input):
    time.sleep(1)
    responses = {
        "hello": "Hello! Great to meet you! How can I assist you today?",
        "help": "I'm here to help! You can ask me questions, have a conversation, or use voice input by clicking the microphone button.",
        "how are you": "I'm doing great, thank you for asking! I'm ready to help with whatever you need.",
        "voice": "Yes! I support voice input. Just click the microphone button and speak your message.",
        "features": "I support text and voice input, conversation history, message export, and more. What would you like to explore?",
    }
    if isinstance(user_input, str):
        user_lower = user_input.lower()
        for key, response in responses.items():
            if key in user_lower:
                return response
        return f"Thanks for your message: '{user_input}'. This is a demo response. In a real application, connect to an AI service here."
    else:
        return "Sorry, I didn't understand that input."

def export_chat_history():
    export_data = {
        "session_id": st.session_state.session_id,
        "user_name": st.session_state.user_name,
        "export_time": datetime.now().isoformat(),
        "message_count": len(st.session_state.messages),
        "messages": [
            {
                "role": msg["role"],
                "content": msg["content"],
                "timestamp": msg["timestamp"].isoformat() if "timestamp" in msg else None
            }
            for msg in st.session_state.messages
        ]
    }
    return json.dumps(export_data, indent=2)

def main():
    initialize_session_state()
    # Header
    st.markdown('<div class="chat-header">', unsafe_allow_html=True)
    st.title("🤖 AI ChatBot Assistant")
    st.markdown("*Advanced chat interface with voice input capabilities*")
    st.markdown('</div>', unsafe_allow_html=True)

    # Sidebar
    with st.sidebar:
        st.markdown('<div class="sidebar-content">', unsafe_allow_html=True)
        st.header("⚙️ Chat Settings")
        user_name = st.text_input("Your Name:", value=st.session_state.user_name)
        if user_name != st.session_state.user_name:
            st.session_state.user_name = user_name
        st.divider()
        st.subheader("📊 Chat Statistics")
        st.markdown(f"""
        <div class="chat-stats">
            <p><strong>Messages:</strong> {len(st.session_state.messages)}</p>
            <p><strong>Session ID:</strong> {st.session_state.session_id[:8]}...</p>
            <p><strong>Started:</strong> Just now</p>
        </div>
        """, unsafe_allow_html=True)
        st.subheader("🔧 Chat Controls")
        if st.button("🗑️ Clear Chat History", type="secondary", use_container_width=True):
            st.session_state.messages = [
                {"role": "assistant", "content": "👋 Hello! I'm your AI assistant. How can I help you today?", "timestamp": datetime.now()}
            ]
            st.rerun()
        if st.button("📤 Export Chat", type="secondary", use_container_width=True):
            exported_data = export_chat_history()
            st.download_button(
                label="💾 Download Chat History",
                data=exported_data,
                file_name=f"chat_history_{datetime.now().strftime('%Y%m%d_%H%M%S')}.json",
                mime="application/json",
                use_container_width=True
            )
        st.divider()
        st.subheader("ℹ️ How to Use")
        st.markdown("""
        **Text Input:** Type your message and press Enter or click Send

        **Voice Input:** Click the 🎤 microphone button and speak

        **Features:**
        - Real-time speech recognition
        - Chat history preservation
        - Message export functionality
        - Responsive design
        """)
        st.markdown('</div>', unsafe_allow_html=True)

    # Main chat area
    col1, col2, col3 = st.columns([1, 6, 1])
    with col2:
        st.markdown('<div class="main-container">', unsafe_allow_html=True)
        chat_container = st.container()
        with chat_container:
            for i, message in enumerate(st.session_state.messages):
                with st.chat_message(message["role"]):
                    st.markdown(message["content"])
                    if "timestamp" in message:
                        st.caption(f"*{message['timestamp'].strftime('%H:%M:%S')}*")
        st.markdown('</div>', unsafe_allow_html=True)

    # ---- SINGLE Input Box for both text and voice ----
    st.markdown('<div class="input-container">', unsafe_allow_html=True)
    st.subheader("🎤 Voice & Text Input")
    user_input = speech_to_text_component() # This is now the ONLY input

    if user_input and isinstance(user_input, str) and user_input.strip():
        user_input = user_input.strip()
        st.session_state.messages.append({
            "role": "user", 
            "content": user_input,
            "timestamp": datetime.now()
        })
        with st.spinner("🤔 Thinking..."):
            ai_response = generate_ai_response(user_input)
            st.session_state.messages.append({
                "role": "assistant", 
                "content": ai_response,
                "timestamp": datetime.now()
            })
        st.session_state.chat_count += 1
        st.rerun()
    st.markdown('</div>', unsafe_allow_html=True)

if __name__ == "__main__":
    main()
Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): How can I
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Praveen Kumar

79777256

Date: 2025-09-28 10:21:02
Score: 1
Natty:
Report link

TL;DR If you change algorithm in the future You migth sill want to be able to decrypt old data. If You hide algorithm You'll not know which one was used.

I've spent some time learning and creating my own stuff and I can share what I've learned.

In a lot of cases you will store encrypted data like an email address in the database, which most of them will be SQL, that means it will have certain columns.

Encrypted data is often stored with metadata, which can be different for each algorithm, but since SQL databases are ridged, you would have to create a new table or decrypt and encrypt everything once again if you decide to change the algorithm in the future, and that are not a good ideas. Better choice is to store that encrypted data as a concatenated string with metadata like:

$AES$version$encyptedData
So if You'd like to hide what algorithm was used you wouldn't know which one to use to decrypt it.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: GheVrath

79777249

Date: 2025-09-28 09:51:57
Score: 2.5
Natty:
Report link

Here are the 3 runs with your code (with the same model, i.e. gemini-2.5-flash) and different prompts:

1st run: your prompt (What's my name?)

================================ Human Message =================================

Hi! I am Bob!
================================== Ai Message ==================================

Hello Bob! How can I help you today?
================================ Human Message =================================

What's my name?
================================== Ai Message ==================================

I'm sorry, I don't have memory of past conversations. Could you please tell me your name again?

2nd run: prompt (Do you know my name?)

================================ Human Message =================================

Hi! I am Bob!
================================== Ai Message ==================================

Hello Bob! How can I help you today?
================================ Human Message =================================

Do you know my name?
================================== Ai Message ==================================

Yes, your name is Bob.

3rd run: prompt (Do you remember my name?)

================================ Human Message =================================

Hi! I am Bob!
================================== Ai Message ==================================

Hello Bob! How can I help you today?
================================ Human Message =================================

Do you remember my name?
================================== Ai Message ==================================

Yes, I do, Bob!

As you can see, it does have the chat history/memory.

then Why “What’s my name?” fails but “Do you know/remember my name?” works

  1. Gemini (and most LLMs) does not have “structured” memory unless we feed it back.

  2. When you ask “What’s my name?”, the model interprets it literally as a knowledge recall task. Since it doesn’t have an internal persistent memory store, it defaults to “I don’t know your name.”

  3. When you ask “Do you know my name?” or “Do you remember my name?”, the model interprets this more conversationally and looks at the immediate chat history in the same request, so it correctly extracts “Bob”.

So, this is not LangGraph memory failing, it’s a model behavior in Gemini.

The example shown on the official documentaion: https://python.langchain.com/docs/tutorials/agents/ is using anthropic:claude-3-5-sonnet-latest which behaves different from Gemini models.

Here's another examples with the exact same code but with different model llama3.2:latest from Ollama.

import os
from langchain_tavily import TavilySearch
from langgraph.checkpoint.memory import MemorySaver
from langchain_core.messages import HumanMessage
from langgraph.prebuilt import create_react_agent
from langchain_ollama import ChatOllama
from dotenv import load_dotenv

load_dotenv()
os.environ.get('TAVILY_API_KEY')
search = TavilySearch(max_result=2)
tools = [search]

model = ChatOllama(
    model="llama3.2:latest", temperature=0)

memory = MemorySaver()
agent_executor = create_react_agent(model, tools, checkpointer=memory)

# Same thread_id for continuity
config = {"configurable": {"thread_id": "agent003"}}

# First turn
for step in agent_executor.stream(
    {"messages": [HumanMessage("Hi! I am Bob!")]}, config, stream_mode="values"
):
    step["messages"][-1].pretty_print()

# # Second turn – no need to fetch history yourself
for step in agent_executor.stream(
    {"messages": [HumanMessage("what's my name?")]}, config, stream_mode="values"
):
    step["messages"][-1].pretty_print()

output:

================================ Human Message =================================
Hi! I am Bob!
================================== Ai Message ==================================
Tool Calls:
....
================================= Tool Message =================================
Name: tavily_search
....
================================== Ai Message ==================================
Your name is Bob! I've found multiple individuals with the name Bob, including Bob Marley, B.o.B, and Bob Iger. Is there a specific Bob you're interested in learning more about?
Reasons:
  • Blacklisted phrase (0.5): How can I
  • RegEx Blacklisted phrase (2.5): Could you please tell me your
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Ajeet Verma

79777240

Date: 2025-09-28 09:07:49
Score: 2
Natty:
Report link

In my case it was not incorrect nesting of HTML tags, it was due to some browser extensions I came to know from reddit thread, I just disable them and the error/warning disappear.

You can run the application in incognito and check also.

https://www.reddit.com/r/nextjs/comments/1ims6u7/im_getting_infinite_hydration_error_in_nextjs_and/

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mohamed Adam

79777235

Date: 2025-09-28 08:50:45
Score: 2
Natty:
Report link

// Current week number

echo "Current week number: " . date("W") . "<br>";

// Example with a specific date

$date = "2025-09-27";

echo "Week number of $date: " . date("W", strtotime($date));

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Greece All News

79777233

Date: 2025-09-28 08:47:45
Score: 2.5
Natty:
Report link

If you want to change a single field in db and you are completely fetching the row, you need to update the only field which is getting changed and then save into db, this will optimize your code to some extent. If you can put your code here then it will be better.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: crana

79777230

Date: 2025-09-28 08:36:43
Score: 1
Natty:
Report link

There is a program XnConvert, very good. It can do it for multiple images. "Clean metadata - EXIF".

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: i486

79777227

Date: 2025-09-28 08:33:42
Score: 2.5
Natty:
Report link

To retrieve the value of the secret type for an Environment variable, simply provide the Name (not the Display name) of the environment variable in the Perform an unbound action step. There's no need to select it from the dynamic content.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Zhisong Huo

79777225

Date: 2025-09-28 08:27:41
Score: 1
Natty:
Report link

I found out that there was a second overlay network that was using 10.0.0.0/24. The solution was as simple as adding that ip range to the wireguard config of both nodes.

[Interface]
PrivateKey = <private-key>
Address = 10.238.0.1/24
ListenPort = 51820

[Peer]
PublicKey = <public-key>
Endpoint = <public-ip>:51820
PersistentKeepalive = 25
AllowedIPs = 10.238.0.2/32, 10.0.1.0/24, 10.0.0.0/24
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Koert Weber

79777217

Date: 2025-09-28 08:03:35
Score: 1
Natty:
Report link

First, use the "editor.colorDecorators": false to disable the feature for all languages. Then, use language-specific settings to re-enable it only for CSS.

In settings.json:

{
  "editor.colorDecorators": false,

  "[css]": {
    "editor.colorDecorators": true
  }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Kyle Lin

79777201

Date: 2025-09-28 07:29:28
Score: 3.5
Natty:
Report link

I fought and fought (Kali Linux) and the only thing that helped was rolling back the version to 7.0.0. Conclusion. v.7.2 is unfinished.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Helpik

79777200

Date: 2025-09-28 07:28:27
Score: 1.5
Natty:
Report link

This website really can autoplay mp3 automatically in firefox and other browsers. Not like others code, which failed in firefox.

The mp3 is not autoplayed at the landing page. But as I click the button to the main page, the sound play automatically at the main page (one page website).

https://share.linkundangan.com/inv-preview/wedding-premium050?to=Tamu+Undangan

I've tried to read the code, but I,m not a coder. Would anybody give me the audio code of this site, please.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hendri Gunawan

79777189

Date: 2025-09-28 07:16:25
Score: 1.5
Natty:
Report link

You can use sonar-badge-proxy to configure badges at group level in gitlab and access it without sonarqube token.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Aleksandr Smirnov

79777186

Date: 2025-09-28 07:11:24
Score: 2
Natty:
Report link

I tried your provided embed snippet and others from imgur website on Codepen and they seems to be working just fine, if you encounter this issue, check your browser console, there might be a CORS error or something else blocking the rendering.

Tried the provided code in codepen and it worked

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: UncleBigBay

79777179

Date: 2025-09-28 07:01:22
Score: 2
Natty:
Report link

The following code solves the problem posed by the question, i.e., retrieve schedules that have at least one job (any component in the pipeline that runs on the schedule) successfully finished.

The issue however is that when a schedule has multiple runs, only the first run is considered.

A more interesting problem is to retrieve schedules that have at least one run completed, or the last run completed, or the last run failed. I will address this question in a separate post (please answer the question if you have a better solution)

# -------------------------------------------------
# Connect to AML and set tracking URI in mlflow
# -------------------------------------------------
from azure.ai.ml import MLClient
from azure.identity import DefaultAzureCredential, InteractiveBrowserCredential

# Connect to AML
client = MLClient(
        credential= InteractiveBrowserCredential(),
        subscription_id="my-subscription-id",
        resource_group_name="my-resource-group",
        workspace_name="my-workspace"
        )


# set tracking uri if run locally
mlflow_tracking_uri = client.workspaces.get(client.workspace_name).mlflow_tracking_uri
mlflow.set_tracking_uri(mlflow_tracking_uri)

# -------------------------------------------------
# Retrieve and filter schedules
# -------------------------------------------------
schedules = client.schedules.list()

# optional: filter schedules based on name containing substring:
selected_schedules = [
    schedule
    for schedule in schedules
    if "inference_pipelin" in schedule.name
]

# -------------------------------------------------
# Get schedules that have *at least* one job (not one run) completed
# -------------------------------------------------

experiment_names = [schedule.create_job.experiment_name for schedule in selected_schedules]
filter_string = " or ".join([f"(name = {x})" for x in experiment_names])
experiments = mlflow.search_experiments(filter_string=filter_string)
experiments_df = pd.DataFrame(
    {
        "experiment_id": [exp.experiment_id for exp in experiments],
        "experiment_name": [exp.name for exp in experiments],
        "schedule": selected_schedules,
    }
)
all_runs = mlflow.search_runs(
    experiment_names=experiment_names,
    filter_string="tags.mlflow.user='Jaume Amores'",
)
selected_experiments = all_runs.groupby("experiment_id")["status"].apply(lambda x: (x == "FINISHED").any())
selected_schedules = experiments_df[experiments_df["experiment_id"].isin(selected_experiments[selected_experiments].index)]["schedule"].tolist()
Reasons:
  • RegEx Blacklisted phrase (2.5): please answer the question
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jau A

79777177

Date: 2025-09-28 06:57:21
Score: 1.5
Natty:
Report link

Never change the key ! For a very simple system , this is possible , but this is not bad practice, is a disaster. Add a priority column, if the table is over 10K rows put an index on the priority column.

In case you have to enter rows in between usually , there are options like :
- priority , real number
- 2 columns , priority and subpriority and reorder from time to time.
- priority as integer but with a gap in between like every priority multiplied with 100.

There is no very simple way to solve this :( .

Reasons:
  • Blacklisted phrase (1): :(
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: detzu

79777173

Date: 2025-09-28 06:45:19
Score: 2.5
Natty:
Report link

To remove these files I simply use CCleaner. It works for me on my Windows 7 system.

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Willem Grooters

79777159

Date: 2025-09-28 06:18:13
Score: 4
Natty:
Report link

Check out this, it's still in development, but it covers many of the points needed

https://www.npmjs.com/package/expo-media-control

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jum'ah Safarty

79777148

Date: 2025-09-28 05:57:08
Score: 1
Natty:
Report link

https://pub.dev/packages/extended_image is a better more up to date package
it has all features of CachedNetworkImage and even more.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Starts with a question (0.5): is a
  • High reputation (-1):
Posted by: Khaled

79777137

Date: 2025-09-28 05:31:04
Score: 1
Natty:
Report link
  fd.set(
    "session",
    JSON.stringify({
      type: "realtime",
      model: "gpt-realtime",
      audio: {
        output: {
          voice: "marin",
        },
      },
    })
  )

Documentation was wrong - this fixes it
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Student

79777133

Date: 2025-09-28 05:16:01
Score: 1
Natty:
Report link

Improving app performance usually comes down to identifying bottlenecks and fixing them systematically. Some common approaches are:

In practice, the right fix depends on what your app is struggling with—UI rendering, API response time, or device-specific issues. Start with profiling, then apply optimizations where they’ll have the biggest impact.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Rishabh Sharma

79777130

Date: 2025-09-28 04:59:58
Score: 2.5
Natty:
Report link

Dos box-x the fork of the original dosbox have the debugger already compiled an reachable trough context menú on the window. Give it a try https://dosbox-x.com/

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: velteyn

79777126

Date: 2025-09-28 04:51:55
Score: 1
Natty:
Report link

Send audio output to two devices with AudioGraph in an UWP app

I realized there is no way to switch the output device without recreating the AudioGraph.

So obviously the recreating the AudioGraph is the right thing to do.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Tom Huntington

79777120

Date: 2025-09-28 04:28:51
Score: 1.5
Natty:
Report link

Xcode can't install on Linux. Xcode support only MacOS because it has need to Apple ID. But you can use vertual Mac on your pc

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Faysal Ahmed

79777109

Date: 2025-09-28 03:53:44
Score: 2
Natty:
Report link

No, you can use Direct File System Access.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Abdallah

79777108

Date: 2025-09-28 03:53:44
Score: 1
Natty:
Report link
android build.gradle file add this code

gradle.projectsEvaluated {
    project(':app') { p ->
        p.tasks.matching { it.name.startsWith('minify') && it.name.endsWith('WithR8') }.all { r8Task ->
            r8Task.dependsOn(p.tasks.named('extractProguardFiles'))
        }
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Viggo

79777106

Date: 2025-09-28 03:51:43
Score: 3.5
Natty:
Report link

I arrived to the answer while formulating this question late at night. The answer to acquire the property of a tuple is to call the argument by the tuple.get() method

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: wyvernghost

79777102

Date: 2025-09-28 03:36:41
Score: 3.5
Natty:
Report link

Review the syntax for DLookup. Particularly the criteria. You do not want to include the word "Where" nor repeat the field name that you are returning.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jim

79777093

Date: 2025-09-28 03:11:35
Score: 2.5
Natty:
Report link

I end up just using Swiperjs.

https://github.com/nolimits4web/swiper

https://swiperjs.com/demos

It supports vanilla js, React, etc. Though not built for MUI.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
Posted by: Nor.Z

79777079

Date: 2025-09-28 02:09:24
Score: 8 🚩
Natty:
Report link

Please I will keep to your community guideline please just help me on releasing my Facebook account please I have tried my possible best but there is no way they can release it to me please help me so I could recover it back😭😭😭😭🙏

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (0.5): 🙏
  • RegEx Blacklisted phrase (3): please help me
  • RegEx Blacklisted phrase (1): I will keep to your community guideline please just help me on releasing my Facebook account please I have tried my possible best but there is no way they can release it to me please
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Scott

79777071

Date: 2025-09-28 01:16:13
Score: 6.5 🚩
Natty: 4
Report link

can someone give me solution i did try to change version but still same eror of migration deployment fail

Reasons:
  • RegEx Blacklisted phrase (2.5): can someone give me solution
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): can someone give me solution i
  • Low reputation (1):
Posted by: Mysterious Moon

79777068

Date: 2025-09-28 01:04:10
Score: 1.5
Natty:
Report link

Deblobbing is the attempt to remove some of the binary blobs shipped with linux distro source code libraries.

"blobs are binary firmware,"

Uhhh... no. If a distro has firmware, something is already way wrong. Consider the HLDS - GHA2N - HH SATA DVD+/-RW DVD player. A new firmware for it was uploaded in 2013, version A103, A01. It does the following:
1. To improve of write quality ( Write strategy )
a) DVD+R DL Verbatim 8x under high temp
b) DVD-R DL MKM 8x under low temp
2. To Improve of CD-ROM readability during reliability test under high temp by adjusting tilt

That's firmware. It doesn't even run on your own cpu or OS.

All "install and run" linux distros are loaded with these binary blobs. If your system does what you want, you'd know. But, if it does something you didn't want, how do you know? What if it's exfiltrating your junk? There's almost no way to know unless you review the source code, which you cannot do unless your system was deblobbed ... in which case it probably won't run.

An example of what is removed by deblob-6.8 is the enumeration of BPF preload sources/headers: kernel/bpf/preload/iterators/iterators.bpf.c, kernel/bpf/preload/iterators/iterators.lskel-little-endian.h, and kernel/bpf/preload/iterators/iterators.lskel-big-endian.h. The sed script removes embedded eBPF programs (“light skeleton”) pinned in bpffs for debugging/introspection. It's kernel infrastructure, not device drivers. Not firmware, either. Lot's of drivers are binary blobs. There are some deblobbing scripts. They are likely to make compilation fail, but the goal is to make it not fail.

The blobs aren't firmware though.

Reasons:
  • Blacklisted phrase (1): how do you
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Jason Arthur Taylor

79777065

Date: 2025-09-28 00:48:08
Score: 2.5
Natty:
Report link

That’s a great question the tag saying “iPhone” usually just reflects the app version, not the specific device. I saw a helpful breakdown about this on https://mnpappsgames.com/ and it confirmed that the same encoder string often appears for iPads too.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: jzjzisis hejeheueu

79777061

Date: 2025-09-28 00:10:01
Score: 0.5
Natty:
Report link

I found a solution - it's because I had to play the 2nd animation after the 1st animation is done. Luckily, I already have a custom RLCallbackAction and RLWaitAction handy for this purpose. Something like this:


struct RLAggregationActionImpl: RLActionImpl {
  
  enum Aggregation {
    case group
    case sequence
  }
  
  let actions: [any RLActionImpl]
  let aggregation: Aggregation

  func createAnimation(entity: RLEntity) -> RLAnimation {
    switch aggregation {
    case .group:
      let animations = actions.map { $0.createAnimation(entity: entity) }
      return try! .group(with: animations)
    case .sequence:
      let animations = actions
        .enumerated()
        .flatMap { (i, impl) -> [RLAnimation] in
          // We can't directly pass the action to .sequence
          // Because 2 transform actions don't "Add up", likely because the animation is "inflated" when we call `entity.playAnimation`.
          // As a workaround, we have to wrap it under a callback action, which calls `runAction` when it actually needs to run the action in the sequence.
          // See:  https://stackoverflow.com/questions/79716776/in-realitykit-a-sequence-of-2-fromtobyaction-does-not-add-up-transforms
          
          let callback = RLCallbackActionImpl(duration: 0, callback: { $0.runActionImpl(impl) }) 
            .createAnimation(entity: entity)
          
          // callback happens immediately, but runAction will take duration to complete. So we need to insert a "gap" (wait action) between callbacks.
          if i+1 < actions.count {
            let wait = RLWaitActionImpl(duration: impl.duration)
              .createAnimation(entity: entity)
            return [callback, wait]
          } else {
            return [callback]
          }
        }
      
      return try! .sequence(with: animations)
    }
  }
}
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: HL666

79777058

Date: 2025-09-27 23:58:59
Score: 4
Natty:
Report link

Ah, I think I found a solution. Not sure why it was a problem, but this got it working.

First, remove all three packages entirely from my system: Scrapy, Beautiful Soup, and bs4. Scrapy was installed by Brew, and the others by pip3.

Then created a venv, activated it, then used pip3 install all three modules.

This got it working. So it was something about how the Brew installed Scrapy wasn't finding Python module installed in the pip3 installed environment.

I don't understand Python and can't explain the compatibility issue with Brew installed Python and/or Python modules.

All I can tell you is once I removed everything, then use pip3 to insteall Scrapy and the additional modules I wanted, that's what got it working.

If anyone can help explain what was going on, that would be helpful.

Reasons:
  • RegEx Blacklisted phrase (3): anyone can help
  • RegEx Blacklisted phrase (0.5): anyone can help
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: JReekes

79777044

Date: 2025-09-27 23:13:49
Score: 2
Natty:
Report link

I know this is late, but you need to call collectionView.layoutIfNedded() and this will prevent future unneeded animations.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: everest3d

79777038

Date: 2025-09-27 22:59:46
Score: 1
Natty:
Report link

The potential answer should be based on the historical data of accepted candidates.

One can frame this as ranking or recommendation problem which are common approaches. like Education, categorical, experience, numeric, resume keywords-TF-IDF/embeddings.

  1. Feature Engineering: Encode education as categories, Use experience as a numeris value and also Turn resume keywords into numbers using TF-IDF or proberbly embeddings.

  2. Model Training. Train a supervised model like neural network or XGBoost using your historical accepted date against non accepted data

  3. Ranking. Rank candidate by their their predicted probability score to get your top 10

  4. Scalability. Impute the use of simplarity search to quickly compare candidates.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: user30818063

79777006

Date: 2025-09-27 21:12:26
Score: 1
Natty:
Report link

Do you also want to copy the .git history to be copied to your new repo or only the code files?

I suppose u want to you to copy the .git history too( tags, branches, commits) , use --bare flag while cloning to get just the .git history and then use the --mirror flag while pushing to the new repo which also regenerates the code files:

git clone --bare https://github.com/owner/repo1.git
cd repo1.git 
git push --mirror https://github.com/you/repo2.git
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: devRito

79776998

Date: 2025-09-27 20:57:23
Score: 0.5
Natty:
Report link

Oh, I solved this. Maybe it is permission denied because the env is in C://ai, when I use administrator mode, it success. image

Reasons:
  • Whitelisted phrase (-2): I solved
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: 謝咏辰

79776987

Date: 2025-09-27 20:41:19
Score: 0.5
Natty:
Report link
Soo after almost 7 Hours Non stop if found the permanent solution.

1.  Open your generated Unity-iPhone.xcworkspace in Xcode.
    2.  In the left sidebar, click on the UnityFramework target.
    3.  At the top, select the Build Settings tab.
    4.  In the search bar, type: Other Linker Flags
and delete these 2 From all the dubug release etc etc

* Removed -ld_classic
* Removed -weak-lSystem (because it’s invalid)


now clean project 


and now 


||1.|Select UnityFramework target.|
|---|---|---|
||2.|Go to Build Settings.|
||3.|In the search bar at the top, type Framework Search Paths.|




add these 4

$(inherited)
$(PROJECT_DIR)/Frameworks/com.ptc.vuforia.engine/Vuforia/Plugins/iOS
$(PROJECT_DIR)/Pods/Google-Mobile-Ads-SDK/Frameworks/**
$(PROJECT_DIR)/Pods/Firebase/Frameworks/**

If you found this usefull please 

just download my app and give me full rating

https://apps.apple.com/pk/app/stickar-ar-stickers-gifs/id6497066147
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Osman Ahsan Sheikh

79776975

Date: 2025-09-27 20:13:14
Score: 2
Natty:
Report link

Using the net/http https://pkg.go.dev/net/http#CrossOriginProtection available from Go 1.25, I was able to properly set up deterrence against CSRF in a manner that solves my problem.

Only trusted origins are allowed to make requests to my API and since all modern browsers send Origin, Referer as well as Sec-Fetch-Site headers, this means the threat is mitigated.

The only concession is older browsers are not supported, but in truth, my use case does not need to support pre-2010 browsers - upgrade your browsers!

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Biobele Johnbull

79776966

Date: 2025-09-27 19:51:09
Score: 3.5
Natty:
Report link

You can try downgrading and try it if that helps

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Iam Him

79776956

Date: 2025-09-27 19:10:00
Score: 1.5
Natty:
Report link

This is an unresolved issue in ASP.NET which was first reported in 2019:

There is a workaround which allows '___' (triple underscore) to be used instead of '.' (link)

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: asynts

79776955

Date: 2025-09-27 19:10:00
Score: 2
Natty:
Report link

To persist Google login across sessions in Flutter using InAppWebView, you need to manually manage cookies. Use CookieManager().getCookies() after login to store relevant cookies, then restore them with CookieManager().setCookie() on the next app launch before loading the Google login page. Also, make sure thirdPartyCookiesEnabled is set to true. This helps avoid the dreaded CookieMismatch issue.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ben Cutting

79776953

Date: 2025-09-27 19:02:58
Score: 2
Natty:
Report link

I put

<i class="fab fa-whatsapp"></i>

OK
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alexsandro Bezerra

79776921

Date: 2025-09-27 17:45:42
Score: 1
Natty:
Report link

yes , thinking of using a randomly generated number and then encoding it would be a great idea at first, but lets say a base62 encoded string of length 6 would have 54B combinations of strings but when we try to generate a random number and then encode it (saying 1000 rps) the collision rate is around 880k strings which can be an issue and require the service to double check the availability of the shortened string/url.

So, rather using a counter which avoids re checking the db for availability but has some security issues, and finally the bijectibve function does a one to one mapping using the id of the url in db and then base encoding and when retrieving it does inverse function to retrieve the long url, in both cases it l saves us time not checking the db for collision check.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: golthi rithvik

79776913

Date: 2025-09-27 17:32:39
Score: 5.5
Natty:
Report link

Solution currently being discussed at: https://github.com/jestjs/jest/issues/15837

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Christian Siqueira

79776909

Date: 2025-09-27 17:25:37
Score: 2.5
Natty:
Report link

/*

This is a stand alone bypass made by Apxaey. Feel free to use this in your cheats but credit me for the bypass as i put alot of time into this.

If you have some brain cells you will be able to incorporate this into your cheats and remain undetected by user-mode anticheats.

Obviously standard cheat 'recommendations' still apply:

1.) Use self-written or not signatured code

2.) Dont write impossible values

3.) If your going internal use a manual map injector

If you follow the guidelines above and use this bypass you will be safe from usermode anticheats like VAC.

Obviously you can build and adapt upon my code to suit your needs.

If I was to make a cheat for myself i would put this bypass into something i call an 'external internal' cheat.

Whereby you make a cheat and inject into a legitimate program like discord and add a check to the this bypass to only hijack a handle from the process you inject into, giving the appearence that nothing is out of the ordinary

However you can implement this bypass into any form of cheat, its your decision.

If you need want some more info i recommend you watch my YT video on this bypass.

Anyways if you want to see more of my stuff feel free to join my discord server https://discord.gg/GVyENvk. Here's my YT as well https://www.youtube.com/channel/UCPN6OOLxn1OaBP5jPThIiog.

*/

#include <Windows.h>

#include <iostream>

#include <TlHelp32.h>

#include <string>

#include "main.h"

//simple function i made that will just initialize our Object_Attributes structure as NtOpenProcess will fail otherwise

OBJECT_ATTRIBUTES InitObjectAttributes(PUNICODE_STRING name, ULONG attributes, HANDLE hRoot, PSECURITY_DESCRIPTOR security)

{

OBJECT_ATTRIBUTES object;

object.Length = sizeof(OBJECT_ATTRIBUTES);

object.ObjectName = name;

object.Attributes = attributes;

object.RootDirectory = hRoot;

object.SecurityDescriptor = security;

return object;

}

SYSTEM_HANDLE_INFORMATION* hInfo; //holds the handle information

//the handles we will need to use later on

HANDLE procHandle = NULL;

HANDLE hProcess = NULL;

HANDLE HijackedHandle = NULL;

//basic function i made that will get a proccess id from a binary name, you dont have to use it. It needs some rework but for now it gets the job done.

DWORD GetPID(LPCSTR procName)

{

//create a process snapshot

HANDLE hSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, false);

if (hSnap && hSnap != INVALID_HANDLE_VALUE) //check the snapshot succeded

{

    PROCESSENTRY32 procEntry;

    //zero the memory containing the file names

    ZeroMemory(procEntry.szExeFile, sizeof(procEntry.szExeFile)); 

    //repeat the loop until a name matches the desired name

        do

        {

            if (lstrcmpi(procEntry.szExeFile, procName) == NULL) {

                return procEntry.th32ProcessID;

                CloseHandle(hSnap);

            }

        } while (Process32Next(hSnap, &procEntry));

    

}

}

bool IsHandleValid(HANDLE handle) //i made this to simply check if a handle is valid rather than repeating the if statments

{

if (handle && handle != INVALID_HANDLE_VALUE)

{

    return true;

}

else

{

    return false;

}

}

void CleanUpAndExit(LPSTR ErrorMessage) //just a function to clean up and exit.

{

delete\[\] hInfo;

procHandle ? CloseHandle(procHandle) : 0;



std::cout \<\< ErrorMessage \<\< std::endl;

    

system("pause");

}

HANDLE HijackExistingHandle(DWORD dwTargetProcessId)

{

 HMODULE Ntdll = GetModuleHandleA("ntdll"); // get the base address of ntdll.dll

//get the address of RtlAdjustPrivilege in ntdll.dll so we can grant our process the highest permission possible

 \_RtlAdjustPrivilege RtlAdjustPrivilege = (\_RtlAdjustPrivilege)GetProcAddress(Ntdll, "RtlAdjustPrivilege");

boolean OldPriv; //store the old privileges

// Give our program SeDeugPrivileges whcih allows us to get a handle to every process, even the highest privileged SYSTEM level processes.

RtlAdjustPrivilege(SeDebugPriv, TRUE, FALSE, &OldPriv);

//get the address of NtQuerySystemInformation in ntdll.dll so we can find all the open handles on our system

 \_NtQuerySystemInformation NtQuerySystemInformation = (\_NtQuerySystemInformation)GetProcAddress(Ntdll, "NtQuerySystemInformation");

//get the address of NtDuplicateObject in ntdll.dll so we can duplicate an existing handle into our cheat, basically performing the hijacking

\_NtDuplicateObject NtDuplicateObject = (\_NtDuplicateObject)GetProcAddress(Ntdll, "NtDuplicateObject");

//get the address of NtOpenProcess in ntdll.dll so wecan create a Duplicate handle

 \_NtOpenProcess NtOpenProcess = (\_NtOpenProcess)GetProcAddress(Ntdll, "NtOpenProcess");

 //initialize the Object Attributes structure, you can just set each member to NULL rather than create a function like i did

OBJECT_ATTRIBUTES Obj_Attribute = InitObjectAttributes(NULL, NULL, NULL, NULL);



//clientID is a PDWORD or DWORD\* of the process id to create a handle to

CLIENT_ID clientID = { 0 };

//the size variable is the amount of bytes allocated to store all the open handles

DWORD size = sizeof(SYSTEM_HANDLE_INFORMATION);

//we allocate the memory to store all the handles on the heap rather than the stack becuase of the large amount of data

hInfo = (SYSTEM_HANDLE_INFORMATION\*) new byte\[size\];

//zero the memory handle info

ZeroMemory(hInfo, size);

//we use this for checking if the Native functions succeed

NTSTATUS NtRet = NULL;

do

{

    // delete the previously allocated memory on the heap because it wasn't large enough to store all the handles

    delete\[\] hInfo;

    //increase the amount of memory allocated by 50%

    size \*= 1.5;

    try

    {

        //set and allocate the larger size on the heap

        hInfo = (PSYSTEM_HANDLE_INFORMATION) new byte\[size\];

    }

    catch (std::bad_alloc) //catch a bad heap allocation.

    {

        CleanUpAndExit("Bad Heap Allocation");

    }

    Sleep(1); //sleep for the cpu

    //we continue this loop until all the handles have been stored

} while ((NtRet = NtQuerySystemInformation(SystemHandleInformation, hInfo, size, NULL)) == STATUS_INFO_LENGTH_MISMATCH);

//check if we got all the open handles on our system

if (!NT_SUCCESS(NtRet))

{

    CleanUpAndExit("NtQuerySystemInformation Failed");

}

//loop through each handle on our system, and filter out handles that are invalid or cant be hijacked

for (unsigned int i = 0; i \< hInfo-\>HandleCount; ++i)

{

    //a variable to store the number of handles OUR cheat has open.

    static DWORD NumOfOpenHandles; 

    //get the amount of outgoing handles OUR cheat has open

    GetProcessHandleCount(GetCurrentProcess(), &NumOfOpenHandles);

    //you can do a higher number if this is triggering false positives. Its just to make sure we dont fuck up and create thousands of handles

    if (NumOfOpenHandles \> 50)

    {

        CleanUpAndExit("Error Handle Leakage Detected"); 

    }

    //check if the current handle is valid, otherwise increment i and check the next handle

    if (!IsHandleValid((HANDLE)hInfo-\>Handles\[i\].Handle)) 

    {

        continue;

    }

    //check the handle type is 0x7 meaning a process handle so we dont hijack a file handle for example

    if (hInfo-\>Handles\[i\].ObjectTypeNumber != ProcessHandleType)

    {

        continue;

    }

    

    //set clientID to a pointer to the process with the handle to out target

    clientID.UniqueProcess = (DWORD\*)hInfo-\>Handles\[i\].ProcessId;

    //if procHandle is open, close it

    procHandle ? CloseHandle(procHandle) : 0;

    //create a a handle with duplicate only permissions to the process with a handle to our target. NOT OUR TARGET.

    NtRet = NtOpenProcess(&procHandle, PROCESS_DUP_HANDLE, &Obj_Attribute, &clientID);

    if (!IsHandleValid(procHandle) || !NT_SUCCESS(NtRet)) //check is the funcions succeeded and check the handle is valid

    {

        continue;

    }

    //we duplicate the handle another process has to our target into our cheat with whatever permissions we want. I did all access.

    NtRet = NtDuplicateObject(procHandle, (HANDLE)hInfo-\>Handles\[i\].Handle, NtCurrentProcess, &HijackedHandle, PROCESS_ALL_ACCESS, 0, 0);

    if (!IsHandleValid(HijackedHandle) || !NT_SUCCESS(NtRet))//check is the funcions succeeded and check the handle is valid

    {

        

        continue;

    }
        //get the process id of the handle we duplicated and check its to our target
    if (GetProcessId(HijackedHandle) != dwTargetProcessId) {

        CloseHandle(HijackedHandle);

        continue;

    }



    hProcess = HijackedHandle;



    break;

}





CleanUpAndExit("Success");

return hProcess;

}

smali
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.10.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.5/angular.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/2.1.0/knockout-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.2/react.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/0.14.2/react-dom.min.js"></script>

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (2): fuck
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Gilmar Carvalho

79776907

Date: 2025-09-27 17:11:34
Score: 0.5
Natty:
Report link
  1. Create a unique folder in the iOS Simulator's Files app (under "On My iPhone")

  2. Find the folder on your Mac using:

bash

   find ~/Library/Developer/CoreSimulator/Devices/ -name "your_folder_name"
  1. Copy your files directly to the found directory
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Polyariz

79776905

Date: 2025-09-27 17:05:32
Score: 0.5
Natty:
Report link

... here now follow the classes for the ChainCode, add them to your project

(Code for the WinForm in the last answer):

Make sure, you reference the following namespaces:

using System.Collections;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.Runtime.InteropServices;
    //    This class implements a chaincode finder (crack code), as an adaption of 
    //    V. Kovalevsky's crack-code development.  
    //    (PLEASE NOTE THAT THESE ARE *NOT* HTTPS CONNECTIONS! It's an old web-site.)
    //       http://www.miszalok.de/Samples/CV/ChainCode/chain_code.htm and
    //       http://www.miszalok.de/Lectures/L08_ComputerVision/CrackCode/CrackCode_d.htm (german only). See also
    //       http://www.miszalok.de/Samples/CV/ChainCode/chaincode_kovalev_e.htm
    //As the name crackcode says, we are moving on the (invisible) "cracks" in between the pixels to find the outlines of objects

    //Please note that I dont use the /unsafe switch and byte-pointers, since I dont know, whether you are allowed to use that in your code...
    public class ChainFinder
    {
        private int _threshold = 0;
        private bool _nullCells = false;
        private Point _start = new Point(0, 0);
        private int _height = 0;

        public bool AllowNullCells
        {
            get
            {
                return _nullCells;
            }
            set
            {
                _nullCells = value;
            }
        }

        public List<ChainCode>? GetOutline(Bitmap bmp, int threshold, bool grayscale, int range, bool excludeInnerOutlines, int initialValueToCheck, bool doReverse)
        {
            BitArray? fbits = null; //Array to hold the information about processed pixels
            _threshold = threshold;
            _height = bmp.Height;

            try
            {
                List<ChainCode> fList = new List<ChainCode>();

                //Please note that the bitarray is one "column" larger than the bitmap's width
                fbits = new BitArray((bmp.Width + 1) * bmp.Height, false);

                //is the condition so, that the collected coordinate's pixel/color channel values are greater than the threshold,
                //or lower (then use the reversed switch, maybe with an approppriate initial value set)
                if (doReverse)
                    FindChainCodeRev(bmp, fList, fbits, grayscale, range, excludeInnerOutlines, initialValueToCheck);
                else
                    FindChainCode(bmp, fList, fbits, grayscale, range, excludeInnerOutlines, initialValueToCheck);

                return fList;
            }
            catch /*(Exception exc)*/
            {
                if (fbits != null)
                    fbits = null;
            }

            return null;
        }

        // PLEASE NOTE THAT THIS IS *NOT* A HTTPS CONNECTION! It's an old web-site.
        // Adaption von Herrn Prof. Dr.Ing. Dr.med. Volkmar Miszalok, siehe: http://www.miszalok.de/Samples/CV/ChainCode/chain_code.htm
        private void FindChainCode(Bitmap b, List<ChainCode> fList, BitArray fbits, bool grayscale, int range, bool excludeInnerOutlines, int initialValueToCheck)
        {
            SByte[,] Negative = new SByte[,] { { 0, -1 }, { 0, 0 }, { -1, 0 }, { -1, -1 } };
            SByte[,] Positive = new SByte[,] { { 0, 0 }, { -1, 0 }, { -1, -1 }, { 0, -1 } };

            Point LeftInFront = new Point();
            Point RightInFront = new Point();
            bool LeftInFrontGreaterTh;
            bool RightInFrontGreaterTh;
            int direction = 1;

            BitmapData? bmData = null;

            //if (!AvailMem.AvailMem.checkAvailRam(b.Width * b.Height * 4L))
            //    return;

            try
            {
                bmData = b.LockBits(new Rectangle(0, 0, b.Width, b.Height), ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb);
                int stride = bmData.Stride;

                //copy the BitmapBits to a byte-array for processing
                byte[]? p = new byte[(bmData.Stride * bmData.Height) - 1 + 1];
                Marshal.Copy(bmData.Scan0, p, 0, p.Length);

                while (start_crack_search(bmData, p, fbits, grayscale, range, initialValueToCheck))
                {
                    //setup and add the first found pixel to our results list
                    ChainCode cc = new ChainCode();

                    cc.start = _start;
                    // cc.Coord.Add(_start)

                    int x = _start.X;
                    int y = _start.Y + 1;
                    direction = 1;

                    cc.Chain.Add(direction);

                    //as long as we have not reached the starting pixel again, do processing steps
                    while (x != _start.X || y != _start.Y)
                    {
                        LeftInFront.X = x + Negative[direction, 0];
                        LeftInFront.Y = y + Negative[direction, 1];
                        RightInFront.X = x + Positive[direction, 0];
                        RightInFront.Y = y + Positive[direction, 1];

                        //add the correct pixel
                        switch (direction)
                        {
                            case 0:
                                {
                                    cc.Coord.Add(new Point(LeftInFront.X - 1, LeftInFront.Y));
                                    break;
                                }

                            case 1:
                                {
                                    cc.Coord.Add(new Point(LeftInFront.X, LeftInFront.Y - 1));
                                    break;
                                }

                            case 2:
                                {
                                    cc.Coord.Add(new Point(LeftInFront.X + 1, LeftInFront.Y));
                                    break;
                                }

                            case 3:
                                {
                                    cc.Coord.Add(new Point(LeftInFront.X, LeftInFront.Y + 1));
                                    break;
                                }
                        }

                        //now do the core algorithm steps, description above
                        LeftInFrontGreaterTh = false;
                        RightInFrontGreaterTh = false;

                        if (LeftInFront.X >= 0 && LeftInFront.X < b.Width && LeftInFront.Y >= 0 && LeftInFront.Y < b.Height)
                        {
                            if (!grayscale)
                                LeftInFrontGreaterTh = p[LeftInFront.Y * stride + LeftInFront.X * 4 + 3] > _threshold;
                            else if (range > 0)
                                LeftInFrontGreaterTh = ((p[LeftInFront.Y * stride + LeftInFront.X * 4] > _threshold) && (p[LeftInFront.Y * stride + LeftInFront.X * 4] <= _threshold + range));
                            else
                                LeftInFrontGreaterTh = p[LeftInFront.Y * stride + LeftInFront.X * 4] > _threshold;
                        }

                        if (RightInFront.X >= 0 && RightInFront.X < b.Width && RightInFront.Y >= 0 && RightInFront.Y < b.Height)
                        {
                            if (!grayscale)
                                RightInFrontGreaterTh = p[RightInFront.Y * stride + RightInFront.X * 4 + 3] > _threshold;
                            else if (range > 0)
                                RightInFrontGreaterTh = ((p[RightInFront.Y * stride + RightInFront.X * 4] > _threshold) && (p[RightInFront.Y * stride + RightInFront.X * 4] <= _threshold + range));
                            else
                                RightInFrontGreaterTh = p[RightInFront.Y * stride + RightInFront.X * 4] > _threshold;
                        }

                        //set new direction (3 cases, but only 2 of them change the direction
                        //(LeftInFrontGreaterTh + !RightInFrontGreaterTh = move straight on))
                        if (RightInFrontGreaterTh && (LeftInFrontGreaterTh || _nullCells))
                            direction = (direction + 1) % 4;
                        else if (!LeftInFrontGreaterTh && (!RightInFrontGreaterTh || !_nullCells))
                            direction = (direction + 3) % 4;

                        cc.Chain.Add(direction);

                        // fbits (always record upper pixel)
                        switch (direction)
                        {
                            case 0:
                                {
                                    x += 1;
                                    cc.Area += y;
                                    break;
                                }

                            case 1:
                                {
                                    y += 1;
                                    fbits.Set((y - 1) * (b.Width + 1) + x, true);
                                    break;
                                }

                            case 2:
                                {
                                    x -= 1;
                                    cc.Area -= y;
                                    break;
                                }

                            case 3:
                                {
                                    y -= 1;
                                    fbits.Set(y * (b.Width + 1) + x, true);
                                    break;
                                }
                        }

                        //if we finally reach the starting pixel again, add a final coord and chain-direction if one of the distance-constraints below is met.
                        //This happens always due to the setup of the algorithm (adding the coord to the ChainCode for the last set direction)
                        if (x == _start.X && y == _start.Y)
                        {
                            if (Math.Abs(cc.Coord[cc.Coord.Count - 1].X - x) > 1 || Math.Abs(cc.Coord[cc.Coord.Count - 1].Y - y) > 1)
                            {
                                if (Math.Abs(cc.Coord[cc.Coord.Count - 1].X - x) > 1)
                                {
                                    cc.Coord.Add(new Point(cc.Coord[cc.Coord.Count - 1].X + 1, cc.Coord[cc.Coord.Count - 1].Y));
                                    cc.Chain.Add(0);
                                }
                                if (Math.Abs(cc.Coord[cc.Coord.Count - 1].Y - y) > 1)
                                {
                                    cc.Coord.Add(new Point(cc.Coord[cc.Coord.Count - 1].X, cc.Coord[cc.Coord.Count - 1].Y + 1));
                                    cc.Chain.Add(1);
                                }
                                break;
                            }
                        }
                    }

                    bool isInnerOutline = false;

                    if (excludeInnerOutlines)
                    {
                        if (cc.Chain[cc.Chain.Count - 1] == 0)
                        {
                            isInnerOutline = true;
                            break;
                        }
                    }

                    //add the list to the results list
                    if (!isInnerOutline)
                    {
                        cc.Coord.Add(_start);
                        fList.Add(cc);
                    }
                }

                p = null;
                b.UnlockBits(bmData);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);

                try
                {
                    if(bmData != null)
                        b.UnlockBits(bmData);
                }
                catch
                {
                }
            }
        }

        private bool start_crack_search(BitmapData bmData, byte[] p, BitArray fbits, bool grayscale, int range, int initialValueToCheck)
        {
            int left = 0;
            int stride = bmData.Stride;

            for (int y = _start.Y; y <= bmData.Height - 1; y++)
            {
                for (int x = 0; x <= bmData.Width - 1; x++)
                {
                    if (x > 0)
                    {
                        if (!grayscale)
                            left = p[y * stride + (x - 1) * 4 + 3];
                        else
                            left = p[y * stride + (x - 1) * 4];
                    }
                    else
                        left = initialValueToCheck;

                    if (!grayscale)
                    {
                        if ((left <= _threshold) && (p[y * stride + x * 4 + 3] > _threshold) && (fbits.Get(y * (bmData.Width + 1) + x) == false))
                        {
                            _start.X = x;
                            _start.Y = y;
                            fbits.Set(y * (bmData.Width + 1) + x, true);
                            //OnProgressPlus();
                            return true;
                        }
                    }
                    else if (range > 0)
                    {
                        if ((left <= _threshold) && (p[y * stride + x * 4] > _threshold) && (p[y * stride + x * 4] <= _threshold + range) && (fbits.Get(y * (bmData.Width + 1) + x) == false))
                        {
                            _start.X = x;
                            _start.Y = y;
                            fbits.Set(y * (bmData.Width + 1) + x, true);
                            //OnProgressPlus();
                            return true;
                        }
                    }
                    else if ((left <= _threshold) && (p[y * stride + x * 4] > _threshold) && (fbits.Get(y * (bmData.Width + 1) + x) == false))
                    {
                        _start.X = x;
                        _start.Y = y;
                        fbits.Set(y * (bmData.Width + 1) + x, true);
                        //OnProgressPlus();
                        return true;
                    }
                }
            }
            return false;
        }

        // PLEASE NOTE THAT THIS IS *NOT* A HTTPS CONNECTION! It's an old web-site.
        // Adaption von Herrn Prof. Dr.Ing. Dr.med. Volkmar Miszalok, siehe: http://www.miszalok.de/Samples/CV/ChainCode/chain_code.htm
        private void FindChainCodeRev(Bitmap b, List<ChainCode> fList, BitArray fbits, bool grayscale, int range, bool excludeInnerOutlines, int initialValueToCheck)
        {
            SByte[,] Negative = new SByte[,] { { 0, -1 }, { 0, 0 }, { -1, 0 }, { -1, -1 } };
            SByte[,] Positive = new SByte[,] { { 0, 0 }, { -1, 0 }, { -1, -1 }, { 0, -1 } };

            Point LeftInFront = new Point();
            Point RightInFront = new Point();
            bool LeftInFrontGreaterTh;
            bool RightInFrontGreaterTh;
            int direction = 1;

            BitmapData? bmData = null;

            //if (!AvailMem.AvailMem.checkAvailRam(b.Width * b.Height * 4L))
            //    return;

            try
            {
                bmData = b.LockBits(new Rectangle(0, 0, b.Width, b.Height), ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb);
                int stride = bmData.Stride;

                byte[]? p = new byte[(bmData.Stride * bmData.Height) - 1 + 1];
                Marshal.Copy(bmData.Scan0, p, 0, p.Length);

                while (start_crack_searchRev(bmData, p, fbits, grayscale, range, initialValueToCheck))
                {
                    ChainCode cc = new ChainCode();

                    cc.start = _start;

                    int x = _start.X;
                    int y = _start.Y + 1;
                    direction = 1;

                    cc.Chain.Add(direction);

                    while (x != _start.X || y != _start.Y)
                    {
                        LeftInFront.X = x + Negative[direction, 0];
                        LeftInFront.Y = y + Negative[direction, 1];
                        RightInFront.X = x + Positive[direction, 0];
                        RightInFront.Y = y + Positive[direction, 1];

                        switch (direction)
                        {
                            case 0:
                                {
                                    cc.Coord.Add(new Point(LeftInFront.X - 1, LeftInFront.Y));
                                    break;
                                }

                            case 1:
                                {
                                    cc.Coord.Add(new Point(LeftInFront.X, LeftInFront.Y - 1));
                                    break;
                                }

                            case 2:
                                {
                                    cc.Coord.Add(new Point(LeftInFront.X + 1, LeftInFront.Y));
                                    break;
                                }

                            case 3:
                                {
                                    cc.Coord.Add(new Point(LeftInFront.X, LeftInFront.Y + 1));
                                    break;
                                }
                        }

                        LeftInFrontGreaterTh = false;
                        RightInFrontGreaterTh = false;

                        if (LeftInFront.X >= 0 && LeftInFront.X < b.Width && LeftInFront.Y >= 0 && LeftInFront.Y < b.Height)
                        {
                            if (!grayscale)
                                LeftInFrontGreaterTh = p[LeftInFront.Y * stride + LeftInFront.X * 4 + 3] < _threshold;
                            else if (range > 0)
                                LeftInFrontGreaterTh = ((p[LeftInFront.Y * stride + LeftInFront.X * 4] < _threshold) && (p[LeftInFront.Y * stride + LeftInFront.X * 4] >= _threshold + range));
                            else
                                LeftInFrontGreaterTh = p[LeftInFront.Y * stride + LeftInFront.X * 4] < _threshold;
                        }

                        if (RightInFront.X >= 0 && RightInFront.X < b.Width && RightInFront.Y >= 0 && RightInFront.Y < b.Height)
                        {
                            if (!grayscale)
                                RightInFrontGreaterTh = p[RightInFront.Y * stride + RightInFront.X * 4 + 3] < _threshold;
                            else if (range > 0)
                                RightInFrontGreaterTh = ((p[RightInFront.Y * stride + RightInFront.X * 4] < _threshold) && (p[RightInFront.Y * stride + RightInFront.X * 4] >= _threshold + range));
                            else
                                RightInFrontGreaterTh = p[RightInFront.Y * stride + RightInFront.X * 4] < _threshold;
                        }

                        if (RightInFrontGreaterTh && (LeftInFrontGreaterTh || _nullCells))
                            direction = (direction + 1) % 4;
                        else if (!LeftInFrontGreaterTh && (!RightInFrontGreaterTh || !_nullCells))
                            direction = (direction + 3) % 4;

                        cc.Chain.Add(direction);

                        // fbits (immer oberen punkt aufzeichnen)
                        switch (direction)
                        {
                            case 0:
                                {
                                    x += 1;
                                    cc.Area += y;
                                    break;
                                }

                            case 1:
                                {
                                    y += 1;
                                    fbits.Set((y - 1) * (b.Width + 1) + x, true);
                                    break;
                                }

                            case 2:
                                {
                                    x -= 1;
                                    cc.Area -= y;
                                    break;
                                }

                            case 3:
                                {
                                    y -= 1;
                                    fbits.Set(y * (b.Width + 1) + x, true);
                                    break;
                                }
                        }

                        if (x == _start.X && y == _start.Y)
                        {
                            if (Math.Abs(cc.Coord[cc.Coord.Count - 1].X - x) > 1 || Math.Abs(cc.Coord[cc.Coord.Count - 1].Y - y) > 1)
                            {
                                if (Math.Abs(cc.Coord[cc.Coord.Count - 1].X - x) > 1)
                                {
                                    cc.Coord.Add(new Point(cc.Coord[cc.Coord.Count - 1].X + 1, cc.Coord[cc.Coord.Count - 1].Y));
                                    cc.Chain.Add(0);
                                }
                                if (Math.Abs(cc.Coord[cc.Coord.Count - 1].Y - y) > 1)
                                {
                                    cc.Coord.Add(new Point(cc.Coord[cc.Coord.Count - 1].X, cc.Coord[cc.Coord.Count - 1].Y + 1));
                                    cc.Chain.Add(1);
                                }
                                break;
                            }
                        }
                    }

                    bool isInnerOutline = false;

                    if (excludeInnerOutlines)
                    {
                        if (cc.Chain[cc.Chain.Count - 1] == 0)
                        {
                            isInnerOutline = true;
                            break;
                        }
                    }

                    if (!isInnerOutline)
                    {
                        cc.Coord.Add(_start);
                        fList.Add(cc);
                    }
                }

                p = null;
                b.UnlockBits(bmData);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);

                try
                {
                    if (bmData != null)
                        b.UnlockBits(bmData);
                }
                catch
                {
                }
            }
        }

        private bool start_crack_searchRev(BitmapData bmData, byte[] p, BitArray fbits, bool grayscale, int range, int initialValueToCheck)
        {
            int left = 0;
            int stride = bmData.Stride;

            for (int y = _start.Y; y <= bmData.Height - 1; y++)
            {
                for (int x = 0; x <= bmData.Width - 1; x++)
                {
                    if (x > 0)
                    {
                        if (!grayscale)
                            left = p[y * stride + (x - 1) * 4 + 3];
                        else
                            left = p[y * stride + (x - 1) * 4];
                    }
                    else
                        left = initialValueToCheck;

                    if (!grayscale)
                    {
                        if ((left >= _threshold) && (p[y * stride + x * 4 + 3] < _threshold) && (fbits.Get(y * (bmData.Width + 1) + x) == false))
                        {
                            _start.X = x;
                            _start.Y = y;
                            fbits.Set(y * (bmData.Width + 1) + x, true);
                            //OnProgressPlus();
                            return true;
                        }
                    }
                    else if (range > 0)
                    {
                        if ((left >= _threshold) && (p[y * stride + x * 4] < _threshold) && (p[y * stride + x * 4] >= _threshold + range) && (fbits.Get(y * (bmData.Width + 1) + x) == false))
                        {
                            _start.X = x;
                            _start.Y = y;
                            fbits.Set(y * (bmData.Width + 1) + x, true);
                            //OnProgressPlus();
                            return true;
                        }
                    }
                    else if ((left >= _threshold) && (p[y * stride + x * 4] < _threshold) && (fbits.Get(y * (bmData.Width + 1) + x) == false))
                    {
                        _start.X = x;
                        _start.Y = y;
                        fbits.Set(y * (bmData.Width + 1) + x, true);
                        //OnProgressPlus();
                        return true;
                    }
                }
            }
            return false;
        }

        public void Reset()
        {
            this._start = new Point(0, 0);
        }
    }

    public class ChainCode
    {
        public static int F { get; set; }

        public Point start
        {
            get
            {
                return m_start;
            }
            set
            {
                m_start = value;
            }
        }
        private Point m_start;

        private List<Point> _coord = new List<Point>();
        private List<int> _chain = new List<int>();

        public List<Point> Coord
        {
            get
            {
                return _coord;
            }
            set
            {
                _coord = value;
            }
        }
        public List<int> Chain
        {
            get
            {
                return _chain;
            }
            set
            {
                _chain = value;
            }
        }

        public int Area
        {
            get
            {
                return m_Area;
            }
            set
            {
                m_Area = value;
            }
        }
        private int m_Area;
        private int _id;

        public int Perimeter
        {
            get
            {
                return _chain.Count;
            }
        }

        public int ID
        {
            get
            {
                return this._id;
            }
        }

        public void SetId()
        {
            if (ChainCode.F < Int32.MaxValue)
            {
                ChainCode.F += 1;
                this._id = ChainCode.F;
            }
            else
                throw new OverflowException("The type of the field for storing the ID reports an overflow error.");
        }

        public void ResetID()
        {
            ChainCode.F = 0;
        }

        public ChainCode()
        {
        }

        public override string ToString()
        {
            return "x = " + start.X.ToString() + "; y = " + start.Y.ToString() + "; count = " + _coord.Count.ToString() + "; area = " + this.Area.ToString();
        }
    }

Regards,
Thorsten

Reasons:
  • Blacklisted phrase (1): Regards
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Thorsten Gudera

79776891

Date: 2025-09-27 16:40:26
Score: 2.5
Natty:
Report link

SET COLOR TO W/N.N/W

mcursoff = ",N/N"

mreverse = " I "

mstablink = "w*/N "

mbrigt = "W+ /N "

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Layrence Ak Sulau

79776873

Date: 2025-09-27 16:15:20
Score: 5.5
Natty: 4.5
Report link

我也遇到同样的问题,在我删除掉这段代码后

will-change: transform

图片变得清晰无比。

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • No latin characters (3):
  • Low reputation (1):
Posted by: ton le

79776872

Date: 2025-09-27 16:13:19
Score: 4
Natty:
Report link

This is not an answer, but an observation, code seems to work fine.

I have changed the tools (to some dummy function) and model, rest is same.

enter image description here

Reasons:
  • Blacklisted phrase (1): not an answer
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: justTesting

79776865

Date: 2025-09-27 15:52:14
Score: 4
Natty:
Report link

For details on how to add a system tray icon in WinUI 3,

refer to SystemTrayWinUI3 on GitHub

Reasons:
  • Contains signature (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: MEHDIMYADI

79776860

Date: 2025-09-27 15:44:11
Score: 3
Natty:
Report link

The compiler adds padding between and after struct members to satisfy alignment requirements, so the struct’s size is larger than the sum of its member sizes.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Prathimabi Dudekula

79776856

Date: 2025-09-27 15:38:10
Score: 1
Natty:
Report link

I answer myself.

After some searching I found this page https://github.com/solana-labs/solana/issues/17325#issuecomment-844317674

Here The user "ghost" suggest:

solana-keygen recover ASK -o recov.json

This generates the .json in 64 bytes for the raw address.

With this json I could transfer to my ledger as:

solana transfer <LEDGER_ADDRESS> <SOL_AMOUNT> --from x:\solana-route\recov.json --allow-unfunded-recipient

In SOL_AMOUNT a small amount of fee must be left.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: flamengo

79776849

Date: 2025-09-27 15:22:06
Score: 1.5
Natty:
Report link

This is solved by changing

form.setSafeArea(true)

to

form.getContentPane().setSafeArea(true)

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Eric