79773466

Date: 2025-09-24 08:43:03
Score: 5.5
Natty: 5.5
Report link

Any reason why we need to temporarily clear vma->vm_pgoff?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: tamseel shams

79773453

Date: 2025-09-24 08:30:59
Score: 1.5
Natty:
Report link

I have asked the same question on Terragrunt GitHub repo issues gruntwork-io/terragrunt#4867

The issue comes from the fact that ec2 module uses a data source to get the subnet using its id. So it needs a real subnet id, not a mocked one.

Could we have a note on that question that this is being answered here so that there's a single source of truth for this?

The root cause of the error that you're getting is from the AWS provider, because you're trying to create a security group, and the data source is looking up the subnet with a mocked value. The AWS provider doesn't know that you're mocking the ID of the subnet, so you need to either disable creation of the security group, or use a different module that doesn't attempt to use that data source (or provision the VPC first).
https://github.com/terraform-aws-modules/terraform-aws-ec2-instance/blob/master/main.tf#L734

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Rafik

79773451

Date: 2025-09-24 08:29:59
Score: 1
Natty:
Report link

I found out my issue is due to my file structure and I forgot to update my `Dockerfile` to correct path for tutorial 2 (huge blunder).

My file structure

my-file-structure

Dockerfile before update:

FROM node:24.5.0

WORKDIR /app

# Wrong path!
COPY ./1-node-js-rest-server/package.json package.json
COPY ./1-node-js-rest-server/package-lock.json package-lock.json

RUN npm install

# Wrong path!
COPY ./1-node-js-rest-server/server.js .

CMD ["node","server.js"]

Dockerfile after update:

FROM node:24.5.0

WORKDIR /app

# Fixed path!
COPY ./2-database-and-compose/package.json package.json
COPY ./2-database-and-compose/package-lock.json package-lock.json

RUN npm install

# Fixed path!
COPY ./2-database-and-compose/server.js .

CMD ["node","server.js"]

After rebuilding my image, now everything works correctly.

Mongodb container data persists as expected, even after I had restarted it. mongodb databases

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Darky WC

79773437

Date: 2025-09-24 08:12:53
Score: 8.5 🚩
Natty: 5.5
Report link

I have simelar issues on my site, and in particular, coupons which are generated by a loyalty plugin.. were you able to find something?

Reasons:
  • RegEx Blacklisted phrase (3): were you able
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Pascal Tolenaar

79773435

Date: 2025-09-24 08:11:53
Score: 2
Natty:
Report link

I have used Skillioz.ai, and I find it very easy to use for recruiters while delivering faster results. The platform helps recruiters and organisations streamline the hiring process — from uploading resumes and parsing CVs to matching candidates with jobs, evaluating applicants, and tracking them effectively. It uses intelligent matching that goes beyond simple keywords, considering factors such as skill relevance, experience, and role fit.

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

79773430

Date: 2025-09-24 08:07:51
Score: 1
Natty:
Report link

Comprehensive Guide to Python Data Types

While the existing answers focus on type checking methods like isinstance() and type(), I'd like to provide a comprehensive overview of Python's main data types with practical examples and proper type checking techniques for each.

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

79773429

Date: 2025-09-24 08:05:51
Score: 0.5
Natty:
Report link

Need to set the width on columns.

The issue is that in FastReport the actual width of a cell is not taken from the cell’s Width property or from the TableObject.Width, but from the column it belongs to.
If don’t set the width on the columns, the engine uses its own values....

tableObject.Columns[0].Width = 5;
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: stef

79773427

Date: 2025-09-24 08:01:50
Score: 3.5
Natty:
Report link

Kill the already running port by process id and start again

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

79773424

Date: 2025-09-24 07:58:49
Score: 1
Natty:
Report link

It worked for me I'm using node version 20

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Whitelisted phrase (-1): It worked
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hanan

79773415

Date: 2025-09-24 07:50:47
Score: 2.5
Natty:
Report link

If you use Include Controller with a Test Fragment, JMeter may run longer since each inclusion loads and processes the fragment separately, increasing execution overhead and resource usage.

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

79773413

Date: 2025-09-24 07:49:46
Score: 1.5
Natty:
Report link

I’ve built a website where, on the first load of the home page, a banner appears along with background music that autoplays. When I scroll up, the banner slides away and the sound mutes, which works perfectly.

However, I’ve noticed that if I reload the page, the audio no longer autoplays. After a lot of research, I’ve concluded that it’s almost impossible to make audio autoplay on subsequent reloads of the same page due to browser restrictions, but it can autoplay the first time the page loads.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hasnain Riaz

79773409

Date: 2025-09-24 07:46:45
Score: 1
Natty:
Report link
Private Sub Workbook_NewSheet(ByVal Sh As Object)
    If TypeName(Sh) = "Worksheet" Then
        Sh.Cells.ColumnWidth = 35
        Sh.Range("A1") = "Sheet added " & Now()
    End If
End Sub
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sahin Skekh

79773403

Date: 2025-09-24 07:38:44
Score: 1
Natty:
Report link
const mockExit = jest.spyOn(process, 'exit').mockImplementation(() => {
    throw new Error('Boom!')
  })
  expect(myFunc(condition)).rejects.toThrow('Boom!')
  expect(mockExit).toHaveBeenCalledWith(ERROR_CODE)
  mockExit.mockRestore()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Serg

79773399

Date: 2025-09-24 07:36:43
Score: 1.5
Natty:
Report link

Late to the party, but just wanted to add this one:

$(() => { ... })

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

79773398

Date: 2025-09-24 07:35:42
Score: 1.5
Natty:
Report link
  1. Check if there is another file named db.py somewhere else in your project or Python environment that might be causing a conflict.

  2. In your export.py, add these lines to see which db.py file Python is actually importing

  3. import db

    print(db._file_)

  4. Make sure there are no circular imports — for example, db.py should not import export.py or anything that imports export.py.

  5. Restart your Streamlit app and your editor to clear any caches or old imports.

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

79773396

Date: 2025-09-24 07:34:41
Score: 1.5
Natty:
Report link

<script src="https://cdnjs.cloudflare.com/ajax/libs/react/18.3.1/umd/react.production.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/18.3.1/umd/react-dom.production.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/3.5.4/vue.global.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.5.1/knockout-latest.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/7.9.0/d3.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.8.3/angular.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Express parcel delivery

79773383

Date: 2025-09-24 07:24:38
Score: 1
Natty:
Report link

Since C++20, we now have access to std::string::starts_with.

If you intend on checking if std::string str1 starts with std::string str2, you can do the following:

if(str1.starts_with(str2))
{
  // code to execute if 
  // str1 does start with str2
}

For this specific case, it will perform better compared to std::string::find.

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

79773375

