did you find a solution, im facing the same issue
Since Logger.log()
doesn't help in printing out the values at the line you need to debug. You can go with alert()
. Yes it's a bit annoying but works the same when working with webapp
So I ended up figuring this out, although I'm not sure if it was the best solution or not.
I had to reinstall WASMedge
using an updated install script and specify the path to that .so directly in the install script (LIBCUDART_PATH
). That made it recognize CUDA and the GPU, and then I had to mess with context size for memory reasons, and then it was up and running.
I’m using Docker Desktop with Kubernetes enabled, so the clusters are managed locally on my machine.
When I run kubectl get services
, I get the following output:
enter image description here
I’m trying to connect to SQL Server from my local machine using SSMS. However, even though I have a LoadBalancer service with an external IP (which points to localhost
), I’m still unable to connect using localhost,1433
.
are you using flexbox? check the display and align-items property of the header's parent element.
If you are using flutter, building in the flutter plugin in vscode gives you a clue (unlike xcode).
From the top of your flutter project, edit ios/Runner.xcodeproj/project.pbxproj
and change all instances of
com.example.yourapp
to
com.whatever_matches_your_apple_developer_domain.yourapp
Have you tried using the width property in the header tag?
Can easily be done with IrfanView.
I.e. Image -> Resize/Resample -> Set New Size -> Width [1024] + Height [500] + Units (pixels) -> Ok
It took me a couple of hours to get the right configuration, with a lot of trial and error.
This is what I came up with: I had to exclude a couple of transient dependencies globally.
Include these excludes in your configurations block:
configurations {
configureEach {
exclude group: 'commons-logging', module: 'commons-logging'
exclude group: 'org.neo4j', module: 'neo4j-logging'
exclude group: 'ch.qos.logback', module: 'logback-classic'
}
}
I did not find a way to exclude those packages only for the tests, but I guess that's not a problem. The first exclude is not strictly necessary for my project to work, but it makes the warning about commons-logging.jar go away.
So I had to use configureEach
to remove the dependencys from all scopes, because removing if from testRuntimeOnly
or other test scopes did not work for some reason.
When trying to connect to another service from your pods you must use the kubernetes internal DNS service. In the pod that is trying to connect to the host should look something like this instead localhost:
mssql-clusterip-srv.default.svc.cluster.local
if you uses other namespace to deploy your database and services, replace default for the correct value.
In v4 you import Tailwind using a regular CSS @import statement, not using the @tailwind directives you used in v3: @import "tailwindcss";
[versions]
ktx = "1.9.0"
[libraries]
androidx-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "kt
x" }
his is really just a test of MemoryCache
. I could have made it much simpler, removed all of the extra code, and just tested MemoryCache
, but this takes into account the possibility of error in the surrounding logic. I only write tests like this to be sure that I'm not making wrong assumptions about how something like this works.
Yes, you're totally right — in the new Google Ads Conversion Tag interface in Google Tag Manager (GTM), the "User-provided data" checkbox for Enhanced Conversions has been removed from the standard "Google Ads Conversion Tracking" tag.
To enable Enhanced Conversions now, you need to add a separate tag using the "Google Ads User-provided Data Event" tag type.
It seems that the problem not in API itself.
The first reason maybe some kind of "sleeping" software which have to wake up and then works for some short time and fall asleep again.
And the second - your networking equipment which looses path to the server and each time spend these 4 seconds to find the network device.
As for http - it must work even faster than https
i was getting this
Installation Failed. One prerequisite is not fulfilled
i did this on regedit and installation worked. changed the version to the one mentioned in the alert
Docker Desktop requires Windows 10 Pro/Enterprise/Home version 19044 or above.
Believe me, I got the same problem. The problem is the path. React-native-reanimated takes the absolute path at compilation. It means, it is taking your path from the root directory like from start of C drive (if in windows) to the files in the node_modules. The maximum characters for path is 250 although in my case it was taking like 198 or something, it might have some restrictions for that.
I copied the entire project and pasted it in my users directory. The path was like
C:\users\<my-username>\<react-native-project>
This makes the path short and the resolves the error.
You can fetch your files using this:
https://raw.githubusercontent.com/<owner>/<repo>/<branch-refs>/<path-to-file>
for example to fetch staticSet.json file:
You should use maven-assembly-plugin
to build your project. Read documents about this plugin.
Plugin 'role-strategy' (Role-based Authorization Strategy) seems to provide this possibility https://plugins.jenkins.io/role-strategy/
Take a look if functionality provided by 'item roles' suits you
Cause three applies in my case. I switched from the default user model to a custom one after running migrations—midway through the project. To fix the issue, I deleted the database and existing migrations, then reapplied the migrations. That resolved the problem.
Javascript:
function num_en_fa (str) {
const num_fa = ["Û°", "Û±", "Û²", "Û³", "Û´", "Ûµ", "Û¶", "Û·", "Û¸", "Û¹"];
for (let i=0; i<10; i++) {
str = str.replaceAll(String(i), num_fa[i]);
}
return str;
}
I had similar issue, while activating venv..
usage: conda-script.py [-h] [–no-plugins] [-V] COMMAND …
conda-script.py: error: argument COMMAND: invalid choice: ‘acivate’ (choose from ‘clean’, ‘compare’, ‘config’, ‘create’, ‘info’, ‘init’, ‘install’, ‘list’, ‘notices’, ‘package’, ‘remove’, ‘uninstall’, ‘rename’, ‘run’, ‘search’, ‘update’, ‘upgrade’, ‘build’, ‘content-trust’, ‘convert’, ‘debug’, ‘develop’, ‘doctor’, ‘index’, ‘inspect’, ‘metapackage’, ‘render’, ‘skeleton’, ‘token’, ‘pack’, ‘env’, ‘repo’, ‘verify’, ‘server’)
please try: conda init zsh
and then close and restart your terminal
this resolved my issue. Happy coding :)
Are you also facing an issue with unauthorized 401 errors? I'm experiencing a similar problem. I have an application registered in Azure with the following API permissions: User.Read, openid, offline_access, and Mail.Read.
When I sign in through the web client, the app receives an access token valid for 60 minutes. After the 60 minutes pass, the application tries to send a refresh token request, but it gets a 401 Unauthorized response, and the user is automatically logged out.
generally AND works in the same manner as in your language. When you are speaking, or when you are thinking do you understand how to use AND? Exactly the same sql does.
may I ask a question? How to integrate Google Cloud Speech to Text V2 in Android to achieve real-time transcription of real speech into text? It is necessary to distinguish the speaker! It's really difficult to access, do you have a demo that can be provided
I mainly used two ways to measure code execution time between Python scripts or parts of them.
Command line:
python3 -m timeit -n 1 -r 1 -p -u sec "import os; os.system('python3 myprogram.py')"
-m timeit
invoke timeit
module
-n 1
times you wan to execute the "statement" (== your 'python "program"/script/foo.py')
-r 1
times to repeat the timer (default 5)
-p
measure process time, not wallclock time, using internally time.process_time()
instead of time.perf_counter()
, which is the default. Very handy if your program prompts the user for input at any step, not to count, for example, the time delay introducing input.
-u sec
specify a time unit for timer output; can select nsec
, usec
, msec
, or sec
Embedded in code:
time
Python module.
As @Jeyekomon comments below the OP, time
module is a very flexible, useful, fast and simple alternative putting measurement points wherever you want. Found here How do I get time of a Python program's execution:
import time
<< put this at the beginning of your code
start_time = time.time()
<< put this in the place you want to start measuring time. Just a snapshot of instant time.
print("--- %s seconds ---" % (time.time() - start_time))
<< put this in the place you want to stop (and print) elapsed time. Just another snapshot of instant time and the subtraction respect to the previous.
Operating system alternative:
time
operating system command. Present in Windows or Linux/UNIX. But check-out for implementation particular options and flags (man time
).
Joint example using timeit
(command-line) and time
(Python module functions placed inside my code):
python3 -m timeit -n 1 -r 1 -p -u sec "import os; os.system('python3 myprogram.py')"
Tell me what term of the sequence you want to calculate: 3
(belongs to program prompt)
--- 1.0251998901367188e-05 seconds ---
<< output from embedded code (time
functions)
2
(belongs to program output)
1 loop, best of 1: 0.000448 sec per loop
<< (shell) output from timeit
Restore your vehicle’s shine with professional paint correction in San Marcos, CA. Our expert technicians specialize in removing swirl marks, light scratches, oxidation, and other paint imperfections using cutting-edge polishing techniques and high-grade compounds. Whether your car has suffered from harsh weather, automatic car washes, or daily wear and tear, our multi-stage correction process revives the clarity and depth of your paintwork. Perfect for auto enthusiasts and luxury vehicle owners alike, our San Marcos paint correction service ensures a mirror-like finish and prepares your vehicle for long-lasting protection like ceramic coating.
An approach I tend to prefer more is by specifying the container's name (network_mode):
services:
mycontainer1:
image: myregistry/my-container1:latest
ports: ['6666:7777']
mycontainer2:
image: myregistry/my-container2:latest
network_mode: container:mycontainer1 # <---
Refer to screenshot attached, you should check the Download external resources
If problem still persists (because https://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd seems to be unreachable) refer to Hibernate issue with using http://www.hibernate.org/dtd on how to load the DTD from classpath that is included in Hibernate JAR
The LEFT join returns all rows in the "left" table. Adding the constraint on customers id isn't going to change that fact.
If you want to filter those rows, you need to use a where clause:
SELECT * FROM customers
LEFT OUTER JOIN salesman
ON customers.id = salesman.id
WHERE customers.id = 2
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAZACAYAAAC7mXxHAAAAAXNSR0IArs4c6QAAIABJREFUeF7s3Qd4FNX6wPHf7G56L6QSeu9FmkhHUBRFEb2IXuWqiF2v5c+1Xwv2XrBcC3bFgoqCgIA0kd57CQkESO91d+b/PLO7yWY32U3YJJtk8x6f+9xkd+bMmXfOzL7nnDlnFMMwDAQBQUAQEAQEAUFAEBAEBAFBQBAQBFqAgNQC5xSnFAQEAUFAEBAEBAFBQBAQBAQBQUAQUAkIAyIagiAgCAgCgoAgIAgIAoKAICAICAItRkAYkBZDL04sCAgCgoAgIAgIAoKAICAICAKCgDAgog0IAoKAICAICAKCgCAgCAgCgoAg0GIEhAFpMfTixIKAICAICAKCgCAgCAgCgoAgIAgIAyLagCAgCAgCgoAgIAgIAoKAICAICAItRkAYkBZDL04sCAgCgoAgIAgIAoKAICAICAK
There is now (2025-05-31) a very nice "suspend" button in the Azure Container App Job page:
If you suspend the job, the "suspend" button turns into "resume":
There's a good and well-maintained VS Code extension now that does syntax highlighting (but not formatting): Wikitext
It looks great:
I have been using this forum for years to successfully answer my own queries, but have never posted anything. I think I may have inadvertantly edited someone else's post instead of posting my own reply, apologies. This is what I intended to post:-
'To simply toggle a shape's visibility
Sub ToggleShape ()
ActiveSheet.Shapes("MyShape").Visible = not ActiveSheet.Shapes("MyShape").Visible
End Sub
David
The error description returned with a 401 response, gives a recoverySuggestion: "If you're calling an Amplify-generated API, make sure to set the "authMode" in generateClient({ authMode: '...' })to the backend authorization rule's auth provider ('apiKey', 'userPool', 'iam', 'oidc', 'lambda')"
Applying this to the list query (goal is to allow read-access by default and apply a group-basis protection for create, update and delete), gives expected results :
todos_list(): Observable<Todo[]> {
return from(this.registrationService.getCurrentUser()).pipe(
map((authData: { userId?: string }) => {
return authData.userId ? 'userPool' : 'identityPool'; }),
switchMap((authMode) => {
return new Observable<Todo[]>((observer) => {
const client = generateClient<Schema>();
client.models.Todo.list({ authMode: authMode })
.then( // .... rest of code
Since Kubernetes v1.33, the tolerance can be adjusted per HPA: https://kubernetes.io/blog/2025/04/28/kubernetes-v1-33-hpa-configurable-tolerance/
It's an alpha feature, scheduled for graduation to beta in v1.34.
use a JsonSerde for value : org.springframework.kafka.support.serializer.JsonSerde
When you write mount_path=shared_data_mount_path, you're literally passing the parameter object itself, not its value. Airflow sees this and goes "what the hell?" and can't serialize it.
Working solution
Just use regular Airflow templates:
@dag(
dag_id=PIPELINE_NAME,
schedule=None,
params={
"command": "",
"image": "python:3.13-slim",
"shared_data_mount_path": "/mnt/data/"
}
)
def run_arbitary_command_pipeline():
# your code...
run_command = KubernetesPodOperator(
task_id="run_arbitrary_command",
cmds=["sh", "-c", "{{ params.command }}"],
image="{{ params.image }}",
volume_mounts=[k8s.V1VolumeMount(
name=pvc_name,
mount_path="{{ params.shared_data_mount_path }}" # this works
)],
# rest of your stuff...
)
What was wrong
Your first attempt didn't work because you were passing the actual parameter object, not a template string. Airflow only knows how to process strings like "{{ params.something }}".
Your second attempt with explicit "{{ params.shared_data_mount_path }}" should have worked. If it didn't, maybe there was a typo somewhere or the parameter wasn't properly defined in params.
Try the solution above - should work without issues.
I also encountered the issue with FT_DEVICE_UNKNOWN when I tried to run the D2xxConsoleApp sample with my FT232R T on Ubuntu 24.04. I managed to get it working with
sudo dotnet run
after building the solution. If I publish the project as a single executable, I should also run it with sudo, e.g.
sudo ./MyApp
Otherwise, I always get FT_DEVICE_UNKNOWN and can't interact with the chip. Did you find any other solutions?
You should also make sure to unload the ftdi_sio
module (used for Virtual COM Port emulation) for your FTDI device before using D2XX commands, as stated in the driver installation instructions.
You don't need to define version number in docker compose file anymore as it’s now obsolete. You can remove it or comment it out and ensure everything works well. See https://forums.docker.com/t/docker-compose-yml-version-is-obsolete/141313/2
Looks like more problems to connect to your database, not that it cannot connect to localhost. Try to add driver, looks like it's missing. Your error says "Failed to determine DatabaseDriver". Add "spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver".
Also pay attention to spring.jpa.hibernate.ddl-auto=update. Make sure, when you first time run application and want to create database for the first time to do spring.jpa.hibernate.ddl-auto=create. After its created, I normally change to spring.jpa.hibernate.ddl-auto=update and then the new modifications of database is updated during the further work.
When you first time apply electric to system Mpu6050 opens in sleep mode. You need to wake up the sensor. This code is from my own library and it works fine.
In first line I write "0" in "power management 1" register for wake up the sensor. After that communication starts and internal sensors (gyro + accelerometer) starts working.
void MPU6050::config(){
write_byte(MPU6050_ADDR0, MPU6050_PWR_MGMT1, 0); //Mpu6050 outoff the sleep mode
write_byte(MPU6050_ADDR0, MPU6050_CONFIG, 0x02); //Mpu6050 low pass filter set to 3ms
write_byte(MPU6050_ADDR0, MPU6050_ACCEL_CONF, accel_fs_reg); //Mpu6050 Accel Set to 2g mode default
write_byte(MPU6050_ADDR0, MPU6050_GYRO_CONF, gyro_fs_reg); //Mpu6050 Gyro Set to 250 degre/sec default
delay(30); //For Gyroscope Startup Time
}
For spring 3.x.x just add lombok as an annotation processor. You will be good
annotationProcessor 'org.projectlombok:lombok'
AWS Kinesis Firehose is like a smart delivery truck that takes streaming data (like logs, clicks, or social media feeds) and sends it directly to places like Amazon S3, Redshift, or Elasticsearch — without you having to lift a finger! Once your data is there, Data Analytics tools step in to make sense of it — spotting trends, patterns, and insights that help your business make faster, smarter decisions.
Why It’s Awesome: Real-time data delivery with no coding hassle , Automatic scaling — it grows with your data , Seamless integration with analytics tools , Perfect for dashboards, alerts, and insights.
I use bluepill before and it has LED connectted to C13 pin. But in reverse!!. When you output logic low then LED lights up. When you output logic high LED turns off. Maybe your Nucleo board has same connection type.
okok bro chilllll brooo I WONT
For me, the issue seemed to be that I had "private": true
in my workspace root package json & some of the individual workspace package JSONs. After removing it, the issue seemed to go away. I'm not entirely sure why this is the case it seems unintuitive to me, but there's probably a good reason for it.
Picasso.get().load(clienLogoUrl).placeholder(R.drawable.companylogo).error(R.drawable.companylogo).noFade().into(imageView);
If you are displaying a logo or any image dynamically, resize it to a smaller size (in KB) to avoid memory issues. This will resolve the issue.
Maybe you and I made the same mistake haha. Since there are two layers of directories when unzipping, I only wrote D:apache-jmeter-5.6.3 at the time, but the actual directory is D:apache-jmeter-5.6.3apache-jmeter-5.6.3.
The syntax is used for comments in jinja 2 a templating engine used in with pathon framworks like flash dajango. Ialso came across crystal pro max
It must be a wrong apk build. you might have mistakenly built the development apk which needs your physical device to be connected with your system via USB Debugging or same internet network. Try building a preview apk which is the actual apk file that runs standalone.If you aim is to run the development apk try running your development server in your system first and then connect your physical device and your System via USB or connect both the devices to a common network.
Downgrading to "nette/di": "3.2.4"
solved the issue. In my case, i just had to set "prefer-stable": true
in composer.json.
The problem turned out to be in Nette\DI itself. It was quite a ride to debug, because the problem only manifests itself, when running PHP without a debugger! With a debugger enabled, the container gets created with the proper function, which is supposed to be:
public function createServiceHttp__request(): Nette\Http\Request
{
return $this->getService('http.requestFactory')->fromGlobals();
}
Thanks to user @rixafy on the Nette Discord server who proposed downgrading as the solution.
i am also using this query to fetch all the cases but i am unable to getting this error
[
{
"errorCode": "NOT_FOUND",
"message": "The requested resource does not exist"
}
]
Can you confirm if the MySQL instance is accessible on the specified port (3306) via a browser, terminal, or another tool? It's also possible that the issue is caused by the ${DB_PASSWORD} environment variable not being set correctly. As a debugging step, you can temporarily disable JDBC session initialization by setting spring.session.store-type=none in application.properties.
The error you're seeing means that the Dart SDK version you're currently using (2.10.0)
is not compatible with the version of the path package you're trying to use (1.8.0
nullsafety.3).This version of the path package requires a Dart SDK version between 2.12.0
and below 3.0.0.
To fix this issue, you have two options:
Upgrade your Dart SDK to version 2.12.0 or higher (but less than 3.0.0),
OR
Downgrade the path package to a version that is compatible with Dart SDK 2.10.0
Happy Coding
for tailwind just add
<textarea className="resize-none" />
i was using java 1.8 so i did following:
kotlin {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_1_8)
}
}
Well. I provided the wrong parameter there. So that function didn't work. Its a working function.
you have to take these,
accesstoken = your access token
other params -
$raw_input = file_get_contents('php://input');
if(!empty($raw_input)){
$input = json_decode($raw_input, true);
$messageId = $input['entry'][0]['changes'][0]['value']['messages'][0]['id'];
$phoneId = $input['entry'][0]['changes'][0]['value']['metadata']['phone_number_id'];
Mounting the app on my docker volume for celery solved it for me
celery:
build:
context: .
dockerfile: ./docker/Dockerfile
command: celery -A config.celery_app worker --loglevel=info
depends_on:
- django
- redis
volumes:
- ./:/app
No there isn't. The official documenation is out-of-date garbage.
The "old" TraCIAPI is considered deprecated. Please use libtraci and find examples on how to use it here: https://sumo.dlr.de/docs/Libtraci.html#c
SUMO saves some values in the registry. On Linux (and probably macOS) you can find those values in $HOME/.foxrc and if you are fine with resetting to the defaults you can just delete the directories sumo-gui and netedit inside.
Just add your /opt/ros/melodic/setup.bash
to the end of /etc/profile
.
That works right for me.
I think you need set up redirect url and sign in flow in your account, add correct url(s), follow documentation.
Check this link https://firebase.google.com/docs/auth/web/start
Yes, you need to downgrade SUMO or upgrade Veins.
For a list of compatible versions see https://veins.car2x.org/download/#compatibility
For Veins 5.2 it reports SUMO 1.11.0 as the newest possible version
add related assembly line on web.config in views forder
Days like this, makes me acknowledge the flexibility of JS.
The most voted answers did not work for me on Windows 11. After a bit of fiddling and checking 7zip's command line options, I came up with this:
for /d %%X in (*) do ("C:\Program Files\7-Zip\7z.exe" a -tzip -r "%%X.zip" "%%X/*" )
Using this line in a batch file and executing said batch inside the desired main folder, all subfolders (with their respective contents) are zipped into individual zip files.
pdf.insert_image("images/muze_dis.jpg", width=120)
I Installed These 4 Dependencies But Still Getting Same Error even I Run the App Again? :-
npm install @react-navigation/native
npm install @react-navigation/native-stack
npm install react-native-screens react-native-safe-area-context
npm install react-native-reanimated
I am Getting the Same Error When I Run MainScreen
Instead of NavigationContainer
then it Works fine?
Please Help me. I am New to ReactNative and I am Getting this Type of Error.
Found the solutions it was just simple as using user to pull the notifications and specify the array.
$notification = $user->notifications;
$response = $this->postJson("/api/notifications/{$notification[0]->id}");
How did you resolve this issue? I'm still experiencing it, and there's no way to know exactly why it's happening.
I tried all the suggestions from here like use of config.setAllowedOrigins
instead of config.addAllowed()
but in my case I had
@CrossOrigin(origins = "*")
added before my controller which was causing this. Removing this resolved the error.
I don't believe you should explicitly include the offline_access
scope when using Cognito. Based on my testing, refresh tokens are still enabled in Cognito even without the offline_access
. The Cognito UI currently states that refresh tokens are always enabled:
Refresh token authentication is always enabled.
If you are using Windows then use the Win32 API function GetAsyncKeyState();
or if you know Win32API well then use WM_KEYDOWN
message. Though assuming you would not want to do multithreading and all, your best bet is GetAsyncKeyState();
A simple workaround for this.
At the end of the button's click event, change the focus to another component such as a label.
Label1.Focus();
This instruction should fix the issue GitLens blame fails silently when ignoreRevsFile points to missing .git-blame-ignore-revs.
Fix:
Local (per repo):
bash git config --unset blame.ignoreRevsFile
touch .git-blame-ignore-revs Global (all repos):
bash git config --global --unset blame.ignoreRevsFile Why: Removes invalid reference so git blame works normally.
My issue was fixed when I changed the wwwroot/index.html
and changed this line from: <link href="{OldProjectName}.styles.css" rel="stylesheet" />
into: <link href="{NewProjectName}.styles.css" rel="stylesheet" />
Just add your /opt/ros/<ros_name>/setup.bash
to the end of /etc/profile
.
This problem is caused by that Jetbrains Pycharm don't inherit the symbols of ros2 in the setup.bash
.
For such purposes I have created VSCode "Interactive Script" extension https://marketplace.visualstudio.com/items?itemName=andriy-viyatyk.interactive-script You may find it useful.
Try hotspotting from your phone (your mobile internet) — that’s what worked for me.
I had tried restarting my PC and disabling IPv6, but those didn’t help. Then I came across this comment, and using a mobile hotspot somehow bypassed whatever was causing the issue.
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Generic.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
Add the reference in app.xaml
It resolved rendering of repeat button.
VC.One Any chance you could help me with the video link on this website?
Sure. Your compression algorithm (and decompression algorithm) is the identity function.
There was a Swift feature defined in SwiftPM System Module Search Paths
Available since swift 3.0
drizzle generate types base on your select query, you can get return types like this:
type PricesProps = {
subscription?: Awaited<ReturnType<typeof getSubscription>>;
};
use cmd instead of vscode terminal or PowerShell
I managed to track down where setFactory is defined.
https://github.com/nette/di/blob/master/src/DI/Definitions/ServiceDefinition.php#L62
https://github.com/nette/di/blob/master/src/DI/Definitions/Statement.php#L34
https://github.com/nette/di/blob/master/src/DI/Definitions/Reference.php#L39
Maybe with this will provide you the information you need to finish debugging the issue. I'm not a Nette user myself so it doesn't really tell me much but it might be just what you need.
I don't think it will affect the cold start period of lambda as you have already installed bundle present. If you were to install at runtime, then the cold start would be longer.
Sometimes packages in a different language can be heavier. The best you can do is use libraries that are lighter and then there is scope for reducing size. However this 9MB size is also fine, no issues with that. We have deployed code much heavier than this and it was not slow.
The simpliest way that works everytime on my side:
1.Go to task manager
2.Search for "mysqld"
3.End task then restart Xampp
That's it!
I have found the problem. The xml executable available to my PATH, that comes from my Oracle instalation, is probably too old and do not support the "sel" argument. I removed it from the path and added the xml executable from xml to my path. I removed the building folder and the source to be sure I restart from a clean project. The nmake is already building from 30 minutes, so at least the original problem was solved
Yes, you can easily update the list after submitting the form using HTMX attributes.
Assuming your form posts to `/todos` and your list has `id="todo-list"`, you can add these attributes to your form:
`<form hx-post="/todos" hx-target="#todo-list" hx-swap="beforeend">`
Then, your `/todos` endpoint should return *only the HTML for the new todo item* (e.g., a `<div>` or `<li>`). HTMX will automatically append this HTML to the end of the `#todo-list` element upon a successful response.
This avoids needing any client-side JavaScript to handle the update.
I wrote a step-by-step guide showing this exact pattern for a Todo app, comparing it to the React way:
https://beyondit.blog/blogs/Replace-Your-Entire-React-App-with-20-Lines-of-HTMX-A-Step-by-Step-Guide
Key things for your server endpoint:
1. Process the form data.
2. Save the new todo.
3. Render *just the HTML fragment* for the new item.
4. Send that fragment as the response.
As @JoelCoehoorn pointed out, C# arrays (string[]
) are fixed-size, making them unsuitable for dynamic collections where the size is unknown. Instead, a List<string>
is ideal for this scenario, as it can grow dynamically. @Progman noted that the provided code snippet is incomplete (e.g., missing declaration of i
and unclear purpose of choice
). Since the full context isn't provided, I assume you're trying to group consecutive identical characters into substrings (e.g., ['a', 'a', 'b', 'b', 'b']
becomes ["aa", "bbb"]
). If your goal is different (e.g., fixed-length substrings or another pattern), please clarify for a more tailored solution.
Below is a complete C# solution that:
Uses a List<string>
to store substrings.
Groups consecutive identical characters using a StringBuilder
for efficiency.
Handles special cases like null or empty inputs.
using System;
using System.Collections.Generic;
using System.Text;
public class Example
{
public static void Main(string[] args)
{
// Sample input array for testing
char[] chars = { 'a', 'a', 'b', 'b', 'b', 'c', 'c', 'd' };
// Validate input to handle null or empty arrays
if (chars == null || chars.Length == 0)
{
Console.WriteLine("Error: Input array is null or empty.");
return;
}
// Use List<string> to store substrings dynamically
List<string> substrings = new List<string>();
// Initialize StringBuilder for efficient string construction
StringBuilder sb = new StringBuilder();
// Start with the first character
sb.Append(chars[0]);
// Loop through the array starting from the second character
for (int i = 1; i < chars.Length; i++)
{
// If the current character matches the previous one, append it
if (chars[i] == chars[i - 1])
{
sb.Append(chars[i]);
}
else
{
// If the character changes, save the current substring and start a new one
substrings.Add(sb.ToString());
sb.Clear(); // Reset StringBuilder for the next group
sb.Append(chars[i]); // Start new substring with current character
}
}
// Add the last substring after the loop
if (sb.Length > 0)
{
substrings.Add(sb.ToString());
}
// Display the generated substrings
Console.WriteLine("Generated substrings:");
foreach (string s in substrings)
{
Console.WriteLine(s);
}
}
}
For the input char[] chars = { 'a', 'a', 'b', 'b', 'b', 'c', 'c', 'd' }
, the output is:
Generated substrings:
aa
bbb
cc
d
This solution should meet your needs for dynamically adding substrings to a collection.
I suggested that you look at Convert columnar data to multiple rows. with an answer by @rockinfreakshow.
Use this formula:
={"Name","Contacts";tocol({A2:B6}),tocol(C2:D6)}
Results