Recent Questions

متن مرتبط با «can i install windows 7» در سایت Recent Questions نوشته شده است

Fiverizer: convert a website from XHTML 1.0 to HTML5

  • نیلوبلاگ

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

    ادامه مطلب
  • How to Convert Your Website from XHTML 1.0 to HTML5 the Quick and Easy Way

  • نیلوبلاگ

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

    ادامه مطلب
  • [Updated] Free Mobile-Friendly Layout Wizard

  • نیلوبلاگ

    Updated: The Free Mobile-Friendly Layout Wizard has been updated. It will now place the meta charset tag before the title in the head section (so that it will be in the first 1 KB of your page even if you have a long title). In addition, if you select HTML5 as the output type, the shorter meta charset tag will be used....

    ادامه مطلب
  • [Fixed] Feedback Form Wizard

  • نیلوبلاگ

    The Feedback Form Wizard has been fixed so that it can now, once again, create the CAPTCHA versions (ReCAPTCHA and hCaptcha) of the script. Apparently, somewhere along the line, I seem to have broken it during one of my inteal updates. I'm very sorry for the inconvenience. Note: you do not have to recreate your script if you successfully generated it before. (The problem was that under certain conditions, the wizard choked and died before it could generate a script. So if you actually received a...

    ادامه مطلب
  • GitHub patch release previous version

  • نیلوبلاگ

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

    ادامه مطلب
  • 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...

    ادامه مطلب
  • How to disable Laravel console commands

  • نیلوبلاگ

    Suppose you find yourself in a situation 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 an...

    ادامه مطلب
  • Vue show and hide form elements

  • نیلوبلاگ

    Introduction When working with forms, it is common to display or conceal various fields based on the options selected. I'll use Vue to conditionally show or hide form elements. In this example, I'm going to use an SFC (Single File Component) for ease of us. You'll see this in full in the putting it all together section below. For this to work it does not need to use a SFC, the HTML and JS will work when used in traditional setups i.e. having JS in javascript blocks and the HTML in a page's b...

    ادامه مطلب
  • 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 ...

    ادامه مطلب
  • VIM shortcuts

  • نیلوبلاگ

    VIM Modes There are multiple modes in vim, normal mode is loaded by default. Command mode. Press : from normal mode, This mode is used when escape is pressed. Insert mode. Press i to enter insert mode, from here typing is allowed within the file. Visual mode. Press v to enter visual mode from here you can select and move lines. Visual line. Press capital V to enter visual line mode, this will select entire lines. By default command mode wil...

    ادامه مطلب
  • 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/ بخوانید...

    ادامه مطلب
  • Laravel Extract Language to lang files

  • نیلوبلاگ

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

    ادامه مطلب
  • [Updated] Feedback Form Wizard: improved PHP 8 (8.0, 8.1, etc) compatibility

  • نیلوبلاگ

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

    ادامه مطلب
  • 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...

    ادامه مطلب
  • Laravel Livewire Resources

  • نیلوبلاگ

    Tools Livewire dev tools AlpineJS dev tools Livewire Kit Livewire Demos WireUI Wire-elements Raycast - Livewire docs Packages Laravel Livewire Wizard ...

    ادامه مطلب
  • 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 = ...

    ادامه مطلب
  • Write an SEO-friendly title: A quick start guide

  • نیلوبلاگ

    As a website 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 writin...

    ادامه مطلب