متن مرتبط با «is it possible to get pregnant on your period» در سایت Recent Questions نوشته شده است
If you have one or more websites written in XHTML 1.0,
this program (which may be
downloaded and used free of charge) lets you convert them to HTML5 without having to muck around
with rewriting HTML and adding CSS....
ادامه مطلب
Thong>is guide takes you through the process of
converting a website
from XHTML 1.0 to HTML5 using the Fiverizer software. (Fiverizer is a program that I wrote to
convert my own websites, all of which were also in XHTML 1.0. It may be downloaded and used free of charge.)
...
ادامه مطلب
On Github you way from time to time need to patch release the previous version of a published release.
This took me longer than I care to admit to understand the steps involved. Hence I'm documenting them in this post.
Step 1: Check out the branch corresponding to the previous version of your code.
git checkout 7.3.0
Step 2: Fix the bug in the code.
Let's say it's a breaking change that's been fixed in the code.
Step 3: Commit the changes with a version number that indicates the patch release.
Commit the fix
git commit -m "Fix bug in 7.3.0"
Next, create a new tag
git tag 7.4.0
Step 4: Push the changes to the remote repository.
git push origin 7.4.0
Step 5: Create a new release for ...
ادامه مطلب
Suppose you find yourself in a song>ituation where you need to disable or intercept a console command in Laravel. This tutorial will primarily focus on how to intercept the php artisan migrate command. We'll delve into the command method app/Console/Keel.php and explore how to prevent the migrate command from executing any actions.
Inside the command method of app/Console/Keel.php
In Laravel 11 use routes/console.php
Intercept command
You can intercept php artisan migrate and, instead, catch it and use a closure.
Artisan::command('migrate', function () {
//
});
This would essentially stop the migrate command from doing anything.
You could then print a message out:
Artisan::command('migrat...
ادامه مطلب
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
list($hours, $minutes, $seconds) = explode(':', '14:25:00');
When using list() passing an array to it will allow you to name each index of the array in the order listed.
Putting this into p...
ادامه مطلب
Ruing API tests you may be tempted ong>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 a file ending in .http for example scratch.http You can name the file anything you like and have multiple files.
The difference between having .http files in your project...
ادامه مطلب
I've documented my PhpSong>torm 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 file) and usages(in code), by Ctrl(Cmd)+click or hotkey(Ctrl(Cmd)-B, etc.)
.env file syntax highlighter
BitBucket Pull Requests (Paid)
The plugin allows you to review Atlassian Bitbucke...
ادامه مطلب
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/
بخوانید...
ادامه مطلب
If you've already used JSON lang in your views, here's a handy package to extract all lang keys to language files. The package exports all your __(‘some text’) calls to language files.
https://github.com/kkomelin/laravel-translatable-string-exporter
Here's a video demo.
[embedded content]
بخوانید...
ادامه مطلب
The script generated by the
Feedback Form Wizard has been updated
ong>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).
...
ادامه مطلب
CKedong>itor 5 out of the box does not come with upload capabilities. Uploading is supported with its plugins, some are official paid plugins that require subscriptions. There are a few free options.
Base64 upload adapter
This plugin allows uploads that will convert an uploaded image into base64 data. Very easy to use but will require you to save the complete base64 code with the post, this can be get long.
Docs
Simple image adapter
An image upload tool. It allows uploading images to an application ruing on your server using the XMLHttpRequest API with a minimal editor configuration.
Docs
Use the online builder to add the simple image adapter then download the generated bundle unzip and p...
ادامه مطلب
Let's say you have a blog and have posts ordered by their publong>ished date. Later you decide you want to pin certain posts.
Pied posts should be displayed before any other posts regardless of their published date.
The Solution
You can accomplish this by modifying the order clause in the query.
Take this order:
->orderBy('published_at', 'desc')
This will order posts by their published date in descending order.
Adding a second-order clause:
->orderBy('is_pied', 'desc')->orderBy('published_at', 'desc');
This time ordered by a is_pied column then order by the published_at column.
This will show the posts pied first and then show the posts in their published order.
The Setup
...
ادامه مطلب
When upgrading from an Intel mac ong>to an Apple Silicone I noticed docker fails to run. I'm using Laravel Sail when Sail is installed or when a sail up command is attempted I get an error:
docker: 'compose' is not a docker command
The reason for this is a docker-compose is now a plugin. Docker needs docker-compose to be installed. Use brew to install docker-compose
brew install docker-compose
Once installed sail will function normally without any extra setup.
بخوانید...
ادامه مطلب
I wanted ong>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 = $matches[1][$i];
$text = strip_tags($matches[2][$i]);
$slug = strtolower(str_replace("--","-",preg_replace('/[^da-z]/i', '-', $text)));
$anchor = '<a name="'.$slug.'">'.$...
ادامه مطلب
As a websong>ite owner or content creator, you know how important it is to write great titles. Not only do titles need to be reader-friendly so that people will actually want to click on them, but they also need to be search engine friendly in order to ensure good click-through rates and rankings. So how do you strike the perfect balance? By following some best practices for writing SEO-friendly titles, of course! Keep reading to lea more.
One of the most important things you can do when writing an SEO-friendly title is to include focus keywords. Focus keywords are the words or phrases that best describe your page's content and are most likely to be used by people when searching for somethi...
ادامه مطلب
Microsoft's free web edong>itor is a sophisticated WYSIWYG web editor with many features usually only found in commercial offerings
(and no wonder, since it was previously something you had to buy). This tutorial series takes you through the process of
designing a
fully functional multi-page website with Expression Web....
ادامه مطلب
Thong>is article on whether
a domain name registrar is the same thing as a web host answers a question I was asked by a visitor....
ادامه مطلب
Thong>is guide takes you through the steps of
setting up your own blog.
(Note that the article deals specifically with making a blog. If you want some other type of site, you should read
How to Create a Website
instead.)...
ادامه مطلب
The entire BlueGriffon Tutorial
has been updated for the version 3 series of BlueGriffon. Those thinking of using it to
create a website can find
the complete series online....
ادامه مطلب
What if someone else owns
the domain on which your website sits? For example, as it was in the case of one of my visitors,
someone may have bought the domain for you, and retained ownership of it. Or perhaps your website is on a free web host,
or a blog host, and you are using the web address given to you by them.
This article deals with
how you can solve that problem (or potential problem)....
ادامه مطلب