1. Open LocalWP
Launch Local (by Flywheel).
2. Go to Your Site’s Settings
In the left sidebar, click on your site (e.g., “MySite”).
Click on the “Overview” tab (sometimes labeled “Site” or “Site Overview” depending on your version).
3. Change the Domain
Find the field labeled “Site Domain” (or “Domain”).
Change it from something like localhost:10005 to:
mysite.local
Click “Apply Changes.”
4. Allow LocalWP to Update Hosts File
Local will prompt you to update your system’s hosts file.
Click “Allow” or “Yes” when it asks for administrator/root access.
This step maps mysite.local → 127.0.0.1 on your computer.
5. Restart the Site
Stop the site (if running) and click Start Site again.
6. Open the Site
Click “Open Site” — it
should now open:
I'm confused. Why would you want to do that?
there are 65 and you make 6 it will need the most of 10 people to make it and need 5 coder to make it
Corrigi usando na .env uma opção chamada "Transaction Pooler" do Supabase. A conexão deu tudo certo após isso. Pois parece que o IPv6 não é totalmente suportado no meu Ubuntu, então temos que usar algo como IPv4.
Transaction Pooler e usa a string de conexão fornecida, geralmente com a porta 6543
As of November 2025, Gitlab CI supports defining dependencies on a granular level when working with parallel/matrix.
stages:
- prepare
- build
- test
.full_matrix: &full_matrix
parallel:
matrix:
- PLATFORM: ["linux", "windows", "macos"]
VERSION: ["16", "18", "20"]
.platform_only: &platform_only
parallel:
matrix:
- PLATFORM: ["linux", "windows", "macos"]
prepare_env:
stage: prepare
script:
- echo "Preparing $PLATFORM with Node.js $VERSION"
<<: *full_matrix
build_project:
stage: build
script:
- echo "Building on $PLATFORM"
needs:
- job: prepare_env
parallel:
matrix:
- PLATFORM: ['$[[ matrix.PLATFORM ]]']
VERSION: ["18"] # Only depend on Node.js 18 preparations
<<: *platform_only
Source: https://docs.gitlab.com/ci/yaml/matrix_expressions/#use-a-subset-of-values
Ideally, you could combine a Smalltalk image concept with peristence and just store all your objects in a real database.
When designing a domain model for something like a Credit Line that changes over time, a solid approach is to keep a core CreditLine entity with just stable info (like its ID) and store all changing details (conditions, financial entities, contributions) in dated snapshots or Statements. This avoids duplicating static info and keeps complete history, letting you query the state at any date by picking the right snapshot. This matches your Option C and keeps the model clean and easy to maintain.
Another approach is Event Sourcing, where you store every change as an immutable event and rebuild the Credit Line’s state by replaying those events. This offers a detailed audit trail and no data duplication but adds complexity in querying and implementation.
For your case, Option C is usually simpler and practical unless you need fine-grained change tracking that Event Sourcing provides. Both are established patterns for managing evolving, versioned domain data.
To remove the first matching element, one may:
xs.extract_if(.., |x| *x == some_x).next();
The resulting option will contain the value, if contained in the vector.
It turns out that nodeJS code is using a different data that browser uses.
So this issue is caused by different data.
I am working in Apache OpenOffice Calc (spreadsheet). To rotate a chart, I do this:
Select the chart
Select "FORMAT" from the top menu bar
Select "Graphic" from the drop-down menu
Select "Position-Size" from the available options
Select the "Rotation" tab from the Position-Size pop-up
Go To "Rotation Angle on the bottom of the pop-up
Set the Rotation Angle I want for my chart.
I hope This helps!
Solution by alexanderokosten
This guide explains how to install .NET Framework 4.0 and 4.5 on VS 2022, as it doesn't support these versions out of the box. Microsoft says these versions are outdated but many people still need them to maintain legacy apps.
Requirements:
- VS 2022
- 7-zip (I haven't tested WinRar)
Notes:
- When .NET 4.0 is mentioned, it means .NET Framework 4.0
- When it's mentioned to open as an archive or un-zip, use 7-zip
The steps:
- Download the .NET 4.0 Reference Assemblies from https://www.nuget.org/api/v2/package/Microsoft.NETFramework.ReferenceAssemblies.net40/1.0.3
- Once downloaded, open them up as an archive
- Navigate to Build > .NETFramework
- Keep 7-zip open and open the folder C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework
- Delete the existing v4.0 (or make a backup)
- Extract the v4.0 folder from 7-zip into the folder (make sure to not extract the contents but the folder itself)
- Open Visual Studio 2022 and now you should see .NET 4.0 as a .NET Framework target
React Router V6 has a backwards compatibility package. Perhaps that's a middleground worth exploring?
You’re using:
"firebase-tools": "^14.24.1"
"firebase-functions": "6.6.0"
→ Problem: emulator support for firebase-functions v2 CloudEvent format was added only in v14.0.0+, and full support came later (~v15+).
Fix:
Upgrade Firebase CLI and dependencies:
npm install -g firebase-tools@latest
npm install firebase-functions@latest firebase-admin@latest
The Firebase Emulator does not yet fully support Node 22 runtime.
Your package.json says:
"engines": {
"node": "22"
}
Fix:
Downgrade temporarily to a supported version for local testing:
"engines": {
"node": "20"
}
Or use Node 20 in your local environment when emulating.
Separate v1 and v2 triggers into different files to avoid cross-import issues:
// index.js
exports.authTriggers = require('./auth');
exports.firestoreTriggers = require('./firestore');
That avoids old v1 helpers accidentally mixing with v2 definitions.
If you need confirmation that it’s not your logic:
firebase deploy --only functions:onPrivateUserDataUpdateTrigger
of course signal approach is better, the main reason is the performance, just add console log into method and signal and compare the repetition of that, you will notice that method is running multiple times unnecessary, while the computed signal is aware of dependencies and only run again when one of the dependencies is changed.
AI DeepSeek offered following solution as an option
Procedure PresentationGetProcessing(Data, Presentation, StandardProcessing)
StandardProcessing = False;
Try
If Data.Ref = Undefined Then
StandardProcessing = True;
Return;
EndIf;
If Data.Ref.IsEmpty() Then
StandardProcessing = True;
Return;
EndIf;
fullDescr = Data.Ref.FullDescr();
Presentation = StrReplace(fullDescr, "/", ", ");
Except
// If any error occurs, fall back to standard processing
StandardProcessing = True;
EndTry;
EndProcedure
But I am not sure that this is the correct way...
Looking forward for other answers...
I'm also just getting started with coding and recently came across the idea of contributing to open source. At first, I had no clue where to begin, but after doing a bit of digging, I realized you don’t need to work for a company to contribute.
What I’ve been doing is checking out projects on GitHub that seem interesting—especially ones using the language I’m learning. I look for issues labeled “good first issue” or “beginner friendly.” Those are perfect for people like us who are just starting out.
You don’t need to be an expert. You can help by fixing small bugs, improving documentation, or even just asking if there’s something you can do. Most open source communities are super welcoming and happy to guide you.
So yeah, if you’re thinking of jumping in, go for it! We’re all learning. Good luck!
It should be
template <typename T>
void push_front(T&& value) {
// ...
new_head->value = std::forward<T>(value);
// ...
}
If value is U&& then it will give new_head->value = std::move(value);
If value is const U& then it will give new_head->value = value;
See When is a reference a forwarding reference, and when is it an rvalue reference?, Is there a difference between universal references and forwarding references?
2025 edit:
Great answer to this problem here: Medium blog by Ted Goas
Rather than, say, wrapping an image in a tags, you instead have to wrap the a tags in table html.
I believe this is an iOS 26.1 bug unfortunately :(
I'm also facing the same issue, tests runs just fine with direct class name or even direct package reference, but as soon as I try to run with groups then it fails with null pointer exception.
I noticed that, when groups are included in xml then it even not going for @BeforeClass and @BeforeMethod methods from superclass which is overridden in test class and that is the reason test is trying to execute before initializing the web drivers and ended up with null pointer exception.
I've tried to rename the methods in superclass to avoid collision but none worked. With same configuration it runs fine if I remove the groups from testng xml suite.
Note that group names are correctly specified in the @test.
If the backend relies on Windows-only features (COM/Crystal Reports/Windows auth), I willl tailor this to Windows (EB/ECS-Windows). Otherwise I would proceed with ECS Fargate + ALB host rules + S3/CloudFront - that’ll give you per-app autoscaling, isolation, and lower ops without the VM Tetris.
If you are not tracing your project, I would suggest to tracing immediatedly using LangSmith, and LangSmith comes with the built in evaluators to evaluate your document retrieval and even more using LLM as Judge option
Understand that every data is unique, we cannot say on first look. I would strongly encourage you to create a dataset in LangSmith and test with multiple version. By this time you would have a rough idea of which works
Although not an answer to the question (still hope there is some clever way (as always in haskell...)). For reusing determining lower and upper bounds I came with something like this:
data ValueRange = MkValueRange { minValue :: Double, maxValue :: Double }
instance Show ValueRange where
show (MkValueRange minV maxV) = "ValueRange(" ++ show minV ++ ", " ++ show maxV ++ ")"
fmap2 :: (Double -> Double -> Double) -> ValueRange -> ValueRange -> ValueRange
fmap2 f (MkValueRange minA maxA) (MkValueRange minB maxB) =
MkValueRange (minimum results) (maximum results)
where
results = [ f x y | x <- [minA, maxA], y <- [minB, maxB] ]
(<+>) :: ValueRange -> ValueRange -> ValueRange
(<+>) = fmap2 (+)
(<->) :: ValueRange -> ValueRange -> ValueRange
(<->) = fmap2 (-)
(<*>) :: ValueRange -> ValueRange -> ValueRange
(<*>) = fmap2 (*)
(</>) :: ValueRange -> ValueRange -> ValueRange
(</>) = fmap2 (/)
example1 :: ValueRange
example1 = MkValueRange 10 20 <+> MkValueRange 5 15
I got around the problem in the following way:
@Bean
public OpenAiApi openAiApi() {
HttpClient httpClient = HttpClient.newBuilder().version(HttpClient.Version.HTTP_1_1).build();
JdkClientHttpRequestFactory jdkClientHttpRequestFactory = new JdkClientHttpRequestFactory(httpClient);
return OpenAiApi.builder()
.apiKey(this.apiKey)
.baseUrl(this.baseUrl)
.restClientBuilder(
RestClient.builder()
.requestFactory(jdkClientHttpRequestFactory)
).build();
};
Credits to: https://github.com/spring-projects/spring-ai/issues/2653#issuecomment-2783528029
You can hide those details into pure python bootstrap like this.
It is possible to "do it right" in shell, but it does not evolve well.
Alternatively, consider bootstrap like this to hide those:
... and other unnecessary details, especially for simple start.
Shopify maintains strict control over its checkout process for security so as far as I know it is not possible to integrate unapproved payment service provider.
You can consider to implement this approach that might work properly:
Create a Draft Order
Create a PayGreen payment link for the draft’s total and include the draft order ID as metadata
Redirect the customer to PayGreen’s hosted page
On PayGreen webhook success, verify signature, then complete the draft and mark it paid with an external transaction (“PayGreen”)
On failure/timeout, cancel the draft and restock
Try reposting this a regular question.
To answer my own question, OpenLayers doesn't allows dispatching custom events. cf. https://github.com/openlayers/openlayers/issues/14667
Turns out, I was using eglChooseConfig the wrong way. The fix was simple:
EGLint total_config_count;
success = eglChooseConfig(egl_display, config_attrs, NULL, 0, &total_config_count);
EGLConfig* all_configs = (EGLConfig*) malloc(sizeof(EGLConfig) * total_config_count);
success = eglChooseConfig(egl_display, config_attrs, all_configs, total_config_count, &total_config_count); //Changed the last argument from NULL
Hope this was useful!
Bro I finally found the Answer, after 5 days of going through everything.
The Solution is by changing one "Build Settings" Setting named "Approachable Concurrency" to know (refer to the screenshot)
Or if you have VScode, open your project "project.pbxproj" file and change this here

If you have any questions or further additions please ask away.
I have resolved it. I found a project that it can bypass it. https://github.com/JustLikeCheese/NexToast.
Ted Lyngmo answered the question (IDK how to use comments to answer). I did not find a cmakelists that worked on the github repo, but as I looked again I saw one that worked for me. Thanks!
What worked for me was commenting out the code in android/app/src/main/kotlin/<app bundle name>/MainActivity.kt
You can any use env for MONGO_USER and MONGO_PASSWORD. Remove MONGO_DATABASE AND MONGO_CLUSTER in .evn file. Give the Database name and cluster in application properties file. Run the code. It worked for me.
When users log off the server, why not automatically run a VS Code Server kill and cleanup process? You could even schedule it daily to prevent multiple users from accumulating bloat over time. That way, system admins don’t have to manage manual cleanups. It’s easy to script and you could even trigger it when a VS Code window closes to make the process fully automated. Honestly, no production server should retain a .vscode-server directory long-term. It should be purged once a session ends or work is complete.
This answer works great! Thank you!
So the complete error meassage reads:
line 2870967: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1ax to use near ')' at line 1
I checked out the line and more parantheses are being closed than opened. But as I have said, this was created via web UI dump, which is directly from IONOS, it is not PHP My Admin. I dont know the exact command it uses. But there should not be any errors in it.
The thing you said, Allen, makes totally sense. I guess before that line, there is some data that cannot be parsed and that way an opened paranthesis cannot be read.
Is there a fix for this?
I have contacted IONOS, and they suggested some fixes. I'll try them out on Monday. If anything works I'll post it here for future reference.
please help you give my diamind please
Form information is visible by using admin page after adding the model into admin.py file.
The form data was saved but it was not visible when admin page is used.
Well, seems I can use onNodesChange() from useVueFlow(). I have simply to implement logic to distinguish between a single node selected from multiple node selected, because the routine is called for every single selection event. So the problem is in my code, not in vue-flow. Sorry for the noise.
Right now, it creates them all as a folder, (including main.c)
Because that's what `create_dir_all` does.
Just create the file separately after using creating the directories.
There are some application and services which are responsible for removing any dev-certs added to keep a specific certificate always as the first priority (maybe - like an organization's certificate). Look for these app or services on your computer. I've had installed one for my previous job and I didn't know that this app is removing them.
How to find the app or process: Install Procmon from here. Then add a filter on Path which Contains Microsoft\SystemCertificates\My\Certificates. Then look for the reason in the process Name column. find it's exe and remove it from your computer (inside programs and features).
As @Barmar said in the comments, there is no built-in property to check if the child process is about to read from the pipe. Even standard terminals allow input during process execution. So when I run the following code, I can enter text that is as not being processed by the child process, the shell tries to execute after process termination.
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a[2], b[2], child_read, child_write;
char output[4] = {0};
pipe(a);
pipe(b);
child_write = a[1];
child_read = b[0];
FILE *parent_write = fdopen(b[1], "w");
FILE *parent_read = fdopen(a[0], "r");
if (fork() == 0) {
close(b[1]);
close(a[0]);
fclose(parent_read);
fclose(parent_write);
dup2(child_read, STDIN_FILENO);
dup2(child_write, STDOUT_FILENO);
sleep(3);
printf("ok\n");
close(child_read);
close(child_write);
exit(0);
}
close(child_read);
close(child_write);
if (fread(output, 1, 3, parent_read) > 0) {
printf("%s\n", output);
}
fclose(parent_read);
fclose(parent_write);
close(b[1]);
close(a[0]);
}
$ gcc -o test test.c ; ./test
ls
ok
$ ls
test test.c
@herrstrietzel u r right maybe setting up the correct environment can defiantly reproduce the problem, but I thought to give the minimal snippet to stay away from complexity. but here u go full setting:
Windows 10, latest Edge browser
Latest Next.Js + Tailwind CSS + Shadcn
CSS codes in -> globals.css
Pages are in type script
The problem happens in both inputs (Shade-Cn input and Next-JS default input) they will clip this font without any reason.
I think you need to open port 8000 on your EC2 Security Group and UFW, since Django’s dev server runs on that port, and it's currently blocked externally. Thanks.
this is a wonderful article that I think answers your question https://betweendata.io/posts/secure-spring-rest-api-using-keycloak/
I updated code like that. The result was successful.
________________________________________________________
<template>
<VueDatePicker v-model="date" class="vue-datepicker"></VueDatePicker>
</template>
<style>
.vue-datepicker .dp__cell_inner {
height: 56px !important;
width: 56px !important;
font-size: 3rem;
padding: 35px!important;
}
.vue-datepicker .dp__cell_inner:hover {
background-color: #f0f0f0!important;
}
.vue-datepicker .dp__cell_inner:active {
background-color: #e0e0e0!important;
}
.vue-datepicker .dp__cell_inner:focus {
background-color: #d0d0d0!important;
}
</style>
<script setup>
import { ref } from 'vue';
import { VueDatePicker } from '@vuepic/vue-datepicker';
import '@vuepic/vue-datepicker/dist/main.css'
const date = ref();
</script>
Are you ok?
The problem was resolved, there was nothing wrong with the 'settings.py', but a database field that conflicted with the previous migrations. Once I filled the field with data, the error stopped and the django site worked fully.
What a lot of answers and I've not seen one that exploits the sort function itself to build the list of duplicates as the original list is sorted. The top answer is order n + n log n. This answer is order n log n.
a = [1,7,2,3,4,5,6,1,4];
dups=new Set();
a.slice().sort((a,b)=>{if(a<b) return -1; else if(a>b) return 1; else {dups.add(a);return 0}});
@Timeless000729 there are still some missing definitions, like grad and Uncertainties .
Then where does HashMap comes from? You should include an open statement and possibly an #r "nuget: .. if it comes from a library. You say diffs is a list of floats, ok then include it. You don't need the exact definition if it's not relevant, but at least something that makes it compile.
If I pick your code, put it in a script and it doesn't compile, not because of the problem you mention but because of a missing definition, how can I possibly help you?
select a, b, c, sum(diffCnt) from
(select a, b, c, 1 as diffCnt from T1 union all select a, b, c, -1 as diffCnt from T2 ) tmpt
group by a, b, c having sum(diffCnt) <> 0
The discrepancy arises because the user is calculating R-squared for univariate regressions incorrectly by subtracting the mean of Y, which is not appropriate for models without an intercept. To align with the geometric interpretation, R-squared should be computed as the squared ratio of the norm of the predicted values to the norm of Y. Here's how to fix it:\n\n1. Replace costheta1 = np.linalg.norm(Y1 - np.mean(Y)) / np.linalg.norm(Y - np.mean(Y)) with costheta1 = np.linalg.norm(Y1) / np.linalg.norm(Y).\n2. Similarly, replace costheta2 = ... with costheta2 = np.linalg.norm(Y2) / np.linalg.norm(Y).\n\nThis adjustment ensures that the calculated R-squared values (cos²(theta)) for univariate regressions match the angles (45° and 120°) set in the script.
If you're using the docker container like me, you have missed to pass:
-c 'config_file=/etc/postgresql/postgresql.conf'
// Source - https://stackoverflow.com/a/50544587
// Posted by Danny Tuppeny
// Retrieved 2025-11-09, License - CC BY-SA 4.0
Future getData() async {
await new Future.delayed(const Duration(seconds: 5));
setState(() {
\_data = \[
{"title": "one"},
{"title": "two"},
];
});
}
\n
If you google "telegram bot add new line", this question is at the top, but there's no \n among the answers.
Is there a way to change color previous active tab ?
Addressing render-blocking resources in WordPress without using a plugin requires direct code changes, primarily in your theme's functions.php file and sometimes in your HTML header. It focuses on how the browser prioritizes loading JavaScript and CSS.
For a step-by-step implementation guide that includes the exact code snippets and detailed procedures for handling both JS deferral and Critical CSS extraction without relying on a plugin, I've covered the complete process in this guide:
How to eliminate render blocking resources in wordpress without plugin
Got it — that “flash of light background” when switching to or loading dark mode is a common issue, and you’re right that it’s usually a kind of FOUC (Flash of Unstyled Content).
Before diving into fixes, could you share the following?
1. The way you’re currently handling dark mode (e.g., CSS prefers-color-scheme, JS toggle, or CSS class like .dark on <html>).
2. Whether you’re using a framework (like React, Next.js, Astro, etc.) or plain HTML/CSS/JS.
3. The part of your code that sets the dark/light theme (HTML head + relevant CSS/JS).
Once I see that, I can pinpoint why the flash is happening and give you an exact fix (for example, inlining a script in the <head> that applies the theme before paint).
If you want, you can paste or upload the code for:
your <head> section, and
your dark mode script or CSS toggle code.
Would you like me to explain the general reasons and fixes for this issue first (so you can understand the concept), or do you want to go straight into fixing your specific code?
Dimensionality reduction ended up working a lot, stopped my code from crashing and reduced the column size down to 150 from 34000 (after encoding with one hot encoder). I used a pipeline with columntransformer with a sparse output and truncated svd, code posted below:
categorical = ["developers", "publishers", "categories", "genres", "tags"]
numeric = ["price", "windows", "mac", "linux"]
ct = ColumnTransformer(transformers=[("ohe", OneHotEncoder(handle_unknown='ignore', sparse_output=True), categorical)],
remainder='passthrough',
sparse_threshold=0.0
)
svd = TruncatedSVD(n_components = 150, random_state=42)
pipeline = Pipeline([("ct", ct), ("svd", svd), ("clf", BernoulliNB())])
X = randomizedDf[categorical + numeric]
y = randomizedDf['recommendation']
this brought my shape down to (11200, 300) for training data.
Try the below code in your refresh endpoint; this seems to work for me.
if (!Request.Cookies.TryGetValue("refreshToken", out string? refreshToken) ||
string.IsNullOrEmpty(refreshToken))
{
return Unauthorized();
}
its a dead project, and links are not active for buildozer, messed not very centralize.. .
Mostly the languguage or js isnt fast , a DL of 2mb took 12 hours and corrupted.
Which operating system are you using?
The "PHP Server" functionality that you are using is a built-in feature of your version of Visual Studio Code (then please share the version of it) or is it by an extension of it, then please share the Name and ID of the Extension and its version information as well.
And as I read from your question, you don't like to click which I sympathise with, would you please be so kind and share how you start your editor and how you pass the information where the project is located on your system (the directory)?
Is there any solution to this? I am also facing the same error.
The simplest is to share the file to your app, after it's modified to accept them https://developer.android.com/training/secure-file-sharing/request-file
Yeah, sounds like that should be possible. Go for it!
I think a bipartite graph can meet your need.
First, you need to move the rowname to the first column, convert it to the data frame and change it to a long table. I also exclude rows with values "0".
library(dplyr)
df <- cbind(Name = rownames(data), data) %>%
as.data.frame() %>%
pivot_longer(!Name, names_to = "Plan", values_to = "n") %>%
mutate(n = as.numeric(n)) %>%
filter(n > 0)
Use the package called bipartiteD3 to create the chart. But I want to sort the chart based on the 'n' to make the chart even more attractive.
SortPrim <- df %>% # Sorting for the first column (Name)
group_by(Name) %>%
summarise(Total=sum(n))%>%
arrange(desc(Total))
SortSec <- df %>% # Sorting for the second column (Plan)
group_by(Plan) %>%
summarise(Total=sum(n))%>%
arrange(desc(Total))
The chart created below can be further adjusted to meet your preference. I have set it to 'vertical' because it's a very long list. If you prefer a horizontal chart, as you provided in your question, you should change details from line 10. I still prefer the vertical version though. Read the documentation to make further adjustments.
library(bipartiteD3)
bipartite_D3(df, colouroption = 'brewer',
Orientation = 'vertical',
ColourBy = 1,
PercentageDecimals=1,
PrimaryLab = 'Plan',
SecondaryLab = 'name',
SiteNames = '',
SortPrimary = SortPrim$Plan,
SortSecondary = SortSec$Name,
MainFigSize = c(500, 3600),
IndivFigSize = c(200, 1300),
BoxLabPos = c(20, 20),
PercPos = c(110,110),
BarSize = 20,
MinWidth = 10,
Pad=8,
filename = 'Plot')
Could you let me know if you got this working? Are you using the Home, Professional, Education, or Enterprise version of Windows?
I've got some intermittent issues too. I am looking for a solution that is consistent and reliable.
Variadic functions are what I was looking for, thank you. The number of parameters, which are additional functions, are known. The purpose of this was to call another function which takes variadic parameters, but my use has more steps before the child call
@Joakim Danielson, Thanks! Creating another variable to represent the latest value is also a good suggestion!
@BrightLights I am running into same issue, were you able to found any solution?
@Warren Burton, Thanks! Yes, I'm sure it's a sorting performance problem. Each time the user tap the app, there're tens to hundreds of calculations are working depending on the latest sorted value. I have tried to use async/await, the result is not that good, still feels stuck.
@Iorem ipsum, thanks! If you do not use relationship arrays, how do you design SwiftData models? Like this question, historyValueList should be a series of values, it seems there's no other way to store many values in SwiftData.
Use Counter.most_common() to sort by frequency and take the keys:
from collections import Counter
my_list = [3,8,11,8,3,2,1,2,3,3,2]
new_list = [x for x, _ in Counter(my_list).most_common()]
# new_list -> [3, 2, 8, 11, 1]
Did you ever find a solution to this?
float y_shapeBottom = m_shape->getPosition().y - (m_shape->getSize() / 2);
float y_shapeTop = m_shape->getPosition().y + (m_shape->getSize() / 2);
The + and - signs are reversed because the window's initial coordinate is in the upper-left corner. Corrected code:
float y_shapeBottom = m_shape->getPosition().y + (m_shape->getSize() / 2);
float y_shapeTop = m_shape->getPosition().y - (m_shape->getSize() / 2);
@GuruStron - yes, that's it - this is what I missed. Thank you!
m_shape->getSize() // sf::Vector2f
While in your code you perform
m_shape->getPosition().x + (m_shape->getSize() / 2)
Which is illegal since getPosition().x is a float. Are you sure you did not want to use m_shape->getSize().x?
I agree with the comment that C would be harder than C++ or another language, it's certainly possible to do in C. You would end up recreating a lot of C++ or object oriented features as part of your project framework - work you wouldn't have to do otherwise. But you'd learn a lot, which sounds like your goal.
Related question:
Converted a script (myscript.sh) to executable binary (myscript.sh.x) using shc, executing myscript.sh.x generates the same result as the original script myscript.sh.
856bb1fd13ae:/tmp# shc -f myscript.sh
856bb1fd13ae:/tmp# ls
myscript.sh myscript.sh.x myscript.sh.x.c
856bb1fd13ae:/tmp# ./myscript.sh
a test script
856bb1fd13ae:/tmp# ./myscript.sh.x
a test script
856bb1fd13ae:/tmp#
Now, saved the container as docker image, say alpine:shc.
22.04 root:~/alpine_nma_security# docker commit 856bb1fd13ae alpine:shc
sha256:1f51389fb30af66f017686020375c680ce14a316b7e8728ca60746b0196e6c3f
22.04 root:~/alpine_nma_security# docker image list
REPOSITORY TAG IMAGE ID CREATED SIZE
alpine shc 1f51389fb30a 8 seconds ago 214MB
Now, if I start a container from image alpine:shc, and execute the binary myscript.sh.x, which is saved in the image,
22.04 root:~/alpine_nma_security# docker run -it alpine:shc /bin/bash
0178c235a5b0:/# cd /tmp
0178c235a5b0:/tmp# ls
myscript.sh myscript.sh.x myscript.sh.x.c
0178c235a5b0:/tmp# ./myscript.sh
a test script
0178c235a5b0:/tmp# ./myscript.sh.x
./myscript.sh.x: ��H�������f]�c�-c
0178c235a5b0:/tmp#
The shc generated executable binary only works where it's generated?
Well, i know i can do it in other ways, but my point was to check if it can be done with pure numpy/torch in some "equivalent" method to a regex.
My goal is to filter regions in a differential field that show some derivate sign sequence but with a variable shape. I can easily just map positive derivates to "1", negatives to "-1", flats to "0", or whatever and use a regexp, but i thought maybe it was achievable natively in numpy :/.
I asked GPT5-Thinking-High, I would check it out:
the shc is available for alpine:edge, but it's in the testing repo
Interesting. Happens to me if I use a buffer size of 10MB, but not when I use 5MB, yet you fail to reach maximum reading speed with a mere 3MB.
So it probably depends on the drive as well.
For some reason I cannot respond via Reply or Add Comments. So my apologies for adding this as an answer.
@DavidW
Thanks for pointing that out — you’re absolutely right that the release is new.
To clarify, this isn’t meant as a promotion or endorsement claim — I simply wanted to help people who were struggling to build the original project with newer PyTorch/CUDA versions. I’ve kept all the original license notices and attribution in place and documented every technical change in the repo.
When I said “community-maintained,” I just meant that I hope it can evolve into a collaborative fork if others find it useful. I appreciate you flagging the duplicate post; that was my mistake with multiple accounts and I’ve already corrected it.
When I try this approach, this line:
group_board_info = r_dict['data']['boards'][0]['groups']
results in this error for the use of the ['data']
TypeError: 'method' object is not subscriptable
I'm new to python and am slowly getting it to work with the Monday API. This is the problem that is humbling me currently.
Confusingly, the first argument to duckdb_create_list_value should be the type of the values in the list, not the type of the list itself. So, in your example, you would pass int_type, not list_type.
Whatever the rule is, you can write a function to test it. For example, perhaps you want to know if the array contains a 5, followed by a 7, which is followed by a 9. This could be done using a few vectorized operations, such as in Numpy first occurrence of value greater than existing value. For more complicated rules, you'll have to loop through the numbers in the array, using the same kinds of logic used in regex matching. For example, maybe you want to test if a row has a 5 followed by a 7 followed by a 9, with only negative numbers between the 5 and the 7. I don't think that can be done without a loop.
Source file names may not be human readable for several reasons related to compilation, caching, and module loading processes:
When a module is loaded, the system checks if the source has changed and may compile or cache bytecode to optimize loading speed. These cached or compiled files often have encoded or hashed names that differ from the original readable source name.
Source files may be automatically transformed or managed by the language tools or package managers, producing intermediate representations or artifacts with less human-friendly names used internally.
For Raku specifically, module files (.rakumod or .pm6) can declare multiple modules or classes internally, decoupling file names from module names to allow flexible naming and packaging conventions.
File naming conventions and module structures may also follow filesystem or namespace constraints, where characters are sanitized or encoded to comply with rules, resulting in names less immediately clear to humans.
In summary, the discrepancy between readable source code module names and actual filenames on disk often arises due to tooling optimization, language runtime requirements, or packaging designs that emphasize correct, fast loading and module namespace management over purely human readability.
This explanation aligns with common observations reported by Raku developers and on platforms like Stack Overflow regarding module source file handling.raku+1
It seems the font is "cropped" on your image, to fit in the box/input. You might trying changing the paddings, setting them all to 0 to start, and see how it changes
Thanks for @herrstrietzel
descent-override: 40%;
only this line was needed, and now font is perfect inside the input box.
2025 Update
Go to Project in the top menu bar.
Click Add Resource.
Select Icon.
A placeholder icon named icon1.ico will be created next to your .vcxproj file. Simply replace it with your own icon (keeping the same file name) and rebuild the project.
If I understand your question, the answer to the first step is in your question description.
Each service modifies shared data without publishing the results to other services.
Do not try to sync data across services until you know which service owns each piece of data.
The simplest first step is to move to a single database.
Get all the services to share a single transactional data store or have each service publish their outcomes (not transient state but the end state once they finish processing the data) to a common read model that reflects the eventual correct state of the data.
This is the first step toward a more manageable outcome.
Once you have this working, you can look at the service boundaries and figure out which service owns which data (not entities, but fields).
Make sense?
Correct order and variables:
NVM_VERSION="v0.40.3"
NVM_URL="https://raw.githubusercontent.com /nvm-sh/nvm/${NVM_VERSION}/install.sh" TMP_INSTALL="/tmp/nvm-install.sh"
NVM_DIR="$HOME/.nvm"
The fully expanded URL is: https://raw.githubusercontent.com/nvm-sh /nvm/v0.40.3/install.sh
Safe download + review commands: curl -fsSL "$NVM_URL" -o "$TMP_INSTALL" head -n 200 "$TMP_INSTALL" # review the installer
There is a way to trick GROUPBY to refer to two different value columns. It works by using the function FILTER inside the LAMBDA wrapper and passing not the values, but the row fields grouping column again to LAMBDA. Here is a link to a YouTube video with a detailed explanation what to do and why it works: https://youtu.be/b3Z2Bi5MnOA
In your case, because you first need to sum up the values and then divide the results, you will need to use inside the LAMBDA wrapper the function SUM wrapped around FILTER with first column divided by SUM wrapped around FILTER with second column.
Would something like this work? Not sure if it's more performant, but maybe a little?
javascript
const as_obj = data.reduce((accum, curr) => {
const { category_name, isparent, parent } = curr;
if (isparent && accum[category_name]) {
// This is a parent, but we've already seen one of its children;
// we created the parent key for that already.
return accum;
}
if (isparent && !accum[category_name]) {
// This is the first time we've seen the parent key, creating an object for it.
return { ...accum, [category_name]: { ...curr, children: [] } };
}
if (parent && !accum[parent]) {
// We haven't seen this child's parent yet, but we'll make a place for it.
accum[parent] = { category_name, children: [] };
}
const children = [ ...accum[parent].children, curr];
return { ...accum, [parent]: { ...accum.parent, children } };
}, {});
const res = Object.values(as_obj);
It looks like your main issue is with the JDBC URL and user setup, but if you want a more streamlined solution, our platform can deploy any JIRA Data Center version with PostgreSQL, MySQL, Oracle, or MSSQL. It handles all database configuration automatically—including the correct JDBC URL, schema, and user permissions—so JIRA can connect right away without manual tweaks.
👉 You can check it out here:https://artio5.gumroad.com/l/igirrd
I wanted to share an update for those following GroundingDINO development. Because the original repository hasn’t received updates in quite some time, I’ve created and published an up-to-date, fully compatible fork that brings the project current with modern tool-chains.
📦 New release: groundingdino-cu128 on PyPI
Supports PyTorch 2.7 and CUDA 12.8
Modernized C++/CUDA extension (migrated from TH/THC → ATen/Torch)
C++17 build system, cleaner setup for Linux and containerized environments
Ready-to-Run Docker image w\ PyTorch & CUDA support built-in
minimal tests included for reproducibility
Learn more, star and fork my repo at GhostCipher
All original license terms (Apache 2.0) and attributions have been preserved in full.
The fork’s changes are limited to modernization, packaging, and build maintenance—no original intellectual property or authorship has been altered or removed.
-GhostCipher
Thanks for the advice, but thats not it, I built both to release.