
That begs the question how do you separate the time into seperate elements? Making use of explode can work. Exploding where there a : so: $parts = explode(':', '14:25:00'); This would result in an array: [ "14", "25", "00", ] To use an element you can refer to its index for example $parts[0] would contain 14 Using them by their index is fine to do but kinda messy. I prefer to give each element a name using the list function li...
ادامه مطلب
Running API tests you may be tempted to open PostMan or another API client, did you know, you can run HTTP requests from inside PhpStorm directly? When developing a new API, you will want to run the API endpoints. Being able to run them without leaving PhpStorm speeds up your workflow. To start a request file, you can either select a HTTP Request file when using the new file or create a new scratch file. For a scratch file select the HTTP Request type. In either case ...
ادامه مطلب
I've documented my PhpStorm setup, what theme I use, plugins, and keybindings. Theme I use the New UI which is located at Appearance & Behaviour -> New UI Once tued on I use the Light Theme: I like to keep things minimal, in fact, I tu off the toolbars and status bars by toggling distraction-free mode Plugins .env file support Environment variables completion based on .env, Dockerfile and docker-compose.yml files. Go to declaration(in .env ...
ادامه مطلب
The script generated by the Feedback Form Wizard has been updated to improve compatibility with PHP 8 (eg, 8.0, 8.1, etc). Note: if you have generated your form and script after 1 January 2023, you already have this version (ver 3.2.0). ...
ادامه مطلب
I wanted to create a table of contents from the post's heading tags automatically without having to change the headings like adding an id or anchor. I started to look at existing solutions and came across this custom function on Stackoverflow by sjaak-wish function generateIndex($html) { preg_match_all('/<h([1-6])*[^>]*>(.*?)</h[1-6]>/',$html,$matches); $index = "<ul>"; $prev = 2; foreach ($matches[0] as $i => $match){ $curr = ...
ادامه مطلب
I tried enabling the New Management flag and adding a supervised user. But the option to lock a user profile was not activated. Is there a way to password protect a chrome user profile or lock the whole browser(like firefox's master password) ...
ادامه مطلب
I try to set a root password as follows: mysqladmin -u root password "root"; Then I make a connection to my MySQL server, the following command: mysql -u root -p Enter password: **** enter image description here ...
ادامه مطلب
Just bought this printer, everything works well wirelessly except airprint from my iPad. Hardware: HP m201dw printer, initially configured to a Windows 10 PC through USB to select wifi network, but now running wirelessly only on the main network on a dhcp-given ipv4. All default protocols enabled, including Airprint, Bonjour and IPP. Tried enabled IPPS, disabling ipv4, switching ePrint (web services), but nothing made a difference on airprint. Windows 10 PC connected to router on etheet. Prints ...
ادامه مطلب
I'm playing around with my fresh Windows 2012 R2 VM and am following this guide to convert it to a 'workstation'. I have network discovery on and all the other advanced sharing settings necessary on my server-tued-workstation. I have a Win 8 VM that is hosting a shared folder and my win 10 machine that's hosting a shared folder. The majority of the time, I'm able to access the shared resources. The problem I've run into is that if I restart my Win2012 VM, my mapped connections break. I run into ...
ادامه مطلب
I've got an old laptop (Thinkpad T60, 32 bit, 7 years old) running Linux Mint, on which I'd like to install Windows as well. However, I can't get it to boot from the flash drive containing the Windows installation image: After writing the Windows installation image to the flash drive (dd if=win.iso of=/dev/sdc bs=1M), it is being displayed as a UDF device. GParted is not able to read any information ("Waing: unrecognised disk label"), but contents can be accessed after mounting. When restarting ...
ادامه مطلب
In my php.ini, I see this option called Command buffer size, which is set to 4096. However, what is this and what exactly does this do? In what cases would you want to increase (or decrease) this limit? I tried googling around but came up empty. ...
ادامه مطلب
I have a full sync.ed Chrome Browser version 53 (above 45 Chrome isn't working with the osx keychain) and I need to import my safed passwords into my virgin safari browser. It isn't possible to import into LastPass for e.g.. Firefox isn't a connection to help... Thanks in advance. Let's block ads! بخوانید...
ادامه مطلب
So as the title says, I bricked my laptop. I'm not that good at explaining but let me try. I reformatted my laptop and installed the drivers given by the acer support, driver and manual site. and noticed my speakers aren't working. I opened my laptop to check if the speakers are still okay or the pins might have been disconnected. So it was still okay, after a couple of minutes searching, I found out I needed to update my BIOS. and so I did (yes I checked the version first). everything was doing...
ادامه مطلب
I have a wireless printer that connects to my wifi router. There is a function in the printer that allow me to lock the printer temporarily so no one can print/scan... and unlock it. The problem is the wifi network is being shared with other people and I don't want them to access printer and print out everything. My question is how can I prevent others from accessing printer. I can print with mobile phone and computer so is there a way to do so. I can not modify the network as well. Printer mode...
ادامه مطلب
After 3 years of use, Windows indicates a problem with the BIOS and the machine is unable to boot with a linux rescueCD. Attempts to upgrade the BIOS indicate success, however, the machine does not seem to boot the BIOS. Monitor indicates no signal If the BIOS is foobar, what can be done to correct or re-install? What diagnostic can be performed? Procedures / actionable suggestions are appreciated. Let's block ads! بخوانید...
ادامه مطلب
BACKGROUND HP DC7600 Desktop circa 2005: received in 2012 Symptoms are new and have not been observed before Symptoms observed with 2 different SATA disks Boot from USB stick fail: boots from HDD Fails to boot with sysrescueCD 0.3.5. => Blinking Keyboard: Caps and Scroll Lock LEDs Screenshot: SYMPTOMS BIOS SETTINGS Because the BIOS settings have not been problematic in the last 3 years I do not think they are the problem, however, if they are a problem: QUESTIONS REQUESTS Are there any ot...
ادامه مطلب
have an issue with php5-tidy. Looks something broke and I am not able to figure out. Have tried all options of --purge and so on to clean and re-install but to no avail. Following is the error I am getting for apt-get install php5-tidy: Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following extra packages will be installed: libtidy-0.99-0 The following NEW packages will be installed: libtidy-0.99-0 0 upgraded, 1...
ادامه مطلب
I am trying to migrate an installation of PHPlist via the Installatron installer provided by the cPanel console on a VPS. This error occurs in red under the URL heading: ! This import will require 1MB of available disk space to complete. Sufficient disk space is currently not available. For assistance or to add additional disk space, contact your web hosting administrator. Technical Error: Unable to create directory `/public_html/phplist'. I went into SSH and created the /public_html/phplis...
ادامه مطلب
I am using HP550 Notebook PC, I can't find option to enable VT-x in my laptop. In my BIOS settings, I don't have options related Virtualization Technology, my BIOS version is F0.0. I also tried to update my BIOS with version F1.0, but it results in 'unhandled exception' while installing. I don't know how to fix it. Please give me solution for this. Thanks... Let's block ads! بخوانید...
ادامه مطلب
I'm using Kubuntu and I have just upgraded from KDE 5.5.5 to 5.6.5. However, after the upgrade, Kmail asks for the Kwallet password after every reboot. I have tried to re-connect Kmail via Kwallet Manger or reset Kwallet by removing ~/.local/share/kwalletd and ~/.kde/share/apps/kwallet but they didn't work. How can I get rid of the prompt? Thanks in advance. :) Let's block ads! بخوانید...
ادامه مطلب