Date: 2025-09-24 07:20:37
Score: 1
Natty:
Report link

It happened to me when I accidently press the run-in debug button in android studio and then cancelled the operation very fast. Then afterwards, running the app normally generated this error.
So, what I did is, I simply restarted my system, and then opened the android studio again, and build/run the app, the app built/ran normally.

As the accepted answer suggested to stop the gradle, the gradle seems to run in the background doing some work and holding resources.

There for either you restart your system or stop the gradle with command, both will solve the problem.

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

79773373

Date: 2025-09-24 07:19:37
Score: 2.5
Natty:
Report link

try dragonwell jdk wisp2 coroutines

https://github.com/dragonwell-project/dragonwell8/wiki/Wisp-Documentation

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Scott ę··åˆē†č®ŗ

79773363

Date: 2025-09-24 07:04:33
Score: 2
Natty:
Report link
  1. If you encounter errors, check that:

    • The MIDI file exists and is not corrupted.

    • music21 is properly installed (pip show music21).

    • The file path in data_fn is correct.

  2. To visualize the MIDI file’s notation, replace show("text") with show() (requires MuseScore).

  3. To play the MIDI file, use midi_data.show('midi') (requires a MIDI player).

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Stephen njuguna

79773359

Date: 2025-09-24 07:01:32
Score: 3
Natty:
Report link

Make me 10 inch tablet for fit in screen shot show me front in center on screen 16:9 or 9: 16 aspect ratio with each side between 1,080 px and 7,680 px

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

79773354

Date: 2025-09-24 06:53:30
Score: 0.5
Natty:
Report link

Check the native procedure DBMS_SCHEDULER.EVALUATE_CALENDAR_STRING, that does what you need. The documentation has an example.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Koen Lostrie

79773348

Date: 2025-09-24 06:49:29
Score: 2
Natty:
Report link

This problem often happens in Spring Data JPA when there is a mismatch between entity field names and repository method names, or when the @Entity mapping doesn’t fully align with the database table. In Oracle, column naming is case-sensitive in certain contexts, so even a small mismatch can lead to null results. Also, remember that findById() in newer Spring Boot versions returns an Optional, so you may need to call .orElse(null) depending on your implementation.

For structured and well-organized examples, I always recommend looking at resources that present information in a clear, categorized way. One such example is Birthday Wish Friends, which, although focused on greetings, shows how clean formatting and proper structuring make content easy to follow. Applying a similar approach in your JPA repositories and entities can save you time and make debugging much simpler.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @Entity
  • Low reputation (1):
Posted by: Henry

79773328

Date: 2025-09-24 06:32:24
Score: 1
Natty:
Report link

According to bitbucket team, clikcing on "Sync Now" will merge the target (proto in your case) branch on your feature branch. Thread: https://community.atlassian.com/forums/Bitbucket-questions/What-does-quot-231-commits-behind-quot-develop-quot-Sync-now/qaq-p/2396036

Reasons:
  • Whitelisted phrase (-1): in your case
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ravi

79773326

Date: 2025-09-24 06:32:24
Score: 0.5
Natty:
Report link

You can disable the WebDAV module directly in your web.config by adding the following inside the <system.webServer> section:

<system.webServer>
  <modules>
    <remove name="WebDAVModule" />
  </modules>
</system.webServer>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Aamir Dalal

79773323

Date: 2025-09-24 06:28:23
Score: 1.5
Natty:
Report link

Problem is the order, you should write like this:

android:1="xx"
android:2="xx"
android:3="xx"
android:4="xx"
tools:replace="1, 2, 3, 4"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Abram Zhu

79773322

Date: 2025-09-24 06:28:23
Score: 3.5
Natty:
Report link

DELETE FROM PushNotification WHERE EmployeeId = 197

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

79773321

Date: 2025-09-24 06:27:23
Score: 1
Natty:
Report link

Session handling across timeframes can get tricky in Pine Script — syncing to a base timeframe and using timestamp checks instead of just session. isnew might help.

Had a similar issue in another app (Honista APK). The new version broke session flow, but the old version worked perfectly. Sometimes going back is the fix.

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

79773320

Date: 2025-09-24 06:27:23
Score: 0.5
Natty:
Report link
That error is not about your Python code — it’s a permissions / API enablement issue in Google Cloud. Even if you are ā€œAdminā€ in the project, Vertex AI needs the right APIs and service accounts enabled before a custom training job can run.

 Things to check
    1.  Enable the Vertex AI API
Go to Google Cloud Console → APIs & Services → Library and ensure:
    •   Vertex AI API (aiplatform.googleapis.com) is enabled.
    •   Cloud Storage API is also enabled (training jobs use GCS for staging).
    2.  Check the service account used for training
    •   By default, Vertex AI custom training runs under the Compute Engine default service account or a custom one you specify.
    •   That service account needs roles like:
    •   Vertex AI Administrator (roles/aiplatform.admin)
    •   Storage Admin (roles/storage.admin) or at least Storage Object Admin on your GCS bucket.
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ishwar Desai

79773308

Date: 2025-09-24 06:09:19
Score: 3
Natty:
Report link

Do you have a file inside android/app/src/main/res/xml/network_security_config.xml?
If not try once.

network_security_config.xml

<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
  <domain-config cleartextTrafficPermitted="true">
    <domain includeSubdomains="true">10.0.0.193</domain>
  </domain-config>
</network-security-config>


and then reference in AndroidManifest.xml

<application
    android:usesCleartextTraffic="true"
    android:networkSecurityConfig="@xml/network_security_config"
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
Reasons:
  • RegEx Blacklisted phrase (2.5): Do you have a
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Hrach

79773304

Date: 2025-09-24 06:03:18
Score: 2.5
Natty:
Report link

This might help someone in the future.

Known Workarounds

Move the members with [LoggerMessageAttribute] to a class library that does not contain a .XAML file and a reference to one of the packages that trigger the failure.

Source/Issue: https://github.com/dotnet/wpf/issues/9589

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

79773301

Date: 2025-09-24 05:55:16
Score: 3
Natty:
Report link

HARBI MEGA 2025

header 1 header 2
cell 1 cell 2
cell 3 cell 4
Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: mabaraka

79773299

Date: 2025-09-24 05:48:14
Score: 1
Natty:
Report link

It seems like the memfs package is required webpack-dev-middleware, but somehow it's not installed automatically. This issue will be resolved by manually installing webpack-dev-server.

npm install webpack-dev-middleware --save-dev
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ibnu Mustofa

79773296

Date: 2025-09-24 05:45:14
Score: 0.5
Natty:
Report link

When you denote the application tag like above, you depend on the leniency of the parser - correcly close with </application>, not another, empty <application/> tag.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When you
  • High reputation (-1):
Posted by: greybeard

79773293

