EPIC Cyprus – How to Top Up
To top up your account:
- Dial 202, the 14-digit code#, and press Send/Call.
- Call for free to 2020, and follow the instructions.
To top up the account of another EPIC subscriber
- Call 136 and follow the instructions.
To top up your account:
To top up the account of another EPIC subscriber
Managing disk space is a critical task for system administrators and users alike. In Linux systems, the /var/log
directory can become a source of space consumption due to the accumulation of log files. In this post, we’ll explore a simple command to free up space by deleting old compressed log files and discuss its pros and cons.
The command find /var/log -type f -name "*.gz" -delete
is a powerful way to clean up space in the /var/log
directory. Here’s a breakdown of what this command does:
find /var/log
: Searches in the /var/log
directory.-type f
: Restricts the search to files.-name "*.gz"
: Looks for files ending with .gz
, which are typically compressed log files.-delete
: Deletes the files that match the search criteria..gz
files, which are usually older log files that have been compressed, thus keeping the most recent logs intact..gz
files, regardless of how recently they were compressed.-delete
flag first to review which files will be deleted.While the command find /var/log -type f -name "*.gz" -delete
is an effective way to free up space in the /var/log
directory, it’s important to use it judiciously. Understanding its pros and cons helps in making informed decisions about log management in a Linux environment.
Using the playbackRate
command to adjust video playback speed on YouTube slightly differs from using it on a standard HTML video element. This is because YouTube uses its player interface, built on top of the HTML5 video API but includes additional features and customizations.
Here’s a step-by-step guide on how to use the playbackRate
command on YouTube:
Open YouTube and Select a Video: Navigate to YouTube and open the video you want to adjust.
Access the Browser Console:
Ctrl+Shift+I
(Windows/Linux) or Cmd+Option+I
(Mac).Use the Correct JavaScript Command:
document.querySelector('video').playbackRate = X;
X
with the desired playback speed. For example, 1.5
for 1.5x speed, or 0.75
for 75% of the normal speed.
document.querySelector('video').playbackRate = X;
For regular use, the built-in speed settings in the YouTube player (accessible via the gear icon in the player controls) are the recommended and easiest method to change playback speed. They provide a range of speed options in a user-friendly manner without the need for coding or console commands.
playbackRate
Command in JavaScript
document.getElementsByTagName("video")[0].playbackRate = X;
In the dynamic world of web development, JavaScript stands as a cornerstone technology, enabling developers and users to interact with web content in powerful ways. Among its many features is the ability to control video playback on web pages. This blog post delves into one such aspect: using the playbackRate
command to control the speed of video playback.
playbackRate
?The playbackRate
property in JavaScript is a feature of the HTML5 Video API. It allows developers to change the speed at which a video plays on a web page. The command document.getElementsByTagName("video")[0].playbackRate = X;
is a practical implementation of this feature.
document
: This is the root node of the HTML document.getElementsByTagName("video")
: This method returns a live HTMLCollection of elements with the specified tag name, in this case, “video”.[0]
: Since getElementsByTagName
returns a collection, [0]
accesses the first video element in the collection. If there are multiple videos, changing the index accesses different videos.playbackRate
: This property sets or returns the current playback speed of the video. 1
is the normal speed, values greater than 1
increase the speed, and values between 0
and 1
slow it down.X
: This represents the desired playback speed. For instance, setting X
to 1.5
would make the video play at 1.5 times its normal speed.playbackRate
. For example, document.getElementsByTagName("video")[0].playbackRate = 1.5;
speeds up the first video by 50%.playbackRate
is not supported, consider alternative methods or inform the user.The playbackRate
property in JavaScript offers a simple yet powerful tool for enhancing the video viewing experience on web pages. By understanding and utilizing this command, developers can provide more dynamic and user-friendly web applications. Whether it’s for educational purposes, accessibility, or just personal preference, the ability to control video playback speed is an invaluable feature in today’s web landscape.
Creating a WiFi hotspot on Ubuntu 22.04 is a straightforward process that can be very useful for sharing your internet connection with other devices. Turning your Ubuntu machine into a WiFi access point is a handy solution, whether at home or in a setting where a traditional WiFi network isn’t available. Here’s a detailed guide on configuring WiFi Access Points using the network-manager snap.
Before we begin, ensure that you have the following:
network-manager
snap installed on your system.Open the Terminal: First, open your terminal. You can do this by pressing Ctrl + Alt + T
or searching for ‘Terminal’ in your applications menu.
Identify Your WiFi Interface: You need to know the name of your WiFi network interface. You can find this by running the command nmcli device status
. Look for the device under the “DEVICE” column that has “wifi” listed in the “TYPE” column.
Configure the WiFi Hotspot: Use the following command to set up your WiFi hotspot:php
nmcli d wifi hotspot ifname <wifi_iface> ssid <ssid> password <password>;
Replace <wifi_iface>
with your WiFi interface name, <ssid>
with your desired network name (SSID) and <password>
with your chosen password. Remember, the password should be between 8-63 characters or 64 hexadecimal characters.
For example, if your WiFi interface is wlan0
, your desired SSID is MyHotspot
, and your password is MyStrongPassword123
, the command will look like this:
Connection Verification: If the command is successful, network-manager
will create a connection named ‘Hotspot <N>’, where <N> is a number. This indicates your hotspot is active.
Shared Internet Connection: The created hotspot offers a shared connection by default. This means any device connected to your hotspot should be able to access the internet if your Ubuntu device has internet access.
Connecting Devices: Search for available WiFi networks on your other devices (like smartphones or laptops). You should see the SSID you set (MyHotspot
in our example). Connect to it using the password you configured.
Creating a WiFi hotspot on Ubuntu 22.04 is a useful feature, especially when you need to share your internet connection quickly and efficiently. Following these simple steps, you can turn your Ubuntu machine into a reliable WiFi access point for various devices.
ncmli device wifi hotspot [ifname ifname] [con-name name] [ssid SSID] [band {a | bg}] [channel channel] [password password] Create a Wi-Fi hotspot. The command creates a hotspot connection profile according to Wi-Fi device capabilities and activates it on the device. The hotspot is secured with WPA if device/driver supports that, otherwise WEP is used. Use connection down or device down to stop the hotspot. Parameters of the hotspot can be influenced by the optional parameters: ifname what Wi-Fi device is used. con-name name of the created hotspot connection profile. ssid SSID of the hotspot. band Wi-Fi band to use. channel Wi-Fi channel to use. password password to use for the created hotspot. If not provided, nmcli will generate a password. The password is either WPA pre-shared key or WEP key. Note that --show-secrets global option can be used to print the hotspot password. It is useful especially when the password was generated.