Aplicații
E-mail 1007 Solutii
Here’s the right way to use Microsoft Word on your phone
When treated like the desktop equivalent, the Microsoft Word mobile app can quickly become frustrating. However, once you embrace the small screen and understand the app’s strengths, the experience becomes instantly more enjoyable. Here are my top tips for using the Word mobile app.
[mai mult...]How to free up disk space on your Mac
[mai mult...]How to extract audio from a video file on iPhone
There are times when you may want to keep the audio from a video for a future project, use it as a ringtone, or for any personal reason you can think of. While this often requires a third-party app, website, or secondary device, you don’t actually need one to extract audio.
[mai mult...]Cum editezi meniul de pagini (Pages/Menu) în WordPress folosind Avada
Editarea meniului principal de navigare (Header Menu)
1. Deschide editorul de meniuri din WordPress
1. Autentifică-te în panoul de administrare **WordPress**
2. Mergi la:
* Aspect → Meniuri (Appearance → Menus)**
2. Selectează meniul corect
* Din partea de sus, alege meniul asociat cu:
* **Main Menu**
* **Primary Menu**
* sau **Header Menu**
* Apasă **Selectează**
3. Adaugă pagini în meniu
În partea stângă:
1. Apasă pe **Pagini (Pages)**
2. Bifează paginile dorite
3. Apasă **Adaugă în meniu (Add to Menu)**
4. Reordonează meniul
* Trage și plasează elementele pentru a schimba ordinea
* Trage ușor spre dreapta pentru a crea:
* **Submeniuri (dropdown-uri)**
5. Șterge o pagină din meniu
* Apasă săgeata de lângă elementul din meniu
* Apasă **Elimină (Remove)**
6. Salvează modificările
Apasă **Salvează meniul (Save Menu)**
Meniul este acum actualizat pe site.
Editează conținutul unei pagini deja din meniu
Dacă vrei să modifici **conținutul** unei pagini:
1. Mergi la **Pagini → Toate paginile (Pages → All Pages)**
2. Apasă pe numele paginii
3. Editează folosind:
* **Avada Live Builder**
* sau editorul clasic WordPress
4. Apasă **Actualizare (Update)**
⚠️ Acest lucru **nu modifică structura meniului**, doar conținutul paginii.
Setări speciale pentru meniu în Avada (Important)
Dacă meniul nu apare corect sau nu funcționează cum trebuie:
1. Mergi la:
**Avada → Options → Menu**
2. Verifică setări precum:
* Meniu fix (Sticky Menu)
* Meniu mobil (Mobile Menu)
* Mega Menu
(Acestea sunt controale specifice temei **Avada**)
Editarea meniului din subsol (Footer Menu), dacă există
1. Mergi la **Aspect → Meniuri (Appearance → Menus)**
2. Selectează meniul asociat cu:
* **Footer Menu**
3. Editează în același mod
4. Apasă **Salvează**
Probleme frecvente și soluții
| Problemă | Soluție |
| ———————— | —————————————– |
| Modificările nu apar | Șterge cache-ul / reîmprospătează pagina |
| Editezi meniul greșit | Verifică locația meniului (jos în pagină) |
| Meniul mobil este greșit | Avada → Options → Mobile Menu |
Arduino Ultrasonic Sensor
The sensor sends out an ultrasonic sound wave from the TRIG pin. When the sound wave hits an object, it reflects back and is detected by the ECHO pin.
The Arduino measures the time it takes for the signal to return and uses that to calculate the distance.
Distance (cm) = (Time in microseconds × 0.034) / 2
The speed of sound is 0.034 cm/µs. We divide by 2 because the sound travels to the object and back.
Required Components
| Component | Quantity | Purpose |
|---|---|---|
| Arduino Uno / Nano / Mega | 1 | Main microcontroller |
| HC-SR04 Ultrasonic Sensor | 1 | Measures distance |
| Jumper Wires | 4 | Connections |
| Breadboard (optional) | 1 | Easy wiring |
| USB Cable | 1 | Power & programming |
Pin Connections
Connect the HC-SR04 sensor to the Arduino as shown below:
| HC-SR04 Pin | Arduino Pin |
|---|---|
| VCC | 5V |
| GND | GND |
| TRIG | Digital Pin 9 |
| ECHO | Digital Pin 10 |
Note: The ECHO pin outputs 5V, which is safe for Arduino Uno/Nano/Mega.
Arduino Code
Upload the following code to your Arduino:
#define TRIG_PIN 9
#define ECHO_PIN 10
void setup() {
Serial.begin(9600);
pinMode(TRIG_PIN, OUTPUT);
pinMode(ECHO_PIN, INPUT);
}
void loop() {
long duration;
float distance;
// Clear trigger
digitalWrite(TRIG_PIN, LOW);
delayMicroseconds(2);
// Trigger ultrasonic burst
digitalWrite(TRIG_PIN, HIGH);
delayMicroseconds(10);
digitalWrite(TRIG_PIN, LOW);
// Measure echo time
duration = pulseIn(ECHO_PIN, HIGH);
// Convert time to distance
distance = (duration * 0.034) / 2;
// Output result
Serial.print("Distance: ");
Serial.print(distance);
Serial.println(" cm");
delay(500);
}
Code Explanation
- pulseIn() measures the duration of the ECHO signal.
- The sensor sends a 40 kHz ultrasonic burst using the TRIG pin.
- Arduino calculates the distance based on the speed of sound.
- Distance is printed in centimeters to the Serial Monitor.
Testing the Sensor
- Upload the code to your Arduino
- Open the Serial Monitor
- Set the baud rate to 9600
- Move your hand in front of the sensor
- Watch the distance update live
You should see something like:
Distance: 15.4 cm
Troubleshooting
| Issue | Cause | Solution |
|---|---|---|
| Always reads 0 cm | Incorrect pin wiring | Check TRIG and ECHO |
| Values jump around | Object surface curved or too small | Use a flat object |
| No Serial output | Wrong baud rate | Set Serial Monitor to 9600 |
| Sensor not working | No power | Ensure 5V and GND connected properly |
[mai mult...]