Date: 2025-09-24 05:31:10
Score: 4
Natty: 4.5
Report link

Thanks y4cj4sul3 . Like you mentioned, the problem came from the comment.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ģ”°ķ”¼ģŠ¤

79773284

Date: 2025-09-24 05:16:07
Score: 2
Natty:
Report link

\\s+ this regular expression works when u want to skip one or more white spaces in the string
Consider you wanna store all the words in an array
u can write like this

String[] words = string.split("\\s+");

This will give all the words in the String, neglecting one or more white spaces in the string itself.

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

79773277

Date: 2025-09-24 05:04:03
Score: 1
Natty:
Report link

I found the solution right now. Go to Starlink app on your phone connected. Then Settings>Filter and select at least the "malware" level. That's it!

Reasons:
  • Whitelisted phrase (-2): I found the solution
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Pasquale

79773269

Date: 2025-09-24 04:53:00
Score: 1.5
Natty:
Report link
icmp6[icmp6type] == icmp6-routeradvert
Reasons:
  • Low length (2):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Konstantin Glukhov

79773261

Date: 2025-09-24 04:34:56
Score: 3
Natty:
Report link

This has been resolved.

The business_management permission now allows you to manage Facebook pages even if you don't have a business account role linked to the app.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: čµ¤ęœØč‹±åø

79773253

Date: 2025-09-24 04:14:52
Score: 1
Natty:
Report link

sqlcmd can’t always resolve (localdb)\MSSQLLocalDB because LocalDB uses a dynamic pipe name. From your output:

np:\\.\pipe\LOCALDB#8DB1A806\tsql\query

Try connecting with the full pipe path:

sqlcmd -S "np:\\.\pipe\LOCALDB#8DB1A806\tsql\query" -E

If that works, the issue is usually:

  1. Old sqlcmd version – update to the latest SQL Server Command Line Utilities (2022).

  2. Wrong executable in PATH – run where sqlcmd to check.

SSMS resolves LocalDB automatically, but older sqlcmd often does not.

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): can
  • Low reputation (1):
Posted by: Ajin Aniyan

79773251

Date: 2025-09-24 04:06:50
Score: 5.5
Natty: 5.5
Report link

so , change the app icon is only option for that ?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: vani jain

79773241

Date: 2025-09-24 03:45:45
Score: 1.5
Natty:
Report link

Splitting the tail from the arrow and controlling the curve via points yields better results.

Matplotlib's FancyArrowPatch implementation is interface-oriented rather than coordinate-based (as seen in the source code, it selects rendering positions for quadratic BƩzier curve drawing). By imitating its approach, quadratic BƩzier curves can be drawn at the coordinate level.

For the arrowhead, I referenced the approach from https://github.com/matplotlib/matplotlib/issues/17284, which offers greater control. I selected the -|> arrow style over Simple because it provides better visual results when line widths are small.

My blog post discusses this topic in greater detail: https://omnisyr.github.io/post/%3B%3B%3BeNon-Solid%20Curves%20with%20Arrows%20in%20Matplotlib%3B%3B%3Be%3B%3B%3BcMatplotlib-zhong-dai-jian-tou-de-fei-shi-qu-xian-%3B%3B%3Bc.html

import math

import matplotlib.patches as patches
import matplotlib.pyplot as plt
import matplotlib.transforms as transforms
import numpy as np

def add_arrow(from_, to_, rad=0.3, control_=None, color='#515151',
              line='--', head_length=0.6, size=0.04, detail=False):
    """
    :param from_:Starting point
    :param to_:Target endpoint
    :param rad:Curve radius
    :param control_:Control points;
                    if None, calculated based on the curvature of the curve.
    :param color:Drawing colors
    :param line:Curve Style
    :param head_length:Arrow size
    :param size:Mask Size
    :param detail:Select whether to draw details,
                  and manually adjust the mask size by drawing details.
    """
    if control_ is None:
        x1, y1 = np.array(from_)
        x2, y2 = np.array(to_)
        dx, dy = x2 - x1, y2 - y1
        x12, y12 = (x1 + x2) / 2., (y1 + y2) / 2.
        cx, cy = x12 + rad * dy, y12 - rad * dx
        control_ = (cx, cy)
    vertices = [from_, control_, to_]
    codes = [patches.Path.MOVETO, patches.Path.CURVE3, patches.Path.CURVE3]
    path = patches.Path(vertices, codes)
    patch = patches.PathPatch(path, facecolor='none', edgecolor=color,
                              linestyle=line, linewidth=1, zorder=-2)
    ax.add_patch(patch)
    direction = -1 if control_[0] < to_[0] else 1
    mask_c = 'red' if detail else 'white'
    mask = patches.FancyBboxPatch(
        (to_[0], to_[1] - size / 2), direction * size, size, boxstyle="square, pad=0",
        ec=mask_c, fc=mask_c, zorder=-1, linewidth=1)
    de = math.degrees(math.atan((control_[1] - to_[1]) / (control_[0] - to_[0])))
    tf = transforms.Affine2D().rotate_deg_around(to_[0], to_[1], de) + ax.transData
    mask.set_transform(tf)
    ax.add_patch(mask)
    ax.annotate("", to_, xytext=control_, arrowprops=dict(
        linewidth=0,
        arrowstyle="-|>, head_width=%f, head_length=%f" % (head_length / 2, head_length),
        shrinkA=0, shrinkB=0, facecolor=color, linestyle="solid", mutation_scale=10
    ))
    if not detail:
        return
    ax.scatter(control_[0], control_[1], c=color, marker='x', s=12, linewidths=0.8)
    ax.scatter(from_[0], from_[1], c=color, marker='x', s=12, linewidths=0.8)
    ax.scatter(to_[0], to_[1], c=color, marker='x', s=12, linewidths=0.8)
    ax.plot((control_[0], from_[0]), (control_[1], from_[1]),
            color=color, linewidth=.5, linestyle=':')
    ax.plot((control_[0], to_[0]), (control_[1], to_[1]),
            color=color, linewidth=.5, linestyle=':')

def draw_eg():
    debug = False
    add_arrow((0.1, 0.1), (1.5, 1.6), rad=0.1, color=colors[1], detail=debug)
    add_arrow((0.4, 1.7), (1.4, 0.7), rad=0.8, color=colors[2], detail=debug)
    add_arrow((1.9, 1.9), (1.2, 0.1), rad=-0.2, color=colors[3], detail=debug)
    add_arrow((1.7, 0.7), (0.3, 1.8), rad=0.5, color=colors[4], detail=debug)
    plt.savefig('arrow_example%s.png' % ('_detail' if debug else ''), dpi=600)

