حذف العقدة الوسطى في قائمة مرتبطة
حذف العقدة الوسطى في قائمة مرتبطة. تحتاج إلى إزالة العقدة الوسطى من قائمة مرتبطة أحادية. العقدة الوسطى هي العقدة رقم ⌊n / 2⌋ باستخدام...
PHP, Laravel and WordPress.
حذف العقدة الوسطى في قائمة مرتبطة. تحتاج إلى إزالة العقدة الوسطى من قائمة مرتبطة أحادية. العقدة الوسطى هي العقدة رقم ⌊n / 2⌋ باستخدام...
𝗕𝗮𝗰𝗸𝗶𝗻𝗴 𝗨𝗽 𝗔𝗻 𝗔𝗣𝗜 𝗚𝗮𝘁𝗲𝘄𝗮𝘆 𝗖𝗼𝗻𝗳𝗶𝗴 Managing multiple API gateways requires more than simple file exports. When you manage several environments like produc…
𝟭𝟬 𝗖𝗼𝗺𝗺𝗼𝗻 𝗣𝗛𝗣 𝗕𝘂𝗴𝘀 𝗶𝗻 𝗥𝗲𝗮𝗹 𝗧𝗶𝗺𝗲 𝗗𝗲𝘃𝗲𝗹𝗼𝗽𝗺𝗲𝗻𝘁 PHP is a forgiving language. This makes it dangerous in production. Code works on your local machin…
𝗖𝗮𝗰𝗵𝗶𝗻𝗴 𝗩𝗶𝗱𝗲𝗼 𝗣𝗮𝗴𝗲𝘀 𝘄𝗶𝘁𝗵 𝗩𝗮𝗿𝗻𝗶𝘀𝗵 𝗘𝗦𝗜 Our trending page used to crash during traffic spikes. The problem was not slow rendering. The problem was the…
𝗣𝗶𝗻𝗽𝗼𝗶𝗻𝘁 𝗥𝗼𝗹𝗹𝗯𝗮𝗰𝗸 𝗪𝗶𝘁𝗵 𝗪𝗣 𝗖𝗟𝗜 You update 20 plugins at once. One plugin breaks your site. Most tools roll back all 20 updates to keep things safe. This is…
𝗪𝗵𝗲𝗻 𝗬𝗼𝘂𝗿 𝗔𝗽𝗽 𝗮𝗻𝗱 𝗚𝗮𝘁𝗲𝘄𝗮𝘆 𝗗𝗶𝘀𝗮𝗴𝗿𝗲𝗲 Managing an external system from a Laravel app leads to a common problem. Your database says one thing. The externa…
𝗘𝗹𝗲𝘃𝗮𝘁𝗶𝗻𝗴 𝗬𝗼𝘂𝗿 𝗔𝗴𝗲𝗻𝘁𝗶𝗰 𝗖𝗼𝗱𝗶𝗻𝗴 Agentic coding requires a change in how you think. You must move from a coder to an architect. Here are the four levels of…
𝗕𝘂𝗶𝗹𝗱𝗶𝗻𝗴 𝗮 𝗩𝗶𝗱𝗲𝗼 𝗨𝗥𝗟 𝗖𝗮𝗻𝗼𝗻𝗶𝗰𝗮𝗹𝗶𝘇𝗮𝘁𝗶𝗼𝗻 𝗣𝗶𝗽𝗲𝗹𝗶𝗻𝗲 A single YouTube video can have a dozen different URLs. One URL uses a mobile host. Another…
𝗛𝗼𝘄 𝗔 𝗙𝗶𝘃𝗲 𝗟𝗶𝗻𝗲 𝗔𝗿𝗰𝗵𝗶𝘁𝗲𝗰𝘁𝘂𝗿𝗲 𝗧𝗲𝘀𝘁 𝗖𝗮𝘂𝗴𝗵𝘁 𝗔 𝗗𝗮𝘁𝗮 𝗟𝗲𝗮𝗸 A human code review missed a major security flaw. Our team had a rule. Every model…
𝗦𝗲𝗮𝗿𝗰𝗵 𝗔𝘂𝘁𝗼𝗰𝗼𝗺𝗽𝗹𝗲𝘁𝗲 𝗦𝘆𝘀𝘁𝗲𝗺𝘀: 𝗔 𝗖𝗼𝗺𝗽𝗹𝗲𝘁𝗲 𝗚𝘂𝗶𝗱𝗲 Autocomplete systems predict what a user types. They reduce effort and improve speed. Google,…
𝗠𝗮𝗸𝗲 𝗬𝗼𝘂𝗿 𝗖𝗼𝗱𝗲 𝗠𝗼𝗿𝗲 𝗦𝗰𝗮𝗹𝗮𝗯𝗹𝗲 Have you ever opened a project and found one giant file with 2,000 lines? You see functions everywhere. Global variables are a…
𝗨𝘀𝗶𝗻𝗴 𝗦𝘂𝗿𝗿𝗲𝗮𝗹𝗗𝗕 𝗚𝗿𝗮𝗽𝗵 𝗤𝘂𝗲𝗿𝗶𝗲𝘀 𝗳𝗼𝗿 𝗩𝗶𝗱𝗲𝗼 𝗥𝗲𝗰𝗼𝗺𝗺𝗲𝗻𝗱𝗮𝘁𝗶𝗼𝗻𝘀 Our recommendation logic used to be a 280 line SQLite query. It used six s…
𝗨𝘀𝗶𝗻𝗴 𝗔𝗽𝗮𝗰𝗵𝗲 𝗮𝗻𝗱 𝗡𝗴𝗶𝗻𝘅 𝗣𝗿𝗼𝘅𝘆 𝗠𝗮𝗻𝗮𝗴𝗲𝗿 𝗳𝗼𝗿 𝗗𝗼𝗺𝗮𝗶𝗻 𝗔𝗰𝗰𝗲𝘀𝘀 You often run multiple services on a VPS. You want to use domain names instead…
𝟯 𝗚𝗮𝗽𝘀 𝗶𝗻 𝗪𝗼𝗿𝗱𝗣𝗿𝗲𝘀𝘀 𝗠𝗮𝗶𝗻𝘁𝗲𝗻𝗮𝗻𝗰𝗲 WordPress maintenance tools exist to automate updates. Companies like ManageWP, MainWP, WP Umbrella, and InfiniteWP have…
𝗨𝗻𝗱𝗲𝗿𝘀𝘁𝗮𝗻𝗱𝗶𝗻𝗴 𝗛𝗠𝗔𝗖 𝗦𝗲𝗰𝘂𝗿𝗶𝘁𝘆 HMAC stands for Hash based Message Authentication Code. It verifies two things: integrity and authenticity. It ensures your me…
𝗧𝗵𝗲 𝗣𝗼𝘄𝗲𝗿 𝗼𝗳 𝗣𝗼𝘀𝘁𝗴𝗿𝗲𝗦 𝗟𝗜𝗦𝗧𝗘𝗡/𝗡𝗢𝗧𝗜𝗙𝗬 You need to keep your video metadata up to date. But caching can make this hard. Here's how we solved this proble…
𝗜 𝗦𝘁𝗼𝗽𝗽𝗲𝗱 𝗙𝗼𝗹𝗹𝗼𝘄𝗶𝗻𝗴 𝗔𝗣𝗜 𝗩𝗮𝗹𝗶𝗱𝗮𝘁𝗶𝗼𝗻 𝗕𝗲𝘀𝘁 𝗣𝗿𝗮𝗰𝘁𝗶𝗰𝗲𝘀. 𝗛𝗲𝗿𝗲'𝘀 𝗪𝗵𝘆. I used standard Symfony rules for years. The process was always t…
𝗕𝘂𝗶𝗹𝗱𝗶𝗻𝗴 𝗔𝗜 𝗜𝗻𝘁𝗼 𝗟𝗮𝗿𝗮𝘃𝗲𝗹 𝗧𝗵𝗲 𝗥𝗶𝗴𝗵𝘁 𝗪𝗮𝘆 Most AI features fail because of poor sequencing. Teams write code before they prepare their data. This lead…
𝗧𝗵𝗲 𝗨𝗥𝗟 𝗖𝗮𝗻𝗼𝗻𝗶𝗰𝗮𝗹𝗶𝗭𝗮𝗧𝗶𝗼𝗻 𝗣𝗿𝗼𝗯𝗹𝗲𝗺 You have a content aggregator. Your data quality is at risk due to duplicate video URLs. The same video can have mult…
𝗢𝗻𝗲 𝗡𝘂𝗹𝗹𝗮𝗯𝗹𝗲 𝗧𝗶𝗺𝗲𝘀𝘁𝗮𝗺𝗽, 𝗙𝗼𝘂𝗿 𝗔𝗰𝗰𝗼𝘂𝗻𝘁 𝗦𝘁𝗮𝘁𝗲𝘀 Stop using status columns in your Laravel user tables. You waste space and create bugs. Use one nu…
𝗗𝗲𝗲𝗽 𝗟𝗶𝗻𝗸𝗶𝗻𝗴 𝗪𝗶𝘁𝗵 𝗟𝗶𝘃𝗲𝘄𝗶𝗿𝗲 Users lose their place when they refresh a page. You click an item. You refresh. You go back to the start. This frustrates your u…
𝗣𝗿𝗲𝘃𝗲𝗻𝘁 𝗖𝗮𝗰𝗵𝗲 𝗦𝘁𝗮𝗺𝗽𝗲𝗱𝗲𝘀: 𝗔𝘁𝗼𝗺𝗶𝗰 𝗟𝗼𝗰𝗸𝘀 𝗶𝗻 𝗟𝗮𝗿𝗮𝘃𝗲𝗹 You cache heavy database data for 24 hours. The cache expires. 500 users hit your site at…
𝗦𝗛𝗜𝗣𝗣𝗜𝗡𝗚 𝗟𝗜𝗩𝗘𝗪𝗜𝗥𝗘 𝟰 𝗔𝗡𝗗 𝗙𝗟𝗨𝗫 𝗜𝗡 𝗔 𝗣𝗔𝗖𝗞𝗔𝗚𝗘 Bundling an admin UI in a Laravel package is hard. Apps have built in tools. Packages do not. I hit fou…
𝗔 𝗧𝗲𝘀𝘁 𝗙𝗼𝗿 𝗛𝗶𝗱𝗱𝗲𝗻 𝗕𝘂𝗴𝘀 Some bugs pass every test. Then they crash for your user. I found one in a Laravel admin UI. The fix was not a name change. The fix was a…