79271389

Date: 2024-12-11 10:47:10
Score: 2
Natty:
Report link

I had the issue in Laravel v11.34.2, but after upgrading to v11.35.0, the issue was solved.

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

79271384

Date: 2024-12-11 10:45:10
Score: 0.5
Natty:
Report link

Using "name" attribute instead of "id" for the anchor works for me :

# <a name="myAnchorId"/> 1) My Anchor label (with comment)
...
[My link label](#myAnchorId)
Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jérome CARBOU

79271372

Date: 2024-12-11 10:42:09
Score: 2.5
Natty:
Report link

I also check it, you can Run:

npm install @svgr/cli --save-dev

Add to config:

"scripts": { "generate": "svgr --out-dir ../src/components --typescript ./src/assets" }

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

79271369

Date: 2024-12-11 10:42:09
Score: 1.5
Natty:
Report link

You can specify

{ storage_type = null }

as null and it will default the terrform provider to aurora

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

79271368

Date: 2024-12-11 10:41:09
Score: 1.5
Natty:
Report link

In Ubuntu-24.04+clang++-18

// main.cpp
import std;

int main() 
{
    std::print("Hello world!\n");
    return 0;
}

For above codes

>>sudo apt install clang-18 libc++-18-dev
>>clang++-18 -std=c++23 -stdlib=libc++  -Wno-reserved-module-identifier --precompile -o std.pcm /usr/lib/llvm-18/share/libc++/v1/std.cppm
>>clang++-18 -std=c++23 -stdlib=libc++ -fmodule-file=std=std.pcm std.pcm main.cpp -o main
>>./main
Hello world!

Using the C++23 std Module with Clang 18

Modules in libc++

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: lzl jnu

79271366

Date: 2024-12-11 10:40:08
Score: 0.5
Natty:
Report link
$position = Auth::user()->position_id;


$documents = Document::whereHas('approvals', function ($query) use ( $position) {
    $query->where('position_id',$position)
          ->where('status', 'pending')
          ->orderBy('created_at', 'asc'); 
})->get();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: heta thakkar

79271360

Date: 2024-12-11 10:39:08
Score: 5
Natty: 6
Report link

Hi it looks like your using tensorflow try using OpenAI and next.js instead. I explain it in this blog post: https://www.brendanmulhern.blog/posts/make-your-own-ai-chatbot-website-with-next-js-and-openai-course.

Reasons:
  • Blacklisted phrase (1): this blog
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Brendan Mulhern

79271344

Date: 2024-12-11 10:34:06
Score: 0.5
Natty:
Report link

Have a look at this report: https://developercommunity.visualstudio.com/t/Error-trying-to-pair-Visual-Studio-1712/10806194?space=62&ftype=problem&preview2=true&q=fma


I would encourage you to try a couple of things in order to see if there’s any progress. First, install the latest VS stable version, then do the steps below:

1 - Look for other zombie Broker processes running on your Mac. To do so, run the follwing on a terminal in your Mac (ensure to not have any active connection in VS already): ps -A | grep XMA. If you see any result, kill the processes by running kill -9 , where is the process id that the first command shown

2 - Restart your Mac (just in case your current session is in a weird state)

3 - Try to start the broker manually. This is just a test in your Mac that doens’t affect VS. Go to /Users//Library/Caches/Xamarin/XMA/Agents/Broker/, where is your Mac user (the same you use in Pair To Mac) and is the version of the Broker. In case you have more than one version folder, use the latest by “Date Modified”. Then open a terminal in the Mac pointing to that folder and run: dotnet Broker.dll -port=45555


This led me to find that the broker service needed .NET 8.0 which was not installed.

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

79271340

Date: 2024-12-11 10:33:06
Score: 0.5
Natty:
Report link

Please install new version of Wamp because I have use wamp and I install joomla 2.5 and joomla 3.0 easily in my wamp server.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Maulik patel

79271338

Date: 2024-12-11 10:33:05
Score: 7.5 🚩
Natty:
Report link

I have found a solution to the problem marked above. the code is as follows.

//@version=6
strategy("VWAP and RSI Strategy", shorttitle="VWAP RSI Strategy", overlay=true)

// --- VWAP Code ---
cumulativePeriod = input.int(30, title="VWAP Period") 

typicalPrice = (high + low + close) / 3
typicalPriceVolume = typicalPrice * volume
cumulativeTypicalPriceVolume = ta.cum(typicalPriceVolume)  // Cumulative typical price volume
cumulativeVolume = ta.cum(volume)  // Cumulative volume
vwapValue = cumulativeTypicalPriceVolume / cumulativeVolume  // VWAP calculation

plot(vwapValue, title="VWAP", color=color.blue, linewidth=2)

// --- RSI Code ---
rsiLengthInput = input.int(14, minval=1, title="RSI Length", group="RSI Settings")
rsiSourceInput = input.source(close, "Source", group="RSI Settings")
rsi = ta.rsi(rsiSourceInput, rsiLengthInput)

// Plot RSI on the main chart as well (if desired)
rsiPlot = plot(rsi, "RSI", color=color.purple)
rsiUpperBand = hline(70, "RSI Upper Band", color=color.red)
rsiLowerBand = hline(30, "RSI Lower Band", color=color.green)
fill(rsiUpperBand, rsiLowerBand, color=color.rgb(126, 87, 194, 90), title="RSI Background Fill")

// --- Strategy Conditions ---
longCondition = ta.crossover(close, vwapValue) and rsi <= 25
if longCondition
    strategy.entry("Long", strategy.long)

shortCondition = ta.crossunder(close, vwapValue) and rsi >= 65
if shortCondition
    strategy.entry("Short", strategy.short)

// --- Exit Conditions ---
// Close the long trade if RSI reaches 30
if (rsi >= 30)
    strategy.close("Long")

// Close the short trade if RSI reaches 70
if (rsi >= 70)
    strategy.close("Short")

// --- Risk Management (Optional) ---
longStopLossPercent = input.float(2.0, title="Long Stop Loss %", minval=0.1, step=0.1) / 100
longTakeProfitPercent = input.float(5.0, title="Long Take Profit %", minval=0.1, step=0.1) / 100
shortStopLossPercent = input.float(2.0, title="Short Stop Loss %", minval=0.1, step=0.1) / 100
shortTakeProfitPercent = input.float(5.0, title="Short Take Profit %", minval=0.1, step=0.1) / 100

longStopLossPrice = strategy.position_avg_price * (1 - longStopLossPercent)
longTakeProfitPrice = strategy.position_avg_price * (1 + longTakeProfitPercent)
shortStopLossPrice = strategy.position_avg_price * (1 + shortStopLossPercent)
shortTakeProfitPrice = strategy.position_avg_price * (1 - shortTakeProfitPercent)

strategy.exit("Long TP/SL", from_entry="Long", stop=longStopLossPrice, limit=longTakeProfitPrice)
strategy.exit("Short TP/SL", from_entry="Short", stop=shortStopLossPrice, limit=shortTakeProfitPrice)

// --- Additional Plots and Strategy Settings ---
plotshape(longCondition, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(shortCondition, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")

Once testing, this has lead to the rise of more questions. The VWAP plotting for this does not align to the one inputted into ChatGPT as the base sample of VWAP with periods. There seems to be a problem regarding changes of v3 to v6 and the outdated ta.sum() now not being available so having to use ta.cum(). I think this comes from the fcat the 2 codes i am mergging are codes in v3 and v6. If anyone can help with this it would be greatly appreciated. The VWAP code I used was called VWAP with periods by neolao.

Reasons:
  • Blacklisted phrase (1): appreciated
  • RegEx Blacklisted phrase (3): help with this it would be greatly appreciated
  • RegEx Blacklisted phrase (3): anyone can help
  • RegEx Blacklisted phrase (0.5): anyone can help
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mr.Code

79271332

Date: 2024-12-11 10:31:04
Score: 0.5
Natty:
Report link

I found the issue: Apparently, cookies with samesite-attribute set to strict aren't handled very well in the context of progressive web applications. I configured the ASP.NET Identity Cookies to have samesite=lax, and problems disappeared.

Program.cs exerpt:

builder.Services.ConfigureApplicationCookie(o =>
{
    o.LoginPath = "/Identity/Account/Login";
    o.LogoutPath = "/Identity/Account/Logout";
    o.AccessDeniedPath = "/Identity/Account/AccessDenied";
    o.Cookie.MaxAge = TimeSpan.FromDays(6);
    o.Cookie.HttpOnly = true;

    o.Cookie.SameSite = SameSiteMode.Lax; // <=====

    o.Cookie.SecurePolicy = CookieSecurePolicy.Always;
    o.ExpireTimeSpan = TimeSpan.FromDays(6);
    o.SlidingExpiration = true;
});
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Flipps

79271331

Date: 2024-12-11 10:31:04
Score: 4
Natty:
Report link

fix : renaming routeMiddlewareAliases to middlewareAliases in kernel file

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

79271315

Date: 2024-12-11 10:26:02
Score: 2.5
Natty:
Report link

Make sure you guys first check that if maven is down.

you can check it from here.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Md Sadab Wasim

79271312

Date: 2024-12-11 10:24:02
Score: 0.5
Natty:
Report link

I had the same issue but I don't have bitwarden, so it wasn't the issue. But - I did start to use Apple's iCloud Passwords not so long ago (I am on mac), so I opened my extensions management dashboard on chrome and disabled it, and voila! chrome's payment autofill came back to life.

I guess it can happen with any other passwords autofill chrome extension tools like bitwarden, 1password etc.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • No code block (0.5):
  • Low reputation (1):
Posted by: The-Dropzone

79271311

Date: 2024-12-11 10:24:02
Score: 1.5
Natty:
Report link

So I did mention "But I want to have it work without this port mapping.". What I meant I don't want to use this mapping on the RabbitMQ container, since then it bypasses the Traefik.

So dumb me forgot to add port mapping to the Traefik docker-compose file. Added the port mapping 5672:5762 to the docker-compose.yml of Traefik and I can connect over telnet to the server.

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

79271310

Date: 2024-12-11 10:24:02
Score: 3
Natty:
Report link

Aidez moi svp

Ce site Web n'est plus disponible Pour mieux protéger votre compte, Google n'y autorise plus l'accès via ce site Web.

Si vous rencontrez des difficultés pour vous connecter, réessayez depuis un appareil ou un lieu habituel.

Reasons:
  • Blacklisted phrase (1): Aidez
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Krimo Tuo

79271307

Date: 2024-12-11 10:23:02
Score: 1
Natty:
Report link

Thank to Guru Stron. dotnet build is a command which I need. I have created csproj file in a dir where there is my cs.file. I named this dir TestScript.

TestScript.csproj file

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net9.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.2" />
  </ItemGroup>

</Project>

Program.cs file

Process process = new Process();
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.FileName = @"C:\Program Files\dotnet\dotnet.exe";
process.StartInfo.Arguments = @"build TestScript\TestScript.csproj -t:Build";
process.Start();
process.WaitForExit();
Process.Start(@"TestScript\bin\Debug\net9.0\TestScript.exe");
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Adrian Przemysław Drozdowski

79271303

Date: 2024-12-11 10:20:01
Score: 3
Natty:
Report link

some words are not allowd like new, or numbers, maybe switch also.

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

79271302

Date: 2024-12-11 10:20:01
Score: 2.5
Natty:
Report link

From intellij you can open from Profiler too with Open Snapshot: enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Juliyanage Silva

79271298

Date: 2024-12-11 10:19:00
Score: 1
Natty:
Report link

Run:

npm install @svgr/cli --save-dev

Add to config:

"scripts": {
   "generate": "svgr --out-dir ../src/components --typescript ./src/assets"
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Stephen Ross

79271294

Date: 2024-12-11 10:18:00
Score: 0.5
Natty:
Report link

I found that resizing the window after chroma-key has been disabled fixes the performance issues. I'm not sure why this is the case, but a workaround for this issue is to simply force the window to change size and then change it back.

static void disableWindowChromaKey(sf::RenderWindow* window)
{
    HWND windowHWND = window->getSystemHandle();
    SetWindowLongPtr(windowHWND, GWL_EXSTYLE, GetWindowLongPtr(windowHWND, GWL_EXSTYLE) & ~WS_EX_LAYERED);
    window->setSize(sf::Vector2u(window->getSize().x + 1, window->getSize().y));
    window->setSize(sf::Vector2u(window->getSize().x - 1, window->getSize().y));
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ben

79271293

Date: 2024-12-11 10:18:00
Score: 0.5
Natty:
Report link

It seems they introduced a change that uses a new function added on PHP 8.4. So if you don't want wait, you must either update to 8.4 or execute the following command:

composer global require symfony/polyfill-mbstring
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: didix16

79271282

Date: 2024-12-11 10:15:59
Score: 0.5
Natty:
Report link
I Think You should read this document

https://docs.joomla.org/J3.x:Creating_a_search_plugin

In this document give code for develop search plugin.
Reasons:
  • Blacklisted phrase (1): this document
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Maulik patel

79271281

Date: 2024-12-11 10:14:59
Score: 3
Natty:
Report link

Only add a given location, by default, it will accept.

C:\Oracle\Middleware\Oracle_Home

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Suneel Srivastava

79271276

Date: 2024-12-11 10:13:59
Score: 1
Natty:
Report link

you have to change generate command like this

"scripts": {
  "build": "tsc -b && vite build",
  "lint": "eslint .",
  "generate": "npx @svgr/cli --out-dir ./src/components --typescript -- ./src/assets",
}

check documentation here

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

79271275

Date: 2024-12-11 10:13:59
Score: 0.5
Natty:
Report link

HTML Setup: Begin by including the necessary Owl Carousel CSS and JS files in your HTML file. Create a div container for the carousel and place 8 items inside it.

CSS for Layout: Use CSS to define how the items should be arranged. Set the width of each item to 25% so that four items will fit in one row. For smaller screens, adjust the item width to 50% (for two items per row) or 100% (for one item per row).

Responsive Settings: The JavaScript part of the code initializes Owl Carousel. Use the items option to define how many items are visible per row. The responsive option allows the number of items per row to change based on screen size. For instance, 4 items will be shown on larger screens, while only 2 items will appear on smaller screens.

Initialization: In the script, use jQuery to initialize Owl Carousel, setting properties like the number of items, loop behavior, and navigation buttons. The responsive configuration ensures the number of items adjusts depending on the viewport size.

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

79271270

Date: 2024-12-11 10:12:59
Score: 2.5
Natty:
Report link

I've recently met this problem while installing the nova-compute on a seperate compute node using the openstack Caracal release.In your compute node try to add these two lines in the nova.conf file

/etc/nova/nova.conf

`lock_path = /var/lock/nova

state_path = /var/lib/nova`

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

79271264

Date: 2024-12-11 10:11:56
Score: 6.5 🚩
Natty:
Report link

Have the same issue:

  "value.converter": "org.apache.kafka.connect.json.JsonConverter",
  "key.converter": "org.apache.kafka.connect.json.JsonConverter",
  "key.converter.schemas.enable": "false",
  "port": "5432",
  "value.converter.schemas.enable": "false",


Caused by: java.lang.NullPointerException
at io.debezium.connector.jdbc.SinkRecordDescriptor$Builder.isFlattened(SinkRecordDescriptor.java:321)

Anybody resolve?

Reasons:
  • RegEx Blacklisted phrase (1.5): resolve?
  • Has code block (-0.5):
  • Me too answer (2.5): Have the same issue
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Anton Petkun

79271261

Date: 2024-12-11 10:10:56
Score: 1.5
Natty:
Report link

There is a small difference between create and generate:

  1. Create: This will create migration files that will have empty up and down query objects, in which you can write down your queries to update the database.
  2. Generate: This will generate the migrations with up and down queries by observing your database changes. You can see more of migration on the official sites.
Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Gadhavi Neha

79271257

Date: 2024-12-11 10:08:55
Score: 2.5
Natty:
Report link

To be able to send WA Flows you need to verify your business and maintain a high message quality.

See details here.

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

79271252

Date: 2024-12-11 10:07:55
Score: 5.5
Natty: 6
Report link

Have you found a solution? Because it seems like it was hard for people to understand your needs

Reasons:
  • RegEx Blacklisted phrase (2.5): Have you found a solution
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Mohammed Karam

79271238

Date: 2024-12-11 10:01:53
Score: 1.5
Natty:
Report link

As it is said "Rely on abstraction, not concretion", using interface classes will add better approach to software engineering: it will help for open closed principle of SOLID, where project should be open to extensions and close to modifications. When we have our interface, we have one implementation today and we can add another new implementation when we need.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Khasan 24-7

79271234

Date: 2024-12-11 10:00:53
Score: 1.5
Natty:
Report link

Few things to remember here:

  1. Function timeout -1 does not mean infinite. Maximum timeout here is 5 minutes by default (00:05:00).
  2. If you feel your function might take more time in execution, divide them in multiple activities and try to use Durable Functions which will help you to work with multiple activities till your execution is complete. Here, also remember that each activity will also be having maximum timeout of 5 minutes including orchestrator functions.
Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Nais

79271232

Date: 2024-12-11 09:59:52
Score: 0.5
Natty:
Report link

In sulu you are doing this not on a row level. Instead on a column level on a column level you have different "list transformers" you can create own list transformers as shown in the Sulu Demo here:

https://github.com/sulu/sulu-demo/pull/80

Or use existing list transformer. One option would be the "icon" list transformer.

As example the activity log icon: https://github.com/sulu/sulu/blob/2.6.6/src/Sulu/Bundle/ActivityBundle/Resources/config/lists/activities.xml#L36-L80

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Alexander Schranz

79271222

Date: 2024-12-11 09:56:52
Score: 2
Natty:
Report link

bode in appdesigner

        %% Bode Magnitude Plot  %%
        optMAG=bodeoptions;
        optMAG.PhaseVisible='off';
        bodeplot(app.BodeMagAxes,H,optMAG)

        %% Bode Phase Plot  %%
        opt=bodeoptions;
        opt.MagVisible='off';
        bodeplot(app.BodePhaseAxes,H,opt)
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ester Luzhin

79271220

Date: 2024-12-11 09:56:52
Score: 2
Natty:
Report link

Adding

'guards' => [
    'web' => [
        'driver'   => 'session',
        'provider' => 'users',
    ],
    'api' => [
        'driver'   => 'jwt',
        'provider' => 'users',
    ],
],

to /config/auth.php, as suggested by @Marianela Diaz, made my code work.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Marianela
  • Low reputation (1):
Posted by: Toàn Hoàng

79271217

Date: 2024-12-11 09:55:52
Score: 3
Natty:
Report link

I have checked in my setZoom function which is canvas zoom I made mistake when during the zoom i have set canvas width and height for help of the Math.Round but when i remove Math.round its perfect work

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

79271216

Date: 2024-12-11 09:55:52
Score: 1
Natty:
Report link

I've recently faced with the similar issue. While designer can easily move components in Figma or w/e you are dependent on MUI realisation. In this case you need to manipulate over MuiSpeedDial-root, MuiSpeedDial-actions and MuiButtonBase-root to achieve desired results.

So for my case it looks like so:

const actions = [
    {
      icon: (
        <Box display="flex" gap={1}>
          <Typography fontSize={14}>{t('dashboard.selectDate')}</Typography>
          <EventIcon />
        </Box>
      ),
      name: t('dashboard.selectDate'),
      onClick: () => {
        handleOpenDateModal();
        handleClose();
      }
    },
    {
      icon: (
        <Box display="flex" gap={1}>
          <Typography fontSize={14}>{t('dashboard.today')}</Typography>
          <CalendarTodayIcon />
        </Box>
      ),
      name: t('dashboard.today'),
      onClick: () => {
        handleSetMonth(getTodayIso());
        handleClose();
      }
    },
    {
      icon: (
        <Box display="flex" gap={1}>
          <Typography fontSize={14}>{t('dashboard.navigation.uploadInvoice')}</Typography>
          <UploadFileIcon />
        </Box>
      ),
      name: t('dashboard.navigation.uploadInvoice'),
      onClick: () => navigate(`/${ROUTING.INVOICE_UPLOAD}`)
    }
  ];
...

<StyledSpeedDial
          ariaLabel="SpeedDial controlled"
          icon={<SpeedDialIcon />}
          onClose={handleClose}
          onOpen={handleOpen}
          open={open}
        >
          {actions.map((action) => (
            <SpeedDialAction
              TooltipClasses={{
                tooltip: 'speed-action-tooltip-hide'
              }}
              key={action.name}
              icon={action.icon}
              tooltipTitle={action.name}
              onClick={action.onClick}
            />
          ))}
        </StyledSpeedDial>

Styled components saved in separate file:

export const StyledSpeedDial = styled(SpeedDial)<SpeedDialProps>(({ theme }) => ({
  position: 'absolute',
  bottom: 20,
  right: 16,
  zIndex: 2500,
  alignItems: 'end',
  '& .MuiSpeedDial-actions': {
    marginLeft: '-50px',
    '& .MuiButtonBase-root': {
      color: theme.colors.contrast,
      height: '40px',
      width: 'fit-content',
      alignSelf: 'flex-end',
      padding: '8px 16px',
      borderRadius: '100px',
      marginRight: 0,
      '& .MuiBox-root': {
        alignItems: 'center'
      }
    }
  }
}));

Don't kick me too hard on those negative margins. That's what worked for me. And I had to override height and width this way, because it's the most convenient way to fit that text.

I didn't found out more elegant way, if you do, please let me know. P.S. this is how it looks Open state

Reasons:
  • Whitelisted phrase (-1): worked for me
  • RegEx Blacklisted phrase (2.5): please let me know
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Roman Olly

79271214

Date: 2024-12-11 09:54:50
Score: 5
Natty: 5
Report link

There is option to write a code so colab will stop in given cell, instead of clicking the cell before running?

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

79271210

Date: 2024-12-11 09:52:49
Score: 0.5
Natty:
Report link

With some help figured out a way to scan for all keys with required batch-count.

var cursor uint64 = 0
for {
     resss := client.Do(ctx, client.B().Scan().Cursor(cursor).Match("*").Count(2).Build())
     se, err := resss.AsScanEntry()
     if err != nil {
         fmt.Printf("client.Scan failed %v\n", err)
     }
     for _, sitem := range se.Elements {
         fmt.Printf("Scaned Item::: %v\n", sitem)
     }
     cursor = se.Cursor
     if cursor == 0 {
         break
     }
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Harish Reddy

79271204

Date: 2024-12-11 09:49:49
Score: 2.5
Natty:
Report link

Ok so the only thing need to be done is to add disable key to each object display on the loop(without nothing else need in html)i actually saw this on other question and by mistake put the disabled key in the wrong place(thought maybe looping it in the ng-template having effect on it) so case close thanks for all the answers !

Reasons:
  • Blacklisted phrase (0.5): thanks
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Asaf Abekasis

79271198

Date: 2024-12-11 09:47:48
Score: 10 🚩
Natty: 6
Report link

Hey did you find any solutions? For me also it same .I'm getting OK ASYNC as in response but the actual image i'm unable to get.

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (3): did you find any solution
  • RegEx Blacklisted phrase (2): any solutions?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ashutosh

79271187

Date: 2024-12-11 09:43:46
Score: 2
Natty:
Report link

Check your req.txt if you have psycopg-binary

pip install psycopg-binary
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Boubker ahbibe

79271184

Date: 2024-12-11 09:42:46
Score: 1.5
Natty:
Report link

This is just for test, please ignore. So the solution is simple, just install Microsoft.IdentityModel.Protocols.OpenIdConnect corresponding to the version of Microsoft.AspNetCore.Authentication.OpenIdConnect that you installed and the issue is solved without adding any new line of code.

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

79271183

Date: 2024-12-11 09:41:46
Score: 1
Natty:
Report link

Most probable it can happen if the active sheet is not a worksheet or no active sheet yet.

In this code fragment

 With wksNew
    Columns("A:A").Select

the Columns member is applied to the active sheet not to wksNew. May be the dot is omitted here?

 With wksNew
    .Columns("A:A").Select
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: rotabor

79271178

Date: 2024-12-11 09:39:45
Score: 2.5
Natty:
Report link

I will explain in simple terms.

A migration is a script that describes how to transform your database from one state to another. It includes instructions for adding, altering, or removing tables, columns, indexes, and other database objects.

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

79271176

Date: 2024-12-11 09:38:44
Score: 4
Natty: 4.5
Report link

Any tried it from the front end? it always give CORS error from the browser.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Muttahir Abdul Rasheed

79271173

Date: 2024-12-11 09:37:44
Score: 1.5
Natty:
Report link

You can can give .tint to the ProgressView() not accent color. See this:

ProgressView(value: 0.4)
    .progressViewStyle(.circular)
    .tint(.red)

enter image description here

or

ProgressView(value: 0.4)
    .progressViewStyle(.linear)
    .tint(.red)

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: MD. Shakhawat Hossain Shahin

79271166

Date: 2024-12-11 09:35:43
Score: 4.5
Natty:
Report link

你好, 你的代码我想可以这样写:

using Excel = Microsoft.Office.Interop.Excel;
private static object TRANSPOSE(object Arr)
{
    return (
        (Excel.Application)ExcelDnaUtil.Application
    ).WorksheetFunction.Transpose(Arr);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • No latin characters (3):
  • Low reputation (1):
Posted by: Chang WebChang

79271161

Date: 2024-12-11 09:34:42
Score: 3.5
Natty:
Report link

Maybe your filename is snowflake.py or something (this was my problem) Found this on reddit: https://www.reddit.com/r/snowflake/comments/177uhoy/modulenotfounderror_no_module_named/

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

79271157

Date: 2024-12-11 09:32:41
Score: 0.5
Natty:
Report link

We may have a solution, turns out the test name isn't limited or wrapped. By adding the ##vso command as a test, that will allow it to be picked up by Azure. As an example, in the test post-request;

pm.variables.set("testname","##vso[task.setvariable variable=MyReallyLongVariable]AndReallyLongValue"));
pm.test(pm.variables.get("testname"), () => {
    pm.expect(true).to.eq(true);
});

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

79271134

Date: 2024-12-11 09:25:40
Score: 1.5
Natty:
Report link

When you use canvas.drawText, it means you don't have a text inside the view, you are drawing a text like an image or a shape. It is a drawing that just looks like a text and is not actually a text.

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

79271128

Date: 2024-12-11 09:23:39
Score: 4
Natty:
Report link

Find related post , now my issue resolved now

Not receiving Google OAuth refresh token

authorization-uri: https://accounts.google.com/o/oauth2/v2/auth?prompt=consent&access_type=offline

Needs to add prompt ,access_type params in your request.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Alok Mishra

79271125

Date: 2024-12-11 09:22:38
Score: 0.5
Natty:
Report link
please use this plugin for registration user and login user
https://wordpress.org/plugins/profile-builder/screensho
Reasons:
  • Blacklisted phrase (1): this plugin
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Maulik patel

79271124

Date: 2024-12-11 09:22:38
Score: 1.5
Natty:
Report link

Thank you my friend, the problem was in the double quotes.

array(
        '$project' => array(
        '_id' => 0, 
        'data' => ['$arrayElemAt'=> ['$data', 0]],
         )
    ),
     array(
        '$replaceRoot' => array(
             'newRoot'=> '$data',        
         )
    ),

doing this fixed it

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

79271123

Date: 2024-12-11 09:22:38
Score: 1
Natty:
Report link

If your application is running behind a reverse proxy (e.g., Nginx or Heroku), the Express application may interpret incoming HTTPS requests as HTTP. In this case, secure: true will prevent the session cookies from being sent.

app.set('trust proxy', 1);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Erhan Güney

79271115

Date: 2024-12-11 09:18:37
Score: 2.5
Natty:
Report link

Solution for this specific problem is

su - oracle find out your SID then run below command! export ORACLE_SID=SID-Name

sqlplus /nolog connect /as sysdba

startup

Enjoy!!!

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

79271105

Date: 2024-12-11 09:14:36
Score: 2
Natty:
Report link

I know this question might be a little bit old, you can pass a JsonClaimValueTypes.Json as valuetype to the new claim, this will form json object correctly, this json valuetype is under "System.IdentityModel.Tokens.Jwt" namespace

for example: claims.Add(new Claim( "Key", ,JsonClaimValueTypes.Json));

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

79271101

Date: 2024-12-11 09:14:36
Score: 1
Natty:
Report link

The issue was apiVersion, dependency conditions are working only on v2

apiVersion: v2
description: Core Helm Chart
name: test
version: 0.0.1
dependencies:
- name: core
  version: "0.5.4"
  repository: oci://123.dkr.ecr.eu-west-1.amazonaws.com

works as expected!

(leaving it for further "strugglers" here)

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

79271084

Date: 2024-12-11 09:09:35
Score: 0.5
Natty:
Report link

For those who came here looking for a solution to get the first file in a dir, using pathlib

import pathlib

my_dir = pathlib.Path("my/dir/")
first_file = next((x for x in my_dir.iterdir() if x.is_file()), None)

first_file is None if dir is empty

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

79271077

Date: 2024-12-11 09:07:33
Score: 7 🚩
Natty: 6.5
Report link

Let me know how to get the authorization info for above case. Because when I tried as you mention I got the following error: { "__type": "MissingAuthenticationTokenException", "message": "Missing Authentication Token" } Could you please answer my question? Thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (2.5): Could you please answer
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Yuki

79271073

Date: 2024-12-11 09:05:33
Score: 1
Natty:
Report link

If you are tinkering with code, you might want disable all warnings

#![allow(warnings)] // first line
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: qmzp

79271063

Date: 2024-12-11 08:59:31
Score: 3.5
Natty:
Report link

I had to set the region to get rid of the error "No such host is known".

https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/net-dg-region-selection.html

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Patrik B.

79271062

Date: 2024-12-11 08:58:31
Score: 3.5
Natty:
Report link

use soft iwarp and setup the system with siw.

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

79271060

Date: 2024-12-11 08:58:31
Score: 1
Natty:
Report link

I have experienced this when the columns display in are not the same with data

or, you can try :

  1. Check route
  2. Clear route, cache, & config
php artisan config:cache
php artisan config:clear
php artisan route:clear
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Agus Prasetyo

79271059

Date: 2024-12-11 08:58:31
Score: 3.5
Natty:
Report link

I had to set the region to get rid of the error "No such host is known".

https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/net-dg-region-selection.html

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Patrik B.

79271058

Date: 2024-12-11 08:58:31
Score: 1
Natty:
Report link
confluence = Confluence(
url='https://you-company-corp.net/confluence',
token='xxxxNzYxMDc0OoNAsxC/CSYfNZC2xxxx',
verify_ssl=False

) if your company hosted the domain. You need to add a base_path(/confluence) to the url

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

79271056

Date: 2024-12-11 08:57:31
Score: 2.5
Natty:
Report link

If you’d rather not build your own from scratch, I’ve put together a lightweight Bash script that extends git log with a few extra features to streamline multi-repo browsing:

Feel free to give it a try: https://github.com/thomasklein/mgitlog/

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

79271048

Date: 2024-12-11 08:55:29
Score: 12.5 🚩
Natty: 5.5
Report link

Good day, i dont know if you could help me, no matter what i do i kept getting a mismatch, please how do i prepare the data from front-end before sending it to backend for hashing? do i need to hash it at the frontend before sending it to the backend? i will really appreciate your help.

Reasons:
  • Blacklisted phrase (2): appreciate your help
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): how do i
  • Blacklisted phrase (0.5): i need
  • Blacklisted phrase (1): Good day
  • RegEx Blacklisted phrase (3): you could help me
  • RegEx Blacklisted phrase (1): i do i kept getting a mismatch, please
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Solex D-man

79271040

Date: 2024-12-11 08:52:28
Score: 5
Natty: 5.5
Report link

Thanks, helped resolving the problem

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ron

79271039

Date: 2024-12-11 08:51:27
Score: 0.5
Natty:
Report link

If you switch the "Built in" Azure Service bus explorer from Peek Mode to Receive Mode you might get two new buttons (depending on rights and if there are messages).
These are Dead-letter and Purge messages.

Even though the latter says "Purge" it might be that it does a Receive-and-delete. Which might have an impact on CPU/RU if you have lots and lots of messages. Might. I lack sources for this claim as it is harvested crud from historicial links and discussions and whatnot.

Dead-letter button Purge messages button

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

79271036

Date: 2024-12-11 08:50:27
Score: 0.5
Natty:
Report link

I had the same problem. How do you get ‘monaco’ to define theme? Seems you need to register the theme not from monaco-editor import, but this way

    declare let monaco: any;
   
    export const monacoCustomLanguageConfig: NgxMonacoEditorConfig = {
        onMonacoLoad: monacoCustomLanguagesLoad
    }

    export function monacoCustomLanguagesLoad() {
        monaco.languages.register({id: ‘csharp’});
        monaco.editor.defineTheme(‘csharpTheme’, yourCSharpTheme);
        monaco.languages.setMonarchTokensProvider(‘csharp’, yourCsharpSyntaxLanguage);
    }
Reasons:
  • Blacklisted phrase (1): How do you
  • Whitelisted phrase (-1): I had the same
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Лилия Безымянная

79271034

Date: 2024-12-11 08:50:27
Score: 1.5
Natty:
Report link

@AlbertDugba

i found solution by trying this on the vite react app, where i am using the tailwind css and then make a build with minifed version of the JS file with the tailwind css classes, see my vite.config.ts

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import cssInjectedByJsPlugin from "vite-plugin-css-injected-by-js";

export default defineConfig({
  plugins: [
    react(),
    cssInjectedByJsPlugin({
      relativeCSSInjection: true,
    }),
  ],
  build: {
    rollupOptions: { output: { manualChunks: undefined } },
    minify: true,
  },
  server: {
    host: "localhost",
    port: 3000,
  },
});
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @AlbertDugba
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Junaid

79271031

Date: 2024-12-11 08:50:27
Score: 0.5
Natty:
Report link

As per my recommendation:

CodeIgniter: Best for shared hosting, simple deployment, lower requirements, cost effective, easier maintenance.

Laravel: Ideal for VPS/dedicated hosting, needs server configuration skills, offers modern features, requires technical expertise

.

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

79271030

Date: 2024-12-11 08:49:27
Score: 1
Natty:
Report link

Not acceptable if you're really attached to list comprehension, as per OP, but it is easier to read:

import numpy as np
np.array(list_of_lists).flatten()
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Idiot Tom

79271024

Date: 2024-12-11 08:48:27
Score: 3
Natty:
Report link

I created a PyTorch implementation of Kernel Density Estimation (KDE) called torch-kde. Enjoy!

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

79271022

Date: 2024-12-11 08:46:26
Score: 1
Natty:
Report link

<mat-icon 
  [ngStyle]="{ color: selectedColor === color.checkedCircleColor ? 
                color.checkedCircleColor : color.innerCircleColor}"
  >{{ selectedColor === color.checkedCircleColor ?
     'check_circle' : 'circle' }}
</mat-icon>

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

79271012

Date: 2024-12-11 08:42:26
Score: 3.5
Natty:
Report link

This is not a solution, but just an information table:

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Yauheni Prakapenka

79271009

Date: 2024-12-11 08:40:25
Score: 2.5
Natty:
Report link

For whats app sharing url i am using w:300px; height:200px; sizes looks perfect for me. you can refer following link of my latest project. https://www.eramunnar.com/ image path : https://www.eramunnar.com/images/twitter.png

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

79271002

Date: 2024-12-11 08:37:23
Score: 6 🚩
Natty:
Report link

Попробуйте заменить FROM node:20-alpine AS builder на FROM node:20-alpine3.20 AS builder. Мне помогло. Подробнее о проблеме здесь https://github.com/nodejs/docker-node/issues/2175 и здесь https://github.com/prisma/prisma/issues/25817

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • No latin characters (3):
  • Low reputation (1):
Posted by: Константин Никулин

79270990

Date: 2024-12-11 08:34:22
Score: 1.5
Natty:
Report link

I made file Name to unique for every download

For Example : Add Date and Time at the end is an option to make every file unique (It works for me)

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sahil Kumar

79270983

Date: 2024-12-11 08:32:22
Score: 0.5
Natty:
Report link

SQL doesn't support merging cells like Excel, but you can group by FirstName and concatenate LastName values with a comma, as shown in the example, This might help achieve a similar result.

https://dbfiddle.uk/EF7pEwFr

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

79270982

Date: 2024-12-11 08:32:21
Score: 5
Natty:
Report link

You are all smart here, no doubt. Question: is it possible to find a bitcoin transaction on the network and speed it up???? Time has come. Personally, I don't know. But opinions are divided!

Reasons:
  • Blacklisted phrase (1): ???
  • Blacklisted phrase (1): is it possible to
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sergej

79270979

Date: 2024-12-11 08:32:21
Score: 0.5
Natty:
Report link

Imagine you're a detective trying to crack a tough case, and your memory is like your trusty notebook. The bigger your notebook, the more clues you can keep track of at once.

For GPT-3, with its 2048-token limit, think of it as a detective with a small notebook. This detective can only juggle about 1500 words at a time. It's like having a memory that quickly forgets older details as new ones come in!

Now, GPT-4 is like a super-detective with a giant whiteboard, handling anywhere from 8192 to 32768 tokens. This detective can manage entire case files, suspect lists, and witness statements all at once. It's like having a memory that never forgets.

Here's where it gets interesting with RAG. RAG doesn't just look forward and backward within the model's context window. Instead, it's like giving our detective a magical library card.

When using RAG, imagine our detective (the LLM) gets a new case (your question). Instead of relying only on their memory (context window), they rush to the library (an external database) and quickly grab relevant books (documents) that might help solve the case.

The detective then reads these books and combines this new information with what they already know to crack the mystery. The size of the context window determines how much of this combined information (from memory and the library) the detective can handle at once.

So, in your GPT-3 example, it's not about looking 2048 tokens forward and backward. It's about how much total information (from the retrieved documents and the question itself) can fit into that 2048-token window. If the information from the documents and the question exceeds 2048 tokens, some of it will have to be left out—like our detective having to choose which clues to focus on because their notebook is full.

That's why larger context windows, like in GPT-4, are so exciting. They're like giving our detective a bigger brain to work with more clues at once. Furthermore, RAG isn't limited to what's in the model's original training data. It can pull fresh info from its "library," making it great for up-to-date facts. It's like our detective having access to a constantly updated criminal database.

So next time you're using an AI with RAG, picture a super-smart detective racing through a magical library, piecing together clues to answer your questions. The bigger their memory, the more complex the mystery they can solve.

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

79270975

Date: 2024-12-11 08:28:20
Score: 1.5
Natty:
Report link

Found this in the Cython repo, and it might be easier.

"""
Compile a Python script into an executable that embeds CPython.
Requires CPython to be built as a shared library ('libpythonX.Y').

Basic usage:

    python -m Cython.Build.BuildExecutable [ARGS] somefile.py
"""
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: nggit

79270959

Date: 2024-12-11 08:21:18
Score: 0.5
Natty:
Report link

The following values are considered false:

  • None
  • False
  • zero of any numeric type, for example, 0, 0L, 0.0, 0j.
  • any empty sequence, for example, '', (), [].
  • any empty mapping, for example, {}.
  • instances of user-defined classes, if the class defines a nonzero() or len() method, when that method returns the integer zero or bool value False. 1 All other values are considered true — so objects of many types are always true.

Source: https://docs.python.org/2/library/stdtypes.html#truth-value-testing

So by these conventions None is False and np.nan is True.


Boolean dtype implements Kleene Logic (sometimes called three-value logic).

Source: https://pandas.pydata.org/docs/user_guide/boolean.html

For example, True | NA gives True because NA can be True or False and in both case the OR operation (|) will result to True because we have at least one True. Similarly, False | NA gives NA because we don't know if there is one True.

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

79270955

Date: 2024-12-11 08:20:17
Score: 0.5
Natty:
Report link

You can use discord.CustomActivity(), which is equivalent to discord.ActivityType.custom

my_message = "Hello world!"
activity = discord.CustomActivity(name=my_message)
await client.change_presence(activity=activity)

Documentation Reference

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Enitoxy

79270950

Date: 2024-12-11 08:18:17
Score: 2
Natty:
Report link

You can just use NavigationManager.NavigateTo("Account/RegisterConfirmation") instead of RedirectManager.RedirectTo( "Account/RegisterConfirmation", new() { ["email"] = Input.Email, ["returnUrl"] = ReturnUrl });

It works on my side

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

79270948

Date: 2024-12-11 08:18:16
Score: 5
Natty:
Report link

I have the same issue and I believe that Alexes answer doesn't work.

What he (and I) need is:
Have access here: 192.168.10.100:8080/video
No Access here: 192.168.10.100:8080

By forwarding ports you get access to both. That is not a solution.

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Low reputation (0.5):
Posted by: Jan Kadera

79270943

Date: 2024-12-11 08:16:16
Score: 1.5
Natty:
Report link

For g++-11. You can compile above codes using:

>>g++-11 -std=c++20 -fmodules-ts helloworld.cpp main.cpp  -o main -xc++-system-header iostream
>>./main
Hello world
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: lzl jnu

79270942

Date: 2024-12-11 08:16:16
Score: 3
Natty:
Report link

Make sure the runtime ID in your publish profiles is not win10-x64. That doesn't work anymore (net 8+). It has to be win-x64.

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

79270940

Date: 2024-12-11 08:15:15
Score: 2.5
Natty:
Report link

Use PendingIntent.FLAG_IMMUTABLE instead.

FYI check this: USBMonitor#register

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Kolyneh

79270934

Date: 2024-12-11 08:13:15
Score: 4
Natty:
Report link

Interesting. I was thinking of 'embedding' JWT in the body. So one JWT/JWE is for Authentication. Instead of using it to connect to an API for data exchange the data to be exchanges is in it's own JWT. This JWT represent a defined digital transport / trade document as a small dataset. This allows the recipient to use the included data 'how he needs to' and not based on a predefined business logic that needs to be agreed to have an API integration. The use case here is a federated system where many parties collaborate in the operational logistics of the supply chain but do not have singular authority / platform they adhere to. Idea is that a party can participate on receiving an sharing data in this manner that provides evidence of sharing / receiving without a centralized system or the usage of blockchain to register immutable.

Any feedback on good practices of including JWT's in the body of a request?

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Ewout Bouwman

79270924

Date: 2024-12-11 08:08:13
Score: 1
Natty:
Report link

I have tried removing them but still get the error

Springboot: 3.3.3 Java: 21

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Failed to initialize dependency 'flywayInitializer' of LoadTimeWeaverAware bean 'entityManagerFactory': Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Unable to obtain connection from database: HikariPool-1 - Connection is not available, request timed out after 60005ms (total=1, active=1, idle=0, waiting=0)

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

79270921

Date: 2024-12-11 08:07:12
Score: 5.5
Natty:
Report link

My post seems to give a way to get selected files on the Desktop, but what I am thinking about now is how to get the files in the File Selection Dialog.

How to Get the Selected File Path from a File Dialog in Windows Using Python?

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: LeapingQuantum

79270915

Date: 2024-12-11 08:04:11
Score: 3
Natty:
Report link

The value needs to be set to false as if defaults to true.

getInitialValueInEffect: false

Help topic here

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

79270914

Date: 2024-12-11 08:04:11
Score: 5.5
Natty: 5.5
Report link

have you created the website for your music visualization project?

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

79270912

Date: 2024-12-11 08:03:10
Score: 1
Natty:
Report link

I was using Python 3.13 but only a very early version of the PyWorkforce package was compatible with that (currently very recent) Python version. In my case it was fine to switch to Python 3.12, so I've fixed it that way.

python3.12 -m venv venv
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Lodewijck

79270906

Date: 2024-12-11 08:02:09
Score: 5
Natty:
Report link

here is a solution you can look into https://github.com/flutter/flutter/issues/159927#issuecomment-2534334711

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

79270905

Date: 2024-12-11 08:02:09
Score: 0.5
Natty:
Report link

The TypeScript Playground now supports this by Automatic Type Acquisition (ATA) https://www.typescriptlang.org/play/#handbook-4

So your original code should just work now, as it is

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