Soluții

How to delete a specific content from a file using preg_replace() function in PHP?

preg_replace( $pattern, $replacement, $subject);
Parameters:

$pattern: It contains the string we have to replace.
$replacement: It contains the string that will replace the existing string.
$subject: It contains the main string file where need to remove the string.
We have created a text file named as fruits.txt

mango
apple
papaya
guava
apple
grapes
mango
apple

This program deletes a specific content from the file using preg_replace() function.

[mai mult...]

How to delete text from a file using preg_replace() function in PHP?

preg_replace( $pattern, $replacement, $subject);
Parameters:

$pattern: It contains the string we have to replace.
$replacement: It contains the string that will replace the existing string.
$subject: It contains the main string file where need to remove the string.
We have created a text file named as fruits.txt

mango
apple
papaya
guava
apple
grapes
mango
apple

This program removes all the strings from the given file.

[mai mult...]

Creare stick bootabil cu Ubuntu

Daca dorim sa instalam un alt sistem de operare in afara de Windows, Ubuntu este o buna alternativa deoarece are o interfata grafica intuitiva si mai ales, este gratuit. Desi exista mai multe alternative pentru a instala Ubuntu, din punctul meu de vedere, cea mai usoara modalitate este folosirea unui stick bootabil. Pentru aceasta operatiune vom folosi aplicatia Rufus, dar desigur ca puteti folosi si alte programe asemnatoare.

[mai mult...]

How to Force Close Apps on Android TV

android tv force close apps hero image

It’s always annoying when an app doesn’t work as it should. Sometimes, the only thing you can do to solve the problem is force close the app. You can do this on your Android TV just like on your smartphone. Here’s how.

There are a few reasons why you might need to force close an Android TV app. Perhaps video streaming is choppy, the app is being laggy and slow, or it’s just plain unresponsive. Whatever the case may be, force closing the app will usually solve the problem, and it’s simple to do.

[mai mult...]

How to See Your Notification History in Android

android notification history hero

Notifications are a key component of smartphones, so it can be annoying if you accidentally swipe one away before reading it. Introduced in Android 11, “Notification History” is a log of every notification you’ve dismissed. Here’s how to use it.

The Notification History feature is not enabled by default. Once turned on, it will keep a log of every notification that was dismissed over the past 24 hours. This includes system notifications and alerts that appeared and disappeared on their own.

[mai mult...]