not sure if it´s the same with next.js, but in vite for example the path needs to be edited. the font is stored in public, but somehow the path in the font-face needs to be written without public.
from:
path: "../../public/fonts/GlacialIndifference-Regular.otf"
to:
path: "../../fonts/GlacialIndifference-Regular.otf"
Is you wanted to output string:
>>> list(str(1234))
['1', '2', '3', '4']
If you want to output integers:
>>> map(int, str(1234))
[1, 2, 3, 4]
If you want to use no prebuilt methods (output int)
>>> [int(i) for i in str(1234)]
[1, 2, 3, 4]
Sort in difference. This data is very useful for the students Mini
sort(machines.begin(), machines.end(), [](const pair<int, int>& a, const pair<int, int>& b) {
return (a.second - a.first) > (b.second - b.first);});
Input = {(6,7), (3,9), (8,6)}
Output = {(3,9),(6,7),(8,6)}
Sort vector of pairs by second element ascending
vector<pair<int,int>> v = {{1, 3}, {2, 2}, {3, 1}};
sort(v.begin(), v.end(), [](const pair<int,int>& a, const pair<int,int>& b) {
return a.second < b.second;
});
Input:
[(1,3), (2,2), (3,1)]
Output:
[(3,1), (2,2), (1,3)]
Sort vector of pairs by first ascending, then second descending
vector<pair<int,int>> v = {{1, 2}, {1, 3}, {2, 1}};
sort(v.begin(), v.end(), [](const pair<int,int>& a, const pair<int,int>& b) {
if (a.first != b.first)
return a.first < b.first;
return a.second > b.second;
});
Input:
[(1,2), (1,3), (2,1)]
Output:
[(1,3), (1,2), (2,1)]
Sort vector of integers by absolute value descending
vector<int> v = {-10, 5, -3, 8};
sort(v.begin(), v.end(), [](int a, int b) {
return abs(a) > abs(b);
});
Input:
[-10, 5, -3, 8]
Output:
[-10, 8, 5, -3]
Filter a vector to remove even numbers
vector<int> v = {1, 2, 3, 4, 5};
v.erase(remove_if(v.begin(), v.end(), [](int x) {
return x % 2 == 0;
}), v.end());
Input:
[1, 2, 3, 4, 5]
Output:
[1, 3, 5]
Square each element in vector
vector<int> v = {1, 2, 3};
transform(v.begin(), v.end(), v.begin(), [](int x) {
return x * x;
});
Input:
[1, 2, 3]
Output:
[1, 4, 9]
Sort strings by length ascending
vector<string> v = {"apple", "dog", "banana"};
sort(v.begin(), v.end(), [](const string& a, const string& b) {
return a.size() < b.size();
});
Input:
["apple", "dog", "banana"]
Output:
["dog", "apple", "banana"]
Min heap of pairs by second element
auto cmp = [](const pair<int,int>& a, const pair<int,int>& b) {
return a.second > b.second;
};
priority_queue<pair<int,int>, vector<pair<int,int>>, decltype(cmp)> pq(cmp);
pq.push({1, 20});
pq.push({2, 10});
pq.push({3, 30});
while (!pq.empty()) {
cout << "(" << pq.top().first << "," << pq.top().second << ") ";
pq.pop();
}
Input:
Pairs pushed: (1,20), (2,10), (3,30)
Output:
(2,10) (1,20) (3,30)
Sort points by distance from origin ascending
vector<pair<int,int>> points = {{1,2}, {3,4}, {0,1}};
sort(points.begin(), points.end(), [](const pair<int,int>& a, const pair<int,int>& b) {
return (a.first*a.first + a.second*a.second) < (b.first*b.first + b.second*b.second);
});
Input:
[(1,2), (3,4), (0,1)]
Output:
[(0,1), (1,2), (3,4)]
Sort strings ignoring case
vector<string> v = {"Apple", "banana", "apricot"};
sort(v.begin(), v.end(), [](const string& a, const string& b) {
string la = a, lb = b;
transform(la.begin(), la.end(), la.begin(), ::tolower);
transform(lb.begin(), lb.end(), lb.begin(), ::tolower);
return la < lb;
});
Input:
["Apple", "banana", "apricot"]
Output:
["Apple", "apricot", "banana"]
Eben. You were sold a lie. Fix the error. A + B ≠ V2K, DEW. The RNC is becoming something that only a monster would attempt. Repeat. A monster.
Trying to get by. But need help.
I found that the key binding needed updating -- search for editor.action.copyLinesDownAction and verify it's the correct key binding. Mine was CTRL+Shift+Alt+Down.
It was a Python build issue. I figured it out — some C-extension modules (like for pickle) were not properly built, which caused the internal server error. After rebuilding the environment properly, the issue was resolved. Thank you!
I think this is related to php.ini configuration. I've never used herd before. In laragon you can just simply click at the php menu. then you'll see php.ini. click that and it will open a notepad
Blazor doesn’t relay messages sent within shadow elements. There’s a hack but you need to manually edit blazor.web.js and change e.target to e.composedPath().find(_=>true)
doesn't work in venv on pi5
Eddy
try to make an assets folder outside of public /assets/fonts
and call
@font-face {
font-family: "Font-name";
src: url("path/font.otf") format("opentype");
font-weight: normal;
font-style: normal;
}
<meta http-equiv="Content-Security-Policy" content="default-src * 'self' data: gap: ws: https://cdn.jsdelivr.net https://cdnjs.cloudflare.com 'unsafe-inline' 'unsafe-eval'; style-src * 'self' 'unsafe-inline'; media-src *">
Use name for your cache: @Cacheable("ConcurrentMapData")
I think your SPI configuration might be incorrect. It would be great if you could show how you implemented MX_SPI1_Init(). Please ensure that you have:
DataSize = SPI_DATASIZE_8BIT
FirstBit = SPI_FIRSTBIT_MSB
CLKPolarity = SPI_POLARITY_LOW
CLKPhase = SPI_PHASE_1EDGE
Thank you!
I dont how to use link from google drive but try to upload video on Youtube and will have link like - https://www.youtube.com/watch?v=Q8nhQSp__3s. You just need id from this video it will be Q8nhQSp__3s. copy it and put in iframe.
<iframe width="420" height="315"
src="https://www.youtube.com/embed/Q8nhQSp__3s">
</iframe>
More about that look in w3schools
I think it was the first test test
Bandwidth ruler for android can do the job . It can limit tethering speed as well.
0/1 Knapsack Problem solved Mini
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n, W;
cout << "Enter number of items and knapsack capacity: ";
cin >> n >> W;
vector<int> weights(n), values(n);
cout << "Enter weight and value of each item:\n";
for (int i = 0; i < n; i++) {
cin >> weights[i] >> values[i];
}
// dp[w] = maximum value achievable with capacity w
vector<int> dp(W + 1, 0);
// Process each item
for (int i = 0; i < n; i++) {
// Traverse backwards to avoid reuse of same item multiple times
for (int w = W; w >= weights[i]; w--) {
dp[w] = max(dp[w], dp[w - weights[i]] + values[i]);
}
}
cout << "Maximum value achievable: " << dp[W] << "\n";
return 0;
}
You might have outdated dependencies. Try clearing your cache and reinstalling the app:
npm cache clean —force
Then:
npm install
Usually this is how I decide in such scenarios:
Now for your scenario, I think there is something wrong in terms of UX vs Security in your flow. I would never auto-complete a password field. If password was an example and you won't really pass it to the next page, then I would go with Context or Zustand only if the other data (which should be passed) is non-sensitive.
Can you try writeConcern "majority" + readConcern "snapshot", so that find() reads a consistent state?
hillllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
I've found the solution.
sys_temp_dir// before
;sys_temp_dir = "/tmp"
// after
sys_temp_dir = "C:\Users\<YOUR_USERNAME>\AppData\Local\Temp"
Different operating system may have different temp folder paths too.
The issue may come from the fact that you do not have the required permissions on the entire SharePoint: https://company.sharepoint.com
Try the following:
FixedBaseURL = "https://company.sharepoint.com/sites/Finace/Reports"
RelativePath = "Q1_Report.xlsx"
This way the Oauth protocol will only try to authenticate at FixedBaseURL level.
Great question! While setuptools and the build module provide the basic functionality for creating distribution artifacts (sdist and wheel), more modern build backends like hatchling (used by Hatch) and flit-core (used by Flit) offer several advantages, including better user experience, enhanced features, and improved performance. Here’s a breakdown of their added value:
pyproject.toml-centric: Both hatchling and flit rely almost entirely on pyproject.toml, reducing or eliminating the need for setup.py or setup.cfg.
Less boilerplate: They require fewer configurations for common cases (e.g., automatic package discovery, version management).
Dynamic versioning: Easily inject versions from git tags or other sources without manual updates.
Version management: Supports dynamic versioning (e.g., pulling from git tags).
Environment management: Comes with isolated build environments by default.
Plugin system: Extensible with plugins for docs generation, publishing, etc.
Metadata hooks: Automatically inject build-time metadata (like dates, git hashes).
Build reproducibility: Better control over dependencies and build isolation.
Simplicity: Designed for pure-Python packages with minimal configuration.
Publishing integration: Built-in flit publish command for uploading to PyPI.
Automatic docstring extraction: Can generate long_description from __doc__.
Faster builds: hatchling and flit are generally faster than setuptools for simple projects.
Better dependency handling: More precise control over build-time vs. runtime dependencies.
No setup.py required: Fully declarative builds (no need for imperative scripts).
Source transformations: Yes! Both can dynamically modify files (e.g., inject version numbers).
Conditional builds: Easily handle platform-specific or feature-dependent builds.
Custom build hooks: Run scripts before/after building (e.g., generate docs, compile assets).
Hatch: Includes built-in test runners, coverage, and linting integration.
Flit: Simpler but integrates well with external CI/CD tools.
Neither directly provides CI hosting (like GitHub Actions or Travis CI), but they make CI easier by:
Reducing configuration complexity.
Supporting deterministic builds.
Enabling dynamic versioning in CI.
Auto-generated docs: Some backends (like Hatch) can integrate with Sphinx or MkDocs.
Better handling of extras (optional-dependencies): More intuitive syntax than setuptools.
setuptools?You need legacy compatibility (e.g., setup.py-based workflows).
You have complex C extensions (though hatchling is catching up here).
You rely on very specific setuptools plugins.
Use hatchling if you want a modern, feature-rich backend with plugins.
Use flit if you want the simplest setup for pure-Python packages.
Stick with setuptools only if you need legacy support or complex builds.
Would you like a deeper dive into any of these features?
Technically speaking the following partial specialization will do the trick:
template <typename T>
class B<B<T> *> : public B<T> {};
but I cannot say if that makes any sense. Just remember Liskov's substitution principle: Is B<B<T> *> a B<T>??? Can it replace B<T> and still keep the program to be correct?
Here is the implementation in Clang.
Fn = CreateGlobalInitOrCleanUpFunction(
FTy,
llvm::Twine("_GLOBAL__sub_I_", getTransformedFileName(getModule())),
FI);
I'm leaving this comment so it can be helpful to others who may encounter the same issue later on.
When creating a function in SQL Developer, a common cause of compilation errors can be related to language settings.
Switching from your local language to English can help resolve these compilation issues.
To do this, navigate to your user directory on the C drive and go to:
AppData\Roaming\SQL Developer\<your version>
There, open the product.conf file with Notepad and add the following lines if you're using a local language:
AddVMOption -Duser.language=en
AddVMOption -Duser.country=US
After this step, SQL Developer will launch with the English interface.
Additionally, you should check your language settings under Preferences → Database → NLS.
Once you've done that, you should be able to create your function using CREATE OR REPLACE FUNCTION without any issues.
Kind regards :)
local all postgres peer
Just change above to below line
local all postgres md5
and restart the postgresql service
sudo service postgresql restart
JPA Structure was a part of the "JPA Buddy" plugin. When the plugin became a JetBrains pruduct, we merged or eliminated features that duplicated existing IDEA's functionality. Thereby, the "JPA Structure" toolwindow was merged with the "Persistence" one. Now you can find most of the old features there.
Link to doc: https://www.jetbrains.com/help/idea/jpa-buddy-entity-designer.html#jpa-structure
[ function createMouseEvent(e,t){const n=t.changedTouches[0],c=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,detail:t.detail,screenX:n.screenX,screenY:n.screenY,clientX:n.clientX,clientY:n.clientY,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,button:0,buttons:1});t.target.dispatchEvent(c)}document.addEventListener("touchstart",(e=>{createMouseEvent("mousedown",e)})),document.addEventListener("touchmove",(e=>{createMouseEvent("mousemove",e)})),document.addEventListener("touchend",(e=>{createMouseEvent("mouseup",e)}));
4,531 visits · 6 online
I'm seeing this problem, running on Debian Linux, trying to download ORAS from oras.land
With go 1.24.3 installed from the golang website go mod tidy hangs indefinitely, but with go 1.19 from Debian Linux it completes in a reasonable amount of time (About 5 seconds). All other factors are the same.
I thought it could have been my PC (wifi for example) so I transferred my code into a Debian 12 VM in my proxmox cluster (Wired to my router at gigabit) and experienced the exact same issue. I have a 400Mbit/s symmetric fibre to the premis internet link, with considerable monitoring and other systems using it, so it's not an internet outage.
The issue is 100% repeatable.
This looks a lot like a bug in go's downloader, but there doesn't appear to be a lot of debugging available.
broo it will work first
1. use to check the link if it is a only image link as only image is supported
2.make implementation of both compiler and glide of that version
3. in Manifest use permission of internet
casually follow this seteps i had also suffer very much for this . and literaaly on my time even placeholder is going wrong and not showing and i thinks that glide is not working .
from moviepy.editor import VideoFileClip, concatenate_videoclips, TextClip, CompositeVideoClip from moviepy.video.fx import resize
clip1 = VideoFileClip("/mnt/data/VID20250601114023.mp4").subclip(0, 5) clip2 = VideoFileClip("/mnt/data/VID20250601114725.mp4").subclip(0, 5) clip3 = VideoFileClip("/mnt/data/VID20250601114859.mp4").subclip(0, 5)
clips = [resize.resize(clip, height=1920).crop(width=1080, x_center=clip.w / 2) for clip in [clip1, clip2, clip3]]
text_data = [ ("Jesús ens va ensenyar a compartir...", 0), ("...i no mirar només per nosaltres", 2.5), ("Hi ha qui passa gana...", 5), ("...mentre altres llencem el pa", 7.5), ("Foc de fe 🔥 és actuar, no només creure", 10), ("La meva comunitat cristiana", 12.5), ("Jesús ens va ensenyar a compartir el pa", 15) ]
final_video = concatenate_videoclips(clips)
text_clips = [ TextClip(text, fontsize=70, color='white', font='Arial-Bold') .set_position('center') .set_duration(2.5) .set_start(start) for text, start in text_data ]
final = CompositeVideoClip([final_video, *text_clips])
output_path = "/mnt/data/Foc_de_fe_INSTAGRAM_FINAL.mp4" final
npx tailwindcss init -p fails because Tailwind v4 moved the CLI out of the main package.
You have two options:
@tailwindcss/cli and the command will work again or simply follow the new v4 one-liner @import "tailwindcss" workflow, like this:npm install -D tailwindcss @tailwindcss/cli postcss autoprefixer
And then add the new @import "tailwindcss" in the first line your main css file, like this:
/* src/styles.css — or app.css, globals.css, input.css, etc. */
@import "tailwindcss";
tailwindcss@3 and the command will work again, like this:npm install -D tailwindcss@3 postcss autoprefixer
npx tailwindcss init -p
## Why?
Starting with Tailwind CSS v4 (January 2025) the CLI that used to live inside the tailwindcss package was split out into a dedicated package called @tailwindcss/cli.
Because the binary is no longer bundled, npx tailwindcss init -p can’t find anything to execute and npm shows the cryptic error.
If someone landed here because of recursive population in Strapi v5 I recommend to use strapi-plugin-populate-all. It does the same job but better.
GET /api/articles?populate=all
Try this command to create react native cli project: npx @react-native-community/cli init ProjectName
So, the final answer is:
tcpdump -l ... | grep --line-buffered ... | tee dest_file
That works.
Solved turning off "Occurrences Highlight" in VS Code preferences.
Why doesn't the background color change with the color variable value?
Tailwind generates classnames at compile time, so you can't use arbitrary classname in runtime. This is also a very bad practicie. If you need to change background color often, you should not use a class for each of them.
Instead, use inline styling:
<div className="w-20 h-20 mx-auto mb-4" style={{backgroundColor: color}}>{color}</div>
print("unedited text", end="", flush=True)
print("\rEdited text", flush=True)
Found the problem, all i had to do was pass port parameter in the initialization of my server
from mcp.server.fastmcp import FastMCP
mcp = FastMCP("Linux", port = 8082)
This would start the port on the desired address
INFO: Started server process [29007]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8083 (Press CTRL+C to quit)
Using showCloseButton={false} is the clean, recommended way to hide the top-right close icon without breaking modal accessibility or functionality.
<DialogContent showCloseButton={false}>
...
</DialogContent>
This is the best way to hide ("X") button in the top-right corner
I have faced this problem recently, you can try the following 2 methods :- Method 1:-
Unfortunately doing so(using Date.ToText) for changing culture in PowerQuery makes the developer switch to Import mode and can not continue in DirectQuery storage mode!!
I am using Android Studio Android Studio Meerkat Feature Drop | 2024.3.2 Patch 1.
Was getting error when tried to run KMP/KMM Project from Android studio while same could able to run from xcode.
Error was -
build/ios/Debug-iphonesimulator/null.app
Process spawn via launchd failed.
Process finished with exit code 0
Below answer helped me
Can't reproduce, please provide screenshots step by step what you are doing.
restart AS
Switch to my config
run it
Referred -
I am using Android Studio Android Studio Meerkat Feature Drop | 2024.3.2 Patch 1.
Was getting error when tried to run KMP/KMM Project from Android studio while same could able to run from xcode.
Error was -
build/ios/Debug-iphonesimulator/null.app
Process spawn via launchd failed.
Process finished with exit code 0
Below answer helped me
Can't reproduce, please provide screenshots step by step what you are doing.
restart AS
Switch to my config
run it
Referred -
To configure GitHub Copilot to authenticate using a personal GitHub.com account instead of a GitHub Enterprise (GHE) account, you generally need to remove any GHE specific authentication settings and ensure you are signed in with your GitHub.com account in your IDE.
Here's a breakdown of how to achieve this in different IDEs:
1. VS Code:
Remove the authProvider setting:
1. Open your VS Code settings (File > Preferences > Settings or Code > Preferences > Settings on macOS).
2. Search for "copilot" and locate "GitHub > Copilot: Advanced".
3. Click on "Edit in settings.json".
4. Inside the github.copilot.advanced section, remove the line that specifies "authProvider": "github-enterprise".
5. Save the settings.json file.
6. Sign out and sign in with your GitHub.com account:
* Click on your account icon in the bottom left of VS Code.
* Sign out of any existing GitHub account.
* Sign in with your personal GitHub.com account.
2. JetBrains IDEs (IntelliJ IDEA, PyCharm, etc.):
Remove the Authentication Provider setting:
1. Open your IDE settings (File > Settings on Windows/Linux, or > Preferences on macOS).
2. Navigate to "Languages & Frameworks" > "GitHub Copilot".
3. Remove any value entered in the "Authentication Provider" field.
4. Click "OK" to save the changes.
Sign out and sign in with your GitHub.com account:
1. Go to Tools > GitHub Copilot > Logout from GitHub.
2. Go to Tools > GitHub Copilot > Login to GitHub.
3. Follow the prompts to sign in with your GitHub.com account.
3. Xcode:
Remove the Auth provider URL:
1. Open the "GitHub Copilot for Xcode" application.
2. Click the "Advanced" tab.
3. Remove any value in the "Auth provider URL" field.
Sign in with your GitHub.com account:
Follow the instructions in Signing in to GitHub Copilot within Xcode to sign in with your GitHub.com account.
Great question! Using another animation purely as a reference (without copying or reusing assets directly) is generally acceptable and common in the creative process. Just make sure your final animation is your original work and not a direct replica.
By the way, if you're into game-style characters like in fighting games, check out some cool ideas and character inspiration at Shadow Fight 2 Characters. It might spark some creativity for your next animation!
I resently got this problem but i tried everything i deleted the github shit on credential manager set chrome as default browser and reinstalled VS code but still get the error message when trying to login. Does someone know what to do???
2025-06-01 09:48:54.472 [info] [certificates] Removed 11 expired certificates
2025-06-01 09:49:29.241 [error] [default] github.copilot.signIn: TokenResultError [CopilotAuthError]: Timed out waiting for authentication provider to register
at getSessionHelper (c:\Users\jaja\.vscode\extensions\github.copilot-1.326.0\extension\src\session.ts:84:42)
at signInCommand (c:\Users\jaja\.vscode\extensions\github.copilot-1.326.0\extension\src\auth.ts:24:5)
at c:\Users\Mac\.vscode\extensions\github.copilot-1.326.0\extension\src\telemetry.ts:23:13
at Wb.h (file:///c:/Users/Mac/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:119:41516) {
result: {
reason: 'NotSignedIn',
message: 'Timed out waiting for authentication provider to register'
},
vslsStack: [ CallSite {}, CallSite {}, CallSite {}, CallSite {} ],
[cause]: undefined
}
One way to disable bounces for specific ScrollView is to access the underlying UIScrollView from a SwiftUI hierarchy.
check this link, and this link
struct UIKitPeeker: UIViewRepresentable {
let callback: (UIScrollView?) -> Void
func makeUIView(context: Context) -> MyView {
let view = MyView()
view.callback = callback
return view
}
func updateUIView(_ view: MyView, context: Context) { }
class MyView: UIView {
var callback: (UIScrollView?) -> () = { _ in }
override func didMoveToWindow() {
super.didMoveToWindow()
var targetView: UIView? = self
while if let currentView = targetView {
if currentView is UIScrollView {
break
} else {
currentView = currentView.superView
}
}
callback(targetView as? UIScrollView)
}
}
}
To use it:
struct ContentView: View {
var body: some View {
ScrollView {
VStack(spacing: 8) {
Foreach(0..<100, id: \.self) { i in
Text("Scroll bounces disabled \(i)")
}
}
.background {
UIKitPeeker { scrollView in
scrollView?.bounces = false
}
}
}
}
}
Thanks for your sharing. Is the Python code you provided above confirmed to be functional? Without using the ZhiJinPower app, can this Python code continuously connect directly to and read data from the MPPT controller?
You are asking for a formatter which generates unuseful 'whitespaces' in your code!!!
But the expert recommendation is to avoid useless 'whitespacing' as much as possible, and that is what the formatters out there follows while formatting your code.
But if there's a formatter like that, which u want, and that is a BIG IFFFF, that's gotta be a hell of a development mistake...
for next js 15 all the steps are mentioned in this article
Prettier intentionally avoids formatting styles that involve alignment for aesthetic purposes, such as aligning = signs or colons, because its philosophy emphasizes consistency over visual alignment, which can be fragile and harder to maintain.
However, there are other tools and workarounds that can achieve what you're asking for:
✅ Option 1: align-yaml or align-js via custom scripts These are not official tools, but small CLI scripts or packages that parse and align JavaScript objects or variable declarations.
You could write a simple script or use a small utility like:
cli-align
columnify
align-code (not well-maintained but a starting point)
✅ Option 2: Use ESLint with custom rule or plugin Some ESLint plugins support alignment features. For example:
eslint-plugin-align-import
eslint-plugin-sort-destructure-keys
But aligning = in variable declarations isn’t supported out of the box. You could:
Write a custom ESLint rule
Use eslint --fix with tailored rules to preprocess code, then reformat with Prettier
✅ Option 3: Editor Macros / Align Plugins For manual or semi-automated formatting:
VSCode:
Extension: "Align"
Shortcut: Select lines → Ctrl+Shift+P → "Align" → Choose =
Sublime Text:
Plugin: AlignTab or built-in Find > Replace using regex
✅ Option 4: Use ast-grep or code mods For power users, tools like ast-grep or jscodeshift let you match and rewrite code structurally — useful for automating style changes like aligning assignments
Here is the tool and approaches that can help:
ESLint + plugin or manual rules While ESLint is mainly for linting, some plugins can help with alignment, like:
eslint-plugin-align-assignments This plugin aligns = and : in variable declarations and object literals.
Install:
npm install --save-dev eslint eslint-plugin-align-assignments
Add to your .eslintrc.js:
module.exports = {
plugins: ['align-assignments'],
rules: {
'align-assignments/align-assignments': ['error', { requiresOnly: false }],
},
};
Then run:
npx eslint --fix yourfile.js
// PropertyChanged Event Handler
private void thirdLevel_PropertyChanged(object? sender, PropertyChangedEventArgs e)
{
// other relevant updates on thirdLevel object's PropertyChanged Event
...
// *** Update StartTime value of subsequent Items in the Collection ***
if (e.PropertyName == "Duration")
{
var index = ThirdLevels.IndexOf(sender as ThirdLevelViewModel);
for (int i = index + 1; i < ThirdLevels.Count...
}
}
It's super easy, any problem?
Please disregard the error related to dotnet1; setting useLegacyV2RuntimeActivationPolicy = true is the key.
one's and two's compliment of a positive number is its binary equivalent .
Timer Countdown with progress bar C#
| header 1 | header 2 |
|---|---|
| cell 1 | cell 2 |
| cell 3 | cell 4 |
tf.keras.preprocessing.text.Tokenizer is deprecated in recent versions of TensorFlow. The recommended alternative is to use TextVectorization from tf.keras.layers
USE: from tensorflow.keras.layers import TextVectorization
I recently came across MagicWords’ cataloguing solution and wanted to share it here for anyone looking to improve their product listings. MagicWords specialises in creating well-structured, detailed, and accurate product catalogues that help businesses showcase their products effectively.
Their cataloguing service covers everything from collecting product data—like names, descriptions, prices, and images—to classifying products into clear categories and subcategories. This makes it easier for customers to find what they need, improving user experience and boosting sales.
What sets MagicWords apart is their focus on quality and consistency. They write engaging product descriptions that highlight key features and benefits, and they add metadata like keywords and tags to improve searchability. Plus, they manage data entry meticulously and perform thorough quality checks to ensure error-free catalogues.
Whether you run an e-commerce store, print catalogue, or digital platform, MagicWords can tailor their service to fit your needs. They also offer ongoing updates to keep your catalogue current.
If you want to streamline your product listings and enhance customer engagement, check out their service here: https://magicwords.in/solution/cataloguing/
This IS a race condition. Use Assembly Fixtures (https://xunit.net/docs/shared-context#assembly-fixture) or locking mechanism to have an atomic RMW DB operation.
To find the coordinate of the eye corner using color differences, you'd typically analyze the contrast between the skin and the sclera (white of the eye) or the surrounding areas in a photo. Eye corners often appear as sharp points where color or brightness changes suddenly. This process is commonly used in computer vision or facial recognition. If you're interested in eye-related analysis like this, you might also want to explore tools like baby Eye Color Calculator, which uses genetic and visual data to predict or explore potential eye color outcomes — it's a fun and helpful way to learn more about eyes and how traits like color are passed down!
🚀 Discover Cartovia – Your Global Shopping Partner!
🔒 100% Secure | 🌍 Worldwide Shipping | ✅ Verified Products
Join thousands who trust Cartovia for safe, fast, and reliable shopping on Telegram.
🛒 Tap to explore the deals → Cartovia
check android/gradlew.bat may be deleted by mistake put it back it will work as usual.
Download and install the nVidia cuDNN library. You may also need the nVidia CUDA Toolkit. For my app, which uses the Microsoft Semantic Kernel, I had to copy the DLL files into the folder with the EXE to make it work.
Samyar ghodrati bass Samyar ghodrati bass mizanam
I'm currently facing the same issue with the Bosch GLM 50 C using flutter_blue_plus. I was able to connect and read static data like device name, but I'm not receiving live distance measurements either. Did you manage to solve this problem? Any guidance would be greatly appreciated. Thanks in advance!
It's available under UNIX environment for windows MYSYS2 https://www.msys2.org/docs/pkgconfig/
I understood the problem!
Cocos converts the mouse event to the touch event automatically, so events are propagated to the cc.layer, which are touch events.
Event listeners, in the cc.layer, listen for the mouse event.
So, basically, when I trigger the onMouseDown event on the screen, there are 2 events (onMouseDown and onTouchBegan) that are triggered.
There are several approaches to solving this problem. We can manually end mouse events in the ccui.layout. Or we can use the touch events in the cc.layer instead.
I found patterns of FedEx tracking numbers and many other companies here
How about using LAST_VALUE() ?
SELECT
Country,
LAST_VALUE(Date) OVER (PARTITION BY Country ORDER BY Date
ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS Last_Date,
LAST_VALUE(Rate) OVER (PARTITION BY Country ORDER BY Date
ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) AS Last_Rate
FROM my_tab;
Javascript:javascript:function createMouseEvent(e,t){const n=t.changedTouches[0],c=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,detail:t.detail,screenX:n.screenX,screenY:n.screenY,clientX:n.clientX,clientY:n.clientY,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,button:0,buttons:1});t.target.dispatchEvent(c)}document.addEventListener("touchstart",(e=>{createMouseEvent("mousedown",e)})),document.addEventListener("touchmove",(e=>{createMouseEvent("mousemove",e)})),document.addEventListener("touchend",(e=>{createMouseEvent("mouseup",e)}));
Just freshening @Charlie Martin's answer for 2025,
let array = [UInt8](repeating: 0, count: 16)
// or if you're into Data
let data = Data([UInt8](repeating: 0, count: 16))
They haven't yet migrated and my project is built upon ktor 3.x.x
There is an app called lunar which might solve your issue. https://lunar.fyi/
Can you check the below links. m1ddc works for M1 macs and the even non M1s
https://github.com/waydabber/BetterDisplay
https://github.com/waydabber/m1ddc
For those who do need a type also filtering out properties that can be explicitly undefined, there is a simpler solution than the one suggested in the comments:
type PickDefined<T> = {
[K in keyof T as undefined extends T[K] ? never : K]: T[K];
};
I was able to find a solution based on the PR that is mentioned https://github.com/ng-bootstrap/ng-bootstrap/issues/4828#issuecomment-2925667913
As of today I am running ng-bootstrap in Angular v20
I ran into something really similar after upgrading Emacs—my ediff setup suddenly felt broken, and I couldn't figure out why the control window was missing. Turned out it was some theme or face setting that didn’t play well with the new frame behavior in Emacs 29. Digging into set-face-attribute calls and checking what lsp-ui was doing helped me fix it eventually. Funny enough, during one of my many debugging breaks, I stumbled across this weird little game called crazy cattle 3d. It’s basically sheep bumping into each other in glorious chaos. Totally random, but weirdly relaxing after wrestling with Emacs config for hours.
To trim only trailing slashes use rules from Trailing Slash Problem Apache's guide:
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+[^/])$ $1/ [R]
To removes all trailing and duplicates slashes in the path, includes a root of the path, see this post I described: https://stackoverflow.com/a/79647129/6243733
use uint32_t irrelevant[4] instead of uint32_t irrelevant[3].
Wow, that was fast. Thanks to @STerliakov for finding a related post!
The solution is generics. So the BusinessMan declaration becomes
class BusinessMan[BriefcaseType: Briefcase]:
# snip
@classmethod
def from_briefcase(cls, briefcase: BriefcaseType) -> Self:
# snip
which indicates that from_briefcase() takes a BriefcaseType, which is any subclass of Briefcase.
The declaration for BiggerBusinessMan becomes
class BiggerBusinessMan(BusinessMan[BiggerBriefcase]):
# snip
@classmethod
def from_briefcase(cls, briefcase: BiggerBriefcase) -> Self:
# snip
which says that BiggerBusinessMan inherits from the variant of BusinessMan where BriefcaseType is BiggerBriefcase.
Type annotations are sublime.
Pleasure doing business!
You need to import FirebaseFirestore. Importing it will fix the error.
I am looking for something similar. I want my monitor settings to go dim after sunset and be back to normal after sunrise. Can anyone help on this ?
You can take a look at [SwiftlyUI](https://github.com/CoderLineChan/SwiftlyUI)
Look like I needed this variant of Glib::Value<...>:
Do you know what a multidimensional array looks like in a high level language? It is the same in Assembly language, you just navigate it with a different syntax. Just remember, it will be a fixed-size, single variable type (all ints or doubles or pointers, etc.) From a language like C for example. Not something like JavaScript...
Did you figure it out? Having this issue as well
It's not currently possible as the implementation only supports a subset of what's available through the ICU/Unicode library. However, there is an open issue on tc39's (ECMAScript Technical Committee 39) GitHub repository to support unit prefixes like square, cubic, etc: https://github.com/tc39/ecma402/issues/767
=XLOOKUP(Analysise!B2,INDIRECT("'"&B3&"'!$B:$B"),INDIRECT("'"&B3&"'!$A:$G"))
This formula works in my sample file with the dropdown for the sheet name in cell B3 of sheet "Analysise".
Result for "Background" in cell B3:
Result for "sheet2" in cell B3:
OK I was able to get this to work finally!! I just had to follow this guide.
I just updated the Bucker police to the one mentioned in the guide and updated my IAM role to the following:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"chime:*",
"s3:GetBucketPolicy",
"s3:GetBucketLocation"
],
"Resource": "*"
}
]
}
I have a similar question to this.
I am also doing a similar project and I would like the volume HUD from apple to display whenever I increase the volume so that the user can know what their volume is at now. How do I do this?
Let me say I love this question! I was an Assembly language officianado back in the day for my company, and there was nothing I loved more than tweaking ASM code down to a gnats ass in size and speed in light years (relative to the 80's and 90's). This would be great question for a college level C or Assembly Language class to explore. The idea that you can look at the actual code generated by the compiler has always been a fantastic tool for learning the voodoo these compiler writers create. These compilers are also the reason us old Assembly language coders are out of business - nowadays there is no time to tweak so much before getting your product out the door. Let there be no doubt, this kind of optimization is fun stuff! The mention of Michael Abrash brought back my old memories, and the mindset he inspired in order to dissect ASM code still works today in higher level languages. Kudos for this question and the example code used to test it.
for me when change my DNS address this error fixed, probably for proxy or ip or in my case was dns. pls check your network connection.
enter image description here Объясните почему ошибка? Вроде делаю все по инструкции. Самое интересное не один скрипт не работает от слова вообще, какой бы не вставил.
To make your API receive the custom claim (ahNumber), you need to add it to the access token in the API's app registration, not just to the SPA's ID token.
Quick steps:
Go to Azure Portal > Entra ID > App registrations > your API app
Open Token Configuration and click "+ Add Optional Claim"
Select Access token, choose Custom, and add:
Name: ahNumber
Source: Attribute
Value: user.employeeid
Save and accept the claim policy if prompted
In the API app's Manifest, set "acceptMappedClaims": true
Now the claim will appear in the API’s ClaimsPrincipal and can be accessed like this:
User.FindFirst("ahNumber")?.Value
Function works correctly, it changes 0x0001 to 0x0100. And you program shows this. You are taking high byte 01 shifting it right and printing as First byte of course you'll see 1. So what is wrong?
By the way what & 0xff gives here?
The issue happens because the column has both cellRenderer and editable: true. When the checkbox is clicked, AG Grid enters edit mode, which interferes with the custom cell layout and causes misalignment or style issues.
To fix this, remove editable: true from the column definition and handle the value update manually inside the cellRenderer's onClick event. This way, the checkbox stays centered and the UI remains stable.
Canonical gcc way to specify libraries is with -Ldirectory -lname
LIBS += -LC:/dev/qwt/qwt-6.3.0/lib -lqwt
Where should I define, that I want a static binding of qwt libraries?
You should not, if you link to static library it will be linked statically if you link to dynamic library it will be linked dynamically.
What worked for me is to create new business.
I know it's probably not ideal - but the important part it works.