Here is a folder/file browser that generates mel spectrogram on the fly: https://smoosense.ai/blogs/audio-mel-spectrogram/
@pmf So, how do you run a shell in POSIX mode?
Just need to update to this version:
i have the same issue but with C# i dont know how to fix this
System.Exception: OBS error: -
---> nodename nor servname provided, or not known (actas-digitales.obs.la-north-2.myhuaweicloud.com:443), StatusCode:0, ErrorCode:, ErrorMessage:, RequestId:, HostId:
This is my code
using Application.Common.Services.Interfaces;
using Application.Common.Utils;
using Microsoft.Extensions.Configuration;
using OBS;
using OBS.Model;
using System.IO;
using System.Threading.Tasks;
using Application.Common.Services.Interfaces;
using Application.Common.Utils;
using Microsoft.Extensions.Configuration;
using OBS;
using OBS.Model;
using System.IO;
using System.Threading.Tasks;
namespace Application.Common.Services
{
public class HuaweiCloudService : IHuaweiCloudService
{
private readonly ObsClient _obsClient;
private readonly string _accessKey;
private readonly string _secretKey;
private readonly string _endPoint;
private readonly string _bucket;
private readonly string _basePath;
public HuaweiCloudService(IConfiguration config)
{
var section = config.GetSection("OBS");
_accessKey = section["AccessKey"];
_secretKey = section["SecretKey"];
_endPoint = section["EndPoint"];
_bucket = section["Bucket"];
_basePath = section["BasePath"];
// Validate configuration
if (string.IsNullOrWhiteSpace(_accessKey))
throw new ArgumentException("OBS:AccessKey missing");
if (string.IsNullOrWhiteSpace(_secretKey))
throw new ArgumentException("OBS:SecretKey missing");
if (string.IsNullOrWhiteSpace(_endPoint))
throw new ArgumentException("OBS:EndPoint missing");
if (string.IsNullOrWhiteSpace(_bucket))
throw new ArgumentException("OBS:Bucket missing");
// Initialize OBS client
_obsClient = new ObsClient(
_accessKey,
_secretKey,
new ObsConfig { Endpoint = _endPoint }
);
}
/// <summary>
/// Uploads a file to Huawei OBS
/// </summary>
public async Task<string> UploadAsync(Stream fileStream, string fileName, string contentType)
{
if (fileStream == null || fileStream.Length == 0)
throw new ArgumentException("Stream is empty.", nameof(fileStream));
var objectKey =
string.IsNullOrWhiteSpace(_basePath)
? fileName
: $"{_basePath.TrimEnd('/')}/{fileName}";
var request = new PutObjectRequest
{
BucketName = _bucket,
ObjectKey = objectKey,
InputStream = fileStream,
ContentType = contentType
};
try
{
var response = await Task.Run(() => _obsClient.PutObject(request));
if (response.StatusCode != System.Net.HttpStatusCode.OK)
throw new Exception($"OBS upload failed. Status: {response.StatusCode}");
return objectKey;
}
catch (ObsException ex)
{
throw new Exception($"OBS error: {ex.ErrorCode} - {ex.ErrorMessage}", ex);
}
}
public string GetPublicUrl(string key)
{
if (string.IsNullOrWhiteSpace(key))
throw new ArgumentException("File key cannot be empty.", nameof(key));
var endpoint = _endPoint
.Replace("https://", "")
.Replace("http://", "")
.TrimEnd('/');
return $"https://{_bucket}.{endpoint}/{key}";
}
/// <summary>
/// Approve record by uploading file to OBS
/// </summary>
public async Task ApproveRecordAsync(
int recordId,
Stream fileStream,
string fileName,
string contentType,
long length)
{
var ext = Path.GetExtension(fileName);
var recordType = "nt3m";
var key = StorageKeyGenerator.BuildKey(recordType, recordId, ext);
await UploadAsync(fileStream, key, contentType);
/*
record.Type = recordType;
record.StorageKey = key;
record.State = "APROBADA";
record.Url = $"";
await _repo.UpdateAsync(record);
*/
}
}
}
@cafce25. well i don't seem to be able to delete it, as the interface says "You cannot delete this question as others have invested time and effort into answering it. For more information, visit the help center."...
sorry, I'm not much help with anycharts, but have you thought about giving Plotivy a go? It's super user-friendly and lets you create interactive charts in Python that you can stick anywhere you like. It could save you loads of time and make your data way more engaging without all the hassle of debugging. Or does it not work for your situation?
Please note that VSCode and Visual Studio are different. This article could tell you more. So maybe you just had Visual Studio pre-installed and it was still ther
Chrome: go to DevTools -> Elements -> Layout and deselect Flexbox overlays. This is the helpers for Flexboxes to understand the borders. Just unselect whatever you want.
@sakeep hossain: Did you ever figured out the fix for the above problem. We are seeing a similar issue with subpath where we get CreateContainerConfigError and failing to prepare subPath for volumeMount of container intermittently. Due to volume of pipeline pushes we do its started to appear that it is happening consistently .
Calcpad supports units natively as a language feature (no libraries):
https://github.com/Proektsoftbg/Calcpad
It would be appreciated if a mod can edit this post and set is as a normal post (not “advice”). I don't have the option. I cannot delete it, either to repost.
Is there any update on this topic? I'm still having issues with it
have you solved this problem yet?
I do not understand the connection of the project, as you described it, to the operating system. Can you clarify? Did you maybe use the wrong term here?
I have a website on which i want to deploy Monetag ads. I have verified the website by adding the sw.js file in a public folder on root. Now i want to add the code of a ad zone. but as i add the code to the head section of my admin panel, the monetag doesnot show ads on my website.
I have tried multiple things but unable to succeed.
What is the solution of it?
Replacing the double quotes by simple ones resolved the problem
@SilverWarrior, thanks for reply, and good points. I shall try and get backgound images in the correct size and avoid scaling for the reasons you describe!
Drawing manipuation...
(Background, this is for dawing a sailing "race course" around a set of "Mark" shapes (circles) - user clicks each mark of the course in turn. a Polyline stores vertices at centre of each Mark. (circular shape) in turn. So far, so good! SO have a set of straight lines vertices on each mark Shape.
But course "rules" are do NOT sail over a mark but sail round it either clockwise or anticlockwise
User can click each Mark to change color Red/Green to indicate.
So next, I would like to replace each straight-line vertex with a smooth transition (arc or ellipse). going round each Mark in the correct direction (leave Mark to either Left or Right.
Maybe have to work out the angle of each of the two lines at a Mark, and then work out how to describe the Arc! Seems tricky! Is that a valid approach do you think? any ideas to simplify?
Thanks for your comments, I edited the question to make it more concise.
Thank you, I was thinking along the same lines. The only requirement in implementer would be to always have it inside `using` statement but we can manage that.
Can you confirm which version of LocalStack are you running and share a log snippet?
Dotnet8 is supported and your template looks correct, but it could be that you have an old LocalStack version cached.
With LocalStack running, can you also check the output on this URL and see if dotnet8 is listed?
http://localhost.localstack.cloud:4566/_aws/lambda/runtimes
i am facing issue with Arabic text with itex7.
Could you post this as a question?
Thank you @mernst!
I got this to work:
void startSomethingElse(@AccountIdParam long accountId, @BalanceParam long balance) {
System.out.println("Account " + accountId + " balance " + balance);
}
void startOfSomething() {
/*
* either use:
* @AccountIdParam long accountId = (@AccountIdParam long) 1;
* or
* @SuppressWarnings("assignment")
*/
@SuppressWarnings("assignment")
long accountId = 1;
@SuppressWarnings("assignment")
long balance = 100;
startSomethingElse(balance, accountId);
}
And now I have these qualifiers:
@SubtypeOf({ParamUnknown.class})
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
public @interface AccountIdParam {}
@SubtypeOf({ParamUnknown.class})
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
public @interface BalanceParam {}
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
@SubtypeOf({AccountIdParam.class, BalanceParam.class})
public @interface ParamBottom {}
@DefaultQualifierInHierarchy
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
@SubtypeOf({})
public @interface ParamUnknown {}
If my number of qualifiers grows, this line on ParamBottom where I list them will become cumbersome. Any advice on that?
conda install intel-openmp
It helped me, other methods didn't
https://github.com/matplotlib/matplotlib/issues/27564#issuecomment-1914643232
i am usiing laravel 11. i dont have any websocket.php file in my project
I need more clarification. How did you fix this? After the app is officially approved, will it work again?
Here's a list of supported solver from the documentation https://pyomo.readthedocs.io/en/latest/getting_started/solvers.html, however, you'll have to install them separately.
I think there is no option yet
https://developercommunity.visualstudio.com/t/I-dont-want-to-see-the-active-window-bor/10983169?sort=newest&topics=visual+studio+2019
Same issue cypress-component-test-runner, will the team fi it in the coming release please?
The 5 steps resolution worked for me I think but now I have this issue:
Could not build the precompiled application for the device.
Parse Issue (Xcode): A template argument list is expected after a name prefixed by the
template keyword
/Users/gabriellemutunda/development/ejpride/ios/Pods/gRPC-Core/src/core/lib/promise/detail/b
asic_seq.h:102:37
Error launching application on "Device's name" (wireless).
So I don't know if it actually worked?
Can anybody help me out please?
My question is: is this form mandatory before I can test/use subscription functionality?
Please share the code and error so we can help you, and also open your options for programs to use. I specialize in Python, so be more specific for everyone else.
My goto would be C# in a Nutshell, but currently it's only up to C# 12. Are the examples in https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-14 not enough?
I'm asking the same question, and would like to know how is your status with it now?
Many thanks bro, it's solve to me.
Uhm, any idea why I cannot add a comment to your answer @David Maze? My follow-up question would be that I intended to do exactly as syou described, but for your steps:
Build the image from the Dockerfile
Run integration tests against that image
You would need docker-in-docker, right ? I guess that what you described is exactly what's specified here:
You can specify an additional image by using the
serviceskeyword. This additional image is used to create another container, which is available to the first container. The two containers have access to one another and can communicate when running the job.
My only issue is: The generation of the image (the first of my steps quoted from you above) is somewhat complex, and I don't necessarily want to replicate the entire build flow of my Dockerfile within my CI pipeline ? So if the build is very long (around 500 lines in my dockerfile), how would you replicate that into a CI build job ?
@Paul Granting "select any dictionary" solved it.
Thanks all
Not clear. What is “show”, exactly?
I carefully checked the logic analyzer again, and the LA of Raspberry Pi 4 is as follows:
The logic analyzer of Raspberry Pi 5 is as follows:
Waveform analysis
Raspberry Pi 4
CLK (pink) idle state: low level
Only generate pulses during transmission
Raspberry Pi 5
CLK (pink) idle state: high level
This is clock polarity reversal
May I ask why the above phenomenon occurs? After that, the Raspberry Pi 4 is normally enumerated, while the Raspberry Pi 5 is not。
Good day sir!
Is it possible to get full code for that one? Ive been strugling with Dell for many hours, because it doesnt load some parts of the website while i use selenium/playwright. Have to get info about warranty and laptop specs in hundreds sooooo its reaaaaly annoying its not working :/
@Harun24hr Can you give any specific example cases of when that fails?
](https://stackoverflow.com/users/373875/kapilt)
how do i configure like you said? i don't have any reference to do so..
Vale, esto es lo que tengo ahora... Por cierto, sigue sin funcionar. Ahora, cuando pulso el botón de parar, salgo o cualquier cambio, imprime "stopping2", lo que significa que no es nulo. La música original sigue reproduciéndose y no se detiene. Intenté cambiar la función de parar por la de reproducir un archivo de música en silencio, pero lo único que hace es superponerse al otro sonido. Necesito cortar la reproducción de alguna manera. He editado mi publicación con el nuevo código.
Well, cloudfare did use unwrap()
There is no target it belongs to, its just a bunch of source and header files.
@tbjamie, that does not quite work like Hao Wu's solution.
Temani Para que estamos aqui ? Ayudar y que va !!!todo muy claro y profecional !! Pero ya casi resuelto el ataque a mis cuentas todo lo que leen alli fue parte de una batalla por defender la cuenta!! Pendiete de vuestros consejos practivos y profesionsles!!!
What about a simple checkbox (not form element) for forms submitted with JS-only?
This checkbox will add something like botCheck = "I'm not a bot" to form data.A simple backend we check if botCheck matches or is present, so when form is submitted by bot , form data would not contain botCheck ??
Is this a valid strategy to prevent spam??
не цікаве питання, давай ще одне
@TimWilliams sorry, nevermind the testing code. I found my error--it was a typo in the file name. So, I'm getting data now and we are back to the original question...
What is the best way to take a binary date, e.g., out of a byte array, and turn it back into a valid VBA date? Just change the Type block to use Date datatypes? But if non-standard data lengths are used (e.g., 6 bytes, instead of 8), what then?
How do I find out what target it belongs to? I'm a newbie in CMakeLists
I don't have an answer, but I'm facing the exact problem. I see that this question was posted 8 years ago. Has anyone had an answer yet?
I don't quite understand what you mean.
Do you have an example?
Thanks in advance.
Otimo, apenas adicionei @viteReactRefresh resolveu meu problema!
Tengo el mismo error, pero en mi caso es aleatorio. Ocurre en algunas ocasiones al ejecutar un reporte y luego ejecutándolo exactamente igual funciona bien. Aún no descubro la causa.
you know what wrong with it it aint got no gas in it
What do you mean by "in C/C++ code"? Do you mean in the source code of pipewire? If so, check git build metadata (meson.build file), it should be on top
This might be coming too late, but I made a tool in python for that purpose
Yes, Chrome has updated and after that, you need to aprove a browser permission to access network devices. Approving that, error stops happening. Thanks Ivar and Heiko.
Bumping this topic up to get more replies.
What challenge you are facing? Is the code snippet you provided, not working? Or you don't know what to do to achieve what you want? Can you clarify a bit?
Why not use git clone?........
Can you please add minimal reproducible code so the issue can be replicated. See the guidelines: https://stackoverflow.com/help/how-to-ask
Quick checks in my opinion:
In Azure Portal: Function App > Function > Integration.
Verify the inputBlob path matches the binding.
Expected format: path/to/file/{filename}.json
import UIKit
import Flutter
import FirebaseCore
@main
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
FirebaseApp.configure()
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}
@Muhammad Anees
The GeneratedPluginRegistrant is already in AppDelegate.swift, but I still can’t fix the issue. What else could be causing it?
Could you send the result of the following:
cd android
./gradlew react-native-screens:compileDebugKotlin --stacktrace
It could make our life easier.
@Homezonic And what does the TOS of google say about this? As I'm not quite sure what google allowes and what not.
Anthropic recently came out with this:
https://www.anthropic.com/engineering/code-execution-with-mcp
might be helpful for you.
Also, you got this context usage in Claude right? Is there a way to get the same thing in github copilot / vsc? or do you have a separate script for it?
I think you are searching for this, check it out : https://github.com/DA213/DelphiWebDriver
The problem was the certificate. it was not assembled correctly.
@David Maze Thanks for the response, I am not fully understanding how this works. Can you give me some more advice?
For more context I am using a streamlit app.
Here's what I am trying:
Remove code, settings = Settings() remove from settings.py
Add code settings = Settings() to config.py
Make modules import from config from .config import settings
This will make sure settings are declared once, prevent side effects of Settings() being ran every time I import settings.py, and I can patch it in Pytest.
So here would be the the new implementation based on what you said...
# settings.py
from pydantic_settings import BaseSettings, SettingsConfigDict
from pydantic import Field
class Settings(BaseSettings):
model_config = SettingsConfigDict(
env_file=".env",
)
env_var: str = Field(description="blah blah blah")
# ...
env_var_d: str = Field(description="blah blah blah")
# config.py
from .settings import Settings
def get_settings()
return Settings()
# some_module.py
from .config import get_settings
def some_func()
settings = get_settings()
# conftest.py
import pytest
from .settings import Settings
from unittest.mock import patch
# Does not work as expected
@pytest.fixture(autouse=True, scope="session")
def settings():
with patch('pckg.config.get_settings', Settings(_env_file=".env.test")):
yield
I have a the following problem. When I move to left and after this I move to right, the screen is not at the same position. The window alway scolls more to the left then to the right. How can I solve this. A offset is not working because the window movement is not alway the same. Someone has a ideia?
I want the second bracket value.
What are your exact requirements for the resulting string, e.g. do you want the second bracketed value? or all bracketed values?
Same issue here - I am using a personal - pretty typical :(
Maybe make the keyframes animation have an end (100%) that does not change how it initially was but no start (0%) at all so that it can start off from anywhere?
I was wondering the same thing. Yes, you definitely can.
Right-click on the folder with the code files -> Open with -> Open with Visual Studio
If it's uploaded on GitHub, click on the green drop-down-menu Code -> Open with Visual Studio
This would be a different thing, but if browsers have restrictions on it for the clear security risks, then how does software like Securly block pages? It seems that the browsers would not allow it, but it is allowed and used by many schools. How does that work?
thank you very much for your explanations. I thought that re-mapping causes this data length.
sorry to bother, but did you manage to solve this problem? I also am trying to linearize the loop filter of a PLL and I am getting the same warning.
For some reason, "datesForArr.controls" is null...
@rzwitserloot, Not really sure if I fully understood it. I've checked both of your snippets calling the `read()` method (the ones with FileReader and with BufferedReader) with a text file which has a size of around 160MB. The time difference in completing both of these operation is only of +-0.5s.
This is not a StackOverflow question. You should go to https://politics.stackexchange.com/
Edited the post. You can find it on the top.
Ah, yes. Right, that seems like the only reason. Thank you for your reply.
just click on this icon again enter image description here
Thank you for your explanation !
I have the same Error message. Inventory is enabled, and Authorization header is set to 'OAuth'.
using the swagger in https://glpi.myserver.XX/api.php/doc works
Error:
"title":"You are not authenticated","detail":"The Authorization header is missing or invalid","status":"ERROR_UNAUTHENTICATED"
the OAuth client has every Grants and every Scopes configured.
We are on version 11.0.1
Here is my current working solution as gist:
Perplexity GitHub Connector Auto-Approve Tampermonkey Script
Maybe this one can help you.
it is a tampermonkey script: https://github.com/MarvenAPPS/Perplexity-Connectors-Auto-Approve
R vE
Thank you very much! It's all working now.
Another, non-Excel question is why I am no longer able to respond to answers here on Stack Overflow. I can see links for "Share, Edit, Follow, Flag" - but no "Add Comment". I have been using Stack Overflow for many years, and it's only in the last couple of days that I have been unable to add comments. I thought it might be something to do with being at work, but I also tried at home (on Firefox and Edge) - no no avail. Does anyone know why comments can't be added now?
any other solution, since its not working this way.
I have a similar problem.
I have a large file (over 10 MB) which I need to read, and then insert a new sheet with data to the same file.
This is what I am doing
I have to read and write to the same file.
OPCPackage pkg = OPCPackage.open(stringFileName);
xwb = new XSSFWorkbook(pkg);//this is error line
tempsxwb = new SXSSFWorkbook(auctionSPFileXWB, 100, true, false);
I need the XssfWorkbook obj to read data from the file and then after working on that data I have to write a new sheet to the same file.
try(FileOutputStream fos = new FileOutputStream(stringFileName)){
tempsxwb.write(fos);
fos.flush();
}
tempsxwb.close();
can anybody suggest a solution?
I am having the same problem as everyone above. I am using MPLABX 6.25. Tried clearing the cache as mentioned above. Tried removing any spaces or non ascii from paths tried several (known working) projects. tried closing all windows within MPLABX before exiting MPLABX, then deleting Cache, then deleting all projects, then open the projectless MPLABX and make a simple main.c from scratch in a pristine project. All to no avail.
Review of the problem. I cannot add/view ant Global variable or SFR while in debug mode and stepping through code line by line. (they are visible in non-debug mode)
Some other clues below. All while in debug mode, connected to an ICD4, and plugged in to a custom PCB which I know is working because i can program/debug/step thru/set breakpoints etc.
Clue 1 - In the variables tab, the diamond symbol with a + sign on it is greyed out
Clue 2 - In the variables tab, the line that should be there (but is not is) is the <Enter new watch>
Clue 3 - In the variable tab, if i click the (empty and blank) space below the title row the add new variable pop-up window does appear. If i choose a SFR or a global variable I get to see my SFR added to the top row of the (otherwise empty) list of SFR/variables for about 0.000001 seconds, then the list is empty again. All SFRs / all Globals do the same.
Clue 4 - local variable (while in scope) are displayed as expected in the variable window.
I tried a complete uninstall/Reinstall of 6.25 - not fixed.
In sheer frustration, I reverted back to my old MPLAB 6.15, this works perfectly, just as i always remembered it should.
I have no idea how to get my 6.25 version working again, Microsoft, Anybody, please help!
In Firefox v140.5, you can check the currently used fonts in the Font tab on the right, instead of the Computed tab. I have not verified this on other browsers or versions.
Did you find a solution? Can you post your findings, I'm facing the same problem
Rob, the "monolithic" EOM is working great using finite differencing, thanks for the recommendation. Will try jax in the near future.
To Jonathan - Rows would be easy, I am trying to have it output into 3 columns on the page.
To Shadow - But, is there a way to to take the original query results, do the division, then do 3 more queries and start each one at at the appropriate spot, than use a limit on results.
Thank you
Yes, I wrote a package for this: https://github.com/biw/vite-plugin-native-modules