
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 ...
ادامه مطلب
Laravel Testing Cookbook will cover common use cases and will be ready in a few months time. Sign up for the waitlist to be notified when it's ready! The book will cover both PestPHP and PHPUnit. Use the book as a reference for practical examples of testing URLs, Forms, Interactions, Transactions, using third-party API's and more. Join the waitlist or pre-order at https://laraveltestingcookbook.com/ بخوانید...
ادامه مطلب
The article on how to add a CAPTCHA to your contact form has been updated to include information on how you can use the newest CAPTCHA option (the one that potentially pays you for using them) of the Feedback Form Wizard. ...
ادامه مطلب
The Feedback Form Wizard has been updated to include an additional CAPTCHA option. This one is not only free, it apparently even pays you when your visitors solve the CAPTCHA challenges. For those wondering, CAPTCHAs are those "I am not a robot" or "I am human" checkboxes on forms, used to make sure that a human is at the helm, and not some spam robot....
ادامه مطلب
If you need to set an environment to be a specific one such as staging you can override the environment by changing the config value app_env config(['app.env' => 'staging']); Then doing a dd on config(‘app.env’) will retu that environment you’ve just set. I haven’t found a way to set environments with app()->environment() so instead, I recommend using this in_array function and passing in the config(‘app.env’) and then specifically defining the environments. in_a...
ادامه مطلب
When you have a CSV generated how do you test it runs. Take this extract: public function export() { $actions = $this->getData()->get(); $columns = [ 'User', 'Start Date', 'End Date', ]; $data = []; foreach ($actions as $action) { $data[] = [ $action->user->name ?? '', $action->due_at, $action->completed_at, ]; } $now = Carbon::now()->format('d-m-Y'); $filena...
ادامه مطلب
Simple answer: Whatever https://java.com/ tells you to install (it will autodetect your browser and operating system). More nuanced answer: If you want to use Java as a browser plugin, choose the version that matches your browser. If you just want to use it without the browser, 64-bit is better. It's also fine to install both; just make sure that when you update, you update both. Source: https://blogs.oracle.com/java-platform-group/entry/choosing_64_and_or_32 Let's block ads! بخوانید...
ادامه مطلب
I am making several websites on a single workstation, so I want to test them in more or less isolated environment. Having some Linux background, I decided to make a chroot for each of these web apps. To be able to launch my app handlers from inside the chroot, I wanted to forward the visibility of /usr/local/bin to the chrooted container, but I fail to see a direct equivalent of mount --bind. Is it at all possible to have a chroot with vanilla OS X, without FUSE or other keel extensions? Let's b...
ادامه مطلب
I have a list of data that I need to rearrange in a specific way in the next sheet. I want to make the data to automatically be inputted to the next sheet as below as the total data is actually a lot and it takes time to do this by transposing and copy pasting to the correct order. Is it possible to make the data be arranged as such automatically by functions/macros? Let's block ads! بخوانید...
ادامه مطلب
The startup priority in Windows is as follows, listed from first to start to last to start: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRunonce HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorerRun HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindowsRun HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRunOnce SystemDriveDocume...
ادامه مطلب
I can push and pull to repositories I've made from github, but how can I create a new repository from the PS cmd line? ...
ادامه مطلب
I have: A laptop with one USB3 port and a few USB2 ports A USB3 hub Two identical USB3 hard drives To transfer data between the two USB3 hard drives, what is the optimum arrangement? For example, I could connect both drives to the USB3 hub and transfer data, or I could plug one into the laptop's USB3 port and another into a USB2 port. Let's block ads! بخوانید...
ادامه مطلب
I want to rebuild my test lab. Right now I have a server with KVM and I want to add my new desktop on the loop. In my desktop I use VirtualBox as a hypervisor. What I want to achieve is more or less the following diagram: Some more information: The default GW is my CPE Test LAN is 192.168.0.0/24 KVM LAN is 192.168.0.0/24 DNS is provided by the Server (192.168.0.2) DHCP for the Test LAN is provided by the CPE DHCP for the KVM LAN is provided by the KVM What I want is: Provision VMs using Foreman...
ادامه مطلب
Info: I'm using acer aspire 5733 (windows 8). I recently bought a new battery online that has a capacity of 112 Wh (which is double the original 48 Wh AS10D31 battery that the laptop came with). It came with the same voltage as the original one which is 10.8 V. Charger supplies 19 V 3.42 A 65W. Problem: I cannot charge the new battery past 43% even after two days of charging. I tried to calibrate the battery by draining it all the way and uninstalling Microsoft ACPI compliant control but all att...
ادامه مطلب
Currently I was making some graphs and manipulating some data. It looks pretty good so far. Problem is : I left my work computer at work, and need to have some graphs tommorow. The work computers generally all have Excel 2007. I was having some problems earlier today making the graph on my work computer and got home and dabbled around and finally got my desired graph. Now I'm not sure whether or not this is because Excel 2016 optimizes some things better, or I just formatted my data much better....
ادامه مطلب
Let's say I leverage the info in these following answers.. to creat a "New RTF Document" menu item to Initiate/ Invoke creation of a RTF Document. How, can I get "Word 2010" and "Write/ Wordpad" to default to do so, using a Narrow (0.5) or Custom Page Layout? I know I can change Margins after opening the document. But to do it every time for every New RTF is too much effort. Also, I know there are some "Default" templates/ mechanisms that Word defaults to when it creates a New Document But I...
ادامه مطلب
I was farting around with dpkg on my recently re-installed system, looking for a way to see which packages took up the most space (which had been an issue previously) and discovered the following: $ dpkg-query -W -f='${Installed-Size}t${Package}n' | sort -nr 158443 linux-image-extra-4.4.0-34-generic 158201 linux-image-extra-4.4.0-31-generic 121492 linux-firmware 109159 firefox 108164 libgl1-mesa-dri 68655 linux-headers-4.4.0-34 68628 linux-headers-4.4.0-31 58638 breeze-icon-theme 542...
ادامه مطلب
OK. I know this question is really long but I wanted to be specific. Let me explain in more detail. I am using CoffeCup HTML editor software to edit a website. I have started a Website Project using the feature in CoffeCup (CC). I have also included a private FTP server as part of the project. I verified that CC is indeed connected to that server. I set the Website Project Path to my Desktop/Cyroot Stuff/CYROOT. Now when I use CC's Test Webpage feature to test an HTML page from my local source I...
ادامه مطلب
Upgrading cpanel, I'm getting the following error during install (from the cpanel logfile): [Starting localperl] ! Installing Test::More failed. See /root/.cpanm/work/1470678270.4225/build.log for details. Retry with --force to force install it. ! Installing the dependencies failed: Module 'Test::More' is not installed ! Bailing out the installation for Try-Tiny-0.24. ! Installing the dependencies failed: Module 'Test::More' is not installed ! Bailing out the installation for HTTP-Tiny-0.058. !...
ادامه مطلب
I am trying to setup an OpenVPN server on my desktop that I will connect to on my laptop (both running windows 8.1 64-bit, with the 64-bit versions of OpenVPN installed). The setup procedure calls for the easy-rsa package, which is no longer included with OpenVPN, but is available separately. I have installed easy-rsa version 3.0.1. The first step in the setup is to run "init-config" in command prompt in the directory "C:Program FilesOpenVPNeasy-rsa", but it fails, giving me the typical "not rec...
ادامه مطلب