fig, ax = plt.subplots(1, 1, figsize=(4, 4))
ax.set_xlim(0, 2)
ax.set_ylim(0, 2)
colors = ['#515151', '#CC9900', '#B177DE', '#37AD6B', '#1A6FDF']
draw_eg()

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: OmnisyR

79773237

Date: 2025-09-24 03:42:42
Score: 7.5 🚩
Natty: 5
Report link

Is there a solution for this requirement as I am trying the same now there is no AWS in build functionality to auto fetch when new secrets updated.

Reasons:
  • Blacklisted phrase (1): I am trying the same
  • Blacklisted phrase (3): Is there a solution
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Is there a solution for this
  • Low reputation (1):
Posted by: Saravanan B

79773236

Date: 2025-09-24 03:42:42
Score: 2.5
Natty:
Report link

Sounds like you’re in a GIF pickle! I feel your pain with the bandwidth woes. Maybe try converting those GIFs to frames first? It could save you some headaches. Check this out for converting GIFs if you're curious: <a href="https://giftoframes.com" target="_blank">Gif To Frames</a>
https://removeduplicatesexcel.net

https://mlaformatheader.com/

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: basu lee

79773233

Date: 2025-09-24 03:33:40
Score: 1
Natty:
Report link

As you have used PERSONAL ACCESS TOKEN so you should not use password.

you should us authMode = token and user = your Token Value.

You may try with this JDBC string

String jdbcUrl = "jdbc:dremio:direct=sql.dremio.cloud:443;" + "ssl=true;" + "project_id=" + PROJECT_ID + ";" + "authMode=$token;" + "user=" + PAT + ";";

Please let us know whether it solved your problem or not.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please let us know
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: TanvirChowdhury

79773226

Date: 2025-09-24 03:12:36
Score: 1
Natty:
Report link

Thank you all. I had a couple of issues.

  1. I removed the explicit Identifiable declaration on the Event to not add confusion

  2. I rewrote my main as

    @main
    struct PeriodTrackerApp: App {
        var body: some Scene {
            WindowGroup {
                StartTabView()
                    .modelContainer(for: [
                        Event.self,
                        Stats.self
                    ])
            }
        }
    }
    

3. I had to delete and re-install the app on my phone. I think I had a stale data that was causing issues

I can get the app to run on HW now

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Open-Analysis

79773222

Date: 2025-09-24 02:40:29
Score: 3
Natty:
Report link

Indeed, $i^i$ is not a unique solution; its solutions are given by $e^{-\frac{1}{2}\pi+2N\pi}, where N\in\mathbb{Z}$.

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

79773221

Date: 2025-09-24 02:36:27
Score: 10
Natty: 7.5
Report link

I encountered a similar issue. Did you solve the problem?

Reasons:
  • RegEx Blacklisted phrase (3): Did you solve the problem
  • RegEx Blacklisted phrase (1.5): solve the problem?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Yixuan Sun

79773219

Date: 2025-09-24 02:26:25
Score: 1.5
Natty:
Report link

I couldn't see I was checking session instead of err which inevitably would run log.Fatal

 session, err := client.NewSession()
    if session != nil {
        log.Fatalf("Unable to create a session %v", err)
    }

My code should have actually check err instead like this:

 session, err := client.NewSession()
    if err != nil {
        log.Fatalf("Unable to create a session %v", err)
    }

The credit for this answer goes to @Mr_Pink

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Mr_Pink
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: wavesinaroom

79773217

Date: 2025-09-24 02:11:22
Score: 3.5
Natty:
Report link

