Recent Questions

متن مرتبط با «running windows 10 in vmware» در سایت Recent Questions نوشته شده است

15 years of blogging 500 posts later

  • نیلوبلاگ

    You know, it's funny how the big milestones can sneak up on us. Just as I was putting the finishing touches on my recent Headless Hashnode tutorial, I realized it's been 15 years since I started this blogging jouey—and what's more, I was just 1 post away from blog update 500! It got me thinking about how this whole blogging adventure has shaped my career in web development. I’ve had the same enthusiasm for sharing my experiences as I have for coding, and what better way to commemorate this occas...

    ادامه مطلب
  • Extracting a time into select menus with PHP

  • نیلوبلاگ

    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 HTTP requests in PhpStorm

  • نیلوبلاگ

    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'm writing a new Laravel book on testing called Laravel Testing Cookbook

  • نیلوبلاگ

    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/ بخوانید...

    ادامه مطلب
  • Upload images in Ckeditor 5 with Laravel

  • نیلوبلاگ

    CKeditor 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 applica...

    ادامه مطلب
  • Adding pinned posts with Laravel

  • نیلوبلاگ

    Let's say you have a blog and have posts ordered by their published date. Later you decide you want to pin certain posts. Pinned 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_pinned', 'desc')->orderB...

    ادامه مطلب
  • Running Docker on M1 Mac - docker: compose is not a docker

  • نیلوبلاگ

    When upgrading from an Intel mac 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. بخوانید...

    ادامه مطلب
  • Use PHP to generate table of contents from heading tags

  • نیلوبلاگ

    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 = ...

    ادامه مطلب
  • What's the Difference Between a Domain Name Registrar and a Web Host?

  • نیلوبلاگ

    This article on whether a domain name registrar is the same thing as a web host answers a question I was asked by a visitor....

    ادامه مطلب
  • [Updated] BlueGriffon Tutorial: Design a website using the open source BlueGriffon web editor

  • نیلوبلاگ

    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 To Do If You Do Not Own Your Website's Domain Name

  • نیلوبلاگ

    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)....

    ادامه مطلب
  • How to Insert a Bullet Point (Unordered) List with BlueGriffon

  • نیلوبلاگ

    This article shows you how to insert a bullet point list (where each item on the list is marked with a solid black circle rather than numbered) into a web page using the BlueGriffon web editor....

    ادامه مطلب
  • How to Draw a Rectangular Box Around Your Content in BlueGriffon

  • نیلوبلاگ

    This article deals with how to use the BlueGriffon web editor to draw lines around text and/or images on a web page, so as to put them into a box, setting them apart from their surrounding content. ...

    ادامه مطلب
  • How to Prevent Two or More Words from Being Split into Separate Lines (HTML/CSS)

  • نیلوبلاگ

    Sometimes you may want to keep a group of words on a web page together on a single line, rather than allowing the web browser to break them up and place them on separate lines if there's no space. This article shows you the HTML and CSS to accomplish this....

    ادامه مطلب
  • Why Can't I Make Up Any Domain I Want? Is There a Way to Do Away with a Registrar Altogether?

  • نیلوبلاگ

    I was asked by a visitor why he couldn't dispense with a registrar and just make up any domain name he wanted. You may be surprised to hear that you can actually do that. But it won't do you any good....

    ادامه مطلب
  • How to Change the Colour (Color) of Links on a Web Page with BlueGriffon

  • نیلوبلاگ

    There may be times you need to change the default colour of a link on your web page, for example, because the background colour clashes with it or renders it nearly invisible. This article shows you how to do it using the free BlueGriffon web editor....

    ادامه مطلب
  • How to Change the Colour (Color) of Links on a Website with Expression Web

  • نیلوبلاگ

    This article deals with how to change the colour of the links on a web page using the free Microsoft Expression Web editor. It also addresses how you can change the colour of a link that has been clicked, as well as its colour when a mouse pointer is hovering over it....

    ادامه مطلب
  • [Updated] How to Add a CAPTCHA Test to Your Feedback Form Script: Reducing Spam in Your Contact Form

  • نیلوبلاگ

    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. ...

    ادامه مطلب
  • [Updated] Free Feedback Form Wizard: new CAPTCHA option for reducing spam

  • نیلوبلاگ

    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....

    ادامه مطلب
  • How to Restore the Style Properties Panel in BlueGriffon if It Disappears

  • نیلوبلاگ

    This article deals with how you can restore the Style Properties panel in the BlueGriffon web editor should you find it missing or not visible when you enable it....

    ادامه مطلب