U can try this usefull online tool(https://png2apng.wavesfuture.com/) to make a apng motion files

Reasons:
  • Whitelisted phrase (-1): try this
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Matt Hang

79773214

Date: 2025-09-24 01:50:18
Score: 1.5
Natty:
Report link

Install a browser extension that replaces web-page emojis with Twemoji (or another emoji set that includes flags).

Example: Twemoji for Chrome (or Emoji Swap) — installs web fonts that render flags.

Chrome Web Store

Restart the browser.

Open the site where flags were missing — they should now show as colored flags (Twemoji supports country flags).

If one site still shows letters, it may be using embedded images or its own emoji renderer — browser extension won't fix that specific app.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Anusha Reddy

79773201

Date: 2025-09-24 01:16:11
Score: 4
Natty:
Report link

my_int = myseries["Element"].astype(int)

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Troy West

79773199

Date: 2025-09-24 01:14:09
Score: 0.5
Natty:
Report link

I had a similar need to handle some long filenames that actually sorted a field embedded near the end of the name. Since the sort key was at the end, it's a lot nicer to have it lined up.

Since, if you want to do something once, you probably want to do it again, here's a shell function that solved the immediate problem:

rjust ()
{
    local line;
    local cols=${COLUMNS:-$(tput cols)};
    while IFS= read -r line; do
        printf "% ${cols}s\n" "${line}";
    done
}  

It is pure shell, unless ${COLUMNS} is not set automatically. You can also override it from the CLI in case you don't want it slammed all the way to the right edge of a wide terminal window:

ls | COLUMNS=80 rjust

In coming up with the above, I also realized that modern versions of column(1) command include in most linux distros can also solve the same problem. Here's the aforementioned filenames sorted by an embedded timestamp and right justified using the abbreviated equivalent of column --table --table-column right:

$ ls *.??? | sort -t. -k4 | column -tC right | head

     PowerCycleTest.SG2v1-sn0314fd-wan-cfg7-man3.0s-atfpy.Sep21221944.csv
         VerboseLog.SG2v1-sn0314fd-wan-cfg7-man3.0s-atfpy.Sep21221944.txt
    VerboseLog.SG2v1-sn0314fe-wan-cfg8-man3.0s-atfpy-100x.Sep22022427.txt
PowerCycleTest.SG2v1-sn0314fd-wan-cfg7-man3.0s-atfpy-10xb.Sep22141040.csv
    RebootTest.SG2v1-sn0314fd-wan-cfg7-man3.0s-atfpy-10xb.Sep22141040.csv
          Test.SG2v1-sn0314fd-wan-cfg7-man3.0s-atfpy-10xb.Sep22141040.csv
    VerboseLog.SG2v1-sn0314fd-wan-cfg7-man3.0s-atfpy-10xb.Sep22141040.txt
PowerCycleTest.SG2v1-sn0314fe-wan-cfg8-man6.0s-atfpy-10xb.Sep23110134.csv
    RebootTest.SG2v1-sn0314fe-wan-cfg8-man6.0s-atfpy-10xb.Sep23110134.csv
Reasons:
  • Blacklisted phrase (1): ???
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ubergeek

79773192

Date: 2025-09-24 00:58:06
Score: 1.5
Natty:
Report link

The problem is MSSQL password complexity. I have spent 4hrs trying to resolve the same issue but later found that if you sa password does not meet the minimum password requirement policy, authentication will fail. In my case, Your password must include at least (2 numeric values),(2 uppercase letters)(2 special char) and other letters.

- https://learn.microsoft.com/en-us/sql/relational-databases/security/password-policy?view=sql-server-ver17

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

79773167

Date: 2025-09-23 23:59:45
Score: 1
Natty:
Report link

If you are using OSX (or any unix system) and Cursor (not VScode), try: killall Cursor.

Pay attention to the case sensitivity of "Cursor".

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

79773138

Date: 2025-09-23 22:52:30
Score: 2
Natty:
Report link

This may have changed in a recent update, but as of September 2025 you can go to the Variables pane in the Run and Debug sidebar, right-click the variable you need, and select 'Copy Value'. This will copy the full value of the string to the clipboard rather than the truncated value shown by the UI.

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

79773136

Date: 2025-09-23 22:48:29
Score: 0.5
Natty:
Report link

Strictly speaking, you can't verify that the user actually has push notifications turned on. The Banno Digital Toolkit doesn't offer any mechanism to make that determination.

Also strictly speaking, the user gets to choose which 'channels' they want to use for receiving alerts (email, push, SMS). See https://jackhenry.dev/open-api-docs/consumer-api/api-reference/v0/alerts/details/

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Jaime Lopez Jr.

79773133

Date: 2025-09-23 22:46:28
Score: 1
Natty:
Report link

When using --fake-initial, only the initial migrations are marked as fake in the django_migrations table. Therefore, you should use --fake instead if you want to fake non-initial migrations.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When
Posted by: Milad Hatami

79773129

Date: 2025-09-23 22:39:27
Score: 2
Natty:
Report link

Unfortunately, the deeplink parameter is not actually supported in POST /a/mobile/api/v0/institutions/{institutionId}/users/{userId}/alert/send/generic.

We can update our docs to make this more apparent / clear.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jaime Lopez Jr.

79773121

Date: 2025-09-23 22:30:25
Score: 1
Natty:
Report link

I had a similar problem and ran across this. This may not work for everyone, but I did this to avoid the problem altogether:

    mystrings := []string{"ay", "bee", "see"}
    longstr := strings.Join(mystrings, "\n")

    bytes := []byte(longstr)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Larry

79773105

Date: 2025-09-23 21:57:17
Score: 1.5
Natty:
Report link

Cherrak Houari Lion d'or commerƧant algƩrien et tout le monde

header 1 header 2
cell 1 cell 2
cell 3 cell 4

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

79773104

Date: 2025-09-23 21:54:16
Score: 4.5
Natty: 7
Report link

Have you taken a shit in your PC? Cuz it smells like crap

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Janne

79773101

Date: 2025-09-23 21:52:16
Score: 1
Natty:
Report link

You followed the right steps. I have found that sometimes retrying it works, but if it keeps failing, you may have to authenticate with a username and a token (you can generate one from the old repo).

Also what's the difference between importing the repo vs forking the old one

Forking a repo is creating a personal copy but with link to the original repo, this way you can make changes on yours safely.
Importing does this but without pointing to the original.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Chris Josh

79773100

Date: 2025-09-23 21:50:15
Score: 1
Natty:
Report link

After fighting with this for a while I finally reached a partial solution. First I managed to connect the server that runs on my remote linux machine with the emulator in my windows workstation. To do that I opened a reverse ssh tunnel from windows to linux, I changed the default port so it doesn’t collide. For example:

ssh -o ExitOnForwardFailure=yes `
  -R 127.0.0.1:15037:127.0.0.1:5037 user@your-remote

enter image description here

Then on the linux machine I modified the environment variable that tells adb which port to use. At this point if I run adb devices I should be able to see the emulator from my local windows machine listed on the remote linux side.

adb kill-server
export ADB_SERVER_SOCKET=tcp:127.0.0.1:15037
adb devices

enter image description here

Since dioxus needs to know the server url I just added this line:

server_fn::client::set_server_url("http://localhost:8080");

With this I already got the app running in the windows emulator.

enter image description here

But even with this working I still hit some problems with routes and redirects. First the client running in the emulator couldn’t find the server on the linux machine.

enter image description here

To solve that I forwarded port 8080 from the remote machine:

ssh -N -L 8080:127.0.0.1:8080 user@your-remote

enter image description here

After that I was able to use the server routes, and that allowed me to start the google auth flow. The problem now is that after a successful login the browser inside the emulator tries to redirect to localhost:8080 but it cannot find that route, so this part I haven’t solved yet.

enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Manu FIC-electronica

79773099

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

typo:

gaussian = np.exp(-(x/sigma)**2/2)
should be
gaussian = np.exp(-(gx/sigma)**2/2)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dr. Saturn

79773095

Date: 2025-09-23 21:43:14
Score: 2
Natty:
Report link

It turns out in strapi v5 it’s a breaking change.
There’s a new field in every record - documentID and you have to use that instead of id. The 404 are correctly 404, you just have to use the right id.

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

79773086

Date: 2025-09-23 21:22:08
Score: 2.5
Natty:
Report link

I eventually fix it by running:

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

79773081

Date: 2025-09-23 21:20:07
Score: 1
Natty:
Report link

In Visual Studio, the Structure Visualizer option only shows up under F# settings, so there’s no separate toggle for C#.

Changing the Outlining Margin Vertical Rule only affects the outermost namespace–level line (the red lines in the screenshot). For the inner scope lines, you need to adjust the Structure Guide color instead.

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alparslan ŞEN

79773078

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

Delete everything inside C:\Users\helci.gradle\caches\ directory.

After that invalidate cashes and Restart Android Studio

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

79773064

Date: 2025-09-23 20:55:01
Score: 9.5
Natty: 7
Report link

@Anders_K @mcaniot Seems like I can't reply to your posts due to thread age. Do either of you know where I can find the documentation for this issue? I have followed both your instructions and got an image to temporarily load yesterday, but now Pepper is back to only displaying a black screen. Any help is greatly appreciated.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): Any help
  • RegEx Blacklisted phrase (3): Any help is greatly appreciated
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Anders_K
  • User mentioned (0): @mcaniot
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: LikeWater

79773060

Date: 2025-09-23 20:47:59
Score: 1.5
Natty:
Report link

You can override unwanted flags in setup.py by modifying extra_compile_args or using a custom build class. Did something similar while tweaking a 3 patti project’s build and it worked fine.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Loferialopez

79773059

Date: 2025-09-23 20:46:58
Score: 3
Natty:
Report link
<!DOCTYPE html>
<html lang="en">
<head>
    <title>Medical Research PDF Search</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Bulma CSS Framework -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
    <style>
        body { padding: 40px; }
        .match { background-color: #ffdd57; font-weight: bold; padding: 2px 4px; border-radius: 4px; }
        .box { padding: 20px; margin-bottom: 20px; }
        .title { color: #363636; }
        .notification { margin-top: 20px; }
        .hero { margin-bottom: 40px; }
        .search-results-section { margin-top: 40px; }
        .search-input-container { margin-bottom: 20px; }
        .document-card { margin-top: 20px; border-radius: 8px; }
    </style>
</head>
<body>
    <section class="hero is-primary">
        <div class="hero-body">
            <p class="title">
                Medical Research PDF Search
            </p>
            <p class="subtitle">
                Upload and search medical documents in real-time
            </p>
        </div>
    </section>

    <div class="container">
        <!-- Upload Section -->
        <div class="box">
            <h2 class="title is-4">Upload PDF Document</h2>
            <div class="field is-grouped">
                <div class="control is-expanded">
                    <div class="file has-name is-fullwidth">
                        <label class="file-label">
                            <input class="file-input" type="file" id="pdfFile">
                            <span class="file-cta">
                                <span class="file-icon"><i class="fas fa-upload"></i></span>
                                <span class="file-label">Choose a PDF…</span>
                            </span>
                            <span class="file-name" id="fileName">No file selected</span>
                        </label>
                    </div>
                </div>
                <div class="control">
                    <button class="button is-primary" onclick="uploadPdf()">Upload</button>
                </div>
            </div>
            <p id="uploadStatus" class="help"></p>
        </div>

        <!-- Search Section -->
        <div class="box">
            <h2 class="title is-4">Search Documents</h2>
            <div class="field has-addons">
                <div class="control is-expanded">
                    <input class="input" type="text" id="searchKeyword" placeholder="e.g., clinical trial, novel virus">
                </div>
                <div class="control">
                    <button class="button is-info" onclick="searchPdfs()">Search</button>
                </div>
            </div>
        </div>

        <!-- Search Results Section -->
        <div class="search-results-section">
            <div id="results" class="results-container"></div>
        </div>
    </div>

    <script>
        const fileInput = document.getElementById('pdfFile');
        const fileNameSpan = document.getElementById('fileName');

        fileInput.addEventListener('change', () => {
            if (fileInput.files.length > 0) {
                fileNameSpan.textContent = fileInput.files[0].name;
            } else {
                fileNameSpan.textContent = 'No file selected';
            }
        });

        // Function to upload a PDF
        async function uploadPdf() {
            const file = fileInput.files[0];
            const statusDiv = document.getElementById('uploadStatus');
            if (!file) {
                statusDiv.className = 'help is-danger';
                statusDiv.innerText = 'No file selected.';
                return;
            }

            statusDiv.innerText = 'Uploading...';

            const formData = new FormData();
            formData.append('pdf', file);

            try {
                const response = await fetch('/upload', {
                    method: 'POST',
                    body: formData
                });
                const result = await response.text();
                statusDiv.className = 'help is-success';
                statusDiv.innerText = result;
            } catch (error) {
                statusDiv.className = 'help is-danger';
                statusDiv.innerText = 'Error uploading file.';
                console.error(error);
            }
        }

        // Function to search PDFs
        async function searchPdfs() {
            const keyword = document.getElementById('searchKeyword').value;
            const resultsDiv = document.getElementById('results');
            resultsDiv.innerHTML = '';
            if (!keyword) {
                resultsDiv.innerHTML = '<div class="notification is-danger">Please enter a keyword.</div>';
                return;
            }

            try {
                const response = await fetch(`/search?keyword=${encodeURIComponent(keyword)}`);
                const pdfs = await response.json();

                if (pdfs.length === 0) {
                    resultsDiv.innerHTML = '<div class="notification is-warning">No matches found.</div>';
                } else {
                    pdfs.forEach(pdf => {
                        const pdfCard = document.createElement('div');
                        pdfCard.className = 'box document-card';
                        
                        const pdfTitle = document.createElement('h4');
                        pdfTitle.className = 'title is-5';
                        pdfTitle.textContent = pdf.filename;
                        pdfCard.appendChild(pdfTitle);
                        
                        const escapedKeyword = keyword.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
                        const regex = new RegExp(escapedKeyword, 'gi');
                        
                        const highlightedText = pdf.text.replace(regex, `<span class="match">${keyword}</span>`);
                        
                        const preview = highlightedText.length > 800 ? highlightedText.substring(0, 800) + '...' : highlightedText;
                        
                        const textContent = document.createElement('p');
                        textContent.className = 'is-size-7 has-text-grey-dark';
                        textContent.innerHTML = preview;
                        pdfCard.appendChild(textContent);
                        
                        resultsDiv.appendChild(pdfCard);
                    });
                }
            } catch (error) {
                resultsDiv.innerHTML = '<div class="notification is-danger">Error performing search.</div>';
                console.error(error);
            }
        }
    </script>
</body>
</html>
const PDFDocument = require('pdfkit');
const fs = require('fs');

function createSamplePdf() {
  // Create a new PDF document instance
  const doc = new PDFDocument();

  // Pipe the PDF document to a write stream to save it to disk
  doc.pipe(fs.createWriteStream('sample.pdf'));

  // Add a title to the document
  doc.fontSize(20).text('Medical Research Sample Document', {
    align: 'center'
  });

  // Add a subtitle
  doc.fontSize(14).text('\nPatient Case Study: Keyword Search Test', {
    align: 'center'
  });

  // Add the main body of text with keywords
  doc.moveDown();
  doc.fontSize(12).text(
    'This document is a sample case study for a research application. The patient, diagnosed with a **novel virus**, ' +
    'exhibited a range of symptoms, including fever, persistent cough, and elevated inflammation markers. ' +
    'The patient was enrolled in a clinical trial testing a new **treatment protocol**. ' +
    'Following treatment, the patient’s inflammation levels returned to normal. The keyword **clinical trial** ' +
    'is relevant to this case. Further research will focus on the **novel virus** and its variants.',
    {
      align: 'left',
      indent: 20,
      paragraphGap: 10
    }
  );

  // Add a list of keywords for easy reference
  doc.moveDown();
  doc.fontSize(10).text('Keywords for Search:', { underline: true });
  doc.fontSize(10).list(['novel virus', 'inflammation', 'clinical trial', 'treatment protocol', 'variants']);

  // Finalize the PDF and end the stream
  doc.end();

  console.log('sample.pdf has been created.');
}

// Execute the function
createSamplePdf();
const PDFDocument = require('pdfkit');
const fs = require('fs');
const { faker } = require('@faker-js/faker');

function generateRealTimeMedicalPdf() {
  const doc = new PDFDocument();
  const fileName = 'real_time_clinical_data.pdf';
  doc.pipe(fs.createWriteStream(fileName));

  // Medical Research Title
  doc.fontSize(20).text('Real-Time Clinical Trial Data', { align: 'center' });
  doc.moveDown();

  // Project details
  doc.fontSize(12).text(`Project: Novel Respiratory Drug Trial`, { underline: true });
  doc.text(`Trial ID: ${faker.string.alphanumeric(8).toUpperCase()}`);
  doc.text(`Monitoring Date: ${new Date().toLocaleString()}`);
  doc.moveDown();

  // Simulate a real-time stream of patient monitoring data
  doc.fontSize(10);
  for (let i = 0; i < 50; i++) {
    const patientID = `PT-${faker.string.numeric(5)}`;
    const eventType = faker.helpers.arrayElement([
      'Vital Sign Update',
      'Adverse Event Reported',
      'Medication Dispensed',
      'Patient Interview',
    ]);
    const eventTime = faker.date.recent({ days: 1 });
    const bloodPressure = `${faker.number.int({ min: 100, max: 140 })}/${faker.number.int({ min: 60, max: 90 })}`;
    const heartRate = faker.number.int({ min: 60, max: 100 });
    const oxygenSaturation = faker.number.int({ min: 95, max: 99 });
    const note = faker.lorem.sentences(1);
    
    // Write a new line of data
    doc.text(`[${eventTime.toLocaleTimeString()}] **${eventType}**: Patient ID ${patientID}`);
    doc.text(`  - Blood Pressure: ${bloodPressure}, Heart Rate: ${heartRate}, Oxygen Saturation: ${oxygenSaturation}%`);
    doc.text(`  - Notes: ${note}`);
    doc.text('----------------------------------------------------');
  }

  // Finalize the PDF
  doc.end();
  console.log(`Successfully created a simulated real-time PDF: ${fileName}`);
}

// Execute the function
generateRealTimeMedicalPdf();
{
  "name": "pdf-search-app",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@faker-js/faker": "^10.0.0",
    "express": "^5.1.0",
    "mongoose": "^8.18.1",
    "multer": "^2.0.2",
    "pdf-parse": "^1.1.1",
    "pdfkit": "^0.17.2",
    "socket.io": "^4.8.1"
  }
}
const express = require('express');
const multer = require('multer');
const pdfParse = require('pdf-parse');
const path = require('path');
const fs = require('fs'); // Import the file system module
const app = express();
const port = 3000;

// An in-memory array to store the extracted PDF data
const pdfDocuments = [];

// Set up Multer to store uploaded files on the disk
const upload = multer({ dest: 'uploads/' });

// Ensure the 'uploads' directory exists
if (!fs.existsSync('uploads')) {
  fs.mkdirSync('uploads');
}

app.use(express.static('public'));

// --- File Upload Endpoint ---
app.post('/upload', upload.single('pdf'), async (req, res) => {
  if (!req.file || req.file.mimetype !== 'application/pdf') {
    return res.status(400).send('Please upload a PDF file.');
  }

  try {
    const filePath = req.file.path;
    const dataBuffer = fs.readFileSync(filePath);
    const data = await pdfParse(dataBuffer);

    // Store the extracted text and original filename in memory
    const newPdf = {
      id: pdfDocuments.length + 1,
      filename: req.file.originalname,
      text: data.text
    };
    pdfDocuments.push(newPdf);

    // Clean up the temporary file
    fs.unlinkSync(filePath);

    res.status(200).send('PDF uploaded and text extracted successfully.');
  } catch (err) {
    console.error('Error during PDF processing:', err);
    res.status(500).send('Error processing PDF.');
  }
});

// --- Real-time Search Endpoint ---
app.get('/search', (req, res) => {
  const { keyword } = req.query;
  if (!keyword) {
    return res.status(400).send('Please provide a keyword to search.');
  }

  const results = pdfDocuments.filter(doc => 
    doc.text.toLowerCase().includes(keyword.toLowerCase())
  );

  res.status(200).json(results);
});

app.listen(port, () => {
  console.log(`Server listening on port ${port}`);
});
Reasons:
  • Blacklisted phrase (1): This document
  • RegEx Blacklisted phrase (2.5): Please provide
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sravan Reddy

79773056

Date: 2025-09-23 20:43:57
Score: 2.5
Natty:
Report link

I had this error when the json file was saved with UTF-16 encoding. Switching to UTF-8 fixed the issue.

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

79773051

Date: 2025-09-23 20:37:56
Score: 3
Natty:
Report link

Another option is LexoRank which stores the order in strings (Jira uses this for ranking tasks) https://www.youtube.com/watch?v=OjQv9xMoFbg

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Thomas

79773036

Date: 2025-09-23 20:15:50
Score: 2.5
Natty:
Report link

I'm using Visual Studio 2022 and I was able to add it this way. One thing I noticed though: it doesn’t delete the whole word if it’s inside quotes. it deletes the quote first, and then the word.

Tools--> Options...

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Alparslan ŞEN

79773028

Date: 2025-09-23 20:08:46
Score: 7 🚩
Natty:
Report link

Hi Even im facing same issue

Let me know what f you find any solution

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): facing same issue
  • Low reputation (1):
Posted by: Sai Pranav Dushetty

79773027

Date: 2025-09-23 20:06:46
Score: 2
Natty:
Report link

I ran into this problem before. But it turns out that the path to the .mov data was wrong. So I think you should check the path first.

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

79773023

Date: 2025-09-23 20:01:44
Score: 1.5
Natty:
Report link

Try adding this as an environment variable on Render if using spring boot:

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

79773020

Date: 2025-09-23 19:51:42
Score: 0.5
Natty:
Report link

I found this discussion and the solution offered there worked for me.
https://github.com/microsoft/vscode/issues/266335

Solution from there: Run wsl --update from Windows Powershell

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user1007869

79773014

Date: 2025-09-23 19:40:40
Score: 0.5
Natty:
Report link

Depending on the volume you might benefit from commitment tiers in Log Analytics Workspace (every Application Insights resource is backed up by Log Analytics Workspace for storying logs): https://azure.microsoft.com/en-us/pricing/details/monitor/

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

79773013

Date: 2025-09-23 19:40:40
Score: 0.5
Natty:
Report link

if you looking for a nice scale google docs looks like they have a nice scale and they use these:

:root { font-size: 14px; }
h1{font-size:2rem;}
h2{font-size:1.6rem;}
h3{font-size:1.4rem;}
h4{font-size:1.2rem;}
h5{font-size:1.1rem;}
h6{font-size:1.1rem;font-style: italic;}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Technolo Jesus

79773009

Date: 2025-09-23 19:37:38
Score: 1.5
Natty:
Report link

solved with:

quarkus {
    set("container-image.tag", sanitizeVersionName(project.version))
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Hugo Dias

79773004

Date: 2025-09-23 19:31:36
Score: 1.5
Natty:
Report link

You can also try using position absolute and moving it downwards depending on the size of the small text

 .mat-mdc-checkbox:has(.text-muted) {
    .text-muted {
      position: absolute;
      top: var(--mat-checkbox-label-text-size);
      margin-top: 16px; // this can be adjusted
    }
  }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Sebastian Vidal

79772997

Date: 2025-09-23 19:23:34
Score: 1
Natty:
Report link

Turn off Tab/Enter to accept suggestions

  1. Open Settings (Cmd + , on macOS).

  2. Search for "acceptSuggestionOnEnter".

  3. Set it to "off".

    • This stops VS Code from inserting suggestions when you press Enter.
  4. Similarly, search for "acceptSuggestionOnTab" and disable it.

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

79772995

Date: 2025-09-23 19:22:33
Score: 2.5
Natty:
Report link

Check out JNBridge. https://jnbridge.com/

It provides interop both ways, calling java from .net or calling .net from java.

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

79772991

Date: 2025-09-23 19:14:31
Score: 3
Natty:
Report link

set UIDesignRequiresCompatibility in info.plist to Boolean = YES

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

79772986

Date: 2025-09-23 19:09:30
Score: 3
Natty:
Report link

Simply we use the following syntax to fetch details:

http://localhost:3000/users?id=1234

or

http://localhost:3000/users?id=1235

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Pritesh Gethewale

79772984

Date: 2025-09-23 19:09:30
Score: 1
Natty:
Report link

The preferred way to check types with Google Test is:

std::any x = 73;
EXPECT_EQ(x.type(), typeid(double));

With recent versions of Google Test this gives a readable output like this:

Expected equality of these values:
  x.type()
    Which is: char
  typeid(double)
    Which is: double

With older versions (like 1.11) that still works properly, but only the output is not as readable.

Thanks a lot to Marek R and all the others who provided valuable input.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jens

79772968

Date: 2025-09-23 18:50:24
Score: 0.5
Natty:
Report link

When you use window.print(), the browser just takes your rendered page and runs it through its print stylesheet (or default rules if you don’t have one). There’s no ā€œpixel-perfectā€ way to predict where the page will break because the browser converts everything into physical units (inches/mm) based on your screen DPI and printer settings.

If you want predictable results, you should add a @media print CSS section and explicitly control the size of the printed area. For example:

@media print {
  @page {
    size: A4 portrait; /* or letter/landscape */
    margin: 10mm;
  }

  .page-break {
    page-break-before: always;
  }
}
Then, you can measure your elements and insert page breaks where needed by adding class="page-break" in your HTML.

The key thing is: don’t rely on screen px measurements. Convert to in, mm, or use percentages relative to the page. That way you can predict when something will spill over an 11-inch page.
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When you use
  • Low reputation (1):
Posted by: nandini paluchuri

79772964

Date: 2025-09-23 18:46:23
Score: 3
Natty:
Report link

It turns out that our process was setup correctly but the JBoss admin on Linux didn't have execute privileges on the JAR file. He added that in and then the driver was able to be registered.

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

79772954

Date: 2025-09-23 18:32:19
Score: 3.5
Natty:
Report link

I found these solutions: the first one is more concise if you already have some experience with LDAP, and the second one provides a detailed step-by-step guide.

1- https://github.com/sbrannstrom/nestjs-passport-ldap-example

2 - https://blog.stackademic.com/building-a-secure-nestjs-application-with-jwt-typeorm-postgresql-and-ldap-server-1ac5249dae53"

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: joao pedro purcino batista

79772943

Date: 2025-09-23 18:21:16
Score: 3
Natty:
Report link

If you the package was ported from another project, you may want to consider recreating the variables and/or connection managers that are referencing the invalid values.

Charles Mulwa

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

79772922

Date: 2025-09-23 17:51:08
Score: 1.5
Natty:
Report link

In Flowise AgentFlow, you can use an agent condition with different vectorStore node in the output, the variable to be checked would be preferably a work flow state.

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: Ilias Seddik

79772917

Date: 2025-09-23 17:44:05
Score: 2.5
Natty:
Report link

Looks like the custom-<CPUs>-<MBs> name scheme is used for the N1 family custom machine types.

I recently had this question and found in the GCloud console's Create VM UI that the N1 custom machine type is the only one that maps to this naming scheme. All the other families that support custom types use their family prefix before the custom-....

I cannot find any documentation to definitively clarify the naming scheme so I can't say this is 100% the answer, but seems like it is.

Reasons:
  • Blacklisted phrase (1.5): I cannot find
  • Blacklisted phrase (0.5): I cannot
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ian Halliday

79772911

Date: 2025-09-23 17:37:04
Score: 3
Natty:
Report link

I tried adding this as a comment to Suncatcher answer but the "Add a comment" input area doesn't work for me:

That class (cl_reca_rs_services) doesn't exist in some CRM system. However, copying the code from a S/4 system, replacing re_t_string with stringtab and also copying the content of the include with macros, is quickly done.
There is also REPS SEO_CLASS_OUTPUT which produces a WRITE list which can be processed as described in How to extract the output of called program RAZUGA01 (FUNC LIST_FROM_MEMORY)

Reasons:
  • RegEx Blacklisted phrase (2): doesn't work for me
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: gunnar247

79772894

Date: 2025-09-23 17:16:00
Score: 2
Natty:
Report link

MV2 is not yet supported by Chrome, so the problem remains:

Background scripts do not support "document", and content scripts do not support "onCommand".

I have a bookmarklet/JS to switch the current page to dark mode,but I would like to use it only on a hotkey press. None of the solutions work using MV3.

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

79772887

Date: 2025-09-23 17:07:58
Score: 1
Natty:
Report link

To add to all other answers, I want to point out a really popular use case of this, which is Pandas. They implemented the __getitem__ method (and others). The library does this to index and filter their own spreadsheet like data type. This comes in really usefully when also combining it with with other python features such as slicings.

In other programming languages this term related with operator overloading where you write your own behavior for different features in a programming language.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Hamza

79772883

Date: 2025-09-23 17:01:56
Score: 3.5
Natty:
Report link

It turns out I installed OBS via flatpak, so OBS did not have access to the script I was trying to call. I put the script in the OBS sandbox and it works just fine!

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

79772867

Date: 2025-09-23 16:43:52
Score: 3
Natty:
Report link

"_" looks not valid either : I get "named capturing group is missing trailing '>'" at the _'s position

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: François Même

79772840

Date: 2025-09-23 16:19:46
Score: 5
Natty:
Report link

@YevgeniyAfanasyev This is the main account. When you register to developer.paypal.com, after that you can create as many sandbox accounts, as you like from the developer dashboard

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • User mentioned (1): @YevgeniyAfanasyev
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Shreeram mahara