[{"content":"This is possibly pure frustration post but allow me to put my arguments here. I will describe all the ways this company is one of the worst software companies I have ever worked with on behalf of a client.\\\nThe Absolute Worst Affiliate Partner Program: Why impact.com Should Be Avoided at All Costs trustpilot.com reviews state impact.com as BAD\nWhen choosing an affiliate partner program, businesses need reliability, cost-effectiveness, and strong support. Unfortunately, impact.com falls woefully short in all these areas, earning a reputation as one of the worst affiliate platforms in the industry. Here’s an in-depth look at why partnering with impact.com could be a disastrous decision for your business.\nExorbitant Onboarding Fees From the very start, impact.com hits businesses with exorbitant onboarding fees. According to their fee structure, the onboarding services alone cost a whopping $500, which is a significant upfront expense for many businesses. Additionally, there is a $2,500 Advocate Jumpstart fee, further burdening companies right from the beginning.\nAstronomically High Subscription Costs The subscription fees at impact.com are not only high but also unjustifiably steep. For example, the Subscription Fee for Partnership Cloud Essentials is $1,000 per month, which is considerably higher than many of its competitors. Additionally, the Advocate Essentials subscription costs $500 monthly. Over a subscription term, the total fees can balloon to an eye-watering $18,000. This high cost is a significant strain on any business’s finances, especially considering the subpar service provided.\nAbysmal Customer Support Customer support at impact.com is notoriously poor. Described as “third-class” by numerous users, the support team is unresponsive and unhelpful. Reports of long wait times and unresolved issues are common, leading to severe operational disruptions. In an era where good customer service is crucial, impact.com’s abysmal support can significantly damage a business’s reputation and efficiency​.\nCase in Point: Event Tracking Charge A glaring example of impact.com’s poor customer service is the scenario where a support ticket was raised to request a new “event” to track. Despite the contract covering five events, only two were provided by default. After a 12-day delay, impact.com responded, stating they would charge $540 for the new event. This is a clear breach of the contractual agreement(initial contract covers up to 5 event trackers), adding unexpected costs and wasting valuable time.\nBurdensome and Ineffectual Contracts Impact.com locks businesses into lengthy, rigid contracts that are difficult to exit. These contracts often offer little to no flexibility, making it hard for companies to adapt to changing needs or switch providers if they are dissatisfied. Many clients feel trapped in multi-year agreements with no easy way out, leading to prolonged dissatisfaction and financial strain.\nExcessive and Unwarranted Overcharging One of the most egregious practices of impact.com is the relentless overcharging for every minor request or service adjustment. For instance, the incremental usage rate for Partnership Cloud Essentials is 18.18%, and for Advocate Essentials, it’s $6.94 per action. This nickel-and-diming approach leads to exorbitant bills that quickly add up, further straining a company’s budget. This constant overcharging exacerbates the already high subscription costs, making impact.com a financial drain on businesses.\nCase in Point: Integration Delays Another troubling instance was the delay in approving the integration after signing the contract. Impact.com began charging subscription fees immediately upon contract signing, but the approval for integration was delayed by several days. This delay meant businesses paid for services they could not yet use, leading to financial loss and operational setbacks.\nNo Trial or Testing Environment Adding to the frustration, impact.com does not offer any trial or testing environment until you sign an annual contract with them. This means businesses are forced to commit financially without the ability to test the platform’s capabilities and suitability for their needs. This lack of a trial period is a significant drawback, leaving businesses at a disadvantage and potentially stuck with a service that does not meet their expectations.\nBuggy and Poorly Designed UI The user interface (UI) of impact.com’s application is another major pain point. Users frequently report that the UI is buggy and poorly designed, leading to a frustrating user experience. Navigation is cumbersome, and the system often lags or crashes, further complicating day-to-day operations. A poorly designed UI can significantly hinder productivity and efficiency, making the platform more of a hindrance than a help.\nDamaging to Business Operations The cumulative effect of these issues—high costs, poor support, restrictive contracts, relentless overcharging, no trial environment, and a buggy UI—makes impact.com detrimental to any business’s operations. Companies using impact.com report increased operational inefficiencies, decreased customer satisfaction, and a tarnished reputation. The negative impact on business performance and morale is substantial, with many businesses ultimately regretting their decision to partner with impact.com.\nConclusion Impact.com’s combination of exorbitant onboarding fees, astronomically high subscription costs, abysmal customer support, burdensome and ineffectual contracts, excessive overcharging, no trial environment, and a buggy UI make it the worst affiliate partner program to work with. Businesses seeking a reliable and cost-effective affiliate platform should steer clear of impact.com to avoid the numerous pitfalls and financial hardships associated with their services.\nFor further insights and user reviews, check the comprehensive feedback on Trustpilot and detailed consequences of poor customer service on Support Genix​​.\n","permalink":"https://tutes.in/impact-com-one-of-the-worst-partners-to-work-with/","summary":"\u003cp\u003eThis is possibly pure frustration post but allow me to put my arguments here. I will describe all the ways this company is one of the worst software companies I have ever worked with on behalf of a client.\\\u003c/p\u003e\n\u003ch2 id=\"the-absolute-worst-affiliate-partner-program-why-impactcom-should-be-avoided-at-all-costs\"\u003eThe Absolute Worst Affiliate Partner Program: Why impact.com Should Be Avoided at All Costs\u003c/h2\u003e\n\u003cfigure\u003e\n    \u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2024/07/image.png\"\n         alt=\"trustpilot.com reviews state impact.com as BAD\"/\u003e \u003cfigcaption\u003e\n            \u003cp\u003e\u003ca href=\"https://www.trustpilot.com/review/impact.com\" title=\"trustpilot.com reviews\"\u003etrustpilot.com reviews\u003c/a\u003e state impact.com as BAD\u003c/p\u003e\n        \u003c/figcaption\u003e\n\u003c/figure\u003e\n\n\u003cp\u003eWhen choosing an affiliate partner program, businesses need reliability, cost-effectiveness, and strong support. Unfortunately, impact.com falls woefully short in all these areas, earning a reputation as one of the worst affiliate platforms in the industry. Here’s an in-depth look at why partnering with impact.com could be a disastrous decision for your business.\u003c/p\u003e","title":"Impact.com – one of the WORST partners to work with"},{"content":"Fill column A with bigger sample space, aka the longer array.\nFill column B with smaller array, that has few or none of the elements from column A\nNow, you need to find out values that are in column A but not in column B, here is what you do.\nCreate a separate column C and put this formula in cell C1 or $C$1\\\n=IF(ISERROR(MATCH(A1, $B$1:$C$\u0026lt;LAST_ROWNUMBER_THAT_EXISTS_IN_COLUMN_B\u0026gt;, 0)), A1, \u0026quot;\u0026quot;)\nUltimately your formula becomes match function dependable for whole column A. You just have to drag the cell C1 downwards.\n","permalink":"https://tutes.in/array_diff-in-excel-finding-missing-values-from-column-b-that-exist-in-column-a/","summary":"\u003cp\u003eFill column A with bigger sample space, aka the longer array.\u003c/p\u003e\n\u003cp\u003eFill column B with smaller array, that has few or none of the elements from column A\u003c/p\u003e\n\u003cp\u003eNow, you need to find out values that are in column A but not in column B, here is what you do.\u003cbr\u003e\nCreate a separate column C and put this formula in cell C1 or $C$1\\\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003e=IF(ISERROR(MATCH(A1, $B$1:$C$\u0026lt;LAST_ROWNUMBER_THAT_EXISTS_IN_COLUMN_B\u0026gt;, 0)), A1, \u0026quot;\u0026quot;)\u003c/code\u003e\u003c/p\u003e\n\u003cp\u003eUltimately your formula becomes match function dependable for whole column A. You just have to drag the cell C1 downwards.\u003c/p\u003e","title":"array_diff in excel – finding missing values from column B that exist in column A"},{"content":"Browser: Firefox\nExtension: Mod Headers\nhttps://addons.mozilla.org/en-US/firefox/addon/modheader-firefox/\nAdd A CSP policy like this:\nUse “parse” option and paste this:\\\ndefault-src *; script-src \u0026#39;unsafe-inline\u0026#39; \u0026#39;unsafe-eval\u0026#39; *; style-src \u0026#39;unsafe-inline\u0026#39; *; img-src * blob: data:; font-src * data:; To create a Content Security Policy (CSP) header that allows everything, you would use the 'unsafe-inline' and 'unsafe-eval' sources for scripts and styles, and the * wildcard to allow all other sources. This setup is generally not recommended for production environments because it exposes your site to potential security vulnerabilities. However, it can be useful for development or testing purposes. Here’s an example of what this CSP header might look like:\nContent-Security-Policy: default-src *; script-src \u0026#39;unsafe-inline\u0026#39; \u0026#39;unsafe-eval\u0026#39; *; style-src \u0026#39;unsafe-inline\u0026#39; *; img-src * blob: data:; font-src * data:; This header includes:\ndefault-src *;: Allows all sources for all types of content except those that have been explicitly specified by other directives. script-src 'unsafe-inline' 'unsafe-eval' *;: Allows all scripts, inline scripts, and usage of eval(). style-src 'unsafe-inline' *;: Allows all styles and inline styles. img-src * data:;: Allows all image sources and data URIs. font-src * data:;: Allows all font sources and data URIs. Remember, using this policy removes a significant part of the CSP’s protection. It is like not having a CSP at all because it allows resources to be loaded from anywhere, inline scripts and styles to be executed, and eval() to be used, which can lead to security vulnerabilities such as Cross-Site Scripting (XSS) attacks. Always aim to restrict your CSP to the minimum necessary sources for your application to function.\n","permalink":"https://tutes.in/how-to-temporarily-bypass-content-security-policy-csp-headers/","summary":"\u003cp\u003eBrowser: Firefox\u003cbr\u003e\nExtension: Mod Headers\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://addons.mozilla.org/en-US/firefox/addon/modheader-firefox/\"\u003ehttps://addons.mozilla.org/en-US/firefox/addon/modheader-firefox/\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eAdd A CSP policy like this:\u003cbr\u003e\nUse “parse” option and paste this:\\\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003edefault-src *; script-src \u0026#39;unsafe-inline\u0026#39; \u0026#39;unsafe-eval\u0026#39; *; style-src \u0026#39;unsafe-inline\u0026#39; *; img-src * blob: data:; font-src * data:;\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eTo create a Content Security Policy (CSP) header that allows everything, you would use the \u003ccode\u003e'unsafe-inline'\u003c/code\u003e and \u003ccode\u003e'unsafe-eval'\u003c/code\u003e sources for scripts and styles, and the \u003ccode\u003e*\u003c/code\u003e wildcard to allow all other sources. This setup is generally not recommended for production environments because it exposes your site to potential security vulnerabilities. However, it can be useful for development or testing purposes. Here’s an example of what this CSP header might look like:\u003c/p\u003e","title":"How to temporarily bypass content security policy CSP headers"},{"content":"// cloudflare worker to proxy a path or a whole url and make changes in response for any use case. const SECOND_DOMAIN = \u0026#39;second.YOURDOMAIN.com\u0026#39; const THIRD_DOMAIN = \u0026#39;third.YOURDOMAIN.com\u0026#39; const THIRD_PATH = \u0026#39;abc-pathname-seo\u0026#39; const THIRD_LINK = \u0026#39;https://\u0026#39; + THIRD_DOMAIN + THIRD_PATH async function handleRequest(event) { const url = new URL(event.request.url) const pathname = url.pathname if (pathname === \u0026#39;/\u0026#39; + THIRD_PATH) { return thirdLander(event) } const search = url.search const pathWithParams = pathname + search return retrieveStatic(event, pathWithParams) } async function retrieveStatic(event, pathname) { let response = await caches.default.match(event.request) if (response) { return response } const requestHeaders = new Headers(event.request.headers) const headers = new Headers() headers.set(\u0026#39;Host\u0026#39;, SECOND_DOMAIN) headers.set(\u0026#39;Accept\u0026#39;, requestHeaders.get(\u0026#39;Accept\u0026#39;)) headers.set(\u0026#39;Accept-Encoding\u0026#39;, requestHeaders.get(\u0026#39;Accept-Encoding\u0026#39;)) let init = { redirect: \u0026#39;manual\u0026#39;, method: event.request.method, headers: headers, } response = await fetch(`https://${THIRD_DOMAIN}/${pathname}`, init) if (event.request.method === \u0026#39;GET\u0026#39;) { event.waitUntil(caches.default.put(event.request, response.clone())) } return response } async function thirdLander(event) { let response = await caches.default.match(event.request) if (response) { return response } const requestHeaders = new Headers(event.request.headers) const headers = new Headers() headers.set(\u0026#39;Host\u0026#39;, THIRD_DOMAIN) headers.set(\u0026#39;Accept\u0026#39;, requestHeaders.get(\u0026#39;Accept\u0026#39;)) headers.set(\u0026#39;Accept-Encoding\u0026#39;, requestHeaders.get(\u0026#39;Accept-Encoding\u0026#39;)) headers.set(\u0026#39;Cookie\u0026#39;, requestHeaders.get(\u0026#39;Cookie\u0026#39;)) let init = { redirect: \u0026#39;manual\u0026#39;, method: event.request.method, headers: headers, } response = await fetch(THIRD_LINK, init) // RESPONSE BODY MODIFICATION let res2 = response.clone() let orgBody = await response.text() orgBody = orgBody.replace(/src=\u0026#34;\\//g, \u0026#39;src=\u0026#34;\u0026#39;) orgBody = orgBody.replace(/url\\(\u0026#34;\\//g, `url(\u0026#34;https://${THIRD_DOMAIN}/`) orgBody = orgBody.replace(/\u0026lt;\\/head\u0026gt;/g, `\u0026lt;base href=\u0026#34;https://${THIRD_DOMAIN}/\u0026#34; target=_blank\u0026gt;\u0026lt;link rel=\u0026#34;canonical\u0026#34; href=\u0026#34;https://YOURDOMAIN.com${THIRD_PATH}\u0026#34; /\u0026gt;\u0026lt;/head\u0026gt;`) if (event.request.method === \u0026#39;GET\u0026#39;) { event.waitUntil(caches.default.put(event.request, new Response(orgBody, res2))) } return new Response(orgBody, res2) } addEventListener(\u0026#34;fetch\u0026#34;, (event) =\u0026gt; { event.passThroughOnException() event.respondWith(handleRequest(event)) }) ","permalink":"https://tutes.in/proxy-another-website-url-on-a-particular-path-using-cloudflare-workers-modify-response-body/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-javascript\" data-lang=\"javascript\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e// cloudflare worker to proxy a path or a whole url and make changes in response for any use case. \n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"kr\"\u003econst\u003c/span\u003e \u003cspan class=\"nx\"\u003eSECOND_DOMAIN\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;second.YOURDOMAIN.com\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"kr\"\u003econst\u003c/span\u003e \u003cspan class=\"nx\"\u003eTHIRD_DOMAIN\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;third.YOURDOMAIN.com\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"kr\"\u003econst\u003c/span\u003e \u003cspan class=\"nx\"\u003eTHIRD_PATH\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;abc-pathname-seo\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"kr\"\u003econst\u003c/span\u003e \u003cspan class=\"nx\"\u003eTHIRD_LINK\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;https://\u0026#39;\u003c/span\u003e \u003cspan class=\"o\"\u003e+\u003c/span\u003e \u003cspan class=\"nx\"\u003eTHIRD_DOMAIN\u003c/span\u003e \u003cspan class=\"o\"\u003e+\u003c/span\u003e \u003cspan class=\"nx\"\u003eTHIRD_PATH\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"kr\"\u003easync\u003c/span\u003e \u003cspan class=\"kd\"\u003efunction\u003c/span\u003e \u003cspan class=\"nx\"\u003ehandleRequest\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eevent\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kr\"\u003econst\u003c/span\u003e \u003cspan class=\"nx\"\u003eurl\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"k\"\u003enew\u003c/span\u003e \u003cspan class=\"nx\"\u003eURL\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eevent\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003erequest\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eurl\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kr\"\u003econst\u003c/span\u003e \u003cspan class=\"nx\"\u003epathname\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003eurl\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003epathname\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003epathname\u003c/span\u003e \u003cspan class=\"o\"\u003e===\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;/\u0026#39;\u003c/span\u003e \u003cspan class=\"o\"\u003e+\u003c/span\u003e \u003cspan class=\"nx\"\u003eTHIRD_PATH\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"nx\"\u003ethirdLander\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eevent\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kr\"\u003econst\u003c/span\u003e \u003cspan class=\"nx\"\u003esearch\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003eurl\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003esearch\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kr\"\u003econst\u003c/span\u003e \u003cspan class=\"nx\"\u003epathWithParams\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003epathname\u003c/span\u003e \u003cspan class=\"o\"\u003e+\u003c/span\u003e \u003cspan class=\"nx\"\u003esearch\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"nx\"\u003eretrieveStatic\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eevent\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nx\"\u003epathWithParams\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"kr\"\u003easync\u003c/span\u003e \u003cspan class=\"kd\"\u003efunction\u003c/span\u003e \u003cspan class=\"nx\"\u003eretrieveStatic\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eevent\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nx\"\u003epathname\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kd\"\u003elet\u003c/span\u003e \u003cspan class=\"nx\"\u003eresponse\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"kr\"\u003eawait\u003c/span\u003e \u003cspan class=\"nx\"\u003ecaches\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"k\"\u003edefault\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003ematch\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eevent\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003erequest\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eresponse\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"nx\"\u003eresponse\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kr\"\u003econst\u003c/span\u003e \u003cspan class=\"nx\"\u003erequestHeaders\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"k\"\u003enew\u003c/span\u003e \u003cspan class=\"nx\"\u003eHeaders\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eevent\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003erequest\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eheaders\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kr\"\u003econst\u003c/span\u003e \u003cspan class=\"nx\"\u003eheaders\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"k\"\u003enew\u003c/span\u003e \u003cspan class=\"nx\"\u003eHeaders\u003c/span\u003e\u003cspan class=\"p\"\u003e()\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nx\"\u003eheaders\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eset\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;Host\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nx\"\u003eSECOND_DOMAIN\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nx\"\u003eheaders\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eset\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;Accept\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nx\"\u003erequestHeaders\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eget\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;Accept\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e))\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nx\"\u003eheaders\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eset\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;Accept-Encoding\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nx\"\u003erequestHeaders\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eget\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;Accept-Encoding\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e))\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kd\"\u003elet\u003c/span\u003e \u003cspan class=\"nx\"\u003einit\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nx\"\u003eredirect\u003c/span\u003e\u003cspan class=\"o\"\u003e:\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;manual\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nx\"\u003emethod\u003c/span\u003e\u003cspan class=\"o\"\u003e:\u003c/span\u003e \u003cspan class=\"nx\"\u003eevent\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003erequest\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003emethod\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nx\"\u003eheaders\u003c/span\u003e\u003cspan class=\"o\"\u003e:\u003c/span\u003e \u003cspan class=\"nx\"\u003eheaders\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nx\"\u003eresponse\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"kr\"\u003eawait\u003c/span\u003e \u003cspan class=\"nx\"\u003efetch\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"sb\"\u003e`https://\u003c/span\u003e\u003cspan class=\"si\"\u003e${\u003c/span\u003e\u003cspan class=\"nx\"\u003eTHIRD_DOMAIN\u003c/span\u003e\u003cspan class=\"si\"\u003e}\u003c/span\u003e\u003cspan class=\"sb\"\u003e/\u003c/span\u003e\u003cspan class=\"si\"\u003e${\u003c/span\u003e\u003cspan class=\"nx\"\u003epathname\u003c/span\u003e\u003cspan class=\"si\"\u003e}\u003c/span\u003e\u003cspan class=\"sb\"\u003e`\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nx\"\u003einit\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eevent\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003erequest\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003emethod\u003c/span\u003e \u003cspan class=\"o\"\u003e===\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;GET\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nx\"\u003eevent\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003ewaitUntil\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003ecaches\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"k\"\u003edefault\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eput\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eevent\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003erequest\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nx\"\u003eresponse\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eclone\u003c/span\u003e\u003cspan class=\"p\"\u003e()))\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"nx\"\u003eresponse\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"kr\"\u003easync\u003c/span\u003e \u003cspan class=\"kd\"\u003efunction\u003c/span\u003e \u003cspan class=\"nx\"\u003ethirdLander\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eevent\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kd\"\u003elet\u003c/span\u003e \u003cspan class=\"nx\"\u003eresponse\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"kr\"\u003eawait\u003c/span\u003e \u003cspan class=\"nx\"\u003ecaches\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"k\"\u003edefault\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003ematch\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eevent\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003erequest\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eresponse\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"nx\"\u003eresponse\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kr\"\u003econst\u003c/span\u003e \u003cspan class=\"nx\"\u003erequestHeaders\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"k\"\u003enew\u003c/span\u003e \u003cspan class=\"nx\"\u003eHeaders\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eevent\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003erequest\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eheaders\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kr\"\u003econst\u003c/span\u003e \u003cspan class=\"nx\"\u003eheaders\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"k\"\u003enew\u003c/span\u003e \u003cspan class=\"nx\"\u003eHeaders\u003c/span\u003e\u003cspan class=\"p\"\u003e()\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nx\"\u003eheaders\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eset\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;Host\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nx\"\u003eTHIRD_DOMAIN\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nx\"\u003eheaders\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eset\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;Accept\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nx\"\u003erequestHeaders\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eget\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;Accept\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e))\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nx\"\u003eheaders\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eset\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;Accept-Encoding\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nx\"\u003erequestHeaders\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eget\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;Accept-Encoding\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e))\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nx\"\u003eheaders\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eset\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;Cookie\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nx\"\u003erequestHeaders\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eget\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;Cookie\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e))\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kd\"\u003elet\u003c/span\u003e \u003cspan class=\"nx\"\u003einit\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nx\"\u003eredirect\u003c/span\u003e\u003cspan class=\"o\"\u003e:\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;manual\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nx\"\u003emethod\u003c/span\u003e\u003cspan class=\"o\"\u003e:\u003c/span\u003e \u003cspan class=\"nx\"\u003eevent\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003erequest\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003emethod\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nx\"\u003eheaders\u003c/span\u003e\u003cspan class=\"o\"\u003e:\u003c/span\u003e \u003cspan class=\"nx\"\u003eheaders\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nx\"\u003eresponse\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"kr\"\u003eawait\u003c/span\u003e \u003cspan class=\"nx\"\u003efetch\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eTHIRD_LINK\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nx\"\u003einit\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e// RESPONSE BODY MODIFICATION\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kd\"\u003elet\u003c/span\u003e \u003cspan class=\"nx\"\u003eres2\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003eresponse\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eclone\u003c/span\u003e\u003cspan class=\"p\"\u003e()\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kd\"\u003elet\u003c/span\u003e \u003cspan class=\"nx\"\u003eorgBody\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"kr\"\u003eawait\u003c/span\u003e \u003cspan class=\"nx\"\u003eresponse\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003etext\u003c/span\u003e\u003cspan class=\"p\"\u003e()\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nx\"\u003eorgBody\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003eorgBody\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003ereplace\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"sr\"\u003e/src=\u0026#34;\\//g\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;src=\u0026#34;\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nx\"\u003eorgBody\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003eorgBody\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003ereplace\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"sr\"\u003e/url\\(\u0026#34;\\//g\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"sb\"\u003e`url(\u0026#34;https://\u003c/span\u003e\u003cspan class=\"si\"\u003e${\u003c/span\u003e\u003cspan class=\"nx\"\u003eTHIRD_DOMAIN\u003c/span\u003e\u003cspan class=\"si\"\u003e}\u003c/span\u003e\u003cspan class=\"sb\"\u003e/`\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nx\"\u003eorgBody\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003eorgBody\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003ereplace\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"sr\"\u003e/\u0026lt;\\/head\u0026gt;/g\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"sb\"\u003e`\u0026lt;base href=\u0026#34;https://\u003c/span\u003e\u003cspan class=\"si\"\u003e${\u003c/span\u003e\u003cspan class=\"nx\"\u003eTHIRD_DOMAIN\u003c/span\u003e\u003cspan class=\"si\"\u003e}\u003c/span\u003e\u003cspan class=\"sb\"\u003e/\u0026#34; target=_blank\u0026gt;\u0026lt;link rel=\u0026#34;canonical\u0026#34; href=\u0026#34;https://YOURDOMAIN.com\u003c/span\u003e\u003cspan class=\"si\"\u003e${\u003c/span\u003e\u003cspan class=\"nx\"\u003eTHIRD_PATH\u003c/span\u003e\u003cspan class=\"si\"\u003e}\u003c/span\u003e\u003cspan class=\"sb\"\u003e\u0026#34; /\u0026gt;\u0026lt;/head\u0026gt;`\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eevent\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003erequest\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003emethod\u003c/span\u003e \u003cspan class=\"o\"\u003e===\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;GET\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nx\"\u003eevent\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003ewaitUntil\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003ecaches\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"k\"\u003edefault\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eput\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eevent\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003erequest\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"k\"\u003enew\u003c/span\u003e \u003cspan class=\"nx\"\u003eResponse\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eorgBody\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nx\"\u003eres2\u003c/span\u003e\u003cspan class=\"p\"\u003e)))\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"k\"\u003enew\u003c/span\u003e \u003cspan class=\"nx\"\u003eResponse\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eorgBody\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nx\"\u003eres2\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eaddEventListener\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;fetch\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eevent\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nx\"\u003eevent\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003epassThroughOnException\u003c/span\u003e\u003cspan class=\"p\"\u003e()\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nx\"\u003eevent\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003erespondWith\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003ehandleRequest\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eevent\u003c/span\u003e\u003cspan class=\"p\"\u003e))\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e})\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Proxy another website url on a particular path using cloudflare workers – modify response body"},{"content":"Category Products index taking too much time?\nbin/magento index:reset\nbin/magento index:reindex\nStuck at category products index …\nHere is the solution if you are using MariaDB 10.4\nYou need to update options/parameters for your db. If using RDS, edit “DB instance parameter group” that you are using and update these 2 values:\noptimizer_switch=\u0026#39;rowid_filter=off\u0026#39; optimizer_use_condition_selectivity = 1 After these changes, restart your database. In aws, RDS automatically updates these parameters without any downtime or requirement for restarting. You will see noticeable difference in indexer time.\nReference:\nhttps://devdocs.magento.com/guides/v2.4/performance-best-practices/configuration.html\nhttps://devdocs.magento.com/guides/v2.4/extension-dev-guide/indexer-batch.html\nhttps://magento.stackexchange.com/a/336816/32283\n","permalink":"https://tutes.in/how-to-speed-up-slow-magento-indexer-process-maria-db-10-4/","summary":"\u003cp\u003eCategory Products index taking too much time?\u003c/p\u003e\n\u003cp\u003ebin/magento index:reset\u003c/p\u003e\n\u003cp\u003ebin/magento index:reindex\u003c/p\u003e\n\u003cp\u003eStuck at category products index …\u003c/p\u003e\n\u003cp\u003eHere is the solution if you are using MariaDB 10.4\u003c/p\u003e\n\u003cp\u003eYou need to update options/parameters for your db. If using RDS, edit “DB instance parameter group” that you are using and update these 2 values:\u003c/p\u003e\n\u003cpre tabindex=\"0\"\u003e\u003ccode\u003eoptimizer_switch=\u0026#39;rowid_filter=off\u0026#39;\noptimizer_use_condition_selectivity = 1\n\u003c/code\u003e\u003c/pre\u003e\u003cp\u003eAfter these changes, restart your database. In aws, RDS automatically updates these parameters without any downtime or requirement for restarting. You will see noticeable difference in indexer time.\u003c/p\u003e","title":"How to speed up slow Magento indexer process? Maria DB 10.4"},{"content":"In C:\\Windows\\System32\\drivers\\etc\\hosts\n127.0.0.1 test.tld ::1 test.tld #::1 is really important sometimes Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\WinSock2\\Parameters\\AppId_Catalog\\0408F7A3] \u0026#34;AppFullPath\u0026#34;=\u0026#34;C:\\\\Windows\\\\System32\\\\wsl.exe\u0026#34; \u0026#34;PermittedLspCategories\u0026#34;=dword:80000000 Save the above as a .reg file and run it to update registry\nPowershell script=\u0026gt; save as .ps1 file\nIf (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] \u0026#34;Administrator\u0026#34;)) { $arguments = \u0026#34;\u0026amp; \u0026#39;\u0026#34; + $myinvocation.mycommand.definition + \u0026#34;\u0026#39;\u0026#34; Start-Process powershell -Verb runAs -ArgumentList $arguments Break } $remoteport = bash.exe -c \u0026#34;ifconfig eth0 | grep \u0026#39;inet \u0026#39;\u0026#34; $found = $remoteport -match \u0026#39;\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\u0026#39;; if( $found ){ $remoteport = $matches[0]; } else{ echo \u0026#34;The Script Exited, the ip address of WSL 2 cannot be found\u0026#34;; exit; } #[Ports] #All the ports you want to forward separated by coma $ports=@(80,443,3306); #[Static ip] #You can change the addr to your ip config to listen to a specific address $addr=\u0026#39;0.0.0.0\u0026#39;; $ports_a = $ports -join \u0026#34;,\u0026#34;; #Remove Firewall Exception Rules iex \u0026#34;Remove-NetFireWallRule -DisplayName \u0026#39;WSL 2 Firewall Unlock\u0026#39; \u0026#34;; #adding Exception Rules for inbound and outbound Rules iex \u0026#34;New-NetFireWallRule -DisplayName \u0026#39;WSL 2 Firewall Unlock\u0026#39; -Direction Outbound -LocalPort $ports_a -Action Allow -Protocol TCP\u0026#34;; iex \u0026#34;New-NetFireWallRule -DisplayName \u0026#39;WSL 2 Firewall Unlock\u0026#39; -Direction Inbound -LocalPort $ports_a -Action Allow -Protocol TCP\u0026#34;; for( $i = 0; $i -lt $ports.length; $i++ ){ $port = $ports[$i]; iex \u0026#34;netsh interface portproxy delete v4tov4 listenport=$port listenaddress=$addr\u0026#34;; iex \u0026#34;netsh interface portproxy add v4tov4 listenport=$port listenaddress=$addr connectport=$port connectaddress=$remoteport\u0026#34;; } netsh interface portproxy show v4tov4\ncheck if your proxy is working\nMost of the times you may not even need a proxy for apache2. However mysql inside WSL is extremely tricky for some reason. I have ALWAYS had issues until I changed the default port. Hence try this in your file:\nsudo nano /etc/mysql/my.cnf !includedir /etc/mysql/conf.d/ !includedir /etc/mysql/mysql.conf.d/ [mysqld] explicit_defaults_for_timestamp=true bind-address = 0.0.0.0 user=root pid-file = /var/run/mysqld/mysqld.pid socket = /var/run/mysqld/mysqld.sock port = 3334 Now you should be able to connect to this mysql instance from some gui app on windows too like dbeaver with localhost on port 3334.\nIf you are victim of unpredictive WSL behavior, do leave a comment\n","permalink":"https://tutes.in/windows-10-wsl-ubuntu-common-commands-and-hacks/","summary":"\u003cp\u003eIn C:\\Windows\\System32\\drivers\\etc\\hosts\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e127.0.0.1 test.tld\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e::1 test.tld\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e#::1 is really important sometimes\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eWindows Registry Editor Version 5.00\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\WinSock2\\Parameters\\AppId_Catalog\\0408F7A3]\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026#34;AppFullPath\u0026#34;=\u0026#34;C:\\\\Windows\\\\System32\\\\wsl.exe\u0026#34;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026#34;PermittedLspCategories\u0026#34;=dword:80000000\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eSave the above as a .reg file and run it to update registry\u003c/p\u003e\n\u003cp\u003ePowershell script=\u0026gt; save as .ps1 file\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eIf (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] \u0026#34;Administrator\u0026#34;)) {   \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  $arguments = \u0026#34;\u0026amp; \u0026#39;\u0026#34; + $myinvocation.mycommand.definition + \u0026#34;\u0026#39;\u0026#34;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  Start-Process powershell -Verb runAs -ArgumentList $arguments\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  Break\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e}\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e$remoteport = bash.exe -c \u0026#34;ifconfig eth0 | grep \u0026#39;inet \u0026#39;\u0026#34;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e$found = $remoteport -match \u0026#39;\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\u0026#39;;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eif( $found ){\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  $remoteport = $matches[0];\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e} else{\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  echo \u0026#34;The Script Exited, the ip address of WSL 2 cannot be found\u0026#34;;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  exit;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e}\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e#[Ports]\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e#All the ports you want to forward separated by coma\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e$ports=@(80,443,3306);\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e#[Static ip]\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e#You can change the addr to your ip config to listen to a specific address\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e$addr=\u0026#39;0.0.0.0\u0026#39;;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e$ports_a = $ports -join \u0026#34;,\u0026#34;;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e#Remove Firewall Exception Rules\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eiex \u0026#34;Remove-NetFireWallRule -DisplayName \u0026#39;WSL 2 Firewall Unlock\u0026#39; \u0026#34;;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e#adding Exception Rules for inbound and outbound Rules\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eiex \u0026#34;New-NetFireWallRule -DisplayName \u0026#39;WSL 2 Firewall Unlock\u0026#39; -Direction Outbound -LocalPort $ports_a -Action Allow -Protocol TCP\u0026#34;;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eiex \u0026#34;New-NetFireWallRule -DisplayName \u0026#39;WSL 2 Firewall Unlock\u0026#39; -Direction Inbound -LocalPort $ports_a -Action Allow -Protocol TCP\u0026#34;;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003efor( $i = 0; $i -lt $ports.length; $i++ ){\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  $port = $ports[$i];\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  iex \u0026#34;netsh interface portproxy delete v4tov4 listenport=$port listenaddress=$addr\u0026#34;;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  iex \u0026#34;netsh interface portproxy add v4tov4 listenport=$port listenaddress=$addr connectport=$port connectaddress=$remoteport\u0026#34;;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e}\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cblockquote\u003e\n\u003cp\u003enetsh interface portproxy show v4tov4\u003c/p\u003e\n\u003cp\u003echeck if your proxy is working\u003c/p\u003e\n\u003c/blockquote\u003e","title":"Windows 10 WSL Ubuntu Common Commands and hacks"},{"content":"find . -name \u0026#34;*:Zone.Identifier\u0026#34; -type f -delete Usually seen in wsl issues https://github.com/microsoft/WSL/issues/7456\nand https://github.com/microsoft/WSL/issues/4609\n","permalink":"https://tutes.in/remove-zone-identifier-files-in-windows/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-powershell\" data-lang=\"powershell\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"n\"\u003efind\u003c/span\u003e \u003cspan class=\"p\"\u003e.\u003c/span\u003e \u003cspan class=\"n\"\u003e-name\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;*:Zone.Identifier\u0026#34;\u003c/span\u003e \u003cspan class=\"n\"\u003e-type\u003c/span\u003e \u003cspan class=\"n\"\u003ef\u003c/span\u003e \u003cspan class=\"n\"\u003e-delete\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eUsually seen in wsl issues \u003ca href=\"https://github.com/microsoft/WSL/issues/7456\"\u003ehttps://github.com/microsoft/WSL/issues/7456\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eand \u003ca href=\"https://github.com/microsoft/WSL/issues/4609\"\u003ehttps://github.com/microsoft/WSL/issues/4609\u003c/a\u003e\u003c/p\u003e","title":"Remove zone.identifier files in windows"},{"content":"\u0026#39;eq\u0026#39; =\u0026gt; \u0026#34;{{column}} = ?\u0026#34;, \u0026#39;finset\u0026#39; =\u0026gt; \u0026#34;FIND_IN_SET(?, {{column}})\u0026#34;, \u0026#39;from\u0026#39; =\u0026gt; \u0026#34;{{column}} \u0026gt;= ?\u0026#34;, \u0026#39;gt\u0026#39; =\u0026gt; \u0026#34;{{column}} \u0026gt; ?\u0026#34;, \u0026#39;gteq\u0026#39; =\u0026gt; \u0026#34;{{column}} \u0026gt;= ?\u0026#34;, \u0026#39;in\u0026#39; =\u0026gt; \u0026#34;{{column}} IN(?)\u0026#34;, \u0026#39;is\u0026#39; =\u0026gt; \u0026#34;{{column}} IS ?\u0026#34;, \u0026#39;like\u0026#39; =\u0026gt; \u0026#34;{{column}} LIKE ?\u0026#34;, \u0026#39;lt\u0026#39; =\u0026gt; \u0026#34;{{column}} \u0026lt; ?\u0026#34;, \u0026#39;lteq\u0026#39; =\u0026gt; \u0026#34;{{column}} \u0026lt;= ?\u0026#34;, \u0026#39;neq\u0026#39; =\u0026gt; \u0026#34;{{column}} != ?\u0026#34;, \u0026#39;nin\u0026#39; =\u0026gt; \u0026#34;{{column}} NOT IN(?)\u0026#34;, \u0026#39;nlike\u0026#39; =\u0026gt; \u0026#34;{{column}} NOT LIKE ?\u0026#34;, \u0026#39;notnull\u0026#39; =\u0026gt; \u0026#34;{{column}} IS NOT NULL\u0026#34;, \u0026#39;ntoa\u0026#39; =\u0026gt; \u0026#34;INET_NTOA({{column}}) LIKE ?\u0026#34;, \u0026#39;null\u0026#39; =\u0026gt; \u0026#34;{{column}} IS NULL\u0026#34;, \u0026#39;regexp\u0026#39; =\u0026gt; \u0026#34;{{column}} REGEXP ?\u0026#34;, \u0026#39;seq\u0026#39; =\u0026gt; null, \u0026#39;sneq\u0026#39; =\u0026gt; null, \u0026#39;to\u0026#39; =\u0026gt; \u0026#34;{{column}} \u0026lt;= ?\u0026#34; ","permalink":"https://tutes.in/condition-types-for-addattributetofilter-in-magento2-collections/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026#39;eq\u0026#39;            =\u0026gt; \u0026#34;{{column}} = ?\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026#39;finset\u0026#39;        =\u0026gt; \u0026#34;FIND_IN_SET(?, {{column}})\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026#39;from\u0026#39;          =\u0026gt; \u0026#34;{{column}} \u0026gt;= ?\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026#39;gt\u0026#39;            =\u0026gt; \u0026#34;{{column}} \u0026gt; ?\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026#39;gteq\u0026#39;          =\u0026gt; \u0026#34;{{column}} \u0026gt;= ?\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026#39;in\u0026#39;            =\u0026gt; \u0026#34;{{column}} IN(?)\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026#39;is\u0026#39;            =\u0026gt; \u0026#34;{{column}} IS ?\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026#39;like\u0026#39;          =\u0026gt; \u0026#34;{{column}} LIKE ?\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026#39;lt\u0026#39;            =\u0026gt; \u0026#34;{{column}} \u0026lt; ?\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026#39;lteq\u0026#39;          =\u0026gt; \u0026#34;{{column}} \u0026lt;= ?\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026#39;neq\u0026#39;           =\u0026gt; \u0026#34;{{column}} != ?\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026#39;nin\u0026#39;           =\u0026gt; \u0026#34;{{column}} NOT IN(?)\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026#39;nlike\u0026#39;         =\u0026gt; \u0026#34;{{column}} NOT LIKE ?\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026#39;notnull\u0026#39;       =\u0026gt; \u0026#34;{{column}} IS NOT NULL\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026#39;ntoa\u0026#39;          =\u0026gt; \u0026#34;INET_NTOA({{column}}) LIKE ?\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026#39;null\u0026#39;          =\u0026gt; \u0026#34;{{column}} IS NULL\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026#39;regexp\u0026#39;        =\u0026gt; \u0026#34;{{column}} REGEXP ?\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026#39;seq\u0026#39;           =\u0026gt; null,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026#39;sneq\u0026#39;          =\u0026gt; null,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026#39;to\u0026#39;            =\u0026gt; \u0026#34;{{column}} \u0026lt;= ?\u0026#34;\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Condition types for addAttributeToFilter in Magento2 Collections"},{"content":"Go to bucket\nIn the bucket permissions tab\nThere is a section for CORS, put the following in it and save.\n[ { \u0026#34;AllowedOrigins\u0026#34;: [ \u0026#34;*\u0026#34; ], \u0026#34;AllowedMethods\u0026#34;: [ \u0026#34;GET\u0026#34; ], \u0026#34;MaxAgeSeconds\u0026#34;: 3000, \u0026#34;ExposeHeaders\u0026#34;: [ \u0026#34;Content-Range\u0026#34;, \u0026#34;Content-Length\u0026#34;, \u0026#34;ETag\u0026#34; ], \u0026#34;AllowedHeaders\u0026#34;: [ \u0026#34;Authorization\u0026#34;, \u0026#34;Content-Range\u0026#34;, \u0026#34;Accept\u0026#34;, \u0026#34;Content-Type\u0026#34;, \u0026#34;Origin\u0026#34;, \u0026#34;Range\u0026#34; ] } ] ","permalink":"https://tutes.in/how-to-fix-cors-error-for-amazon-s3-files-and-resources/","summary":"\u003cp\u003eGo to bucket\u003c/p\u003e\n\u003cp\u003eIn the bucket permissions tab\u003c/p\u003e\n\u003cp\u003eThere is a section for CORS, put the following in it and save.\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e[\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    {\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u0026#34;AllowedOrigins\u0026#34;: [\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u0026#34;*\u0026#34;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        ],\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u0026#34;AllowedMethods\u0026#34;: [\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u0026#34;GET\u0026#34;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        ],\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u0026#34;MaxAgeSeconds\u0026#34;: 3000,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u0026#34;ExposeHeaders\u0026#34;: [\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e             \u0026#34;Content-Range\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e             \u0026#34;Content-Length\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e             \u0026#34;ETag\u0026#34;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        ],\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u0026#34;AllowedHeaders\u0026#34;: [\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u0026#34;Authorization\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u0026#34;Content-Range\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u0026#34;Accept\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u0026#34;Content-Type\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u0026#34;Origin\u0026#34;,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u0026#34;Range\u0026#34;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        ]\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    }\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e]\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"How to fix CORS error for amazon s3 files and resources?"},{"content":"http://wiki.centos-webpanel.com/webservers-vhost-templates\nTemplates location: /usr/local/cwpsrv/htdocs/resources/conf/web_servers/\n– Folder main contains main configuration for WebServers\n– Folder vhosts contains vhosts configuration for domains (this is what you need)\nHow to create a template file\nThe easiest way to do that is to simply copy an existing file and then edit a new file you have created.\nNote that you need to have .tpl and .stpl files (tpl is for http and stpl is for https version)\nLet’s do one example for apache vhost with nginx\ncd /usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/nginx/ cp default.tpl my-template.tpl cp default.stpl my-template.stpl Now you can edit these newly created template files.\nTemplate folders explained\nList from folder: /usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/\nhttpd = apache templates\nnginx = nginx templates\nvarnish = varnish templates\nphp-fpm = php-fpm service templates (used for all php-fpm versions)\nmy-template.stpl_Download\nmy-template.tpl_Download\nadd a block\nmap $http_upgrade $connection_upgrade { default upgrade; \u0026#39;\u0026#39; close; } also add these inside “location /” block\nproxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; proxy_set_header Host $host; ","permalink":"https://tutes.in/centos-web-panel-vhost-templates-for-proxying-websocket-traffic/","summary":"\u003cp\u003e\u003ca href=\"http://wiki.centos-webpanel.com/webservers-vhost-templates\"\u003ehttp://wiki.centos-webpanel.com/webservers-vhost-templates\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eTemplates location: /usr/local/cwpsrv/htdocs/resources/conf/web_servers/\u003cbr\u003e\n– Folder main contains main configuration for WebServers\u003cbr\u003e\n– Folder vhosts contains vhosts configuration for domains (this is what you need)\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eHow to create a template file\u003c/strong\u003e\u003cbr\u003e\nThe easiest way to do that is to simply copy an existing file and then edit a new file you have created.\u003cbr\u003e\nNote that you need to have .tpl and .stpl files (tpl is for http and stpl is for https version)\u003c/p\u003e","title":"centos web panel – vhost templates for proxying websocket traffic"},{"content":"wget https://raw.githubusercontent.com/udhos/update-golang/master/update-golang.sh chmod 755 ./update-golang.sh which go sudo RELEASE=1.16.6 DESTINATION=/usr/lib ./update-golang.sh sudo alternatives --install /usr/bin/go go /usr/lib/go/bin/go 5 sudo alternatives --config go ","permalink":"https://tutes.in/golang-update-in-centos/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ewget https://raw.githubusercontent.com/udhos/update-golang/master/update-golang.sh\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003echmod \u003cspan class=\"m\"\u003e755\u003c/span\u003e ./update-golang.sh\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ewhich go\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esudo \u003cspan class=\"nv\"\u003eRELEASE\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e1.16.6  \u003cspan class=\"nv\"\u003eDESTINATION\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e/usr/lib ./update-golang.sh\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esudo alternatives --install /usr/bin/go go /usr/lib/go/bin/go \u003cspan class=\"m\"\u003e5\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esudo alternatives --config go\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"golang update in centos"},{"content":"hostname srv1.example.com yum -y install wget yum -y update reboot cd /usr/local/src wget http://centos-webpanel.com/cwp-el7-latest sh cwp-el7-latest -r no --phpfpm 7.3 --softaculous no reboot sudo wget -O /etc/yum.repos.d/jenkins.repo \\ https://pkg.jenkins.io/redhat-stable/jenkins.repo sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key sudo yum upgrade sudo yum install epel-release java-11-openjdk-devel sudo yum install jenkins sudo systemctl daemon-reload curl -sL https://rpm.nodesource.com/setup_12.x | bash - sudo yum install nodejs npm -y sudo npm install pm2@latest -g ","permalink":"https://tutes.in/basic-cwp-with-jenkins-and-nodejs/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ehostname srv1.example.com\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eyum -y install wget\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eyum -y update\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ereboot\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nb\"\u003ecd\u003c/span\u003e /usr/local/src\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ewget http://centos-webpanel.com/cwp-el7-latest\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esh cwp-el7-latest -r no --phpfpm 7.3 --softaculous no\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ereboot\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esudo wget -O /etc/yum.repos.d/jenkins.repo \u003cspan class=\"se\"\u003e\\\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    https://pkg.jenkins.io/redhat-stable/jenkins.repo\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esudo yum upgrade\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esudo yum install epel-release java-11-openjdk-devel\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esudo yum install jenkins\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esudo systemctl daemon-reload\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ecurl -sL https://rpm.nodesource.com/setup_12.x \u003cspan class=\"p\"\u003e|\u003c/span\u003e bash -\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esudo yum install nodejs npm -y\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esudo npm install pm2@latest -g\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"basic cwp with jenkins and nodejs"},{"content":"#Order deny,allow #Deny from all #Allow from 3.92.40.40 #Allow from 4.30.3.0/4 #Allow from 4.30.3.18 #Allow from 4.30.3.15 #Allow from 104.9.55.44 RewriteCond %{REMOTE_ADDR} !^(4\\.30\\.3\\.[0-9]*)$ RewriteCond %{HTTP:X-Forwarded-For} !^(4\\.30\\.3\\.[0-9]*)$ RewriteCond %{REMOTE_ADDR} !^(104\\.9\\.55\\.44)$ RewriteCond %{HTTP:X-Forwarded-For} !^(104\\.9\\.55\\.44)$ RewriteRule ^(.*) - [F] ","permalink":"https://tutes.in/ways-to-block-user-via-htaccess/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e#Order deny,allow\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e#Deny from all\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e#Allow from 3.92.40.40\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e#Allow from 4.30.3.0/4\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e#Allow from 4.30.3.18\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e#Allow from 4.30.3.15\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e#Allow from 104.9.55.44\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRewriteCond %{REMOTE_ADDR} !^(4\\.30\\.3\\.[0-9]*)$\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRewriteCond %{HTTP:X-Forwarded-For} !^(4\\.30\\.3\\.[0-9]*)$\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRewriteCond %{REMOTE_ADDR} !^(104\\.9\\.55\\.44)$\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRewriteCond %{HTTP:X-Forwarded-For} !^(104\\.9\\.55\\.44)$\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRewriteRule ^(.*) - [F]\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Ways to block user via .htaccess"},{"content":"aws configure --profile myproject // to test if it works or not aws s3 ls --profile myproject aws s3 cp \\ --exclude \u0026#34;*\u0026#34; \\ --include \u0026#34;*.jpeg\u0026#34; \\ --content-type=\u0026#34;image/jpeg\u0026#34; \\ --metadata-directive=\u0026#34;REPLACE\u0026#34; \\ --recursive \\ --acl public-read \\ s3://myproject/ \\ s3://myproject/ \\ --dryrun --profile myproject aws s3 cp \\ --exclude \u0026#34;*\u0026#34; \\ --include \u0026#34;*.jpg\u0026#34; \\ --content-type=\u0026#34;image/jpeg\u0026#34; \\ --metadata-directive=\u0026#34;REPLACE\u0026#34; \\ --recursive \\ --acl public-read \\ s3://myproject/ \\ s3://myproject/ \\ --dryrun --profile myproject aws s3 cp \\ --exclude \u0026#34;*\u0026#34; \\ --include \u0026#34;*.jpeg\u0026#34; \\ --content-type=\u0026#34;image/jpeg\u0026#34; \\ --metadata-directive=\u0026#34;REPLACE\u0026#34; \\ --recursive \\ --acl public-read \\ s3://myproject/ \\ s3://myproject/ \\ --dryrun --profile myproject // not needed aws s3 sync . s3://my-bucket/path --acl public-read Dont forget to remove dryrun flag once you are sure.\n","permalink":"https://tutes.in/s3-notes-how-to-make-all-s3-images-public/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eaws configure --profile myproject\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e// to test if it works or not\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eaws s3 ls --profile myproject\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eaws s3 cp \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      --exclude \u0026#34;*\u0026#34; \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      --include \u0026#34;*.jpeg\u0026#34; \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      --content-type=\u0026#34;image/jpeg\u0026#34;  \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      --metadata-directive=\u0026#34;REPLACE\u0026#34; \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      --recursive \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t  --acl public-read \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e       s3://myproject/ \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e       s3://myproject/ \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t   --dryrun --profile myproject\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eaws s3 cp \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      --exclude \u0026#34;*\u0026#34; \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      --include \u0026#34;*.jpg\u0026#34; \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      --content-type=\u0026#34;image/jpeg\u0026#34;  \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      --metadata-directive=\u0026#34;REPLACE\u0026#34; \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      --recursive \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t  --acl public-read \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e       s3://myproject/ \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e       s3://myproject/ \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t   --dryrun --profile myproject\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eaws s3 cp \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      --exclude \u0026#34;*\u0026#34; \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      --include \u0026#34;*.jpeg\u0026#34; \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      --content-type=\u0026#34;image/jpeg\u0026#34;  \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      --metadata-directive=\u0026#34;REPLACE\u0026#34; \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      --recursive \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t  --acl public-read \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e       s3://myproject/ \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e       s3://myproject/ \\\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t   --dryrun --profile myproject\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e// not needed \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eaws s3 sync . s3://my-bucket/path --acl public-read\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eDont forget to remove dryrun flag once you are sure.\u003c/p\u003e","title":"S3 notes – how to make all s3 images public"},{"content":"\nSource: Linkedin\n","permalink":"https://tutes.in/js-notes-object-is-vs-triple-equalto/","summary":"\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2021/09/image-1024x562.png\"\u003e\u003c/p\u003e\n\u003cp\u003eSource: Linkedin\u003c/p\u003e","title":"JS Notes Object.is vs === Triple EqualTo"},{"content":"The issue is actually related to your server’s configuration. By default all types of requests are not allowed. Please add the following to your .htaccess file\n\u0026lt;Limit GET POST OPTIONS PUT DELETE PROPFIND\u0026gt; Order allow,deny Allow from all Require all granted \u0026lt;/Limit\u0026gt; ","permalink":"https://tutes.in/how-to-fix-magento2-apis-not-working-fix-coupon-apis-and-other-put-options-apis/","summary":"\u003cp\u003eThe issue is actually related to your server’s configuration. By default all types of requests are not allowed. Please add the following to your .htaccess file\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026lt;Limit GET POST OPTIONS PUT DELETE PROPFIND\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    Order allow,deny\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    Allow from all\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    Require all granted\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026lt;/Limit\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"How to fix Magento2 apis not working? fix coupon apis and other PUT OPTIONS APIs"},{"content":".flashybtn { display: block; text-align: center!important; text-decoration: none!important; font-weight: 800!important; font-size: 1.5em; text-transform: uppercase!important; color: #fff!important; padding: 1em 0.1em 1em 0.1em!important; background-size: 200% auto!important; box-shadow: 0 4px 6px rgba(50,50,93,.11),0 1px 3px rgba(0,0,0,.08)!important; background-image: linear-gradient(to right,#ff473d 0%,#ff379d 50%,#f13790 100%)!important; animation: gradient 1.5s ease infinite!important; width: 100%; position: relative; //change to fixed to make it sticky bottom: 0; left:0; z-index: 9999; } .flashybtn:before { content: \u0026#34;\u0026#34;; display: inline-block; position: absolute; background: rgb(255,255,255); width: 30px; height: 2em; left: 0; bottom: 0; filter: blur(1.5em); animation: 2s glaze infinite; } @keyframes glaze{ from{ transform: translateX(0) skewX(-15deg); opacity:1; } to { transform: translateX(100vw) skewX(-15deg); opacity:1; } } I am FLASHY ","permalink":"https://tutes.in/css-flashy-button-with-glaze-effect/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e.flashybtn\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e{\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    display: block;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    text-align: center!important;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    text-decoration: none!important;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    font-weight: 800!important;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    font-size: 1.5em;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    text-transform: uppercase!important;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    color: #fff!important;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    padding: 1em 0.1em 1em 0.1em!important;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    background-size: 200% auto!important;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    box-shadow: 0 4px 6px rgba(50,50,93,.11),0 1px 3px rgba(0,0,0,.08)!important;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    background-image: linear-gradient(to right,#ff473d 0%,#ff379d 50%,#f13790 100%)!important;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    animation: gradient 1.5s ease infinite!important;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    width: 100%;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    position: relative; //change to fixed to make it sticky\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    bottom: 0;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    left:0;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    z-index: 9999;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t}\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e.flashybtn:before {\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    content: \u0026#34;\u0026#34;;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    display: inline-block;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    position: absolute;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    background: rgb(255,255,255);\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    width: 30px;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    height: 2em;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    left: 0;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    bottom: 0;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    filter: blur(1.5em);\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    animation: 2s glaze infinite;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e}\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e@keyframes glaze{\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    from{\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        transform: translateX(0) skewX(-15deg);\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        opacity:1;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        }\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    to {\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        transform: translateX(100vw) skewX(-15deg);\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        opacity:1;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e       }\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e}\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch3 class=\"flashybtn\"\u003eI am FLASHY\u003c/h3\u003e\n\u003cstyle\u003e\n.flashybtn\n{\n    display: block;\n    text-align: center!important;\n    text-decoration: none!important;\n    font-weight: 800!important;\n    font-size: 1.5em;\n    text-transform: uppercase!important;\n    color: #fff!important;\n    padding: 1em 0.1em 1em 0.1em!important;\n    background-size: 200% auto!important;\n    box-shadow: 0 4px 6px rgba(50,50,93,.11),0 1px 3px rgba(0,0,0,.08)!important;\n    background-image: linear-gradient(to right,#ff473d 0%,#ff379d 50%,#f13790 100%)!important;\n    animation: gradient 1.5s ease infinite!important;\n    width: 100%;\n    position: relative;\n    bottom: 0;\n    left:0;\n    z-index: 9999;\n\t}\n.flashybtn:before {\n    content: \"\";\n    display: inline-block;\n    position: absolute;\n    background: rgb(255,255,255);\n    width: 30px;\n    height: 2em;\n    left: 0;\n    bottom: 0;\n    filter: blur(1.5em);\n    animation: 2s glaze infinite;\n}\n@keyframes glaze{\n    from{\n        transform: translateX(0) skewX(-15deg);\n        opacity:1;\n        }\n    to {\n        transform: translateX(100vw) skewX(-15deg);\n        opacity:1;\n       }\n}\u003c/style\u003e","title":"CSS Flashy button with glaze effect"},{"content":"ErrorDocument 403 /index.html DirectoryIndex index.html \u0026lt;Files ~ \u0026#34;index\\.html\u0026#34;\u0026gt; Order Allow,Deny Allow from all \u0026lt;/Files\u0026gt; Deny from all Content of your .htaccess file\nIf you want to whitelist any IP, use this\nErrorDocument 403 /index.html DirectoryIndex index.html \u0026lt;Files ~ \u0026#34;index\\.html\u0026#34;\u0026gt; Order Allow,Deny Allow from all \u0026lt;/Files\u0026gt; Order Allow,Deny Allow from xx.xxx.xx.xx Deny from all Here is a sample htaccess for a wordpress website with 1 IP whitelisted 4.129.45.44 and all others are banned. So you only will be able to load the website while everyone else will see contents of index.html with HTTP Status code 403\nErrorDocument 403 /index.html DirectoryIndex index.php \u0026lt;Files ~ \u0026#34;index\\.html\u0026#34;\u0026gt; Order Allow,Deny Allow from all \u0026lt;/Files\u0026gt; RewriteEngine On RewriteBase / RewriteCond %{REMOTE_ADDR} !^4\\.129\\.45\\.44$ RewriteRule ^index\\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REMOTE_ADDR} !^4\\.129\\.45\\.44$ RewriteRule . /index.php [L] Allow from 4.129.45.44 Deny from all ","permalink":"https://tutes.in/how-to-put-a-site-in-maintenance-apache-web-server/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eErrorDocument 403 /index.html\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDirectoryIndex index.html\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026lt;Files ~ \u0026#34;index\\.html\u0026#34;\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\tOrder Allow,Deny\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\tAllow from all\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026lt;/Files\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDeny from all\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eContent of your .htaccess file\u003c/p\u003e\n\u003cp\u003eIf you want to whitelist any IP, use this\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eErrorDocument 403 /index.html\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDirectoryIndex index.html\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026lt;Files ~ \u0026#34;index\\.html\u0026#34;\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\tOrder Allow,Deny\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\tAllow from all\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026lt;/Files\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eOrder Allow,Deny\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eAllow from xx.xxx.xx.xx\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDeny from all\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eHere is a sample htaccess for a wordpress website with 1 IP whitelisted 4.129.45.44 and all others are banned. So you only will be able to load the website while everyone else will see contents of index.html with HTTP Status code 403\u003c/p\u003e","title":"How to put a site in maintenance? [Apache web server]"},{"content":"zip archive.zip $(git diff-tree --no-commit-id --name-only -r latest-commit-id) Reference: https://stackoverflow.com/a/42971972/2229148\nsometimes you need all the files that were updated so you can patch an external app which doesnt uses same git project or many other scenarios in which we need a zip or tar of those files. Use the above command to do so\nThere is a smarter way also, if you want all the changes from last 5 commits, use the command like this:\nzip archive.zip $(git diff-tree --no-commit-id --name-only -r HEAD~5 HEAD) ","permalink":"https://tutes.in/how-to-generate-a-patch-with-edited-files-how-to-zip-latest-committed-changes-only/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ezip archive.zip $(git diff-tree --no-commit-id --name-only -r latest-commit-id)\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003e\u003cstrong\u003eReference\u003c/strong\u003e: \u003ca href=\"https://stackoverflow.com/a/42971972/2229148\"\u003ehttps://stackoverflow.com/a/42971972/2229148\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003esometimes you need all the files that were updated so you can patch an external app which doesnt uses same git project or many other scenarios in which we need a zip or tar of those files. Use the above command to do so\u003c/p\u003e\n\u003cp\u003eThere is a \u003cstrong\u003esmarter way\u003c/strong\u003e also, if you want all the changes from last 5 commits, use the command like this:\u003c/p\u003e","title":"How to generate a patch with edited files? How to zip latest committed changes only"},{"content":"sudo yum install httpd-tools sudo htpasswd -c /etc/nginx/conf.d/vhosts/.htpasswd USERNAME Enter Password: xxxxx sudo chmod 644 /etc/nginx/conf.d/vhosts/.htpasswd Update the domain.conf file like /etc/nginx/conf.d/vhosts/myrestricteddomain.com.ssl.conf\nIdeally, use it in server config\n1 2 3 4 5 server { satisfy all; auth_basic \u0026#34;Restricted Area\u0026#34;; auth_basic_user_file /etc/nginx/conf.d/vhosts/.htpasswd; location / { Save and restart nginx\n","permalink":"https://tutes.in/basic-authentication-in-nginx-for-any-domain-server-or-location-block/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esudo yum install httpd-tools\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esudo htpasswd -c /etc/nginx/conf.d/vhosts/.htpasswd USERNAME\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eEnter Password: xxxxx\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esudo chmod 644 /etc/nginx/conf.d/vhosts/.htpasswd\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eUpdate the domain.conf file like \u003cem\u003e/etc/nginx/conf.d/vhosts/myrestricteddomain.com.ssl.conf\u003c/em\u003e\u003c/p\u003e\n\u003cp\u003eIdeally, use it in server config\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cdiv class=\"chroma\"\u003e\n\u003ctable class=\"lntable\"\u003e\u003ctr\u003e\u003ctd class=\"lntd\"\u003e\n\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode\u003e\u003cspan class=\"lnt\"\u003e1\n\u003c/span\u003e\u003cspan class=\"hl\"\u003e\u003cspan class=\"lnt\"\u003e2\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"hl\"\u003e\u003cspan class=\"lnt\"\u003e3\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"hl\"\u003e\u003cspan class=\"lnt\"\u003e4\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"hl\"\u003e\u003cspan class=\"lnt\"\u003e5\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/td\u003e\n\u003ctd class=\"lntd\"\u003e\n\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eserver \u003cspan class=\"o\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line hl\"\u003e\u003cspan class=\"cl\"\u003esatisfy all\u003cspan class=\"p\"\u003e;\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line hl\"\u003e\u003cspan class=\"cl\"\u003eauth_basic \u003cspan class=\"s2\"\u003e\u0026#34;Restricted Area\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line hl\"\u003e\u003cspan class=\"cl\"\u003eauth_basic_user_file /etc/nginx/conf.d/vhosts/.htpasswd\u003cspan class=\"p\"\u003e;\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line hl\"\u003e\u003cspan class=\"cl\"\u003e\tlocation / \u003cspan class=\"o\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\u003c/div\u003e\n\u003c/div\u003e\u003cp\u003eSave and restart nginx\u003c/p\u003e","title":"Basic Authentication in nginx for any domain, server or location block"},{"content":"DELETE FROM yourTable WHERE id NOT IN (SELECT MIN(id) FROM yourTable GROUP BY anotherColumn) If you want to remove older rows, use the following:\nDELETE FROM yourTable WHERE id NOT IN (SELECT MAX(id) FROM yourTable GROUP BY anotherColumn) ","permalink":"https://tutes.in/remove-new-duplicates-from-any-sql-table/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-sql\" data-lang=\"sql\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eDELETE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eFROM\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eyourTable\u003c/span\u003e\u003cspan class=\"w\"\u003e \n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eWHERE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eid\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eNOT\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eIN\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"k\"\u003eSELECT\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eMIN\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"n\"\u003eid\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"w\"\u003e \n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"w\"\u003e                 \u003c/span\u003e\u003cspan class=\"k\"\u003eFROM\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eyourTable\u003c/span\u003e\u003cspan class=\"w\"\u003e \n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"w\"\u003e                 \u003c/span\u003e\u003cspan class=\"k\"\u003eGROUP\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eBY\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eanotherColumn\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eIf you want to remove older rows, use the following:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-sql\" data-lang=\"sql\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eDELETE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eFROM\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eyourTable\u003c/span\u003e\u003cspan class=\"w\"\u003e \n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eWHERE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eid\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eNOT\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eIN\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"k\"\u003eSELECT\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eMAX\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"n\"\u003eid\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"w\"\u003e \n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"w\"\u003e                 \u003c/span\u003e\u003cspan class=\"k\"\u003eFROM\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eyourTable\u003c/span\u003e\u003cspan class=\"w\"\u003e \n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"w\"\u003e                 \u003c/span\u003e\u003cspan class=\"k\"\u003eGROUP\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eBY\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eanotherColumn\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Remove new duplicates from any sql table"},{"content":"This is a very common issue you will face if you using windows machine for development.\nUsual error message is:\nInvalid template file: \u0026#39;/vendor/magento/module-theme/view/frontend/templates/page/js/require_js.phtml\u0026#39; in module: \u0026#39;\u0026#39; block\u0026#39;s name: \u0026#39;require.js\u0026#39; So whats the solution?\nIn case of windows, just replace this function isPathInDirectories in vendor/magento/framework/view/element/template/file/validator.php\nprotected function isPathInDirectories($path, $directories) { $realPath = str_replace(\u0026#39;\\\\\u0026#39;, \u0026#39;/\u0026#39;, $this-\u0026gt;fileDriver-\u0026gt;getRealPath($path)); if (!is_array($directories)) { $directories = (array)$directories; } foreach ($directories as $directory) { if (0 === strpos($realPath, $directory)) { return true; } } return false; } Reference: https://magento.stackexchange.com/a/255585/32283\n","permalink":"https://tutes.in/how-to-fix-invalid-template-file-error-in-magento2-after-version-upgrade/","summary":"\u003cp\u003eThis is a very common issue you will face if you using windows machine for development.\u003c/p\u003e\n\u003cp\u003eUsual error message is:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eInvalid\u003c/span\u003e \u003cspan class=\"nx\"\u003etemplate\u003c/span\u003e \u003cspan class=\"nx\"\u003efile\u003c/span\u003e\u003cspan class=\"o\"\u003e:\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;/vendor/magento/module-theme/view/frontend/templates/page/js/require_js.phtml\u0026#39;\u003c/span\u003e \u003cspan class=\"nx\"\u003ein\u003c/span\u003e \u003cspan class=\"nx\"\u003emodule\u003c/span\u003e\u003cspan class=\"o\"\u003e:\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;\u0026#39;\u003c/span\u003e \u003cspan class=\"nx\"\u003eblock\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;s name: \u0026#39;\u003c/span\u003e\u003cspan class=\"k\"\u003erequire\u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003ejs\u003c/span\u003e\u003cspan class=\"err\"\u003e\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eSo whats the solution?\u003c/p\u003e\n\u003cp\u003eIn case of windows, just replace this function \u003cstrong\u003e\u003ccode\u003eisPathInDirectories\u003c/code\u003e\u003c/strong\u003e in \u003cstrong\u003e\u003ccode\u003evendor/magento/framework/view/element/template/file/validator.php\u003c/code\u003e\u003c/strong\u003e\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eprotected\u003c/span\u003e \u003cspan class=\"k\"\u003efunction\u003c/span\u003e \u003cspan class=\"nf\"\u003eisPathInDirectories\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$path\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nv\"\u003e$directories\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nv\"\u003e$realPath\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003estr_replace\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;\\\\\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;/\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nv\"\u003e$this\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003efileDriver\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetRealPath\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$path\u003c/span\u003e\u003cspan class=\"p\"\u003e));\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"o\"\u003e!\u003c/span\u003e\u003cspan class=\"nx\"\u003eis_array\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$directories\u003c/span\u003e\u003cspan class=\"p\"\u003e))\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nv\"\u003e$directories\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"k\"\u003earray\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"nv\"\u003e$directories\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003eforeach\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$directories\u003c/span\u003e \u003cspan class=\"k\"\u003eas\u003c/span\u003e \u003cspan class=\"nv\"\u003e$directory\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e \u003cspan class=\"o\"\u003e===\u003c/span\u003e \u003cspan class=\"nx\"\u003estrpos\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$realPath\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nv\"\u003e$directory\u003c/span\u003e\u003cspan class=\"p\"\u003e))\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"k\"\u003etrue\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"k\"\u003efalse\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch2 id=\"reference\"\u003eReference:\u003c/h2\u003e\n\u003cp\u003e\u003ca href=\"https://magento.stackexchange.com/a/255585/32283\"\u003ehttps://magento.stackexchange.com/a/255585/32283\u003c/a\u003e\u003c/p\u003e","title":"How to fix Invalid template file error in Magento2 after version upgrade?"},{"content":"UPDATE `customer_entity` SET `password_hash` = CONCAT(SHA2(\u0026#39;SaltPASSWORD\u0026#39;, 256), \u0026#39;:SALT:1\u0026#39;) WHERE `entity_id` = 7615; Please note that if SPJ9WIp7 is the salt and User’s password is 7qLzX33ETxYE, the following will be your query:\nUPDATE `customer_entity` SET `password_hash` = CONCAT(SHA2(\u0026#39;SPJ9WIp77qLzX33ETxYE\u0026#39;, 256), \u0026#39;:SPJ9WIp7:1\u0026#39;) WHERE `entity_id` = 7615; 7615 is the customer id\n","permalink":"https://tutes.in/how-to-update-customer-password-in-magento-2-database/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-sql\" data-lang=\"sql\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eUPDATE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003ecustomer_entity\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eSET\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003epassword_hash\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eCONCAT\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"n\"\u003eSHA2\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;SaltPASSWORD\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"mi\"\u003e256\u003c/span\u003e\u003cspan class=\"p\"\u003e),\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;:SALT:1\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eWHERE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003eentity_id\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"mi\"\u003e7615\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003ePlease note that if SPJ9WIp7 is the salt and User’s password is 7qLzX33ETxYE, the following will be your query:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-sql\" data-lang=\"sql\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eUPDATE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003ecustomer_entity\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eSET\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003epassword_hash\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eCONCAT\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"n\"\u003eSHA2\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;SPJ9WIp77qLzX33ETxYE\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"mi\"\u003e256\u003c/span\u003e\u003cspan class=\"p\"\u003e),\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;:SPJ9WIp7:1\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eWHERE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003eentity_id\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"mi\"\u003e7615\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003e7615 is the customer id\u003c/p\u003e","title":"How to update customer password in Magento 2 database?"},{"content":"Click on export, and choose “custom” export method.\nLets say you want to export first 20 tables only.\nOpen chrome or browser console [ctrl+shift+j], enter the following:\n$(\u0026#34;input[name=\u0026#39;table_data[]\u0026#39;]\u0026#34;).slice(0,20).click(); For next 20, use 20,50 as arguments in slice function used above.\n","permalink":"https://tutes.in/how-to-export-multiple-selected-tables-in-pma-phpmyadmin-but-not-all-tables/","summary":"\u003cp\u003eClick on export, and choose “custom” export method.\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2021/05/pma_export1.png\"\u003e\u003c/p\u003e\n\u003cp\u003eLets say you want to export first 20 tables only.\u003c/p\u003e\n\u003cp\u003eOpen chrome or browser console \u003cem\u003e[ctrl+shift+j]\u003c/em\u003e, enter the following:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-javascript\" data-lang=\"javascript\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003e$\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;input[name=\u0026#39;table_data[]\u0026#39;]\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eslice\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e20\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eclick\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2021/05/pma_export2.png.jpg\"\u003e\u003c/p\u003e\n\u003cp\u003eFor next 20, use 20,50 as arguments in slice function used above.\u003c/p\u003e","title":"How to export multiple selected tables in PMA phpmyadmin (but not all tables)"},{"content":"How to clone customizer settings in child theme from parent theme? The customizer data is stored in table wp_options under option_name theme_mods_THEME-NAME\nyou can view all such settings via the following query:\nSELECT * FROM `wp_options` WHERE `option_name` LIKE \u0026#34;theme_mods_%\u0026#34; In some cases, you just want to use parent theme’s settings in newly added child theme. If that is your case too, use the following queries to utilize and close those settings for your child theme also.\nupdate `wp_options` set `option_name`=\u0026#34;theme_mods_YOURCHILDTHEME_backup\u0026#34; where `option_name`=\u0026#34;theme_mods_YOURCHILDTHEME\u0026#34;; insert into `wp_options` (`option_name`,`option_value`,`autoload`) select \u0026#34;theme_mods_YOURCHILDTHEME\u0026#34;,`option_value`,\u0026#34;yes\u0026#34; from `wp_options` where `option_name`=\u0026#34;theme_mods_PARENTTHEME\u0026#34;; The following one is a bit risky one. If you understand what is going on here, go ahead.\ndelete from `wp_options` where `option_name`=\u0026#34;theme_mods_YOURCHILDTHEME\u0026#34;; insert into `wp_options` (`option_name`,`option_value`,`autoload`) select \u0026#34;theme_mods_YOURCHILDTHEME\u0026#34;,`option_value`,\u0026#34;yes\u0026#34; from `wp_options` where `option_name`=\u0026#34;theme_mods_PARENTTHEME\u0026#34;; ","permalink":"https://tutes.in/where-are-customizer-settings-stored-in-db-for-wordpress-theme/","summary":"\u003ch2 id=\"how-to-clone-customizer-settings-in-child-theme-from-parent-theme\"\u003eHow to clone customizer settings in child theme from parent theme?\u003c/h2\u003e\n\u003cp\u003eThe customizer data is stored in table wp_options under option_name theme_mods_THEME-NAME\u003c/p\u003e\n\u003cp\u003eyou can view all such settings via the following query:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-sql\" data-lang=\"sql\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eSELECT\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e*\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eFROM\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003ewp_options\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eWHERE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003eoption_name\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eLIKE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;theme_mods_%\u0026#34;\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eIn some cases, you just want to use parent theme’s settings in newly added child theme. If that is your case too, use the following queries to utilize and close those settings for your child theme also.\u003c/p\u003e","title":"Where are customizer settings stored in db for wordpress theme?"},{"content":"jQuery(document).ready(function(){var header=jQuery(\u0026#34;header .fusion-header\u0026#34;);var headerHeight=0; var shouldWrite=1; jQuery(window).on(\u0026#34;scroll\u0026#34;,function(){ headerHeight=header.height(); console.log(headerHeight); if(shouldWrite \u0026amp;\u0026amp; headerHeight!==undefined){ jQuery(\u0026#34;#headerjumpfixer\u0026#34;).html(\u0026#34;.fusion-header-wrapper.fusion-is-sticky{padding-top:\u0026#34;+headerHeight + \u0026#34;px}\u0026#34;); shouldWrite=0;} }); jQuery(window).on(\u0026#34;resize\u0026#34;,function(){shouldWrite=1;}); }); \u0026lt;style id=\u0026#34;headerjumpfixer\u0026#34;\u0026gt;.fusion-header-wrapper.fusion-is-sticky{padding-top:88px}\u0026lt;/style\u0026gt; ","permalink":"https://tutes.in/prevent-sticky-header-jumping-in-css-or-js/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-javascript\" data-lang=\"javascript\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003ejQuery\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nb\"\u003edocument\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eready\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"kd\"\u003efunction\u003c/span\u003e\u003cspan class=\"p\"\u003e(){\u003c/span\u003e\u003cspan class=\"kd\"\u003evar\u003c/span\u003e \u003cspan class=\"nx\"\u003eheader\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nx\"\u003ejQuery\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;header .fusion-header\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\u003cspan class=\"kd\"\u003evar\u003c/span\u003e \u003cspan class=\"nx\"\u003eheaderHeight\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e \u003cspan class=\"kd\"\u003evar\u003c/span\u003e \u003cspan class=\"nx\"\u003eshouldWrite\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003ejQuery\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nb\"\u003ewindow\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eon\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;scroll\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"kd\"\u003efunction\u003c/span\u003e\u003cspan class=\"p\"\u003e(){\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eheaderHeight\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nx\"\u003eheader\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eheight\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003econsole\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003elog\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eheaderHeight\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eshouldWrite\u003c/span\u003e \u003cspan class=\"o\"\u003e\u0026amp;\u0026amp;\u003c/span\u003e \u003cspan class=\"nx\"\u003eheaderHeight\u003c/span\u003e\u003cspan class=\"o\"\u003e!==\u003c/span\u003e\u003cspan class=\"kc\"\u003eundefined\u003c/span\u003e\u003cspan class=\"p\"\u003e){\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003ejQuery\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;#headerjumpfixer\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003ehtml\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;.fusion-header-wrapper.fusion-is-sticky{padding-top:\u0026#34;\u003c/span\u003e\u003cspan class=\"o\"\u003e+\u003c/span\u003e\u003cspan class=\"nx\"\u003eheaderHeight\u003c/span\u003e \u003cspan class=\"o\"\u003e+\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;px}\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eshouldWrite\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e;}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e});\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003ejQuery\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nb\"\u003ewindow\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eon\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;resize\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"kd\"\u003efunction\u003c/span\u003e\u003cspan class=\"p\"\u003e(){\u003c/span\u003e\u003cspan class=\"nx\"\u003eshouldWrite\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e;});\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e});\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-html\" data-lang=\"html\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"nt\"\u003estyle\u003c/span\u003e \u003cspan class=\"na\"\u003eid\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s\"\u003e\u0026#34;headerjumpfixer\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;.\u003c/span\u003e\u003cspan class=\"nc\"\u003efusion-header-wrapper\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nc\"\u003efusion-is-sticky\u003c/span\u003e\u003cspan class=\"p\"\u003e{\u003c/span\u003e\u003cspan class=\"k\"\u003epadding-top\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"mi\"\u003e88\u003c/span\u003e\u003cspan class=\"kt\"\u003epx\u003c/span\u003e\u003cspan class=\"p\"\u003e}\u0026lt;/\u003c/span\u003e\u003cspan class=\"nt\"\u003estyle\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"prevent sticky header jumping in css or js"},{"content":"Prerequisite:\nMagento repo access keys Mysql Database, username and password a domain name pointing to a server if you dont have access key, get a pair here :\nhttps://marketplace.magento.com/customer/accessKeys/\\\nphp -d memory_limit=-1 /bin/composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.2.11 ./ In the above command, you can change version/subversion of magento repo. You can also change the install directory\nAfter the successful run of above command:\\\nbin/magento setup:install \\ --base-url=https://testmagento.domain.com \\ --db-host=localhost \\ --db-name=testmage_x1 \\ --db-user=testmage_x1 \\ --db-password=WEux3dxxxxw \\ --admin-firstname=xxx \\ --admin-lastname=yyy \\ --admin-email=admin@domain.com \\ --admin-user=admin \\ --admin-password=WwKhxxxxxxEK \\ --language=en_US \\ --currency=USD \\ --timezone=America/Chicago \\ --use-rewrites=1 YOu will see Magento Admin URI: /admin_10lf7y after successful run\nNext is installing sample data: totally optional\nphp -d memory_limit=-1 bin/magento sampledata:deploy OPtional: install or update composer version\ncomposer self-update --2 https://blog.packagist.com/composer-2-0-is-now-available/\nhttps://getcomposer.org/\n","permalink":"https://tutes.in/installing-a-testing-instance-for-magento-cli-only/","summary":"\u003cp\u003ePrerequisite:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003eMagento repo access keys\u003c/li\u003e\n\u003cli\u003eMysql Database, username and password\u003c/li\u003e\n\u003cli\u003ea domain name pointing to a server\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eif you dont have access key, get a pair here :\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://marketplace.magento.com/customer/accessKeys/\"\u003ehttps://marketplace.magento.com/customer/accessKeys/\u003c/a\u003e\\\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp -d \u003cspan class=\"nv\"\u003ememory_limit\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e-1 /bin/composer create-project --repository-url\u003cspan class=\"o\"\u003e=\u003c/span\u003ehttps://repo.magento.com/ magento/project-community-edition\u003cspan class=\"o\"\u003e=\u003c/span\u003e2.2.11 ./\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eIn the above command, you can change version/subversion of magento repo. You can also change the install directory\u003cbr\u003e\n\u003cbr\u003e\nAfter the successful run of above command:\\\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ebin/magento setup:install \u003cspan class=\"se\"\u003e\\\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e--base-url\u003cspan class=\"o\"\u003e=\u003c/span\u003ehttps://testmagento.domain.com \u003cspan class=\"se\"\u003e\\\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e--db-host\u003cspan class=\"o\"\u003e=\u003c/span\u003elocalhost \u003cspan class=\"se\"\u003e\\\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e--db-name\u003cspan class=\"o\"\u003e=\u003c/span\u003etestmage_x1 \u003cspan class=\"se\"\u003e\\\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e--db-user\u003cspan class=\"o\"\u003e=\u003c/span\u003etestmage_x1 \u003cspan class=\"se\"\u003e\\\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e--db-password\u003cspan class=\"o\"\u003e=\u003c/span\u003eWEux3dxxxxw \u003cspan class=\"se\"\u003e\\\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e--admin-firstname\u003cspan class=\"o\"\u003e=\u003c/span\u003exxx \u003cspan class=\"se\"\u003e\\\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e--admin-lastname\u003cspan class=\"o\"\u003e=\u003c/span\u003eyyy \u003cspan class=\"se\"\u003e\\\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e--admin-email\u003cspan class=\"o\"\u003e=\u003c/span\u003eadmin@domain.com \u003cspan class=\"se\"\u003e\\\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e--admin-user\u003cspan class=\"o\"\u003e=\u003c/span\u003eadmin \u003cspan class=\"se\"\u003e\\\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e--admin-password\u003cspan class=\"o\"\u003e=\u003c/span\u003eWwKhxxxxxxEK \u003cspan class=\"se\"\u003e\\\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e--language\u003cspan class=\"o\"\u003e=\u003c/span\u003een_US \u003cspan class=\"se\"\u003e\\\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e--currency\u003cspan class=\"o\"\u003e=\u003c/span\u003eUSD \u003cspan class=\"se\"\u003e\\\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e--timezone\u003cspan class=\"o\"\u003e=\u003c/span\u003eAmerica/Chicago \u003cspan class=\"se\"\u003e\\\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e--use-rewrites\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"m\"\u003e1\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eYOu will see \u003ccode\u003eMagento Admin URI: /admin_10lf7y\u003c/code\u003e after successful run\u003c/p\u003e","title":"Installing a testing instance for Magento CLI only"},{"content":"Reference:https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/\nRequirements: apache2-utils or httpd-tools\nUse htpasswd utility and create a .htpasswd file, see reference\\\nhtpasswd -c /etc/nginx/.htpasswd usernamethatyouwant chmod 644 /etc/nginx/.htpasswd After that, just add lines in nginx conf\n1 2 3 4 5 6 7 8 9 10 location / { auth_basic \u0026#34;Backend Area\u0026#34;; auth_basic_user_file /etc/nginx/.htpasswd; ## path to your passwd file ## ... ## xyz code ##... proxy_pass http://127.0.0.1:4000; ## Proxy port for your app proxy_set_header Authorization \u0026#34;\u0026#34;; ## DONT FORGET THIS. reset the auth header include proxy.inc; } Restart nginx now or test first using “nginx -t”\n","permalink":"https://tutes.in/basic-authentication-with-nginx-with-proxy-port-react-node-app-etc/","summary":"\u003cp\u003eReference:\u003ca href=\"https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/\"\u003ehttps://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eRequirements: \u003ccode\u003eapache2-utils\u003c/code\u003e or \u003ccode\u003ehttpd-tools\u003c/code\u003e\u003c/p\u003e\n\u003cp\u003eUse htpasswd utility and create a .htpasswd file, see reference\\\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ehtpasswd -c  /etc/nginx/.htpasswd usernamethatyouwant\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003echmod 644 /etc/nginx/.htpasswd\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eAfter that, just add lines in nginx conf\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cdiv class=\"chroma\"\u003e\n\u003ctable class=\"lntable\"\u003e\u003ctr\u003e\u003ctd class=\"lntd\"\u003e\n\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode\u003e\u003cspan class=\"lnt\"\u003e 1\n\u003c/span\u003e\u003cspan class=\"hl\"\u003e\u003cspan class=\"lnt\"\u003e 2\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"hl\"\u003e\u003cspan class=\"lnt\"\u003e 3\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"lnt\"\u003e 4\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e 5\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e 6\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e 7\n\u003c/span\u003e\u003cspan class=\"hl\"\u003e\u003cspan class=\"lnt\"\u003e 8\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"lnt\"\u003e 9\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e10\n\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/td\u003e\n\u003ctd class=\"lntd\"\u003e\n\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003elocation / \u003cspan class=\"o\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line hl\"\u003e\u003cspan class=\"cl\"\u003e\tauth_basic \u003cspan class=\"s2\"\u003e\u0026#34;Backend Area\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line hl\"\u003e\u003cspan class=\"cl\"\u003e    auth_basic_user_file /etc/nginx/.htpasswd\u003cspan class=\"p\"\u003e;\u003c/span\u003e \u003cspan class=\"c1\"\u003e## path to your passwd file\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"c1\"\u003e## ...\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"c1\"\u003e## xyz code\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"c1\"\u003e##... \u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\tproxy_pass http://127.0.0.1:4000\u003cspan class=\"p\"\u003e;\u003c/span\u003e \u003cspan class=\"c1\"\u003e## Proxy port for your app\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line hl\"\u003e\u003cspan class=\"cl\"\u003e\tproxy_set_header Authorization \u003cspan class=\"s2\"\u003e\u0026#34;\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e \u003cspan class=\"c1\"\u003e## DONT FORGET THIS. reset the auth header\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\tinclude proxy.inc\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\u003c/div\u003e\n\u003c/div\u003e\u003cp\u003eRestart nginx now or test first using “nginx -t”\u003c/p\u003e","title":"Basic Authentication with Nginx with proxy port (react/node app etc)"},{"content":"SELECT * from wp_usermeta where `meta_key` like \u0026#39;edit_%_per_page\u0026#39; So probably you chose “Number of items per page” as 1000 or 200 and now the page doesnt load anymore because your database ran out of memory.\nIf that is the case, run the above query on phpmysql or any other way, edit the numbers and fixed!\n","permalink":"https://tutes.in/fixing-broken-screen-options-in-wordpress-site/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eSELECT * from wp_usermeta where `meta_key` like \u0026#39;edit_%_per_page\u0026#39;\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eSo probably you chose “Number of items per page” as 1000 or 200 and now the page doesnt load anymore because your database ran out of memory.\u003c/p\u003e\n\u003cp\u003eIf that is the case, run the above query on phpmysql or any other way, edit the numbers and fixed!\u003c/p\u003e","title":"Fixing broken “screen options” in wordpress site"},{"content":"$allowed_domains = [\u0026#34;https://www.YOURDOMAIN.com\u0026#34;,\u0026#34;https://YOURDOMAIN.com\u0026#34;,\u0026#34;https://staging.YOURDOMAIN.com\u0026#34;,\u0026#34;https://www.YOURDOMAIN.com/\u0026#34;,\u0026#34;https://YOURDOMAIN.com/\u0026#34;,\u0026#34;https://staging.YOURDOMAIN.com/\u0026#34;]; // echo $_SERVER[\u0026#39;HTTP_ORIGIN\u0026#39;]; if (in_array($_SERVER[\u0026#39;HTTP_ORIGIN\u0026#39;], $allowed_domains)) { header(\u0026#39;Access-Control-Allow-Origin: \u0026#39; . $_SERVER[\u0026#39;HTTP_ORIGIN\u0026#39;]); } else{ if(in_array($_SERVER[\u0026#39;HTTP_REFERER\u0026#39;], $allowed_domains)){ header(\u0026#39;Access-Control-Allow-Origin: \u0026#39; . $_SERVER[\u0026#39;HTTP_REFERER\u0026#39;]); } } ","permalink":"https://tutes.in/how-to-limit-ajax-apis-for-your-origins-access-control-allow-origin-headers/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$allowed_domains\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;https://www.YOURDOMAIN.com\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;https://YOURDOMAIN.com\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;https://staging.YOURDOMAIN.com\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;https://www.YOURDOMAIN.com/\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;https://YOURDOMAIN.com/\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;https://staging.YOURDOMAIN.com/\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e// echo $_SERVER[\u0026#39;HTTP_ORIGIN\u0026#39;];\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003ein_array\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$_SERVER\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;HTTP_ORIGIN\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e],\u003c/span\u003e \u003cspan class=\"nv\"\u003e$allowed_domains\u003c/span\u003e\u003cspan class=\"p\"\u003e))\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nx\"\u003eheader\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;Access-Control-Allow-Origin: \u0026#39;\u003c/span\u003e \u003cspan class=\"o\"\u003e.\u003c/span\u003e \u003cspan class=\"nv\"\u003e$_SERVER\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;HTTP_ORIGIN\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e]);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eelse\u003c/span\u003e\u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003ein_array\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$_SERVER\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;HTTP_REFERER\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e],\u003c/span\u003e \u003cspan class=\"nv\"\u003e$allowed_domains\u003c/span\u003e\u003cspan class=\"p\"\u003e)){\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nx\"\u003eheader\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;Access-Control-Allow-Origin: \u0026#39;\u003c/span\u003e \u003cspan class=\"o\"\u003e.\u003c/span\u003e \u003cspan class=\"nv\"\u003e$_SERVER\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;HTTP_REFERER\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e]);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"How to limit ajax apis for your origins (Access-Control-Allow-Origin headers)"},{"content":" ","permalink":"https://tutes.in/proxying-websockets-via-nginx-and-https/","summary":"\u003cscript src=\"https://gist.github.com/harshvardhanmalpani/23e8ea48900c9cd131b594ebc300e0eb.js\"\u003e\u003c/script\u003e","title":"proxying websockets via nginx and https"},{"content":"SetEnvIf Authorization \u0026#34;(.*)\u0026#34; HTTP_AUTHORIZATION=$1 # RewriteEngine On # RewriteCond %{HTTP:Authorization} ^(Bearer\\ )(.*)$ [NC] # RewriteRule ^(.*) $1?access_token=%2 [QSA] #Header set Access-Control-Allow-Origin \u0026#34;*\u0026#34; #Header set Access-Control-Allow-Methods \u0026#34;GET,PUT,POST,DELETE\u0026#34; #Header set Access-Control-Allow-Headers \u0026#34;Content-Type, Authorization\u0026#34; \u0026lt;IfModule mod_rewrite.c\u0026gt; \u0026lt;IfModule mod_negotiation.c\u0026gt; Options -MultiViews \u0026lt;/IfModule\u0026gt; RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://kprep.api.ozandac.com/$1 [R,L] RewriteEngine On # Prevent direct access to the \u0026#34;public\u0026#34; folder - redirect to root RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\\ /public/ RewriteRule ^public/(.*) /$1 [R=302,L] # Redirect Trailing Slashes If Not A Folder... # - but look for the file in the \u0026#34;public\u0026#34; folder # (ensure we are not already in the \u0026#34;public\u0026#34; folder) RewriteCond %{REQUEST_URI} !^/public/ RewriteCond %{DOCUMENT_ROOT}/public/$1 !-d RewriteRule ^(.*)/$ /$1 [R=302,L] # Rewrite \u0026#34;everything\u0026#34; to the \u0026#34;public\u0026#34; subdirectory if not already # This ignores existing files/dirs in the document root RewriteCond %{REQUEST_URI} ^/(.*) RewriteRule !^public/ public/%1 # Handle Front Controller... (as before) RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] \u0026lt;/IfModule\u0026gt; ","permalink":"https://tutes.in/sample-htaccess-for-laravel-with-php-fpm/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-perl\" data-lang=\"perl\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"n\"\u003eSetEnvIf\u003c/span\u003e \u003cspan class=\"n\"\u003eAuthorization\u003c/span\u003e \u003cspan class=\"s\"\u003e\u0026#34;(.*)\u0026#34;\u003c/span\u003e \u003cspan class=\"n\"\u003eHTTP_AUTHORIZATION\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nv\"\u003e$1\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e#    RewriteEngine On\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e#    RewriteCond %{HTTP:Authorization} ^(Bearer\\ )(.*)$ [NC]\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e#    RewriteRule ^(.*) $1?access_token=%2 [QSA]\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e#Header set Access-Control-Allow-Origin \u0026#34;*\u0026#34;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e#Header set Access-Control-Allow-Methods \u0026#34;GET,PUT,POST,DELETE\u0026#34;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e#Header set Access-Control-Allow-Headers \u0026#34;Content-Type, Authorization\u0026#34;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"n\"\u003eIfModule\u003c/span\u003e \u003cspan class=\"n\"\u003emod_rewrite\u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003ec\u003c/span\u003e\u003cspan class=\"o\"\u003e\u0026gt;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"n\"\u003eIfModule\u003c/span\u003e \u003cspan class=\"n\"\u003emod_negotiation\u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003ec\u003c/span\u003e\u003cspan class=\"o\"\u003e\u0026gt;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"n\"\u003eOptions\u003c/span\u003e \u003cspan class=\"o\"\u003e-\u003c/span\u003e\u003cspan class=\"n\"\u003eMultiViews\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sr\"\u003e\u0026lt;/IfModule\u0026gt;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"n\"\u003eRewriteEngine\u003c/span\u003e \u003cspan class=\"n\"\u003eOn\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"n\"\u003eRewriteCond\u003c/span\u003e \u003cspan class=\"nv\"\u003e%\u003c/span\u003e\u003cspan class=\"p\"\u003e{\u003c/span\u003e\u003cspan class=\"n\"\u003eSERVER_PORT\u003c/span\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e \u003cspan class=\"mi\"\u003e80\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"n\"\u003eRewriteRule\u003c/span\u003e \u003cspan class=\"o\"\u003e^\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"o\"\u003e.*\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"nv\"\u003e$\u003c/span\u003e \u003cspan class=\"nv\"\u003ehttps:\u003c/span\u003e\u003cspan class=\"sr\"\u003e//\u003c/span\u003e\u003cspan class=\"n\"\u003ekprep\u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003eapi\u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003eozandac\u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003ecom\u003c/span\u003e\u003cspan class=\"o\"\u003e/\u003c/span\u003e\u003cspan class=\"nv\"\u003e$1\u003c/span\u003e \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"n\"\u003eR\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"n\"\u003eL\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"n\"\u003eRewriteEngine\u003c/span\u003e \u003cspan class=\"n\"\u003eOn\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e# Prevent direct access to the \u0026#34;public\u0026#34; folder - redirect to root\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"n\"\u003eRewriteCond\u003c/span\u003e \u003cspan class=\"nv\"\u003e%\u003c/span\u003e\u003cspan class=\"p\"\u003e{\u003c/span\u003e\u003cspan class=\"n\"\u003eTHE_REQUEST\u003c/span\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e \u003cspan class=\"o\"\u003e^\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"n\"\u003eA\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u003c/span\u003e\u003cspan class=\"n\"\u003eZ\u003c/span\u003e\u003cspan class=\"p\"\u003e]{\u003c/span\u003e\u003cspan class=\"mi\"\u003e3\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e9\u003c/span\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\u003cspan class=\"o\"\u003e\\\u003c/span\u003e \u003cspan class=\"sr\"\u003e/public/\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"n\"\u003eRewriteRule\u003c/span\u003e \u003cspan class=\"o\"\u003e^\u003c/span\u003e\u003cspan class=\"n\"\u003epublic\u003c/span\u003e\u003cspan class=\"sr\"\u003e/(.*) /\u003c/span\u003e\u003cspan class=\"nv\"\u003e$1\u003c/span\u003e \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"n\"\u003eR\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"mi\"\u003e302\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"n\"\u003eL\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e# Redirect Trailing Slashes If Not A Folder...\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e# - but look for the file in the \u0026#34;public\u0026#34; folder\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e# (ensure we are not already in the \u0026#34;public\u0026#34; folder)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"n\"\u003eRewriteCond\u003c/span\u003e \u003cspan class=\"nv\"\u003e%\u003c/span\u003e\u003cspan class=\"p\"\u003e{\u003c/span\u003e\u003cspan class=\"n\"\u003eREQUEST_URI\u003c/span\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e \u003cspan class=\"o\"\u003e!^\u003c/span\u003e\u003cspan class=\"sr\"\u003e/public/\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"n\"\u003eRewriteCond\u003c/span\u003e \u003cspan class=\"nv\"\u003e%\u003c/span\u003e\u003cspan class=\"p\"\u003e{\u003c/span\u003e\u003cspan class=\"n\"\u003eDOCUMENT_ROOT\u003c/span\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\u003cspan class=\"sr\"\u003e/public/\u003c/span\u003e\u003cspan class=\"nv\"\u003e$1\u003c/span\u003e \u003cspan class=\"o\"\u003e!-\u003c/span\u003e\u003cspan class=\"n\"\u003ed\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"n\"\u003eRewriteRule\u003c/span\u003e \u003cspan class=\"o\"\u003e^\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"o\"\u003e.*\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"sr\"\u003e/$ /\u003c/span\u003e\u003cspan class=\"nv\"\u003e$1\u003c/span\u003e \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"n\"\u003eR\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"mi\"\u003e302\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"n\"\u003eL\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e# Rewrite \u0026#34;everything\u0026#34; to the \u0026#34;public\u0026#34; subdirectory if not already\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e# This ignores existing files/dirs in the document root\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"n\"\u003eRewriteCond\u003c/span\u003e \u003cspan class=\"nv\"\u003e%\u003c/span\u003e\u003cspan class=\"p\"\u003e{\u003c/span\u003e\u003cspan class=\"n\"\u003eREQUEST_URI\u003c/span\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e \u003cspan class=\"o\"\u003e^/\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"o\"\u003e.*\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"n\"\u003eRewriteRule\u003c/span\u003e \u003cspan class=\"o\"\u003e!^\u003c/span\u003e\u003cspan class=\"n\"\u003epublic\u003c/span\u003e\u003cspan class=\"sr\"\u003e/ public/\u003c/span\u003e\u003cspan class=\"nv\"\u003e%1\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e# Handle Front Controller... (as before)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"n\"\u003eRewriteCond\u003c/span\u003e \u003cspan class=\"nv\"\u003e%\u003c/span\u003e\u003cspan class=\"p\"\u003e{\u003c/span\u003e\u003cspan class=\"n\"\u003eREQUEST_FILENAME\u003c/span\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e \u003cspan class=\"o\"\u003e!-\u003c/span\u003e\u003cspan class=\"n\"\u003ed\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"n\"\u003eRewriteCond\u003c/span\u003e \u003cspan class=\"nv\"\u003e%\u003c/span\u003e\u003cspan class=\"p\"\u003e{\u003c/span\u003e\u003cspan class=\"n\"\u003eREQUEST_FILENAME\u003c/span\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e \u003cspan class=\"o\"\u003e!-\u003c/span\u003e\u003cspan class=\"n\"\u003ef\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"n\"\u003eRewriteRule\u003c/span\u003e \u003cspan class=\"o\"\u003e^\u003c/span\u003e \u003cspan class=\"nb\"\u003eindex\u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003ephp\u003c/span\u003e \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"n\"\u003eL\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sr\"\u003e\u0026lt;/IfModule\u0026gt;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Sample .htaccess for Laravel with PHP FPM"},{"content":" 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 public function context() { // rule targets specific user, if this user is different we don\u0026#39;t need to test the rule if ( $this-\u0026gt;user_id != \u0026#39;all\u0026#39; ) { if ( $this-\u0026gt;user_id != get_current_user_id() ) { return false; } } if($this-\u0026gt;user_id == \u0026#34;all\u0026#34;) { if(get_current_user_id()===0) { return false; } } return true; } File: gp-limit-submissions/includes/GPLS_Rule_User.php\nPlugin: https://gravitywiz.com/documentation/gravity-forms-limit-submissions\n","permalink":"https://tutes.in/gravityforms-limit-submission-once-for-user-unlimited-for-guest/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cdiv class=\"chroma\"\u003e\n\u003ctable class=\"lntable\"\u003e\u003ctr\u003e\u003ctd class=\"lntd\"\u003e\n\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode\u003e\u003cspan class=\"lnt\"\u003e 1\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e 2\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e 3\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e 4\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e 5\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e 6\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e 7\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e 8\n\u003c/span\u003e\u003cspan class=\"hl\"\u003e\u003cspan class=\"lnt\"\u003e 9\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"hl\"\u003e\u003cspan class=\"lnt\"\u003e10\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"hl\"\u003e\u003cspan class=\"lnt\"\u003e11\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"hl\"\u003e\u003cspan class=\"lnt\"\u003e12\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"hl\"\u003e\u003cspan class=\"lnt\"\u003e13\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"hl\"\u003e\u003cspan class=\"lnt\"\u003e14\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"hl\"\u003e\u003cspan class=\"lnt\"\u003e15\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"lnt\"\u003e16\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e17\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e18\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e19\n\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/td\u003e\n\u003ctd class=\"lntd\"\u003e\n\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"k\"\u003epublic\u003c/span\u003e \u003cspan class=\"k\"\u003efunction\u003c/span\u003e \u003cspan class=\"nf\"\u003econtext\u003c/span\u003e\u003cspan class=\"p\"\u003e()\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\u003cspan class=\"c1\"\u003e// rule targets specific user, if this user is different we don\u0026#39;t need to test the rule\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e \u003cspan class=\"nv\"\u003e$this\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003euser_id\u003c/span\u003e \u003cspan class=\"o\"\u003e!=\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;all\u0026#39;\u003c/span\u003e \u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\t\u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e \u003cspan class=\"nv\"\u003e$this\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003euser_id\u003c/span\u003e \u003cspan class=\"o\"\u003e!=\u003c/span\u003e \u003cspan class=\"nx\"\u003eget_current_user_id\u003c/span\u003e\u003cspan class=\"p\"\u003e()\u003c/span\u003e \u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\t\t\u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"k\"\u003efalse\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\t\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\t\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line hl\"\u003e\u003cspan class=\"cl\"\u003e\t\t\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line hl\"\u003e\u003cspan class=\"cl\"\u003e\t\t\u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$this\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003euser_id\u003c/span\u003e \u003cspan class=\"o\"\u003e==\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;all\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line hl\"\u003e\u003cspan class=\"cl\"\u003e\t\t\u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line hl\"\u003e\u003cspan class=\"cl\"\u003e\t\t    \u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eget_current_user_id\u003c/span\u003e\u003cspan class=\"p\"\u003e()\u003c/span\u003e\u003cspan class=\"o\"\u003e===\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line hl\"\u003e\u003cspan class=\"cl\"\u003e\t\t\t\u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line hl\"\u003e\u003cspan class=\"cl\"\u003e\t\t\t    \u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"k\"\u003efalse\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line hl\"\u003e\u003cspan class=\"cl\"\u003e\t\t\t\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"k\"\u003etrue\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\u003c/div\u003e\n\u003c/div\u003e\u003cp\u003eFile: gp-limit-submissions/includes/GPLS_Rule_User.php\u003c/p\u003e","title":"Gravityforms limit submission – once for user, unlimited for guest"},{"content":"Change \u0026amp;\u0026amp; to \u0026amp;\u0026amp;\nadd_filter(\u0026#39;woocommerce_add_to_cart_redirect\u0026#39;, \u0026#39;malpani_redirect_checkout_add_cart\u0026#39;); function malpani_redirect_checkout_add_cart() { if (isset($_POST[\u0026#34;buynow\u0026#34;]) \u0026amp;\u0026amp; $_POST[\u0026#34;buynow\u0026#34;] === \u0026#34;2\u0026#34;) { return wc_get_checkout_url(); } } add_filter(\u0026#39;woocommerce_after_add_to_cart_button\u0026#39;, \u0026#39;malpani_add_buy_button\u0026#39;); function malpani_add_buy_button() { echo \u0026#39;\u0026lt;input id=\u0026#34;buynowinput\u0026#34; name=\u0026#34;buynow\u0026#34; value=\u0026#34;1\u0026#34; hidden\u0026gt; \u0026lt;button type=\u0026#34;button\u0026#34; id=\u0026#34;buy_now\u0026#34; class=\u0026#34;buy_now button\u0026#34;\u0026gt;Buy Now\u0026lt;/button\u0026gt; \u0026lt;script\u0026gt; jQuery(document).ready(function ($) { $(\u0026#34;#buy_now\u0026#34;).click(function (e) { $(\u0026#34;#buynowinput\u0026#34;).val(2); $(\u0026#34;.single_add_to_cart_button\u0026#34;).click(); e.stopPropagation(); e.preventDefault(); }) }); \u0026lt;/script\u0026gt;\u0026#39;; ","permalink":"https://tutes.in/how-to-add-buy-now-button-on-product-page-wordpress-woocommerce/","summary":"\u003cp\u003e\u003cstrong\u003eChange \u0026amp;\u0026amp; to \u0026amp;\u0026amp;\u003c/strong\u003e\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eadd_filter\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;woocommerce_add_to_cart_redirect\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;malpani_redirect_checkout_add_cart\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003efunction\u003c/span\u003e \u003cspan class=\"nf\"\u003emalpani_redirect_checkout_add_cart\u003c/span\u003e\u003cspan class=\"p\"\u003e()\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eisset\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$_POST\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;buynow\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e])\u003c/span\u003e \u003cspan class=\"o\"\u003e\u0026amp;\u0026amp;\u003c/span\u003e \u003cspan class=\"nv\"\u003e$_POST\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;buynow\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e===\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;2\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e                \u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"nx\"\u003ewc_get_checkout_url\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nx\"\u003eadd_filter\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;woocommerce_after_add_to_cart_button\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;malpani_add_buy_button\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003efunction\u003c/span\u003e \u003cspan class=\"nf\"\u003emalpani_add_buy_button\u003c/span\u003e\u003cspan class=\"p\"\u003e()\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003eecho\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;\u0026lt;input id=\u0026#34;buynowinput\u0026#34; name=\u0026#34;buynow\u0026#34; value=\u0026#34;1\u0026#34; hidden\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"s1\"\u003e            \u0026lt;button type=\u0026#34;button\u0026#34; id=\u0026#34;buy_now\u0026#34; class=\u0026#34;buy_now button\u0026#34;\u0026gt;Buy Now\u0026lt;/button\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"s1\"\u003e            \u0026lt;script\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"s1\"\u003e                jQuery(document).ready(function ($) {\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"s1\"\u003e                    $(\u0026#34;#buy_now\u0026#34;).click(function (e) {\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"s1\"\u003e                        $(\u0026#34;#buynowinput\u0026#34;).val(2);\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"s1\"\u003e                        $(\u0026#34;.single_add_to_cart_button\u0026#34;).click();\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"s1\"\u003e                        e.stopPropagation();\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"s1\"\u003e                        e.preventDefault();\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"s1\"\u003e                    })\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"s1\"\u003e                });\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"s1\"\u003e            \u0026lt;/script\u0026gt;\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"How to add Buy Now button on Product page – WordPress/woocommerce?"},{"content":"function harsh_get_value_by_label( $form, $entry, $label ) { foreach ( $form[\u0026#39;fields\u0026#39;] as $field ) { $lead_key = $field-\u0026gt;label; if ( strtolower( $lead_key ) == strtolower( $label ) ) { return $entry[ $field-\u0026gt;id ]; } if($field-\u0026gt;inputs != null and count($field-\u0026gt;inputs)) { foreach($field-\u0026gt;inputs as $children) { $subLeadKey = $children[\u0026#34;label\u0026#34;]; if ( strtolower( $subLeadKey ) == strtolower( $label ) ) { return $entry[ $children[\u0026#34;id\u0026#34;] ]; } } } } return false; } ","permalink":"https://tutes.in/how-to-get-gravity-forms-entry-value-by-label/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003efunction\u003c/span\u003e \u003cspan class=\"nf\"\u003eharsh_get_value_by_label\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e \u003cspan class=\"nv\"\u003e$form\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nv\"\u003e$entry\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nv\"\u003e$label\u003c/span\u003e \u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"k\"\u003eforeach\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e \u003cspan class=\"nv\"\u003e$form\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;fields\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"k\"\u003eas\u003c/span\u003e \u003cspan class=\"nv\"\u003e$field\u003c/span\u003e \u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\u003cspan class=\"nv\"\u003e$lead_key\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$field\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003elabel\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e \u003cspan class=\"nx\"\u003estrtolower\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e \u003cspan class=\"nv\"\u003e$lead_key\u003c/span\u003e \u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"o\"\u003e==\u003c/span\u003e \u003cspan class=\"nx\"\u003estrtolower\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e \u003cspan class=\"nv\"\u003e$label\u003c/span\u003e \u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\t\u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"nv\"\u003e$entry\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e \u003cspan class=\"nv\"\u003e$field\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003eid\u003c/span\u003e \u003cspan class=\"p\"\u003e];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$field\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003einputs\u003c/span\u003e \u003cspan class=\"o\"\u003e!=\u003c/span\u003e \u003cspan class=\"k\"\u003enull\u003c/span\u003e \u003cspan class=\"k\"\u003eand\u003c/span\u003e \u003cspan class=\"nx\"\u003ecount\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$field\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003einputs\u003c/span\u003e\u003cspan class=\"p\"\u003e))\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\t\u003cspan class=\"k\"\u003eforeach\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$field\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003einputs\u003c/span\u003e \u003cspan class=\"k\"\u003eas\u003c/span\u003e \u003cspan class=\"nv\"\u003e$children\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\t\u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\t\t\u003cspan class=\"nv\"\u003e$subLeadKey\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$children\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;label\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\t\t\u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e \u003cspan class=\"nx\"\u003estrtolower\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e \u003cspan class=\"nv\"\u003e$subLeadKey\u003c/span\u003e \u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"o\"\u003e==\u003c/span\u003e \u003cspan class=\"nx\"\u003estrtolower\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e \u003cspan class=\"nv\"\u003e$label\u003c/span\u003e \u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e)\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\t\t\u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\t\t\t\u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"nv\"\u003e$entry\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e \u003cspan class=\"nv\"\u003e$children\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;id\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"p\"\u003e];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\t\t\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\t\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"k\"\u003efalse\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"How to get Gravity forms entry value by label?"},{"content":"\u0026lt;?php //// FOR LEGACY API ONLY add_filter(\u0026#39;woocommerce_api_order_response\u0026#39;, \u0026#39;harsh_add_shipping_phone_legacy\u0026#39;, 99, 1); function harsh_add_shipping_phone($order_data) { $order_data[\u0026#34;billing_address\u0026#34;][\u0026#34;email\u0026#34;] = \u0026#34;XXXX\u0026#34;; $shipping_phone = get_post_meta($order_data[\u0026#34;id\u0026#34;],\u0026#34;_shipping_phone\u0026#34;,1); if($shipping_phone!==false \u0026amp;\u0026amp; strlen($shipping_phone)) { $order_data[\u0026#34;billing_address\u0026#34;][\u0026#34;biller_phone\u0026#34;] = $order_data[\u0026#34;billing_address\u0026#34;][\u0026#34;phone\u0026#34;]; $order_data[\u0026#34;shipping_address\u0026#34;][\u0026#34;phone\u0026#34;] = $shipping_phone; $order_data[\u0026#34;billing_address\u0026#34;][\u0026#34;phone\u0026#34;] = $shipping_phone; } foreach($order_data[\u0026#34;line_items\u0026#34;] as $k=\u0026gt;$v) { unset($order_data[\u0026#34;line_items\u0026#34;][$k][\u0026#34;meta\u0026#34;]); } return $order_data; } //// FOR latest api function wc_add_rest_order_meta( $response, $post, $request ) { $order_data = $response-\u0026gt;get_data(); $order_data[\u0026#34;billing\u0026#34;][\u0026#34;email\u0026#34;] = \u0026#34;XXXX\u0026#34;; $sp = array_search(\u0026#39;_shipping_phone\u0026#39;, array_column($order_data[\u0026#34;meta_data\u0026#34;], \u0026#39;key\u0026#39;)); if($sp!==false) { $order_data[\u0026#34;billing\u0026#34;][\u0026#34;biller_phone\u0026#34;] = $order_data[\u0026#34;billing\u0026#34;][\u0026#34;phone\u0026#34;]; if(strlen($order_data[\u0026#34;meta_data\u0026#34;][$sp]-\u0026gt;value)) { $order_data[\u0026#34;shipping\u0026#34;][\u0026#34;phone\u0026#34;] = $order_data[\u0026#34;meta_data\u0026#34;][$sp]-\u0026gt;value; $order_data[\u0026#34;billing\u0026#34;][\u0026#34;phone\u0026#34;] = $order_data[\u0026#34;meta_data\u0026#34;][$sp]-\u0026gt;value; } } foreach($order_data[\u0026#34;line_items\u0026#34;] as $k=\u0026gt;$v) { unset($order_data[\u0026#34;line_items\u0026#34;][$k][\u0026#34;meta_data\u0026#34;]); } $response-\u0026gt;data = $order_data; return $response;\t} function wc_add_rest_order_meta2( $response, $post, $request ) { foreach($response as $oneorder) { $order_data = $oneorder-\u0026gt;get_data(); $order_data[\u0026#34;billing\u0026#34;][\u0026#34;email\u0026#34;] = \u0026#34;XXXX\u0026#34;; $sp = array_search(\u0026#39;_shipping_phone\u0026#39;, array_column($order_data[\u0026#34;meta_data\u0026#34;], \u0026#39;key\u0026#39;)); if($sp!==false) { $order_data[\u0026#34;billing\u0026#34;][\u0026#34;biller_phone\u0026#34;] = $order_data[\u0026#34;billing\u0026#34;][\u0026#34;phone\u0026#34;]; if(strlen($order_data[\u0026#34;meta_data\u0026#34;][$sp]-\u0026gt;value)) { $order_data[\u0026#34;shipping\u0026#34;][\u0026#34;phone\u0026#34;] = $order_data[\u0026#34;meta_data\u0026#34;][$sp]-\u0026gt;value; $order_data[\u0026#34;billing\u0026#34;][\u0026#34;phone\u0026#34;] = $order_data[\u0026#34;meta_data\u0026#34;][$sp]-\u0026gt;value; } } foreach($order_data[\u0026#34;line_items\u0026#34;] as $k=\u0026gt;$v) { unset($order_data[\u0026#34;line_items\u0026#34;][$k][\u0026#34;meta_data\u0026#34;]); } $oneorder-\u0026gt;data = $order_data; } return $response;\t} add_filter( \u0026#39;woocommerce_rest_prepare_shop_order_object\u0026#39;, \u0026#39;wc_add_rest_order_meta\u0026#39;, 10, 3 ); add_filter( \u0026#39;woocommerce_rest_prepare_shop_orders_object\u0026#39;, \u0026#39;wc_add_rest_order_meta2\u0026#39;, 10, 3 ); ","permalink":"https://tutes.in/how-to-edit-wordpress-woocommerce-order-api-responses-legacy-latest/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e\u0026lt;?\u003c/span\u003e\u003cspan class=\"nx\"\u003ephp\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e//// FOR LEGACY API ONLY\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eadd_filter\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;woocommerce_api_order_response\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;harsh_add_shipping_phone_legacy\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"mi\"\u003e99\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003efunction\u003c/span\u003e \u003cspan class=\"nf\"\u003eharsh_add_shipping_phone\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;billing_address\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;email\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;XXXX\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"nv\"\u003e$shipping_phone\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003eget_post_meta\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;id\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e],\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;_shipping_phone\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$shipping_phone\u003c/span\u003e\u003cspan class=\"o\"\u003e!==\u003c/span\u003e\u003cspan class=\"k\"\u003efalse\u003c/span\u003e \u003cspan class=\"o\"\u003e\u0026amp;\u0026amp;\u003c/span\u003e \u003cspan class=\"nx\"\u003estrlen\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$shipping_phone\u003c/span\u003e\u003cspan class=\"p\"\u003e))\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;billing_address\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;biller_phone\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;billing_address\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;phone\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;shipping_address\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;phone\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$shipping_phone\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;billing_address\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;phone\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$shipping_phone\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"k\"\u003eforeach\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;line_items\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"k\"\u003eas\u003c/span\u003e \u003cspan class=\"nv\"\u003e$k\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e\u003cspan class=\"nv\"\u003e$v\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\u003cspan class=\"nx\"\u003eunset\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;line_items\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"nv\"\u003e$k\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;meta\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e]);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e//// FOR latest api\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003efunction\u003c/span\u003e \u003cspan class=\"nf\"\u003ewc_add_rest_order_meta\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e \u003cspan class=\"nv\"\u003e$response\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nv\"\u003e$post\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nv\"\u003e$request\u003c/span\u003e \u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$response\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003eget_data\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;billing\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;email\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;XXXX\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e   \u003cspan class=\"nv\"\u003e$sp\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003earray_search\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;_shipping_phone\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nx\"\u003earray_column\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;meta_data\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e],\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;key\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e));\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e   \u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$sp\u003c/span\u003e\u003cspan class=\"o\"\u003e!==\u003c/span\u003e\u003cspan class=\"k\"\u003efalse\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e   \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e     \u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;billing\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;biller_phone\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;billing\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;phone\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e     \u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003estrlen\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;meta_data\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"nv\"\u003e$sp\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003evalue\u003c/span\u003e\u003cspan class=\"p\"\u003e))\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e     \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e     \u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;shipping\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;phone\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;meta_data\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"nv\"\u003e$sp\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003evalue\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e     \u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;billing\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;phone\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;meta_data\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"nv\"\u003e$sp\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003evalue\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e     \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e   \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"k\"\u003eforeach\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;line_items\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"k\"\u003eas\u003c/span\u003e \u003cspan class=\"nv\"\u003e$k\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e\u003cspan class=\"nv\"\u003e$v\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\u003cspan class=\"nx\"\u003eunset\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;line_items\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"nv\"\u003e$k\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;meta_data\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e]);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"nv\"\u003e$response\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003edata\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"nv\"\u003e$response\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\t\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003efunction\u003c/span\u003e \u003cspan class=\"nf\"\u003ewc_add_rest_order_meta2\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e \u003cspan class=\"nv\"\u003e$response\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nv\"\u003e$post\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nv\"\u003e$request\u003c/span\u003e \u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eforeach\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$response\u003c/span\u003e \u003cspan class=\"k\"\u003eas\u003c/span\u003e \u003cspan class=\"nv\"\u003e$oneorder\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$oneorder\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003eget_data\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;billing\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;email\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;XXXX\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e   \u003cspan class=\"nv\"\u003e$sp\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003earray_search\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;_shipping_phone\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nx\"\u003earray_column\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;meta_data\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e],\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;key\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e));\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e   \u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$sp\u003c/span\u003e\u003cspan class=\"o\"\u003e!==\u003c/span\u003e\u003cspan class=\"k\"\u003efalse\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e   \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e     \u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;billing\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;biller_phone\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;billing\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;phone\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e     \u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003estrlen\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;meta_data\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"nv\"\u003e$sp\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003evalue\u003c/span\u003e\u003cspan class=\"p\"\u003e))\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e     \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e     \u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;shipping\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;phone\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;meta_data\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"nv\"\u003e$sp\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003evalue\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e     \u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;billing\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;phone\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;meta_data\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"nv\"\u003e$sp\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003evalue\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e     \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e   \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"k\"\u003eforeach\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;line_items\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"k\"\u003eas\u003c/span\u003e \u003cspan class=\"nv\"\u003e$k\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e\u003cspan class=\"nv\"\u003e$v\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\u003cspan class=\"nx\"\u003eunset\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;line_items\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"nv\"\u003e$k\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;meta_data\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e]);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"nv\"\u003e$oneorder\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003edata\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$order_data\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"nv\"\u003e$response\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\t\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eadd_filter\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;woocommerce_rest_prepare_shop_order_object\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;wc_add_rest_order_meta\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"mi\"\u003e10\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"mi\"\u003e3\u003c/span\u003e \u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eadd_filter\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;woocommerce_rest_prepare_shop_orders_object\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;wc_add_rest_order_meta2\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"mi\"\u003e10\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"mi\"\u003e3\u003c/span\u003e \u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"How to edit wordpress woocommerce order api responses (legacy + latest)"},{"content":"\u0026lt;?php header(\u0026#34;Access-Control-Allow-Origin: *\u0026#34;); header(\u0026#39;Content-Type: application/json\u0026#39;); define( \u0026#39;SHORTINIT\u0026#39;, true ); require( \u0026#39;wp-load.php\u0026#39; ); if(isset($wpdb)) { $qr = \u0026#39;SELECT * FROM `\u0026#39;.$wpdb-\u0026gt;prefix . \u0026#39;posts` where `post_type`=\u0026#34;post\u0026#34; and `post_status`=\u0026#34;publish\u0026#34;\u0026#39;; $posts = $wpdb-\u0026gt;get_results( $qr); //$pr = implode(\u0026#34;,\u0026#34;,array_column($posts,\u0026#34;ID\u0026#34;)); $pr = json_encode(array_column($posts,\u0026#34;ID\u0026#34;)); echo $pr; } ","permalink":"https://tutes.in/standalone-script-to-print-all-published-post-ids-in-wordpress/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e\u0026lt;?\u003c/span\u003e\u003cspan class=\"nx\"\u003ephp\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eheader\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;Access-Control-Allow-Origin: *\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eheader\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;Content-Type: application/json\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003edefine\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;SHORTINIT\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"k\"\u003etrue\u003c/span\u003e \u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003erequire\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;wp-load.php\u0026#39;\u003c/span\u003e \u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eisset\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$wpdb\u003c/span\u003e\u003cspan class=\"p\"\u003e))\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$qr\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;SELECT * FROM `\u0026#39;\u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"nv\"\u003e$wpdb\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003eprefix\u003c/span\u003e \u003cspan class=\"o\"\u003e.\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;posts` where `post_type`=\u0026#34;post\u0026#34; and `post_status`=\u0026#34;publish\u0026#34;\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$posts\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$wpdb\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003eget_results\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e \u003cspan class=\"nv\"\u003e$qr\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e//$pr = implode(\u0026#34;,\u0026#34;,array_column($posts,\u0026#34;ID\u0026#34;));\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$pr\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003ejson_encode\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003earray_column\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$posts\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;ID\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e));\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eecho\u003c/span\u003e \u003cspan class=\"nv\"\u003e$pr\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Standalone script to print all published post IDs in WordPress"},{"content":"The following code checks various scenarios in which inbuilt functions like intval, floatval, is_numeric, is_float and filter_var would result for several different types of values. Feel free to run in your local, leave comments if I can make the results more interesting with some more functions.\nhttps://gist.github.com/harshvardhanmalpani/8dd0222e4821d0e495532abe9007fef1\nOutput / Results Test Value 1: (string)true Integer converted Value: 0 Float converted Value: 0 ❌ Invalid Integer as per is_numeric ❌ Invalid Float as per is_float ❌ Invalid Integer as per filter validate ❌ Invalid Float as per filter validate ---- Test Value 2: (boolean)1 Integer converted Value: 1 Float converted Value: 1 ❌ Invalid Integer as per is_numeric ❌ Invalid Float as per is_float ✅ Valid Integer as per filter validate ✅ Valid Float as per filter validate ---- Test Value 3: (boolean) Integer converted Value: 0 Float converted Value: 0 ❌ Invalid Integer as per is_numeric ❌ Invalid Float as per is_float ❌ Invalid Integer as per filter validate ❌ Invalid Float as per filter validate ---- Test Value 4: (string)false Integer converted Value: 0 Float converted Value: 0 ❌ Invalid Integer as per is_numeric ❌ Invalid Float as per is_float ❌ Invalid Integer as per filter validate ❌ Invalid Float as per filter validate ---- Test Value 5: (integer)0 Integer converted Value: 0 Float converted Value: 0 ✅ Valid Integer as per is_numeric ❌ Invalid Float as per is_float ✅ Valid Integer as per filter validate ❌ Invalid Float as per filter validate ---- Test Value 6: (double)-0 Integer converted Value: 0 Float converted Value: -0 ✅ Valid Integer as per is_numeric ✅ Valid Float as per is_float ✅ Valid Integer as per filter validate ❌ Invalid Float as per filter validate ---- Test Value 7: (integer)0 Integer converted Value: 0 Float converted Value: 0 ✅ Valid Integer as per is_numeric ❌ Invalid Float as per is_float ✅ Valid Integer as per filter validate ❌ Invalid Float as per filter validate ---- Test Value 8: (string)-0 Integer converted Value: 0 Float converted Value: -0 ✅ Valid Integer as per is_numeric ❌ Invalid Float as per is_float ✅ Valid Integer as per filter validate ❌ Invalid Float as per filter validate ---- Test Value 9: (string)+0 Integer converted Value: 0 Float converted Value: 0 ✅ Valid Integer as per is_numeric ❌ Invalid Float as per is_float ✅ Valid Integer as per filter validate ❌ Invalid Float as per filter validate ---- Test Value 10: (string)-0.0 Integer converted Value: 0 Float converted Value: -0 ✅ Valid Integer as per is_numeric ❌ Invalid Float as per is_float ❌ Invalid Integer as per filter validate ❌ Invalid Float as per filter validate ---- Test Value 11: (string)+0.0 Integer converted Value: 0 Float converted Value: 0 ✅ Valid Integer as per is_numeric ❌ Invalid Float as per is_float ❌ Invalid Integer as per filter validate ❌ Invalid Float as per filter validate ---- Test Value 12: (string)0 Integer converted Value: 0 Float converted Value: 0 ✅ Valid Integer as per is_numeric ❌ Invalid Float as per is_float ✅ Valid Integer as per filter validate ❌ Invalid Float as per filter validate ---- Test Value 13: (string)0w Integer converted Value: 0 Float converted Value: 0 ❌ Invalid Integer as per is_numeric ❌ Invalid Float as per is_float ❌ Invalid Integer as per filter validate ❌ Invalid Float as per filter validate ---- Test Value 14: (string)0.0t Integer converted Value: 0 Float converted Value: 0 ❌ Invalid Integer as per is_numeric ❌ Invalid Float as per is_float ❌ Invalid Integer as per filter validate ❌ Invalid Float as per filter validate ---- Test Value 15: (string)0.1 Integer converted Value: 0 Float converted Value: 0.1 ✅ Valid Integer as per is_numeric ❌ Invalid Float as per is_float ❌ Invalid Integer as per filter validate ✅ Valid Float as per filter validate ---- Test Value 16: (double)0.1 Integer converted Value: 0 Float converted Value: 0.1 ✅ Valid Integer as per is_numeric ✅ Valid Float as per is_float ❌ Invalid Integer as per filter validate ✅ Valid Float as per filter validate ---- Test Value 17: (integer)1 Integer converted Value: 1 Float converted Value: 1 ✅ Valid Integer as per is_numeric ❌ Invalid Float as per is_float ✅ Valid Integer as per filter validate ✅ Valid Float as per filter validate ---- Test Value 18: (string)1 Integer converted Value: 1 Float converted Value: 1 ✅ Valid Integer as per is_numeric ❌ Invalid Float as per is_float ✅ Valid Integer as per filter validate ✅ Valid Float as per filter validate ---- Test Value 19: (double)10000 Integer converted Value: 10000 Float converted Value: 10000 ✅ Valid Integer as per is_numeric ✅ Valid Float as per is_float ✅ Valid Integer as per filter validate ✅ Valid Float as per filter validate ---- Test Value 20: (string)2e Integer converted Value: 2 Float converted Value: 2 ❌ Invalid Integer as per is_numeric ❌ Invalid Float as per is_float ❌ Invalid Integer as per filter validate ❌ Invalid Float as per filter validate ---- Test Value 21: (double)20000 Integer converted Value: 20000 Float converted Value: 20000 ✅ Valid Integer as per is_numeric ✅ Valid Float as per is_float ✅ Valid Integer as per filter validate ✅ Valid Float as per filter validate ---- Test Value 22: (string)2e4 Integer converted Value: 20000 Float converted Value: 20000 ✅ Valid Integer as per is_numeric ❌ Invalid Float as per is_float ❌ Invalid Integer as per filter validate ✅ Valid Float as per filter validate ---- Test Value 23: (double)1337 Integer converted Value: 1337 Float converted Value: 1337 ✅ Valid Integer as per is_numeric ✅ Valid Float as per is_float ✅ Valid Integer as per filter validate ✅ Valid Float as per filter validate ---- Test Value 24: (string)1e3 Integer converted Value: 1000 Float converted Value: 1000 ✅ Valid Integer as per is_numeric ❌ Invalid Float as per is_float ❌ Invalid Integer as per filter validate ✅ Valid Float as per filter validate ---- Test Value 25: (double)10 Integer converted Value: 10 Float converted Value: 10 ✅ Valid Integer as per is_numeric ✅ Valid Float as per is_float ✅ Valid Integer as per filter validate ✅ Valid Float as per filter validate ---- Test Value 26: (double)1.3 Integer converted Value: 1 Float converted Value: 1.3 ✅ Valid Integer as per is_numeric ✅ Valid Float as per is_float ❌ Invalid Integer as per filter validate ✅ Valid Float as per filter validate ---- Test Value 27: (string)1.4 Integer converted Value: 1 Float converted Value: 1.4 ✅ Valid Integer as per is_numeric ❌ Invalid Float as per is_float ❌ Invalid Integer as per filter validate ✅ Valid Float as per filter validate ---- Test Value 28: (string)1t Integer converted Value: 1 Float converted Value: 1 ❌ Invalid Integer as per is_numeric ❌ Invalid Float as per is_float ❌ Invalid Integer as per filter validate ❌ Invalid Float as per filter validate ---- Test Value 29: (string)1.5n Integer converted Value: 1 Float converted Value: 1.5 ❌ Invalid Integer as per is_numeric ❌ Invalid Float as per is_float ❌ Invalid Integer as per filter validate ❌ Invalid Float as per filter validate ---- Test Value 30: (integer)26 Integer converted Value: 26 Float converted Value: 26 ✅ Valid Integer as per is_numeric ❌ Invalid Float as per is_float ✅ Valid Integer as per filter validate ✅ Valid Float as per filter validate ---- Test Value 31: (string)0x539 Integer converted Value: 0 Float converted Value: 0 ❌ Invalid Integer as per is_numeric ❌ Invalid Float as per is_float ❌ Invalid Integer as per filter validate ❌ Invalid Float as per filter validate ---- Test Value 32: (integer)34 Integer converted Value: 34 Float converted Value: 34 ✅ Valid Integer as per is_numeric ❌ Invalid Float as per is_float ✅ Valid Integer as per filter validate ✅ Valid Float as per filter validate ---- Test Value 33: (string)042 Integer converted Value: 42 Float converted Value: 42 ✅ Valid Integer as per is_numeric ❌ Invalid Float as per is_float ❌ Invalid Integer as per filter validate ✅ Valid Float as per filter validate ---- Test Value 34: (integer)42 Integer converted Value: 42 Float converted Value: 42 ✅ Valid Integer as per is_numeric ❌ Invalid Float as per is_float ✅ Valid Integer as per filter validate ✅ Valid Float as per filter validate ---- Test Value 35: (integer)-42 Integer converted Value: -42 Float converted Value: -42 ✅ Valid Integer as per is_numeric ❌ Invalid Float as per is_float ✅ Valid Integer as per filter validate ✅ Valid Float as per filter validate ---- Test Value 36: (string)+42 Integer converted Value: 42 Float converted Value: 42 ✅ Valid Integer as per is_numeric ❌ Invalid Float as per is_float ✅ Valid Integer as per filter validate ✅ Valid Float as per filter validate ---- Test Value 37: (string)-42 Integer converted Value: -42 Float converted Value: -42 ✅ Valid Integer as per is_numeric ❌ Invalid Float as per is_float ✅ Valid Integer as per filter validate ✅ Valid Float as per filter validate ---- ","permalink":"https://tutes.in/php-caveats-int-float-type-conversion/","summary":"\u003cp\u003eThe following code checks various scenarios in which inbuilt functions like intval, floatval, is_numeric, is_float and filter_var would result for several different types of values. Feel free to run in your local, leave comments if I can make the results more interesting with some more functions.\u003c/p\u003e\n\u003cscript src=\"https://gist.github.com/harshvardhanmalpani/8dd0222e4821d0e495532abe9007fef1.js\"\u003e\u003c/script\u003e\n\u003cp\u003e\u003ca href=\"https://gist.github.com/harshvardhanmalpani/8dd0222e4821d0e495532abe9007fef1\"\u003ehttps://gist.github.com/harshvardhanmalpani/8dd0222e4821d0e495532abe9007fef1\u003c/a\u003e\u003c/p\u003e\n\u003ch3 id=\"output--results\"\u003eOutput / Results\u003c/h3\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 1: (string)true\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 2: (boolean)1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 3: (boolean)\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 4: (string)false\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 5: (integer)0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 6: (double)-0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: -0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 7: (integer)0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 8: (string)-0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: -0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 9: (string)+0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 10: (string)-0.0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: -0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 11: (string)+0.0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 12: (string)0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 13: (string)0w\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 14: (string)0.0t\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 15: (string)0.1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 0.1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 16: (double)0.1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 0.1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 17: (integer)1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 18: (string)1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 19: (double)10000\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 10000\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 10000\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 20: (string)2e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 2\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 2\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 21: (double)20000\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 20000\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 20000\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 22: (string)2e4\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 20000\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 20000\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 23: (double)1337\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 1337\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 1337\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 24: (string)1e3\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 1000\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 1000\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 25: (double)10\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 10\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 10\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 26: (double)1.3\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 1.3\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 27: (string)1.4\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 1.4\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 28: (string)1t\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 29: (string)1.5n\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 1.5\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 30: (integer)26\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 26\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 26\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 31: (string)0x539\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 0\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 32: (integer)34\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 34\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 34\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 33: (string)042\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 42\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 42\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 34: (integer)42\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 42\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 42\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 35: (integer)-42\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: -42\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: -42\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 36: (string)+42\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: 42\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: 42\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTest Value 37: (string)-42\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eInteger converted Value: -42\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFloat converted Value: -42\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per is_numeric\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e❌ Invalid Float as per is_float\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Integer as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e✅ Valid Float as per filter validate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e----\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"PHP caveats – int/float type conversion"},{"content":"#!/bin/sh cd $WORKSPACE export PY=/usr/local/bin/python3 export FLASK_RUN_PORT=4005 $PY -m pip install pipenv $PY -m pipenv install --dev export VENV_HOME_DIR=$($PY -m pipenv --venv) source $VENV_HOME_DIR/bin/activate flask db upgrade flask populate-initial-data export BUILD_ID=XYZapi $WORKSPACE/killlastbuild.sh flask run \u0026amp; deactivate killlastbuild.sh can have anything inside it depending upon your project requirements. I put 2 process killers to kill background-ed daemon processes from previous build command\nps -Af | grep \u0026#34;xyzapi\u0026#34; | grep -v grep | awk \u0026#39;{print$2}\u0026#39; | head -1 | xargs kill -9 ps -Af | grep \u0026#34;xyzapi\u0026#34; | grep -v grep | awk \u0026#39;{print$2}\u0026#39; | head -1 | xargs kill -9 ","permalink":"https://tutes.in/jenkins-auto-deploying-flask-in-test-env-with-last-build-process-kill-and-pipenv/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"cp\"\u003e#!/bin/sh\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nb\"\u003ecd\u003c/span\u003e \u003cspan class=\"nv\"\u003e$WORKSPACE\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nb\"\u003eexport\u003c/span\u003e \u003cspan class=\"nv\"\u003ePY\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e/usr/local/bin/python3\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nb\"\u003eexport\u003c/span\u003e \u003cspan class=\"nv\"\u003eFLASK_RUN_PORT\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"m\"\u003e4005\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$PY\u003c/span\u003e -m pip install pipenv\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$PY\u003c/span\u003e -m pipenv install --dev\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nb\"\u003eexport\u003c/span\u003e \u003cspan class=\"nv\"\u003eVENV_HOME_DIR\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"k\"\u003e$(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$PY\u003c/span\u003e -m pipenv --venv\u003cspan class=\"k\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nb\"\u003esource\u003c/span\u003e \u003cspan class=\"nv\"\u003e$VENV_HOME_DIR\u003c/span\u003e/bin/activate\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eflask db upgrade\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eflask populate-initial-data\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nb\"\u003eexport\u003c/span\u003e \u003cspan class=\"nv\"\u003eBUILD_ID\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003eXYZapi\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$WORKSPACE\u003c/span\u003e/killlastbuild.sh\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eflask run \u003cspan class=\"p\"\u003e\u0026amp;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003edeactivate\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003ekilllastbuild.sh can have anything inside it depending upon your project requirements. I put 2 process killers to kill background-ed daemon processes from previous build command\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eps -Af \u003cspan class=\"p\"\u003e|\u003c/span\u003e grep \u003cspan class=\"s2\"\u003e\u0026#34;xyzapi\u0026#34;\u003c/span\u003e \u003cspan class=\"p\"\u003e|\u003c/span\u003e grep -v grep \u003cspan class=\"p\"\u003e|\u003c/span\u003e awk \u003cspan class=\"s1\"\u003e\u0026#39;{print$2}\u0026#39;\u003c/span\u003e \u003cspan class=\"p\"\u003e|\u003c/span\u003e head -1 \u003cspan class=\"p\"\u003e|\u003c/span\u003e xargs \u003cspan class=\"nb\"\u003ekill\u003c/span\u003e -9\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eps -Af \u003cspan class=\"p\"\u003e|\u003c/span\u003e grep \u003cspan class=\"s2\"\u003e\u0026#34;xyzapi\u0026#34;\u003c/span\u003e \u003cspan class=\"p\"\u003e|\u003c/span\u003e grep -v grep \u003cspan class=\"p\"\u003e|\u003c/span\u003e awk \u003cspan class=\"s1\"\u003e\u0026#39;{print$2}\u0026#39;\u003c/span\u003e \u003cspan class=\"p\"\u003e|\u003c/span\u003e head -1 \u003cspan class=\"p\"\u003e|\u003c/span\u003e xargs \u003cspan class=\"nb\"\u003ekill\u003c/span\u003e -9\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Jenkins auto deploying flask in test env with last build process kill and pipenv"},{"content":"Add this code in your .conf file\nif ($remote_addr = \u0026#34;14.51.20.3\u0026#34;) { set $block_me_now \u0026#34;B\u0026#34;; } if ($remote_addr = \u0026#34;104.1.20.29\u0026#34;) { set $block_me_now \u0026#34;B\u0026#34;; } if ($block_me_now != \u0026#34;B\u0026#34;) { return 403; break; } ","permalink":"https://tutes.in/how-to-whitelist-ips-in-nginx-configuration/","summary":"\u003cp\u003eAdd this code in your .conf file\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"o\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$remote_addr\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;14.51.20.3\u0026#34;\u003c/span\u003e\u003cspan class=\"o\"\u003e)\u003c/span\u003e \u003cspan class=\"o\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"nb\"\u003eset\u003c/span\u003e \u003cspan class=\"nv\"\u003e$block_me_now\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;B\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e \u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"o\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$remote_addr\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;104.1.20.29\u0026#34;\u003c/span\u003e\u003cspan class=\"o\"\u003e)\u003c/span\u003e \u003cspan class=\"o\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"nb\"\u003eset\u003c/span\u003e \u003cspan class=\"nv\"\u003e$block_me_now\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;B\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"o\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$block_me_now\u003c/span\u003e !\u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;B\u0026#34;\u003c/span\u003e\u003cspan class=\"o\"\u003e)\u003c/span\u003e \u003cspan class=\"o\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003ereturn\u003c/span\u003e 403\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    break\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"How to whitelist IPs in NGINX configuration?"},{"content":"Inode usage for current working directory\necho \u0026#34;Detailed Inode usage for: $(pwd)\u0026#34; ; for d in `find -maxdepth 1 -type d |cut -d\\/ -f2 |grep -xv . |sort`; do c=$(find $d |wc -l) ; printf \u0026#34;$c\\t\\t- $d\\n\u0026#34; ; done ; printf \u0026#34;Total: \\t\\t$(find $(pwd) | wc -l)\\n\u0026#34; Use cd ~ to change pwd to current user home\ncd ~ Reference: Magesh from 2daygeek : https://www.2daygeek.com/linux-check-count-inode-usage/\n","permalink":"https://tutes.in/total-inode-count-for-a-particular-user-in-linux/","summary":"\u003cp\u003eInode usage for current working directory\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eecho \u0026#34;Detailed Inode usage for: $(pwd)\u0026#34; ; for d in `find -maxdepth 1 -type d |cut -d\\/ -f2 |grep -xv . |sort`; do c=$(find $d |wc -l) ; printf \u0026#34;$c\\t\\t- $d\\n\u0026#34; ; done ; printf \u0026#34;Total: \\t\\t$(find $(pwd) | wc -l)\\n\u0026#34;\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eUse \u003cem\u003ecd ~\u003c/em\u003e to change pwd to current user home\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ecd ~\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch3 id=\"reference\"\u003eReference:\u003c/h3\u003e\n\u003cp\u003eMagesh from 2daygeek : \u003ca href=\"https://www.2daygeek.com/linux-check-count-inode-usage/\"\u003ehttps://www.2daygeek.com/linux-check-count-inode-usage/\u003c/a\u003e\u003c/p\u003e","title":"Total inode count for a particular user in linux"},{"content":"[type=\u0026#34;radio\u0026#34;]:checked + label:before { background: #bc6060; box-shadow: 0 0 0 0.25em #000; } [type=\u0026#34;radio\u0026#34;]:focus + label:after { content: \u0026#39;\\0020\\2190\u0026#39;; font-size: 1.5em; line-height: 1; vertical-align: -0.125em; } [type=\u0026#34;radio\u0026#34;] { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; } label { display: block; cursor: pointer; line-height: 2; font-size: 1.2em; } [type=\u0026#34;radio\u0026#34;] + label { display: block; } [type=\u0026#34;radio\u0026#34;] + label:before { content: \u0026#39;\u0026#39;; display: inline-block; width: 1em; height: 1em; vertical-align: -0.25em; border-radius: 1em; border: 0.125em solid #fff; box-shadow: 0 0 0 0.15em #000; margin-right: 0.75em; transition: 0.5s ease all; } ","permalink":"https://tutes.in/radio-buttons-css-for-wordpress-elementor-form-markup/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-css\" data-lang=\"css\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e[\u003c/span\u003e\u003cspan class=\"nt\"\u003etype\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;radio\u0026#34;\u003c/span\u003e\u003cspan class=\"o\"\u003e]\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"nd\"\u003echecked\u003c/span\u003e \u003cspan class=\"o\"\u003e+\u003c/span\u003e \u003cspan class=\"nt\"\u003elabel\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"nd\"\u003ebefore\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003ebackground\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"mh\"\u003e#bc6060\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003ebox-shadow\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"mi\"\u003e0\u003c/span\u003e \u003cspan class=\"mi\"\u003e0\u003c/span\u003e \u003cspan class=\"mi\"\u003e0\u003c/span\u003e \u003cspan class=\"mf\"\u003e0.25\u003c/span\u003e\u003cspan class=\"kt\"\u003eem\u003c/span\u003e \u003cspan class=\"mh\"\u003e#000\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e[\u003c/span\u003e\u003cspan class=\"nt\"\u003etype\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;radio\u0026#34;\u003c/span\u003e\u003cspan class=\"o\"\u003e]\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"nd\"\u003efocus\u003c/span\u003e \u003cspan class=\"o\"\u003e+\u003c/span\u003e \u003cspan class=\"nt\"\u003elabel\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"nd\"\u003eafter\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003econtent\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;\\0020\\2190\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003efont-size\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"mf\"\u003e1.5\u003c/span\u003e\u003cspan class=\"kt\"\u003eem\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003eline-height\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003evertical-align\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"mf\"\u003e-0.125\u003c/span\u003e\u003cspan class=\"kt\"\u003eem\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e[\u003c/span\u003e\u003cspan class=\"nt\"\u003etype\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;radio\u0026#34;\u003c/span\u003e\u003cspan class=\"o\"\u003e]\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003eborder\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003eclip\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"nb\"\u003erect\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e \u003cspan class=\"mi\"\u003e0\u003c/span\u003e \u003cspan class=\"mi\"\u003e0\u003c/span\u003e \u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003eheight\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"kt\"\u003epx\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e \u003cspan class=\"k\"\u003emargin\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"mi\"\u003e-1\u003c/span\u003e\u003cspan class=\"kt\"\u003epx\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003eoverflow\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"kc\"\u003ehidden\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003epadding\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003eposition\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"kc\"\u003eabsolute\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003ewidth\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"kt\"\u003epx\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nt\"\u003elabel\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003edisplay\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"kc\"\u003eblock\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003ecursor\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"kc\"\u003epointer\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003eline-height\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"mi\"\u003e2\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003efont-size\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"mf\"\u003e1.2\u003c/span\u003e\u003cspan class=\"kt\"\u003eem\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e[\u003c/span\u003e\u003cspan class=\"nt\"\u003etype\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;radio\u0026#34;\u003c/span\u003e\u003cspan class=\"o\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e+\u003c/span\u003e \u003cspan class=\"nt\"\u003elabel\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003edisplay\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"kc\"\u003eblock\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e[\u003c/span\u003e\u003cspan class=\"nt\"\u003etype\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;radio\u0026#34;\u003c/span\u003e\u003cspan class=\"o\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e+\u003c/span\u003e \u003cspan class=\"nt\"\u003elabel\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"nd\"\u003ebefore\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003econtent\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003edisplay\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"kc\"\u003einline-block\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003ewidth\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"kt\"\u003eem\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003eheight\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"kt\"\u003eem\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003evertical-align\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"mf\"\u003e-0.25\u003c/span\u003e\u003cspan class=\"kt\"\u003eem\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003eborder-radius\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"kt\"\u003eem\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003eborder\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"mf\"\u003e0.125\u003c/span\u003e\u003cspan class=\"kt\"\u003eem\u003c/span\u003e \u003cspan class=\"kc\"\u003esolid\u003c/span\u003e \u003cspan class=\"mh\"\u003e#fff\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003ebox-shadow\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"mi\"\u003e0\u003c/span\u003e \u003cspan class=\"mi\"\u003e0\u003c/span\u003e \u003cspan class=\"mi\"\u003e0\u003c/span\u003e \u003cspan class=\"mf\"\u003e0.15\u003c/span\u003e\u003cspan class=\"kt\"\u003eem\u003c/span\u003e \u003cspan class=\"mh\"\u003e#000\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003emargin-right\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"mf\"\u003e0.75\u003c/span\u003e\u003cspan class=\"kt\"\u003eem\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003etransition\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"mf\"\u003e0.5\u003c/span\u003e\u003cspan class=\"kt\"\u003es\u003c/span\u003e \u003cspan class=\"kc\"\u003eease\u003c/span\u003e \u003cspan class=\"kc\"\u003eall\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Radio buttons CSS for wordpress elementor form markup"},{"content":"In dd/mm/yyyy format, 2nd February 2020 (02 02 2020) is a palindrome\nIn really common beliefs, whatsapp forwards were filled with this number being so rare and unique. However it would be stupid to say that such a rare date will occur only after 1010 years.\nHere is how:\nIn whole millennium (1000 years), first few years of first few centuries have many of such dates. Even if you consider MM/DD/YYYY format, you can find a lot of such numbers in first few centuries.\nHere are all of such dates in this century (2000 – 2099) in DD/MM/YYYY format\n10/02/2001 20/02/2002 01/02/2010 11/02/2011 21/02/2012 02/02/2020 12/02/2021 22/02/2022 03/02/2030 13/02/2031 23/02/2032 04/02/2040 14/02/2041 24/02/2042 05/02/2050 15/02/2051 25/02/2052 06/02/2060 16/02/2061 26/02/2062 07/02/2070 17/02/2071 27/02/2072 08/02/2080 18/02/2081 28/02/2082 09/02/2090 19/02/2091 29/02/2092 ","permalink":"https://tutes.in/this-unique-date-02-02-2020-will-come-after-1010-years-wrong-math/","summary":"\u003cp\u003eIn dd/mm/yyyy format, 2nd February 2020 (02 02 2020) is a \u003ca href=\"https://en.wikipedia.org/wiki/Palindrome\"\u003epalindrome\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eIn really common beliefs, whatsapp forwards were filled with this number being so rare and unique. However it would be stupid to say that such a rare date will occur only after 1010 years.\u003c/p\u003e\n\u003cp\u003eHere is how:\u003c/p\u003e\n\u003cp\u003eIn whole millennium (1000 years), first few years of first few centuries have many of such dates. Even if you consider MM/DD/YYYY format, you can find a lot of such numbers in first few centuries.\u003c/p\u003e","title":"This unique date 02 02 2020 will come after 1010 years – WRONG MATH"},{"content":"How to improve yourself as a freelancer? Here are 10 points to take care of:\nCommunication Skills – convincing power Make yourself a brand, your ethics will define your future in freelancing. This will help you in scaling also Consistency, Focus and Dedication Productivity is Gold, know your value, do math and target for a monthly number Read!! know clients requirements in depth, if it is small task, fix already without getting the project. This approach will consume time without paying, but would probably make you better keep challenging yourself, keep improving Stay away from template bids, no body wants to know which app you did 4 years ago if the project not about an app Keep your portfolio updated Take care of clock, predict and quote project timelines intelligently Exceed expectations of your Client, under-promise and over-deliver ","permalink":"https://tutes.in/10-tips-for-better-freelancing/","summary":"\u003cp\u003eHow to improve yourself as a freelancer? Here are 10 points to take care of:\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eCommunication Skills – convincing power\u003c/li\u003e\n\u003cli\u003eMake yourself a brand, your ethics will define your future in freelancing. This will help you in scaling also\u003c/li\u003e\n\u003cli\u003eConsistency, Focus and Dedication\u003c/li\u003e\n\u003cli\u003eProductivity is Gold, know your value, do math and target for a monthly number\u003c/li\u003e\n\u003cli\u003eRead!! know clients requirements in depth, if it is small task, fix already without getting the project. This approach will consume time without paying, but would probably make you better\u003c/li\u003e\n\u003cli\u003ekeep challenging yourself, keep improving\u003c/li\u003e\n\u003cli\u003eStay away from template bids, no body wants to know which app you did 4 years ago if the project not about an app\u003c/li\u003e\n\u003cli\u003eKeep your portfolio updated\u003c/li\u003e\n\u003cli\u003eTake care of clock, predict and quote project timelines intelligently\u003c/li\u003e\n\u003cli\u003eExceed expectations of your Client, under-promise and over-deliver\u003c/li\u003e\n\u003c/ol\u003e","title":"10 tips for better freelancing"},{"content":"Lets break it into 2 parts:\na. Migrate Customer data\nb. Migrate Customer Passwords\n1) Migrate Customer Data from Magento2 to WordPress This is rather easy to be honest, there are several plugins for importing data from CSV and then mapping the CSV fields.\nMy recommended plugin is Customer/Order/Coupon CSV Import Suite by SkyVerge\nIt basically does everything from customer email to customer address data. It also provides column mapping and custom attribute import for all users. Also comes with multiple configuration options.\nBest Free Alternative is https://wordpress.org/plugins/import-users-from-csv-with-meta But in this one, you can not import magento2 passwords as of v 1.15.0.1 I will update about the solution very soon. So as of now only paid option is there.\n2) Migrate Customer Password from Magento2 to WordPress This wordpress plugin checks and updates passwords of users migrated from Magento2 to WordPress\nPlugin Link: https://github.com/harshvardhanmalpani/migrate-password-from-magento2-to-wordpress\nRequirements: user_pass column will have this kind data from Magento2 dcbdc524f215fd054502dcad5a23a702ec029c02ff8d7051d049f76e29927f8b:C8yVqeuPfkHWvkmipx0iKLPtOUGETpLL:1 usermeta table must have a meta_key “migrated_cs” for this user, meta_value can be anything positive This plugin file password-migrator.php should be in wp-content/plugins and must be an active plugin What is does? For new wordpress based users which dont have anything to do with magento2, it doesnt do anything\nFor all migrated users (those have the key “migrated_cs”), this plugin checks if input password matches old password from magento2 or not, if matched, it clears the key migrated_cs and updates the password using wordpress’ algorithm ; else results false.\n","permalink":"https://tutes.in/how-to-migrate-customers-from-magento2-to-wordpress/","summary":"\u003cp\u003eLets break it into 2 parts:\u003c/p\u003e\n\u003cp\u003ea. Migrate Customer data\u003cbr\u003e\nb. Migrate Customer Passwords\u003c/p\u003e\n\u003ch2 id=\"1-migrate-customer-data-from-magento2-to-wordpress\"\u003e1) Migrate Customer Data from Magento2 to WordPress\u003c/h2\u003e\n\u003cp\u003eThis is rather easy to be honest, there are several plugins for importing data from CSV and then mapping the CSV fields.\u003c/p\u003e\n\u003cp\u003eMy recommended plugin is \u003ca href=\"https://woocommerce.com/products/customerorder-csv-import-suite/?utm_source=TUTESCLUB\"\u003eCustomer/Order/Coupon CSV Import Suite by SkyVerge\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eIt basically does everything from customer email to customer address data. It also provides column mapping and custom attribute import for all users. Also comes with multiple configuration options.\u003c/p\u003e","title":"How to migrate Customers from Magento2 to WordPress?"},{"content":"This is related to new MariaDb upgrade from 10.1.41 to 10.1.42 and also for servers which were updated from 10.2.27 to 10.2.28\nGo to solution ( Special Thanks to @Valetia )\nYou will see errors in following formats/messages:\nNo file or input found MySQL Server has gone away Connection to MySQL Server failed sqlstate[hy000]: general error: 2013 lost connection to mysql server during query General error: 2006 MySQL server has gone away ERROR 2006 (HY000): MySQL server has gone away ERROR 2013 (HY000): Lost connection to MySQL server during query Log files (/var/lib/mysql/$hostname.err) will have or can have any of these errors:\nassertion fail /home/buildbot/buildbot/padding_for_CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX/mariadb-10.2.28/storage/innobase/dict/dict0dict.cc line 1467 the resulting row size is greater than maximum allowed size (8126) for a record on index leaf page stack_bottom = 0x0 thread_stack 0x49000 mysys/stacktrace.c:268(my_print_stacktrace)[0x5564e62807bb] sql/signal_handler.cc:209(handle_fatal_signal)[0x5564e5d4b4f5] Other Symptoms: /etc/init.d/mysql start\nStarting MySQL/etc/init.d/mysql: line 159: kill: (10704) – No such process\n[FAILED]\nSolution: yum downgrade MariaDB-* -y whmapi1 update_updateconf RPMUP=manual UPDATES=manual (run as root #)\nThis will downgrade MariaDb installation to previous version\nLine 2 will cancel automatic update on WHM/CPanel installations\nIf you are not using WHM, use line 1 only OR you can downgrade the repository individually too\nyum downgrade MariaDB-server MariaDB-common MariaDB-shared MariaDB-client MariaDB-compat MariaDB-devel References: https://forums.cpanel.net/threads/innodb-corruption-repair-guide.418722/ https://forums.cpanel.net/threads/mariadb-error-after-update-10-2-28.662609/ https://dba.stackexchange.com/a/65736 https://forums.cpanel.net/threads/lost-connection-to-mysql-server-during-query-error.620751/ ","permalink":"https://tutes.in/how-to-solve-mysql-server-gone-away-error-maria-db-update-on-cpanel-and-whm/","summary":"\u003cp\u003eThis is related to new MariaDb upgrade from 10.1.41 to 10.1.42 and also for servers which were updated from 10.2.27 to 10.2.28\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"#solution\"\u003eGo to solution\u003c/a\u003e ( Special Thanks to \u003ca href=\"https://forums.cpanel.net/members/valetia.4402/\"\u003e@Valetia\u003c/a\u003e )\u003c/p\u003e\n\u003cp\u003eYou will see errors in following formats/messages:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003eNo file or input found\u003c/li\u003e\n\u003cli\u003eMySQL Server has gone away\u003c/li\u003e\n\u003cli\u003eConnection to MySQL Server failed\u003c/li\u003e\n\u003cli\u003esqlstate[hy000]: general error: 2013 lost connection to mysql server during query\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eGeneral error: 2006 MySQL server has gone away\u003c/strong\u003e\u003c/li\u003e\n\u003cli\u003eERROR 2006 (HY000): MySQL server has gone away\u003c/li\u003e\n\u003cli\u003eERROR 2013 (HY000): Lost connection to MySQL server during query\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eLog files (/var/lib/mysql/$hostname.err) will have or can have any of these errors:\u003c/p\u003e","title":"How to solve MySQL server gone away error Maria Db update on cPanel and WHM?"},{"content":"\nIn your Google Sheet, Click “Tools” and then choose “Script Editor“. Put the code given below. Don’t forget to use function in your result column as “=dodiff(cell1,cell2)“\nfunction dodiff(a, b) { if (a) a = fix(a); if (b) b = fix(b); if (Array.isArray(a) \u0026amp;\u0026amp; Array.isArray(b)) { if (b[1] \u0026gt; a[1]) m = b[1] - a[1]; else { m = b[1] - a[1] + 60; b[0]--; } if (b[0] \u0026gt;= a[0]) h = b[0] - a[0]; else { h = b[0] - a[0] + 12; } m = m / 60; return (h + m).toPrecision(4); } } function fix(a) { if (a) x = a.toString().replace(\u0026#34; \u0026#34;, \u0026#39;\u0026#39;).replace(\u0026#34;am\u0026#34;, \u0026#34;\u0026#34;).replace(\u0026#34;pm\u0026#34;, \u0026#34;\u0026#34;).replace(\u0026#34;PM\u0026#34;, \u0026#34;\u0026#34;).replace(\u0026#34;AM\u0026#34;, \u0026#34;\u0026#34;); x = x.split(\u0026#34;:\u0026#34;); x[0] = parseInt(x[0]); x[1] = parseInt(x[1]); return x; } ","permalink":"https://tutes.in/a-basic-time-difference-calculator-in-google-script-js/","summary":"\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2019/10/time-sheet-diff-check.png\"\u003e\u003c/p\u003e\n\u003cp\u003eIn your Google Sheet, Click “\u003cstrong\u003eTools\u003c/strong\u003e” and then choose “\u003cstrong\u003eScript Editor\u003c/strong\u003e“. Put the code given below. Don’t forget to use function in your result column as “\u003cem\u003e=dodiff(cell1,cell2)\u003c/em\u003e“\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-javascript\" data-lang=\"javascript\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"kd\"\u003efunction\u003c/span\u003e \u003cspan class=\"nx\"\u003edodiff\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nx\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nx\"\u003ea\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003efix\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nx\"\u003eb\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003efix\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nb\"\u003eArray\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eisArray\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"o\"\u003e\u0026amp;\u0026amp;\u003c/span\u003e \u003cspan class=\"nb\"\u003eArray\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eisArray\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e))\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e\u0026gt;\u003c/span\u003e \u003cspan class=\"nx\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e])\u003c/span\u003e \u003cspan class=\"nx\"\u003em\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e-\u003c/span\u003e \u003cspan class=\"nx\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003eelse\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"nx\"\u003em\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e-\u003c/span\u003e \u003cspan class=\"nx\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e+\u003c/span\u003e \u003cspan class=\"mi\"\u003e60\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"nx\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e\u003cspan class=\"o\"\u003e--\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e\u0026gt;=\u003c/span\u003e \u003cspan class=\"nx\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e])\u003c/span\u003e \u003cspan class=\"nx\"\u003eh\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e-\u003c/span\u003e \u003cspan class=\"nx\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003eelse\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"nx\"\u003eh\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e-\u003c/span\u003e \u003cspan class=\"nx\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e+\u003c/span\u003e \u003cspan class=\"mi\"\u003e12\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nx\"\u003em\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003em\u003c/span\u003e \u003cspan class=\"o\"\u003e/\u003c/span\u003e \u003cspan class=\"mi\"\u003e60\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eh\u003c/span\u003e \u003cspan class=\"o\"\u003e+\u003c/span\u003e \u003cspan class=\"nx\"\u003em\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003etoPrecision\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e4\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"kd\"\u003efunction\u003c/span\u003e \u003cspan class=\"nx\"\u003efix\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nx\"\u003ex\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003etoString\u003c/span\u003e\u003cspan class=\"p\"\u003e().\u003c/span\u003e\u003cspan class=\"nx\"\u003ereplace\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34; \u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003ereplace\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;am\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003ereplace\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;pm\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003ereplace\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;PM\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003ereplace\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;AM\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nx\"\u003ex\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003ex\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003esplit\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;:\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nx\"\u003ex\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nb\"\u003eparseInt\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003ex\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e]);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nx\"\u003ex\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nb\"\u003eparseInt\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003ex\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e]);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"nx\"\u003ex\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"A basic time difference calculator in google script js"},{"content":"How to add facebook messenger in website so that users can chat live to your page?\nRequirements: Page ID – you need to know what is your page id Whitelisted Domain – you need to add website on which you want show widget in your page’s whitelist Access to add/edit code in your website 1 – Getting Page ID Go to your page, click on about, scroll down a bit and you will see Page ID\nThe url will look like https://www.facebook.com/pg/YOURPAGENAME/about/?ref=page_internal\nThe page id will look like\nAlternatively, you can use tools like Find My Facebook ID – https://findmyfbid.com/\n2 – Whitelisting your domain There are 2 ways to do this, A and B both mentioned below\nA) For Page Admins, the Messenger Platform also provides an easy setup tool for customizing your customer chat plugin. To use the setup tool, do the following:\nGo to Page Settings \u0026gt; Messenger Platform In the ‘Customer Chat Plugin’ section, click the ‘Set Up’ Button. The url will look like https://www.facebook.com/YOURPAGEUSERNAME/settings/?tab=messenger_platform\nOR B) Go to Page Settings \u0026gt; Messenger Platform and Jump to Whitelisted Domains section\nwhitelist your website url\n3 – Add Code in your website Replace PAGEID with your page id obtained in step 1\nHTML CODE (includes js code also)\n1 2 3 4 5 6 7 8 9 10 11 12 13 \u0026lt;div id=\u0026#34;fb-root\u0026#34;\u0026gt;\u0026lt;/div\u0026gt; \u0026lt;div class=\u0026#34;fb-customerchat\u0026#34; attribution=\u0026#34;setup_tool\u0026#34; page_id=\u0026#34;PAGEID\u0026#34; logged_in_greeting=\u0026#34;Hi! How can I help you?\u0026#34; greeting_dialog_display=\u0026#34;hide\u0026#34; logged_out_greeting=\u0026#34;Hi! How can I help you?\u0026#34; theme_color=\u0026#34;#0084ff\u0026#34;\u0026gt; \u0026lt;/div\u0026gt; \u0026lt;script\u0026gt; window.fbAsyncInit = function() {FB.init({xfbml: true, version: \u0026#39;v4.0\u0026#39;});}; (function(d, s, id) {var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = \u0026#39;https://connect.facebook.net/en_US/sdk/xfbml.customerchat.js\u0026#39;; fjs.parentNode.insertBefore(js, fjs); }(document, \u0026#39;script\u0026#39;, \u0026#39;facebook-jssdk\u0026#39;)); \u0026lt;/script\u0026gt; Customization Notes: Add or edit these common attribute value pairs\ngreeting_dialog_display=\u0026#34;hide\u0026#34; theme_color=\u0026#34;#0084ff\u0026#34; Details about customization: https://developers.facebook.com/docs/messenger-platform/discovery/customer-chat-plugin#customization\nReferences: https://developers.facebook.com/docs/messenger-platform/discovery/customer-chat-plugin\n","permalink":"https://tutes.in/how-to-add-facebook-messenger-for-live-chat-on-your-website/","summary":"\u003cp\u003eHow to add facebook messenger in website so that users can chat live to your page?\u003c/p\u003e\n\u003ch4 id=\"requirements\"\u003eRequirements:\u003c/h4\u003e\n\u003col\u003e\n\u003cli\u003e\u003cstrong\u003ePage ID\u003c/strong\u003e – you need to know what is your page id\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eWhitelisted Domain\u003c/strong\u003e – you need to add website on which you want show widget in your page’s whitelist\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eAccess to add/edit code in your website\u003c/strong\u003e\u003c/li\u003e\n\u003c/ol\u003e\n\u003ch2 id=\"1--getting-page-id\"\u003e1 – Getting Page ID\u003c/h2\u003e\n\u003cp\u003eGo to your page, click on about, scroll down a bit and you will see Page ID\u003c/p\u003e","title":"How to add Facebook Messenger for live chat on your website?"},{"content":"Run the following code in console:\n$=new jQuery.noConflict(); $(\u0026#34;#swatch-text-options-panel tr td:nth-child(4) input\u0026#34;).each(function (e,el) { $(this).parent().parent().find(\u0026#34;td:nth-child(3) input\u0026#34;).val($(this).val());}); ","permalink":"https://tutes.in/convert-dropdown-attribute-to-text-swatch-in-magento2-admin-panel/","summary":"\u003cp\u003eRun the following code in console:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-javascript\" data-lang=\"javascript\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003e$\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"k\"\u003enew\u003c/span\u003e \u003cspan class=\"nx\"\u003ejQuery\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003enoConflict\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003e$\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;#swatch-text-options-panel tr td:nth-child(4) input\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eeach\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"kd\"\u003efunction\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003ee\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nx\"\u003eel\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003e$\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"k\"\u003ethis\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eparent\u003c/span\u003e\u003cspan class=\"p\"\u003e().\u003c/span\u003e\u003cspan class=\"nx\"\u003eparent\u003c/span\u003e\u003cspan class=\"p\"\u003e().\u003c/span\u003e\u003cspan class=\"nx\"\u003efind\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;td:nth-child(3) input\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eval\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003e$\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"k\"\u003ethis\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eval\u003c/span\u003e\u003cspan class=\"p\"\u003e());});\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Convert dropdown attribute to text swatch in Magento2 Admin Panel"},{"content":"Short Answer:\nNot possible via Magento2 Admin Backend.\nSolution:\nYou need to update eav_attribute table and edit information about backend_source, frontend_input etc.\nSimple query for that is:\nUPDATE `eav_attribute` SET `backend_model`=\u0026#34;Magento\\\\\\Eav\\\\\\Model\\\\\\Entity\\\\\\Attribute\\\\\\Backend\\\\\\ArrayBackend\u0026#34;, `backend_type`=\u0026#34;varchar\u0026#34;, `frontend_input`=\u0026#34;multiselect\u0026#34;, `source_model`=NULL WHERE `attribute_id`=YOUR_ATTRIBUTE_ID_INTEGER LIMIT 1 Replace YOUR_ATTRIBUTE_ID_INTEGER with your attribute_id like 355\nReference: https://stackoverflow.com/a/57701845/2229148\n","permalink":"https://tutes.in/how-to-change-attribute-dropdown-type-to-multi-select-in-magento-2/","summary":"\u003cp\u003eShort Answer:\u003c/p\u003e\n\u003cp\u003eNot possible via Magento2 Admin Backend.\u003c/p\u003e\n\u003cp\u003eSolution:\u003c/p\u003e\n\u003cp\u003eYou need to update \u003ccode\u003eeav_attribute\u003c/code\u003e table and edit information about backend_source, frontend_input etc.\u003c/p\u003e\n\u003cp\u003eSimple query for that is:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-sql\" data-lang=\"sql\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eUPDATE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003eeav_attribute\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eSET\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003ebackend_model\u003c/span\u003e\u003cspan class=\"o\"\u003e`=\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;Magento\\\\\\Eav\\\\\\Model\\\\\\Entity\\\\\\Attribute\\\\\\Backend\\\\\\ArrayBackend\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003ebackend_type\u003c/span\u003e\u003cspan class=\"o\"\u003e`=\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;varchar\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003efrontend_input\u003c/span\u003e\u003cspan class=\"o\"\u003e`=\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;multiselect\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003esource_model\u003c/span\u003e\u003cspan class=\"o\"\u003e`=\u003c/span\u003e\u003cspan class=\"k\"\u003eNULL\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eWHERE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003eattribute_id\u003c/span\u003e\u003cspan class=\"o\"\u003e`=\u003c/span\u003e\u003cspan class=\"n\"\u003eYOUR_ATTRIBUTE_ID_INTEGER\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eLIMIT\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eReplace \u003cstrong\u003e\u003ccode\u003eYOUR_ATTRIBUTE_ID_INTEGER\u003c/code\u003e\u003c/strong\u003e with your \u003cem\u003e\u003ccode\u003eattribute_id\u003c/code\u003e\u003c/em\u003e like \u003cstrong\u003e\u003ccode\u003e355\u003c/code\u003e\u003c/strong\u003e\u003c/p\u003e\n\u003ch3 id=\"reference\"\u003eReference:\u003c/h3\u003e\n\u003cp\u003e\u003ca href=\"https://stackoverflow.com/a/57701845/2229148\"\u003ehttps://stackoverflow.com/a/57701845/2229148\u003c/a\u003e\u003c/p\u003e","title":"How to change attribute dropdown type to multi-select in Magento 2?"},{"content":"UPDATE `catalog_product_entity_int` SET `value`=2 where `entity_id` in (SELECT a.`entity_id` FROM `catalog_product_entity` AS a LEFT JOIN `catalog_product_entity_media_gallery_value` AS b ON a.entity_id = b.entity_id LEFT JOIN `catalog_product_entity_media_gallery` AS c ON b.value_id = c.value_id WHERE c.value IS NULL) and `attribute_id` = 96 It is SQL query\nAssumption:\nvalue=2 means disable and value=1 means enable\nattribute_id=96 means “status” attribute\nReferences: https://gist.github.com/tegansnyder/8464261#gistcomment-2910808\nhttps://magento.stackexchange.com/a/83033/32283\n","permalink":"https://tutes.in/how-to-disable-products-in-magento2-which-dont-have-any-gallery-image/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-sql\" data-lang=\"sql\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eUPDATE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003ecatalog_product_entity_int\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eSET\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003evalue\u003c/span\u003e\u003cspan class=\"o\"\u003e`=\u003c/span\u003e\u003cspan class=\"mi\"\u003e2\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003ewhere\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003eentity_id\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003ein\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"k\"\u003eSELECT\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003eentity_id\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eFROM\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003ecatalog_product_entity\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eAS\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ea\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eLEFT\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eJOIN\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003ecatalog_product_entity_media_gallery_value\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eAS\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eb\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eON\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003eentity_id\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003eentity_id\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eLEFT\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eJOIN\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003ecatalog_product_entity_media_gallery\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eAS\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003ec\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eON\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003evalue_id\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003ec\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003evalue_id\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eWHERE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003ec\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003evalue\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eIS\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eNULL\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eand\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003eattribute_id\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"mi\"\u003e96\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eIt is SQL query\u003c/p\u003e\n\u003cp\u003eAssumption:\u003c/p\u003e\n\u003cp\u003evalue=2 means disable and value=1 means enable\u003c/p\u003e\n\u003cp\u003eattribute_id=96 means “status” attribute\u003c/p\u003e\n\u003ch3 id=\"references\"\u003eReferences:\u003c/h3\u003e\n\u003cp\u003e\u003ca href=\"https://gist.github.com/tegansnyder/8464261#gistcomment-2910808\"\u003ehttps://gist.github.com/tegansnyder/8464261#gistcomment-2910808\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://magento.stackexchange.com/a/83033/32283\"\u003ehttps://magento.stackexchange.com/a/83033/32283\u003c/a\u003e\u003c/p\u003e","title":"How to disable products in Magento2 which dont have any gallery image?"},{"content":"\u0026lt;?php // WORKS FOR JPEG IMAGES ONLY. FOR PNG, change function names // also create a folder named \u0026#34;out\u0026#34; in the $datadir folder ///only 4 lines to be edited //1. dir in which your image files are present $datadir=\u0026#34;J:/dgcert/\u0026#34;; //2. Expected min. Width of the output file $_outw=840; //3. Expected min. Height of the output file $_outh=840; //4. output folder (inside datadir) $outfolder= \u0026#39;/out/\u0026#39;; //5. force final size -- -- If set to 1/true then line 2 and 3 will become max sizes of output image // TO BE DONE IN FUTURE . does not work as of now $forcesize=0; ////// no more edits needed $files=array_diff(scandir($datadir),array(\u0026#34;.\u0026#34;,\u0026#34;..\u0026#34;)); foreach ($files as $file) { if(is_file($datadir.\u0026#39;/\u0026#39;.$file)){\t$outw=$_outw; $outh=$_outh; $mugl_im= imagecreatefromjpeg($datadir.$file); list($thiswidth, $thisheight)= getimagesize($datadir.$file); if($outw\u0026lt;$thiswidth) $outw=$thiswidth; if($outh\u0026lt;$thisheight) $outh=$thisheight; if($outw\u0026lt;$outh)$outw=$outh; if($outh\u0026lt;$outw)$outh=$outw; //echo $width . $height;exit; $thumb = imagecreatetruecolor($outw, $outh); //white color rgb $bg = imagecolorallocate ( $thumb, 255, 255, 255 ); imagefilledrectangle($thumb,0,0,$outw,$outh,$bg); imagecopyresized($thumb,$mugl_im,ceil(($outw-$thiswidth)/2),ceil(($outh-$thisheight)/2),0,0,$thiswidth,$thisheight,$thiswidth,$thisheight); imagejpeg($thumb,$datadir.$outfolder.$file); imagedestroy($thumb); imagedestroy($mugl_im); } } ?\u0026gt; ","permalink":"https://tutes.in/how-to-batch-edit-multiple-images-to-make-square-sized-pictures-with-original-image-in-center-using-php-imagejpeg/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e\u0026lt;?\u003c/span\u003e\u003cspan class=\"nx\"\u003ephp\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e// WORKS FOR JPEG IMAGES ONLY. FOR PNG, change function names\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e// also create a folder named \u0026#34;out\u0026#34; in the $datadir folder\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e///only 4 lines to be edited\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e//1. dir in which your image files are present\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$datadir\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;J:/dgcert/\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e//2. Expected min. Width of the output file\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$_outw\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"mi\"\u003e840\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e//3. Expected min. Height of the output file\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$_outh\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"mi\"\u003e840\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e//4. output folder (inside datadir)\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$outfolder\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;/out/\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e//5. force final size -- -- If set to 1/true then line 2 and 3 will become max sizes of output image\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e// TO BE DONE IN FUTURE . does not work as of now\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$forcesize\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e////// no more edits needed\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$files\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nx\"\u003earray_diff\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003escandir\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$datadir\u003c/span\u003e\u003cspan class=\"p\"\u003e),\u003c/span\u003e\u003cspan class=\"k\"\u003earray\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;.\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;..\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e));\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eforeach\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$files\u003c/span\u003e \u003cspan class=\"k\"\u003eas\u003c/span\u003e \u003cspan class=\"nv\"\u003e$file\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eis_file\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$datadir\u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;/\u0026#39;\u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"nv\"\u003e$file\u003c/span\u003e\u003cspan class=\"p\"\u003e)){\u003c/span\u003e\t\t\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$outw\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nv\"\u003e$_outw\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$outh\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nv\"\u003e$_outh\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$mugl_im\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003eimagecreatefromjpeg\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$datadir\u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"nv\"\u003e$file\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003elist\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$thiswidth\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nv\"\u003e$thisheight\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003egetimagesize\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$datadir\u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"nv\"\u003e$file\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$outw\u003c/span\u003e\u003cspan class=\"o\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"nv\"\u003e$thiswidth\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"nv\"\u003e$outw\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nv\"\u003e$thiswidth\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$outh\u003c/span\u003e\u003cspan class=\"o\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"nv\"\u003e$thisheight\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"nv\"\u003e$outh\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nv\"\u003e$thisheight\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$outw\u003c/span\u003e\u003cspan class=\"o\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"nv\"\u003e$outh\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"nv\"\u003e$outw\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nv\"\u003e$outh\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$outh\u003c/span\u003e\u003cspan class=\"o\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"nv\"\u003e$outw\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"nv\"\u003e$outh\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nv\"\u003e$outw\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e//echo $width . $height;exit;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$thumb\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003eimagecreatetruecolor\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$outw\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nv\"\u003e$outh\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e//white color rgb\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$bg\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003eimagecolorallocate\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e \u003cspan class=\"nv\"\u003e$thumb\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"mi\"\u003e255\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"mi\"\u003e255\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"mi\"\u003e255\u003c/span\u003e \u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eimagefilledrectangle\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$thumb\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nv\"\u003e$outw\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nv\"\u003e$outh\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nv\"\u003e$bg\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eimagecopyresized\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$thumb\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nv\"\u003e$mugl_im\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nx\"\u003eceil\u003c/span\u003e\u003cspan class=\"p\"\u003e((\u003c/span\u003e\u003cspan class=\"nv\"\u003e$outw\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u003c/span\u003e\u003cspan class=\"nv\"\u003e$thiswidth\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"o\"\u003e/\u003c/span\u003e\u003cspan class=\"mi\"\u003e2\u003c/span\u003e\u003cspan class=\"p\"\u003e),\u003c/span\u003e\u003cspan class=\"nx\"\u003eceil\u003c/span\u003e\u003cspan class=\"p\"\u003e((\u003c/span\u003e\u003cspan class=\"nv\"\u003e$outh\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u003c/span\u003e\u003cspan class=\"nv\"\u003e$thisheight\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"o\"\u003e/\u003c/span\u003e\u003cspan class=\"mi\"\u003e2\u003c/span\u003e\u003cspan class=\"p\"\u003e),\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nv\"\u003e$thiswidth\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nv\"\u003e$thisheight\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nv\"\u003e$thiswidth\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nv\"\u003e$thisheight\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eimagejpeg\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$thumb\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nv\"\u003e$datadir\u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"nv\"\u003e$outfolder\u003c/span\u003e\u003cspan class=\"o\"\u003e.\u003c/span\u003e\u003cspan class=\"nv\"\u003e$file\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eimagedestroy\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$thumb\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eimagedestroy\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$mugl_im\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"cp\"\u003e?\u0026gt;\u003c/span\u003e\u003cspan class=\"err\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"How to batch edit multiple images to make square sized pictures with original image in center using php imagejpeg?"},{"content":"SET FOREIGN_KEY_CHECKS = 0; SET GROUP_CONCAT_MAX_LEN=32768; SET @tables = NULL; SELECT GROUP_CONCAT(\u0026#39;`\u0026#39;, table_name, \u0026#39;`\u0026#39;) INTO @tables FROM information_schema.tables WHERE table_schema = (SELECT DATABASE()); SELECT IFNULL(@tables,\u0026#39;dummy\u0026#39;) INTO @tables; SET @tables = CONCAT(\u0026#39;DROP TABLE IF EXISTS \u0026#39;, @tables); PREPARE stmt FROM @tables; EXECUTE stmt; DEALLOCATE PREPARE stmt; SET FOREIGN_KEY_CHECKS = 1; Will not work via phpmyadmin or any script. this has to be run in cmd/terminal\nQuick Command\nwget https://gist.githubusercontent.com/harshvardhanmalpani/e670a8de7aa81673364dd48f125cb9ac/raw/ce04b319bf1594d148d3346e1474119fe1cd1b3f/flushdb.sql mysql -hYOUR_DATABASE_HOSTNAME -uYOUR_DATABASE_USER -p YOUR_DATABASE_NAME \u0026lt; flushdb.sql *Source:* https://gist.github.com/harshvardhanmalpani/e670a8de7aa81673364dd48f125cb9ac\n","permalink":"https://tutes.in/how-to-wipe-all-the-tables-and-data-in-mysql-clean-whole-database/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-sql\" data-lang=\"sql\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eSET\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eFOREIGN_KEY_CHECKS\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eSET\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eGROUP_CONCAT_MAX_LEN\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"mi\"\u003e32768\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eSET\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e@\u003c/span\u003e\u003cspan class=\"n\"\u003etables\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eNULL\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eSELECT\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eGROUP_CONCAT\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;`\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003etable_name\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;`\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eINTO\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e@\u003c/span\u003e\u003cspan class=\"n\"\u003etables\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"w\"\u003e  \u003c/span\u003e\u003cspan class=\"k\"\u003eFROM\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003einformation_schema\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003etables\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"w\"\u003e  \u003c/span\u003e\u003cspan class=\"k\"\u003eWHERE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003etable_schema\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"k\"\u003eSELECT\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eDATABASE\u003c/span\u003e\u003cspan class=\"p\"\u003e());\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eSELECT\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eIFNULL\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"o\"\u003e@\u003c/span\u003e\u003cspan class=\"n\"\u003etables\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;dummy\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eINTO\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e@\u003c/span\u003e\u003cspan class=\"n\"\u003etables\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"w\"\u003e \n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eSET\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e@\u003c/span\u003e\u003cspan class=\"n\"\u003etables\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eCONCAT\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;DROP TABLE IF EXISTS \u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e@\u003c/span\u003e\u003cspan class=\"n\"\u003etables\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003ePREPARE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003estmt\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eFROM\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e@\u003c/span\u003e\u003cspan class=\"n\"\u003etables\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eEXECUTE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003estmt\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eDEALLOCATE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003ePREPARE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003estmt\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eSET\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eFOREIGN_KEY_CHECKS\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eWill not work via phpmyadmin or any script. this has to be run in cmd/terminal\u003c/p\u003e\n\u003cp\u003eQuick Command\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ewget https://gist.githubusercontent.com/harshvardhanmalpani/e670a8de7aa81673364dd48f125cb9ac/raw/ce04b319bf1594d148d3346e1474119fe1cd1b3f/flushdb.sql\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003emysql -hYOUR_DATABASE_HOSTNAME -uYOUR_DATABASE_USER -p YOUR_DATABASE_NAME \u0026lt; flushdb.sql\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003e*\u003cem\u003eSource:*\u003c/em\u003e \u003ca href=\"https://gist.github.com/harshvardhanmalpani/e670a8de7aa81673364dd48f125cb9ac\"\u003ehttps://gist.github.com/harshvardhanmalpani/e670a8de7aa81673364dd48f125cb9ac\u003c/a\u003e\u003c/p\u003e","title":"How to wipe all the tables and data in MySQL? Clean whole database"},{"content":"This is not CMS or software specific. Can be used for shopify, magento, wordpress or any other cart page\nAssumption: All the cart items have an input field for quantity in case they want to change qty for any item\nAssumption:\nAll those input fields can be selected using queryselector. Either they have common name attribute or a common class.\nPurpose:\nWe want to change class of update button to show that he has to press update button because quantities have been altered.\nSo lets get started:\njs code:\n1 2 3 4 5 6 7 8 9 10 11 12 $(document).ready(function($){ //please change query selector for qty inputs in line 3 and 5 var ini_values = $(\u0026#34;input[name=\u0026#39;updates[]\u0026#39;]\u0026#34;).map(function(){return $(this).val();}).get(); $(\u0026#34;.quantity input\u0026#34;).change(function(){ let new_values = $(\u0026#34;input[name=\u0026#39;updates[]\u0026#39;]\u0026#34;).map(function(){return $(this).val();}).get(); if(JSON.stringify(ini_values)!=JSON.stringify(new_values)) { //change selector for update button $(\u0026#34;#update-cart\u0026#34;).addClass(\u0026#34;pressme\u0026#34;); } else { $(\u0026#34;#update-cart\u0026#34;).removeClass(\u0026#34;pressme\u0026#34;);} }); }); css code if needed\n.pressme{background: white !important; border-color: #109ff6 !important; color: black !important; animation: blink 1s linear infinite;} @keyframes blink{ 0%{opacity: 0;} 50%{opacity: .5;} 100%{opacity: 1;} } Reference: https://stackoverflow.com/a/24503913/2229148\n","permalink":"https://tutes.in/how-to-track-qty-changes-in-cart/","summary":"\u003cp\u003eThis is not CMS or software specific. Can be used for shopify, magento, wordpress or any other cart page\u003c/p\u003e\n\u003cp\u003eAssumption: \u003cbr\u003e\nAll the cart items have an input field for quantity in case they want to change qty for any item\u003c/p\u003e\n\u003cp\u003eAssumption:\u003cbr\u003e\nAll those input fields can be selected using queryselector. Either they have common name attribute or a common class.\u003c/p\u003e\n\u003cp\u003ePurpose:\u003cbr\u003e\nWe want to change class of update button to show that he has to press update button because quantities have been altered.\u003c/p\u003e","title":"How to track qty changes in cart?"},{"content":"Sorry this is not a detailed description but a summary with all code\nAdd available quantities first – as shown in this article – How to show stock quantities in all variants of shopify ^The above part is utmost necessary. because the following functions use previous js variables.\nSo here we go. Good Luck!!\njavascript on the product page\n\u0026lt;script\u0026gt; $(document).ready(function($){ var $j=new jQuery.noConflict(); var qtyinput=$j(\u0026#34;#quantity\u0026#34;); var qtyplus=$j(\u0026#34;#qtyplus\u0026#34;); var maxallowed=parseInt($j(qtyinput).attr(\u0026#39;max\u0026#39;)); var qtyminus=$j(\u0026#34;#qtyminus\u0026#34;); var qtyvalue=parseInt($j(qtyinput).val()); setTimeout(function(){$j(qtyminus).removeClass(\u0026#34;hidden\u0026#34;); $j(qtyplus).removeClass(\u0026#34;hidden\u0026#34;); },8000); $j(qtyminus).click(function($){ qtyvalue=parseInt($j(qtyinput).val()); maxallowed=parseInt($j(qtyinput).attr(\u0026#39;max\u0026#39;)); if(qtyvalue\u0026lt;2){checkFreeze(); return;} $j(qtyinput).val(qtyvalue-1); checkFreeze(); }); $j(qtyplus).click(function($){ qtyvalue=parseInt($j(qtyinput).val()); maxallowed=parseInt($j(qtyinput).attr(\u0026#39;max\u0026#39;)); // console.log(qtyvalue + \u0026#34; -- - -\u0026#34; + maxallowed); if(maxallowed\u0026lt;=qtyvalue){ checkFreeze(); return;} $j(qtyinput).val(qtyvalue+1); checkFreeze(); }); }); \u0026lt;/script\u0026gt; html tags on product page. make sure you add these AROUND quantity input\n1 2 3 \u0026lt;a id=qtyminus class=\u0026#34;freeze fa fa-minus hidden\u0026#34;\u0026gt;\u0026lt;/a\u0026gt; \u0026lt;input class=\u0026#34;select-on-focus\u0026#34; min=1 type=\u0026#34;text\u0026#34; size=\u0026#34;3\u0026#34; id=\u0026#34;quantity\u0026#34; name=\u0026#34;quantity\u0026#34; value=\u0026#34;1\u0026#34; {% if issingle %}max=\u0026#34;{{ current_variant.inventory_quantity }}\u0026#34; {% endif; %}/\u0026gt; \u0026lt;a id=qtyplus class=\u0026#34;{% if current_variant.inventory_quantity==1 %}freeze {% endif; %}fa fa-plus hidden\u0026#34;\u0026gt;\u0026lt;/a\u0026gt; javascript function inside your theme.js. Reason: so that this gets loaded aka defined before updateSku is called()\nfunction checkFreeze(){ $j=new jQuery.noConflict(); var qtyinput=$j(\u0026#34;#quantity\u0026#34;); var qtyplus=$j(\u0026#34;#qtyplus\u0026#34;); var maxallowed=parseInt($j(qtyinput).attr(\u0026#39;max\u0026#39;)); var qtyminus=$j(\u0026#34;#qtyminus\u0026#34;); var qtyvalue=parseInt($j(qtyinput).val()); //alert(\u0026#34;max is \u0026#34;+maxallowed); if(maxallowed==0 || maxallowed===undefined){ $j(qtyplus,qtyminus).addClass(\u0026#34;freeze\u0026#34;); $j(qtyinput).val(0); return; } qtyvalue=parseInt($j(qtyinput).val()); if(qtyvalue\u0026gt;=maxallowed){//newval=1; $j(qtyinput).val(maxallowed); $j(qtyplus).addClass(\u0026#34;freeze\u0026#34;); } else{ if(qtyvalue\u0026lt;1) $j(qtyinput).val(1); $j(qtyplus).removeClass(\u0026#34;freeze\u0026#34;); } qtyvalue=parseInt($j(qtyinput).val()); if(qtyvalue\u0026gt;1){ $j(qtyminus).removeClass(\u0026#34;freeze\u0026#34;);} else { $j(qtyminus).addClass(\u0026#34;freeze\u0026#34;); } }; changes in function updatesku. Add these lines inside the function. Make sure you have already followed part1\nif(inv_qty[ variant.id ]!==undefined)$(\u0026#34;#quantity\u0026#34;).attr(\u0026#39;max\u0026#39;,inv_qty[ variant.id ]); else $(\u0026#34;#quantity\u0026#34;).attr(\u0026#39;max\u0026#39;,0); $(document).ready(function(){checkFreeze();}); After making changes as discussed in part1 and this article, the final updatesku function looks somewhat this\n_.updateSku = function(variant, $container){ $container.find(\u0026#39;.sku .sku__value\u0026#39;).html( variant ? variant.sku : \u0026#39;\u0026#39; ); $container.find(\u0026#39;.sku\u0026#39;).toggleClass(\u0026#39;sku--no-sku\u0026#39;, !variant || !variant.sku); if(inv_qty[ variant.id ] \u0026lt;1 || inv_qty[ variant.id ]==undefined)$(\u0026#34;#stockstatus\u0026#34;).html(\u0026#34;\u0026lt;p class=bomb\u0026gt;Sold Out!\u0026lt;/span\u0026gt;\u0026lt;/p\u0026gt;\u0026#34;); else if(inv_qty[ variant.id ] \u0026lt;6)$(\u0026#34;#stockstatus\u0026#34;).html(\u0026#34;\u0026lt;p class=fire\u0026gt;Hurry! Only \u0026lt;span class=\u0026#39;variant-inventory\u0026#39;\u0026gt;\u0026#34;+ inv_qty[ variant.id ] + \u0026#34;\u0026lt;/span\u0026gt; left in stock.\u0026lt;/p\u0026gt;\u0026#34;); else $(\u0026#34;#stockstatus\u0026#34;).html(\u0026#34;\u0026lt;p class=grass\u0026gt;\u0026lt;span class=\u0026#39;variant-inventory\u0026#39;\u0026gt;\u0026#34;+ inv_qty[ variant.id ] + \u0026#34;\u0026lt;/span\u0026gt; available in stock.\u0026lt;/p\u0026gt;\u0026#34;); if(inv_qty[ variant.id ]!==undefined)$(\u0026#34;#quantity\u0026#34;).attr(\u0026#39;max\u0026#39;,inv_qty[ variant.id ]); else $(\u0026#34;#quantity\u0026#34;).attr(\u0026#39;max\u0026#39;,0); $(document).ready(function(){checkFreeze();}); } CSS – can be added in custom.css\n#qtydiv a{border: 1px solid #777; border-radius: 3px; font-size: 16px; padding: 0; line-height: 30px; width: 30px; background: #efefef; color: #444; height: 30px; vertical-align: baseline; text-align: center; cursor: pointer; margin:0 5px;} #qtydiv a.freeze{cursor:not-allowed; border: 1px solid #eee; color: #bcbcbc;} ","permalink":"https://tutes.in/how-to-add-qty-plus-minus-buttons-in-shopify/","summary":"\u003cp\u003eSorry this is not a detailed description but a summary with all code\u003c/p\u003e\n\u003ch2 id=\"add-available-quantities-first--as-shown-in-this-article--how-to-show-stock-quantities-in-all-variants-of-shopify\"\u003eAdd available quantities first – as shown in this article – \u003ca href=\"/how-to-show-stock-quantity-for-all-variants-in-shopify/\"\u003eHow to show stock quantities in all variants of shopify\u003c/a\u003e\u003c/h2\u003e\n\u003cp\u003e\u003cem\u003e^The above part is utmost necessary. because the following functions use previous js variables.\u003c/em\u003e\u003c/p\u003e\n\u003cp\u003eSo here we go. Good Luck!!\u003c/p\u003e\n\u003cp\u003ejavascript on the product page\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-javascript\" data-lang=\"javascript\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"nx\"\u003escript\u003c/span\u003e\u003cspan class=\"o\"\u003e\u0026gt;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"nx\"\u003e$\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nb\"\u003edocument\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eready\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"kd\"\u003efunction\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003e$\u003c/span\u003e\u003cspan class=\"p\"\u003e){\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e       \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kd\"\u003evar\u003c/span\u003e  \u003cspan class=\"nx\"\u003e$j\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"k\"\u003enew\u003c/span\u003e \u003cspan class=\"nx\"\u003ejQuery\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003enoConflict\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kd\"\u003evar\u003c/span\u003e \u003cspan class=\"nx\"\u003eqtyinput\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nx\"\u003e$j\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;#quantity\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kd\"\u003evar\u003c/span\u003e \u003cspan class=\"nx\"\u003eqtyplus\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nx\"\u003e$j\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;#qtyplus\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kd\"\u003evar\u003c/span\u003e \u003cspan class=\"nx\"\u003emaxallowed\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nb\"\u003eparseInt\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003e$j\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eqtyinput\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eattr\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;max\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e));\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kd\"\u003evar\u003c/span\u003e \u003cspan class=\"nx\"\u003eqtyminus\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nx\"\u003e$j\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;#qtyminus\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      \u003cspan class=\"kd\"\u003evar\u003c/span\u003e \u003cspan class=\"nx\"\u003eqtyvalue\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nb\"\u003eparseInt\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003e$j\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eqtyinput\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eval\u003c/span\u003e\u003cspan class=\"p\"\u003e());\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nx\"\u003esetTimeout\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"kd\"\u003efunction\u003c/span\u003e\u003cspan class=\"p\"\u003e(){\u003c/span\u003e\u003cspan class=\"nx\"\u003e$j\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eqtyminus\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eremoveClass\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;hidden\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nx\"\u003e$j\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eqtyplus\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eremoveClass\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;hidden\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e},\u003c/span\u003e\u003cspan class=\"mi\"\u003e8000\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nx\"\u003e$j\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eqtyminus\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eclick\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"kd\"\u003efunction\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003e$\u003c/span\u003e\u003cspan class=\"p\"\u003e){\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      \u003cspan class=\"nx\"\u003eqtyvalue\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nb\"\u003eparseInt\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003e$j\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eqtyinput\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eval\u003c/span\u003e\u003cspan class=\"p\"\u003e());\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      \u003cspan class=\"nx\"\u003emaxallowed\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nb\"\u003eparseInt\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003e$j\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eqtyinput\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eattr\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;max\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e));\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      \u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eqtyvalue\u003c/span\u003e\u003cspan class=\"o\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"mi\"\u003e2\u003c/span\u003e\u003cspan class=\"p\"\u003e){\u003c/span\u003e\u003cspan class=\"nx\"\u003echeckFreeze\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e \u003cspan class=\"k\"\u003ereturn\u003c/span\u003e\u003cspan class=\"p\"\u003e;}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e       \u003cspan class=\"nx\"\u003e$j\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eqtyinput\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eval\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eqtyvalue\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e                \u003cspan class=\"nx\"\u003echeckFreeze\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e    \u003cspan class=\"p\"\u003e});\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nx\"\u003e$j\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eqtyplus\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eclick\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"kd\"\u003efunction\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003e$\u003c/span\u003e\u003cspan class=\"p\"\u003e){\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      \u003cspan class=\"nx\"\u003eqtyvalue\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nb\"\u003eparseInt\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003e$j\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eqtyinput\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eval\u003c/span\u003e\u003cspan class=\"p\"\u003e());\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      \u003cspan class=\"nx\"\u003emaxallowed\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nb\"\u003eparseInt\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003e$j\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eqtyinput\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eattr\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;max\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e));\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      \u003cspan class=\"c1\"\u003e//    console.log(qtyvalue + \u0026#34; -- - -\u0026#34; + maxallowed);\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      \u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003emaxallowed\u003c/span\u003e\u003cspan class=\"o\"\u003e\u0026lt;=\u003c/span\u003e\u003cspan class=\"nx\"\u003eqtyvalue\u003c/span\u003e\u003cspan class=\"p\"\u003e){\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nx\"\u003echeckFreeze\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e \u003cspan class=\"k\"\u003ereturn\u003c/span\u003e\u003cspan class=\"p\"\u003e;}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nx\"\u003e$j\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eqtyinput\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eval\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eqtyvalue\u003c/span\u003e\u003cspan class=\"o\"\u003e+\u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e           \u003cspan class=\"nx\"\u003echeckFreeze\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e         \u003cspan class=\"p\"\u003e});\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"p\"\u003e});\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"o\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"err\"\u003e/script\u0026gt;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003ehtml tags on product page. make sure you add these \u003cstrong\u003eAROUND\u003c/strong\u003e quantity input\u003c/p\u003e","title":"How to add qty plus minus buttons in shopify?"},{"content":"$a=array(56,7,6,8,5,34); $b=array( array(6,\u0026#34;34er34\u0026#34;,44), array(8,\u0026#34;34d34\u0026#34;,44), array(7,\u0026#34;343th4\u0026#34;,44), array(34,\u0026#34;343d4\u0026#34;,44), array(56,\u0026#34;3434\u0026#34;,44), array(5,\u0026#34;343gh4\u0026#34;,44)); $d=array_column($b,0); var_dump($d); $g=[]; foreach($a as $c) { $f=array_search($c,$d); if($f!==false) $g[]=$b[$f]; } var_export($g); ","permalink":"https://tutes.in/sort-keys-of-an-array-based-on-order-of-values-in-another-array-php/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$a\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"k\"\u003earray\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e56\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e7\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e6\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e8\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e5\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e34\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$b\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"k\"\u003earray\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003earray\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e6\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;34er34\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e44\u003c/span\u003e\u003cspan class=\"p\"\u003e),\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003earray\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e8\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;34d34\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e44\u003c/span\u003e\u003cspan class=\"p\"\u003e),\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003earray\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e7\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;343th4\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e44\u003c/span\u003e\u003cspan class=\"p\"\u003e),\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003earray\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e34\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;343d4\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e44\u003c/span\u003e\u003cspan class=\"p\"\u003e),\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003earray\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e56\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;3434\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e44\u003c/span\u003e\u003cspan class=\"p\"\u003e),\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003earray\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e5\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;343gh4\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e44\u003c/span\u003e\u003cspan class=\"p\"\u003e));\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$d\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nx\"\u003earray_column\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$b\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003evar_dump\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$d\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$g\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"p\"\u003e[];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eforeach\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$a\u003c/span\u003e \u003cspan class=\"k\"\u003eas\u003c/span\u003e \u003cspan class=\"nv\"\u003e$c\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"nv\"\u003e$f\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nx\"\u003earray_search\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$c\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nv\"\u003e$d\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$f\u003c/span\u003e\u003cspan class=\"o\"\u003e!==\u003c/span\u003e\u003cspan class=\"k\"\u003efalse\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      \u003cspan class=\"nv\"\u003e$g\u003c/span\u003e\u003cspan class=\"p\"\u003e[]\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nv\"\u003e$b\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"nv\"\u003e$f\u003c/span\u003e\u003cspan class=\"p\"\u003e];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003evar_export\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$g\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Sort keys of an array based on order of values in another array – PHP"},{"content":"By default, Woocommerce only validates ZIP code of few countries only. Woocommerce stores in India, are thus invalidated in case of PINCODE inputs from customers. Here is how you can enable checking of pincode for India woocommerce:\nPut the following code in your custom function file or child theme functions.php\nadd_filter(\u0026#39;woocommerce_validate_postcode\u0026#39;,\u0026#39;validate_indian_postcode\u0026#39;,10,3); function validate_indian_postcode($valid, $postcode, $country){ if($country==\u0026#34;IN\u0026#34;) $valid = (bool) preg_match( \u0026#39;/^([0-9]{6})$/\u0026#39;, $postcode ); // checks your $postcode, if valid $valid will be true because of preg_match else false return $valid; } Reference: https://github.com/woocommerce/woocommerce/blob/ef0f527b40dba539e982efff26211fa577a24cf9/includes/class-wc-validation.php#L44\n","permalink":"https://tutes.in/how-to-filter-and-validate-pincode-in-indian-woocommerce/","summary":"\u003cp\u003eBy default, Woocommerce only validates ZIP code of few countries only. Woocommerce stores in India, are thus invalidated in case of PINCODE inputs from customers. Here is how you can enable checking of pincode for India woocommerce:\u003c/p\u003e\n\u003cp\u003ePut the following code in your custom function file or child theme functions.php\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eadd_filter\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;woocommerce_validate_postcode\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;validate_indian_postcode\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e10\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e3\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003efunction\u003c/span\u003e \u003cspan class=\"nf\"\u003evalidate_indian_postcode\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$valid\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nv\"\u003e$postcode\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nv\"\u003e$country\u003c/span\u003e\u003cspan class=\"p\"\u003e){\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$country\u003c/span\u003e\u003cspan class=\"o\"\u003e==\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;IN\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\t\u003cspan class=\"nv\"\u003e$valid\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003ebool\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"nx\"\u003epreg_match\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;/^([0-9]{6})$/\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nv\"\u003e$postcode\u003c/span\u003e \u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"c1\"\u003e// checks your $postcode, if valid $valid will be true because of preg_match else false\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"nv\"\u003e$valid\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch4 id=\"reference\"\u003eReference:\u003c/h4\u003e\n\u003cp\u003e\u003ca href=\"https://github.com/woocommerce/woocommerce/blob/ef0f527b40dba539e982efff26211fa577a24cf9/includes/class-wc-validation.php#L44\"\u003ehttps://github.com/woocommerce/woocommerce/blob/ef0f527b40dba539e982efff26211fa577a24cf9/includes/class-wc-validation.php#L44\u003c/a\u003e\u003c/p\u003e","title":"How to filter and validate pincode in Indian woocommerce?"},{"content":"How to show “xxx left in stock” on shopify product page? Shopify – show ONLY XX AVAILABLE IN STOCK on product page Start by adding snippet in product-template.liquid\n\u0026lt;div id=\u0026#34;stockstatus\u0026#34;\u0026gt; {% if product.variants.size \u0026lt; 2 %} {% assign current_variant= product.variants.first %} {% endif %} {% if current_variant.inventory_quantity \u0026lt; 1 %} \u0026lt;p class=\u0026#34;zero\u0026#34;\u0026gt;Sold Out!\u0026lt;span class=\u0026#34;variant-inventory\u0026#34;\u0026gt;{{ current_variant.inventory_quantity }}\u0026lt;/span\u0026gt;\u0026lt;/p\u0026gt; {% elsif current_variant.inventory_quantity \u0026lt; 6 %} \u0026lt;p class=\u0026#34;few\u0026#34;\u0026gt;Hurry! Only \u0026lt;span class=\u0026#34;variant-inventory\u0026#34;\u0026gt;{{ current_variant.inventory_quantity }}\u0026lt;/span\u0026gt; left in stock.\u0026lt;/p\u0026gt; {% else %} \u0026lt;p class=\u0026#34;plenty\u0026#34;\u0026gt;\u0026lt;span class=\u0026#34;variant-inventory\u0026#34;\u0026gt;{{ current_variant.inventory_quantity }}\u0026lt;/span\u0026gt; available in stock.\u0026lt;/p\u0026gt; {% endif %} \u0026lt;/div\u0026gt; \u0026lt;script\u0026gt; var inv_qty = {}; {% for var in product.variants %} inv_qty[{{- var.id -}}] = {{ var.inventory_quantity | default: 0 }}; {% endfor %} \u0026lt;/script\u0026gt; Now in theme.js or theme.js.liquid and edit function updateSku / _.updateSku\nif(inv_qty[ variant.id ] \u0026lt;1 || inv_qty[ variant.id ]==undefined)$(\u0026#34;#stockstatus\u0026#34;).html(\u0026#34;\u0026lt;p class=zero\u0026gt;Sold Out!\u0026lt;/span\u0026gt;\u0026lt;/p\u0026gt;\u0026#34;); else if(inv_qty[ variant.id ] \u0026lt;6)$(\u0026#34;#stockstatus\u0026#34;).html(\u0026#34;\u0026lt;p class=few\u0026gt;Hurry! Only \u0026lt;span class=\u0026#39;variant-inventory\u0026#39;\u0026gt;\u0026#34;+ inv_qty[ variant.id ] + \u0026#34;\u0026lt;/span\u0026gt; left in stock.\u0026lt;/p\u0026gt;\u0026#34;); else $(\u0026#34;#stockstatus\u0026#34;).html(\u0026#34;\u0026lt;p class=plenty\u0026gt;\u0026lt;span class=\u0026#39;variant-inventory\u0026#39;\u0026gt;\u0026#34;+ inv_qty[ variant.id ] + \u0026#34;\u0026lt;/span\u0026gt; available in stock.\u0026lt;/p\u0026gt;\u0026#34;); Now add some CSS in custom.css or styles.css\np.zero,p.few,p.plenty{background: #b2e7b2; display: inline-block; padding: 3px 10px;} p.few:before { content: \u0026#34;\\f0e7\u0026#34;; font-family: \u0026#34;FontAwesome\u0026#34;; margin-right: 10px;} p.zero:before { content: \u0026#34;\\f119\u0026#34;; font-family: \u0026#34;FontAwesome\u0026#34;; margin-right: 10px;} p.few,p.zero{color: #fff;background: #eb5050 !important;} Also note, you can add css for the qty number by using selector\n.variant-inventory{font-weight:bold} or more specifically #stockstatus .variant-inventory{font-weight:bold} Hopefully it would work on your theme\nExtend this functionality to show quantity plus minus buttons also References: https://community.shopify.com/c/Shopify-Design/Showing-the-stock-quantity-per-variant/m-p/428953/highlight/true#M111057\nhttps://community.shopify.com/c/Shopify-Design/How-do-I-Show-inventory-quantities-on-product-pages-using-Debut/m-p/330715/highlight/true#M86371\nhttps://community.shopify.com/c/Shopify-Design/See-if-a-product-has-variants/m-p/414669/highlight/true#M107631\n","permalink":"https://tutes.in/how-to-show-stock-quantity-for-all-variants-in-shopify/","summary":"\u003ch2 id=\"how-to-show-xxx-left-in-stock-on-shopify-product-page\"\u003eHow to show “xxx left in stock” on shopify product page?\u003c/h2\u003e\n\u003ch3 id=\"shopify--show-only-xx-available-in-stock-on-product-page\"\u003eShopify – show ONLY XX AVAILABLE IN STOCK on product page\u003c/h3\u003e\n\u003cp\u003eStart by adding snippet in \u003ccode\u003eproduct-template.liquid\u003c/code\u003e\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-html\" data-lang=\"html\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e \u003cspan class=\"p\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"nt\"\u003ediv\u003c/span\u003e \u003cspan class=\"na\"\u003eid\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s\"\u003e\u0026#34;stockstatus\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        {% if product.variants.size \u003cspan class=\"p\"\u003e\u0026lt;\u003c/span\u003e \u003cspan class=\"nt\"\u003e2\u003c/span\u003e \u003cspan class=\"err\"\u003e%}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e          \u003cspan class=\"err\"\u003e{%\u003c/span\u003e \u003cspan class=\"na\"\u003eassign\u003c/span\u003e \u003cspan class=\"na\"\u003ecurrent_variant\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"s\"\u003eproduct.variants.first\u003c/span\u003e \u003cspan class=\"err\"\u003e%}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"err\"\u003e{%\u003c/span\u003e \u003cspan class=\"na\"\u003eendif\u003c/span\u003e \u003cspan class=\"err\"\u003e%}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"err\"\u003e{%\u003c/span\u003e \u003cspan class=\"na\"\u003eif\u003c/span\u003e \u003cspan class=\"na\"\u003ecurrent_variant\u003c/span\u003e\u003cspan class=\"err\"\u003e.\u003c/span\u003e\u003cspan class=\"na\"\u003einventory_quantity\u003c/span\u003e \u003cspan class=\"err\"\u003e\u0026lt;\u003c/span\u003e \u003cspan class=\"na\"\u003e1\u003c/span\u003e \u003cspan class=\"err\"\u003e%}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"err\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"na\"\u003ep\u003c/span\u003e \u003cspan class=\"na\"\u003eclass\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s\"\u003e\u0026#34;zero\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003eSold Out!\u003cspan class=\"p\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"nt\"\u003espan\u003c/span\u003e \u003cspan class=\"na\"\u003eclass\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s\"\u003e\u0026#34;variant-inventory\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e{{ current_variant.inventory_quantity }}\u003cspan class=\"p\"\u003e\u0026lt;/\u003c/span\u003e\u003cspan class=\"nt\"\u003espan\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;\u0026lt;/\u003c/span\u003e\u003cspan class=\"nt\"\u003ep\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        {% elsif current_variant.inventory_quantity \u003cspan class=\"p\"\u003e\u0026lt;\u003c/span\u003e \u003cspan class=\"nt\"\u003e6\u003c/span\u003e \u003cspan class=\"err\"\u003e%}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"err\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"na\"\u003ep\u003c/span\u003e \u003cspan class=\"na\"\u003eclass\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s\"\u003e\u0026#34;few\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003eHurry! Only \u003cspan class=\"p\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"nt\"\u003espan\u003c/span\u003e \u003cspan class=\"na\"\u003eclass\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s\"\u003e\u0026#34;variant-inventory\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e{{ current_variant.inventory_quantity }}\u003cspan class=\"p\"\u003e\u0026lt;/\u003c/span\u003e\u003cspan class=\"nt\"\u003espan\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e left in stock.\u003cspan class=\"p\"\u003e\u0026lt;/\u003c/span\u003e\u003cspan class=\"nt\"\u003ep\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        {% else %}\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"nt\"\u003ep\u003c/span\u003e \u003cspan class=\"na\"\u003eclass\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s\"\u003e\u0026#34;plenty\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;\u0026lt;\u003c/span\u003e\u003cspan class=\"nt\"\u003espan\u003c/span\u003e \u003cspan class=\"na\"\u003eclass\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s\"\u003e\u0026#34;variant-inventory\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e{{ current_variant.inventory_quantity }}\u003cspan class=\"p\"\u003e\u0026lt;/\u003c/span\u003e\u003cspan class=\"nt\"\u003espan\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e available in stock.\u003cspan class=\"p\"\u003e\u0026lt;/\u003c/span\u003e\u003cspan class=\"nt\"\u003ep\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        {% endif %}\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e \u003cspan class=\"p\"\u003e\u0026lt;/\u003c/span\u003e\u003cspan class=\"nt\"\u003ediv\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"nt\"\u003escript\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e     \u003cspan class=\"kd\"\u003evar\u003c/span\u003e \u003cspan class=\"nx\"\u003einv_qty\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"p\"\u003e{};\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e     \u003cspan class=\"p\"\u003e{\u003c/span\u003e\u003cspan class=\"o\"\u003e%\u003c/span\u003e \u003cspan class=\"k\"\u003efor\u003c/span\u003e \u003cspan class=\"kd\"\u003evar\u003c/span\u003e \u003cspan class=\"k\"\u003ein\u003c/span\u003e \u003cspan class=\"nx\"\u003eproduct\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003evariants\u003c/span\u003e \u003cspan class=\"o\"\u003e%\u003c/span\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e           \u003cspan class=\"nx\"\u003einv_qty\u003c/span\u003e\u003cspan class=\"p\"\u003e[{{\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u003c/span\u003e \u003cspan class=\"kd\"\u003evar\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eid\u003c/span\u003e \u003cspan class=\"o\"\u003e-\u003c/span\u003e\u003cspan class=\"p\"\u003e}}]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"p\"\u003e{{\u003c/span\u003e \u003cspan class=\"kd\"\u003evar\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003einventory_quantity\u003c/span\u003e \u003cspan class=\"o\"\u003e|\u003c/span\u003e \u003cspan class=\"k\"\u003edefault\u003c/span\u003e\u003cspan class=\"o\"\u003e:\u003c/span\u003e \u003cspan class=\"mi\"\u003e0\u003c/span\u003e \u003cspan class=\"p\"\u003e}};\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e     \u003cspan class=\"p\"\u003e{\u003c/span\u003e\u003cspan class=\"o\"\u003e%\u003c/span\u003e \u003cspan class=\"nx\"\u003eendfor\u003c/span\u003e \u003cspan class=\"o\"\u003e%\u003c/span\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e\u0026lt;/\u003c/span\u003e\u003cspan class=\"nt\"\u003escript\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eNow in \u003cstrong\u003etheme.js\u003c/strong\u003e or \u003ccode\u003etheme.js.liquid\u003c/code\u003e and edit function \u003cstrong\u003eupdateSku\u003c/strong\u003e / \u003ccode\u003e_.updateSku\u003c/code\u003e\u003c/p\u003e","title":"How to show stock quantity for all variants in shopify?"},{"content":"DMARC stands for Domain-based Message Authentication, Reporting, and Conformance\nIt can be used as a way to prevent specific type of SPAM. Hence it should be added as TXT record in your DNS zone, just like SPF and DKIM signatures.\nExample DMARC policies These are some example policies and how they appear in the DNS TXT record.\nTXT record hostname must be “_dmarc“\nThe values in these examples are defined in DMARC TXT record values, below.\nActions to take for failed DMARC check TXT record contents Take no action on messages that fail the DMARC check. Email a daily report to admin@tutes.in v=DMARC1; p=none; rua=mailto:admin@tutes.in Put 5% of the messages that fail the DMARC check in recipients’ spam folders. Email a daily report to admin@tutes.in v=DMARC1; p=quarantine; pct=5; rua=mailto:admin@tutes.in Reject 100% of messages that fail the DMARC check. Email a daily report to two addresses: postmaster@tutes.in and admin@tutes.in. Failed messages cause an SMTP bounce to the sender. v=DMARC1; p=reject; rua=mailto:postmaster@tutes.in, mailto:admin@tutes.in Further Reading:\nhttps://support.google.com/a/answer/2466580\nhttps://support.google.com/a/answer/2466563?hl=en\u0026amp;ref_topic=2759254\n","permalink":"https://tutes.in/what-is-dmarc-and-how-to-set-it-up/","summary":"\u003cp\u003eDMARC stands for Domain-based Message Authentication, Reporting, and Conformance\u003c/p\u003e\n\u003cp\u003eIt can be used as a way to prevent specific type of SPAM. Hence it should be added as TXT record in your DNS zone, just like SPF and DKIM signatures.\u003c/p\u003e\n\u003ch2 id=\"example-dmarc-policies\"\u003eExample DMARC policies\u003c/h2\u003e\n\u003cp\u003eThese are some example policies and how they appear in the DNS TXT record.\u003c/p\u003e\n\u003cp\u003eTXT record hostname must be “\u003cstrong\u003e_dmarc\u003c/strong\u003e“\u003c/p\u003e\n\u003cp\u003eThe values in these examples are defined in \u003ca href=\"https://support.google.com/a/answer/2466563?hl=en\u0026amp;ref_topic=2759254#dmarc-values\"\u003eDMARC TXT record values\u003c/a\u003e, below.\u003c/p\u003e","title":"What is DMARC and How to set it up?"},{"content":"So I was working on an automation project and was testing the api to upload entitites.\nI used get parameters to send data and wrote a wrapper on server to process that. I used hashes (part of hashes to be precise) to identify the requester instead of using real names.\nsome name came up with hash\n12200e7973d0eecd8d75da83e816783496e440e22210ee72cb5cf37f7989a8ff I was using first 10 characters of this has which happen to be\n12200e7973 If you notice, only alphabet is “e” and all others are digits.\nBut at the same time this is a number in scientific notation\njust the way 1e3 is 1000 because of exponentiation involved. My partial hash string was also being converted and was close to infinity.\nMy api at the backend was checking the given parameter with is_numeric and in this case, my parameter “12200e7973” is 100% numeric (EVEN IF I WAS STORING IT AS A STRING).\nHence my script was failing to save correct data and a major column was left empty in the tables.\nThis was another blunder by me at programming, but you can easily fix it if you use is_int instead of is_numeric because it would fail type checking via is_int.\nOf course I had to edit some code with explicit type casting for other types of api calls which were using IDs instead of hashes to identify the users.\nExample code: (This is Not the exact code, not recommended for production usage)\n// API ENDPOINT $user=isset($_REQUEST[\u0026#39;user\u0026#39;]) ?? $_REQUEST[\u0026#39;user\u0026#39;] : 1; // calling the function with string $user abc (\u0026#34;xyz\u0026#34;,$user); // Normal code: $user=$this-\u0026gt;getLoggedInUser(); $userid=(int)$user; //explicit casting //calling the same function with int val abc(\u0026#34;mnop\u0026#34;,$userid); ","permalink":"https://tutes.in/funny-php-bug-due-to-hashing-and-is_numeric/","summary":"\u003cp\u003eSo I was working on an automation project and was testing the api to upload entitites.\u003c/p\u003e\n\u003cp\u003eI used get parameters to send data and wrote a wrapper on server to process that. I used hashes (part of hashes to be precise) to identify the requester instead of using real names.\u003c/p\u003e\n\u003cp\u003esome name came up with hash\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e12200e7973d0eecd8d75da83e816783496e440e22210ee72cb5cf37f7989a8ff\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eI was using first 10 characters of this has which happen to be\u003c/p\u003e","title":"Funny php bug due to hashing and is_numeric"},{"content":"Let me explain the problem scenario: Let us assume we have a table with 4 columns in it out of which 1 is PRIMARY column and rest 3 contain some data.\nWhat we want to do is to reverse the primary key IDs for that data keeping the rest of data intact. It is like shifting the first row to end and moving last row to starting.\nInitial Data id name email anything 1 jacob whatever how to reverse 3 nathan whosoeverisnathan ids in mysql table column 4 jagmohan idontknowjagmohan without breaking 8 monica iamsexy primary key constraint 9 batman idontexistinrealworld i am batman Data after update id name email anything 9 jacob whatever how to reverse 8 nathan whosoeverisnathan ids in mysql table column 4 jagmohan idontknowjagmohan without breaking 3 monica iamsexy primary key constraint 1 batman idontexistinrealworld i am batman Dude, you are just reversing the column, what is so tough in this? So, this seems simple to reverse an array if isolated by key “id“. But you have to understand that this column is the primary key. So if you run a command to change id for “jacob” to “9“. It will give you error: “Duplicate entry for id 9“\nSo here is my proposed solution, I start with pair of first and last row and then swap them. Then swap second and second last row. and So on…\nIf total rows are odd, we will be left with 1 row which does not need correction because it will already be the middle row.\nIf total rows are even, we would swap middle two rows too.\nHere is my solution in PHP\n$possible_group_id=\u0026#34;3\u0026#34;; $ai=12720; //can be any high int which does not exist in column `id` yet $q=\u0026#34;select id,email from table_name where `possible_group_id`=$possible_group_id order by id asc\u0026#34;; $r=mysqli_query($f,$q); $row_collection=[]; $ct=[]; while($row=mysqli_fetch_row($r)) { $row_collection[]=$row; $ct[]=$row[0]; } $pt=array_reverse($ct); $size=count($row_collection); for($i=0;$i\u0026lt;$size;$i++) { $row_collection[$i][2]=$pt[$i]; } echo \u0026#34;start transaction;\u0026lt;br\u0026gt;\u0026#34;; foreach($row_collection as $k=\u0026gt;$v) { if($k \u0026lt; floor($size/2)){ echo \u0026#39;UPDATE `table_name` SET `id`=\u0026#39;.$ai.\u0026#39; WHERE `email`=\u0026#34;\u0026#39;.$row_collection[$size-$k-1][1].\u0026#39;\u0026#34;;\u0026lt;br\u0026gt;\u0026#39;; echo \u0026#39;UPDATE `table_name` SET `id`=\u0026#39;.$v[2].\u0026#39; WHERE `email`=\u0026#34;\u0026#39;.$v[1].\u0026#39;\u0026#34;;\u0026lt;br\u0026gt;\u0026#39;; echo \u0026#39;UPDATE `table_name` SET `id`=\u0026#39;.$row_collection[$k][0].\u0026#39; WHERE `email`=\u0026#34;\u0026#39;.$row_collection[$size-$k-1][1].\u0026#39;\u0026#34;;\u0026lt;br\u0026gt;\u0026#39;;} else break; } echo \u0026#34;commit;\u0026lt;br\u0026gt;\u0026#34;; It would output this:\nstart transaction; UPDATE `table_name` SET `id`=12720 WHERE `email`=\u0026#34;idontexistinrealworld \u0026#34;; UPDATE `table_name` SET `id`=9 WHERE `email`=\u0026#34;whatever\u0026#34;; UPDATE `table_name` SET `id`=1 WHERE `email`=\u0026#34;idontexistinrealworld \u0026#34;; UPDATE `table_name` SET `id`=12720 WHERE `email`=\u0026#34;iamsexy\u0026#34;; UPDATE `table_name` SET `id`=8 WHERE `email`=\u0026#34;whosoeverisnathan\u0026#34;; UPDATE `table_name` SET `id`=3 WHERE `email`=\u0026#34;iamsexy\u0026#34;; commit; ","permalink":"https://tutes.in/how-to-reverse-the-ids-in-a-mysql-table-column-without-breaking-primary-key-constraint/","summary":"\u003cp\u003eLet me explain the problem scenario: Let us assume we have a table with 4 columns in it out of which 1 is \u003ccode\u003ePRIMARY\u003c/code\u003e column and rest 3 contain some data.\u003c/p\u003e\n\u003cp\u003eWhat we want to do is to reverse the primary key IDs for that data keeping the rest of data intact. It is like shifting the first row to end and moving last row to starting.\u003c/p\u003e\n\u003ch2 id=\"initial-data\"\u003eInitial Data\u003c/h2\u003e\n\u003ctable\u003e\n\t\u003cthead\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003cth\u003e\u003cem\u003eid\u003c/em\u003e\u003c/th\u003e\n\t\t\t\t\t\u003cth\u003e\u003cem\u003ename\u003c/em\u003e\u003c/th\u003e\n\t\t\t\t\t\u003cth\u003e\u003cem\u003eemail\u003c/em\u003e\u003c/th\u003e\n\t\t\t\t\t\u003cth\u003e\u003cem\u003eanything\u003c/em\u003e\u003c/th\u003e\n\t\t\t\u003c/tr\u003e\n\t\u003c/thead\u003e\n\t\u003ctbody\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003e1\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003ejacob\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003ewhatever\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003ehow to reverse\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003e3\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003enathan\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003ewhosoeverisnathan\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003eids in mysql table column\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003e4\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003ejagmohan\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003eidontknowjagmohan\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003ewithout breaking\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003e8\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003emonica\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003eiamsexy\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003eprimary key constraint\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003e9\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003ebatman\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003eidontexistinrealworld\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003ei am batman\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2 id=\"data-after-update\"\u003eData after update\u003c/h2\u003e\n\u003ctable\u003e\n\t\u003cthead\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003cth\u003e\u003cem\u003eid\u003c/em\u003e\u003c/th\u003e\n\t\t\t\t\t\u003cth\u003e\u003cem\u003ename\u003c/em\u003e\u003c/th\u003e\n\t\t\t\t\t\u003cth\u003e\u003cem\u003eemail\u003c/em\u003e\u003c/th\u003e\n\t\t\t\t\t\u003cth\u003e\u003cem\u003eanything\u003c/em\u003e\u003c/th\u003e\n\t\t\t\u003c/tr\u003e\n\t\u003c/thead\u003e\n\t\u003ctbody\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003e9\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003ejacob\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003ewhatever\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003ehow to reverse\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003e8\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003enathan\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003ewhosoeverisnathan\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003eids in mysql table column\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003e4\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003ejagmohan\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003eidontknowjagmohan\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003ewithout breaking\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003e3\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003emonica\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003eiamsexy\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003eprimary key constraint\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003e1\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003ebatman\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003eidontexistinrealworld\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003ei am batman\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2 id=\"dude-you-are-just-reversing-the-column-what-is-so-tough-in-this\"\u003eDude, you are just reversing the column, what is so tough in this?\u003c/h2\u003e\n\u003cp\u003eSo, this seems simple to reverse an array if isolated by key “\u003cem\u003eid\u003c/em\u003e“. But you have to understand that this column is the primary key. So if you run a command to change id for “\u003cem\u003ejacob\u003c/em\u003e” to “\u003cem\u003e\u003cstrong\u003e9\u003c/strong\u003e\u003c/em\u003e“. It will give you error: “\u003ccode\u003eDuplicate entry for id 9\u003c/code\u003e“\u003c/p\u003e","title":"How to reverse the ids in a mysql table column without breaking primary key constraint?"},{"content":"Magento2 has this authentication pop up on checkout page, which many store owners wont like to see on their checkout page.\nBackground of this pop up area and Related files The pop up itself is generated by Magento_Customer::account/authentication-popup.phtml\nBut this pop up works very differently on checkout page. In fact this is a separate pop up than the one you see in header area. It is embedded in a series of js files which are governed by knockout-js\nOther file responsible is: vendor/magento/module-checkout/view/frontend/web/js/proceed-to-checkout.js\nHere is how to remove it finally Edit file or overload the file\napp/design/frontend/YourVendor/YourTheme/Magento_Checkout/web/template/onepage.html\ndelete the following lines and save the file\n7 8 9 \u0026lt;!-- ko foreach: getRegion(\u0026#39;authentication\u0026#39;) --\u0026gt; \u0026lt;!-- ko template: getTemplate() --\u0026gt;\u0026lt;!-- /ko --\u0026gt; \u0026lt;!--/ko--\u0026gt; Reference:\nhttps://github.com/magento/magento2/blob/2.2/app/code/Magento/Checkout/view/frontend/web/template/onepage.html\nhttps://github.com/magento/magento2/blob/fc66fe443d87c4e69fe9022d7c95fe66e0565978/app/code/Magento/Checkout/view/frontend/layout/checkout_index_index.xml#L39\n","permalink":"https://tutes.in/how-to-remove-sign-in-popup-from-magento-2-checkout-page/","summary":"\u003cp\u003eMagento2 has this authentication pop up on checkout page, which many store owners wont like to see on their checkout page.\u003c/p\u003e\n\u003ch4 id=\"background-of-this-pop-up-area-and-related-files\"\u003eBackground of this pop up area and Related files\u003c/h4\u003e\n\u003cp\u003eThe pop up itself is generated by \u003ccode\u003eMagento_Customer::account/authentication-popup.phtml\u003c/code\u003e\u003c/p\u003e\n\u003cp\u003eBut this pop up works very differently on checkout page. In fact this is a separate pop up than the one you see in header area. It is embedded in a series of js files which are governed by knockout-js\u003c/p\u003e","title":"How to remove sign in popup from Magento 2 checkout page?"},{"content":"By default, app/design/Magento/Checkout/view/frontend/web/template/summary/cart-items.html file is being used\nOr vendor/magento/module-checkout/view/frontend/web/template/summary/cart-items.html\nTo overload this file, create file cart-items.html in your theme folder. Make sure you place the file in Magento_Checkout/web/template/summary/\nEdit the line\n\u0026lt;span data-bind=\u0026#34;text: getCartLineItemsCount()\u0026#34;\u0026gt;\u0026lt;/span\u0026gt; And replace it with\n\u0026lt;span data-bind=\u0026#34;text: getItemsQty()\u0026#34;\u0026gt;\u0026lt;/span\u0026gt; Reference Files:\nvendor/magento/module-checkout/view/frontend/web/js/view/summary/cart-items.js https://github.com/magento/magento2/blob/2.2/app/code/Magento/Checkout/view/frontend/web/template/summary/cart-items.html\nhttps://github.com/magento/magento2/blob/2.2/app/code/Magento/Checkout/view/frontend/web/js/view/summary/cart-items.js\n","permalink":"https://tutes.in/how-to-show-correct-item-count-in-magento-2-checkout-order-summary/","summary":"\u003cp\u003eBy default, \u003ccode\u003eapp/design/Magento/Checkout/view/frontend/web/template/summary/cart-items.html\u003c/code\u003e file is being used\u003cbr\u003e\nOr \u003ccode\u003evendor/magento/module-checkout/view/frontend/web/template/summary/cart-items.html\u003c/code\u003e\u003c/p\u003e\n\u003cp\u003eTo overload this file, create file cart-items.html in your theme folder. Make sure you place the file in \u003ccode\u003eMagento_Checkout/web/template/summary/\u003c/code\u003e\u003c/p\u003e\n\u003cp\u003eEdit the line\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-html\" data-lang=\"html\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"nt\"\u003espan\u003c/span\u003e \u003cspan class=\"na\"\u003edata-bind\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s\"\u003e\u0026#34;text: getCartLineItemsCount()\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;\u0026lt;/\u003c/span\u003e\u003cspan class=\"nt\"\u003espan\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eAnd replace it with\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-html\" data-lang=\"html\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"nt\"\u003espan\u003c/span\u003e \u003cspan class=\"na\"\u003edata-bind\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s\"\u003e\u0026#34;text: getItemsQty()\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;\u0026lt;/\u003c/span\u003e\u003cspan class=\"nt\"\u003espan\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eReference Files:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003evendor/magento/module-checkout/view/frontend/web/js/view/summary/cart-items.js\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003e\u003ca href=\"https://github.com/magento/magento2/blob/2.2/app/code/Magento/Checkout/view/frontend/web/template/summary/cart-items.html\"\u003ehttps://github.com/magento/magento2/blob/2.2/app/code/Magento/Checkout/view/frontend/web/template/summary/cart-items.html\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://github.com/magento/magento2/blob/2.2/app/code/Magento/Checkout/view/frontend/web/js/view/summary/cart-items.js\"\u003ehttps://github.com/magento/magento2/blob/2.2/app/code/Magento/Checkout/view/frontend/web/js/view/summary/cart-items.js\u003c/a\u003e\u003c/p\u003e","title":"How to show correct item count in Magento 2 Checkout Order summary?"},{"content":"The following code does not adhere to Magento’s developer recommendations. Using object manager in such a way externally is a TERRIBLE idea.\nComment out line number 2 and then run the script. Edit line 11 and put the attribute code you want to dump\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 \u0026lt;?php header(\u0026#34;Location: /\u0026#34;);exit; use \\Magento\\Framework\\App\\Bootstrap; error_reporting(E_ALL); ini_set(\u0026#34;display_errors\u0026#34;, 1); include(\u0026#39;./app/bootstrap.php\u0026#39;); $bootstrap = Bootstrap::create(BP, $_SERVER); $objectManager = $bootstrap-\u0026gt;getObjectManager(); $eavConfig = $objectManager-\u0026gt;get(\u0026#39;\\Magento\\Eav\\Model\\Config\u0026#39;); $attribute = $eavConfig-\u0026gt;getAttribute(\u0026#39;catalog_product\u0026#39;, \u0026#39;manufacturer\u0026#39;); $options = $attribute-\u0026gt;getSource()-\u0026gt;getAllOptions(); $options = array_slice($options, 1); usort($options, function($a, $b) { return strcasecmp($a[\u0026#39;label\u0026#39;], $b[\u0026#39;label\u0026#39;]); }); if (count($options)) $v = \u0026#34;\u0026lt;table\u0026gt;\u0026#34;; foreach ($options as $option) { $v .= \u0026#34;\u0026lt;tr\u0026gt;\u0026lt;td\u0026gt;\u0026#34; . $option[\u0026#39;value\u0026#39;] . \u0026#39;\u0026lt;/td\u0026gt;\u0026lt;td\u0026gt;\u0026#39; . $option[\u0026#39;label\u0026#39;] . \u0026#39;\u0026lt;/td\u0026gt;\u0026lt;/tr\u0026gt;\u0026#39;; } if (count($options)) $v .= \u0026#34;\u0026lt;/table\u0026gt;\u0026#34;; echo $v; ?\u0026gt; \u0026lt;style\u0026gt; table tr:nth-child(odd){background:#444;color:#fff} \u0026lt;/style\u0026gt; ","permalink":"https://tutes.in/how-to-dump-all-options-for-any-attribute-in-magento-2-programmatically/","summary":"\u003cp\u003eThe following code does not adhere to Magento’s developer recommendations. Using object manager in such a way externally is a TERRIBLE idea.\u003c/p\u003e\n\u003cp\u003eComment out line number 2 and then run the script. Edit line 11 and put the attribute code you want to dump\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cdiv class=\"chroma\"\u003e\n\u003ctable class=\"lntable\"\u003e\u003ctr\u003e\u003ctd class=\"lntd\"\u003e\n\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode\u003e\u003cspan class=\"lnt\"\u003e 1\n\u003c/span\u003e\u003cspan class=\"hl\"\u003e\u003cspan class=\"lnt\"\u003e 2\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"lnt\"\u003e 3\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e 4\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e 5\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e 6\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e 7\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e 8\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e 9\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e10\n\u003c/span\u003e\u003cspan class=\"hl\"\u003e\u003cspan class=\"lnt\"\u003e11\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"lnt\"\u003e12\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e13\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e14\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e15\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e16\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e17\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e18\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e19\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e20\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e21\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e22\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e23\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e24\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e25\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e26\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e27\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e28\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e29\n\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/td\u003e\n\u003ctd class=\"lntd\"\u003e\n\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e\u0026lt;?\u003c/span\u003e\u003cspan class=\"nx\"\u003ephp\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line hl\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eheader\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;Location: /\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\u003cspan class=\"k\"\u003eexit\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003euse\u003c/span\u003e \u003cspan class=\"nx\"\u003e\\Magento\\Framework\\App\\Bootstrap\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eerror_reporting\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"k\"\u003eE_ALL\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eini_set\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;display_errors\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003einclude\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;./app/bootstrap.php\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$bootstrap\u003c/span\u003e     \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003eBootstrap\u003c/span\u003e\u003cspan class=\"o\"\u003e::\u003c/span\u003e\u003cspan class=\"na\"\u003ecreate\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eBP\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nv\"\u003e$_SERVER\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$objectManager\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$bootstrap\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetObjectManager\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$eavConfig\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$objectManager\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003eget\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;\\Magento\\Eav\\Model\\Config\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line hl\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$attribute\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$eavConfig\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetAttribute\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;catalog_product\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;manufacturer\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$options\u003c/span\u003e   \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$attribute\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetSource\u003c/span\u003e\u003cspan class=\"p\"\u003e()\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetAllOptions\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$options\u003c/span\u003e   \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003earray_slice\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$options\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eusort\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$options\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"k\"\u003efunction\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$a\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nv\"\u003e$b\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"nx\"\u003estrcasecmp\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$a\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;label\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e],\u003c/span\u003e \u003cspan class=\"nv\"\u003e$b\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;label\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e]);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e});\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003ecount\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$options\u003c/span\u003e\u003cspan class=\"p\"\u003e))\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nv\"\u003e$v\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;\u0026lt;table\u0026gt;\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eforeach\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$options\u003c/span\u003e \u003cspan class=\"k\"\u003eas\u003c/span\u003e \u003cspan class=\"nv\"\u003e$option\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nv\"\u003e$v\u003c/span\u003e \u003cspan class=\"o\"\u003e.=\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;\u0026lt;tr\u0026gt;\u0026lt;td\u0026gt;\u0026#34;\u003c/span\u003e \u003cspan class=\"o\"\u003e.\u003c/span\u003e \u003cspan class=\"nv\"\u003e$option\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;value\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e.\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;\u0026lt;/td\u0026gt;\u0026lt;td\u0026gt;\u0026#39;\u003c/span\u003e \u003cspan class=\"o\"\u003e.\u003c/span\u003e \u003cspan class=\"nv\"\u003e$option\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;label\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e.\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;\u0026lt;/td\u0026gt;\u0026lt;/tr\u0026gt;\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003ecount\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$options\u003c/span\u003e\u003cspan class=\"p\"\u003e))\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nv\"\u003e$v\u003c/span\u003e \u003cspan class=\"o\"\u003e.=\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;\u0026lt;/table\u0026gt;\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eecho\u003c/span\u003e \u003cspan class=\"nv\"\u003e$v\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"cp\"\u003e?\u0026gt;\u003c/span\u003e\u003cspan class=\"err\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e   \u0026lt;style\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e    table tr:nth-child(odd){background:#444;color:#fff}\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e   \u0026lt;/style\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\u003c/div\u003e\n\u003c/div\u003e","title":"How to dump all options for any attribute in Magento 2 programmatically?"},{"content":"There are 3 possible ways git can find a file changed (even if you didn’t change it)\nLine Endings have changed File permissions have changed Bonus: if modification time has changed for first case try these settings in bash shell. One of these will fix it for you\n$ git config core.eol $ git config core.autocrlf $ git config core.safecrlf For second case, here is the flag\ngit config core.filemode false Bonus One: If Modification time was changed If your working tree has files with updated “last modification time” and you see a huge list of files with “no content changes found”, try this:\ngit add . // ^ dont use . [DOT] if you want to fix for particular sub-folder You can do git add for all affected files, after that it stops displaying them as modified in git status (and doesn’t actually stage them for commit if there are no changes).\nReferences: https://stackoverflow.com/a/37221298/2229148\n","permalink":"https://tutes.in/how-to-remove-files-with-no-content-changes-found-in-git-desktop/","summary":"\u003cp\u003eThere are 3 possible ways git can find a file changed (even if you didn’t change it)\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eLine Endings have changed\u003c/li\u003e\n\u003cli\u003eFile permissions have changed\u003c/li\u003e\n\u003cli\u003eBonus: if modification time has changed\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003efor first case try these settings in bash shell. \u003cstrong\u003eOne of these\u003c/strong\u003e will fix it for you\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e$ git config core.eol\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e$ git config core.autocrlf\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e$ git config core.safecrlf\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eFor second case, here is the flag\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003egit config core.filemode \u003cspan class=\"nb\"\u003efalse\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch3 id=\"bonus-one-if-modification-time-was-changed\"\u003eBonus One: If Modification time was changed\u003c/h3\u003e\n\u003cp\u003eIf your working tree has files with updated “last modification time” and you see a huge list of files with “no content changes found”, try this:\u003c/p\u003e","title":"How to remove files with “No Content Changes Found” in Git Desktop"},{"content":"We use multiple computers in workspace or in home. Often need to share same mouse and keyboard for all because you probably have a wireless/wired keyboard mouse set. here arises the issue that how to share same set of input controllers for both machines.\nBelow are a few free and paid options for you to choose from. They all work as expected when computers are connected via LAN or WiFi\nMouse without Borders Barrier ShareMouse Synergy Microsoft Garage Mouse without Borders This is all time classic program to share clipboard, mouse movements and what not. For windows to windows mouse sharing this is the best.\nIt is FREE too\nBarrier This is best alternative in FREE category. It supports MAC OS and Windows both. so this is the one you should go with if you dont have just windows machines.\nSharemouse This is a good one for cross OSs. It supports both windows and apple mac. Free version is okayish. Can get a bit buggy if you are using a HDMI switch for same monitor mirroring. But still gets the job done.\nIf you got some bucks to spare, use the paid version which has more features\nSynergy Synergy is the best paid software for this purpose. HANDS DOWN\nSupports MAC, Windows and Linux just like the others but provides you support (because you have paid)\n","permalink":"https://tutes.in/mouse-and-keyboard-sharing-across-computers/","summary":"\u003cp\u003eWe use multiple computers in workspace or in home. Often need to share same mouse and keyboard for all because you probably have a wireless/wired keyboard mouse set. here arises the issue that how to share same set of input controllers for both machines.\u003c/p\u003e\n\u003cp\u003eBelow are a few free and paid options for you to choose from. They all work as expected when computers are connected via LAN or WiFi\u003c/p\u003e","title":"Mouse and Keyboard sharing across Computers"},{"content":"Put the following code in console.\nrequire([\u0026#34;jquery\u0026#34;],function($){ $( \u0026#34;.mselect-fixed label\u0026#34; ).each(function( index ) { if($(this).children(\u0026#34;input\u0026#34;).hasClass(\u0026#34;mselect-checked\u0026#34;)){} else $(this).trigger(\u0026#39;click\u0026#39;); }); }); ","permalink":"https://tutes.in/magento-2-multi-select-click-all-code-tax-rates/","summary":"\u003cp\u003ePut the following code in console.\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-javascript\" data-lang=\"javascript\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003erequire\u003c/span\u003e\u003cspan class=\"p\"\u003e([\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;jquery\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e],\u003c/span\u003e\u003cspan class=\"kd\"\u003efunction\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003e$\u003c/span\u003e\u003cspan class=\"p\"\u003e){\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"nx\"\u003e$\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;.mselect-fixed label\u0026#34;\u003c/span\u003e \u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eeach\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"kd\"\u003efunction\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e \u003cspan class=\"nx\"\u003eindex\u003c/span\u003e \u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003e$\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"k\"\u003ethis\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003echildren\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;input\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003ehasClass\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;mselect-checked\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e)){}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  \u003cspan class=\"k\"\u003eelse\u003c/span\u003e \u003cspan class=\"nx\"\u003e$\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"k\"\u003ethis\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003etrigger\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;click\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"p\"\u003e});\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e});\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Magento 2 Multi Select click all code – Tax Rates"},{"content":"I received this error “Fatal Error: Uncaught error in Undefined class constant ‘ARRAY_AS_PROPS\u0026rsquo;”\nThis issue is not related to PHP if you have 7.0 and above, it is zend framework’s module zend-http wrapper which is affected if Apache module is not present\nFile responsible: zendframework\\zend-http\\src\\Header\\Cookie.php:75\n73 74 75 76 public function __construct(array $array = []) { parent::__construct($array, ArrayObject::ARRAY_AS_PROPS); } Solution Do check enabled modules for Apache, I found out that mod_expires was not enabled. So I edited httpd.conf and enabled mod_expires\nI also enabled Zend Opcache in php.ini to make it run smooth on multiple pageloads.\n","permalink":"https://tutes.in/how-to-fix-undefined-class-constant-array_as_props-fatal-error/","summary":"\u003cp\u003eI received this error “Fatal Error: Uncaught error in Undefined class constant ‘ARRAY_AS_PROPS\u0026rsquo;”\u003cbr\u003e\nThis issue is not related to PHP if you have 7.0 and above, it is zend framework’s module zend-http wrapper which is affected if Apache module is not present\u003c/p\u003e\n\u003cp\u003eFile responsible: zendframework\\zend-http\\src\\Header\\Cookie.php:75\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cdiv class=\"chroma\"\u003e\n\u003ctable class=\"lntable\"\u003e\u003ctr\u003e\u003ctd class=\"lntd\"\u003e\n\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode\u003e\u003cspan class=\"lnt\"\u003e73\n\u003c/span\u003e\u003cspan class=\"lnt\"\u003e74\n\u003c/span\u003e\u003cspan class=\"hl\"\u003e\u003cspan class=\"lnt\"\u003e75\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"lnt\"\u003e76\n\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/td\u003e\n\u003ctd class=\"lntd\"\u003e\n\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003epublic\u003c/span\u003e \u003cspan class=\"k\"\u003efunction\u003c/span\u003e \u003cspan class=\"fm\"\u003e__construct\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"k\"\u003earray\u003c/span\u003e \u003cspan class=\"nv\"\u003e$array\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"p\"\u003e[])\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line hl\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003eparent\u003c/span\u003e\u003cspan class=\"o\"\u003e::\u003c/span\u003e\u003cspan class=\"na\"\u003e__construct\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$array\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nx\"\u003eArrayObject\u003c/span\u003e\u003cspan class=\"o\"\u003e::\u003c/span\u003e\u003cspan class=\"na\"\u003eARRAY_AS_PROPS\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\u003c/div\u003e\n\u003c/div\u003e\u003ch2 id=\"solution\"\u003eSolution\u003c/h2\u003e\n\u003cp\u003eDo check enabled modules for Apache, I found out that \u003cstrong\u003emod_expires\u003c/strong\u003e was not enabled. So I edited httpd.conf and \u003cstrong\u003eenabled mod_expires\u003c/strong\u003e\u003c/p\u003e","title":"How to fix Undefined class constant ‘ARRAY_AS_PROPS’ Fatal Error?"},{"content":"\u0026lt;meta name=\u0026#34;viewport\u0026#34; content=\u0026#34;width=device-width, initial-scale=1\u0026#34;\u0026gt; overflow-x: auto; body,html{max-width:100%} ","permalink":"https://tutes.in/3-ways-to-put-a-webpage-on-100-device-width/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026lt;meta name=\u0026#34;viewport\u0026#34; content=\u0026#34;width=device-width, initial-scale=1\u0026#34;\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eoverflow-x: auto; \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ebody,html{max-width:100%}\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"3 ways to put a webpage on 100% device width"},{"content":"So, all of the info you read below is the summary of 6 hours I spent yesterday in gathering information about taxes in USA. – to be particular – Sales Tax. Not Income tax\nTo start with, USA has 50 states, meaning constituent political entity. All states have their own rules for sales tax and there is no nation-wide sales tax as such. So if you are an store owner in any particular, you will have to charge your customers taxes, which you are supposed to pay to the state.\nNow when I say “charge your customers taxes”, I mean- obviously that is why you are here. There are two types of taxes based on the final location of the product after the purchase.\nSo there are origin based taxes and destination based taxes. Some states require you to charge customer depending upon your (seller’s) location. Summary- If you are located in an origin-based state and make sales to customers within that state, you would charge sales tax based on your location, including any local and state taxes. Example – Illinois\nDestination Based tax – If you are in state A and you make a sale to a customer living in state B, you have an obligation to collect and pay sales tax of state B, ONLY if you have a Nexus in state B\nNow you must be wondering Nexus, what is a nexus in tax terms? So a nexus is kind of a link of your business to/in a certain state. Lets say your business is Registered and has a brick mortar office in state X, and you sell a lot to customers in state Y. Depending upon the volume and nature of transactions, State government requires you to register a Nexus in state Y so that you can collect sales tax for State Y- as simple as that. However, terms and legislation criteria on whether you should register a Nexus vary a lot from state to state. But it usually comes in scope when you are selling 250,000+ USD in a state which is not your home state.\nHome state means where you run business.\nSummary: You only charge sales tax if your customer’s shipping address is in your home state i.e., where your store is. Customers out of your state dont need to pay any taxes which purchasing from you.\nNow coming to tax rates:\nTax rates are honestly very confusing when talking about USA. They have unreal system of managing tax rates and enduring tax-evasion problem.\nUsually states have same taxes or even some countries have a fixed tax depending upon the product hierarchy, but that is not the case with USA.\nThere are chances that two addresses in same pincode will have different tax rates, YES! I am NOT kidding!\nAs per jurisdictions, the tax rates are combined. There is a State Tax Rate, County Tax Rate and City Tax Rate and maybe others too.\nCombining all these give you an estimated tax rate which can be categorized per Pincode or ZIPcode but wont be 100% accurate. An Example is here – ZIP Codes: The wrong tool for the job However the article seems like an exaggeration because they want to sell their product/service of course.\nBottom Line- It can get really messy when dealing with Sales Tax in USA. Since I am not the tax guy and have no relation with accountancy whatsoever, there are chances that many of the things I stated above might be wrong. However, I believe that what I read online and the information that I gathered was from trust-able sources. The e-commerce store setup that I did was based on Magento 2, so I managed to create tax rates for each state. Later on, I found out I only needed to create tax rates for only one state i.e., our home state.\nHere is a full list of all states combined: USA-allpincodes-mar2019.csv\nAnd you can use following tax rates area wise- in Magento2 format\nAlabama Indiana Nebraska Rhode Island Alaska Iowa Nevada South Carolina Arizona Kansas New Hampshire South Dakota Arkansas Kentucky New Jersey Tennessee California Louisiana New Mexico Texas Colorado Maine New York Utah Connecticut Maryland North Carolina Vermont Delaware Massachusetts North Dakota Virginia Florida Michigan Ohio Washington Georgia Minnesota Oklahoma Washington, DC Hawaii Mississippi Oregon West Virginia Idaho Missouri Pennsylvania Wisconsin Illinois Montana Puerto Rico Wyoming Reference for CSVs: https://www.avalara.com/taxrates/en/download-tax-tables.html\nReference for other details:\\\nhttps://www.avalara.com/us/en/learn/whitepapers/origin-vs-destination-sales-tax.html\\ https://blog.taxjar.com/states-where-amazon-com-collects-sales-tax/\\ https://en.wikipedia.org/wiki/Sales_taxes_in_the_United_States\\ https://quickbooks.intuit.com/r/taxes/what-is-nexus-and-how-does-it-affect-your-small-business/ ","permalink":"https://tutes.in/quick-tips-on-american-sales-tax-for-developers-who-are-setting-up-an-ecommerce-store-for-usa-based-organization/","summary":"\u003cp\u003eSo, all of the info you read below is the summary of 6 hours I spent yesterday in gathering information about taxes in USA. – to be particular – Sales Tax. \u003cstrong\u003eNot\u003c/strong\u003e Income tax\u003c/p\u003e\n\u003cp\u003eTo start with, USA has 50 states, meaning constituent political entity. All states have their own rules for sales tax and there is no nation-wide sales tax as such. So if you are an store owner in any particular, you will have to charge your customers taxes, which you are supposed to pay to the state.\u003c/p\u003e","title":"Quick tips on American SALES TAX for developers who are setting up an ecommerce store for USA based organization"},{"content":" function transposeCsvData($data) { $ct=0; foreach($data as $key =\u0026gt; $val) { //echo count($val); if($ct\u0026lt; count($val)) $ct=count($val); } //echo $ct; $blank=array_fill(0,$ct,array_fill(0,count($data),null)); //print_r($blank); $retData = array(); foreach ($data as $row =\u0026gt; $columns) { foreach ($columns as $row2 =\u0026gt; $column2) { $retData[$row2][$row] = $column2; } } $final=array(); foreach($retData as $k=\u0026gt;$aval) { $final[]=array_replace($blank[$k], $aval); } return $final; } Test Code\n$a[]=array(\u0026#34;name\u0026#34;,\u0026#34;john\u0026#34;,\u0026#34;sam\u0026#34;,\u0026#34;patrick\u0026#34;); $a[]=array(\u0026#34;color\u0026#34;,\u0026#34;orange\u0026#34;,\u0026#34;green\u0026#34;); $a[]=array(\u0026#34;bikes\u0026#34;,\u0026#34;suzuki\u0026#34;,\u0026#34;audi\u0026#34;,\u0026#34;mercedes\u0026#34;,\u0026#34;bmw\u0026#34;,\u0026#34;volks\u0026#34;,\u0026#34;rover\u0026#34;); $a[]=array(\u0026#34;techgiants\u0026#34;,\u0026#34;samsung\u0026#34;,\u0026#34;amazon\u0026#34;); print_r(transposeCsvData($a)); Output\nArray ( [0] =\u0026gt; Array ( [0] =\u0026gt; name [1] =\u0026gt; color [2] =\u0026gt; bikes [3] =\u0026gt; techgiants ) [1] =\u0026gt; Array ( [0] =\u0026gt; john [1] =\u0026gt; orange [2] =\u0026gt; suzuki [3] =\u0026gt; samsung ) [2] =\u0026gt; Array ( [0] =\u0026gt; sam [1] =\u0026gt; green [2] =\u0026gt; audi [3] =\u0026gt; amazon ) [3] =\u0026gt; Array ( [0] =\u0026gt; patrick [1] =\u0026gt; [2] =\u0026gt; mercedes [3] =\u0026gt; ) [4] =\u0026gt; Array ( [0] =\u0026gt; [1] =\u0026gt; [2] =\u0026gt; bmw [3] =\u0026gt; ) [5] =\u0026gt; Array ( [0] =\u0026gt; [1] =\u0026gt; [2] =\u0026gt; volks [3] =\u0026gt; ) [6] =\u0026gt; Array ( [0] =\u0026gt; [1] =\u0026gt; [2] =\u0026gt; rover [3] =\u0026gt; ) ) ","permalink":"https://tutes.in/how-to-transpose-an-array-in-php-with-irregular-subarray-size/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003efunction\u003c/span\u003e \u003cspan class=\"nf\"\u003etransposeCsvData\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$data\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t    \u003cspan class=\"nv\"\u003e$ct\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t    \u003cspan class=\"k\"\u003eforeach\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$data\u003c/span\u003e \u003cspan class=\"k\"\u003eas\u003c/span\u003e \u003cspan class=\"nv\"\u003e$key\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nv\"\u003e$val\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t        \u003cspan class=\"c1\"\u003e//echo count($val);\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t    \u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$ct\u003c/span\u003e\u003cspan class=\"o\"\u003e\u0026lt;\u003c/span\u003e \u003cspan class=\"nx\"\u003ecount\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$val\u003c/span\u003e\u003cspan class=\"p\"\u003e))\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e                \u003cspan class=\"nv\"\u003e$ct\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nx\"\u003ecount\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$val\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t    \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\t\u003cspan class=\"c1\"\u003e//echo $ct;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t    \u003cspan class=\"nv\"\u003e$blank\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nx\"\u003earray_fill\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nv\"\u003e$ct\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nx\"\u003earray_fill\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nx\"\u003ecount\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$data\u003c/span\u003e\u003cspan class=\"p\"\u003e),\u003c/span\u003e\u003cspan class=\"k\"\u003enull\u003c/span\u003e\u003cspan class=\"p\"\u003e));\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t    \u003cspan class=\"c1\"\u003e//print_r($blank);\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t    \u003cspan class=\"nv\"\u003e$retData\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"k\"\u003earray\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003eforeach\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$data\u003c/span\u003e \u003cspan class=\"k\"\u003eas\u003c/span\u003e \u003cspan class=\"nv\"\u003e$row\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nv\"\u003e$columns\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"k\"\u003eforeach\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$columns\u003c/span\u003e \u003cspan class=\"k\"\u003eas\u003c/span\u003e \u003cspan class=\"nv\"\u003e$row2\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nv\"\u003e$column2\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e                \u003cspan class=\"nv\"\u003e$retData\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"nv\"\u003e$row2\u003c/span\u003e\u003cspan class=\"p\"\u003e][\u003c/span\u003e\u003cspan class=\"nv\"\u003e$row\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$column2\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e                \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t    \u003cspan class=\"nv\"\u003e$final\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"k\"\u003earray\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t    \u003cspan class=\"k\"\u003eforeach\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$retData\u003c/span\u003e \u003cspan class=\"k\"\u003eas\u003c/span\u003e \u003cspan class=\"nv\"\u003e$k\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e\u003cspan class=\"nv\"\u003e$aval\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t    \u003cspan class=\"p\"\u003e{\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"nv\"\u003e$final\u003c/span\u003e\u003cspan class=\"p\"\u003e[]\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nx\"\u003earray_replace\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$blank\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"nv\"\u003e$k\u003c/span\u003e\u003cspan class=\"p\"\u003e],\u003c/span\u003e \u003cspan class=\"nv\"\u003e$aval\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e           \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"nv\"\u003e$final\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003e\u003cstrong\u003eTest Code\u003c/strong\u003e\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$a\u003c/span\u003e\u003cspan class=\"p\"\u003e[]\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"k\"\u003earray\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;name\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;john\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;sam\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;patrick\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$a\u003c/span\u003e\u003cspan class=\"p\"\u003e[]\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"k\"\u003earray\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;color\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;orange\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;green\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$a\u003c/span\u003e\u003cspan class=\"p\"\u003e[]\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"k\"\u003earray\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;bikes\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;suzuki\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;audi\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;mercedes\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;bmw\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;volks\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;rover\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$a\u003c/span\u003e\u003cspan class=\"p\"\u003e[]\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"k\"\u003earray\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;techgiants\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;samsung\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;amazon\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eprint_r\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003etransposeCsvData\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$a\u003c/span\u003e\u003cspan class=\"p\"\u003e));\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003e\u003cstrong\u003eOutput\u003c/strong\u003e\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eArray\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"k\"\u003eArray\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e(\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nx\"\u003ename\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nx\"\u003ecolor\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e2\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nx\"\u003ebikes\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e3\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nx\"\u003etechgiants\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"k\"\u003eArray\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e(\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nx\"\u003ejohn\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nx\"\u003eorange\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e2\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nx\"\u003esuzuki\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e3\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nx\"\u003esamsung\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e2\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"k\"\u003eArray\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e(\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nx\"\u003esam\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nx\"\u003egreen\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e2\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nx\"\u003eaudi\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e3\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nx\"\u003eamazon\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e3\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"k\"\u003eArray\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e(\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nx\"\u003epatrick\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e2\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nx\"\u003emercedes\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e3\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e4\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"k\"\u003eArray\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e(\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e2\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nx\"\u003ebmw\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e3\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e5\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"k\"\u003eArray\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e(\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e2\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nx\"\u003evolks\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e3\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e6\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"k\"\u003eArray\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e(\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e2\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nx\"\u003erover\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e3\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"How to transpose an array in PHP with irregular subarray size?"},{"content":"CREATE TABLE `clients` ( `id` int(4) NOT NULL AUTO_INCREMENT, `name` varchar(11) NOT NULL, `associate` varchar(100) NOT NULL, `revenue` int(12) NOT NULL, `profit` int(12) NOT NULL, PRIMARY KEY (`id`), FOREIGN key (`associate`) references `emp`(`emp_code`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; alter table `emp` add COLUMN `phone` int(12) not null after `name` alter table `emp` add COLUMN `phone` int(12) null after `name` alter table `emp` modify `phone` int(12) null alter table `emp` drop column `phone` ALTER TABLE `emp` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `emp_code` (`emp_code`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `emp` -- ALTER TABLE `emp` MODIFY `id` int(4) NOT NULL AUTO_INCREMENT; COMMIT; ","permalink":"https://tutes.in/sql-notes/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eCREATE TABLE `clients` (\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  `id` int(4) NOT NULL AUTO_INCREMENT,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  `name` varchar(11) NOT NULL,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  `associate` varchar(100) NOT NULL,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  `revenue` int(12) NOT NULL,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  `profit` int(12) NOT NULL,\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e   PRIMARY KEY (`id`),\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e   FOREIGN key (`associate`) references `emp`(`emp_code`)\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e) ENGINE=InnoDB DEFAULT CHARSET=latin1;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ealter table `emp` add COLUMN `phone` int(12) not null after `name`\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ealter table `emp` add COLUMN `phone` int(12) null after `name`\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ealter table `emp` modify `phone` int(12) null\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ealter table `emp` drop column `phone`\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eALTER TABLE `emp`\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  ADD PRIMARY KEY (`id`),\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  ADD UNIQUE KEY `emp_code` (`emp_code`);\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e--\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e-- AUTO_INCREMENT for dumped tables\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e--\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e--\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e-- AUTO_INCREMENT for table `emp`\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e--\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eALTER TABLE `emp`\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  MODIFY `id` int(4) NOT NULL AUTO_INCREMENT;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eCOMMIT;\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"SQL Notes"},{"content":"Put this in your bash profile and run source ~/.bashrc\nalias composer=\u0026#34;/opt/cpanel/ea-php71/root/usr/bin/php /opt/cpanel/composer/bin/composer\u0026#34; As Composer is now available via WHM you can use this to find it:\nwhich composer This returned path “/opt/cpanel/composer/bin/composer” for me. If this returns nothing then disregard the rest of this answer, as Composer is not available to you at system level.\nYou can now use php-cli to call this with Composer’s absolute path:\nphp-cli /opt/cpanel/composer/bin/composer install php-cli /opt/cpanel/composer/bin/composer update php-cli /opt/cpanel/composer/bin/composer require whatever/example You may however need to alias php-cli if your system claims this isn’t found. It very much depends how PHP has been deployed on the WHM server. Learn how to fix PHP CLI error. You can do this by adding a user alias to the end of your “.bashrc” or “.bash_profile” file as follows:\nalias php-cli=/opt/cpanel/ea-php72/root/usr/bin/php Replace ea-php72 with the release of PHP you want to use. Submit this as a command in the shell to make it available immediately, otherwise it’ll become available when you open your next Bash session.\nIf you want to make this available with just composer alone you could create this alias again in “.bashrc”:\nalias composer=/opt/cpanel/ea-php72/root/usr/bin/php /opt/cpanel/composer/bin/composer Reference: https://stackoverflow.com/a/53478183/2229148\n","permalink":"https://tutes.in/how-to-fix-composer-should-be-invoked-via-the-cli-version-of-php-not-the-cgi-fcgi-sapi-error-in-ssh/","summary":"\u003cp\u003ePut this in your bash profile and run \u003cstrong\u003esource ~/.bashrc\u003c/strong\u003e\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nb\"\u003ealias\u003c/span\u003e \u003cspan class=\"nv\"\u003ecomposer\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;/opt/cpanel/ea-php71/root/usr/bin/php /opt/cpanel/composer/bin/composer\u0026#34;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003chr\u003e\n\u003cp\u003eAs Composer is now available via WHM you can use this to find it:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ewhich composer\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eThis returned path “\u003cstrong\u003e/opt/cpanel/composer/bin/composer\u003c/strong\u003e” for me. If this returns nothing then disregard the rest of this answer, as Composer is not available to you at system level.\u003c/p\u003e\n\u003cp\u003eYou can now use \u003ccode\u003ephp-cli\u003c/code\u003e to call this with Composer’s absolute path:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp-cli /opt/cpanel/composer/bin/composer install\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp-cli /opt/cpanel/composer/bin/composer update\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp-cli /opt/cpanel/composer/bin/composer require whatever/example\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eYou may however need to alias \u003ccode\u003ephp-cli\u003c/code\u003e if your system claims this isn’t found. It very much depends how PHP has been deployed on the WHM server. \u003ca href=\"/fix-magento-2-php-cli-error-on-cpanel-or-other-hostings/\"\u003eLearn how to fix PHP CLI error\u003c/a\u003e. You can do this by adding a user alias to the end of your “\u003cstrong\u003e.bashrc\u003c/strong\u003e” or “\u003cstrong\u003e.bash_profile\u003c/strong\u003e” file as follows:\u003c/p\u003e","title":"How to fix Composer should be invoked via the CLI version of PHP, not the cgi-fcgi SAPI error in SSH?"},{"content":"So, this is the scenario. You are using some local ISP which has its own DNS server fulfilling your DNS requests but to speed things up and not rely upon a DNS server which is updated less frequently. For that purpose,we can switch our computer’s DNS to some other public DNS like Google’s or Cloudflare DNS.\nStep 1: Right click the Network Icon in your task bar.\nRight Click the network icon in taskbar\nStep 2: Choose “Open Network \u0026amp; Sharing Settings“\nClick Open Network \u0026amp; Sharing Settings\nStep 3: Click on “Change Adapter Options“\nchange adapter options\nStep 4: Right click on the active hardware and select “properties“\nadapter properties\nStep 5: Select “Internet Protocol Version 4 (TCP/IPv4)” and Click Properties button in the bottom\nIPv4 Properties\nStep 6: Input the IP addresses after choosing “Use the following DNS Server Addresses“\nput dns ip here\nStep 7: Select OK to close the pop up window. Restart your browser and have a better browsing experience.\nCloudflare’s Public DNS Servers/addresses for IPv4:\n1.1.1.1 1.0.0.1 Cloudflare’s Public DNS Servers/addresses for IPv6:\n2606:4700:4700::1111 2606:4700:4700::1001 Google’s DNS Servers for IPv4:\n8.8.8.8 8.8.4.4 The Google Public DNS IPv6 addresses are:\n2001:4860:4860::8888 2001:4860:4860::8844 ","permalink":"https://tutes.in/how-to-switch-your-dns-to-google-dns-or-cloudflare-dns-on-windows-10/","summary":"\u003cp\u003eSo, this is the scenario. You are using some local ISP which has its own DNS server fulfilling your DNS requests but to speed things up and not rely upon a DNS server which is updated less frequently. For that purpose,we can switch our computer’s DNS to some other public DNS like \u003ca href=\"https://developers.google.com/speed/public-dns/\"\u003eGoogle’s\u003c/a\u003e or \u003ca href=\"https://1.1.1.1/\"\u003eCloudflare DNS\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eStep 1: Right click the Network Icon in your task bar.\u003c/p\u003e\n\u003cfigure\u003e\n    \u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2019/02/network-icon.jpg\"\n         alt=\"Network Icon in Taskbar\"/\u003e \u003cfigcaption\u003e\n            \u003cp\u003eRight Click the network icon in taskbar\u003c/p\u003e\n        \u003c/figcaption\u003e\n\u003c/figure\u003e","title":"How to switch your DNS to Google DNS or Cloudflare DNS on Windows 10?"},{"content":"So GoogleforWork.com is now being redirected to cloud.google.com and the same applies for its subdomain connect.googleforwork.com.\nEarlier the campaigns at google work communities are now hosted at www.cloudconnect.goog\nIt is interesting to note that it uses .goog and not .google TLD, here is some more info about .goog TLD\nIn the past we have seen .google tld for many purposes like AI to Everyone at ai.google and Google’s design lab and research on design technology\nThe future will be interesting in terms of TLDs when banks, tech giants and telecom companies are switching their websites to their own custom TLDs and regular people can hardly remember the apparently new gTLDs.\n","permalink":"https://tutes.in/what-happened-to-googleforwork-com-welcome-the-new-cloudconnect-goog-domain/","summary":"\u003cp\u003eSo \u003ca href=\"https://googleforwork.com\"\u003eGoogleforWork.com\u003c/a\u003e is now being redirected to \u003ca href=\"https://cloud.google.com\"\u003ecloud.google.com\u003c/a\u003e and the same applies for its subdomain \u003cem\u003econnect.googleforwork.com\u003c/em\u003e.\u003c/p\u003e\n\u003cp\u003eEarlier the campaigns at google work communities are now hosted at \u003ca href=\"https://www.cloudconnect.goog\"\u003ewww.cloudconnect.goog\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eIt is interesting to note that it uses .goog and not .google \u003ca href=\"https://en.wikipedia.org/wiki/Top-level_domain\"\u003eTLD\u003c/a\u003e, here is some more info about \u003ca href=\"https://icannwiki.org/.goog\"\u003e.goog TLD\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eIn the past we have seen .google tld for many purposes like \u003ca href=\"https://ai.google/\"\u003eAI to Everyone at ai.google\u003c/a\u003e     and \u003ca href=\"https://design.google\"\u003eGoogle’s design lab\u003c/a\u003e and research on design technology\u003c/p\u003e\n\u003cp\u003eThe future will be interesting in terms of TLDs when banks, tech giants and telecom companies are switching their websites to their own custom TLDs and regular people can hardly remember the \u003cem\u003eapparently new\u003c/em\u003e gTLDs.\u003c/p\u003e","title":"What happened to googleforwork.com? Welcome the new cloudconnect.goog domain"},{"content":"Paytm Payment Gateway Testing Data Online payment solutions for all your transactions by Paytm Woocommerce Plugin Download the plugin here: https://github.com/Paytm-Payments/Paytm_Woocommerce_Kit\nEnable/Disable\nEnable/Disable Enable Paytm Payments.\nTitle\nTitle\nPaytm\nThis controls the title which the user sees during checkout.\nDescription\nDescription\nThe best payment gateway provider in India for e-payment through credit card, debit card \u0026amp; netbanking.\nThis controls the description which the user sees during checkout.\nMerchant Identifier\nMerchant Identifier\nMerchant Id Provided by Paytm\nSecret Key\nSecret Key\nMerchant Secret Key Provided by Paytm\nWebsite\nWebsite\nWEBSTAGING\nWebsite Name Provided by Paytm\nIndustry Type\nIndustry Type\nRetail\nIndustry Type Provided by Paytm\nChannel ID\nChannel ID\nWEB\nChannel ID Provided by Paytm\nTransaction URL\nTransaction URL\nhttps://securegw-stage.paytm.in/theia/processTransaction\nTransaction URL Provided by Paytm\nTransaction Status Url\nTransaction Status Url\nhttps://securegw-stage.paytm.in/merchant-status/getTxnStatus\nTransaction Status URL Provided by Paytm\nAPI Keys You can get your keys here https://dashboard.paytm.com/next/apikeys\nAPI keys are unique credentials issued to every merchant. While MID is used as an identification used for all exchange correspondence, merchant key is used to encrypt every API request to Paytm and decrypt every response from Paytm. Ensure that you keep the merchant key on server side and should not be shared with anyone. In case API keys are compromised, please reach out to our helpdesk to get new API keys.\nMID (Merchant ID) – Unique identifier issued to every merchant. Merchant Key – This is a unique secret key used for secure encryption of every request. This needs to be kept on server side and should never be shared with anyone. Industry Type ID – This is part of bank and paymode configuration done wrt to an account. Website – This parameter is used to support multiple callback URLs to post the transaction response. Each URL needs to be mapped to a website parameter. Test API Details are something like this:\nTest Merchant ID WArHEFXXXXXXXXXXXXXX \u0026lt;–wont work Test Account Secret Key XXXXXXXXOcv1u7P2 \u0026lt;- wont work Testing Resources / Testing Instruments Source: https://developer.paytm.com/docs/testing-integration\nTesting Debit/Credit Card Card Number Any Visa or Master Card Expiration Month \u0026amp; Year Any Future month and Year CVV 123 OTP 123123 Testing Paytm Wallet Details Mobile Number 77777 77777 Password Paytm12345 OTPDoesn’t require 2nd factor authentication 489871 Testing Netbanking Details Bank Name Andhra Bank User ID test Password Test Note: In case you are testing on production environment, use live paymode details to complete the transaction. Once the transaction is successful, you can initiate refund from the dashboard.\n","permalink":"https://tutes.in/testing-configuration-for-paytm-gateway-plugin-india/","summary":"\u003ch3 id=\"paytm-payment-gateway-testing-data\"\u003ePaytm Payment Gateway Testing Data\u003c/h3\u003e\n\u003ch4 id=\"online-payment-solutions-for-all-your-transactions-by-paytm-woocommerce-plugin\"\u003eOnline payment solutions for all your transactions by Paytm Woocommerce Plugin\u003c/h4\u003e\n\u003cp\u003eDownload the plugin here: \u003ca href=\"https://github.com/Paytm-Payments/Paytm_Woocommerce_Kit\"\u003ehttps://github.com/Paytm-Payments/Paytm_Woocommerce_Kit\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eEnable/Disable\u003cbr\u003e\nEnable/Disable Enable Paytm Payments.\u003cbr\u003e\nTitle\u003cbr\u003e\nTitle\u003cbr\u003e\nPaytm\u003cbr\u003e\nThis controls the title which the user sees during checkout.\u003c/p\u003e\n\u003cp\u003eDescription\u003cbr\u003e\nDescription\u003cbr\u003e\nThe best payment gateway provider in India for e-payment through credit card, debit card \u0026amp; netbanking.\u003cbr\u003e\nThis controls the description which the user sees during checkout.\u003c/p\u003e\n\u003cp\u003eMerchant Identifier\u003cbr\u003e\nMerchant Identifier\u003cbr\u003e\n\u003ca href=\"#apikeys\"\u003e\u003cprovided link below\u003e\u003c/a\u003e\u003cbr\u003e\nMerchant Id Provided by Paytm\u003c/p\u003e","title":"Testing Configuration for Paytm Gateway Plugin India"},{"content":"What Is CRM? CRM, also known as Customer Relationship Management can be understand as the software which was developed to improve the customer services and to make the customer services much more efficient.\nCRM Software act as the single tools which has the ability to bring your sales, marketing, customer support services at one place and helps you to manage them at one single platform.\nWho uses a CRM system? CRM System can be easily customized and changed by the different Organisations and companies according to their needs and requirements. The CRM software can be used by the any business types and size for increasing their sales, marketing, and customer support services i.e, Small Scale Startups, Large Organizations, Real-estate, Healthcare, Insurance and the list goes on and on….\nCustomer relationship management systems can be easily customized to meet the specific needs of any business type and size. Start-ups, large enterprises, and verticals like real-estate, healthcare, insurance, legal, media, restaurants, travel, banking, tax, freelancers, and non-profits all use a customer relationship management software for increasing their sales, marketing, and customer support efforts.\nWith CRM you get, 300% Improvement in\nlead conversion rates.\n41% Revenue increase\nper sales person.\n27% Improvement in\ncustomer retention.\n24% Decreased\nsales cycles\n23% Decreased sales and\nmarketing costs.\nHere is a list of some famous CRM Software Salesforce helps you to connect to your customer in a whole new way to build more meaningful and lasting relationship. With a single view of every customer interaction you can sell, service and market. With the help of salesforce you will get more lead, close more deals much faster, Increase customer loyalty, retention and satisfaction. You can also manage your business anytime and anywhere.\nFull feature package: Salesforce Lightning Professional\nCost when billed annually: $75 per user, per month\nCost when billed monthly: n/a\nPipedrive focuses your mind on the pipeline and shuffles deals with due activities to the top in the list. In pipedrive your emails, calls, progress are tracked automatically. Pipedrive is rated the easiest sales tool to implement by leading software site. Pipedrive supports visual indicators which shows you where to focus and what actions are needed to close more sales.\nFull feature package: Pipedrive Platinum\nCost when billed annually: $62.50 per user, per month\nCost when billed monthly: $75 per user, per month \\\nIn Microsoft dynamics you can engage with customers on any channel or device. You can personalise your services and deliver them fast. You can innovate with an application that is easy to tailor, extend and connect to other applications also which are already in use.\nFull feature package: Dynamics 365 Plan\nCost: Starting at $210 per user, per month\nHubspot is a developer and marketer of the software products, it was founded 2006. Hubspot provide tools for social media marketing, content management, web analytics, landing page and search engine optimization. CRM has Integration Features of salesforce.com, sugarCRM, Netsuite, Microsoft Dynamics CRM and more.\nFull feature package: HubSpot CRM is not a “full feature” CRM, and lacks reporting and certain sales process capabilities out of the box.\nCost: Free. Reporting can be added for $200/month\nZoho uses a open application programming interface for its writer, sheet, show, creator, meeting and product planner.it also has plugins into Microsoft excel and word, and plugins for Firefox. Zoho CRM has the some features like procurement, inventory, and some accounting functions from the realm of ERP. The free version is limited to 10 users only.\nFull feature package: Zoho Enterprise\nCost when billed annually: $35 per user, per month\nCost when billed monthly: $45 per user, per month\namoCRM is very easy to use and also very powerful CRM Solution for the Organisations.it was founded in 2004 .The amoCRM is first CRM company to introduced integration with messaging application.It has easy to use pipeline management of data and information.it also gives a feature of sale automation to its users.\nFull feature package: amoCRM Enterprise\nCost: $45 per user, per month, with a six-month minimum commitment\nNutshell is powerful and flexible enough to fit every to fit every sales model. Nutshell software helps in sales automation, We can manage our contacts and emails. We get the feature of reporting and performance tracking. It also offer pipeline management and friendly customer care.\nFull feature package: Nutshell Pro\nCost when billed annually: $35 per user, per month\nCost when billed monthly: $39 per user, per month\nInsightly CRM is for lifelong customer relationship, It can help you to grow your revenues more than 20% annually. Close more deal faster with work automation. In insightly, We can automatically convert closed deals to projects. It also provide apps integration to stay connected to apps you already use.\nFull feature package: Insightly Professional\nCost when billed annually: $49 per user, per month\nCost when billed monthly: $59 per user, per month\nOracle is a complete, Integrated, Extensible application suite for modern customer experience. Oracle helps in analyze marketing performance, attribute revenue, and gain better insight into the customer experiences. We can deploy and use the CRM system easily, optimize sales performance and simplify everything in one place.\nFull feature package: Oracle Sales Cloud Standard Edition\nCost: Starting at $100 per user, per month\nSAP customer data cloud helps to create seamless customer experience and it also provide the data privacy, customer transparency and control. It provide personalise customer experience across the business. It helps in saving time and guesswork to accelerate sales and manage the sales territories and incentives.\nFull feature package: SAP Business By Design CRM Sales\nCost when billed annually: $89 per user, per month\nCost when billed monthly: n/a\nCopper is the Best CRM for G Suite users. Copper integrates with G Suite, gets rid of manual data entry, and It is super easy to use. If you can use Gmail, you’ll know how to use Copper. They have over 12,000 customers love using Copper and selling more with the CRM teams.\nFull feature package: Copper Professional\nCost when billed annually: $49 per user, per month\nCost when billed monthly: $69 per user, per month\n","permalink":"https://tutes.in/what-are-customer-relationship-management-crm-software/","summary":"\u003ch2 id=\"what-is-crm\"\u003eWhat Is CRM?\u003c/h2\u003e\n\u003cp\u003eCRM, also known as Customer Relationship Management can be understand as the software which was developed to improve the customer services and to make the customer services much more efficient.\u003c/p\u003e\n\u003cp\u003eCRM Software act as the single tools which has the ability to bring your sales, marketing, customer support services at one place and helps you to manage them at one single platform.\u003c/p\u003e\n\u003ch2 id=\"who-uses-a-crm-system\"\u003eWho uses a CRM system?\u003c/h2\u003e\n\u003cp\u003eCRM System can be easily customized and changed by the different Organisations and companies according to their needs and requirements. The CRM software can be used by the any business types and size for increasing their sales, marketing, and customer support services i.e, Small Scale Startups, Large Organizations, Real-estate, Healthcare, Insurance and the list goes on and on….\u003c/p\u003e","title":"What are Customer Relationship Management (CRM) Software?"},{"content":"Edit the file pub/errors/default/503.phtml and put the following code\n\u0026lt;?php /** * How to edit and customize code of Magento 2 Maintenance 503 Page * Add analytics if any * Replace \u0026lt;COMPANY NAME\u0026gt; with your Organization Name */ ?\u0026gt; \u0026lt;!doctype html\u0026gt; \u0026lt;title\u0026gt;Site Maintenance\u0026lt;/title\u0026gt; \u0026lt;style\u0026gt; body { text-align: center; padding: 150px; } h1 { font-size: 50px; } body { font: 20px Helvetica, sans-serif; color: #333; } article { display: block; text-align: left; width: 650px; margin: 0 auto; } a { color: #dc8100; text-decoration: none; } a:hover { color: #333; text-decoration: none; } \u0026lt;/style\u0026gt; \u0026lt;article\u0026gt; \u0026lt;h1\u0026gt;We\u0026amp;rsquo;ll be back soon!\u0026lt;/h1\u0026gt; \u0026lt;div\u0026gt; \u0026lt;p\u0026gt;Sorry for the inconvenience but we\u0026amp;rsquo;re performing some maintenance at the moment. If you need to you can always \u0026lt;a href=\u0026#34;mailto:abcd@COMPANY NAME\u0026#34;\u0026gt;contact us\u0026lt;/a\u0026gt;, otherwise we\u0026amp;rsquo;ll be back online shortly!\u0026lt;/p\u0026gt; \u0026lt;p\u0026gt;\u0026amp;mdash; Team COMPANY NAME\u0026lt;/p\u0026gt; \u0026lt;/div\u0026gt; \u0026lt;/article\u0026gt; ","permalink":"https://tutes.in/how-to-customize-magento-2-maintenance-mode-page/","summary":"\u003cp\u003eEdit the file \u003ccode\u003epub/errors/default/503.phtml\u003c/code\u003e and put the following code\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026lt;?php\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/**\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e * How to edit and customize code of Magento 2 Maintenance 503 Page\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e * Add analytics if any\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e * Replace \u0026lt;COMPANY NAME\u0026gt; with your Organization Name\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e */\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e?\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026lt;!doctype html\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026lt;title\u0026gt;Site Maintenance\u0026lt;/title\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026lt;style\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  body { text-align: center; padding: 150px; }\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  h1 { font-size: 50px; }\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  body { font: 20px Helvetica, sans-serif; color: #333; }\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  article { display: block; text-align: left; width: 650px; margin: 0 auto; }\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  a { color: #dc8100; text-decoration: none; }\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  a:hover { color: #333; text-decoration: none; }\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026lt;/style\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026lt;article\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u0026lt;h1\u0026gt;We\u0026amp;rsquo;ll be back soon!\u0026lt;/h1\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u0026lt;div\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u0026lt;p\u0026gt;Sorry for the inconvenience but we\u0026amp;rsquo;re performing some maintenance at the moment. If you need to you can always \u0026lt;a href=\u0026#34;mailto:abcd@COMPANY NAME\u0026#34;\u0026gt;contact us\u0026lt;/a\u0026gt;, otherwise we\u0026amp;rsquo;ll be back online shortly!\u0026lt;/p\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u0026lt;p\u0026gt;\u0026amp;mdash; Team COMPANY NAME\u0026lt;/p\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u0026lt;/div\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026lt;/article\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"How to customize Magento 2 Maintenance mode page?"},{"content":"This article will guide you to set your SSL certification using Cloudflare. Cloudflare is an internet security company which provides content delivery network service.\nYou can get free SSL certification as well as paid one from Cloudflare.\nA breif discussion on SSL certification and https redirection.\nSo, Let’s start the process.\nSteps: Step1\nSignup and Login to cloudflare. There you will get an option to add your site url. Do it and proceed.\nStep2\nCloudflare will check your DNS records. You just click next and proceed.\nStep3\nNow choose your plan according to your needs. For this tutorial i preffered free plan. Paid plans will add some extra features and security to your site.\nStep4\nNow it will show you some details of your site to confirm. Just Click continue. And move on.\nStep5\nCloudflare will give you two nameservers to replace with your default nameserver. Just login to your hosting provider and change it there. And then click continue.\nIf everything went good so far, cloudflare will activate security on your website. Click Re-check button to refresh cloudflare and it will show the status.\nWe are almost done. The last thing to do is – get your API key and paste it to wordpress plugin of cloudflare, and save API credentials.\nThat is it. Your site is now secured with a SSL certification from cloudflare. This certification is valid for 1 year.\nhttps://www.cloudflare.com/\n","permalink":"https://tutes.in/ssl-certification-setup-cloudflare/","summary":"\u003cp\u003eThis article will guide you to set your SSL certification using Cloudflare. Cloudflare is an internet security company which provides content delivery network service.\u003c/p\u003e\n\u003cp\u003eYou can get free SSL certification as well as paid one from Cloudflare.\u003c/p\u003e\n\u003cp\u003eA breif discussion on \u003ca href=\"/everything-about-free-ssl-certification-https-redirection/\"\u003eSSL certification and https redirection\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eSo, Let’s start the process.\u003c/p\u003e\n\u003ch3 id=\"steps\"\u003eSteps:\u003c/h3\u003e\n\u003cp\u003e\u003cstrong\u003eStep1\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eSignup and Login to cloudflare. There you will get an option to add your site url. Do it and proceed.\u003c/p\u003e","title":"SSL certification setup: Cloudflare."},{"content":"\nDownload PDF version here Notes:\nImplemented in the server, rather than in the storage engine.\nCompressed MyISAM tables are supported only when using the compressed row format. Tables using the compressed row format with MyISAM are read only.\nImplemented in the server via encryption functions.\nImplemented in the server via encryption functions; In MySQL 5.7 and later, data-at-rest tablespace encryption is supported.\nSupport for foreign keys is available in MySQL Cluster NDB 7.3 and later.\nInnoDB support for FULLTEXT indexes is available in MySQL 5.6 and later.\nInnoDB support for geospatial indexing is available in MySQL 5.7 and later.\nInnoDB utilizes hash indexes internally for its Adaptive Hash Index feature.\nSee the discussion later in this section.\nReference –https://dev.mysql.com/doc/refman/8.0/en/storage-engines.html\n","permalink":"https://tutes.in/different-types-of-mysql-storage-engines-compared/","summary":"\u003cp\u003e\u003ca href=\"/wp-content/uploads/2019/01/MySQL-storage-engines-791x1024.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2019/01/MySQL-storage-engines-791x1024.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003ch3 id=\"download-pdf-version-here\"\u003e\u003ca href=\"/wp-content/uploads/2019/01/mysql-storage-engines-compared.pdf\"\u003eDownload PDF version here\u003c/a\u003e\u003c/h3\u003e\n\u003cp\u003e\u003cstrong\u003eNotes:\u003c/strong\u003e\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003e\n\u003cp\u003eImplemented in the server, rather than in the storage engine.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eCompressed MyISAM tables are supported only when using the compressed row format. Tables using the compressed row format with MyISAM are read only.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eImplemented in the server via encryption functions.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eImplemented in the server via encryption functions; In MySQL 5.7 and later, data-at-rest tablespace encryption is supported.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eSupport for foreign keys is available in MySQL Cluster NDB 7.3 and later.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eInnoDB support for FULLTEXT indexes is available in MySQL 5.6 and later.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eInnoDB support for geospatial indexing is available in MySQL 5.7 and later.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eInnoDB utilizes hash indexes internally for its Adaptive Hash Index feature.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eSee the discussion later in this section.\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ol\u003e","title":"Different types of MySQL Storage Engines Compared"},{"content":"SQL, Structured Query Language, is a programming language designed to manage data stored in relational databases. SQL operates through simple, declarative statements. This keeps data accurate and secure, and it helps maintain the integrity of databases, regardless of size.\nMost of the actions you need to perform on a database are done with SQL statements.\nSQL commands are grouped into four major categories depending on their functionality:\nData Definition Language (DDL) Data Manipulation Language (DML) Transaction Control Language (TCL) Data Control Language (DCL) COMMANDS: SELECT SELECT column_name FROM table_name; SELECT statements are used to fetch data from a database ( extracts data from a database ). Every query will begin with SELECT.\nALTER TABLE ALTER TABLE table_name ADD column_name datatype; ALTER TABLE lets you add columns to a table in a database. Modifies a table.\nCASE SELECT column_name, CASE WHEN condition THEN \u0026#39;Result_1\u0026#39; WHEN condition THEN \u0026#39;Result_2\u0026#39; ELSE \u0026#39;Result_3\u0026#39; END FROM table_name; CASE statements are used to create different outputs (usually in the SELECT statement). It is SQL’s way of handling if-then logic.\nCREATE TABLE CREATE TABLE table_name ( column_1 datatype, column_2 datatype, column_3 datatype ); CREATE TABLE creates a new table in the database. It allows you to specify the name of the table and the name of each column in the table.\nWe have an entire article on creating tables in MySQL. https://tutes.in/creating-a-table-in-phpmyadmin-xampp-server/\nINSERT INSERT INTO table_name (column_1, column_2, column_3) VALUES (value_1, \u0026#39;value_2\u0026#39;, value_3); INSERT statements are used to add a new row to a table.\nWHERE SELECT column_name(s) FROM table_name WHERE column_name operator value; WHERE is a clause that filters the result set to include only rows where the specified condition is true.\nUPDATE UPDATE table_name SET some_column = some_value WHERE some_column = some_value; UPDATE statements allow you to edit rows in a table.\nAND SELECT column_name(s) FROM table_name WHERE column_1 = value_1 AND column_2 = value_2; AND is an operator that combines two conditions. Both conditions must be true for the row to be included in the result set.\nOR SELECT column_name FROM table_name WHERE column_name = value_1 OR column_name = value_2; OR is an operator that filters the result set to only include rows where either condition is true.\nThese were the most common and basic SQL commands. There are many more commands in SQL.\nThank You.\n","permalink":"https://tutes.in/some-of-the-most-important-sql-commands/","summary":"\u003cp\u003eSQL, \u003cstrong\u003eS\u003c/strong\u003etructured \u003cstrong\u003eQ\u003c/strong\u003euery \u003cstrong\u003eL\u003c/strong\u003eanguage, is a programming language designed to manage data stored in relational databases. SQL operates through simple, declarative statements. This keeps data accurate and secure, and it helps maintain the integrity of databases, regardless of size.\u003c/p\u003e\n\u003cp\u003eMost of the actions you need to perform on a database are done with SQL statements.\u003c/p\u003e\n\u003cp\u003eSQL commands are grouped into four major categories depending on their functionality:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eData Definition Language (DDL)\u003c/strong\u003e\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eData Manipulation Language (DML)\u003c/strong\u003e\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eTransaction Control Language (TCL)\u003c/strong\u003e\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eData Control Language (DCL)\u003c/strong\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2 id=\"commands\"\u003eCOMMANDS:\u003c/h2\u003e\n\u003ch4 id=\"select\"\u003eSELECT\u003c/h4\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-sql\" data-lang=\"sql\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eSELECT\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003ecolumn_name\u003c/span\u003e\u003cspan class=\"w\"\u003e \n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eFROM\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003etable_name\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003e\u003ccode\u003eSELECT\u003c/code\u003e statements are used to fetch data from a database ( \u003cbr\u003e\nextracts data from a database ). Every query will begin with SELECT.\u003c/p\u003e","title":"Some of the most important SQL commands."},{"content":"If you are not able to find the correct Handler, Simply create a .php file with the following contents:\n\u0026lt;?php echo $_SERVER[\u0026#39;REDIRECT_HANDLER\u0026#39;]; ?\u0026gt; and run/open this file in browser.\nexample application handler\nUse this output in .htaccess file\nCreate a .htaccess file at the root of your website(usually a folder named public_html or htdocs on linux servers) and add this line:\nAddType [[THE OUTPUT FROM ABOVE FILE]] .html .htm Example\nAddType application/x-httpd-php70 .html .htm AddType application/x-httpd-php72 .html .htm AddType application/x-httpd-php .html .htm If your are running PHP as CGI then try something like this:\nAddHandler application/x-httpd-php .html .htm Important Note: If you see blank page or Notice: Undefined index: REDIRECT_HANDLER\nTry default in .htaccess\nAddHandler application/x-httpd-php .html If you are godaddy user, try one of these settings:\nOptions +ExecCGI AddType application/x-httpd-php .php .html AddHandler x-httpd-php5 .php .html AddHandler x-httpd-php7 .php .html AddHandler x-httpd-php5-cgi .html AddHandler x-httpd-php7-cgi .html Reference: https://stackoverflow.com/questions/4687208/using-htaccess-to-make-all-html-pages-to-run-as-php-files/49375772#49375772\n","permalink":"https://tutes.in/how-to-use-htaccess-to-run-all-html-files-as-php-by-using-php-handlers-in-apache-w-o-cgi/","summary":"\u003cp\u003eIf you are not able to find the correct Handler, Simply create a .php file with the following contents:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e\u0026lt;?\u003c/span\u003e\u003cspan class=\"nx\"\u003ephp\u003c/span\u003e \u003cspan class=\"k\"\u003eecho\u003c/span\u003e \u003cspan class=\"nv\"\u003e$_SERVER\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;REDIRECT_HANDLER\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e];\u003c/span\u003e \u003cspan class=\"cp\"\u003e?\u0026gt;\u003c/span\u003e\u003cspan class=\"err\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eand run/open this file in browser.\u003c/p\u003e\n\u003cfigure\u003e\u003ca href=\"/wp-content/uploads/2019/01/application-handler.png\"\u003e\n    \u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2019/01/application-handler.png\"\n         alt=\"application httpd handler\"/\u003e \u003c/a\u003e\u003cfigcaption\u003e\n            \u003cp\u003eexample application handler\u003c/p\u003e\n        \u003c/figcaption\u003e\n\u003c/figure\u003e\n\n\u003cp\u003eUse this output in .htaccess file\u003c/p\u003e\n\u003cp\u003eCreate a \u003ccode\u003e.htaccess\u003c/code\u003e file at the root of your website(usually a folder named \u003cem\u003epublic_html\u003c/em\u003e or \u003cem\u003ehtdocs\u003c/em\u003e on linux servers) and add this line:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eAddType [[THE OUTPUT FROM ABOVE FILE]] .html .htm\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eExample\u003c/p\u003e","title":"How to use .htaccess to run all .html files as .php by using PHP handlers in Apache w/o CGI?"},{"content":" git log to find out the commit you want to revert git push origin +daee17:master while daee17 is the commit before the wrongly pushed commit.+ was for force push Finally use git push origin master to sync your local with your git repo And that’s it.\nBelow is my log aka example. One of the teammates had committed to the repo (he was not supposed to) after which I committed on server and when I tried to push it on github.com, I received REJECTED error because the remote contained 2 commits which the server did not have.\n[ttc@aws www]$ git push origin master To github.com:Organization/ttc.git ! [rejected] master -\u0026gt; master (fetch first) error: failed to push some refs to \u0026#39;git@github.com:Organization/ttc.git\u0026#39; hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., \u0026#39;git pull ...\u0026#39;) before pushing again. hint: See the \u0026#39;Note about fast-forwards\u0026#39; in \u0026#39;git push --help\u0026#39; for details. [ttc@aws www]$ git history git: \u0026#39;history\u0026#39; is not a git command. See \u0026#39;git --help\u0026#39;. [ttc@aws www]$ git log commit 8168d26efcd2cc9aa7ddaa47ce3c11d61a134813 (HEAD -\u0026gt; master) Author: Your Name \u0026lt;someuser@tutes.in\u0026gt; Date: Mon Jan 21 18:57:55 2019 +0000 filters css commit daee17568269bb517870bba5aa75031dbd4f4554 (origin/master) Author: Your Name \u0026lt;someuser@tutes.in\u0026gt; Date: Mon Jan 21 06:02:18 2019 +0000 ravi shopyby resynced api and classes commit 423c77c82bfb88d0febd5735bae3795740aa5b72 Author: Your Name \u0026lt;someuser@tutes.in\u0026gt; Date: Mon Jan 21 05:56:24 2019 +0000 plugin defaulted and collapsible removed commit bbd39f5a124261af64d015a55d5bd8ba9fdec94a Author: Your Name \u0026lt;someuser@tutes.in\u0026gt; Date: Sun Jan 20 13:57:24 2019 +0000 hirens new design layouts commit 988524d8d3e90265977355ea738c262c7249a8e0 Author: Your Name \u0026lt;someuser@tutes.in\u0026gt; Date: Fri Jan 18 15:52:32 2019 +0000 shubham landing page code improved https://stackoverflow.com/a/35291514/2229148\n","permalink":"https://tutes.in/how-to-push-into-master-after-removing-last-two-commits-in-git/","summary":"\u003col\u003e\n\u003cli\u003e\u003ccode\u003egit log\u003c/code\u003e to find out the commit you want to revert\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003egit push origin +daee17:master\u003c/code\u003e while daee17 is the commit before the wrongly pushed commit.\u003ccode\u003e+\u003c/code\u003e was for \u003ccode\u003eforce push\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003eFinally use \u003ccode\u003egit push origin master\u003c/code\u003e to sync your local with your git repo\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003eAnd that’s it.\u003c/p\u003e\n\u003cp\u003eBelow is my log aka example. One of the teammates had committed to the repo (he was not supposed to) after which I committed on server and when I tried to push it on github.com, I received REJECTED error because the remote contained 2 commits which the server did not have.\u003c/p\u003e","title":"How to push into master or any other branch after removing last n commits in git?"},{"content":"When a web browser is pointed to a directory on your website which does not have an index.html file in it, the files in that directory can be listed on a web page.\nDirectory Lister is a simple PHP script that lists the contents of any web-accessible directory and allows navigating therewithin. Simply upload Directory Lister to any directory and get immediate access to all files and sub-directories under that directory. Directory Lister is written in PHP and distributed under the MIT License.\nhttp://www.directorylister.com\nDirectory Lister requires PHP 5.3+ to work properly. For more information on PHP, please visit http://www.php.net.\nsteps to set up directory listing: Open “public_html” and Upload “index.php” and “resources” folder. Now go to “resources” directory and rename “default.config.php” to “config.php”. Also, upload additional files to the same directory as index.php. All Done!!! Enable / Disable directory index listing. enable: To have the web server produce a list of files for directories, use the below line in your**.htaccess** (can be found in FTP -\u0026gt; public_html folder):\nOptions +Indexes disable: To have an error (403 – Forbidden) returned instead, use this line:\nOptions -Indexes When enabled you can visit your website to see Directory listing.\nHope, this post was helpful.\nThank You.\n","permalink":"https://tutes.in/how-to-setup-enable-directory-index-listing/","summary":"\u003cp\u003eWhen a web browser is pointed to a directory on your website which does not have an index.html file in it, the files in that directory can be listed on a web page.\u003c/p\u003e\n\u003cp\u003eDirectory Lister is a simple PHP script that lists the contents of any web-accessible directory and allows navigating therewithin. Simply upload Directory Lister to any directory and get immediate access to all files and sub-directories under that directory. Directory Lister is written in PHP and distributed under the MIT License.\u003c/p\u003e","title":"How to setup / enable Directory index listing?"},{"content":"Hello People.\nIn this post we will discuss that how you can create a table in phpmyadmin xampp server for your php project.\nBefore creating a table first you must create a database, because without database you can not create a table.\nsteps to create a table in phpmyadmin. Start your Xampp server and open the following link in your browser. localhost/phpmyadmin . Now click on the New button. Give name to your database and hit create button. As shown in the image below. Our database has been created and now we can start creating the table.\nClick on the database that you just created in the previous step. Then give name to your table and specify the number of columns under the structure menu. Next you just need to fill your table with the details of your project. You can also create table using MySql query. For that go to the SQL menu and and write your query. If your query is correct the table will be created. An example is shared below.\nCREATE TABLE persons ( id INTEGER PRIMARY KEY AUTOINCREMENT, LastName varchar(255) NOT NULL, FirstName varchar(255), Address varchar(255), phone varchar(70) NOT NULL UNIQUE ); So, that’s all for now.\nThank You.\n","permalink":"https://tutes.in/creating-a-table-in-phpmyadmin-xampp-server/","summary":"\u003cp\u003eHello People.\u003c/p\u003e\n\u003cp\u003eIn this post we will discuss that how you can create a table in phpmyadmin xampp server for your php project.\u003c/p\u003e\n\u003cp\u003eBefore creating a table first you must create a database, because without database you can not create a table.\u003c/p\u003e\n\u003ch4 id=\"steps-to-create-a-table-in-phpmyadmin\"\u003esteps to create a table in phpmyadmin.\u003c/h4\u003e\n\u003cul\u003e\n\u003cli\u003eStart your Xampp server and open the following link in your browser. \u003cbr\u003e\n\u003cstrong\u003elocalhost/phpmyadmin\u003c/strong\u003e . Now click on the New button.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2019/01/phpmyadmin1.jpeg\"\u003e\u003c/p\u003e","title":"Creating a table in PhpMyAdmin Xampp server."},{"content":".gradient-text { background: linear-gradient(to bottom right,#f27990, #332b75); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } Live Example ","permalink":"https://tutes.in/how-to-add-gradients-in-html-text/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-css\" data-lang=\"css\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nc\"\u003egradient-text\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003ebackground\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"nb\"\u003elinear-gradient\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"kc\"\u003eto\u003c/span\u003e \u003cspan class=\"kc\"\u003ebottom\u003c/span\u003e \u003cspan class=\"kc\"\u003eright\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mh\"\u003e#f27990\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"mh\"\u003e#332b75\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kp\"\u003e-webkit-\u003c/span\u003e\u003cspan class=\"k\"\u003ebackground-clip\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"kc\"\u003etext\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kp\"\u003e-webkit-\u003c/span\u003e\u003cspan class=\"n\"\u003etext-fill-color\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"kc\"\u003etransparent\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch2 class=\"gradt\"\u003eLive Example\u003c/h2\u003e\n\u003cstyle\u003e.gradt {\n    background: linear-gradient(to bottom right,#f27370,#442b75);\n    -webkit-background-clip: text;\n    -webkit-text-fill-color: transparent;\n}\u003c/style\u003e","title":"How to add color gradients in HTML text?"},{"content":"Hi Everyone!\nIn this post we will be learning about redirects. And see how you can redirect your web-page.\nWe will see two ways to redirect web-pages:\nThrough your registrars’ Cpanel. Right into your code. Through cPanel redirect feature You can easily redirect your visitors from one page to another with the help of the Redirects feature.\nTo setup a redirection, access your website’s Control Panel and locate the Redirects menu.\nIn theCreate a Redirect section. You can set up a redirection from one page of your website to another. This also works for subdomains or completely different websites.\nIf you choose to use HTTPS, make sure the redirected page has a certificate first, because redirecting to a website without an SSLcertificate but using the HTTPS protocol for it, will most likely land your visitor to an error page\nNow let’s see how you can set redirection by including few lines in your code.\nHTML redirects: The simplest way to redirect to another URL is with the Meta Refresh tag. We can place this meta tag inside the \u0026lt;head\u0026gt; at the top of any HTML page like this:\n\u0026lt;meta http-equiv=\u0026#34;refresh\u0026#34; content=\u0026#34;0; URL=\u0026#39;http://new-website.com\u0026#39;\u0026#34; /\u0026gt; JavaScript redirects Redirecting to another URL with JavaScript is pretty easy, simply change the locationproperty on the window object:\n// Use any of the following lines below. window.location = \u0026#34;http://new-website.com\u0026#34;; window.location.href = \u0026#34;http://new-website.com\u0026#34;; window.location.assign(\u0026#34;http://new-website.com\u0026#34;); window.location.replace(\u0026#34;http://new-website.com\u0026#34;); Apache redirects The most common method of redirecting a web page is through adding specific rules to a .htaccess file on an Apache web server.\nRedirect 301 / http://www.new-website.com PHP redirects With PHP we can use the header function, which is quite straightforward:\n\u0026lt;?php header(\u0026#39;Location: http://www.new-website.com/\u0026#39;, true, 301); // Permanent redirection. // OR #header(\u0026#39;Location: http://www.new-website.com/\u0026#39;, true, 307); // Temporary redirection. exit(); ?\u0026gt; This is it for this post. Now the comment section is all yours.\nThank You.\n","permalink":"https://tutes.in/how-to-redirect-your-web-page/","summary":"\u003cp\u003eHi Everyone!\u003c/p\u003e\n\u003cp\u003eIn this post we will be learning about redirects. And see how you can redirect your web-page.\u003c/p\u003e\n\u003cp\u003eWe will see two ways to redirect web-pages:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003eThrough your registrars’ Cpanel.\u003c/li\u003e\n\u003cli\u003eRight into your code.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2 id=\"through-cpanel-redirect-feature\"\u003eThrough cPanel redirect feature\u003c/h2\u003e\n\u003cp\u003eYou can easily redirect your visitors from one page to another with the help of the \u003cstrong\u003eRedirects\u003c/strong\u003e feature.\u003c/p\u003e\n\u003cp\u003eTo setup a redirection, access your website’s \u003cstrong\u003eControl Panel\u003c/strong\u003e and locate the \u003cstrong\u003eRedirects\u003c/strong\u003e menu.\u003c/p\u003e","title":"5 ways to redirect your Web page?"},{"content":"MySQL disconnects automatically after some time.\nIf you experience MySQL timeouts, it could be due to heavy or very long MySQL queries.\nYou can try using mysql_reconnect command before every query, and it should be fine.\nMySQL server timeout can occur for many reasons but most commonly it is caused by either an application bug, a network timeout issue, or due to the MySQL server restarting.\nThese steps could solve the issue. (By setting no time to MySQl.)\nEdit your my.cnf (MySQL config file) sudo nano /etc/mysql/my.cnf Add the timeout configuration and adjust it to fit your server. wait_timeout = 28800 interactive_timeout = 28800 Save the changes (CTRL + X , Y , ENTER) Restart MySQL sudo service mysql restart The new changes will be applied once it restarts. Hope this will help you.\nThank You.\n","permalink":"https://tutes.in/mysql-timeout/","summary":"\u003cp\u003eMySQL disconnects automatically after some time.\u003c/p\u003e\n\u003cp\u003eIf you experience MySQL timeouts, it could be due to \u003cstrong\u003eheavy or very long MySQL queries.\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eYou can try using \u003cstrong\u003emysql_reconnect\u003c/strong\u003e command before every query, and it should be fine.\u003c/p\u003e\n\u003cp\u003eMySQL server timeout can occur for many reasons but most commonly it is caused by either an application bug, a network timeout issue, or due to the MySQL server restarting.\u003c/p\u003e\n\u003cp\u003eThese steps could solve the issue. (By setting no time to MySQl.)\u003c/p\u003e","title":"Connection timeout with MySQL database."},{"content":"In Magento Admin Panel, Go to Catalog in Left Menu \u0026gt; Categories\nSelect the category you want to edit and in Design Section \u0026gt; Layout Update XML, put this value:\n\u0026lt;head\u0026gt; \u0026lt;meta name=\u0026#34;robots\u0026#34; content=\u0026#34;NOINDEX,NOFOLLOW\u0026#34;/\u0026gt; \u0026lt;/head\u0026gt; How to add noindex nofollow on specific category page in Magento2\nSave the category and then Clear the cache\n","permalink":"https://tutes.in/how-to-hide-a-specific-category-from-google-index-in-magento-2/","summary":"\u003cp\u003eIn Magento Admin Panel, Go to Catalog in Left Menu \u0026gt; Categories\u003cbr\u003e\nSelect the category you want to edit and in Design Section \u0026gt; Layout Update XML, put this value:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-html\" data-lang=\"html\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"nt\"\u003ehead\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"nt\"\u003emeta\u003c/span\u003e \u003cspan class=\"na\"\u003ename\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s\"\u003e\u0026#34;robots\u0026#34;\u003c/span\u003e \u003cspan class=\"na\"\u003econtent\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s\"\u003e\u0026#34;NOINDEX,NOFOLLOW\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e/\u0026gt;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e\u0026lt;/\u003c/span\u003e\u003cspan class=\"nt\"\u003ehead\u003c/span\u003e\u003cspan class=\"p\"\u003e\u0026gt;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cfigure\u003e\n    \u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2019/01/category-nofollow-1024x611.jpg\"\n         alt=\"How to add noindex nofollow on specific category page in Magento2\"/\u003e \u003cfigcaption\u003e\n            \u003cp\u003eHow to add noindex nofollow on specific category page in Magento2\u003c/p\u003e\n        \u003c/figcaption\u003e\n\u003c/figure\u003e\n\n\u003cp\u003eSave the category and then Clear the cache\u003c/p\u003e","title":"How to hide a specific category from Google Index in Magento 2?"},{"content":"React is one of the most in-demand and popular JavaScript library. And the reason is simple it gives you the ability to create complex User Interfaces with minimal and simplified code.\nIn this article we are going to go through the installation process and the process of creating your first react app.\nCreating a react js app. There are a few different ways of creating a react app. But the simplest way is using a CDN – link. This allows you to start using ReactJS instantly, without any installation setup.\nJust include these two lines in your HTML file.\n\u0026lt;script crossorigin src=\u0026#34;https://unpkg.com/react@16/umd/react.production.min.js\u0026#34;\u0026gt;\u0026lt;/script\u0026gt; \u0026lt;script crossorigin src=\u0026#34;https://unpkg.com/react-dom@16/umd/react-dom.production.min.js\u0026#34;\u0026gt;\u0026lt;/script\u0026gt; But this is not the best way of creating a react app. The best way to create a react app is Using react CLI, but for that, you need to have NodeJS installed.\nOnce NodeJS is installed in your system. Now there are two ways of creating react app.\nThe Quick way (npx): Use the following command in your preffered terminal.\nnpx create-react-app \u0026lt;app-name\u0026gt; cd \u0026lt;app-name\u0026gt; npm start The first line will create a react app and name it. And the third line will open the app in your default browser. Which looks something like this.\nThe productive way (NPm): In this way first we will install NPM (Node package manager) then will create the react app.\nThat’s why i call this way as the productive way, because soon or late you would have to install NPM then why not now.\nFollow these command below.\nnpm install -g cd \u0026lt;app-name\u0026gt; npm start The first line installs npm globally. And you know what the next two line does.\nActually we can also create a react app via yarn. But we are just not gonna get into it in this post.\nSo, i hope this was helpful to you.\nThank You.\n","permalink":"https://tutes.in/reactjs-create-your-first-react-app/","summary":"\u003cp\u003eReact is one of the most in-demand and popular JavaScript library. And the reason is simple it gives you the ability to create complex User Interfaces with minimal and simplified code.\u003c/p\u003e\n\u003cp\u003eIn this article we are going to go through the installation process and the process of creating your first react app.\u003c/p\u003e\n\u003ch4 id=\"creating-a-react-js-app\"\u003eCreating a react js app.\u003c/h4\u003e\n\u003cp\u003eThere are a few different ways of creating a react app. But the simplest way is using a CDN – link. This allows you to start using ReactJS instantly, without any installation setup.\u003c/p\u003e","title":"ReactJS: Create your first react app."},{"content":"Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Git is easy to learn and has a tiny footprint with lightning fast performance. Every dev has a working copy of the code and full change history on their local machine\nHere are some most important and useful GIT commands that will surely help you.\nGit Commands: This command sets the author name and email address respectively to be used with your commits. $ git config –global user.name \u0026#34;[name]\u0026#34; $ git config –global user.email \u0026#34;[email address]\u0026#34; This command is used to start new repository. $ git init [repository name] This command is used to obtain a repository from an existing URL. $ git clone [url] This command records or snapshots the file permanently in the version history. $ git commit -m \u0026#34;[Type in the commit message]\u0026#34; This command lists all the files that have to be committed. $ git status This command shows the metadata and content changes of the specified commit. $ git show [commit] These commands lists, creates and delete branch respectively. $ git branch $ git branch [branch name] $ git branch -d [branch name] This command is used to connect your local repository to the remote server. $ git remote add [variable name] [Remote Repo Link] This command sends the committed changes of master branch to your remote repository. $ git push [variable name] master This command sends the branch commits to your remote repository. $ git push [variable name] [branch] This command pushes all branches to your remote repository. $ git push –all [variable name] This command deletes a branch on your remote repository. $ git push [variable name] :[branch name] This command fetches and merges changes on the remote server to your working directory $ git pull [Repository Link] If you want more commands with examples, please let us know in the comments below.\nMore Useful commands: Checks if sha is in production. $ git tag --contains [sha] Number of commits by author. $ git shortlog -s --author \u0026#39;Author Name\u0026#39; List of authors and commits to repository sorted alphabetically. $ git shortlog -s -n See differences in file before committing / compare recently edited file with its last committed state $ git diff path/to/file.txt Undo local changes to a file. $ git checkout -- filename Undo/revert last commit git revert HEAD^ Remove last commit from history (WITHOUT keeping changes) $ git reset --hard HEAD~ Remove last commit from history (WITH keeping changes) $ git reset HEAD~ Shows number of lines added or removed from repository by an author since some time in the past. $ git log --author=\u0026#34;Author name\u0026#34; --pretty=tformat: --numstat --since=month | awk \u0026#39;{ add += $1; subs += $2; loc += $1 - $2 } END { printf \u0026#34;added lines: %s, removed lines: %s, total lines: %s\\n\u0026#34;, add, subs, loc }\u0026#39; referenceS: https://gist.github.com/davfre/8313299#undoing-previous-actions\nhttps://stackoverflow.com/questions/8903953/how-to-revert-last-commit-and-remove-it-from-history\nhttps://github.com/bpassos/git-commands#committing-files\n","permalink":"https://tutes.in/important-useful-git-commands/","summary":"\u003cp\u003e\u003cem\u003eGit\u003c/em\u003e is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. \u003cem\u003eGit\u003c/em\u003e is easy to learn and has a tiny footprint with lightning fast performance. Every dev has a working copy of the code and full change history on their local machine\u003c/p\u003e\n\u003cp\u003eHere are some most important and useful GIT commands that will surely help you.\u003c/p\u003e","title":"How to learn Git in 15 minutes? List of most basic git commands"},{"content":"Edit the bash profile and add an alias using the following code\n$ nano ~/.bashrc Put the following line of code in .bashrc file and alter the python3.6 path as per your new installation\nalias python=\u0026#39;/usr/local/bin/python3.6\u0026#39; Use CTRL x to exit and save\nAfter that you need to reload the source, so use the following command and you are good to go.\n$ source ~/.bashrc ","permalink":"https://tutes.in/how-to-edit-default-python-version-for-a-linux-user/","summary":"\u003cp\u003eEdit the bash profile and add an alias using the following code\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e$ nano ~/.bashrc\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003ePut the following line of code in \u003ccode\u003e.bashrc\u003c/code\u003e file and alter the python3.6 path as per your new installation\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ealias python=\u0026#39;/usr/local/bin/python3.6\u0026#39;\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eUse \u003ccode\u003eCTRL x\u003c/code\u003e to exit and save\u003cbr\u003e\nAfter that you need to reload the source, so use the following command and you are good to go.\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e$ \u003cspan class=\"nb\"\u003esource\u003c/span\u003e ~/.bashrc\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"How to edit default python version for a linux user?"},{"content":"Node.js is an open-source, cross-platform JavaScript run-time environment that executes JavaScript code outside of a browser. NodeJS is a JavaScript engine that you can install in your own system.\nAlso, NodeJs makes it possible to use JavaScript in backend development as a backend programming language. (Cool! isn’t it.)\nYou need to know this. Node isn’t a program that you simply launch like Word or Photoshop: you won’t find it pinned to the taskbar or in your list of Apps. To use Node you must type command-line instructions, so you need to be comfortable with (or at least know how to start) a command-line tool like the Windows Command Prompt, PowerShell, or the Git shell.\nInstallation Steps Download the Windows installer from the Nodes.js® web site. Run the installer (the .msi file you downloaded in the previous step.) Follow the prompts in the installer (Accept the license agreement, click the NEXT button a bunch of times and accept the default installation settings). Now to be sure that everything is fine and to confirm node installation, You need to run the following code in your preferred terminal.\nCheck node version: node -v Check npm version: npm -v Confirm installation of node: node hello.js Microsoft Windows [Version 10.0.15063] (c) 2017 Microsoft Corporation. All rights reserved. C:\\Users\\docs\u0026gt; node -v v10.14.2 C:\\Users\\docs\u0026gt; npm -v 6.4.1 C:\\Users\\docs\u0026gt; node hello.js Node is installed! Here is an actual example from my very own system.\nIf you have any question in your mind, feel free to comment below.\nThank You.\n","permalink":"https://tutes.in/nodejs-javascript-powering-the-backend/","summary":"\u003cp\u003eNode.js is an open-source, cross-platform JavaScript run-time environment that executes JavaScript code outside of a browser. NodeJS is a JavaScript engine that you can install in your own system.\u003c/p\u003e\n\u003cp\u003eAlso, NodeJs makes it possible to use JavaScript in backend development as a backend programming language. (Cool! isn’t it.)\u003c/p\u003e\n\u003ch2 id=\"you-need-to-know-this\"\u003eYou need to know this.\u003c/h2\u003e\n\u003cp\u003eNode isn’t a program that you simply launch like Word or Photoshop: you won’t find it pinned to the taskbar or in your list of Apps. To use Node you must type command-line instructions, so you need to be comfortable with (or at least know how to start) a command-line tool like the Windows Command Prompt, PowerShell, or the Git shell.\u003c/p\u003e","title":"NodeJS: JavaScript powering the backend."},{"content":"The error message “Your PHP installation appears to be missing the MySQL extension which is required by WordPress” can appear when you are using a PHP version which is incompatible with your scripts version. Meaning your WordPress installation is most likely outdated.\nSince the ‘MySQL’ extension is no longer supported from PHP 7.0 and beyond, changing your PHP version to 5.6 or lower will fix the issue. This can be done via your website’s control panel’s PHP Configuration section.\nSo, let’s do it first and then we will see some probable causes of this error.\nSteps: Step 1- Login to your Cpanel.\nStep 2- Find PHP PEAR Packages and click on it. and then click on show available modules.\nStep 3- Find MYSQL and install the 3 extensions shown in the image above.\nStep 4- Now Go to select PHP version.\nStep 5- Now find MySQL (Use Ctrl + F), select it and save it.\nThat’s it. The problem is fixed. Let’s get to some probable causes of this error.\nProbable causes of this error. 1. PHP’s MySQL extension not installed. The quickest way to check if your PHP has MySQL support is to put the following code into a file called info.php in your site and access it from a browser.\n\u0026lt;? phpinfo(); ?\u0026gt; A MySQL section like this will be shown. If it’s not shown there, then you don’t have the PHP’s MySQL extension installed.\nIn Ubuntu servers and RedHat compatible servers, use the following commands respectivly:\n# apt-get install php5-mysqlnd # yum install php-mysql 2. Check if PHP’s MySQL extension directory is misconfigured. Another cause of the ‘Your PHP installation appears to be missing the MySQL extension which is required by WordPress’. could be that the PHP extension directory is not configured properly.\nIn order to fix this, locate which PHP.ini file is being loaded and ensure that the appropriate “extension_dir” value is being used. So let’s open up the info.php file we created in Step 1 via our web browser.\nLook for the line called “Loaded Configuration File”. The file path noted there is the actual location to the PHP configuration file.\nNow, look for the entry called “extension_dir“. It should either be commented, or it should have the correct path to PHP extensions. It should never be left blank.\nIf you are not sure, just comment the line, and restart the web server.\nSimply updating PHP and WordPress might also solve the problem.\nIn case you are running PHP 5, run the following commands:\napt-get update apt-get install php-mysql Restart the appropriate service for the changes to take effect.\nThis may have solved your problem. Feel free to comment below.\nThank You.\n","permalink":"https://tutes.in/your-php-installation-appears-to-be-missing-the-mysql-extension-required-by-wordpress/","summary":"\u003cp\u003eThe error message “\u003cstrong\u003eYour PHP installation appears to be missing the MySQL extension which is required by WordPress\u003c/strong\u003e” can appear when you are using a PHP version which is incompatible with your scripts version. Meaning your WordPress installation is most likely outdated.\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2018/12/php-error.png\"\u003e\u003c/p\u003e\n\u003cp\u003eSince the ‘MySQL’ extension is no longer supported from PHP 7.0 and beyond, changing your PHP version to 5.6 or lower will fix the issue. This can be done via your website’s control panel’s \u003cstrong\u003ePHP Configuration\u003c/strong\u003e section.\u003c/p\u003e","title":"Your PHP installation appears to be missing the MySQL extension, required by WordPress"},{"content":"There are several cases for the cause and multiple solutions also:\n1 Add these 2 lines in wp-config.php file\nif (strpos($_SERVER[\u0026#39;HTTP_X_FORWARDED_PROTO\u0026#39;], \u0026#39;https\u0026#39;) !== false) $_SERVER[\u0026#39;HTTPS\u0026#39;]=\u0026#39;on\u0026#39;; 2 Edit these settings in database directly using PhpMyAdmin in table options or wp_options in option_id, option_name (1,siteurl) and (2,home)\nwp_options table\n3 You can do the same by Editing wp-config.php and adding these 2 lines\ndefine(\u0026#39;WP_HOME\u0026#39;,\u0026#39;https://example.com\u0026#39;); define(\u0026#39;WP_SITEURL\u0026#39;,\u0026#39;https://example.com\u0026#39;); 4 Fix your .htaccess file with default one\nCheck here for default .htaccess for wordpress\n","permalink":"https://tutes.in/fix-error-too-many-redirects-on-wordpress-admin-page-or-blog/","summary":"\u003cp\u003eThere are several cases for the cause and multiple solutions also:\u003c/p\u003e\n\u003cp\u003e1 Add these 2 lines in \u003ccode\u003ewp-config.php\u003c/code\u003e file\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003estrpos\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$_SERVER\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;HTTP_X_FORWARDED_PROTO\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e],\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;https\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"o\"\u003e!==\u003c/span\u003e \u003cspan class=\"k\"\u003efalse\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$_SERVER\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;HTTPS\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;on\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003e2 Edit these settings in database directly using PhpMyAdmin in \u003ccode\u003etable options\u003c/code\u003e or wp_options in \u003ccode\u003eoption_id, option_name (1,siteurl) and (2,home)\u003c/code\u003e\u003c/p\u003e\n\u003cfigure class=\"align-center \"\u003e\u003ca href=\"/wp-content/uploads/2018/12/wp_options-table.jpg\"\u003e\n    \u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2018/12/wp_options-table-1024x486.jpg#center\"\n         alt=\"wp_options table\"/\u003e \u003c/a\u003e\u003cfigcaption\u003e\n            \u003cp\u003ewp_options table\u003c/p\u003e\n        \u003c/figcaption\u003e\n\u003c/figure\u003e\n\n\u003cp\u003e3 You can do the same by Editing \u003ccode\u003ewp-config.php\u003c/code\u003e and adding these 2 lines\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003edefine\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;WP_HOME\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;https://example.com\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003edefine\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;WP_SITEURL\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;https://example.com\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003e4 Fix your \u003ccode\u003e.htaccess\u003c/code\u003e file with default one\u003cbr\u003e\n\u003ca href=\"/default-htaccess-file-for-wordpress-with-compression-and-caching-tweaks/\"\u003eCheck here for default .htaccess for wordpress\u003c/a\u003e\u003c/p\u003e","title":"Fix Error Too Many Redirects on WordPress Admin page or Blog"},{"content":"Hi Everyone!\nToday we are going to talk about programming paradigm. And in pronounces, the ‘g‘ is silent in ‘paradigm’.\nSo, in layman’s language programming paradigm is just the style of programming. Their are various styles of programming.\nEvery developer is different, hence is the style. Here we are about to talk about the most commonly used styles or pattern of programming.\nDifferent Paradigms: 1. Imperative/procedural programming. Imperative programming consists of sequence of statements and values are stored in memory after the implementation of statements.\nMemory utilization is low. And mostly contains Variables \u0026amp; Iterations. Quite simple to implement.\nYet this style of programming has some demerits.\nComplex problems can not be implemented. Parallel programming is not possible. Less productive. 2. object oriented programming. Here the data $ functions are bound in one entity called class. In this pattern of programming everything is modeled as object. It follows the modular programming approach.\nMostly known for Data abstraction, encapsulation, inheritance, polymorphism. It is also quite easy to debug and modify.\nJust one demerit to name is:\nMethods (fx) of class are hidden.\n3. functional programming. To be honest this is what I prefer.\nHere all the computations are expressed in functions. Complex functions can be developed from a single function.\nDue to a re-usable functional approach, this style becomes quite comprehensible. Large number of functions can be mentained.\nConsumes large amount of time and memory. Not recommended for commercial applications. 4. Logical Programming. Here the computations are expressed in mathematical logic. It follows the declarative programming approach.\nDevelopment is quite fast as it uses true or false (boolean) statements.\nKnown demerit are:\nSlow execution True and false can not solve most of the problems. So, this is it from my side for this article. Please let us know what’s your way of programming.\nFunctional, Logical, or Object oriented. See you soon in the next article.\nThank You.\n","permalink":"https://tutes.in/programming-paradigm/","summary":"\u003cp\u003eHi Everyone!\u003c/p\u003e\n\u003cp\u003eToday we are going to talk about programming paradigm. And in pronounces, the ‘\u003cstrong\u003eg\u003c/strong\u003e‘ is silent in ‘paradi\u003cstrong\u003eg\u003c/strong\u003em’.\u003c/p\u003e\n\u003cp\u003eSo, in layman’s language programming paradigm is just the style of programming. Their are various styles of programming.\u003c/p\u003e\n\u003cp\u003eEvery developer is different, hence is the style. Here we are about to talk about the most commonly used styles or pattern of programming.\u003c/p\u003e\n\u003ch2 id=\"different-paradigms\"\u003eDifferent Paradigms:\u003c/h2\u003e\n\u003ch4 id=\"1-imperativeprocedural-programming\"\u003e1. Imperative/procedural programming.\u003c/h4\u003e\n\u003cp\u003eImperative programming consists of sequence of statements and values are stored in memory after the implementation of statements.\u003c/p\u003e","title":"Programming Paradigm."},{"content":"Hi Everyone!\nThis concept is a bit difficult to understand, but that does not stop me from writing about it. I will try to be as clear and simple as I can.\nWe have a lot to cover, So let’s just dive into it. I have also included diagrams and example code of MVC below.\nMVC: MVC stands for “Modal View Controller” and it is a “Software architectural design pattern“, Which in turn is one of the most frequently used patterns.\nIt separates application functionality. And promotes organized programming.\npopular frameworks that uses mvc concept. Ruby on rails (RUBY) Codeigniter (PHP) Laravel (PHP) Angular (JS) Express (JS) Django (PYTHON) Flask (PYTHON) , e.t.c… Now let’s break it down to the 3 components – MODAL, VIEW and CONTROLLER.\nmodal: Modal is responsible for getting and manipulating the data. It can also pull data from a JSON file.\nIt is the logic related to data which interacts with the database (select, update, insert, delete).\nIt communicates with the controller. And depending on the framework is also capable of updating the view.\nview: You got it!\nIt is the actual view of the application, the user interface. It is what the user sees when they interact with the application.\nUsually the content of this part is HTML and CSS with dynamic values. It also communicates with the controller.\nIt’s dynamic values on the UI are passed from the controller. Depending on the framework template engine may vary. Template engine allows the dynamic data.\ncontroller: Controller takes in user input, so this could be from a user visiting a page, clicking a link or submitting a form which makes a get and post request.\nBasically the main thing here is processing a request (GET, POST, PUT, DELETE).\nYou can think of the controller as a middleman between MODAL and VIEW. Controller gets the data from the Modal and passes it to the View.\nNow i am sharing two diagrams and a code example for better understanding. The code shared is just an dummy code it is not going to work.\nMVC (Modal View Controller) diagram.\nExample code: \u0026lt;pre class=\u0026#34;brush: plain; title: ; notranslate\u0026#34; title=\u0026#34;\u0026#34;\u0026gt; http://your-app.com/users/profile/1 /routes users/profile/:id = Users.getProfile(id) /controllers class Users { function getProfile(id) { profile = this.UserModal.getProfile(id) renderView(\u0026#39;users/profile\u0026#39;, profile) } /modals class UserModal { function getProfile(id) { data = this.db.get(\u0026#39;SELECT * FROM users WHERE id = id\u0026#39;) return data; } /views /users /profile {{profile.name}} Email: {{profile.email}} Phone: {{profile.phone}} \u0026lt;/pre\u0026gt; That’s all for this article, see you soon in some other article.\nThank You.\n","permalink":"https://tutes.in/what-is-mvc-in-programming/","summary":"\u003cp\u003eHi Everyone!\u003c/p\u003e\n\u003cp\u003eThis concept is a bit difficult to understand, but that does not stop me from writing about it. I will try to be as clear and simple as I can.\u003c/p\u003e\n\u003cp\u003eWe have a lot to cover, So let’s just dive into it. I have also included diagrams and example code of MVC below.\u003c/p\u003e\n\u003ch2 id=\"mvc\"\u003eMVC:\u003c/h2\u003e\n\u003cp\u003eMVC stands for “\u003cstrong\u003eModal View Controller\u003c/strong\u003e” and it is a “\u003cstrong\u003eSoftware architectural design pattern\u003c/strong\u003e“, Which in turn is one of the most frequently used patterns.\u003c/p\u003e","title":"What is MVC in programming."},{"content":"So, you created a aws group with a small ebs storage size and now that the site is in production, storage disk is full and it was mounted as root storage, now you are asking “MY AWS INSTANCE STORAGE IS FULL, WHAT TO DO?”\nor “How do I increase the EBS volume size of a running instance?”\nSo, here is the simple solution:\nThere are two commands which will help you\n$ lsblk and\n# df -h So, initially if you login via SSH (using PUTTY or anything else) you will see something like this:\nSo, what you need to do is, you need to go to aws console and edit block size in EC2 management\\\nGo to EBS \u0026gt; Volumes\nRight Click the volume you need to expand and choose MODIFY VOLUME\nEnter the new size you want for your block\nNow run the command lsblk and df -h and you will notice the old size and new size under xvda and xvda1\nSize available but not used\nIf you dont see the updated new size, please use init 6 or restart the instance using any other command\nYou now need to use utility growpart so use command\n\\\nsudo apt install cloud-utils If you are out of space, please remove any old files which are of no use anymore to free up some Mega Bytes\nAfter that, simply use \\\nsudo growpart /dev/xvda 1 and\\\nsudo resize2fs /dev/xvda1 resize2fs command\nlsblk after resize\ndf command after resize\nReference: https://stackoverflow.com/a/43251901/2229148\ntk120404\n","permalink":"https://tutes.in/how-to-increase-ebs-storage-block-size-on-a-running-spot-instance-in-aws/","summary":"\u003cp\u003eSo, you created a aws group with a small ebs storage size and now that the site is in production, storage disk is full and it was mounted as root storage, now you are asking “MY AWS INSTANCE STORAGE IS FULL, WHAT TO DO?”\u003cbr\u003e\nor “How do I increase the EBS volume size of a running instance?”\u003c/p\u003e\n\u003cp\u003eSo, here is the simple solution:\u003c/p\u003e\n\u003cp\u003eThere are two commands which will help you\u003c/p\u003e","title":"How to increase EBS storage block size on a running spot instance in AWS?"},{"content":"‘Hi Everyone!\nIn this article, we are about to discuss **‘this’**keyword in JavaScript. It is a very important part of object-oriented JS programming. Hence it becomes crucial for serious developers to understand **‘this’**keyword.\nIt is also one of the most confused concepts of JavaScript.\nWhat is ‘this’?\nUnderstanding 'this': To be able to understand what I am about to talk, you should be familiar with the basics of JavaScript. e.x – Variables, Objects, Functions, etc…\nThere isn’t a single word that describes ‘this' well, so I just think of it as a special variable that changes depending on the situation. Those different situations are captured below.\ncase 1: In a regular function (or if you’re not in a function at all), 'this' points to'window' This is the default case.\nfunction logThis() { console.log(this); } logThis(); // window // In strict mode, `this` will be `undefined` instead of `window`. // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode Case 2: When a function is called as a method, 'this' points to the object that’s on the left side of the dot.\n/* * You can also think of this as the \u0026#34;left of the dot\u0026#34; rule. * For example, in myObject.myMethod(), `this` will be myObject * because myObject is to the left of the dot. * * Of course, if you\u0026#39;re using this syntax myObject[\u0026#39;myMethod\u0026#39;](), * technically it would be the \u0026#34;left of the dot or bracket\u0026#34; rule, * but that sounds clumsy and generally terrible. * * If you have multiple dots, the relevant dot is the one closest * to the method call. For example, if you have one.two.hi(); * `this` inside of hi will be two. */ var myObject = { myMethod: function() { console.log(this); } }; myObject.myMethod(); // myObject Case 3: In a function that’s being called as a constructor, 'this' points to the object that the constructor is creating.\nfunction Person(name) { this.name = name; } var gordon = new Person(\u0026#39;gordon\u0026#39;); console.log(gordon); // {name: \u0026#39;gordon\u0026#39;} Case 4: When you explicitly set the value of 'this' manually using,'bind'``'apply' or,'call' it’s all up to you.\nfunction logThis() { console.log(this); } var explicitlySetLogThis = logThis.bind({name: \u0026#39;Gordon\u0026#39;}); explicitlySetLogThis(); // {name: \u0026#39;Gordon\u0026#39;} // Note that a function returned from .bind (like `boundOnce` below), // cannot be bound to a different `this` value ever again. // In other words, functions can only be bound once. var boundOnce = logThis.bind({name: \u0026#39;The first time is forever\u0026#39;}); Case 5: In a callback function, apply the above rules methodically.\nfunction outerFunction(callback) { callback(); } function logThis() { console.log(this); } /* * Case 1: The regular old default case. */ outerFunction(logThis); // window /* * Case 2: Call the callback as a method */ function callAsMethod(callback) { var weirdObject = { name: \u0026#34;Don\u0026#39;t do this in real life\u0026#34; }; weirdObject.callback = callback; weirdObject.callback(); } callAsMethod(logThis); // `weirdObject` will get logged to the console /* * Case 3: Calling the callback as a constructor. */ function callAsConstructor(callback) { new callback(); } callAsConstructor(logThis); // the new object created by logThis will be logged to the console /* * Case 4: Explicitly setting `this`. */ function callAndBindToGordon(callback) { var boundCallback = callback.bind({name: \u0026#39;Gordon\u0026#39;}); boundCallback(); } callAndBindToGordon(logThis); // {name: \u0026#39;Gordon\u0026#39;} // In a twist, we give `callAndBindToGordon` a function that\u0026#39;s already been bound. var boundOnce = logThis.bind({name: \u0026#39;The first time is forever\u0026#39;}); callAndBindToGordon(boundOnce); // {name: \u0026#39;The first time is forever\u0026#39;} Conclusion: So, this was all about “this”.\nThe value of **‘this’**keyword depends on the situation, analyze the situation and figure out what ‘this’ represents.\nYou gave your precious time to read this article.\nThank You.\n","permalink":"https://tutes.in/understanding-this-keyword-in-javascript/","summary":"\u003cp\u003e‘Hi Everyone!\u003c/p\u003e\n\u003cp\u003eIn this article, we are about to discuss  **‘this’**keyword in JavaScript. It is a very important part of object-oriented JS programming. Hence it becomes crucial for serious developers to understand  **‘this’**keyword.\u003c/p\u003e\n\u003cp\u003eIt is also one of the most confused concepts of JavaScript.\u003c/p\u003e\n\u003cp\u003eWhat is \u003cstrong\u003e‘this’\u003c/strong\u003e?\u003c/p\u003e\n\u003ch1 id=\"understandingthis\"\u003eUnderstanding \u003ccode\u003e'this'\u003c/code\u003e:\u003c/h1\u003e\n\u003cp\u003eTo be able to understand what I am about to talk, you should be familiar with the basics of JavaScript. e.x – Variables, Objects, Functions, etc…\u003c/p\u003e","title":"Understanding “this” keyword in JavaScript."},{"content":"Hi Everyone!\nToday’s topic might not be clear from the heading, so let me make it clear over here. This post is a bit different so brace your self to think a bit.\nIn the field of programming, it is very important to understand the fundamentals and core concepts of programming. This field requires you to think differently.\nMost people find coding quite tough and the reason being the way they think about web-applications. Anyone can learn the syntax of a computer language, and print ‘Hello World’.\nBut to literally build something you got to Think Differently…\nAnd that’s what we are going to do today. Don’t go to the different purposes of these web-applications, instead try to see the common pattern that I am trying to point out.\nEverything is a todo list. Every web-application is a kind of todo list app. Let us see how.\nToDo List app: The picture below is from a todo list web app.\nEnter your task to be done and it will add it to the list.\nGoogle is a kind of ToDo List app: Google is a kind of todo list app, instead of tasks in the list there are the search results.\nEnter your query and it gives you the list of search results.\nE-commerce(Amazon) shopping cart: A shopping cart is also a kind of todo list app. Instead of tasks, there are products and items on the list that you saved.\nSelect your product and it will be added to the list of the cart.\nIn fact, messaging apps are a kind of ToDo list. All messaging apps are also a kind of todo list. the only difference is that the text input bar is at the bottom.\nSee the first image of todo list app, I am about to convert it to a messaging app. Here we go.\nconclusion: Every web-application is a kind of todo list app. Very rarely you would found an application that does not fits into this pattern.\nOnce again (Don’t consider the functionality of these sites, instead try to see the pattern, I am trying to point out.)\nHence,\nA todo list app is a great place to start for beginners. Walk your way through an advance todo list app (like the one shown in the image above.) to get familiar with concepts used in almost all web applications.\nAmazing new articles are about to come, stay tuned!\nThank You.\n","permalink":"https://tutes.in/everything-is-a-todo-list/","summary":"\u003cp\u003eHi Everyone!\u003c/p\u003e\n\u003cp\u003eToday’s topic might not be clear from the heading, so let me make it clear over here. This post is a bit different so brace your self to think a bit.\u003c/p\u003e\n\u003cp\u003eIn the field of programming, it is very important to understand the fundamentals and core concepts of programming. This field requires you to think differently.\u003c/p\u003e\n\u003cp\u003eMost people find coding quite tough and the reason being the way they think about web-applications. Anyone can learn the syntax of a computer language, and print ‘Hello World’.\u003c/p\u003e","title":"Everything is a ToDo list."},{"content":"Hi Everyone!\nLet’s talk about the most difficult CS subjects and why these subjects are considered difficult.\nThese are the subjects that really need an astonishing amount of hard work to excel and master them.\nSo, without any further due, let’s just dive into this.\nThe hardest CS subjects: 1.ARTIFICIAL INTELLIGENCE: Giving consciousness to machines, and making them able to take their own decision. This is the most difficult subject in the industry because here you have to be a multi-talented person.\nYour mathematics needs to be strong enough. You should know how to handle the database. You should be able to develop your own algorithms. Offcource, you need to know how to code. And the thing that makes AI even more difficult is that it isn’t static, the system by itself gets better and better. Hence to be in the game you have to keep improving yourself.\nIT is said about AI that:\n“You can initiate it, but you can’t stop it.”\n2.**THEORY OF COMPUTATION:**You might not have heard of it ever. You gave a command to the computer to do ‘X’ and it did. But have you ever imagined how the computer did it – well that’s what is Theory of computation.\nThe study of that process by which a computer implements a command is called Theory of computation.\nHere the expert never asks ‘What?’, instead, they only ask ‘How?’\nThey don’t care WHAT the result is, but HOW that result came into existence.\n3.**MICROPROCESSORS / LOGICAL CHIPS:**Those small computers and chips that can do processing for you. This is what you have in all your electronic devices including your smartphones.\nIt is a big deal to program these processors.\n4. **ADVANCE DATABASE:**You know this, the management and storing of data in a systematic way. It is easy to store data when it is in small quantity. But when it becomes huge it becomes a nightmare to store and maintain it.\nIt is an art to store and manage a huge amount of data.\n5. **COMPILER DESIGN:**Converting high-level language into machine language. A very rough way to understand it is this:\nThis is all about creating a software that makes other software.\nSO, these were the most difficult subjects of computer science. If you mastered these subjects you can get a huge payoff.\nIf you liked it then stay tuned for more such articles, and you can also check our previous articles.\nThank You.\n","permalink":"https://tutes.in/the-most-difficult-cs-subjects/","summary":"\u003cp\u003eHi Everyone!\u003c/p\u003e\n\u003cp\u003eLet’s talk about the most difficult CS subjects and why these subjects are considered difficult.\u003c/p\u003e\n\u003cp\u003eThese are the subjects that really need an astonishing amount of hard work to excel and master them.\u003c/p\u003e\n\u003cp\u003eSo, without any further due, let’s just dive into this.\u003c/p\u003e\n\u003ch3 id=\"the-hardest-cs-subjects\"\u003eThe hardest CS subjects:\u003c/h3\u003e\n\u003cp\u003e\u003cstrong\u003e1.ARTIFICIAL INTELLIGENCE\u003c/strong\u003e: Giving consciousness to machines, and making them able to take their own decision. This is the most difficult subject in the industry because here you have to be a multi-talented person.\u003c/p\u003e","title":"The most difficult CS subjects."},{"content":"Hello Everyone!\nWhen it comes to coding, most people think it is something mystical that only geeks can understand. Believe me, it is not like that my friend. Anyone can code with a fair amount of practice.\nThere is nothing mystical about it.\nCoding is a skill like any other. Like language learning, there’s grammar and vocabulary to acquire. Like math, there are processes to work through specific types of problems. Like all kinds of craftsmanship and art-making, there are techniques and tools and best practices that people have developed over time, specialized to different tasks, that you’re free to use or modify or discard.\nHere we are about to see a few bad coding habits that you must avoid.\nAvoid these bad coding practices: 1. Saying “I’ll fix it later”. The habit of postponing code fixes is not merely a problem of priorities. Organizing your issue tracker might generate some progress, but you also need to have a way of tracking smaller issues that come up. Adding “TODO” comments is a quick way of making sure you don’t miss anything.\n2. Insisting on a one-liner solution Being obsessive about writing efficient, elegant pieces of code is a common trait of programmers. It’s like solving a puzzle—you find a combination of functions and regular expressions that turn 20 code lines into 2 or 3. Unfortunately, it doesn’t always result in readable code, and that’s generally the far more important outcome. Make your code accessible first, then clever.\n3. Difficulty seeing through recursion The idea of recursion is easy enough to understand, but programmers often have problems imagining the result of a recursive operation in their minds, or how a complex result can be computed with a simple function. This makes it harder to design a recursive function because you have trouble picturing “where you are” when you come to writing the test for the base condition or the parameters for the recursive call.\n4. your code is a mess Symptoms\nDoesn’t follow a consistent naming convention. Doesn’t use indentation, or uses inconsistent indentation. Doesn’t make use of whitespace elsewhere, such as between methods (or expressions). Large chunks of code are left commented-out. Programmers in a hurry commit all these crimes and come back to clean it up later, but a bad programmer is just sloppy. Sometimes it helps to use an IDE that can fix indentation and whitespace with a shortcut key, but there are programmers who can even bludgeon Visual Studio’s insistence on proper indentation by messing around with the code too much.\n5.Reinventing the wheel all the time Don’t write code you don’t need to. Perhaps someone else has spent a good deal of time on your problem already, and he or she might have a well-tested solution that you can reuse. Save yourself some trouble.\nConclusion. As the old saying goes, “If it walks like a duck and quacks like a duck, it’s probably a duck.” The same is true for bad code. If it looks like bad code and smells like bad code, it’s probably bad code. The infallible developer does not exist. The almighty developers that came before may have made a mistake, and you will too. It is how coding works.\nSo, this is it for this article. We will surely talk about good coding habits and practices in upcoming articles.\nThank You.\n","permalink":"https://tutes.in/avoid-these-bad-coding-habits/","summary":"\u003cp\u003eHello Everyone!\u003c/p\u003e\n\u003cp\u003eWhen it comes to coding, most people think it is something mystical that only geeks can understand. Believe me, it is not like that my friend. Anyone can code with a fair amount of practice.\u003c/p\u003e\n\u003cp\u003eThere is nothing mystical about it.\u003c/p\u003e\n\u003cp\u003eCoding is a skill like any other. Like language learning, there’s grammar and vocabulary to acquire. Like math, there are processes to work through specific types of problems. Like all kinds of craftsmanship and art-making, there are techniques and tools and best practices that people have developed over time, specialized to different tasks, that you’re free to use or modify or discard.\u003c/p\u003e","title":"Avoid these bad coding habits."},{"content":"Errors can and will happen every time you write some new computer code. Programming code might contain syntax errors or logical errors. Many of these errors are difficult to diagnose.\nOften, when programming code contains errors, nothing will happen. There are no error messages, and you will get no indications where to search for errors.\nSearching for (and fixing) errors in programming code is called code debugging. And believe me, that’s not easy but the most valuable skill a developer could have.\nHence, here I am with top JavaScript debugging tools.\nChrome DevTools: Google Chrome DevTools is a set of debugging tools that can be used to debug JavaScript code right from the Chrome browser as they are inbuilt. You can get to interact with HTML, CSS and JavaScript all from the browser simply by clicking the inspect element button.\nIt has the resources panel for inspecting the storage of web pages such as the HTML5 database, cookies, local storage etc.\nYou may have been using Chrome all these years without knowing that it has a debugging tool with so much power.\nSublime Web Inspector: The sublime web inspector is a javascript debugging tools. The sublime web inspector allows you to debug, whatever you edit in your programs. It works on top of Web Inspector Protocol.\nIf you use Sublime Text Editor for your JavaScript editing, then Sublime Web Inspector allows you to debug from the same program you edit with. It works on top of WebInspectorProtocol, with all information displayed in console and text files.\nNode.js Inspector for Debugging Requests to Node Apps Debugging the Node.js on your application’s backend can be challenging. The following tools take advantage of the capabilities of the Node.js Inspector to assist you:\nThe Node Debug library for Node Inspector is a library can be included in your projects to assist you in implementing Node Inspector. Node.js V8 Inspector Manager is a Chrome extension which adds Node Inspector tools to the Dev Tools in Chrome. React Developer Tools IN THE BROWSER: The React tab shows props and state values if they exist for the selected elements.So, these were the four debugger tools that can make debugging easier for you. You can learn to use them through the tutorials available online for free. Hope you liked the article.\nThank You.\n","permalink":"https://tutes.in/1953-2/","summary":"\u003ch6 id=\"errors-can-and-will-happen-every-time-you-write-some-new-computer-code\"\u003eErrors can and will happen every time you write some new computer code.\u003c/h6\u003e\n\u003cp\u003eProgramming code might contain syntax errors or logical errors. Many of these errors are difficult to diagnose.\u003c/p\u003e\n\u003cp\u003eOften, when programming code contains errors, nothing will happen. There are no error messages, and you will get no indications where to search for errors.\u003c/p\u003e\n\u003cp\u003eSearching for (and fixing) errors in programming code is called code debugging. And believe me, that’s not easy but the most valuable skill a developer could have.\u003c/p\u003e","title":"JavaScript debugging dev tools."},{"content":"Hi Everyone!\nLet’s talk about Plunker, what is it and how is it related to Angular JS.\nPlunker is an online community for creating, collaborating on and sharing your web development ideas. Plunker is the best tool to prototype, experiment, share and debug your ideas on the web platform. From idea to implementation, Plunker helps you build the web.\nThis is what they say in technical terms, let me clarify this.\nPlunker: Plunkeror plnkris an integrated web development environment and is completely written in AngularJS. The plunker website also provides you to write plunks(codes) and share it with other developers.\nThere is also the ability to search for popular JavaScript libraryand refer it to your current plunk. Another feature is the live preview which is quite handy when you are learning AngularJS as you can see the result of your code change in real-time.\nSome of the other features are the ability to do real-time collaboration on Plunker and I recommend that if you are going to do any serious AngularJS development then try Plunker first.\nA really handy feature is that you can use almost any framework right from the editor, without any complex setup.\nWe can code up Angular in the browser using plunker. It gives us the ability to try our Angular quickly without requiring complex setup.\nIt also gives us a unique URL so:\nWe can quickly take a look at some code another person has written. We can share our code with other people, which is especially useful when we are stuck with some broken code and need help. Why do most Angular JS people prefer Plunker? The material reason is that Plunker allows creating an arbitrary number of files, while JSFiddle (or JSBin, for that matter) restrict you to one HTML + one CSS + one JS. Plunker also allows downloading the project as a ZIP.\nPlunker allows you to describe a larger example of functional Angular.js code than JSFiddle. It also gives better feedback and real-time previews as you type.\nJSFiddle, on the other hand, allows you to quickly share a single example of some functional code, mainly a jQuery snippet of some sort.\nBoth are great platforms and have contributed so much to the community.\nSo, I hope that you liked this post and got some useful information. Stay tuned for more such contents.\nThank You.\n","permalink":"https://tutes.in/plunker-and-angular-js/","summary":"\u003cp\u003eHi Everyone!\u003c/p\u003e\n\u003cp\u003eLet’s talk about Plunker, what is it and how is it related to Angular JS.\u003c/p\u003e\n\u003cp\u003e\u003cem\u003ePlunker is an online community for creating, collaborating on and sharing your web development ideas. Plunker\u003c/em\u003e is the best tool to prototype, experiment, share and debug your ideas on the web platform. From idea to implementation, \u003cem\u003ePlunker\u003c/em\u003e helps you build the web.\u003c/p\u003e\n\u003cp\u003eThis is what they say in technical terms, let me clarify this.\u003c/p\u003e","title":"Plunker and Angular JS."},{"content":"Hello Everyone!\nThis is going to be very interesting.\nIn this article, I will talk about Hackers, Programmers, Developers, and Computer Scientists. The level of their knowledge and expertise. I will try to keep it simple while explaining their roles in the industry and how they are different from each other and plays a different role.\nWe will also try to figure out who is more suitable for what job.\nWith this article, I am not judging any profession, because I understand very well that every profession has its own importance in the industry. The entire industry will collapse if even one of them vanishes.\nSo, without any further due, Let’s begin.\nComputer Scientist. A Computer scientist is the one who experiments with different computer languages. They know everything from the binary (bit 0,1,0,1) to all the way to software and hardware.\nUnderstanding the Algorithm and Data structures. These people are often very good at Mathematics. Without any doubt, a computer scientist is at the top.\nYet! They are not directly involved in the industry that much. The reason being their extreme knowledge. Yes, you heard it right. They are mostly focused on solving big problems.\nA computer scientist is the one who develops or invents new programming languages.\nFor instance, Tim-Berner-Lee is a very well known Computer Scientist. You can check about his latest project Here. Thanks, him if you are using the World Wide Web (www).\nProgrammer. A programmer is the one who understands a pre-written programming language and uses it to write a program for machines or computer to say.\nThey understand almost all the programming languages that exist in their era. They never stop learning.\nThey write programs on which different software runs.\nA programmer may be working on different languages at a time, while the work of a computer scientist is very specialized.\nDeveloper. A Developer is surely the most sought and in-demand professional in the industry.\nThey understand and masters a particular computer language. While as mentioned earlier a programmer can be working with almost all existing languages at a time.\nThey possess a very specialized knowledge.\nFor example:\nAndroid developer IOS developer Web developer Hacker. A Hacker is the one who works in an emergency scenario. Knowledge level of a hacker depends on individuals.\nTheir knowledge is not syllabus based.\nBasically, they find bugs in the system and hacks it (with the owner’s permission). Just tries to enter the system anyhow.\nSometimes a hacker could be as good as a developer or a programmer.\nKinds of hackers:\nEthical hacker (White hat hacker) Unethical hacker (Black hat hacker) – Illegal Quick summary: Computer Scientist – Research-based specialized work, inventing new languages. Programmer – Knows and understands many languages and writes code for software and machines. Developer – Specialized knowledge, master in a particular language. Hacker – Works in the emergency case to save the data and system. So, that is it for this article. Once again I will say – I am not judging any profession.\nFeel free to comment below.\nThank You.\n","permalink":"https://tutes.in/developer-v-s-hacker-v-s-programmer-v-s-computer-scientist/","summary":"\u003cp\u003eHello Everyone!\u003c/p\u003e\n\u003cp\u003eThis is going to be very interesting.\u003c/p\u003e\n\u003cp\u003eIn this article, I will talk about Hackers, Programmers, Developers, and Computer Scientists. The level of their knowledge and expertise. I will try to keep it simple while explaining their roles in the industry and how they are different from each other and plays a different role.\u003c/p\u003e\n\u003cp\u003eWe will also try to figure out who is more suitable for what job.\u003c/p\u003e","title":"Developer v/s Hacker v/s Programmer v/s Computer Scientist."},{"content":"Hello Everyone!\nLet’s talk about Frameworks. Today we are going to look at some pros and cons of using a framework.\nBefore that let’s have a quick explanation of Frameworks.\nWhat is a FrameWOrk? In computer programming, a software framework is an abstraction in which software providing generic functionality can be selectively changed by additional user-written code, thus providing application-specific software.\nA framework is a set of pre-written programming code that anyone can use to save their time and energy. Different programming languages have different frameworks. Often the framework is also referred to as coding libraries.\nLibraries are a bunch of codes that can save your time by already implementing the functionality you want.\nTypes of Frameworks: **UI/CSS Framework:**Bootstrap, Materialize, Bulma, etc. **Frontend JS Framework:**React, Vue, Angular, etc. **Backend Framework:**Laravel, Express, Django, etc. UI Framework: Pros: Faster development and prototyping. Responsive by default. Browser compatibility. Documentation and support. JavaScript widgets/plugins. cons: Stops developers from learning CSS. Less Customization. Lots of overriding styles. Many sites look the same. Many depend on JQuery for certain things. Frontend JS Framework: Pros: Much less work for large frontend application. Organized, component-based design. Robust data/state management. Virtual DOM (Fast performance). Reliable and tested. Great for teams. cons: Adds complexity for simple projects. Can be too opinionated / less freedom. Stops beginners from learning actual JS coding. Updates can introduce issues. Backend Framework: Pros: Saves a ton of time and makes things much easier. Very flexible and allow you to build anything. Built-in Security. MVC (Modal view controller). Built-in routing. Community documentation and support. cons: Can stop beginners from learning the fundamentals of coding. Less Freedom. That’s all I got. Conclusion: So, in the end, it literally comes down to the individual developers and programmers choice. Definitely, Framework is an amazing tool, but you should also be able to work without them.\nThat is it from my side for this article. Stay tuned for more such contents.\nThank You.\n","permalink":"https://tutes.in/frameworks-and-their-pros-and-cons/","summary":"\u003cp\u003eHello Everyone!\u003c/p\u003e\n\u003cp\u003eLet’s talk about Frameworks. Today we are going to look at some pros and cons of using a framework.\u003c/p\u003e\n\u003cp\u003eBefore that let’s have a quick explanation of Frameworks.\u003c/p\u003e\n\u003ch2 id=\"what-is-a-framework\"\u003eWhat is a FrameWOrk?\u003c/h2\u003e\n\u003cp\u003eIn \u003ca href=\"https://en.wikipedia.org/wiki/Computer_programming\" title=\"Computer programming\"\u003ecomputer programming\u003c/a\u003e, a \u003cstrong\u003esoftware framework\u003c/strong\u003e is an abstraction in which software providing generic functionality can be selectively changed by additional user-written code, thus providing application-specific software.\u003c/p\u003e\n\u003cp\u003eA framework is a set of pre-written programming code that anyone can use to save their time and energy. Different programming languages have different frameworks. Often the framework is also referred to as coding libraries.\u003c/p\u003e","title":"FrameWorks and their pros and cons."},{"content":"Hello everyone!\nIf you’re a web developer working with WordPress, read on to get five great plug-ins that can help in every aspect of the development process.\nWordPress plugins for developers are rated highly by developers since they help make their work easier. I have researched and found these 5 WordPress plugins that stand out as the most useful plugins for developers.\nWhile there is no scarcity of WordPress plugins in the world, I want to showcase some of the plugins that I think you code junkies out there may get some use out of and up your game.\nSo, let’s begin.\n5 WP plugins for developers: User SwitchingUser switching can be described as a developer’s best time saver. Ever wondered how to quickly login and log out from your WordPress site in order to view how other viewers see your website? You don’t have to keep logging in and out of your site, you can now use this plugin to switch between different users, saving you a great deal of time. This plugin allows you to switch between registered users without having to login in and out. With a click on a button, you can easily and quickly switch WordPress users.\nQuery Monitor****\nQuery Monitor lets you view all the ongoing database queries, as well as the rows being affected. You can also view rewrite rules, hooks fired on the current request, PHP errors and warning and even template filenames and parts. Furthermore, Query Monitor is one of the very few WordPress plugins for developers that let you keep track of AJAX calls, REST API requests and redirects. So if you are working with the WP REST API plugin, Query Monitor can prove to be very useful.\nDebug Bar\nPut simply, Debug Bar helps you debug your WordPress site in the most efficient way. You can check for PHP errors, database errors, and requests, various cache options, too. Plus, the plugin description mentions a lot of add-ons that give you “more insight into, for instance, the registered Post Types, Shortcodes, WP Cron, Language file loading, Actions and Filters and so on.”\nDeveloperThis is the ultimate plugin for testing your WordPress development environment. This plugin checks and ensures that your development environment is configured correctly including the plugins, constants and other settings. This plugin helps developer develop by optimizing their environment and ensuring essential tools and plugins are installed.\nWordFenceWeb security is very critical in the tech world nowadays. Cyber breaches may cause harm to the whole organization. As a developer, you need to take care of your website. WordFence will help you shield your web pages by building a firewall and malware scanner. The malware scanner checks core files, themes, and plugins for malware, bad URLs, backdoors, SEO spam, malicious redirects, and code injections.\nFor more helpful WP plugins, with their detailed review please visit: List of really good and important plugins for WordPress.\nI Hope that it was helpful to you. If you want us to touch any topic regarding web development than please let us know in the comments below.\nThank you for reading this far.\n","permalink":"https://tutes.in/5-wp-plugins-every-developer-must-have/","summary":"\u003cp\u003eHello everyone!\u003c/p\u003e\n\u003cp\u003eIf you’re a web developer working with WordPress, read on to get five great plug-ins that can help in every aspect of the development process.\u003c/p\u003e\n\u003cp\u003eWordPress plugins for developers are rated highly by developers since they help make their work easier. I have researched and found these 5 WordPress plugins that stand out as the most useful plugins for developers.\u003c/p\u003e\n\u003cp\u003eWhile there is no scarcity of WordPress plugins in the world, I want to showcase some of the plugins that I think you code junkies out there may get some use out of and up your game.\u003c/p\u003e","title":"5 WP plugins every developer must have."},{"content":"“Web Designer” and “Web Developer”. Oftentimes, the two phrases are used interchangeably by someone who is not familiar with the industry.\nThe role of each is completely different from the other. But let’s have a look into the different roles and methods, of both a web designer and a web developer.\nAt present, the boundaries between web designers and web developers are getting blurred. More and more designers began to learn to code, and developers are beginning to pay close attention to design theory. Is a web developer the same as a web designer? This article will tell the difference.\nThe difference b/w Designer and Developer. Web-Designer: Usually, web designers are responsible for the design of the visual layout of websites. Excellent designers are good at the using of a variety of concepts, such as color collocation, typesetting, spatial relations, and user experience.\nWeb designers use various design programs such as Adobe Photoshop to create the layout and other visual elements of the website.\nThrough the use of graphic design software and prototyping tools, web designers could create the initial version of a website. Then the completed design will pass to web developers for coding.\nWeb-Developer: Web developers are generally considered as a group of people who use the left brain to develop the coding of products. Under normal circumstances, Web developers get the design of the page from the Web designer and then use front-end development technology to encode these pages. They do not really care if the page looks good or not, but they care about the clean code very much. Outstanding developers are always paying more attention to details and focusing on each of them.\nWeb developers use HTML, CSS, Javascript, PHP, and other programming languages to bring to life the design files.\nIn recent years, front-end development is a hot-seat and many young people want to become a web developer. Consequently, the skill requirements are getting higher and higher, and of course, the level of web developers’ salary also increased correspondingly. At present, it’s a good time to enter the front-end development industry.\nAt the end of the day, both web designers and web developers are working toward a singular goal – to create a website or app that entices and attracts users.\nAnyone of the two is incomplete without other.\nYou gave your precious time to read this article.\nThank You.\n","permalink":"https://tutes.in/the-difference-b-w-web-designer-and-web-developer/","summary":"\u003cp\u003e“Web Designer” and “Web Developer”.  Oftentimes, the two phrases are used interchangeably by someone who is not familiar with the industry.\u003c/p\u003e\n\u003cp\u003eThe role of each is completely different from the other. But let’s have a look into the different roles and methods, of both a web designer and a web developer.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eAt present, the boundaries between web designers and web developers are getting blurred.\u003c/strong\u003e More and more designers began to learn to code, and developers are beginning to pay close attention to design theory. Is a web developer the same as a web designer? This article will tell the difference.\u003c/p\u003e","title":"The difference b/w Web-Designer and Web-Developer."},{"content":"Hello Everyone!\nLet’s talk about hosting, once again. I have talked quite a lot about hosting in other articles, but this one is different.\nIf you want to launch a simple website but don’t want to go through the dull process of setting up yet another hosting package. There is an easier solution. If you just want to launch a simple static website you can use GitHub Pages to host your site for free.\nGitHub is not only a great place to store and share your code with others but they also offer free web hosting of your HTML, CSS, and JavaScript projects!\nSteps to host your page on GitHub: **Signup for GitHub account:**Visit github.com, and you’ll see a signup form on their front page. (If you don’t, congrats, you already have an account!)\nDownload and install the GitHub desktop app: This is the app that we’ll use to get our code up on GitHub. It’s easy to use so don’t fret; the user interface is easy to learn!\n**Create a Git repository:**Open up the GitHub Desktop app and click the “Create New Repository” button.\nWhen the “Create a New Repository” dialog window appears, fill in the “Name” text inputas:\n[username].github.io Name your repository in this manner will tell GitHub to host the files in this project automatically and display them when someone points their browser to:\nhttps://[username].github.io/ This will be the web address you will share when your site is ready to publish and go live! Congratulations, you have a new project! But it has no files yet. As a quick way to create the first file, click the “README” link:\n**Copy your files to the new Repository file:**Copy everything in your working folder (/Documents/my-site) into your GitHub Repository folder (/Sites/[username].github.io).\nScroll down the page until you find the Commit area, and click “Commit new file”. Every time you create a new version of a file, you are making a “commit” to record that in the file version history. Each commit has a message to describe the change.\n**Type YOUR_USERNAME.github.io in the browser, and reload until your webpage appears.**Github takes from 1-10 minutes to upload your project changes to the user-facing webpage URL, so you may need to exercise patience. You may also need to “hard reload” (hold shift while reloading), to clear the browser cache.\nWhenever you want to make changes to your website, you just need to commit the changes and then push the files up to your GitHub repository. Your changes will be published automatically!\nIf you want to use your own domain you can do that too. We will talk about it in some other near future article.\nLet me know if I missed any steps, if something didn’t work out quite right for you, or if this guide was helpful! Thank you for reading!\nHappy Coding.\n","permalink":"https://tutes.in/how-to-host-your-web-page-on-github/","summary":"\u003cp\u003eHello Everyone!\u003c/p\u003e\n\u003cp\u003eLet’s talk about hosting, once again. I have talked quite a lot about hosting in other articles, but this one is different.\u003c/p\u003e\n\u003cp\u003eIf you want to launch a simple website but don’t want to go through the dull process of setting up yet another hosting package. There is an easier solution. If you just want to launch a simple static website you can use GitHub Pages to host your site for free.\u003c/p\u003e","title":"How to host your web page on Github?"},{"content":"^(.*?\\..?.?).*?$ your first match will leave the number with max 2 decimal digits.\nSo find with ^(.*?\\..?.?).*?$ and replace with \\1\nInput 27485.0375 75777.9125 10785.0125 13822.5 26700 41194.375 9375 4354.225 11564.475 12430.1 3246.4875 11596.3375 22466.0375 Output: 27485.03 75777.91 10785.01 13822.5 26700 41194.37 9375 4354.22 11564.47 12430.1 3246.48 11596.33 22466.03 ","permalink":"https://tutes.in/removing-extra-digits-after-decimal-and-leave-only-two-decimal-places/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e^(.*?\\..?.?).*?$\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eyour first match will leave the number with max 2 decimal digits.\u003cbr\u003e\nSo find with \u003ccode\u003e^(.*?\\..?.?).*?$\u003c/code\u003e and replace with \u003ccode\u003e\\1\u003c/code\u003e\u003c/p\u003e\n\u003ch3 id=\"input\"\u003eInput\u003c/h3\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e27485.0375\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e75777.9125\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e10785.0125\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e13822.5\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e26700\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e41194.375\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e9375\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e4354.225\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e11564.475\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e12430.1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e3246.4875\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e11596.3375\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e22466.0375\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch3 id=\"output\"\u003eOutput:\u003c/h3\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e27485.03\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e75777.91\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e10785.01\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e13822.5\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e26700\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e41194.37\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e9375\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e4354.22\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e11564.47\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e12430.1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e3246.48\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e11596.33\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e22466.03\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Removing extra digits after decimal and leave only two decimal places"},{"content":"Hello all!\nIn the world of coding, things keep changing and as a developer, you ought to be always updated with new technologies and things coming up.\nAnd nowadays changes happen very fast, almost every month something new comes in the world of web development.\nToday I will be right to the point. This one is a short article.\nIn order to remain updated with changes in the field of web-development, often we search for it on the internet.\nBut, wouldn’t it be nice if you could get all the updates automatically every week. So, brace yourself that’s what I am gonna tell you today.\nBelow I am providing 2 newsletters, You just have to subscribe to these weekly newsletters and every week you will be updated with the latest changes via E-mail.\nResources: Frontend Focus: A once–weekly roundup of the best front-end news, articles, and tutorials. HTML, CSS, WebGL, Canvas, browser tech, and more. JavaScript Weekly: A free, once–weekly email roundup of JavaScript news and article.** Now every week just sit and wait for your newsletter to arrive with all the latest updates of HTML, CSS, JavaScript, browsers, and more.\nSo, this was all for this article. If you know some similar or better resources than please share it in the comments.\nThank You.\n","permalink":"https://tutes.in/how-to-remain-updated-with-changes-in-web-development/","summary":"\u003cp\u003eHello all!\u003c/p\u003e\n\u003cp\u003eIn the world of coding, things keep changing and as a developer, you ought to be always updated with new technologies and things coming up.\u003c/p\u003e\n\u003cp\u003eAnd nowadays changes happen very fast, almost every month something new comes in the world of web development.\u003c/p\u003e\n\u003cp\u003eToday I will be right to the point. This one is a short article.\u003c/p\u003e\n\u003cp\u003eIn order to remain updated with changes in the field of web-development, often we search for it on the internet.\u003c/p\u003e","title":"How to remain updated with changes in web development."},{"content":"Hello and welcome everyone.\nSo, straight to the topic. Today we are going to decode the science behind the screen resolution and would also see, how it is calculated?\nThere is no rocket science in this, yet it could be a bit complex for some readers, hence pay attention.\nWhy is it a big deal? screen size is important because there are lots of different screen sizes. Whether you’re deciding to build for windows or MacBook, both platforms have tons of different devices.\nResolution is also important. That’s because the resolution of different screens can affect how designers build their sites. Based on this information, there are certain things that a designer or developer needs to know.\nSo as you can see, both screen size and resolution size are important, but for different reasons.\nAs a website owner or web designer or developer, you have to take into consideration what are the most common screen resolutions for the intended target audience of the website to determine what web page width is suitable for the website.\nThese days we have many different screens sizes all with different resolutions – TV’s, desktop monitors, laptops, tablets, mobile phones, and even smart watches.\nWhat is screen resolution? To understand resolution you need to understand how a screen works. Screens are made up of thousands of tiny dots all bunched together called pixels, each one has the ability to change color and when you zoom out all the dots joined together to make up an image.\nScreen resolution is the measure of the number of pixels a screen can display. This would be measured by width and height. For example, a screen that has 1,024 pixels horizontally, and 768 vertically would have a resolution of 1,024 x 768.\nHow is it calculated? Resolution is the maximum number of pixels that can be displayed on a monitor, expressed as (number of horizontal pixels) x (number of vertical pixels), i.e., 1024×768.\nThe higher the screen resolution the more information can fit on the screen.\nScreen size is usually measured in inches and is the actual size of the device’s screen measured diagonally. Anyone with a tape can measure the screen size. Screen resolution is measured by the number of pixels displayed in each dimension. In order to calculate the pixels per inch, you need to know the screen size as well as the resolution.\nThe formula to calculate PPI is a bit complicated. You need to take both the digits in screen resolution. Add a square of both these digits and take a square root of the result. The final number should be divided by the size of the screen.\nFor example – if the screen size is 5.8 inches and screen resolution is 1138 X 680, then PPI can be calculated as –1138X 1138 + 680 X 680 = 1757444. A square root of 1757444 is 1325.69. Now, divide the number 5.8 i.e. 1325.69/5.8 = 228.5.\nFinal Words. The idea behind considering screen resolution and screen size is to build an app that is visually compatible with any android and iOS device. If you are building an app with one screen in mind, it will spoil the user experience. Poor user experience will hurt the quality of your mobile app, which is something every developer should avoid.\nIf you have any question in mind, feel free to ask in the comments.\nThank You.\n","permalink":"https://tutes.in/understanding-screen-resolution/","summary":"\u003cp\u003eHello and welcome everyone.\u003c/p\u003e\n\u003cp\u003eSo, straight to the topic. Today we are going to decode the science behind the screen resolution and would also see, how it is calculated?\u003c/p\u003e\n\u003cp\u003eThere is no rocket science in this, yet it could be a bit complex for some readers, hence pay attention.\u003c/p\u003e\n\u003ch2 id=\"why-is-it-a-big-deal\"\u003eWhy is it a big deal?\u003c/h2\u003e\n\u003cp\u003escreen size is important because there are lots of different screen sizes. Whether you’re deciding to build for windows or MacBook, both platforms have tons of different devices.\u003c/p\u003e","title":"Understanding Screen resolution."},{"content":"Windows 10 lockscreen feature is called spotlight and you see new beautiful pictures on your window 10 when ever it is locked.\nThese pics are present in Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy folder and are not having correct extensions as these are raw images and probably microsoft doesnt want them to be indexed in your gallery.\nSo, the process is simple, open Command Prompt\nFor opening command prompt, press windows button and then type cmd and click/enter on first result\nOR Press Windows + R and then type cmd followed by Enter key.\nAfter you see command prompt’s black screen,, copy and paste the following code in it and that is it.\nYou can find the lock screen pictures inside you “My Pictures” \u0026gt; “Lockscreenwallpapers” Folder.\nmkdir \u0026#34;%userprofile%\\Pictures\\Lockscreenwallpapers\u0026#34; copy \u0026#34;%userprofile%\\AppData\\Local\\Packages\\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\\LocalState\\Assets\\*\u0026#34; \u0026#34;%userprofile%\\Pictures\\Lockscreenwallpapers\\\u0026#34; C: cd \u0026#34;%userprofile%\\Pictures\\Lockscreenwallpapers\\\u0026#34; ren *.* *.jpg exit ","permalink":"https://tutes.in/how-to-save-windows-10-lockscreen-wallpaper-image-in-laptop/","summary":"\u003cp\u003eWindows 10 lockscreen feature is called spotlight and you see new beautiful pictures on your window 10 when ever it is locked.\u003cbr\u003e\nThese pics are present in \u003cmark\u003eMicrosoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\u003c/mark\u003e folder and are not having correct extensions as these are raw images and probably microsoft doesnt want them to be indexed in your gallery.\u003cbr\u003e\nSo, the process is simple, open Command Prompt\u003cbr\u003e\nFor opening command prompt, press \u003ccode\u003ewindows button\u003c/code\u003e and then type \u003ccode\u003ecmd\u003c/code\u003e and \u003ccode\u003eclick/enter\u003c/code\u003e on first result\u003cbr\u003e\n\u003ca href=\"/wp-content/uploads/2018/11/cmd1.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2018/11/cmd1-185x300.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e","title":"How to save Windows 10 Lockscreen wallpaper image in laptop?"},{"content":"Help for any particular command can be found by command:\nHELP CommandName Full List of available commands:\nASSOC Displays or modifies file extension associations. ATTRIB Displays or changes file attributes. BREAK Sets or clears extended CTRL+C checking. BCDEDIT Sets properties in boot database to control boot loading. CACLS Displays or modifies access control lists (ACLs) of files. CALL Calls one batch program from another. CD Displays the name of or changes the current directory. CHCP Displays or sets the active code page number. CHDIR Displays the name of or changes the current directory. CHKDSK Checks a disk and displays a status report. CHKNTFS Displays or modifies the checking of disk at boot time. CLS Clears the screen. CMD Starts a new instance of the Windows command interpreter. COLOR Sets the default console foreground and background colors. COMP Compares the contents of two files or sets of files. COMPACT Displays or alters the compression of files on NTFS partitions. CONVERT Converts FAT volumes to NTFS. You cannot convert the current drive. COPY Copies one or more files to another location. DATE Displays or sets the date. DEL Deletes one or more files. DIR Displays a list of files and subdirectories in a directory. DISKPART Displays or configures Disk Partition properties. DOSKEY Edits command lines, recalls Windows commands, and creates macros. DRIVERQUERY Displays current device driver status and properties. ECHO Displays messages, or turns command echoing on or off. ENDLOCAL Ends localization of environment changes in a batch file. ERASE Deletes one or more files. EXIT Quits the CMD.EXE program (command interpreter). FC Compares two files or sets of files, and displays the differences between them. FIND Searches for a text string in a file or files. FINDSTR Searches for strings in files. FOR Runs a specified command for each file in a set of files. FORMAT Formats a disk for use with Windows. FSUTIL Displays or configures the file system properties. FTYPE Displays or modifies file types used in file extension associations. GOTO Directs the Windows command interpreter to a labeled line in a batch program. GPRESULT Displays Group Policy information for machine or user. GRAFTABL Enables Windows to display an extended character set in graphics mode. HELP Provides Help information for Windows commands. ICACLS Display, modify, backup, or restore ACLs for files and directories. IF Performs conditional processing in batch programs. LABEL Creates, changes, or deletes the volume label of a disk. MD Creates a directory. MKDIR Creates a directory. MKLINK Creates Symbolic Links and Hard Links MODE Configures a system device. MORE Displays output one screen at a time. MOVE Moves one or more files from one directory to another directory. OPENFILES Displays files opened by remote users for a file share. PATH Displays or sets a search path for executable files. PAUSE Suspends processing of a batch file and displays a message. POPD Restores the previous value of the current directory saved by PUSHD. PRINT Prints a text file. PROMPT Changes the Windows command prompt. PUSHD Saves the current directory then changes it. RD Removes a directory. RECOVER Recovers readable information from a bad or defective disk. REM Records comments (remarks) in batch files or CONFIG.SYS. REN Renames a file or files. RENAME Renames a file or files. REPLACE Replaces files. RMDIR Removes a directory. ROBOCOPY Advanced utility to copy files and directory trees SET Displays, sets, or removes Windows environment variables. SETLOCAL Begins localization of environment changes in a batch file. SC Displays or configures services (background processes). SCHTASKS Schedules commands and programs to run on a computer. SHIFT Shifts the position of replaceable parameters in batch files. SHUTDOWN Allows proper local or remote shutdown of machine. SORT Sorts input. START Starts a separate window to run a specified program or command. SUBST Associates a path with a drive letter. SYSTEMINFO Displays machine specific properties and configuration. TASKLIST Displays all currently running tasks including services. TASKKILL Kill or stop a running process or application. TIME Displays or sets the system time. TITLE Sets the window title for a CMD.EXE session. TREE Graphically displays the directory structure of a drive or path. TYPE Displays the contents of a text file. VER Displays the Windows version. VERIFY Tells Windows whether to verify that your files are written correctly to a disk. VOL Displays a disk volume label and serial number. XCOPY Copies files and directory trees. WMIC Displays WMI information inside interactive command shell. ","permalink":"https://tutes.in/list-of-commands-for-windows-command-line-interface-cmd/","summary":"\u003cp\u003eHelp for any particular command can be found by command:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eHELP CommandName\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eFull List of available commands:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eASSOC          Displays or modifies file extension associations.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eATTRIB         Displays or changes file attributes.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eBREAK          Sets or clears extended CTRL+C checking.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eBCDEDIT        Sets properties in boot database to control boot loading.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eCACLS          Displays or modifies access control lists (ACLs) of files.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eCALL           Calls one batch program from another.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eCD             Displays the name of or changes the current directory.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eCHCP           Displays or sets the active code page number.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eCHDIR          Displays the name of or changes the current directory.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eCHKDSK         Checks a disk and displays a status report.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eCHKNTFS        Displays or modifies the checking of disk at boot time.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eCLS            Clears the screen.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eCMD            Starts a new instance of the Windows command interpreter.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eCOLOR          Sets the default console foreground and background colors.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eCOMP           Compares the contents of two files or sets of files.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eCOMPACT        Displays or alters the compression of files on NTFS partitions.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eCONVERT        Converts FAT volumes to NTFS.  You cannot convert the\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e               current drive.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eCOPY           Copies one or more files to another location.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDATE           Displays or sets the date.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDEL            Deletes one or more files.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDIR            Displays a list of files and subdirectories in a directory.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDISKPART       Displays or configures Disk Partition properties.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDOSKEY         Edits command lines, recalls Windows commands, and\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e               creates macros.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eDRIVERQUERY    Displays current device driver status and properties.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eECHO           Displays messages, or turns command echoing on or off.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eENDLOCAL       Ends localization of environment changes in a batch file.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eERASE          Deletes one or more files.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eEXIT           Quits the CMD.EXE program (command interpreter).\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFC             Compares two files or sets of files, and displays the\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e               differences between them.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFIND           Searches for a text string in a file or files.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFINDSTR        Searches for strings in files.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFOR            Runs a specified command for each file in a set of files.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFORMAT         Formats a disk for use with Windows.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFSUTIL         Displays or configures the file system properties.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eFTYPE          Displays or modifies file types used in file extension\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e               associations.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eGOTO           Directs the Windows command interpreter to a labeled line in\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e               a batch program.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eGPRESULT       Displays Group Policy information for machine or user.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eGRAFTABL       Enables Windows to display an extended character set in\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e               graphics mode.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eHELP           Provides Help information for Windows commands.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eICACLS         Display, modify, backup, or restore ACLs for files and\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e               directories.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eIF             Performs conditional processing in batch programs.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eLABEL          Creates, changes, or deletes the volume label of a disk.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eMD             Creates a directory.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eMKDIR          Creates a directory.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eMKLINK         Creates Symbolic Links and Hard Links\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eMODE           Configures a system device.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eMORE           Displays output one screen at a time.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eMOVE           Moves one or more files from one directory to another\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e               directory.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eOPENFILES      Displays files opened by remote users for a file share.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ePATH           Displays or sets a search path for executable files.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ePAUSE          Suspends processing of a batch file and displays a message.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ePOPD           Restores the previous value of the current directory saved by\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e               PUSHD.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ePRINT          Prints a text file.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ePROMPT         Changes the Windows command prompt.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ePUSHD          Saves the current directory then changes it.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRD             Removes a directory.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRECOVER        Recovers readable information from a bad or defective disk.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eREM            Records comments (remarks) in batch files or CONFIG.SYS.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eREN            Renames a file or files.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRENAME         Renames a file or files.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eREPLACE        Replaces files.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRMDIR          Removes a directory.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eROBOCOPY       Advanced utility to copy files and directory trees\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eSET            Displays, sets, or removes Windows environment variables.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eSETLOCAL       Begins localization of environment changes in a batch file.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eSC             Displays or configures services (background processes).\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eSCHTASKS       Schedules commands and programs to run on a computer.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eSHIFT          Shifts the position of replaceable parameters in batch files.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eSHUTDOWN       Allows proper local or remote shutdown of machine.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eSORT           Sorts input.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eSTART          Starts a separate window to run a specified program or command.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eSUBST          Associates a path with a drive letter.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eSYSTEMINFO     Displays machine specific properties and configuration.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTASKLIST       Displays all currently running tasks including services.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTASKKILL       Kill or stop a running process or application.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTIME           Displays or sets the system time.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTITLE          Sets the window title for a CMD.EXE session.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTREE           Graphically displays the directory structure of a drive or\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e               path.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eTYPE           Displays the contents of a text file.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eVER            Displays the Windows version.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eVERIFY         Tells Windows whether to verify that your files are written\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e               correctly to a disk.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eVOL            Displays a disk volume label and serial number.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eXCOPY          Copies files and directory trees.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eWMIC           Displays WMI information inside interactive command shell.\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"List of Commands for Windows Command Line Interface (CMD)"},{"content":"Hi Everyone.\nToday we will be talking about learnings. For a web-developer learning is a lifelong process.\nThere are various ways, resources, and methods to learn from. But here we gonna talk about one of the most important ways.\nThat is by joining online web-development forums.\nWhat is a forum? A forum is an online place where different people from the same field are connected so that they can discuss various things related to their field.\nA forum is great way to learn from others experience and expertise. You can also share your point of views on these forums. (These forums might have some regulations.)\nSo, we are about to see the top 7 Web-Development forums for 2018 – 2019.\nTop 7 Web-Development forums. Launch Chat: Launch consists of developers, entrepreneurs, designers, and marketers primarily working in the tech space. Its homepage is full of members who are “Y-Combinator founders, Thiel Fellows, serial entrepreneurs, investors, and passionate makers”.\nfrontendDevelopers: frontendDevelopers is a fabulous place to find new gigs. Apart from that, you can get feedback from like-minded developers, share ideas, and learn the latest trends in this forum.\nWebdeveloper.com Forum: Webdeveloper.com is a forum about general web development and programming. The site is separated into sections: client-side development, server-side development, andsite management.\nStack Overflow: It’s one of the most popular developer’s community site with questions and answers. You develop a reputation by answering questions and upvotes. Users with higher reputation can comment, vote and even edit comments of other people.\nHTML Forums: HTML Forums is dedicated specifically to HTML. There are “electrifying discussions” there. Also, you can find information on traffic and links sale, server administration, domain names for sale and much more.\nThe SitePoint Forums: If you are looking for a great place to find answers to your questions about HTML, CSS, Marketing, JavaScript, PHP, Net, Database, design, and UX, hosting and more. Than the SitePoint forum is for you.\nWebdevforums: On Webdevforums forum you can get feedback about your website, find useful tutorials, ask questions about marketing and SEO. Use categories at the bottom of the page to navigate the website.\nBesides the list, I provided above there are two awesome places where you can find like-minded people and forums on every possible field.\nQuora.com \u0026amp; Reddit.com\nI hope that you will use a few or at least one of the suggested forums to keep learning.\nYou gave your precious time to read this article, Thank You.\n","permalink":"https://tutes.in/top-7-forums-for-web-developers/","summary":"\u003cp\u003eHi Everyone.\u003c/p\u003e\n\u003cp\u003eToday we will be talking about learnings. For a web-developer learning is a lifelong process.\u003c/p\u003e\n\u003cp\u003eThere are various ways, resources, and methods to learn from. But here we gonna talk about one of the most important ways.\u003c/p\u003e\n\u003cp\u003eThat is by joining online web-development forums.\u003c/p\u003e\n\u003ch3 id=\"what-is-a-forum\"\u003eWhat is a forum?\u003c/h3\u003e\n\u003cp\u003eA forum is an online place where different people from the same field are connected so that they can discuss various things related to their field.\u003c/p\u003e","title":"Top 7 forums for Web-Developers."},{"content":"Hi Everyone.\nToday we are going to talk about the two operating systems. Windows and Linux. Both of them have their own pros and cons.\nOffcourse Windows have its monopoly with 88% plus market shares. Although slowly but Linux has started getting attention and getting more popular day by day.\nWindows has dominated the market because it is way simpler to operate than any other operating system.\nIn this article, we will be focusing on understanding the two operating systems and their pros and cons.\nSo, let’s begin.\nWhat is Windows operating system? Windows is a series of operating systems, Each operating system comes with a graphical user interface (GUI) with a desktop which allows a user to view all files, videos etc. The first version of Windows OS was released in 1985 which was a simple GUI, an extension of the existing disk operating system (MS-DOS). windows OS comes with almost all company who made PC’s or laptops. Latest Windows OS version is Windows 10 which is currently ruling the market.\nWhat is the Linux operating system? Based on UNIX Linux is an open source operating system, created in 1991. Users can modify the existing code and create distributions from it as it is an open source operating system. Linux operating system also comes with a graphical user interface (GUI) with some necessary software’s which are used on a daily basis. Linux is mostly used as a server – as most of the web pages over the internet are generated from Linux servers and also used in desktop computers, mobile devices, gaming consoles, digital storing devices, eBook readers, cameras, video recorders have Linux running.\nComparison: USES:\nLinux is used by corporate, scientific, and academic organizations of every size. It’s used to power the development machines and servers at Google, Facebook, Twitter, NASA, and the New York Stock Exchange, just to name a few. On the desktop, it is used by technically proficient users who prioritize system security and reliability, and by enthusiasts who want to learn more about computers and how they work. Microsoft Windows is usually the operating system of choice for gamers, novice users, and business users who rely on Microsoft software. Many Windows users are thrilled with the changes that Microsoft has introduced with Windows 10, so if you’ve never used it, now is a great time to try it out. SECURITY:\nLinux is a highly secure operating system. Although attack vectors are still discovered, its source code is open and available for any user to review, which makes it easier to identify and repair vulnerabilities. Microsoft has made great security improvements over the years. But as the operating system with the largest user base, especially among novice computer users, it is the primary target for malicious coders. As a result, of all major operating systems, Microsoft Windows is the most likely to be the victim of viruses and malware. USABILITY:\nGNU/Linux operating systems have a steeper learning curve for the average user. They frequently require a deeper understanding of the underlying system to perform day-to-day functions. Additionally, troubleshooting technical issues can be a more intimidating and complicated process than on Window. Windows is one of the easiest desktop operating systems to use. One of its primary design characteristics is user-friendliness and simplicity of basic system tasks. Its ease lack of difficulty is considered positive by users who want their system to just work. However, more proficient users may be frustrated by the oversimplification of system tasks at the expense of fine-grained control over the system itself. Conclusion: So, ultimately it depends on the user.\nIf your use is just of a normal system which is dammed easy to use, go with Windows 10.\nBut if you are more of a geek, and would love to customize the system as per your needs, go with LINUX.\ndepends if i have to watch youtube or code\nI had shifted to linux for 2-3 months but could not continue because windows have more gui software than any other known operating system. I like to keep things handy to me all the time, so windows.\nI still encounter linux everyday because of ssh and servers\n– Harshvardhan Malpani (tutes.in: Admin)\nOK! everyone this is it for today. See you soon.\nThank You.\n","permalink":"https://tutes.in/windows-v-s-linux-whats-your-choice/","summary":"\u003cp\u003eHi Everyone.\u003c/p\u003e\n\u003cp\u003eToday we are going to talk about the two operating systems. Windows and Linux. Both of them have their own pros and cons.\u003c/p\u003e\n\u003cp\u003eOffcourse Windows have its monopoly with 88% plus market shares. Although slowly but Linux has started getting attention and getting more popular day by day.\u003c/p\u003e\n\u003cp\u003eWindows has dominated the market because it is way simpler to operate than any other operating system.\u003c/p\u003e\n\u003cp\u003eIn this article, we will be focusing on understanding the two operating systems and their pros and cons.\u003c/p\u003e","title":"Windows v/s Linux. What’s your choice?"},{"content":"Maximum Execution Time and Maximum Input Time\nphp_value max_execution_time 300 php_value max_input_time 300 Max Upload file size and Max POST data size\nphp_value upload_max_filesize 20M php_value post_max_size 21M Output buffering toggle\nphp_value output_buffering on # OR php_value output_buffering 16384 Expose PHP signature – toggle\nphp_value expose_php on Maximum Input variables\nphp_value max_input_vars 1500 Maximum Memory Limit for PHP\nphp_value memory_limit 1256M Magic Quotes toggle\nphp_value magic_quotes_gpc on Register Global Variables – useless now\nregister_globals = off #removed as of php 5.4 Allow remote URL in fopen\nphp_value allow_url_fopen on Max Execution Time for php scripts\nphp_value max_execution_time 1000 Set Timezone for PHP datetime functions\nphp_value date.timezone \u0026#34;Europe/Paris\u0026#34; php_value date.timezone \u0026#34;Asia/Kolkata\u0026#34; More at: http://www.php.net/manual/en/timezones.php\nError Logging Settings\nphp_value log_errors On php_value error_log /path/filename php_value display_errors on php_value display_startup_errors on Complete List of INI directives: http://www.php.net/manual/en/ini.list.php\n","permalink":"https://tutes.in/common-php-ini-directives-list-for-apache-htaccess-files/","summary":"\u003cp\u003eMaximum Execution Time and Maximum Input Time\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp_value max_execution_time 300\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp_value max_input_time 300\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eMax Upload file size and Max POST data size\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp_value upload_max_filesize 20M\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp_value post_max_size 21M\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eOutput buffering toggle\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp_value output_buffering on\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e# OR\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp_value output_buffering 16384\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eExpose PHP signature – toggle\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp_value expose_php on\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eMaximum Input variables\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp_value max_input_vars 1500\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eMaximum Memory Limit for PHP\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp_value memory_limit 1256M\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eMagic Quotes toggle\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp_value magic_quotes_gpc on\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eRegister Global Variables – useless now\u003c/p\u003e","title":"Common PHP.ini directives list for Apache htaccess files"},{"content":"Hello! Good to see you.\nThis is going to be a very important article because we are about to discuss “How to repair a MySQL database?”\nWhy repair MySQL Database? Databases can become corrupted for any number of reasons, from software defects to hardware issues.\nIf this occurs, you can try to repair the database. Wondering how to do it? Just follow this article.\nREPAIRING MYSQL DATABASES: Let’s see how to repair MySQL database through Linux and Windows command line.\nRepair MySQL Database through Windows command line. Log in to your Windows VPS using Remote Desktop.\nGo to Start and locate the Command Prompt. Right-click Command Prompt and select Run as Administrator option.\nAt windows command prompt navigate to MySQL bin directory as follows.\ncd C:\\Program Files\\MySQL\\MySQL Server 5.5\\bin // Replace your MySQL bin directory path here. Run the following command to start the MySQL prompt.\nmysql -u root -p Enter MySQL root password when you are being asked.\nYou will see MySQL prompt appearing. Now, to display all databases, type following command at MySQL prompt:\nshow databases; Enter the following command to repair MySQL database.\nmysqlcheck -r [database] // Replace database name with your database name. Repair MySQL Database through Linux Terminal. Login to your Linux VPS using Secure Shell (SSH) and connect to MySQL from the command line.\nmysql -uUsername -p // Replace Username with your username. Enter MySQL user password and hit Enter. You will see MySQL prompt appearing. Now, in order to display all databases, type following command at MySQL prompt.\nshow databases; mysqlcheck enables you to check databases without stopping the entire MySQL service. -r argument is used to repair the corrupted tables. mysqlcheck utility efficiently works on both MyISAM and InnoDB database engines. Enter the following command to repair MySQL database.\nmysqlcheck -r [database] // Replace database name with your database name. So, we covered this issue for both Windows and Linux.\nLastly please check our other articles on various topics, that we tried to address.\nThank You.\n","permalink":"https://tutes.in/how-to-repair-a-mysql-database/","summary":"\u003cp\u003eHello! Good to see you.\u003c/p\u003e\n\u003cp\u003eThis is going to be a very important article because we are about to discuss  “How to repair a MySQL database?”\u003c/p\u003e\n\u003ch4 id=\"why-repair-mysql-database\"\u003eWhy repair MySQL Database?\u003c/h4\u003e\n\u003cp\u003eDatabases can become corrupted for any number of reasons, from software defects to hardware issues.\u003c/p\u003e\n\u003cp\u003eIf this occurs, you can try to repair the database. Wondering how to do it? Just follow this article.\u003c/p\u003e\n\u003ch2 id=\"repairing-mysql-databases\"\u003eREPAIRING MYSQL DATABASES:\u003c/h2\u003e\n\u003cp\u003eLet’s see how to repair MySQL database through Linux and Windows command line.\u003c/p\u003e","title":"How to repair a MySQL database?"},{"content":"Hello Everyone.\nThis article is a step by step guide to install WordPress manually on your site through Cpanel.\nNow you might ask, Why would you install it manually? when I can use the auto installer. Offcourse auto-installer is a great feature which reduces our effort.\nThese installers work great in many cases, but often stuff your site full of unwanted plugins and themes. In addition, these automated tools have a reputation for timing out or being completely unavailable at times, which can be frustrating if you’re on a deadline.\nAlso by doing manual work you get a better understanding of the system.\nSo, let’s start.\nWp manual installation: Steps. Step 1: Download WordPress. To be able to use WordPress CMS, you would need to download it from the official WordPress site. (WordPress.org)\nStep 2: Upload WordPress. Upload the downloaded package to your hosting account. This can be done in the following three ways:\nUploading via File manager. Within the File Manager, locate and navigate to that directory. From the toolbar of the cPanel, select “Upload” and browse for the file you downloaded from WordPress.org. Uploading via FTP (file transfer protocol). Uploading SSH (secure socket shell). Step 3: MySQL DataBase. Create a MySQL database and user. For storing the data you will need to create a database which can be done using the below procedure.\nLogin to your Cpanel. Under the database section, select the MySQL database wizard. Create a Database and enter the database name. Click Next Step. Create Database Users and enter the username and password. Click Create User. Step 4: Connect WP to DataBase. Now is the time to connect the database with WordPress. In order to do that fill up the details form step 3 in WordPress too.\nOn starting WordPress it will ask for important details to connect the database. Enter the database username. Enter the database password. Choose the Database Host. You can get this info from your web host. Submitting all this will connect your database to WordPress account.\nStep 5: Script installation. The last job is to execute the installation script from the installation page. You can find the script using either of the below URLs:\nhttp://yourdomain.com/wp-admin/install.php http://yourdomain.com/blog/wp-admin/install.php That’s it. You have successfully installed WordPress to your site. Enjoy the best wp themes and plugins now.\nI hope that this article may have helped you. We may talk about Softaculous in the near future so stay tuned.\nThank You.\n","permalink":"https://tutes.in/how-to-install-wordpress-manually-through-cpanel/","summary":"\u003cp\u003eHello Everyone.\u003c/p\u003e\n\u003cp\u003eThis article is a step by step guide to install WordPress manually on your site through Cpanel.\u003c/p\u003e\n\u003cp\u003eNow you might ask, Why would you install it manually? when I can use the auto installer. Offcourse auto-installer is a great feature which reduces our effort.\u003c/p\u003e\n\u003cp\u003eThese installers work great in many cases, but often stuff your site full of unwanted plugins and themes. In addition, these automated tools have a reputation for timing out or being completely unavailable at times, which can be frustrating if you’re on a deadline.\u003c/p\u003e","title":"How to install WordPress manually through Cpanel?"},{"content":"Hello Everyone.\nThis topic is pretty important because if you got this wrong, you won’t be able to show any images on your web page.\nAfter uploading your HTML file \u0026amp; images you have to provide correct path for img src attribute\nIn the previous article, we saw ‘How to upload files and images to your web hosting.‘ You can think of this article as a continuation to that one.\nSo, let’s see ‘How to add file path in src attribute inside img tag?’\nSrc attribute inside image tag: Login \u0026raquo; my website \u0026raquo; manage website \u0026raquo; file manager \u0026raquo; upload files now.\nDouble click on your uploaded HTML file. It will open the code of your HTML file. Now look for all the image tags in your code. (You can find it by “Ctrl + F” keyboard shortcut.) Now in the src attribute add/change the image path and save. Correct image path has been added/changed. How to locate the correct path of the image? Go to the uploaded image and click on view. You will be redirected to the URL where that image lies. Copy that URL and paste it in the src attribute of your img tag. (step 3 in the previous section.) if you have uploaded images directly to Public_html folder then you have to write src attribute as follows: img src=”imagename.jpg”\nor if you created a separate folder for images then you have to write src attribute as follows: img src =”foldername/imagename.jpg”\nIf your image and HTML folder lies in the:\nThe same folder than src attribute goes this way – “./imagename.jpg”\nAnother folder than src attribute goes this way – “../foldername/imagename.jpg”\nCredit: Shahebaj khan If anything is missed out, please let us know in the comment below.\nHope that we have been able to provide some value to you.\nThank You.\n","permalink":"https://tutes.in/how-to-add-file-paths-in-src-attribute-inside-img-tag/","summary":"\u003cp\u003eHello Everyone.\u003c/p\u003e\n\u003cp\u003eThis topic is pretty important because if you got this wrong, you won’t be able to show any images on your web page.\u003c/p\u003e\n\u003cp\u003eAfter uploading your HTML file \u0026amp; images you have to provide correct path for img src attribute\u003c/p\u003e\n\u003cp\u003eIn the previous article, we saw ‘\u003ca href=\"/how-to-upload-files-to-000webhost/\"\u003eHow to upload files and images to your web hosting.\u003c/a\u003e‘ You can think of this article as a continuation to that one.\u003c/p\u003e","title":"How to add file paths in src attribute inside img tag"},{"content":"Hello Everyone and welcome to tutes.in.\nToday we are going to see ‘How to upload your images and HTML files to your web hosting.’\nThese are small things but could be confusing in the beginning, as it was to me.\n**One quick fact:**000web host is an open source project of Hostinger.\nLet’s get back to the topic.\nHow to upload files to the web host? Here is a step by step guide to uploading your file to the web host, specifically t0 000webhost.\nLogin (Here) to your Cpanel. (Oh! that’s obvious.) Go to my website from the drop-down menu in the top right corner. Click on manage website. Now go to the file manager. There you get an option to upload your file. Click on ‘Upload files now.’ Now you are on the page where all your data (file) is stored. Click on the ‘upload file icon.’ Select files from your computer and upload to your desired path. If you are uploading a web page make sure to have your images and HTML file in the same folder. Or take care of src attribute in the image tag.\nCredit: Shahebaj khan So, that’s it for this article. I will be back with another article, stay tuned.\nThank You.\n","permalink":"https://tutes.in/how-to-upload-files-to-000webhost/","summary":"\u003cp\u003eHello Everyone and welcome to tutes.in.\u003c/p\u003e\n\u003cp\u003eToday we are going to see ‘How to upload your images and HTML files to your web hosting.’\u003c/p\u003e\n\u003cp\u003eThese are small things but could be confusing in the beginning, as it was to me.\u003c/p\u003e\n\u003cp\u003e**One quick fact:**000web host is an open source project of \u003ca href=\"https://www.hostinger.in/\"\u003eHostinger\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eLet’s get back to the topic.\u003c/p\u003e\n\u003ch2 id=\"how-to-upload-files-to-the-web-host\"\u003eHow to upload files to the web host?\u003c/h2\u003e\n\u003cp\u003eHere is a step by step guide to uploading your file to the web host, specifically t0 000webhost.\u003c/p\u003e","title":"How to upload files to 000webhost?"},{"content":"CMS: A content management system is a software that helps us to manage our content and site.\nYou can literally manage everything from a blog to an e-commerce site, using CMS. You can manage an article if you have a blog, or manage your product if it is an e-commerce business.\nIt has made our life so easier that we just can’t imagine having a site without CMS. You can operate most CMS out there even if you have no prior technical knowledge.\nToday we are going to talk about the top CMS in 2018, there features, flexibility and specifications because that’s what they are known for.\nSo, without any further delay let’s begin.\nTop CMS: WordPress: This one goes without saying. Probably the best one out there. WordPress can make almost any kind of site either it is a blog, a real state site or an e-commerce. It can make anything under the sun. WordPress is the framework behind many of the websites and blogs you visit every day, including this one. Few of the key features are responsive design, social sharing features, multiple page styles, auto upgrade, and standard compliant coding. The one thing that makes it a CMS beast is plugins. Joomla: Joomla is a popular Content Management System. It is much more than just a powerful content management system. Besides, hundreds of extensions to enhance the functionality of any Joomla website, Joomla itself includes some powerful built-in features (or core features). Many times ranked as the 2nd best CMS after WP. Few key features are Rss, media manager, web links, search, banner management and, user management. Drupal: Drupal 8 takes an already terrific content management framework to ever greater heights for users, administrators, and developers. There’s a seriously sharp focus on user-friendliness, but the content presentation, new ways to create data structures, build APIs, multilingual capabilities, and the delivery of mobile accessibility out of the box? Drupal 8 brings those to the table too. Few of the features are mobile first, multilingual ready, loading speed, javascript automated testing. Magento: Specific to make an e-commerce site. The large array of features is one of the main benefits of Magento. Through them, you can easily develop and manage a successful online store. Magento features like different payment engines and shipping options along with the international support and high security using an SSL certificate will make your shop an attractive place for e-commerce. The core features are checkout payment and shipping, analytics and reporting, marketing and promotional tools, and order management. OpenCart: OpenCart is an open-source shopping cart built on PHP/MySQL code. Distributed as a free eCommerce solution, OpenCart is a very user-friendly and effective platform that comes with a very intuitive and well-designed user-interface as well as a higher selection of extensions. Perfect for small businesses and medium-sized e-commerce stores, OpenCart is loaded with all the basic functions a user would need from an e-commerce solution. Main features are, Product Reviews, Product Ratings, open source, multi-currency, automated image resize, 20+ payment gateways, and 8+ shipping methods. One honorable mention is WIX. Very user-friendly having drag and drop interface.\nSO, these were the top of 2018 CMS. You should choose one according to your needs. Keep visiting for such more articles.\nThank You.\n","permalink":"https://tutes.in/top-cms-out-there-in-2018/","summary":"\u003ch5 id=\"cms\"\u003eCMS:\u003c/h5\u003e\n\u003cp\u003eA content management system is a software that helps us to manage our content and site.\u003c/p\u003e\n\u003cp\u003eYou can literally manage everything from a blog to an e-commerce site, using CMS. You can manage an article if you have a blog, or manage your product if it is an e-commerce business.\u003c/p\u003e\n\u003cp\u003eIt has made our life so easier that we just can’t imagine having a site without CMS. You can operate most CMS out there even if you have no prior technical knowledge.\u003c/p\u003e","title":"Top CMS out there in 2018."},{"content":"WordPress: The most popular CMS, yet there is one thing that keeps on confusing the newbies. And that is the difference between wordpress.com and wordpress.org.\nI myself have been confused about the difference, which once made me choose the wrong one. (as per my needs.)\nBut I don’t want this to happen with you, hence here is an article to clear this thing out.\nWhat’s the difference: The very first difference is in the domain extension.\n.org – organization (free for everyone)\n.com – commercial.\nThis isn’t a hard and fixed rule, but you got the context.\nThe major difference: The major difference is “who is hosting your site?” In wordpress.com your site is hosted by WordPress, whereas in wordpress.org you are hosting your site via a hosting provider.\nWordPress.org The WordPress software, located at WordPress.org, is a free, open source content management system. To use the WordPress.org software, you need to install it on a web server. And that’s the key difference between WordPress.com vs WordPress.org.\nIf you download WordPress from WordPress.org, YOU host it. You set it up with your own hosting provider and use it on your own website, which gives you a ton of flexibility. This is why WordPress.org is often also called self-hosted WordPress.\nWordPress.org has much better customization options. You’re able to install plugins, use custom website themes, and do just about anything you want with your site. You can also monetize your website however you want, which is great if you’re planning to make it a business.\nWordPress.com WordPress software located at wordpress.com is a blog website platform. This doesn’t need to be downloaded. You can have your site running right away just by signing up on the wordpress.com.\nThis is limited but free as long as you are ok with their branding. And if you want to the domain of your choice, pay for it. No plugin is allowed with a free version.\nWith .com you won’t be able to install your own “plugins” or “themes” unless you pay for the expensive business plan. Plugins and themes are one of the most helpful things about the WordPress software because they make it easy to customize your site, so that’s a pretty big loss.\nThe final note: Go with wordpress.org, if you want the best options and full control over your site.\nI hope this was helpful to you. Thanks for reading.\nThank You\n","permalink":"https://tutes.in/wordpress-com-v-s-wordpress-org-the-difference/","summary":"\u003ch3 id=\"wordpress\"\u003eWordPress:\u003c/h3\u003e\n\u003cp\u003eThe most popular CMS, yet there is one thing that keeps on confusing the newbies. And that is the difference between wordpress.com and wordpress.org.\u003c/p\u003e\n\u003cp\u003eI myself have been confused about the difference, which once made me choose the wrong one. (as per my needs.)\u003c/p\u003e\n\u003cp\u003eBut I don’t want this to happen with you, hence here is an article to clear this thing out.\u003c/p\u003e\n\u003ch2 id=\"whats-the-difference\"\u003eWhat’s the difference:\u003c/h2\u003e\n\u003cp\u003eThe very first difference is in the domain extension.\u003c/p\u003e","title":"WordPress.com v/s WordPress.org : The difference."},{"content":"There are a lot of vestacp commands which are useful in automating things but you see error\nsudo: v-list-sys-vesta-ssl: command not found OR\nsomething like this:\nsudo /usr/local/vesta/bin/v-add-web-domain-ssl mage yourdomain /usr/local/vesta/bin/v-add-web-domain-ssl: line 39: /func/main.sh: No such file or directory /usr/local/vesta/bin/v-add-web-domain-ssl: line 40: /func/domain.sh: No such file or directory /usr/local/vesta/bin/v-add-web-domain-ssl: line 41: /func/ip.sh: No such file or directory /usr/local/vesta/bin/v-add-web-domain-ssl: line 42: /conf/vesta.conf: No such file or directory /usr/local/vesta/bin/v-add-web-domain-ssl: line 45: format_domain: command not found /usr/local/vesta/bin/v-add-web-domain-ssl: line 46: format_domain_idn: command not found /usr/local/vesta/bin/v-add-web-domain-ssl: line 53: check_args: command not found /usr/local/vesta/bin/v-add-web-domain-ssl: line 54: is_format_valid: command not found /usr/local/vesta/bin/v-add-web-domain-ssl: line 55: is_system_enabled: command not found /usr/local/vesta/bin/v-add-web-domain-ssl: line 56: is_system_enabled: command not found /usr/local/vesta/bin/v-add-web-domain-ssl: line 57: is_object_valid: command not found /usr/local/vesta/bin/v-add-web-domain-ssl: line 58: is_object_unsuspended: command not found /usr/local/vesta/bin/v-add-web-domain-ssl: line 59: is_object_valid: command not found /usr/local/vesta/bin/v-add-web-domain-ssl: line 60: is_object_unsuspended: command not found /usr/local/vesta/bin/v-add-web-domain-ssl: line 61: is_object_value_empty: command not found /usr/local/vesta/bin/v-add-web-domain-ssl: line 62: is_web_domain_cert_valid: command not found cp: cannot stat \u0026#39;/yourdomain.crt\u0026#39;: No such file or directory cp: cannot stat \u0026#39;/yourdomain.key\u0026#39;: No such file or directory cp: cannot stat \u0026#39;/yourdomain.crt\u0026#39;: No such file or directory chmod: cannot access \u0026#39;/ssl/yourdomain.*\u0026#39;: No such file or directory cp: cannot stat \u0026#39;/ssl/yourdomain.crt\u0026#39;: No such file or directory cp: cannot stat \u0026#39;/ssl/yourdomain.key\u0026#39;: No such file or directory cp: cannot stat \u0026#39;/ssl/yourdomain.pem\u0026#39;: No such file or directory /usr/local/vesta/bin/v-add-web-domain-ssl: line 89: get_domain_values: command not found /usr/local/vesta/bin/v-add-web-domain-ssl: line 90: get_real_ip: command not found /usr/local/vesta/bin/v-add-web-domain-ssl: line 94: prepare_web_domain_values: command not found /usr/local/vesta/bin/v-add-web-domain-ssl: line 97: add_web_config: command not found /usr/local/vesta/bin/v-add-web-domain-ssl: line 110: increase_user_value: command not found /usr/local/vesta/bin/v-add-web-domain-ssl: line 113: update_object_value: command not found /usr/local/vesta/bin/v-add-web-domain-ssl: line 114: update_object_value: command not found /usr/local/vesta/bin/v-add-web-domain-ssl: line 117: /v-restart-web: No such file or directory /usr/local/vesta/bin/v-add-web-domain-ssl: line 118: check_result: command not found /usr/local/vesta/bin/v-add-web-domain-ssl: line 120: /v-restart-proxy: No such file or directory /usr/local/vesta/bin/v-add-web-domain-ssl: line 121: check_result: command not found /usr/local/vesta/bin/v-add-web-domain-ssl: line 131: log_history: command not found /usr/local/vesta/bin/v-add-web-domain-ssl: line 132: log_event: command not found Solution type this in command line (ssh)\nexport VESTA=/usr/local/vesta/ After that use any command like:\nsudo /usr/local/vesta/bin/v-add-letsencrypt-domain \u0026lt;username\u0026gt; \u0026lt;maindomain.com\u0026gt; \u0026lt;domainalias.com*\u0026gt; Dont use \u0026lt; or \u0026gt; or *\n* means optional\n\u0026lt; and \u0026gt; means replace your info with that\nComplete command list : https://vestacp.com/docs/cli/\n","permalink":"https://tutes.in/how-to-use-vestacp-cli-commands-linux/","summary":"\u003cp\u003eThere are a lot of \u003ca href=\"https://vestacp.com/docs/cli/\"\u003evestacp commands\u003c/a\u003e which are useful in automating things but you see error\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esudo: v-list-sys-vesta-ssl: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eOR\u003cbr\u003e\nsomething like this:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esudo /usr/local/vesta/bin/v-add-web-domain-ssl mage yourdomain\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 39: /func/main.sh: No such file or directory\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 40: /func/domain.sh: No such file or directory\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 41: /func/ip.sh: No such file or directory\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 42: /conf/vesta.conf: No such file or directory\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 45: format_domain: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 46: format_domain_idn: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 53: check_args: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 54: is_format_valid: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 55: is_system_enabled: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 56: is_system_enabled: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 57: is_object_valid: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 58: is_object_unsuspended: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 59: is_object_valid: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 60: is_object_unsuspended: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 61: is_object_value_empty: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 62: is_web_domain_cert_valid: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ecp: cannot stat \u003cspan class=\"s1\"\u003e\u0026#39;/yourdomain.crt\u0026#39;\u003c/span\u003e: No such file or directory\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ecp: cannot stat \u003cspan class=\"s1\"\u003e\u0026#39;/yourdomain.key\u0026#39;\u003c/span\u003e: No such file or directory\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ecp: cannot stat \u003cspan class=\"s1\"\u003e\u0026#39;/yourdomain.crt\u0026#39;\u003c/span\u003e: No such file or directory\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003echmod: cannot access \u003cspan class=\"s1\"\u003e\u0026#39;/ssl/yourdomain.*\u0026#39;\u003c/span\u003e: No such file or directory\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ecp: cannot stat \u003cspan class=\"s1\"\u003e\u0026#39;/ssl/yourdomain.crt\u0026#39;\u003c/span\u003e: No such file or directory\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ecp: cannot stat \u003cspan class=\"s1\"\u003e\u0026#39;/ssl/yourdomain.key\u0026#39;\u003c/span\u003e: No such file or directory\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ecp: cannot stat \u003cspan class=\"s1\"\u003e\u0026#39;/ssl/yourdomain.pem\u0026#39;\u003c/span\u003e: No such file or directory\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 89: get_domain_values: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 90: get_real_ip: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 94: prepare_web_domain_values: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 97: add_web_config: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 110: increase_user_value: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 113: update_object_value: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 114: update_object_value: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 117: /v-restart-web: No such file or directory\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 118: check_result: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 120: /v-restart-proxy: No such file or directory\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 121: check_result: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 131: log_history: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e/usr/local/vesta/bin/v-add-web-domain-ssl: line 132: log_event: \u003cspan class=\"nb\"\u003ecommand\u003c/span\u003e not found\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch2 id=\"solution\"\u003eSolution\u003c/h2\u003e\n\u003cp\u003etype this in command line (ssh)\u003c/p\u003e","title":"How to use VestaCP Cli Commands? – Linux"},{"content":"For Downgrading 7.2 (default) to 7.1 PHP\nsudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get install libapache2-mod-php7.1 php7.1 php7.1-bcmath php7.1-bz2 php7.1-cgi php7.1-cli php7.1-common php7.1-curl php7.1-dba php7.1-dev php7.1-enchant php7.1-fpm php7.1-gd php7.1-gmp php7.1-imap php7.1-interbase php7.1-intl php7.1-json php7.1-ldap php7.1-mbstring php7.1-mcrypt php7.1-mysql php7.1-odbc php7.1-opcache php7.1-pgsql php7.1-phpdbg php7.1-pspell php7.1-readline php7.1-recode php7.1-snmp php7.1-soap php7.1-sqlite3 php7.1-sybase php7.1-tidy php7.1-xml php7.1-xmlrpc php7.1-xsl php7.1-zip sudo a2dismod php7.2 sudo a2enmod php7.1 sudo service apache2 restart sudo update-alternatives --set php /usr/bin/php7.1 Reference: Sandy B @ mysterydata.com\n","permalink":"https://tutes.in/how-to-change-php-versions-in-vestacp-ubuntu-downgrade-upgrade-5-6-7-1-and-7-2/","summary":"\u003cp\u003eFor Downgrading 7.2 (default) to 7.1 PHP\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esudo add-apt-repository ppa:ondrej/php\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esudo apt-get update\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esudo apt-get install libapache2-mod-php7.1 php7.1 php7.1-bcmath php7.1-bz2 php7.1-cgi php7.1-cli php7.1-common php7.1-curl php7.1-dba php7.1-dev php7.1-enchant php7.1-fpm php7.1-gd php7.1-gmp php7.1-imap php7.1-interbase php7.1-intl php7.1-json php7.1-ldap php7.1-mbstring php7.1-mcrypt php7.1-mysql php7.1-odbc php7.1-opcache php7.1-pgsql php7.1-phpdbg php7.1-pspell php7.1-readline php7.1-recode php7.1-snmp php7.1-soap php7.1-sqlite3 php7.1-sybase php7.1-tidy php7.1-xml php7.1-xmlrpc php7.1-xsl php7.1-zip\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esudo a2dismod php7.2\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esudo a2enmod php7.1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esudo service apache2 restart\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003esudo update-alternatives --set php /usr/bin/php7.1\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eReference: \u003ca href=\"https://www.mysterydata.com/how-to-upgrade-php-7-0-to-php-7-1-or-php-7-2-on-ubuntu-vestacp/\"\u003eSandy B @ mysterydata.com\u003c/a\u003e\u003c/p\u003e","title":"How to change PHP versions in VestaCP Ubuntu – Downgrade Upgrade 5.6, 7.1 and 7.2"},{"content":"Connect to your mysql host and select the database to be used\nexample: use notfavoritedb; where notfavoritedb is your database name, and then enter the sql commands given below:\nSET FOREIGN_KEY_CHECKS = 0; SET GROUP_CONCAT_MAX_LEN=32768; SET @tables = NULL; SELECT GROUP_CONCAT(\u0026#39;`\u0026#39;, table_name, \u0026#39;`\u0026#39;) INTO @tables FROM information_schema.tables WHERE table_schema = (SELECT DATABASE()); SELECT IFNULL(@tables,\u0026#39;dummy\u0026#39;) INTO @tables; SET @tables = CONCAT(\u0026#39;DROP TABLE IF EXISTS \u0026#39;, @tables); PREPARE stmt FROM @tables; EXECUTE stmt; DEALLOCATE PREPARE stmt; SET FOREIGN_KEY_CHECKS = 1; exit; Reference: StackOverflow\n","permalink":"https://tutes.in/how-to-remove-all-tables-from-mysql-database/","summary":"\u003cp\u003eConnect to your mysql host and select the database to be used\u003cbr\u003e\nexample: \u003ccode\u003euse notfavoritedb;\u003c/code\u003e where notfavoritedb is your database name, and then enter the sql commands given below:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-sql\" data-lang=\"sql\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eSET\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eFOREIGN_KEY_CHECKS\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eSET\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eGROUP_CONCAT_MAX_LEN\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"mi\"\u003e32768\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eSET\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e@\u003c/span\u003e\u003cspan class=\"n\"\u003etables\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eNULL\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eSELECT\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eGROUP_CONCAT\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;`\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003etable_name\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;`\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eINTO\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e@\u003c/span\u003e\u003cspan class=\"n\"\u003etables\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"w\"\u003e  \u003c/span\u003e\u003cspan class=\"k\"\u003eFROM\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003einformation_schema\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003etables\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"w\"\u003e  \u003c/span\u003e\u003cspan class=\"k\"\u003eWHERE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003etable_schema\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"k\"\u003eSELECT\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eDATABASE\u003c/span\u003e\u003cspan class=\"p\"\u003e());\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eSELECT\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eIFNULL\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"o\"\u003e@\u003c/span\u003e\u003cspan class=\"n\"\u003etables\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;dummy\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eINTO\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e@\u003c/span\u003e\u003cspan class=\"n\"\u003etables\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eSET\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e@\u003c/span\u003e\u003cspan class=\"n\"\u003etables\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eCONCAT\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;DROP TABLE IF EXISTS \u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e@\u003c/span\u003e\u003cspan class=\"n\"\u003etables\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003ePREPARE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003estmt\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eFROM\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e@\u003c/span\u003e\u003cspan class=\"n\"\u003etables\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eEXECUTE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003estmt\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eDEALLOCATE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003ePREPARE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003estmt\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eSET\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eFOREIGN_KEY_CHECKS\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"n\"\u003eexit\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eReference: \u003ca href=\"https://stackoverflow.com/questions/12403662/how-to-remove-all-mysql-tables-from-the-command-line-without-drop-database-permi/18625545#18625545\" title=\"go to original answer on stackoverflow.com\"\u003eStackOverflow\u003c/a\u003e\u003c/p\u003e","title":"How to remove all tables from MySQL Database?"},{"content":"Are you ready for the magic? I am saying this because I believe that coding is closest to a superpower that we have. And the best part is that anyone can achieve this superpower.\nHere we are going to see how a single HTML file can look entirely different with just the change in CSS file. Mind that no front-end-framework has been used in the upcoming designs, it is just the beauty of pure CSS.\nCSS stands for cascading stylesheet. Its sole purpose is to make HTML file look physically good.\nThe image below is going to make it very clear.\nCSS Zen garden: CSS Zen garden is a site where the same HTML file has been designed with CSS by various professionals.\nIt seems that every design is a different web page with the different HTML file, but it is not. Every page has been designed with the same HTML file.\nI have shown some examples in this article. You can check more designs on the site.\nHere is the link:\nhttp://www.csszengarden.com/\n*These designs are just for the learning purpose, it can not be used as a template.\nThis is very helpful for beginners, as they can see how the professionals design and code.\nThe Beauty of CSS: So, here are a few examples from the site.\nVERDE MODERNA GARMENTS APOTHECARY FOUNTAIN KISS A ROBOT NAMED JIMMY Doesn’t all of them seems completely different web pages? Well! that’s the beauty of CSS.\nVisit the site and get to see more of these astonishing designs of the same HTML file.\nThis is how you can learn from the professionals, without letting them know. (Learning like Eklavya. Don’t worry no one is gonna ask for your thumb.) And, that’s what CSS can do.\nOK! so that is it. We will be back with another mind-boggling article. So stay tuned.\nThank You.\n","permalink":"https://tutes.in/this-is-what-css-can-do/","summary":"\u003cp\u003eAre you ready for the magic? I am saying this because I believe that coding is closest to a superpower that we have. And the best part is that anyone can achieve this superpower.\u003c/p\u003e\n\u003cp\u003eHere we are going to see how a single HTML file can look entirely different with just the change in CSS file. Mind that no front-end-framework has been used in the upcoming designs, it is just the beauty of pure CSS.\u003c/p\u003e","title":"This is what CSS can do."},{"content":"Either you talk about research, space exploration, or advancement of new technologies. Computers have become an inseparable part of our life.\nIn the last few decades, we have reduced the size of the computer and increased its computation power.\nToday’s smartphones are much smaller and faster than the giant military computers 50 years ago. We have also been able to build super-computers, currently the most powerful system.\nEven after so much advancement in computers, there is still some limitation that has not been conquered yet!\nTo name a few:\nSpeed (solving complex mathematical equations.) Storage space issue. Energy consumption Hence to overcome such limitations we need something called “Quantum Computer”.\nQUANTUM COMPUTER: Google, IBM, \u0026amp; Intel are continually trying to build computers with no limits, using the principles of Quantum Physics. (These are called Quantum Computers).\nNo, don’t think that it is all about the future because the basic model of Quantum computers has already been successfully created and tested. And now being created at massive scale.\nYou should check our article on Bit, Byte and today’s storage system.\nQUBITS:\nBinary computers use BIT for computation, whereas Quantum computers use QUBIT.\n**BIT:**Is the smallest unit of information in current computers. It represents only one of the two values, 0 or 1.\n**QUBIT:**Quantum analague of classical bit. It can take on both values simultaneouly, 0 and 1. This characterstic expands the possibilities of parellel calculations.\nThis means in Quantum Computers programmers can check for: (“if this then that” and “if both”). Two diff outputs can be checked simultaneously.\nSounds strange? How can something be at two diff positions at the same time? Well, that’s what Quantum Physics is known for.\nI could have explained the basics of Quantum Physics, but that may blow your mind with strangeness. But if you are curious like me then search about Schrodinger’s cat experiment.\nBy the time binary computers will begin to work on a complex equation, Quantum Computers will give the result.\nCHALLENGES WITH QUANTUM COMPUTERS: On observing QUBITS changes its state. Produces a lot of noise when in use. More QUBITS means more chances of error. Requires to store at perfect 0 temps. (cooler than outer space.) Consumes a lot of power to be operational. These were a few reasons that it is not operational yet!\nOnce operational it will increase our progress rate exponentially. It can help us in understanding the underlying secrets of the universe and in developing Artificial Intelligence.\nHope that Quantum Computers will very soon come into existence to make our life even easier.\nThis is a very complex topic, I tried to put it as simple as I can. Also, I avoided some out of the world concepts. I leave it up to you to explore further.\nPlease comment if you liked the article.\nThank You.\n","permalink":"https://tutes.in/quantum-computers-technology-from-the-future/","summary":"\u003cp\u003eEither you talk about research, space exploration, or advancement of new technologies. Computers have become an inseparable part of our life.\u003c/p\u003e\n\u003cp\u003eIn the last few decades, we have reduced the size of the computer and increased its computation power.\u003c/p\u003e\n\u003cp\u003eToday’s smartphones are much smaller and faster than the giant military computers 50 years ago. We have also been able to build super-computers, currently the most powerful system.\u003c/p\u003e\n\u003cp\u003eEven after so much advancement in computers, there is still some limitation that has not been conquered yet!\u003c/p\u003e","title":"Quantum Computers: Technology from the future."},{"content":"Hello everyone!\nIn this article, we are about to create an entirely new site from scratch with free domain and free hosting.\nI am going to create one for the sake of this tutorial, which you can visit to check at the end of this article.\nBefore we start, let me clear this for one last time: for the domain, we are using freenom.com and for hosting we are using 000webhost.com.\nLet’s do it:\nDomain registration: At freenom.com you will get free domain name extensions like “.tk, .ml, .ga, .cf, and e.t.c”.\nGo to freenom.com and search for your free domain. We are going to use mytrialsite.tk for our tutorial. Choose your preferred extension, checkout and continue. Sign in with your E-mail id, verify your account and set up your account details and click on complete order. Go to service in the navigation bar and select My Domains from the drop-down menu. There you have your registered domain. Getting the free Hosting: Now we have our domain, so let’s get the hosting from 000webhost.com.\nGo to 000webhost.com and click on sign up for free. Now you will be shown 3 hosting plans. Choose Free web hosting and continue. Sign up with e-mail and enter your website name and verify your account. Select Manage Website. Here you are in your dashboard. Now select “set web address“. Then it will ask you to upgrade but don’t. click on “It’s OK, I don’t mind 000webhost branding“. Next, you will have two options – Own Domain and Buy-Domain. Select “Own Domain“. At this point, it will ask you to park your domain. **BE CAREFUL AT THIS POINT DON’T ENTER YOUR DOMAIN AND CONTINUE RIGHT NOW.**I personally have troubled a lot here. Please mark my words don’t hurry here. Pointing domain to your hosting: First park domain to your hosting and then complete step 7 above.\nGo back to freenom, where you left it in step 5. click on “manage DNS”. Under the drop-down menu of “management tools” choose “Nameserver”. In Nameserver choose “use custom nameserver”. And enter these two nameservers: (ns01.000webhost.com\u0026amp; ns02.000webhost.com). Continue by clicking on change nameserver. Now is the time to enter the domain name in 000webhost at step 7 in the previous section. Back to 000webhost, enter your domain and click “park domain“. In most cases, it will be parked immediately or it may take up to an hour. Hurray: The site is now live on the internet. To make it attractive and add some content you can install WordPress.\nSo, let’s see how to do it.\nClick on “Build Website”. Select WordPress and install. Also, change admin username from admin to whatever you want. That is it you are done. Now customize your site in WordPress. We are not gonna talk about WP settings here, but maybe in some other article.\nWell you can check the site I used for this tutorial, it is live on the internet with some WP customization. Here is the link.\nwww.mytrialsite.tk\nIT takes just 5 minutes to make your site live. There are other free hosting providers as well you can check the list here.\nTutes.club – 10 free web hosting service providers.\nSo, I hope that your free site will also be live on the internet very soon. If you liked this article then you can check out our other articles as well.\nThank You.\n","permalink":"https://tutes.in/deploying-a-live-site-with-free-domain-and-hosting/","summary":"\u003cp\u003eHello everyone!\u003c/p\u003e\n\u003cp\u003eIn this article, we are about to create an entirely new site from scratch with free domain and free hosting.\u003c/p\u003e\n\u003cp\u003eI am going to create one for the sake of this tutorial, which you can visit to check at the end of this article.\u003c/p\u003e\n\u003cp\u003eBefore we start, let me clear this for one last time: for the domain, we are using \u003ca href=\"https://www.freenom.com/en/index.html?lang=en\"\u003efreenom.com\u003c/a\u003e and for hosting we are using \u003ca href=\"https://www.000webhost.com/\"\u003e000webhost.com.\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eLet’s do it:\u003c/p\u003e","title":"Deploying a live site with free Domain and Hosting."},{"content":"You may have heard Bit \u0026amp; Bytebefore, but do you really know what is it? How does the computer storage system work?\nWe are continually generating a lot of data every second, hence there should be a storage system strong enough to handle it all. In this post, we are gonna talk about this storage system.\n“Over 2.5 quintillion bytes of data are created every single day, and it’s only going to grow from there. By 2020, it’s estimated that 1.7MB of data will be created every second for every person on earth.”\nIn the next article, we will also talk about the next generation of computer storage system (Quantum Computing.)\nWhat is Bit \u0026amp; Byte? A Bit is the smallest or basic unit of computer information which has only two values “0 or 1”. These two values can also be defined as “true or false” and “yes or no”, depending on the binary code.\nA Byteis the smallest unit of memory. One byte is made up of eight bits, that means one byte is one character of information and is comprised of eight bits (eight 1’s or 0’s).\nHere is a table to clear out your confusion.\nUnit\\Value\nUnit Value 0 (Off) or 1 (On) 1 Bit 8 Bits 1 Byte 1,024 Bytes 1 Kilobyte 1,024 Kilobytes 1 Megabyte 1,024 Megabytes 1 Gigabyte 1,024 Gigabytes 1 Terabyte 1,024 Terabytes 1 Petabyte 1,024 Petabytes 1 Exabyte 1,024 Exabytes 1 Zettabyte What is 32 bit / 64 bit? Many times while downloading a software, we get to see two options – ” download in 32 bit” or “download in 64 bit”. So, let’s see what is 32 bit / 64 bit?\nThe terms 32-bit and 64-bit define the fixed-size piece of data a processor can transfer to and from memory. So, in theory, 64-bit computers can handle data twice as fast 32-bit systems.\nThe term for 64-bit computer architecture is x64, and the 32-bit computer architecture is most commonly known as x86and was based on the Intel 8086 / 8088 processor. The Intel 8086 / 8088 processor was found in the original stand-alone Pac-Man video arcade console.\nThe storage system: Different users can have different storage requirements. Knowing what a computer is going to be used for (and of course many computers are used for a variety of purposes) is hence very important when planning storage requirements.\nSo let’s continue with some of the available storage devices and technologies.\nHARD DISK STORAGE: Spinning hard disk (HD) drives are today the most common means of high capacity computer storage, with most desktop and laptop computers still relying on a spinning hard disk to store their operating system, applications programs, and at least some user data. RAID: On servers and high-end PC workstations (such as those used for high-end video editing), at least two hard disks are often linked together using a technology called RAID. This stands for “redundant array of independent disks” (or sometimes “redundant array of inexpensive drives”), and stores the data in each user volume on multiple physical drives. DIRECT ATTACHED STORAGE (DAS): Except where two internal hard disks are considered essential on the basis of performance, a second hard disk is a today most advisably connected as an external unit, or what is sometimes now known as a “DAS” or direct attached storage drive OPTICAL DISK STORAGE: Almost all optical storage involves the use of a 5″ disk from which data is read by a laser. Optical media can be read-only, write-one, or rewritable, and currently exists in one of three basic formats – CD(compact device), DVD(digital versatile disk), BD(blue ray disk). SOLID STATE DRIVES: Solid state storage devices store computer data on non-volatile “flash” memory chips rather than by changing the surface properties of a magnetic or optical spinning disk. With no moving parts solid state drives (SSDs) — are also very much the future for almost all forms of computer storage. FLASH MEMORY CARDS: Flash memory cards were developed for digital cameras and mobile computers. They consist of a small plastic package with a contact array that slots into a camera or other mobile computing device, or an appropriate memory card reader. SD CARDS: SD cards are the most popular flash memory cards now on the market, and come in so many variants that they do require some explanation. SD cards come in three physical sizes. Standard size SD card, Mini SD card, Micro SD card. USB MEMORY STICK: USB memory sticks (or USB memory keys, USB memory drives, or whatever you choose to call them!) are basically a combination of a flash memory card and a flash memory card reader in one handy and tiny package. NETWORK AND ONLINE STORAGE: Files stored and/or backed-up online are still saved to a hard disk rather than to some magic, new alternative media. However, the fact that the disk is located remotely to your computer, can be accessed from anywhere and is probably backed up by the service provider(?), can make online storage and back-up very attractive. The last few years have seen the death of the floppy disk and for many digitizations of photography and their music collection.\nIn one of the next article, we will talk about the next generation of the computer system – (Quantum Computing).\nSo, Stay tuned and comment your thoughts below. See you soon.\nThank You.\n","permalink":"https://tutes.in/bit-byte-the-storage-system/","summary":"\u003cp\u003eYou may have heard \u003cstrong\u003eBit \u0026amp; Byte\u003c/strong\u003ebefore, but do you really know what is it? How does the \u003cstrong\u003ecomputer storage system work?\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eWe are continually generating a lot of data every second, hence there should be a storage system strong enough to handle it all. In this post, we are gonna talk about this \u003cstrong\u003estorage system.\u003c/strong\u003e\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003e\u003cstrong\u003e“Over 2.5 quintillion bytes of data are created every single day, and it’s only going to grow from there. By 2020, it’s estimated that 1.7MB of data will be created every second for every person on earth.”\u003c/strong\u003e\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp\u003e\u003cimg alt=\"internet\" loading=\"lazy\" src=\"/wp-content/uploads/2018/10/internet_minute_info2-175x300.jpg\"\u003e\u003c/p\u003e\n\u003cp\u003eIn the next article, we will also talk about the next generation of computer storage system (Quantum Computing.)\u003c/p\u003e\n\u003ch2 id=\"what-is-bit--byte\"\u003eWhat is Bit \u0026amp; Byte?\u003c/h2\u003e\n\u003cp\u003eA \u003cstrong\u003eBit\u003c/strong\u003e is the smallest or basic unit of computer information which has only two values “0 or 1”. These two values can also be defined as “true or false” and “yes or no”, depending on the binary code.\u003c/p\u003e\n\u003cp\u003eA \u003cstrong\u003eByte\u003c/strong\u003eis the smallest unit of memory. One byte is made up of eight bits, that means one byte is one character of information and is comprised of eight bits (eight 1’s or 0’s).\u003c/p\u003e\n\u003cp\u003eHere is a table to clear out your confusion.\u003c/p\u003e\n\u003cp\u003eUnit\\Value\u003c/p\u003e\n\u003ctable\u003e\n\t\u003cthead\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003cth\u003eUnit\u003c/th\u003e\n\t\t\t\t\t\u003cth\u003eValue\u003c/th\u003e\n\t\t\t\u003c/tr\u003e\n\t\u003c/thead\u003e\n\t\u003ctbody\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003e0 (Off) or 1 (On)\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003e1 Bit\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003e8 Bits\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003e1 Byte\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003e1,024 Bytes\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003e1 Kilobyte\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003e1,024 Kilobytes\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003e1 Megabyte\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003e1,024 Megabytes\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003e1 Gigabyte\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003e1,024 Gigabytes\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003e1 Terabyte\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003e1,024 Terabytes\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003e1 Petabyte\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003e1,024 Petabytes\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003e1 Exabyte\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\t\t\u003ctr\u003e\n\t\t\t\t\t\u003ctd\u003e1,024 Exabytes\u003c/td\u003e\n\t\t\t\t\t\u003ctd\u003e1 Zettabyte\u003c/td\u003e\n\t\t\t\u003c/tr\u003e\n\t\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2 id=\"what-is-32-bit--64-bit\"\u003eWhat is 32 bit / 64 bit?\u003c/h2\u003e\n\u003cp\u003eMany times while downloading a software, we get to see two options – ” download in 32 bit” or “download in 64 bit”. So, let’s see what is 32 bit / 64 bit?\u003c/p\u003e\n\u003cp\u003eThe terms \u003cem\u003e32-bit\u003c/em\u003e and \u003cem\u003e64-bit\u003c/em\u003e define the fixed-size piece of data a processor can transfer to and from memory. So, in theory, 64-bit computers can handle data twice as fast \u003cem\u003e32-bit\u003c/em\u003e systems.\u003c/p\u003e\n\u003cp\u003eThe term for \u003cem\u003e64-bit\u003c/em\u003e computer architecture is \u003cstrong\u003ex64\u003c/strong\u003e, and the \u003cem\u003e32-bit\u003c/em\u003e computer architecture is most commonly known as \u003cstrong\u003ex86\u003c/strong\u003eand was based on the \u003cstrong\u003eIntel 8086 / 8088\u003c/strong\u003e processor. The \u003cstrong\u003eIntel 8086 / 8088\u003c/strong\u003e processor was found in the original stand-alone \u003cstrong\u003ePac-Man\u003c/strong\u003e video arcade console.\u003c/p\u003e\n\u003ch2 id=\"the-storage-system\"\u003eThe storage system:\u003c/h2\u003e\n\u003cp\u003eDifferent users can have different storage requirements. Knowing what a computer is going to be used for (and of course many computers are used for a variety of purposes) is hence very important when planning storage requirements.\u003c/p\u003e\n\u003cp\u003eSo let’s continue with some of the available storage devices and technologies.\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eHARD DISK STORAGE\u003c/strong\u003e: Spinning hard disk (HD) drives are today the most common means of high capacity computer storage, with most desktop and laptop computers still relying on a spinning hard disk to store their operating system, applications programs, and at least some user data.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eRAID\u003c/strong\u003e: On servers and high-end PC workstations (such as those used for high-end video editing), at least two hard disks are often linked together using a technology called RAID. This stands for “\u003cstrong\u003eredundant array of independent disks\u003c/strong\u003e” (or sometimes “redundant array of inexpensive drives”), and stores the data in each user volume on multiple physical drives.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eDIRECT ATTACHED STORAGE (DAS)\u003c/strong\u003e: Except where two internal hard disks are considered essential on the basis of performance, a second hard disk is a today most advisably connected as an external unit, or what is sometimes now known as a “DAS” or \u003cstrong\u003edirect attached storage\u003c/strong\u003e drive\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eOPTICAL DISK STORAGE\u003c/strong\u003e: Almost all optical storage involves the use of a 5″ disk from which data is read by a laser. Optical media can be read-only, write-one, or rewritable, and currently exists in one of three basic formats – CD(compact device), DVD(digital versatile disk), BD(blue ray disk).\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eSOLID STATE DRIVES\u003c/strong\u003e: Solid state storage devices store computer data on non-volatile “flash” memory chips rather than by changing the surface properties of a magnetic or optical spinning disk. With no moving parts \u003cstrong\u003esolid state drives\u003c/strong\u003e (SSDs) — are also very much the future for almost all forms of computer storage.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eFLASH MEMORY CARDS\u003c/strong\u003e: Flash memory cards were developed for digital cameras and mobile computers. They consist of a small plastic package with a contact array that slots into a camera or other mobile computing device, or an appropriate memory card reader.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eSD CARDS\u003c/strong\u003e: SD cards are the most popular flash memory cards now on the market, and come in so many variants that they do require some explanation. SD cards come in three physical sizes. Standard size SD card, Mini SD card, Micro SD card.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eUSB MEMORY STICK\u003c/strong\u003e: USB memory sticks (or USB memory keys, USB memory drives, or whatever you choose to call them!) are basically a combination of a flash memory card and a flash memory card reader in one handy and tiny package.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eNETWORK AND ONLINE STORAGE\u003c/strong\u003e: Files stored and/or backed-up online are still saved to a hard disk rather than to some magic, new alternative media. However, the fact that the disk is located remotely to your computer, can be accessed from anywhere and is probably backed up by the service provider(?), can make online storage and back-up very attractive.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eThe last few years have seen the death of the floppy disk and for many digitizations of photography and their music collection.\u003c/p\u003e","title":"Bit \u0026 Byte: The storage system."},{"content":"List of Data Breaches from 2005 to 2018. – Wikipedia. Before going ahead I want you to check out the list above, it will give you an idea that what is happening to your personal data, and there is no privacy at all.\nTake the recent Cambridge Analytica \u0026amp; Facebook case, 5 million individuals data was leaked or sold by Facebook. Also, you may have heard the latest one about G+, Google plus is shutting down after 500,000 users data was exposed.\nOn the internet, there is no such thing as Privacy. Yes! it is something to be worried about.\nOR\nMaybe not anymore.\nEnough is enough, the father of the internet want the power back in his hands. His dream was to create a secure network where individuals would have been the owner of their own data, but surely that is not happening with WWW.\nSo, Tim Berners Lee decided to rebuild the internet.\nSolid Inrupt: About. Solid Inrupt is the name of this project of remaking the internet. Here is the official site of solid inrupt.\nhttps://solid.inrupt.com\nTim Berners Lee took this project of the new internet because as the internet evolved it diverged from Sir Tim’s original and inspiring vision. (Individuals to be the king of the internet).\nTim and Team have given 15 years to make it a reality.\nTim wants to provide a platform for the next generation of truly empowering and innovative developers.\nHow it works: You decide where you store your data. Since you own your data, you’re free to move it at any time, without interruption of service or penalties.\nwhenever you’re opening up a new app, you don’t have to fill out your details ever again: they are read from your POD with your permission. Things saved through one app are available in another: you never have to sync, because your data stays with you.\nWhat is POD? Your POD is your personal storage space. All your data will be stored in your POD, not on the server of Facebook or Google, where they can manipulate it.\nPODs are like secure USB sticks for the Web, that you can access from anywhere. When you give others access to parts of your POD, they can react to your photos and share their memories with you.\nYou can have as many PODs as you like, and they live on Solid enabled Web servers. Install the Solid Server on your own server at your home or workplace, or Get a Solid POD from a listed provider.\nIn order to prove ownership of your data, you need a way to identify yourself. Rather than relying on a third party, you can use your Solid POD to say who you are. So no more “Log in with X” or “Log in with Y” on the Web — just “Log in with your own Solid POD”.\nWhat it holds for the Developers? As far as claimed by the Solid Inrupt team, it is going to be a very promising platform and gonna create more opportunities for developers.\nIf you are a developer or planning to be one, then you can check their get started guide for developers. Here is the link to the official documentation page of Solid Inrupt.\nhttps://solid.inrupt.com/docs/getting-started\nBut do you think that the current internet Kings like Google, Facebook and Amazon will let the power slip by their hands? They will surely not give up.\nNow only time can tell what will happen, or who will win?\nFather of internet V/S Kings of internet\nSO, I hope you liked this post, And I leave the rest on you to explore. Check out our other articles and comment below.\nThank You.\n","permalink":"https://tutes.in/solid-inrupt-welcome-to-the-internet-2-0/","summary":"\u003ch6 id=\"list-of-data-breaches-from-2005-to-2018--wikipedia\"\u003e\u003ca href=\"https://en.wikipedia.org/wiki/List_of_data_breaches\"\u003e\u003cstrong\u003eList of Data Breaches from 2005 to 2018. – Wikipedia.\u003c/strong\u003e\u003c/a\u003e\u003c/h6\u003e\n\u003cp\u003eBefore going ahead I want you to check out the list above, it will give you an idea that what is happening to your personal data, and there is no privacy at all.\u003c/p\u003e\n\u003cp\u003eTake the recent Cambridge Analytica \u0026amp; Facebook case, \u003cstrong\u003e5 million individuals data was leaked or sold by Facebook.\u003c/strong\u003e Also, you may have heard the latest one about G+, \u003cstrong\u003eGoogle plus is shutting down after 500,000 users data was exposed.\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eOn the internet, there is no such thing as Privacy. Yes! it is something to be worried about.\u003c/p\u003e\n\u003cp\u003eOR\u003c/p\u003e\n\u003cp\u003eMaybe not anymore.\u003c/p\u003e\n\u003cp\u003eEnough is enough, \u003cstrong\u003ethe father of the interne\u003c/strong\u003e\u003cem\u003e\u003cstrong\u003et\u003c/strong\u003e\u003c/em\u003e want the power back in his hands. His dream was to create a secure network where individuals would have been the owner of their own data, but surely that is not happening with WWW.\u003c/p\u003e\n\u003cp\u003eSo, Tim Berners Lee decided \u003cstrong\u003eto rebuild the internet.\u003c/strong\u003e\u003c/p\u003e\n\u003ch2 id=\"solid-inrupt-about\"\u003eSolid Inrupt: About.\u003c/h2\u003e\n\u003cp\u003eSolid Inrupt is the name of this project of remaking the internet. Here is the official site of solid inrupt.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://solid.inrupt.com\"\u003ehttps://solid.inrupt.com\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eTim Berners Lee took this project of the new internet because as the internet evolved it diverged from Sir Tim’s original and inspiring vision. (Individuals to be the king of the internet).\u003c/p\u003e\n\u003cp\u003eTim and Team have given 15 years to make it a reality.\u003c/p\u003e\n\u003cp\u003eTim wants to provide a platform for the next generation of truly empowering and innovative developers.\u003c/p\u003e\n\u003ch2 id=\"how-it-works\"\u003eHow it works:\u003c/h2\u003e\n\u003cp\u003e\u003cstrong\u003eYou decide where you store your data.\u003c/strong\u003e Since you own your data, you’re free to move it at any time, without interruption of service or penalties.\u003c/p\u003e\n\u003cp\u003ewhenever you’re opening up a new app, you don’t have to fill out your details ever again: they are read from your POD with your permission. Things saved through one app are available in another: \u003cstrong\u003eyou never have to sync, because your data stays with you\u003c/strong\u003e.\u003c/p\u003e\n\u003ch3 id=\"what-is-pod\"\u003eWhat is POD?\u003c/h3\u003e\n\u003cp\u003e\u003cstrong\u003eYour POD is your personal storage space.\u003c/strong\u003e All your data will be stored in your POD, not on the server of Facebook or Google, where they can manipulate it.\u003c/p\u003e\n\u003cp\u003ePODs are like secure USB sticks for the Web, that you can access from anywhere. When you give others access to parts of your POD, they can react to your photos and share their memories with you.\u003c/p\u003e\n\u003cp\u003eYou can have as many PODs as you like, and they live on Solid enabled Web servers. Install the Solid Server on your own server at your home or workplace, or Get a Solid POD from a listed provider.\u003c/p\u003e\n\u003cp\u003eIn order to prove ownership of your data, you need a way to identify yourself. Rather than relying on a third party, you can use your Solid POD to say who you are. \u003cstrong\u003eSo no more “Log in with X” or “Log in with Y”\u003c/strong\u003e on the Web — just \u003cstrong\u003e“Log in with your own Solid POD”\u003c/strong\u003e.\u003c/p\u003e\n\u003ch2 id=\"what-it-holds-for-the-developers\"\u003eWhat it holds for the Developers?\u003c/h2\u003e\n\u003cp\u003eAs far as claimed by the Solid Inrupt team, it is going to be a very promising platform and gonna create more opportunities for developers.\u003c/p\u003e\n\u003cp\u003eIf you are a developer or planning to be one, then you can check their get started guide for developers. Here is the link to the official documentation page of Solid Inrupt.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://solid.inrupt.com/docs/getting-started\"\u003ehttps://solid.inrupt.com/docs/getting-started\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eBut do you think that the current internet Kings like Google, Facebook and Amazon will let the power slip by their hands? They will surely not give up.\u003c/p\u003e\n\u003cp\u003eNow only time can tell what will happen, or who will win?\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eFather of internet V/S Kings of internet\u003c/strong\u003e\u003c/p\u003e","title":"Solid-Inrupt: Welcome to the internet 2.0."},{"content":"Here is the default .htaccess file for wordpress\nIf you are using cpanel, before you proceed make sure that you don’t have htaccess file already. Default File Manager settings in cpanel make it hidden\nDefault Settings in cPanel File Manager\n.htaccess file – default code for wordpress # BEGIN WordPress \u0026lt;ifmodule mod_rewrite.c\u0026gt; RewriteEngine On RewriteBase / RewriteRule ^index\\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] \u0026lt;/ifmodule\u0026gt; # END WordPress If your WordPress Installation is inside a directory say knowledge, which means your wordpress url is https://abcd.com/knowledge/ then htaccess code would be\n# BEGIN WordPress \u0026lt;ifmodule mod_rewrite.c\u0026gt; RewriteEngine On RewriteBase /knowledge/ RewriteRule ^index\\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /knowledge/index.php [L] \u0026lt;/ifmodule\u0026gt; # END WordPress Add the following code for Leverage Browser Caching\n\u0026lt;ifmodule mod_expires.c\u0026gt; ExpiresActive On \u0026lt;/ifmodule\u0026gt; # Images ExpiresByType image/jpeg \u0026#34;access plus 1 year\u0026#34; ExpiresByType image/gif \u0026#34;access plus 1 year\u0026#34; ExpiresByType image/png \u0026#34;access plus 1 year\u0026#34; ExpiresByType image/webp \u0026#34;access plus 1 year\u0026#34; ExpiresByType image/svg+xml \u0026#34;access plus 1 year\u0026#34; ExpiresByType image/x-icon \u0026#34;access plus 1 year\u0026#34; # Video ExpiresByType video/mp4 \u0026#34;access plus 1 year\u0026#34; ExpiresByType video/mpeg \u0026#34;access plus 1 year\u0026#34; # CSS, JavaScript ExpiresByType text/css \u0026#34;access plus 1 month\u0026#34; ExpiresByType text/javascript \u0026#34;access plus 1 month\u0026#34; ExpiresByType application/javascript \u0026#34;access plus 1 month\u0026#34; # Others ExpiresByType application/pdf \u0026#34;access plus 1 month\u0026#34; ExpiresByType application/x-shockwave-flash \u0026#34;access plus 1 month\u0026#34; Add the following code for GZip Compression\n\u0026lt;ifmodule mod_deflate.c\u0026gt; # Compress HTML, CSS, JavaScript, Text, XML and fonts AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/vnd.ms-fontobject AddOutputFilterByType DEFLATE application/x-font AddOutputFilterByType DEFLATE application/x-font-opentype AddOutputFilterByType DEFLATE application/x-font-otf AddOutputFilterByType DEFLATE application/x-font-truetype AddOutputFilterByType DEFLATE application/x-font-ttf AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE font/opentype AddOutputFilterByType DEFLATE font/otf AddOutputFilterByType DEFLATE font/ttf AddOutputFilterByType DEFLATE image/svg+xml AddOutputFilterByType DEFLATE image/x-icon AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/xml \u0026lt;/ifmodule\u0026gt; # Remove browser bugs (only needed for really old browsers) BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\\.0[678] no-gzip BrowserMatch \\bMSIE !no-gzip !gzip-only-text/html Header append Vary User-Agent ","permalink":"https://tutes.in/default-htaccess-file-for-wordpress-with-compression-and-caching-tweaks/","summary":"\u003cp\u003eHere is the default .htaccess file for wordpress\u003c/p\u003e\n\u003cp\u003eIf you are using cpanel, before you proceed make sure that you don’t have htaccess file already. Default File Manager settings in cpanel make it hidden\u003c/p\u003e\n\u003cfigure class=\"align-center \"\u003e\u003ca href=\"/wp-content/uploads/2018/10/hidden-htaccess.jpg\"\u003e\n    \u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2018/10/hidden-htaccess.jpg#center\"\n         alt=\"Default Settings in cPanel File Manager\"/\u003e \u003c/a\u003e\u003cfigcaption\u003e\n            \u003cp\u003eDefault Settings in cPanel File Manager\u003c/p\u003e\n        \u003c/figcaption\u003e\n\u003c/figure\u003e\n\n\u003ch2 id=\"htaccess-file--default-code-for-wordpress\"\u003e.htaccess file – default code for wordpress\u003c/h2\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e# BEGIN WordPress\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026lt;ifmodule mod_rewrite.c\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRewriteEngine On\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRewriteBase /\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRewriteRule ^index\\.php$ - [L]\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRewriteCond %{REQUEST_FILENAME} !-f\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRewriteCond %{REQUEST_FILENAME} !-d\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRewriteRule . /index.php [L]\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026lt;/ifmodule\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e# END WordPress\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eIf your WordPress Installation is inside a directory say \u003ccode\u003eknowledge\u003c/code\u003e, which means your wordpress url is \u003ccode\u003ehttps://abcd.com/knowledge/\u003c/code\u003e then htaccess code would be\u003c/p\u003e","title":"Default .htaccess file for wordpress with compression and caching tweaks"},{"content":"Hi Everyone!\nIn this post, we are going to talk about the process of changing nameserver in Godaddy and other popular registrars.\nYou would need to do this process to connect or point your domain to your hosting, or whenever you decide to change your hosting service provider, as hosting providers ask to park the domain that you own.\nThe process is basically the same in all registrars, the only difference is in their visual interface.\nFirst, we will talk about Godaddy and other popular ones then I will try to give general steps to change the nameserver in any registrar.\nRead about your preferred registrar: Godaddy NameCheap Porkbun Alpnames Dynadot NameSilo Freenom So, let’s begin.\nChanging nameserver in Godaddy: Login to your Godaddy account. If you have multiple domains in your account then select the one you want to change nameserver for. Click on Manage DNS. Go to the nameserver section and click change. Switch the dropdown from default to custom and under nameserver fill new DNS. And Save. NameCheap: Sign in to your NameCheap account. On the sidebar navigation click Domain list. Now for your preferred domain click on manage.\nNow choose the custom DNS from the drop-down menu. And enter your nameserver. Save and you are done. Porkbun: Login to your pork bun account. Go to the domain page – account/domains. Now for Authoritative nameservers click edit. (as shown in the image below) Enter your own nameservers and save. Alpnames: Login to your alpname account. In the sidebar menu select Domain registration. There you will find a section called nameservers. Click it and edit your nameserver. Save your changes and you are done. Dynadot: Login to your Dynadot account. select My Domains. Under my domains drop-down menu choose Manage Domains. Now go to DNS settings. Under add server, enter your own nameserver. Save and continue. That’s it for Dynadot. NameSilo: Login to your namesilo account. In the sidebar menu go to Domain Manager. For your preferred domain select the rightmost icon as shown in the image below. Under default name server enter your own nameserver. Submit your changes and relax. Now let’s try to generalize these steps for all the registrars.\nGeneral steps for any registrar: Login to account. Go to the list of domains you own. Select manage DNS for your preferred domain. Change nameserver to custom DNS and fill new nameserver. Click save. Navigation would be different for diff registrars, but the core process is almost the same.\nAn example of freenom.com: This is how nameserver is changed in freenom. The interface and navigation are different but the ultimate process is the same.\nmy domain \u0026raquo; management tools \u0026raquo; nameserver \u0026raquo; custom DNS.\nNow you are all set to change nameserver in any registrar. So, go ahead and do it.\nWe will keep uploading new blog posts full of information and tutorials. So, don’t go anywhere and stay tuned.\nThank You.\n","permalink":"https://tutes.in/how-to-change-name-server-in-godaddy-and-other-registrars/","summary":"\u003cp\u003eHi Everyone!\u003c/p\u003e\n\u003cp\u003eIn this post, we are going to talk about the process of changing nameserver in Godaddy and other popular registrars.\u003c/p\u003e\n\u003cp\u003eYou would need to do this process to connect or point your domain to your hosting, or whenever you decide to change your hosting service provider, as hosting providers ask to park the domain that you own.\u003c/p\u003e\n\u003cp\u003eThe process is basically the same in all registrars, the only difference is in their visual interface.\u003c/p\u003e","title":"How to change name-server in Godaddy and other registrars?"},{"content":" You should now be able to login again, and this issue shouldn’t repeat itself. Jetpack’s Protect function looks at the incoming IP address when you try to login, and compares it against our network of blocked IPs. This works pretty well, unless Jetpack’s Protect is being told the wrong IP address by your site’s server. In your case, your server was reporting its own IP address to Protect, which is why it was blocked. This meant that every single time someone with a WordPress site on your site’s server entered the wrong password, we thought it was the same person. If your hosting provider has several hundred WordPress sites on the same server/IP, that adds up fast, leading to a ban on the IP.\nI’ve made a couple of changes on our side, and Jetpack’s Protect feature will now determine incoming IP addresses a different way. You’re still protected! – Jeremy Herve (@jeherve) – Plugin author\nSolution: Whitelisting Your IP Address Whitelisting may be necessary if you’ve made too many failed log in attempts to your site. There are three methods for whitelisting your IP address:\nIf you have access to your site and you’ve not been blocked, you can enter your IP or IPv6 address(es) by going to Jetpack → Settings → Security → Brute force attack protection.\nIf you are blocked from entering your site, you can enter the IP or IPv6 address(es) via WordPress.com by visiting My Sites → Settings → Security → Prevent brute force login attacks\nYou can also whitelist one IP address by setting it as the JETPACK_IP_ADDRESS_OK constant in your wp-config.php like this:\ndefine(\u0026#39;JETPACK_IP_ADDRESS_OK\u0026#39;, \u0026#39;X.X.X.X\u0026#39;); You can find your IP by visiting any of the following sites:\nwww.whatismyip.com\nwww.whatismyipaddress.com\nReferences:\nhttps://jetpack.com/support/security-features/#unblock\nhttps://wordpress.org/support/topic/jetpack-has-locked-your-sites-login-page/#post-10069377\n","permalink":"https://tutes.in/how-to-fix-wordpress-locked-error-from-wp-admin-login-by-jetpack-plugin/","summary":"\u003cblockquote\u003e\n\u003cp\u003eYou should now be able to login again, and this issue shouldn’t repeat itself. Jetpack’s Protect function looks at the incoming IP address when you try to login, and compares it against our network of blocked IPs. This works pretty well, unless Jetpack’s Protect is being told the wrong IP address by your site’s server. In your case, your server was reporting its own IP address to Protect, which is why it was blocked. This meant that every single time someone with a WordPress site on your site’s server entered the wrong password, we thought it was the same person. If your hosting provider has several hundred WordPress sites on the same server/IP, that adds up fast, leading to a ban on the IP.\u003c/p\u003e\n\u003cp\u003eI’ve made a couple of changes on our side, and Jetpack’s Protect feature will now determine incoming IP addresses a different way. You’re still protected! \u003cbr\u003e\n\u003cbr\u003e\n– Jeremy Herve (@jeherve) – Plugin author\u003c/p\u003e\n\u003c/blockquote\u003e","title":"How to fix WordPress locked error from wp-admin login by jetpack plugin?"},{"content":"You can create your own theme and upload to your blog site, but for that, you have to be a developer. Don’t worry if you are not, thanks to the flexibility of WordPress. There are a ton of pre-written themes for you to use.\nThese themes are for personal blogging and have a clean design and structure which is good for ranking factor in major search engines like Google, Bing, and Yahoo.\nThere paid versions are even more customizable and SEO friendly. I know you are getting eager to get the list.\nSo, let’s take a look at the best WP themes for personal blogging.\nWordPress themes for personal blogging: Kallyas KALLYAS is a technologically vast and resourceful yet ambitious and creative WordPress theme. It is expansive and readily responsive — perfect for any kind of website. KALLYAS is a strong, bold toolkit for the creation and development of polished, professional-quality, modern websites with minimal hassle and absolutely no coding skills required. With KALLYAS by your side, dozens upon dozens of sophisticated, professionally and graphically designed page templates and demo websites are at your disposal to get your projects off to a proper start with just a single-click import process. Writing Minimalist yet powerful, Writing is a WordPress theme that never fails to impress. It is entirely Retina-ready and fully responsive, allowing your readers to access every post from computers, tablets, and smartphones. In addition, this theme is compatible with all major browsers. Writing is SEO-ready, which increases your chance of success by maximizing your site’s exposure. Matilda Matilda is a wonderful personal blog WordPress theme with a minimal feel, elegance and loads of professionalism. It is the best fit for every lifestyle blogger out there, however, Matilda can also smoothly adapt to other niches. In the Matilda package, you receive a total of 32 HTML files of which eight are neat home variations. That said, go with what is available and have a blog up and running in a breeze. Or improve and customize it with your individual touch. To each their own. Essence The Essence is a beautiful, highly diverse, tremendously intuitive and totally responsive WordPress blog website theme. It’s a theme built to satisfy the needs of the modern blogger, whether for casual and personal blogs or for professional, corporate and journalistic blogs. The Essence has been outfitted with a series of options, styles, layouts, and widgets that make your website a natural at blogging, with dedicated features and tons of custom post types, incredibly capacity for visual and experiential customization, and much more under the surface. RandomRandom is a colorful, eclectic, modern and highly responsive WordPress theme that will leave your viewers truly impressed. This theme has been created by a team of dedicated developers and inspired designers as a solution for the modern webmaster that needs a freely structured environment where they can express themselves in an unrestricted fashion to the best of their abilities. To that end, Random includes a powerful assortment of all the latest and greatest web development features, each with its own unique, undeniably creative twist. This one (Random) is my personal favorite. Just look at it how Eye-catching it is.\nSo, these were the 5 best WP personal blog theme according to me. Are you aware of some other themes that I missed? please let us know in the comment below.\nThank you.\n","permalink":"https://tutes.in/best-wordpress-themes-for-persoa/","summary":"\u003cp\u003eYou can create your own theme and upload to your blog site, but for that, you have to be a developer. Don’t worry if you are not, thanks to the flexibility of WordPress. There are a ton of pre-written themes for you to use.\u003c/p\u003e\n\u003cp\u003eThese themes are for personal blogging and have a clean design and structure which is good for ranking factor in major search engines like Google, Bing, and Yahoo.\u003c/p\u003e","title":"Best WordPress themes for personal blogging."},{"content":"With the wane of physical media which is extremely limited, Digital media is exponentially becoming the dominant way we listen to music, watch videos, and view still images.\nAnd there is no single file format that takes care of it all. (How unfortunate).\nHence it becomes important for us to understand media type and file formats. So that you don’t encounter with an instance where your device or browser says “unsupported file format”.\nThere is a lot to cover in this article, so let’s begin without any further delay.\nMedia type \u0026amp; File format: Media type was previously known as MIME (Multipurpose internet mail extensions.) It is a two-part identifier for the file format, first is the type of media and second is the type of extension. ex- video.mp4\nIANA is an official authority for standardization and publication of these classifications. You can check out the IANA website for media type here: https://www.iana.org/assignments/media-types/media-types.xhtml\nYou can get to know about media type naming, registration trees, suffix, mailcap, and mime type on Wikipedia.\nDigital media files are encoded so that computer programs or apps can read and work with it.\n\u0026lt;video width=\u0026quot;320\u0026quot; height=\u0026quot;240\u0026quot; controls\u0026gt;\\ \u0026lt;source src=\u0026quot;movie.mp4\u0026quot; type=\u0026quot;video/mp4\u0026quot;\u0026gt;\\ \u0026lt;source src=\u0026quot;movie.ogg\u0026quot; type=\u0026quot;video/ogg\u0026quot;\u0026gt;\\ Your browser does not support the video tag.\\ \u0026lt;/video\u0026gt;\n\u0026lt;audio controls\u0026gt;\\ \u0026lt;source src=\u0026quot;horse.ogg\u0026quot; type=\u0026quot;audio/ogg\u0026quot;\u0026gt;\\ \u0026lt;source src=\u0026quot;horse.mp3\u0026quot; type=\u0026quot;audio/mpeg\u0026quot;\u0026gt;\\ Your browser does not support the audio tag.\\ \u0026lt;/audio\u0026gt;\nNow have a look at the table below, which browser supports which file format for video and audio.\nVideo:\nAudio:\nGet familiar with a few formats: MP4 = MPEG 4 files with H264 video codec and AAC audio codec WebM = WebM files with VP8 video codec and Vorbis audio codec Ogg = Ogg files with Theora video codec and Vorbis audio codec Codec: Many times we have to convert the file format so that it can be played by programs other than the software for which it was originally created. This is called “Coder-decoder” OR codec for short.\nConverting the file format so that it can be played by another program, or by an incompatible device is called “transcoding”.\nCommonly Used Digital Media File Formats: Photo File Formats: JPEG, GIF, PNG, TIFF, BMP Music File Formats: AAC (WebM), MP3, WAV, WMA, DOLBY DIGITAL, DTS Other music file formats you may have access to AIFF, ASF, FLAC, ADPCM, DSD, LPCM, OGG Video File Formats: MPEG-1, MPEG-2, MPEG-4 (mp4), AVI, MOV, AVCHD, H.264, and H.265. Other video formats you may have access to DivX and DivX HD, Xvid HD, MKV, RMVB, WMV9, TS/TP/M2T Don’t worry if all of this seemed like an alien language to you, I have a solution for you.\nMedia playback: You can install or take help of some application and software that will play your media file regardless of the file format that your device or browser supports. Here are a few to name.\nMx player VLC Media player All connect DG UPNP Plex Twonky Roku Media Airplay DLNA receiver I hope that this article was helpful to you. You can check out other articles as well.\nThank You.\n","permalink":"https://tutes.in/understanding-media-type-and-file-format/","summary":"\u003cp\u003eWith the wane of physical media which is extremely limited, Digital media is exponentially becoming the dominant way we listen to music, watch videos, and view still images.\u003c/p\u003e\n\u003cp\u003eAnd there is no single file format that takes care of it all. (How unfortunate).\u003c/p\u003e\n\u003cp\u003eHence it becomes important for us to understand media type and file formats. So that you don’t encounter with an instance where your device or browser says “unsupported file format”.\u003c/p\u003e","title":"Understanding Media type and file format."},{"content":"Hi Everyone!\nWelcome to the Tutes Club. If you have a running website that gives you a handsome amount of returns, then I know that your heart comes to your mouth when you see an error on your site.\nThere are tons of error out there, but the error we are talking about is WordPress internal server error 500. This error does not let you know the cause of the error, which makes it quite difficult for beginners to fix it. This is how it looks like.\nBut don’t worry we are here to help you out.\nAlthough there is no exact cause known to this error, but we will troubleshoot some of the most common causes of this error. So let’s do it.\nTroubleshooting the most common causes of this error. Broken plugin: Maybe, you have activated a plugin not compatible with PHP and/or WordPress version. you have to identify the troubling plugin/plugins. To fix it:\nDeactivate all the plugins from the WP dashboard at once. Now reload your site. If the error is fixed, then it was caused due to one of the plugin. Start activating plugins again one by one, and notice at which plugin the error returns. File an FIR against that plugin. (just kidding)\nBroken theme: The activated theme can be the troublemaker. The theme might be outdated or its back end code might have been changed. To fix it:\nLogin to Cpanel or FTP account. Open the “theme” folder. Rename the folder containing all files associated with the activated theme. Current theme will be deactivated, automatically activating the default theme. Congo if the error is fixed. If not then nothing is wrong with the theme. Move on to the next step.\nCORRUPTED .htaccess FILE: .htaccess file is the file that is configured at the directory level. A corrupted .htaccess file is also one of the causes of 500 internal server error.\nTo fix it:\nLocate this file in the directory containing wp-content, wp-admin, and wp-includes folders. Rename it as .htaccess_xyz, now reload your site. If problem is solved, then generate new .htaccess file to prevent 404 error. Go to settings, select permalinks and save changes. Still getting the error. So read on.\nExhausted PHP Memory Limits: If WordPress didn’t get the required memory, it may return internal server error 500. To fix it: Simply increase the PHP memory.\nAccess the wp-config.php file via FTP or Cpanel. In that file add the line of code in point 3. define(‘WP_memory_Limit’,’64M’); save changes. May the error has been fixed by now. If not then give it a last try. Corrupted Core Files: If one of the core files of the WordPress is corrupted. Maybe due to a syntax error while adding a code snippet. To fix it:\nYou need to re-upload a fresh version of wp-admin and wp-includes folders from a new WordPress installation.\nHurray! you made it.\nWhat? Not Yet. OK…….\nNow there is only one way left. Get in touch with your service provider they will fix it for you. Or you can let your developer (if you have one) look into the matter.\nGood Luck! See you soon.\nThank You.\n","permalink":"https://tutes.in/how-to-fix-wordpress-error-500/","summary":"\u003cp\u003eHi Everyone!\u003c/p\u003e\n\u003cp\u003eWelcome to the \u003cstrong\u003eTutes Club\u003c/strong\u003e. If you have a running website that gives you a handsome amount of returns, then I know that your heart comes to your mouth when you see an error on your site.\u003c/p\u003e\n\u003cp\u003eThere are tons of error out there, but the error we are talking about is \u003cem\u003e\u003cstrong\u003eWordPress internal server error 500.\u003c/strong\u003e\u003c/em\u003e This error does not let you know the cause of the error, which makes it quite difficult for beginners to fix it. This is how it looks like.\u003c/p\u003e","title":"How to fix WordPress error 500?"},{"content":"Hi Everyone!\nI know that you want your sites to rank higher in search engines like Google, Bing, and Yahoo. And the best way to do it is SEO, but as every good thing takes time, so does SEO.\nIt may take time, but once it starts to yield results you would just skyrocket from nowhere to the top of the search engines.\nAs a human being, we love things that automate our life and make it easier in any way. That’s why we all are in love with WP plugins. No matter what our need is? First, we look if a plugin is available for it. And in most of the cases, we find it.\nSo today I am going to present you with a list of Best SEO plugins for WordPress.\nBest SEO plugins for WordPress: WordPress Yoast SEO– 2000000 installs. This goes without saying that it is one of the best SEO plugins available out there. It has gained its popularity because of its features and simplicity to use. Key Features of WordPress SEO By Yoast:\nBreadcrumbs: Allows you to create simple navigation for users and spiders. Great for internal linking. Meta and Title Tag Optimization: Lets you determine what pages will be shown in the search results. Multi-Site Compatibility: XML Sitemaps work in all setups. Includes the option to copy settings from blog to blog. Website SEO Analysis: Checks even the smallest items length of content, meta description existence, and focused keyword usage. Simple green light, red light lets you know where you stand. Snippet Preview: Lets you to observe how your page will look in search results. Social Integration: Includes SEO Friendly Facebook Open Graph to link SEO and social media together. Great for blogging with a simple green and red light interface. All in One SEO Pack – 2500000 installs. Best for both beginners and developers. Features include:\nBad Bot Blocker: Prevents harmful bots from decreasing website speeds. File Editor: Manually edit robots.txt and .htaccess. Import/Export: Imports and exports your settings to share with other sites. Robots.txt: Allows more control over how search spiders navigate your site. Social Media Integration:Adds Open Graph to your site to deliver closer integration between your website or blog and social channels like Facebook and Twitter. Video Sitemap (paid version only): Lets you create and manage a Video XML Sitemap and submit it Google and other search engines. Premium SEO Pack – 1000000 installs. It is a paid plugin and designed to work best with other plugins like Woocommerece and WordPress Multisite. It includes both on-page and off-page optimization. Key Features:\nFacebook Planner: You can post your content on Facebook with the help of this feature. Monitor 404: Monitors the URLs that are referring your visitors to 404 pages. Page Speed Insights: Monitors the page speed of each of your posts or pages on a desktop or mobile devices. SEO Friendly Images: Automatically refreshes all images with relevant ALT tags and Title Attributes. Backlink Builder:With this feature, you can find similar websites to build links to your website. W3C Validator: It empowers you to check the schema markup of your posts, pages, and custom taxonomies. On-Page SEO: Quickly update pages from the post-preview top bar or admin top bar. Pattern SEO: Set patterns for each post type and custom post types. Social Optimization: Open Graph and Twitter Card support. **SEOPressor –**700000 installs. Unlike other plugins, this one always remains updated with Google’s algorithm. With the latest update of Rank Brain. Key Features:\nAutomatic Smart Internet Linking: Add internal links automatically to keep leads and reduce bounce rate. Dynamic Crawler Control: Complete command over how spiders travel through your site. XML Sitemap generator: Helps make your site SEO Friendly. Keyword SEO Score Checker: Monitors the optimized rate of your primary words, up to 3. LSI keywords: Calculates your site’s LSI usage with a proprietary formula. Suggests ways to improve your LSI keyword use to rank for more words. Readability Score: Did you know that the readability of your website copy may be a ranking factor? Over Optimization Check: Over-stuffing words is now something that will bring red flags from Google, Bing, Yahoo, etc. Monitors your keyword use and lets you know if overuse becomes a problem **SEO Squirrly –**2100000 installs. Specially designed for non-experts. Write content that is reader-friendly and is effective at ranking your site. Key features:\nGreen Light Means “Good Job!”: Display turns green when you implement an item correctly. Keyword Headline Suggestions: Give suggestions for headlines based on your primary keywords. Content Strategy Tracking: Tracks all areas content strategies. No Automatic Overwrite: Your current SEO settings stay intact during setup. Social SEO AI: Updated artificial intelligence aids you in developing high-quality content. Weekly Monitoring: Oversees your progress on a weekly basis. This was all about the best SEO plugins If you are aware of some other plugins that you think this list should have then please comment below.\nI will see you in the next post with an awesome topic to talk about.\nThank You.\n","permalink":"https://tutes.in/list-of-5-best-seo-plugins-for-wordpress/","summary":"\u003cp\u003eHi Everyone!\u003c/p\u003e\n\u003cp\u003eI know that you want your sites to rank higher in search engines like Google, Bing, and Yahoo. And the best way to do it is SEO, but as every good thing takes time, so does SEO.\u003c/p\u003e\n\u003cp\u003eIt may take time, but once it starts to yield results you would just skyrocket from nowhere to the top of the search engines.\u003c/p\u003e\n\u003cp\u003eAs a human being, we love things that automate our life and make it easier in any way. That’s why we all are in love with WP plugins. No matter what our need is? First, we look if a plugin is available for it. And in most of the cases, we find it.\u003c/p\u003e","title":"List of 5 best SEO plugins for WordPress."},{"content":"HI Everyone!\nGood to see you again. If you have landed on this post then you must be looking for a provider that will host your site for free. I am going to tell you the 10 best free web hosting service providers, So stay tuned.\nIsn’t it amazing that even in today’s world you can get almost everything for free? (Note* Free things do have some limitations.)\nI am also going to tell you which one is my favorite and why is it so?\nI recommend you not to go with free hosting if you are working at a professional level, but for the learning and experimenting purpose or just to have fun.\nOK! then let’s begin.\n10 Free Web Hosting Service Providers: **000Webhost.com–**2 sites are allowed to run on one account, 2 MySQL database, supports FTP, 100 GB of bandwidth per month \u0026amp; the panel is Cpanel.\nFreeHosting.com– 1 site is allowed on one account, 1 MySQL database, supports FTP, unmetered bandwidth \u0026amp; the panel is Cpanel.\nByte.host – 1 site is allowed to run on one account, 5 MySQL database, supports FTP, 50 GB of bandwidth per month \u0026amp; the panel is Cpanel, 5 E-mail accounts.\nAwardspace.com – 1 site is allowed to run on one account, 1 MySQL database, supports FTP, 5 GB of bandwidth per month \u0026amp; the panel is Proprietary, 1 E-mail.\nFreeHostingEU– 1 site is allowed to run on one account, 1 MySQL database, supports FTP, 4 GB of bandwidth per month \u0026amp; the panel is Proprietary.\nFree Virtual Server – 1 site is allowed to run on one account, 1 MySQL database, supports FTP, 200 MB of bandwidth per month \u0026amp; the panel is Cpanel.\nFree web hosting No Ads – 1 site is allowed to run on one account, 3 MySQL database, supports FTP, 5 GB of bandwidth per month \u0026amp; the panel is Cpanel.\nU Host Full – 1 site is allowed to run on one account, 2 MySQL database, supports FTP, 100 GB of bandwidth per month \u0026amp; the panel is Cpanel.\n**5 GB Free –**2 sites are allowed to run on one account, 2 MySQL database, supports FTP, unlimited bandwidth per month \u0026amp; the panel is Proprietary.\nFreehostia – 1 site is allowed to run on one account, 1 MySQL database, supports FTP, 4 GB of bandwidth per month \u0026amp; the panel is Proprietary.\nThese were the ***10 best free web hosting service, providers.***All of them have their own set of pros and cons. Now let me tell you the one which is my favorite \u0026amp; I have personally been using.\nWhen it comes to free web hosting, I go for 000Webhost.com (always). Now the reason is simple, It has the best C-panel among all the free web hosting providers also it is the most user-friendly.\nIt works the best for me but may not be the best for you. So it is the time for you to explore and find out the one which is just made for you.\nBonus: Let’s talk a bit about where you can get a free domain name. Of course, you won’t get .com or .in for free, but you can still find some good extensions like .tk, .ml, .ga, .cf \u0026amp; etc for free on Freenom.com.\nI am done, now it’s your turn. Share your experience with different free web hostings and let us know which one worked the best for you, down below in the comments.\nThank You.\n","permalink":"https://tutes.in/10-free-web-hosting-service-providers/","summary":"\u003cp\u003eHI Everyone!\u003c/p\u003e\n\u003cp\u003eGood to see you again. If you have landed on this post then you must be looking for a provider that will host your site for free. I am going to tell you the \u003cstrong\u003e10 best free web hosting service providers\u003c/strong\u003e, So stay tuned.\u003c/p\u003e\n\u003cp\u003eIsn’t it amazing that even in today’s world you can get almost everything for free? (Note* Free things do have some limitations.)\u003c/p\u003e\n\u003cp\u003eI am also going to tell you which one is my favorite and why is it so?\u003c/p\u003e","title":"10 Free Web Hosting Service Providers."},{"content":"Here you are to make your site a secured one. So that your visitors don’t hesitate to surf your site.\nBefore we begin let’s understand a bit about SSL certification \u0026amp; HTTPS redirection.\nSSL \u0026amp; HTTPS: Just imagine how Whatsapp is an end to end encrypted messaging system, well! we are not talking about a messaging system here, but you got the idea.\nSimilarly, to establish an encrypted end to end connection between a web browser and a server you need a certification called SSL certificate.\nHTTPS can be seen as the mark of security on your site, confirming that your site is under end to end encrypted connection.\nTop Free SSL certification providers: Now arises a question, How do you get this certification for free?\nHere is a list of top Free SSL certificate providers.\n**Let’s Encrypt –**Created by Linux Foundation with the internet security research group. **CAcert Free Certification Authority –**CAcert has a variety of free SSL/TLS certifications available. Depending on the certification you get, they expire every six months, 12 months, or 24 months and you have to meet with the CAcert volunteer each time you renew it. **Comodo –**It comes with the highest possible strength 256 bit. Offers a 90 days free certificate. **Cloud Flare –**Cloud Flare is a security and a CDN company which offers universal free SSL/TLS certification. Sets up under 5 minutes and is the most user-friendly certificate provider. **SSL.com –**The certification issued by this company is accepted by 99.9% of browsers and websites. **SSL For free –**Good for an entire year before you have to renew it. Runs on ACME server of Let’s Encrypt. **StartCom –**Maybe the best one for a personal website or a blog, It will give you one unlimited domain-validated SSL/TLS certificate completely free. **WoSign –**These certifications are good for two years before you have to renew them, and they use automatic authentication, so they’re up and running in a few minutes. 5 Best WP plugins to manage SSL \u0026amp; HTTPS on your site: Once you are done with your certification now is the time to manage it. You could have a hard time managing it if you are not a developer. In that case, plugins are always there to help you out, And that’s what makes WP the best CMS.\n**Really Simple SSL –**Enables SSL just in one click, aims at keeping it simple with minimal options. **CM HTTPS Pro –**This is a complete solution for installing SSL certification on your site and move from HTTP to HTTPS. **WP Force SSL –**A basic plugin to redirect your HTTP site to HTTPS version. Don’t hope too much from it. (For simple blogs) Easy HTTPS redirection – Ability to force load static files, such as images, css, js, etc., using HTTPS. **SSL Insecure Content Fixer –**solve insecure content warning easily. Performs basic fixes after implementing SSL. Blogger Bonus: If your site is at blogger.com (a Google’s product), then congrats you don’t need to consider any of the above things.\nYou are just two clicks away from your free SSL certification \u0026amp; HTTPS redirection, And that also from Google.\nSteps: For blogger.com Login to your blogger.com account. Go to settings \u0026gt; basics. There you will find two checkboxes regarding HTTPS, check both boxes as yes. That’s it you are done. I really loved this feature of blogger, Google made it so simple. (It may take up to 15 minutes)\nSo this is it. I hope you enjoyed the article. I would love to see you in some other article.\nThank You.\n","permalink":"https://tutes.in/everything-about-free-ssl-certification-https-redirection/","summary":"\u003cp\u003eHere you are to make your site a secured one. So that your visitors don’t hesitate to surf your site.\u003c/p\u003e\n\u003cp\u003eBefore we begin let’s understand a bit about SSL certification \u0026amp; HTTPS redirection.\u003c/p\u003e\n\u003ch2 id=\"ssl--https\"\u003eSSL \u0026amp; HTTPS:\u003c/h2\u003e\n\u003cp\u003eJust imagine how Whatsapp is an end to end encrypted messaging system, well! we are not talking about a messaging system here, but you got the idea.\u003c/p\u003e\n\u003cp\u003eSimilarly, to establish an encrypted end to end connection between a web browser and a server you need a certification called SSL certificate.\u003c/p\u003e","title":"Everything about Free SSL certification \u0026 HTTPS redirection."},{"content":"Are you a programmer, a developer who writes a lot of code, Or you could be someone who is just trying to be one. However you are related to writing code, you are probably doing it through your laptop or PC. But what if I say that you can code right through your phone.\nI personally don’t want to be completely dependent on my laptop or PC to code. What about you?\nJust think about it, You came up with an urgent need to write code and you don’t have your PC with you. You just can’t carry your PC everywhere with you, or what if your PC suddenly stopped listening to you? (Such a night-mare it is.)\nThat’s where your phone can come to your rescue.\nEven if nothing like that happens, you can still give it a try just for a change.\nThe best thing about these free coding mobile apps is that they support almost all programming languages, and comes up with features like “preview”, “auto tag completion” \u0026amp; many more.\nList of top 10 free code editor mobile apps: Dcoder – Here you can not only code, but you can also debug the code to see compilation errors and Result on the same screen. It is more like the port of your favorite Code Editors like Notepad++ or Sublime Text with compilation power.\n**Quoda code editor –**If you want to code productively from your phone, Quoda is a must have, allowing you to carry a text editor and IDE like in your pocket to code when on the move.\n**Quick edit –**Allows you to Access files from recently opened or added files collections, Google Drive, FTP, One Drive, and Dropbox and has syntax highlighting for more than 40 languages like C++, C#, Java, Javascript, XML, PHP, Markdown, Python, Ruby, Swift, etc. QuickEdit has the ability to edit system files on rooted devices too.\n**anWriter free –**anWriter will significantly increase your coding speed, compared to a usual notepad. anWriter is much lighter than most IDE but at the same time much more powerful, than most of the notepad like editors.\n**Our code editor free –**Although this app is closed-source, it is totally free and it doesn’t have ads. Our Code Editor Free was written by Our Code World. Our Code Editor supports code folding, Live syntax checker, cut, copy, and paste functionality, Search and replace with regular expressions.\n**Turbo editor –**Simple, Powerful and Open Source Text Editor for Android. Built following the latest Android Guidelines to make the experience the most intuitive on the Phone but also on Tablets.\n**Droid edit free –**The ad-supported version has the same functionality as the paid version except it doesn’t have SFTP support, Dropbox support, Custom themes, and root mode.\nCode anywhere – Codeanywhere is a text, code, and markup editor, that has been redesigned and to be light, fast, and mobile-friendly. Codeanywhere also works on the desktop (Mac and PC). Apparently, the Codeanywhere app doesn’t allow to edit local files from your device, only from remote sources.\nEnlightened – Goal is to stay minimalistic and intuitive. It has absolutely no ads, intrusive permissions, or other nonsense. This app is not stable and has some bugs, however, the app has potential and its improbable, that’s why it’s worth to mention it. **Terminal IDE –**Terminal IDE is an expandable terminal application, with a full Java / C / C++ / HTML Android development kit. It uses the command line with many open source \u0026amp; powerful applications.\nSo this was it.\nI hope that we have been able to provide you with some values. If so then you can check our other valuable techie articles, \u0026amp; keep visiting this site for more such valuable contents.\nThank You.\n","permalink":"https://tutes.in/top-10-code-editor-mobile-apps-2018/","summary":"\u003cp\u003eAre you a programmer, a developer who writes a lot of code,  Or you could be someone who is just trying to be one. However you are related to writing code, you are probably doing it through your laptop or PC. But what if I say that you can code right through your phone.\u003c/p\u003e\n\u003cp\u003eI personally don’t want to be completely dependent  on my laptop or PC to code. What about you?\u003c/p\u003e","title":"Top 10 code editor mobile apps. – 2018."},{"content":"So, admit it. We put really strong passwords and then we forget them.\nAnd you end up being locked out of your own website.\nSo here is how you can reset it quickly.\nGo to your hosting control panel and then go to phpMyAdmin if available.\nLook into the database which is being used for your wordpress installation and click on Users table\nInside users table, find the row responsible for your admin account. (check the user_nicename column for username match)\nand Press edit.\nOn the editing screen, put your new password again the column password and Choose MD5 in left column FUNCTION\nNow scroll down and save this password.\nAnd that’s it. Go to your domain / wp-admin path and login with the new password you just saved.\nWhat to do if you dont have phpMyAdmin? You gotta have some kind of access to MySQL, so connect to it using the credentials inside wp-config.php file\nUse the following command after replacing your details:\nUPDATE `wppl_users` SET `user_pass` = \u0026#39;e0a8aa81eb1762d529783cf587f6f422\u0026#39; WHERE `wppl_users`.`user_nicename` = \u0026#39;admin\u0026#39;; If you remember the email address only, use:\nUPDATE `wppl_users` SET `user_pass` = \u0026#39;e0a8aa81eb1762d529783cf587f6f422\u0026#39; WHERE `wppl_users`.`user_email` = \u0026#39;youremail@gmail.com\u0026#39;; The above command will set your password to abcd@1234. After this command you can login to wordpress admin panel and then reset your password to anything you want. Or use md5.cz to generate md5 for any password string and replace it with e0a8aa81eb1762d529783cf587f6f422\nDo NOT forget to replace “wppl_” with your table prefix (stored in wp-config.php file) ","permalink":"https://tutes.in/forgot-password-cant-log-in-how-to-reset-wordpress-admin-password-without-sending-reset-email/","summary":"\u003cp\u003eSo, admit it. We put really strong passwords and then we forget them.\u003cbr\u003e\nAnd you end up being locked out of your own website.\u003c/p\u003e\n\u003cp\u003eSo here is how you can reset it quickly.\u003cbr\u003e\nGo to your hosting control panel and then go to phpMyAdmin if available.\u003c/p\u003e\n\u003cp\u003eLook into the database which is being used for your wordpress installation and click on \u003cmark\u003eUsers\u003c/mark\u003e table\u003cbr\u003e\n\u003ca href=\"/wp-content/uploads/2018/09/user-table-in-db.png\"\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2018/09/user-table-in-db-1024x679.png\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eInside users table, find the row responsible for your admin account. (check the user_nicename column for username match)\u003cbr\u003e\nand Press edit.\u003cbr\u003e\n\u003ca href=\"/wp-content/uploads/2018/09/inside-user-table.png\"\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2018/09/inside-user-table-1024x593.png\"\u003e\u003c/a\u003e\u003c/p\u003e","title":"[Forgot Password] [Can’t Log In] How to reset WordPress admin password without sending reset email?"},{"content":"I am listing a few common yet very useful plugins we can utilize for our WordPress websites:\nLimit Login Attempts Limit the number of login attempts that possible both through the normal login as well as using the auth cookies.\nWordPress by default allows unlimited login attempts either through the login page or by sending special cookies. This allows passwords (or hashes) to be cracked via brute-force relatively easily.\nLimit Login Attempts Reloaded blocks an Internet address from making further attempts after a specified limit on retries has been reached, making a brute-force attack difficult or impossible.\nFeatures:\nLimit the number of retry attempts when logging in (per each IP). This is fully customizable. Limit the number of attempts to log in using authorization cookies in the same way. Informs the user about the remaining retries or lockout time on the login page. Optional logging and optional email notification. Handles server behind the reverse proxy. It is possible to whitelist/blacklist IPs and Usernames. Sucuri Website Firewall compatibility. XMLRPC gateway protection. Woocommerce login page protection. Multi-site compatibility with extra MU settings. GDPR compliant. With this feature turned on, all logged IPs get obfuscated (md5-hashed). Wordfence security Wordfence includes an endpoint firewall and malware scanner that were built from the ground up to protect WordPress. Our Threat Defense Feed arms Wordfence with the newest firewall rules, malware signatures and malicious IP addresses it needs to keep your website safe. Rounded out by a suite of additional features, Wordfence is the most comprehensive WordPress security solution available.\nWORDPRESS FIREWALL Web Application Firewall identifies and blocks malicious traffic. Built and maintained by a large team focused 100% on WordPress security. [Premium] Real-time firewall rule and malware signature updates via the Threat Defense Feed (free version is delayed by 30 days). [Premium] Real-time IP Blacklist blocks all requests from the most malicious IPs, protecting your site while reducing load. Protects your site at the endpoint, enabling deep integration with WordPress. Unlike cloud alternatives does not break encryption, cannot be bypassed and cannot leak data. Integrated malware scanner blocks requests that include malicious code or content. Protection from brute force attacks by limiting login attempts, enforcing strong passwords and other login security measures. WORDPRESS SECURITY SCANNER Malware scanner checks core files, themes and plugins for malware, bad URLs, backdoors, SEO spam, malicious redirects and code injections. [Premium] Real-time malware signature updates via the Threat Defense Feed (free version is delayed by 30 days). Compares your core files, themes and plugins with what is in the WordPress.org repository, checking their integrity and reporting any changes to you. Repair files that have changed by overwriting them with a pristine, original version. Delete any files that don’t belong easily within the Wordfence interface. Checks your site for known security vulnerabilities and alerts you to any issues. Also alerts you to potential security issues when a plugin has been closed or abandoned. Checks your content safety by scanning file contents, posts and comments for dangerous URLs and suspicious content. [Premium] Checks to see if your site or IP have been blacklisted for malicious activity, generating spam or other security issue. SECURITY TOOLS With Live Traffic, monitor visits and hack attempts not shown in other analytics packages in real time; including origin, their IP address, the time of day and time spent on your site. [Premium] Stop brute force attacks permanently by using two factor authentication, one of the most secure forms of remote system authentication available. Block attackers by IP or build advanced rules based on IP Range, Hostname, User Agent and Referrer. W3 Total Cache W3 Total Cache improves the SEO and user experience of your site by increasing website performance, reducing download times via features like content delivery network (CDN) integration.\nThe only web host agnostic WordPress Performance Optimization (WPO) framework recommended by countless web developers and web hosts. Trusted by numerous companies like: AT\u0026amp;T, stevesouders.com, mattcutts.com, mashable.com, smashingmagazine.com, makeuseof.com, kiss925.com, pearsonified.com, lockergnome.com, johnchow.com, ilovetypography.com, webdesignerdepot.com, css-tricks.com and tens of thousands of others.\nAn inside look:\nBENEFITS\nImprovements in search engine result page rankings, especially for mobile-friendly websites and sites that use SSL At least 10x improvement in overall site performance (Grade A in WebPagetest or significant Google Page Speed improvements) when fully configured Improved conversion rates and “site performance” which affect your site’s rank on Google.com “Instant” repeat page views: browser caching Optimized progressive render: pages start rendering quickly and can be interacted with more quickly Reduced page load time: increased visitor time on site; visitors view more pages Improved web server performance; sustain high traffic periods Up to 80% bandwidth savings via minify and HTTP compression of HTML, CSS, JavaScript and feeds KEY FEATURES\nCompatible with shared hosting, virtual private / dedicated servers and dedicated servers / clusters Transparent content delivery network (CDN) management with Media Library, theme files and WordPress itself Mobile support: respective caching of pages by referrer or groups of user agents including theme switching for groups of referrers or user agents Accelerated Mobile Pages (AMP) support Secure Socket Layer (SSL) support Caching of (minified and compressed) pages and posts in memory or on disk or on (FSD) CDN (by user agent group) Caching of (minified and compressed) CSS and JavaScript in memory, on disk or on CDN Caching of feeds (site, categories, tags, comments, search results) in memory or on disk or on CDN Caching of search results pages (i.e. URIs with query string variables) in memory or on disk Caching of database objects in memory or on disk Caching of objects in memory or on disk Caching of fragments in memory or on disk Minification of posts and pages and feeds Minification of inline, embedded or 3rd party JavaScript (with automated updates) Minification of inline, embedded or 3rd party CSS (with automated updates) Browser caching using cache-control, future expire headers and entity tags (ETag) with “cache-busting” JavaScript grouping by template (home page, post page etc) with embed location control Non-blocking JavaScript embedding Import post attachments directly into the Media Library (and CDN) WP-CLI support for cache purging, query string updating and more Various security features Caching statistics for performance insights Extension framework for customization or extensibility e.g. New Relic, Cloudflare, WPML and more Reverse proxy integration via Nginx or Varnish Improve the user experience for your readers without having to change WordPress, your theme, your plugins or how you produce your content.\nJetpack Hassle-free design, marketing, and security — all in one place.\nDESIGN SERVICES Create and customize your WordPress site from start to finish. Jetpack helps you with:\nHundreds of professional themes for any kind of site Intuitive and powerful customization tools Unlimited and high-speed image and video content delivery network Lazy image loading for a faster mobile experience Integration with the official WordPress mobile apps MARKETING SERVICES Measure, promote, and earn money from your site. Jetpack helps you with:\nSite stats and analytics Automated social media posting and scheduling in advance Elasticsearch-powered related content and site search SEO tools for Google, Bing, Twitter, Facebook, and WordPress.com Advertising program that includes the best of AdSense, Facebook Ads, AOL, Amazon, Google AdX, and Yahoo Simple PayPal payment buttons SECURITY SERVICES Stop worrying about data loss, downtime, and hacking. Jetpack helps you with:\nBrute force attack protection, spam filtering, and downtime monitoring Daily or real-time backups of your entire site Secure logins with optional two-factor authentication Malware scanning, code scanning, and automated threat resolution Fast, priority support from WordPress experts Yoast Seo Need some help with your search engine optimization? Need an SEO plugin that helps you reach for the stars? Yoast SEO is the original WordPress SEO plugin since 2008. It is the favorite tool of millions of users, ranging from the bakery around the corner to some of the most popular sites on the planet. With Yoast SEO, you get a solid toolset that helps you aim for that number one spot in the search results. Yoast: SEO for everyone.\nYoast SEO does everything in its power to please both visitors and search engine spiders. How? Below you’ll find a small sampling of the powers of Yoast SEO:\nTAKING CARE OF YOUR WORDPRESS SEO The most advanced XML Sitemaps functionality at the push of a button. Full control over site breadcrumbs: add a piece of code and you’re good to go. Set canonical URLs to avoid duplicate content. Never have to worry about Google penalties again. Title and meta description templating for better branding and consistent snippets in the search results. WRITE KILLER CONTENT WITH YOAST SEO Content \u0026amp; SEO analysis: Invaluable tools to write SEO-friendly texts. The snippet preview shows you how your post or page will look in the search results – even on mobile. Yoast SEO Premium even has social media previews! [Premium] The Insights tool shows you what your text focuses on so you can keep your article in line with your keywords. [Premium] Multiple focus keywords: Optimize your article for synonyms and related keywords. [Premium] Automatic internal linking suggestions: write your article and get automatic suggested posts to link to. KEEP YOUR SITE IN PERFECT SHAPE Yoast SEO tunes the engine of your site so you can work on creating great content. Our cornerstone content and internal linking features help you optimize your site structure in a breeze. Integrates with Google Search Console: See how your site performs in the search engines and fix crawl errors. Manage SEO roles: Give your colleagues access to specific sections of the Yoast SEO plugin. Bulk editor: Make large-scale edits to your site. Google XMP sitemaps Use this plugin to greatly improve SEO to create special XML sitemaps which will help search engines like Google, Bing, Yahoo and Ask.com to better index your site.\nWith such a sitemap, it’s much easier for the crawlers to see the complete structure of your site and retrieve it more efficiently. The plugin supports all kinds of WordPress generated pages as well as custom URLs. Additionally it notifies all major search engines every time you create a post about the new content.\nGoogle Analytics for WordPress by MonsterInsights We believe that you shouldn’t have to hire a developer to add Google Analytics to your website. That’s why we built MonsterInsights, a complete Google Analytics for WordPress plugin that’s EASY and POWERFUL.\nMonsterInsights allow you to connect your WordPress website with Google Analytics, so you can see how visitors find and use your website, so you can keep them coming back. Simply put, we show you the stats that matter.\nWith almost 15 million downloads, MonsterInsights is the most popular Google Analytics plugin for WordPress.\nAt MonsterInsights, user experience is our #1 priority. That’s why we make it extremely easy for you to connect and view your Google Analytics reports from inside your WordPress dashboard. Our tracking settings and workflows make MonsterInsights the most beginner friendly google analytics plugin in the market.\n","permalink":"https://tutes.in/list-of-really-good-and-important-plugins-for-wordpress/","summary":"\u003cp\u003eI am listing a few common yet very useful plugins we can utilize for our WordPress websites:\u003c/p\u003e\n\u003ch2 id=\"limit-login-attempts\"\u003e\u003ca href=\"https://wordpress.org/plugins/limit-login-attempts-reloaded/\"\u003eLimit Login Attempts\u003c/a\u003e\u003c/h2\u003e\n\u003cp\u003eLimit the number of login attempts that possible both through the normal login as well as using the auth cookies.\u003cbr\u003e\nWordPress by default allows unlimited login attempts either through the login page or by sending special cookies. This allows passwords (or hashes) to be cracked via brute-force relatively easily.\u003cbr\u003e\nLimit Login Attempts Reloaded blocks an Internet address from making further attempts after a specified limit on retries has been reached, making a brute-force attack difficult or impossible.\u003c/p\u003e","title":"List of really good and important plugins for WordPress"},{"content":"The problem: On a fresh install of Magento2 on cpanel based hosting, you receive the following error while running any command on SSH\n[eee@e1 www]$ php bin/magento cache:clean X-Powered-By: PHP/7.0.31 Content-type: text/html; charset=UTF-8 bin/magento must be run as a CLI application [eee@e1 www]$ php bin/magento setup:upgrade X-Powered-By: PHP/7.0.31 Content-type: text/html; charset=UTF-8 bin/magento must be run as a CLI application The Solution: You have to point php to correct binary;\nUse the following code in order:\nFirst, open the file which can alter the runtime variables like .bash_profile or .bashrc\ncd ~ ; nano .bash_profile OR cd ~ ;nano .bashrc Go to last line and paste this (depending upon php version change ea-php71 or ea-php70):\nalias php=\u0026#39;/opt/cpanel/ea-php71/root/usr/bin/php\u0026#39; Save the file and exit the editor.\nLog out and login again OR use the following command\n$ source ~/.bashrc If you are not sure about current php version, use which php or php -v command. If you think the cpanel configuration is the issue, fix EasyApache 4 PHP cli issue. With this way you can fix the setting and enable the new php version\n","permalink":"https://tutes.in/fix-magento-2-php-cli-error-on-cpanel-or-other-hostings/","summary":"\u003ch2 id=\"the-problem\"\u003eThe problem:\u003c/h2\u003e\n\u003cp\u003eOn a fresh install of Magento2 on cpanel based hosting, you receive the following error while running any command on SSH\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e[\u003c/span\u003eeee@e1 www\u003cspan class=\"o\"\u003e]\u003c/span\u003e$ php bin/magento cache:clean\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eX-Powered-By: PHP/7.0.31\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eContent-type: text/html\u003cspan class=\"p\"\u003e;\u003c/span\u003e \u003cspan class=\"nv\"\u003echarset\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003eUTF-8\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ebin/magento must be run as a CLI application\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e[\u003c/span\u003eeee@e1 www\u003cspan class=\"o\"\u003e]\u003c/span\u003e$ php bin/magento setup:upgrade\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eX-Powered-By: PHP/7.0.31\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eContent-type: text/html\u003cspan class=\"p\"\u003e;\u003c/span\u003e \u003cspan class=\"nv\"\u003echarset\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003eUTF-8\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ebin/magento must be run as a CLI application\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch2 id=\"the-solution\"\u003eThe Solution:\u003c/h2\u003e\n\u003cp\u003eYou have to point php to correct binary;\u003cbr\u003e\nUse the following code in order:\u003cbr\u003e\nFirst, open the file which can alter the runtime variables like \u003ccode\u003e.bash_profile\u003c/code\u003e or \u003ccode\u003e.bashrc\u003c/code\u003e\u003c/p\u003e","title":"Fix Magento 2 – php cli error on cpanel or other hostings"},{"content":"wp-config.php file contains all information about your database connection and some salts which are used for password generation\nindex.php handles all the requests on your wordpress blog\nwp-content/themes contains all the themes installed in your blog\nwp-content/plugins contains all the plugins installed in your blog\nyourblog.com/wp-login.php or yourblog.com/wp-admin/ can be used for logging into wordpress backend\nwp-content/uploads contains all your file uploads including all the images in media. They are usually categorized in folders like 2018/month_number (08 09 etc)\nusers table is used for storing all your user details like username, first name, last name, email and password\nother details about users are generally stored in usermeta table\noptions table is used for storing all the blog settings. generally first and second row in this table contain the url of your wordpress blog.\n","permalink":"https://tutes.in/wordpress-hierarchy-important-files-and-directories/","summary":"\u003cp\u003e\u003ccode\u003ewp-config.php\u003c/code\u003e file contains all information about your database connection and some salts which are used for password generation\u003cbr\u003e\n\u003ccode\u003eindex.php\u003c/code\u003e handles all the requests on your wordpress blog\u003cbr\u003e\n\u003ccode\u003ewp-content/themes\u003c/code\u003e contains all the themes installed in your blog\u003cbr\u003e\n\u003ccode\u003ewp-content/plugins\u003c/code\u003e contains all the plugins installed in your blog\u003cbr\u003e\n\u003ccode\u003eyourblog.com/wp-login.php\u003c/code\u003e or \u003ccode\u003eyourblog.com/wp-admin/\u003c/code\u003e can be used for logging into wordpress backend\u003cbr\u003e\n\u003ccode\u003ewp-content/uploads\u003c/code\u003e contains all your file uploads including all the images in media. They are usually categorized in folders like 2018/month_number (08 09 etc)\u003cbr\u003e\n\u003ccode\u003eusers\u003c/code\u003e table is used for storing all your user details like username, first name, last name, email and password\u003cbr\u003e\nother details about users are generally stored in \u003ccode\u003eusermeta\u003c/code\u003e table\u003cbr\u003e\n\u003ccode\u003eoptions\u003c/code\u003e table is used for storing all the blog settings. generally first and second row in this table contain the url of your wordpress blog.\u003c/p\u003e","title":"WordPress Hierarchy – Important Files and Directories"},{"content":"Problem Statement Tracking hours for multiple days are available in HH:MM:SS format separated by tab element. Add all the time to show total hours worked/tracked.\n\u0026lt;?php $a=\u0026#34;03:23:28\t03:58:54\t00:00:00\t03:10:49\t02:17:33\t03:56:38\t02:18:23\t06:15:42\t00:00:00\t00:00:00\t06:04:51\t07:41:09\t03:23:15\t06:12:59\t03:51:27\t00:00:00\t04:30:06\t05:00:23\t00:00:00\t04:34:25\t05:17:02\t01:36:21\t00:00:00\t03:53:20\t06:30:52\t06:21:47\t04:54:16\t03:22:28\t03:10:35\t00:00:00\t06:37:11\t02:14:22\t03:06:49\t03:05:44\t02:35:54\t04:03:22\t00:00:00 \u0026#34;; #$a=\u0026#34;04:05:21\t06:25:39\t03:02:36\t04:01:17\t03:03:21\t02:00:36\t04:21:54\t04:21:35\t00:00:00\t00:00:00\t03:39:21\t04:19:17\t03:08:14\t01:44:48\t03:28:11\t00:00:00\t03:05:53\t03:05:34\t00:00:00\t02:09:17\t05:01:13\t01:02:20\t00:00:00\t04:30:51\t06:03:49\t06:36:35\t02:14:01\t03:06:38\t04:02:09\t00:00:00\t02:34:29\t03:36:30\t05:10:17\t06:46:19\t07:48:08\t09:13:34\t00:00:00 #\u0026#34;; $a=\u0026#34;07:28:49\t10:24:33\t03:02:36\t07:12:06\t05:20:54\t05:57:14\t06:40:17\t10:37:17\t00:00:00\t00:00:00\t09:44:12\t12:00:26\t06:31:29\t07:57:47\t07:19:38\t00:00:00\t07:35:59\t08:05:57\t00:00:00\t06:43:42\t10:18:15\t02:38:41\t00:00:00\t08:24:11\t12:34:41\t12:58:22\t07:08:17\t06:29:06\t07:12:44\t00:00:00\t09:11:40\t05:50:52\t08:17:06\t09:52:03\t10:24:02\t13:16:56\t00:00:00 \u0026#34;; $f=explode(\u0026#34;\\t\u0026#34;,$a); $th=$tm=$ts=0; foreach($f as $ele){ $ht=explode(\u0026#34;:\u0026#34;,$ele); $hours=intval($ht[0]); $minutes=intval($ht[1]); $seconds=intval($ht[2]); $th+=$hours; $tm+=$minutes; $ts+=$seconds; } $mm=intval($ts/60); $ts=$ts%60; $tm+=$mm; $hh=intval($tm/60); $tm=$tm%60; $th+=$hh; echo \u0026#34;$th:$tm:$ts\u0026#34;; ?\u0026gt; ","permalink":"https://tutes.in/how-to-add-colon-separated-hours-in-php-using-explode-function-twice/","summary":"\u003ch2 id=\"problem-statement\"\u003eProblem Statement\u003c/h2\u003e\n\u003cp\u003eTracking hours for multiple days are available in HH:MM:SS format separated by tab element. Add all the time to show total hours worked/tracked.\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e\u0026lt;?\u003c/span\u003e\u003cspan class=\"nx\"\u003ephp\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$a\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;03:23:28\t03:58:54\t00:00:00\t03:10:49\t02:17:33\t03:56:38\t02:18:23\t06:15:42\t00:00:00\t00:00:00\t06:04:51\t07:41:09\t03:23:15\t06:12:59\t03:51:27\t00:00:00\t04:30:06\t05:00:23\t00:00:00\t04:34:25\t05:17:02\t01:36:21\t00:00:00\t03:53:20\t06:30:52\t06:21:47\t04:54:16\t03:22:28\t03:10:35\t00:00:00\t06:37:11\t02:14:22\t03:06:49\t03:05:44\t02:35:54\t04:03:22\t00:00:00\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e#$a=\u0026#34;04:05:21\t06:25:39\t03:02:36\t04:01:17\t03:03:21\t02:00:36\t04:21:54\t04:21:35\t00:00:00\t00:00:00\t03:39:21\t04:19:17\t03:08:14\t01:44:48\t03:28:11\t00:00:00\t03:05:53\t03:05:34\t00:00:00\t02:09:17\t05:01:13\t01:02:20\t00:00:00\t04:30:51\t06:03:49\t06:36:35\t02:14:01\t03:06:38\t04:02:09\t00:00:00\t02:34:29\t03:36:30\t05:10:17\t06:46:19\t07:48:08\t09:13:34\t00:00:00\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e#\u0026#34;;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$a\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;07:28:49\t10:24:33\t03:02:36\t07:12:06\t05:20:54\t05:57:14\t06:40:17\t10:37:17\t00:00:00\t00:00:00\t09:44:12\t12:00:26\t06:31:29\t07:57:47\t07:19:38\t00:00:00\t07:35:59\t08:05:57\t00:00:00\t06:43:42\t10:18:15\t02:38:41\t00:00:00\t08:24:11\t12:34:41\t12:58:22\t07:08:17\t06:29:06\t07:12:44\t00:00:00\t09:11:40\t05:50:52\t08:17:06\t09:52:03\t10:24:02\t13:16:56\t00:00:00\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$f\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nx\"\u003eexplode\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e\u003cspan class=\"se\"\u003e\\t\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nv\"\u003e$a\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$th\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nv\"\u003e$tm\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nv\"\u003e$ts\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eforeach\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$f\u003c/span\u003e \u003cspan class=\"k\"\u003eas\u003c/span\u003e \u003cspan class=\"nv\"\u003e$ele\u003c/span\u003e\u003cspan class=\"p\"\u003e){\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"nv\"\u003e$ht\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nx\"\u003eexplode\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;:\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nv\"\u003e$ele\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"nv\"\u003e$hours\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nx\"\u003eintval\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$ht\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e]);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"nv\"\u003e$minutes\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nx\"\u003eintval\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$ht\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e]);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"nv\"\u003e$seconds\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nx\"\u003eintval\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$ht\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e2\u003c/span\u003e\u003cspan class=\"p\"\u003e]);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"nv\"\u003e$th\u003c/span\u003e\u003cspan class=\"o\"\u003e+=\u003c/span\u003e\u003cspan class=\"nv\"\u003e$hours\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"nv\"\u003e$tm\u003c/span\u003e\u003cspan class=\"o\"\u003e+=\u003c/span\u003e\u003cspan class=\"nv\"\u003e$minutes\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u003cspan class=\"nv\"\u003e$ts\u003c/span\u003e\u003cspan class=\"o\"\u003e+=\u003c/span\u003e\u003cspan class=\"nv\"\u003e$seconds\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$mm\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nx\"\u003eintval\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$ts\u003c/span\u003e\u003cspan class=\"o\"\u003e/\u003c/span\u003e\u003cspan class=\"mi\"\u003e60\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$ts\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nv\"\u003e$ts\u003c/span\u003e\u003cspan class=\"o\"\u003e%\u003c/span\u003e\u003cspan class=\"mi\"\u003e60\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$tm\u003c/span\u003e\u003cspan class=\"o\"\u003e+=\u003c/span\u003e\u003cspan class=\"nv\"\u003e$mm\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$hh\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nx\"\u003eintval\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$tm\u003c/span\u003e\u003cspan class=\"o\"\u003e/\u003c/span\u003e\u003cspan class=\"mi\"\u003e60\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$tm\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nv\"\u003e$tm\u003c/span\u003e\u003cspan class=\"o\"\u003e%\u003c/span\u003e\u003cspan class=\"mi\"\u003e60\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$th\u003c/span\u003e\u003cspan class=\"o\"\u003e+=\u003c/span\u003e\u003cspan class=\"nv\"\u003e$hh\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eecho\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e\u003cspan class=\"si\"\u003e$th\u003c/span\u003e\u003cspan class=\"s2\"\u003e:\u003c/span\u003e\u003cspan class=\"si\"\u003e$tm\u003c/span\u003e\u003cspan class=\"s2\"\u003e:\u003c/span\u003e\u003cspan class=\"si\"\u003e$ts\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"cp\"\u003e?\u0026gt;\u003c/span\u003e\u003cspan class=\"err\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"How to add colon separated hours in PHP using explode function twice?"},{"content":"Browser Extensions To know the platform and background details of any website – use Wappalyzer (chrome extension)\nhttps://chrome.google.com/webstore/detail/wappalyzer/gppongmhjkpfnbhagpmjfkannfbllamg?hl=en\nTo protect privacy over internet, use privacy badger (chrome extension)\nhttps://chrome.google.com/webstore/detail/privacy-badger/pkehgijcmpdhfbdbbnkijodmdjhbjlgp\nTo get away with distractions, use stayfocusd (chrome extension)\nhttps://chrome.google.com/webstore/detail/stayfocusd/laankejkbhbdhmipfmgcngdelahlfoji\nYou hate CORS warnings in console, to get rid of them, use Allow-Control-Allow-Origin plugin for chrome\nhttps://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi\nDevelopers and sys admins keep playing with DNS all the time, but browsers use cache and are lazy in updating the record. Use DNS Flusher\nhttps://chrome.google.com/webstore/detail/dns-flusher/nbomnjapnclaocillijpceooehonajnk\nSometimes, you just want to check the website before actually moving the DNS or IP record, use Virtual Hosts (chrome extension)\nyou can set IP of any domain name to anything\nhttps://chrome.google.com/webstore/detail/virtual-hosts/aiehidpclglccialeifedhajckcpedom\nJSONView – use this extension to view any json with indentation\nhttps://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc\nFor sharing screenshots very quick, you can use two plugins Nimbus screenshot and Lightshot\nhttps://chrome.google.com/webstore/detail/lightshot-screenshot-tool/mbniclmhobmnbdlbpiphghaielnnpgdp?hl=en\nhttps://chrome.google.com/webstore/detail/nimbus-screenshot-screen/bpconcjcammlapcogcnnelfmaeghhagj?hl=en\nUseful Websites HTML Online Editor Free online HTML editor with WYSIWYG and source composer and instant preview and many useful built-in features\nStack Overflow Huge programmer community where you usually don’t have to ask for help because probably someone has already answered the same question.\nW3Schools The place to learn web technologies. There’s a big chance that this site gives the first search result when you’re looking for a HTML term.\nGithub Collaborate with other developers. Fork, send pull requests and manage all your public and private git repositories.\nBuilt With Enter a domain name to find out who is hosting it, what CMS and framework is used and many other insights.\nThum.IO Fast real-time website screenshot API. If you are a backend guy, handling multiple sites and uptime can get messy. This api can really help you in managing the tasks relating to visibility of your website across the web.\nHTML Color Codes Search and save color codes. Search by name or mix the RGB, HSV or CMYK values. Use the generated HTML/CSS codes.\nFreepik Browse the large directory of free photos, vector arts, icons, illustrations, PSD files at FreePic.\nPageSpeed Insights This tool by Google analyzes the submitted link from mobile and desktop to suggest you what to consider optimizing.\nGoogle Fonts An interactive directory of over 800 free hosted web fonts. It allows to optimize loading speed by including only what you need.\nPlacehold.it Image placeholders with customizable size. Just add the image resolution after the domain name, for example placehold.it/400×250\nSpeed Test by GT-Metrix Analize the loading speed of a website from many available servers. The website creates a detailed analysis with screenshot and waterfall view.\nSimilar sites- Pingdom and WebpageTest.org\nFontAwesome The most popular icon set based on CSS and LESS. The vector icons can be customized as text – size, color, drop shadow\nXML Sitemaps Generate XML sitemaps and URL list of a website. The crawl limit is 500 pages.\nPost Image Post images online for free and share them via links on messages, forums or emails\nCodepen Register to create, save and share HTML-CSS-JS code snippets and run them online.\nWrite PHP Online Name suggests it all. Post your code and see what it does. In PHP\nPastebin Pastebin is a website where you can store text online for a set period of time and share it with anybody or privately\n","permalink":"https://tutes.in/a-list-of-few-productivity-plugins-and-useful-websites-for-web-developers/","summary":"\u003ch2 id=\"browser-extensions\"\u003eBrowser Extensions\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003e\n\u003cp\u003eTo know the platform and background details of any website – use Wappalyzer (chrome extension)\u003cbr\u003e\n\u003ca href=\"https://chrome.google.com/webstore/detail/wappalyzer/gppongmhjkpfnbhagpmjfkannfbllamg?hl=en\"\u003ehttps://chrome.google.com/webstore/detail/wappalyzer/gppongmhjkpfnbhagpmjfkannfbllamg?hl=en\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eTo protect privacy over internet, use privacy badger (chrome extension)\u003cbr\u003e\n\u003ca href=\"https://chrome.google.com/webstore/detail/privacy-badger/pkehgijcmpdhfbdbbnkijodmdjhbjlgp\"\u003ehttps://chrome.google.com/webstore/detail/privacy-badger/pkehgijcmpdhfbdbbnkijodmdjhbjlgp\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eTo get away with distractions, use stayfocusd (chrome extension)\u003cbr\u003e\n\u003ca href=\"https://chrome.google.com/webstore/detail/stayfocusd/laankejkbhbdhmipfmgcngdelahlfoji\"\u003ehttps://chrome.google.com/webstore/detail/stayfocusd/laankejkbhbdhmipfmgcngdelahlfoji\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eYou hate CORS warnings in console, to get rid of them, use Allow-Control-Allow-Origin plugin for chrome\u003cbr\u003e\n\u003ca href=\"https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi\"\u003ehttps://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eDevelopers and sys admins keep playing with DNS all the time, but browsers use cache and are lazy in updating the record. Use DNS Flusher\u003cbr\u003e\n\u003ca href=\"https://chrome.google.com/webstore/detail/dns-flusher/nbomnjapnclaocillijpceooehonajnk\"\u003ehttps://chrome.google.com/webstore/detail/dns-flusher/nbomnjapnclaocillijpceooehonajnk\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eSometimes, you just want to check the website before actually moving the DNS or IP record, use Virtual Hosts (chrome extension)\u003cbr\u003e\nyou can set IP of any domain name to anything\u003cbr\u003e\n\u003ca href=\"https://chrome.google.com/webstore/detail/virtual-hosts/aiehidpclglccialeifedhajckcpedom\"\u003ehttps://chrome.google.com/webstore/detail/virtual-hosts/aiehidpclglccialeifedhajckcpedom\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eJSONView – use this extension to view any json with indentation\u003cbr\u003e\n\u003ca href=\"https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc\"\u003ehttps://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eFor sharing screenshots very quick, you can use two plugins Nimbus screenshot and Lightshot\u003cbr\u003e\n\u003ca href=\"https://chrome.google.com/webstore/detail/lightshot-screenshot-tool/mbniclmhobmnbdlbpiphghaielnnpgdp?hl=en\"\u003ehttps://chrome.google.com/webstore/detail/lightshot-screenshot-tool/mbniclmhobmnbdlbpiphghaielnnpgdp?hl=en\u003c/a\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ol\u003e","title":"A list of few productivity plugins and useful websites for web developers"},{"content":"I did a lot of research but could not find a solution for that. so gathered some info and created this code: (it is not the best way to do it, but it works – you can use it at least one time for quick results)\nthe values need to be transformed if you want to see them properly in csv\nHere is how to print all available attributes in backend and along with their all available options aka labels \u0026lt;?php use \\Magento\\Framework\\App\\Bootstrap; error_reporting(E_ALL); ini_set(\u0026#34;display_errors\u0026#34;,1); include(\u0026#39;./app/bootstrap.php\u0026#39;); $bootstrap = Bootstrap::create(BP, $_SERVER); $objectManager = $bootstrap-\u0026gt;getObjectManager(); //use Magento\\Catalog\\Model\\ResourceModel\\Product\\Attribute\\CollectionFactory; $collection= $objectManager-\u0026gt;get(\u0026#39;\\Magento\\Catalog\\Model\\ResourceModel\\Product\\Attribute\\CollectionFactory\u0026#39;)-\u0026gt;create(); //$attr_groups = array(); $fta=array(); $ft=array(); foreach ($collection as $items) { $attr_groups = $items-\u0026gt;getData(); if($attr_groups[\u0026#39;frontend_input\u0026#39;]==\u0026#34;select\u0026#34; or $attr_groups[\u0026#39;frontend_input\u0026#39;]==\u0026#34;multiselect\u0026#34;){ $eav=$objectManager-\u0026gt;get(\u0026#39;\\Magento\\Eav\\Model\\Config\u0026#39;)-\u0026gt;getAttribute(\u0026#39;catalog_product\u0026#39;,$attr_groups[\u0026#39;attribute_code\u0026#39;])-\u0026gt;getSource()-\u0026gt;getAllOptions(); $ft[]=$attr_groups[\u0026#39;frontend_label\u0026#39;]; $ft[]=$attr_groups[\u0026#39;attribute_code\u0026#39;]; //echo $attr_groups[\u0026#39;attribute_code\u0026#39;].\u0026#39;\u0026lt;br\u0026gt;\u0026#39;.$attr_groups[\u0026#39;frontend_input\u0026#39;].\u0026#39;\u0026lt;br\u0026gt;\u0026#39;.$attr_groups[\u0026#39;frontend_label\u0026#39;].\u0026#39;\u0026lt;br\u0026gt;\u0026#39;.$attr_groups[\u0026#39;attribute_id\u0026#39;].\u0026#39;\u0026lt;br\u0026gt;\u0026#39;; foreach($eav as $getlabel) { if(is_object($getlabel[\u0026#39;label\u0026#39;])){ $r = new ReflectionObject($getlabel[\u0026#39;label\u0026#39;]); $p = $r-\u0026gt;getProperty(\u0026#39;text\u0026#39;); //echo $p; $p-\u0026gt;setAccessible(true); $ft[]= $p-\u0026gt;getValue($getlabel[\u0026#39;label\u0026#39;]); } else $ft[]= $getlabel[\u0026#39;label\u0026#39;]; } $fta[]=$ft; $ft=array(); } ","permalink":"https://tutes.in/how-to-get-all-attributes-with-all-available-labels-options-in-magento2/","summary":"\u003cp\u003eI did a lot of research but could not find a solution for that. so gathered some info and created this code: (it is not the best way to do it, but it works – you can use it at least one time for quick results)\u003cbr\u003e\n\u003cmark\u003ethe values need to be transformed if you want to see them properly in csv\u003c/mark\u003e\u003c/p\u003e\n\u003ch2 id=\"here-is-how-to-print-all-available-attributes-in-backend-and-along-with-their-all-available-options-aka-labels\"\u003eHere is how to print all available attributes in backend and along with their all available options aka labels\u003c/h2\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e\u0026lt;?\u003c/span\u003e\u003cspan class=\"nx\"\u003ephp\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003euse\u003c/span\u003e \u003cspan class=\"nx\"\u003e\\Magento\\Framework\\App\\Bootstrap\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nx\"\u003eerror_reporting\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"k\"\u003eE_ALL\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nx\"\u003eini_set\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;display_errors\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003einclude\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;./app/bootstrap.php\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nv\"\u003e$bootstrap\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003eBootstrap\u003c/span\u003e\u003cspan class=\"o\"\u003e::\u003c/span\u003e\u003cspan class=\"na\"\u003ecreate\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eBP\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nv\"\u003e$_SERVER\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nv\"\u003e$objectManager\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$bootstrap\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetObjectManager\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"c1\"\u003e//use Magento\\Catalog\\Model\\ResourceModel\\Product\\Attribute\\CollectionFactory;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nv\"\u003e$collection\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$objectManager\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003eget\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;\\Magento\\Catalog\\Model\\ResourceModel\\Product\\Attribute\\CollectionFactory\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003ecreate\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e//$attr_groups = array();\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$fta\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"k\"\u003earray\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$ft\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"k\"\u003earray\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003eforeach\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$collection\u003c/span\u003e \u003cspan class=\"k\"\u003eas\u003c/span\u003e \u003cspan class=\"nv\"\u003e$items\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e                        \u003cspan class=\"nv\"\u003e$attr_groups\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$items\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetData\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e                                                \u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$attr_groups\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;frontend_input\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e\u003cspan class=\"o\"\u003e==\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;select\u0026#34;\u003c/span\u003e \u003cspan class=\"k\"\u003eor\u003c/span\u003e \u003cspan class=\"nv\"\u003e$attr_groups\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;frontend_input\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e\u003cspan class=\"o\"\u003e==\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;multiselect\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e){\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$eav\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nv\"\u003e$objectManager\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003eget\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;\\Magento\\Eav\\Model\\Config\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetAttribute\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;catalog_product\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nv\"\u003e$attr_groups\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;attribute_code\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e])\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetSource\u003c/span\u003e\u003cspan class=\"p\"\u003e()\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetAllOptions\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$ft\u003c/span\u003e\u003cspan class=\"p\"\u003e[]\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nv\"\u003e$attr_groups\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;frontend_label\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$ft\u003c/span\u003e\u003cspan class=\"p\"\u003e[]\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nv\"\u003e$attr_groups\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;attribute_code\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e//echo $attr_groups[\u0026#39;attribute_code\u0026#39;].\u0026#39;\u0026lt;br\u0026gt;\u0026#39;.$attr_groups[\u0026#39;frontend_input\u0026#39;].\u0026#39;\u0026lt;br\u0026gt;\u0026#39;.$attr_groups[\u0026#39;frontend_label\u0026#39;].\u0026#39;\u0026lt;br\u0026gt;\u0026#39;.$attr_groups[\u0026#39;attribute_id\u0026#39;].\u0026#39;\u0026lt;br\u0026gt;\u0026#39;;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eforeach\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$eav\u003c/span\u003e \u003cspan class=\"k\"\u003eas\u003c/span\u003e \u003cspan class=\"nv\"\u003e$getlabel\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eis_object\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$getlabel\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;label\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e])){\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nv\"\u003e$r\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"k\"\u003enew\u003c/span\u003e \u003cspan class=\"nx\"\u003eReflectionObject\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$getlabel\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;label\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e]);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$p\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$r\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetProperty\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;text\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e//echo $p;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$p\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003esetAccessible\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"k\"\u003etrue\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nv\"\u003e$ft\u003c/span\u003e\u003cspan class=\"p\"\u003e[]\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$p\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetValue\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$getlabel\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;label\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e]);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003eelse\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nv\"\u003e$ft\u003c/span\u003e\u003cspan class=\"p\"\u003e[]\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$getlabel\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;label\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$fta\u003c/span\u003e\u003cspan class=\"p\"\u003e[]\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nv\"\u003e$ft\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$ft\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"k\"\u003earray\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"How to get all attributes with all available labels/options in Magento2?"},{"content":"Dashboard Panel When you will log into the administration area of your blog, you’ll see the WordPress Dashboard which will display the overview of the whole website. You can customize your needs by using some quick links such as writing quick draft, replying to latest comment, etc.\nDashboard Menu The WordPress Dashboard provides a navigation menu that contains some menu options such as posts, media library, pages, comments, appearance options, plugins, users, tools and settings on the left side.\nWelcome Section It includes the “Customize Your Site” button which allows customizing your WordPress theme. The center column provides some of the useful links such as creating a blog post, creating a page and view the front end of your website.\nQuick Draft The Quick Draft is a mini post editor which allows writing, saving and publishing a post from the admin dashboard. It includes the title for the draft, some notes about the draft and save it as a Draft.\nWordPress News The WordPress News widget displays the latest news such as latest software version, updates, alerts, news regarding the software etc. from the official WordPress blog.\nActivity The Activity widget includes latest comments on your blog, recent posts and recently published posts. It allows you to approve, disapprove, reply, edit, or delete a comment. It also allows you to move a comment to spam.\nAt a Glance This section gives an overview of your blog’s posts, number of published posts and pages, and number of comments. When you click on these links, you will be taken to the respective screen. It displays the current version of running WordPress along with the currently running theme on the site.\n","permalink":"https://tutes.in/wordpress-dashboard-introduction-by-newbie/","summary":"\u003ch2 id=\"dashboard-panel\"\u003e\u003cstrong\u003eDashboard Panel\u003c/strong\u003e\u003c/h2\u003e\n\u003cp\u003eWhen you will log into the administration area of your blog, you’ll see the WordPress Dashboard which will display the overview of the whole website.  You can customize your needs by using some quick links such as writing quick draft, replying to latest comment, etc.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"/wp-content/uploads/2018/07/dashboard.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2018/07/dashboard-1024x493.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003ch3 id=\"dashboard-menu\"\u003eDashboard Menu\u003c/h3\u003e\n\u003cp\u003eThe WordPress Dashboard provides a navigation menu that contains some menu options such as posts, media library, pages, comments, appearance options, plugins, users, tools and settings on the left side.\u003c/p\u003e","title":"WordPress Dashboard – Introduction by newbie"},{"content":"let us extract name form the URL https://www.google.com/name?=rajiv paste the URL in the notepad and press crtl+f , and select ‘regular expressions ‘ from search mode now, enter the regex in the find tab to fetch names .*?\\?=(\\w+)$ Now, the selected name will be fetched form regex as (\\1).\nit can work on numerous links like:-\nhttps://www.google.com/name?=rajiv/ http://www.example.com/asdas?=borde/id=? http://www.example.com/asdasd?=bordex http://www.example.com/name?=bordet http://www.example.com/asdasd?=border http://www.example.com/jsciloji?=bordeeeee http://www.example.com/name?=bordee http://www.example.com/name?=bordeeeeeee http://www.example.com/09328e?=bordeeee http://www.example.com/name?=borde http://www.example.com/lpaosd?=borde And only the part after first “?=” will be fetched\n","permalink":"https://tutes.in/extracting-names-from-given-list-of-urls-using-regex/","summary":"\u003ch5 id=\"let-us-extract-name-form-the-url\"\u003elet us extract name form the URL\u003c/h5\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ehttps://www.google.com/name?=rajiv\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch5 id=\"paste-the-url-in-the-notepad-and-press-crtlf--and-select-regular-expressions--from-search-mode\"\u003epaste the URL in the notepad and press crtl+f , and select ‘regular expressions ‘ from search mode\u003c/h5\u003e\n\u003cp\u003e\u003ca href=\"/wp-content/uploads/2018/08/find.jpg\"\u003e\u003cimg alt=\"find in notepad\" loading=\"lazy\" src=\"/wp-content/uploads/2018/08/find.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003ch5 id=\"now-enter-the-regex-in-the-find-tab-to-fetch-names\"\u003enow, enter the regex in the find tab to fetch names\u003c/h5\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e.*?\\?=(\\w+)$\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eNow, the selected name will be fetched form regex as (\\1).\u003c/p\u003e\n\u003cp\u003eit can work on numerous links like:-\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ehttps://www.google.com/name?=rajiv/\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ehttp://www.example.com/asdas?=borde/id=?\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ehttp://www.example.com/asdasd?=bordex\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ehttp://www.example.com/name?=bordet\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ehttp://www.example.com/asdasd?=border\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ehttp://www.example.com/jsciloji?=bordeeeee\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ehttp://www.example.com/name?=bordee\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ehttp://www.example.com/name?=bordeeeeeee\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ehttp://www.example.com/09328e?=bordeeee\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ehttp://www.example.com/name?=borde\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ehttp://www.example.com/lpaosd?=borde\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eAnd only the part after first “?=” will be fetched\u003c/p\u003e","title":"Extracting names from given list of URLs (using regex)"},{"content":"Follow these steps to install a new WordPress theme to your website using a compressed theme file(.zip,.tar,.rar etc):\nStep 1: Open the wp-content folder in the root directory of WordPress and go to the themes folder.\nStep 2: Upload the zip(or any other compressed file) theme file inside the theme folder.\nStep 3: Go back to the theme folder, select the compressed theme file and click on extract.\nStep 4: After the file is extracted you may still not see the extracted folder, so click on reload. Also, delete the zip file as it obsolete now.\nStep 5: Now, go to the WordPress dashboard of your website and click on Appearance\u0026gt;Themes.\nStep 6: You can now see your new theme in the installed themes section. Hover on your new theme and click Activate to activate the theme.\nCongratulations you have finally installed and activated a new theme!\n","permalink":"https://tutes.in/how-to-install-a-new-theme-in-wordpress-using-a-compressed-theme-file/","summary":"\u003cp\u003eFollow these steps to install a new WordPress theme to your website using a compressed theme file(.zip,.tar,.rar etc):\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eStep 1\u003c/strong\u003e: Open the wp-content folder in the root directory of WordPress and go to the themes folder.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"/wp-content/uploads/2018/08/themesfolder.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2018/08/themesfolder-1024x227.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eStep 2\u003c/strong\u003e: Upload the zip(or any other compressed file) theme file inside the theme folder.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"/wp-content/uploads/2018/08/theme-file.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2018/08/theme-file-1024x389.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eStep 3\u003c/strong\u003e: Go back to the theme folder, select the compressed theme file and click on extract.\u003c/p\u003e","title":"How to install a new theme in WordPress using a compressed theme file"},{"content":"jQuery(document).ready(function($){ var nost=0; if($(\u0026#34;body\u0026#34;).hasClass(\u0026#34;single-sfwd-courses\u0026#34;)){ toba=\u0026#39;\u0026#39;; $(\u0026#34;#lessons_list a.notavailable\u0026#34;).removeAttr(\u0026#34;href\u0026#34;); $(\u0026#34;#lessons_list a.notavailable\u0026#34;).each(function(){ toba=$(this).parent().parent().attr(\u0026#34;class\u0026#34;); toba = toba.replace(\u0026#34;lesson post-\u0026#34;,\u0026#39;\u0026#39;); toba = toba.replace(\u0026#34; is_not_sample no-topics\u0026#34;,\u0026#39;\u0026#39;); toba = toba.replace(\u0026#34; is_not_sample has-topics\u0026#34;,\u0026#39;\u0026#39;); $(\u0026#39;#learndash_topic_dots-\u0026#39;+toba+\u0026#34; a\u0026#34;).removeAttr(\u0026#34;href\u0026#34;); }); } }); ","permalink":"https://tutes.in/how-to-remove-links-of-a-learndash-course-which-has-not-started-yet-without-code-changes/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-javascript\" data-lang=\"javascript\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003ejQuery\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nb\"\u003edocument\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eready\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"kd\"\u003efunction\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003e$\u003c/span\u003e\u003cspan class=\"p\"\u003e){\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"kd\"\u003evar\u003c/span\u003e \u003cspan class=\"nx\"\u003enost\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003e$\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;body\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003ehasClass\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;single-sfwd-courses\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e)){\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003etoba\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003e$\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;#lessons_list a.notavailable\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eremoveAttr\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;href\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003e$\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;#lessons_list a.notavailable\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eeach\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"kd\"\u003efunction\u003c/span\u003e\u003cspan class=\"p\"\u003e(){\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003etoba\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"nx\"\u003e$\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"k\"\u003ethis\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eparent\u003c/span\u003e\u003cspan class=\"p\"\u003e().\u003c/span\u003e\u003cspan class=\"nx\"\u003eparent\u003c/span\u003e\u003cspan class=\"p\"\u003e().\u003c/span\u003e\u003cspan class=\"nx\"\u003eattr\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;class\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003etoba\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003etoba\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003ereplace\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;lesson post-\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003etoba\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003etoba\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003ereplace\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34; is_not_sample no-topics\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003etoba\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003etoba\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003ereplace\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34; is_not_sample has-topics\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003e$\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;#learndash_topic_dots-\u0026#39;\u003c/span\u003e\u003cspan class=\"o\"\u003e+\u003c/span\u003e\u003cspan class=\"nx\"\u003etoba\u003c/span\u003e\u003cspan class=\"o\"\u003e+\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34; a\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eremoveAttr\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;href\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e});\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e});\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"How to remove links of a learndash course which has not started yet? without code changes"},{"content":"SELECT a.user_id,a.meta_value,b.user_login FROM `e_usermeta` a,`e_users` b where a.meta_key=\u0026#34;phoneno\u0026#34; and a.user_id=b.ID SELECT a.user_id,a.meta_value,b.user_pass,b.user_login FROM `e_usermeta` a,`e_users` b where a.meta_key=\u0026#34;phoneno\u0026#34; and a.user_id=b.ID order by b.user_login UPDATE `wp_users` a,`tmptable` b SET a.`user_pass`=b.`usp` where a.`user_login`=b.`ulogin`; ","permalink":"https://tutes.in/simple-joining-of-data-from-two-different-tables-on-basis-of-a-common-key/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-sql\" data-lang=\"sql\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eSELECT\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003euser_id\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"n\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003emeta_value\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"n\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003euser_login\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eFROM\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003ee_usermeta\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003ee_users\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eb\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003ewhere\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003emeta_key\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;phoneno\u0026#34;\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eand\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003euser_id\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"n\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003eID\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-sql\" data-lang=\"sql\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eSELECT\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003euser_id\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"n\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003emeta_value\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"n\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003euser_pass\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"n\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003euser_login\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eFROM\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003ee_usermeta\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003ee_users\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eb\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003ewhere\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003emeta_key\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;phoneno\u0026#34;\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eand\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003euser_id\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"n\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003eID\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eorder\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eby\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003euser_login\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-sql\" data-lang=\"sql\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eUPDATE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003ewp_users\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003etmptable\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eb\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eSET\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003euser_pass\u003c/span\u003e\u003cspan class=\"o\"\u003e`=\u003c/span\u003e\u003cspan class=\"n\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003eusp\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003ewhere\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003euser_login\u003c/span\u003e\u003cspan class=\"o\"\u003e`=\u003c/span\u003e\u003cspan class=\"n\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003eulogin\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Simple joining of data from two different tables on basis of a common key"},{"content":"We will be editing the database rows using PhpMyAdmin tool given with cPanel by many hosting companies\nYou can change the WordPress user roles by following the given steps:\nStep 1: Open phpMyAdmin on cPanel.\nStep 2: Open the wp_usermeta or xxx_usermeta table in the database as highlighted. (wp_ is just prefix, your table prefix may be different)\nwordpress tables in database\nStep 3: In wp_usermeta table, you can find wp_capabilities under meta_key column.\nUser Roles in usermeta table\nStep 4: The roles are saved in form of serialized PHP array. Change the user role you want to assign to the current user by changing the meta_value as:\nSubscriber a:1:{s:10:\u0026#34;subscriber\u0026#34;;b:1;} Contributor a:1:{s:11:\u0026#34;contributor\u0026#34;;b:1;} Author a:1:{s:6:\u0026#34;author\u0026#34;;b:1;} Editor a:1:{s:6:\u0026#34;editor\u0026#34;;b:1;} Administrator a:1:{s:13:\u0026#34;administrator\u0026#34;;b:1;} ","permalink":"https://tutes.in/how-to-change-wordpress-user-roles-using-mysql-database/","summary":"\u003cp\u003eWe will be editing the database rows using PhpMyAdmin tool given with cPanel by many hosting companies\u003c/p\u003e\n\u003cp\u003eYou can change the \u003ca href=\"https://codex.wordpress.org/Roles_and_Capabilities#Summary_of_Roles\"\u003eWordPress user roles\u003c/a\u003e by following the given steps:\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eStep 1\u003c/strong\u003e: Open \u003ccode\u003ephpMyAdmin\u003c/code\u003e on cPanel.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eStep 2\u003c/strong\u003e: Open the \u003ccode\u003ewp_usermeta\u003c/code\u003e or \u003ccode\u003exxx_usermeta\u003c/code\u003e table in the database as highlighted. (wp_ is just prefix, your table prefix may be different)\u003c/p\u003e\n\u003cfigure\u003e\n    \u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2018/08/database-1024x634.jpg\"\n         alt=\"wordpress tables in database\"/\u003e \u003cfigcaption\u003e\n            \u003cp\u003ewordpress tables in database\u003c/p\u003e\n        \u003c/figcaption\u003e\n\u003c/figure\u003e\n\n\u003cp\u003e\u003cstrong\u003eStep 3\u003c/strong\u003e: In \u003ccode\u003ewp_usermeta\u003c/code\u003e table, you can find \u003cstrong\u003ewp_capabilities\u003c/strong\u003e under \u003cstrong\u003emeta_key\u003c/strong\u003e column.\u003c/p\u003e","title":"How to change WordPress user roles in MySQL database using PhpMyAdmin?"},{"content":"1. Setting GD2 as defualt image adapter from command line Magento \u0026gt;= 2.2 php bin/magento config:set dev/image/default_adapter GD2 php bin/magento cache:clean Magento \u0026gt;= 2.2 mysql --host=(host) --user=(user) --password=(password) -D (database) -e \u0026#34;\\ UPDATE core_config_data SET value = \u0026#39;GD2\u0026#39; WHERE \u0026#39;dev/image/default_adapter\u0026#39; = path; \\\u0026#34;; 2. Disable Minify CSS Files option from command line Magento \u0026gt;= 2.2 php bin/magento config:set dev/css/minify_files 0 php bin/magento cache:clean Magento \u0026lt; 2.2 mysql --host= --user= --password= -D -e \u0026#34;\\ UPDATE core_config_data SET value = 0 WHERE \u0026#39;dev/css/minify_files\u0026#39; = path; \\\u0026#34;; php bin/magento cache:clean 3. Disable Merge CSS Files option from command line php bin/magento config:set dev/css/merge_css_files 0 php bin/magento cache:clean Magento \u0026lt; 2.2 mysql --host= --user= --password= -D -e \u0026#34;\\ UPDATE core_config_data SET value = 0 WHERE \u0026#39;dev/css/merge_css_files\u0026#39; = path; \\\u0026#34;; php bin/magento cache:clean ","permalink":"https://tutes.in/magento-2-cli-commands-continued/","summary":"\u003ch3 id=\"1-setting-gd2-as-defualt-image-adapter-from-command-line\"\u003e\u003cstrong\u003e1. Setting GD2 as defualt image adapter from command line\u003c/strong\u003e\u003c/h3\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2018/08/unnamed.png\"\u003e\u003c/p\u003e\n\u003ch5 id=\"magento--22\"\u003e\u003cstrong\u003eMagento \u0026gt;= 2.2\u003c/strong\u003e\u003c/h5\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp bin/magento config:set dev/image/default_adapter GD2\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp bin/magento cache:clean\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch5 id=\"magento--22-1\"\u003e\u003cstrong\u003eMagento \u0026gt;= 2.2\u003c/strong\u003e\u003c/h5\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e mysql --host=(host) --user=(user) --password=(password) -D (database) -e \u0026#34;\\ UPDATE core_config_data SET value = \u0026#39;GD2\u0026#39; WHERE \u0026#39;dev/image/default_adapter\u0026#39; = path; \\\u0026#34;;\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch3 id=\"2disable-minify-css-files-option-from-command-line\"\u003e2. \u003cstrong\u003eDisable Minify CSS Files option from command line\u003c/strong\u003e\u003c/h3\u003e\n\u003ch5 id=\"magento--22-2\"\u003e\u003cstrong\u003eMagento \u0026gt;= 2.2\u003c/strong\u003e\u003c/h5\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp bin/magento config:set dev/css/minify_files 0\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp bin/magento cache:clean\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch5 id=\"magento--22-3\"\u003e\u003cstrong\u003eMagento \u0026lt; 2.2\u003c/strong\u003e\u003c/h5\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003emysql --host= --user= --password= -D  -e \u0026#34;\\ UPDATE core_config_data SET value = 0 WHERE \u0026#39;dev/css/minify_files\u0026#39; = path; \\\u0026#34;;\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp bin/magento cache:clean\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch3 id=\"3disable-merge-css-files-option-from-command-line\"\u003e3. \u003cstrong\u003eDisable Merge CSS Files option from command line\u003c/strong\u003e\u003c/h3\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp bin/magento config:set dev/css/merge_css_files 0\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp bin/magento cache:clean\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch5 id=\"magento--22-4\"\u003e\u003cstrong\u003eMagento \u0026lt; 2.2\u003c/strong\u003e\u003c/h5\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003emysql --host= --user= --password= -D  -e \u0026#34;\\ UPDATE core_config_data SET value = 0 WHERE \u0026#39;dev/css/merge_css_files\u0026#39; = path; \\\u0026#34;;\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp bin/magento cache:clean\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Magento 2 cli commands [continued]"},{"content":"Download the theme and copy the app folder and paste it in your magento root directory\nOpen Shell, in the root directory, enter ***php bin/magento setup:upgrade .***This will upgrade all the magento files. Also, Clear cache ,type php bin/magento cache:clean . Now force deploy the static files by typing ***php bin/magento setup:static-content:deploy -f .***It will take a while. Now, Go in the dashboard and select content-\u0026gt;configuration. Select the option with default store view and edit.\nSelect your theme from the options and click save and edit. If some problem arises, go to the vendor/magento/module-email/Model/AbstractTemplate.phpand comment the “if” condition of “**setForcedArea”**function, aprox. at line 535.\nAfter changing theme successfully, clear the cache as done before.\nVoila, the theme is changed!!\n","permalink":"https://tutes.in/how-to-install-theme-in-magento-2/","summary":"\u003cp\u003eDownload the theme and copy the app folder and paste it in your magento root directory\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eOpen Shell, in the root directory, enter ***php bin/magento  setup:upgrade .***This will upgrade all the magento files.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003e\u003ca href=\"/wp-content/uploads/2018/07/upgrade.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2018/07/upgrade-300x157.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003col start=\"2\"\u003e\n\u003cli\u003eAlso, Clear cache ,type  \u003cem\u003e\u003cstrong\u003ephp bin/magento  cache:clean .\u003c/strong\u003e\u003c/em\u003e\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003e\u003ca href=\"/wp-content/uploads/2018/07/clear-cache.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2018/07/clear-cache-300x157.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003col start=\"3\"\u003e\n\u003cli\u003eNow force deploy the static files by typing  ***php bin/magento  setup:static-content:deploy -f .***It will take a while.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003e\u003ca href=\"/wp-content/uploads/2018/07/deply.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2018/07/deply-300x157.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003col start=\"4\"\u003e\n\u003cli\u003eNow, Go in the dashboard and select content-\u0026gt;configuration.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003e\u003ca href=\"/wp-content/uploads/2018/07/configuration.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2018/07/configuration-300x161.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e","title":"How to install theme in Magento 2"},{"content":"php bin/magento cache:clean\nContent-type: text/html; charset=UTF-8\nbin/magento must be run as a CLI application\nas root user, run the following commands (For php v7.0)\n# yum install ea-php70 # source /opt/cpanel/ea-php70/enable The solution involves fixing php variable’s path. We need to find which php is being used right now, you can find out by\n$ which php $ php -v To fix this PHP cli error, see how to edit php in bash profile (.bashrc)\n","permalink":"https://tutes.in/solved-php-must-be-run-as-a-cli-application-error-content-type-text-html-charsetutf-8/","summary":"\u003cp\u003ephp bin/magento cache:clean\u003cbr\u003e\nContent-type: text/html; charset=UTF-8\u003cbr\u003e\nbin/magento must be run as a CLI application\u003c/p\u003e\n\u003cp\u003eas root user, run the following commands (For php v7.0)\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e# yum install ea-php70\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e# source /opt/cpanel/ea-php70/enable\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eThe solution involves fixing php variable’s path. We need to find which php is being used right now, you can find out by\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e$ which php\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e$ php -v\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eTo fix this PHP cli error, see \u003ca href=\"/fix-magento-2-php-cli-error-on-cpanel-or-other-hostings/\"\u003ehow to edit php in bash profile (.bashrc)\u003c/a\u003e\u003c/p\u003e","title":"[SOLVED] PHP must be run as a CLI application error : Content-type: text/html; charset=UTF-8"},{"content":"Why this error happens?\nMost of the times, reason is that your database dump through command line or PhpMyAdmin or even other libraries can have SQL’s Definer statements. Now, as per MySQL’s Official Documentation:\nThe DEFINER clause specifies the MySQL account to be used when checking access privileges at routine execution time for routines that have the SQL SECURITY DEFINER characteristic.\nMySQL Reference Manual v8.0\nSolution: MySQL mysqldump create a safe backup to ensure no corruption Use the following command to create backup of your mysql database. Put the command in terminal\nmysqldump -hHOST -uUSERNAME -p DATABASE_NAME | sed -e \u0026#39;s/DEFINER[ ]*=[ ]*[^*]*\\*/\\*/\u0026#39; \u0026gt; BACKUP_NAME.sql With gzip compression \u0026gt; backup\nmysqldump -hHOST -uUSERNAME -p DATABASE_NAME | sed -e \u0026#39;s/DEFINER[ ]*=[ ]*[^*]*\\*/\\*/\u0026#39; | gzip \u0026gt; BACKUP_NAME.sql Reference: https://stackoverflow.com/a/9447215/2229148\n","permalink":"https://tutes.in/mysql-error-1449-the-user-specified-as-a-definer-does-not-exist/","summary":"\u003cp\u003eWhy this error happens?\u003c/p\u003e\n\u003cp\u003eMost of the times, reason is that your database dump through command line or PhpMyAdmin or even other libraries can have SQL’s Definer statements. Now, as per \u003ca href=\"https://dev.mysql.com/doc/en/create-procedure.html\"\u003eMySQL’s Official Documentation\u003c/a\u003e:\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003eThe \u003ccode\u003eDEFINER\u003c/code\u003e clause specifies the MySQL account to be used when checking access privileges at routine execution time for routines that have the \u003ccode\u003eSQL SECURITY DEFINER\u003c/code\u003e characteristic.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://dev.mysql.com/doc/refman/8.0/en/create-procedure.html\"\u003eMySQL Reference Manual v8.0\u003c/a\u003e\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003ch2 id=\"solution-mysql-mysqldump-create-a-safe-backup-to-ensure-no-corruption\"\u003eSolution: MySQL mysqldump create a safe backup to ensure no corruption\u003c/h2\u003e\n\u003cp\u003eUse the following command to create backup of your mysql database. Put the command in terminal\u003c/p\u003e","title":"MySQL error 1449: The user specified as a definer does not exist"},{"content":"[~/www]# php bin/magento list Magento CLI version 2.2.4 Usage: command [options] [arguments] Options: -h, --help Display this help message -q, --quiet Do not output any message -V, --version Display this application version --ansi Force ANSI output --no-ansi Disable ANSI output -n, --no-interaction Do not ask any interactive question -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug Available commands: help Displays help for a command list Lists commands admin admin:user:create Creates an administrator admin:user:unlock Unlock Admin Account app app:config:dump Create dump of application app:config:import Import data from shared configuration files to appropriate data storage cache cache:clean Cleans cache type(s) cache:disable Disables cache type(s) cache:enable Enables cache type(s) cache:flush Flushes cache storage used by cache type(s) cache:status Checks cache status catalog catalog:images:resize Creates resized product images catalog:product:attributes:cleanup Removes unused product attributes. config config:sensitive:set Set sensitive configuration values config:set Change system configuration config:show Shows configuration value for given path. If path is not specified, all saved values will be shown cron cron:install Generates and installs crontab for current user cron:remove Removes tasks from crontab cron:run Runs jobs by schedule customer customer:hash:upgrade Upgrade customer\u0026#39;s hash according to the latest algorithm deploy deploy:mode:set Set application mode. deploy:mode:show Displays current application mode. dev dev:di:info Provides information on Dependency Injection configuration for the Command. dev:profiler:disable Disable the profiler. dev:profiler:enable Enable the profiler. dev:query-log:disable Disable DB query logging dev:query-log:enable Enable DB query logging dev:source-theme:deploy Collects and publishes source files for theme. dev:template-hints:disable Disable frontend template hints. A cache flush might be required. dev:template-hints:enable Enable frontend template hints. A cache flush might be required. dev:tests:run Runs tests dev:urn-catalog:generate Generates the catalog of URNs to *.xsd mappings for the IDE to highlight xml. dev:xml:convert Converts XML file using XSL style sheets i18n i18n:collect-phrases Discovers phrases in the codebase i18n:pack Saves language package i18n:uninstall Uninstalls language packages import import:categories Run category importer script indexer indexer:info Shows allowed Indexers indexer:reindex Reindexes Data indexer:reset Resets indexer status to invalid indexer:set-mode Sets index mode type indexer:show-mode Shows Index Mode indexer:status Shows status of Indexer info info:adminuri Displays the Magento Admin URI info:backups:list Prints list of available backup files info:currency:list Displays the list of available currencies info:dependencies:show-framework Shows number of dependencies on Magento framework info:dependencies:show-modules Shows number of dependencies between modules info:dependencies:show-modules-circular Shows number of circular dependencies between modules info:language:list Displays the list of available language locales info:timezone:list Displays the list of available timezones maintenance maintenance:allow-ips Sets maintenance mode exempt IPs maintenance:disable Disables maintenance mode maintenance:enable Enables maintenance mode maintenance:status Displays maintenance mode status module module:disable Disables specified modules module:enable Enables specified modules module:status Displays status of modules module:uninstall Uninstalls modules installed by composer sampledata sampledata:deploy Deploy sample data modules sampledata:remove Remove all sample data packages from composer.json setup setup:backup Takes backup of Magento Application code base, media and database setup:config:set Creates or modifies the deployment configuration setup:cron:run Runs cron job scheduled for setup application setup:db-data:upgrade Installs and upgrades data in the DB setup:db-schema:upgrade Installs and upgrades the DB schema setup:db:status Checks if DB schema or data requires upgrade setup:di:compile Generates DI configuration and all missing classes that can be auto-generated setup:install Installs the Magento application setup:performance:generate-fixtures Generates fixtures setup:rollback Rolls back Magento Application codebase, media and database setup:static-content:deploy Deploys static view files setup:store-config:set Installs the store configuration. Deprecated since 2.2.0. Use config:set instead setup:uninstall Uninstalls the Magento application setup:upgrade Upgrades the Magento application, DB data, and schema store store:list Displays the list of stores store:website:list Displays the list of websites theme theme:uninstall Uninstalls theme varnish varnish:vcl:generate Generates Varnish VCL and echos it to the command line ","permalink":"https://tutes.in/magento-2-all-cli-commands/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e[~/www]# php bin/magento list\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eMagento CLI version 2.2.4\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eUsage:\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  command [options] [arguments]\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eOptions:\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  -h, --help            Display this help message\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  -q, --quiet           Do not output any message\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  -V, --version         Display this application version\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      --ansi            Force ANSI output\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e      --no-ansi         Disable ANSI output\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  -n, --no-interaction  Do not ask any interactive question\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eAvailable commands:\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  help                                     Displays help for a command\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  list                                     Lists commands\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e admin\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  admin:user:create                        Creates an administrator\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  admin:user:unlock                        Unlock Admin Account\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e app\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  app:config:dump                          Create dump of application\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  app:config:import                        Import data from shared configuration files to appropriate data storage\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e cache\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  cache:clean                              Cleans cache type(s)\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  cache:disable                            Disables cache type(s)\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  cache:enable                             Enables cache type(s)\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  cache:flush                              Flushes cache storage used by cache type(s)\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  cache:status                             Checks cache status\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e catalog\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  catalog:images:resize                    Creates resized product images\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  catalog:product:attributes:cleanup       Removes unused product attributes.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e config\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  config:sensitive:set                     Set sensitive configuration values\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  config:set                               Change system configuration\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  config:show                              Shows configuration value for given path. If path is not specified, all saved values will be shown\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e cron\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  cron:install                             Generates and installs crontab for current user\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  cron:remove                              Removes tasks from crontab\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  cron:run                                 Runs jobs by schedule\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e customer\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  customer:hash:upgrade                    Upgrade customer\u0026#39;s hash according to the latest algorithm\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e deploy\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  deploy:mode:set                          Set application mode.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  deploy:mode:show                         Displays current application mode.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e dev\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  dev:di:info                              Provides information on Dependency Injection configuration for the Command.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  dev:profiler:disable                     Disable the profiler.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  dev:profiler:enable                      Enable the profiler.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  dev:query-log:disable                    Disable DB query logging\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  dev:query-log:enable                     Enable DB query logging\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  dev:source-theme:deploy                  Collects and publishes source files for theme.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  dev:template-hints:disable               Disable frontend template hints. A cache flush might be required.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  dev:template-hints:enable                Enable frontend template hints. A cache flush might be required.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  dev:tests:run                            Runs tests\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  dev:urn-catalog:generate                 Generates the catalog of URNs to *.xsd mappings for the IDE to highlight xml.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  dev:xml:convert                          Converts XML file using XSL style sheets\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e i18n\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  i18n:collect-phrases                     Discovers phrases in the codebase\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  i18n:pack                                Saves language package\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  i18n:uninstall                           Uninstalls language packages\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e import\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  import:categories                        Run category importer script\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e indexer\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  indexer:info                             Shows allowed Indexers\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  indexer:reindex                          Reindexes Data\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  indexer:reset                            Resets indexer status to invalid\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  indexer:set-mode                         Sets index mode type\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  indexer:show-mode                        Shows Index Mode\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  indexer:status                           Shows status of Indexer\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e info\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  info:adminuri                            Displays the Magento Admin URI\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  info:backups:list                        Prints list of available backup files\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  info:currency:list                       Displays the list of available currencies\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  info:dependencies:show-framework         Shows number of dependencies on Magento framework\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  info:dependencies:show-modules           Shows number of dependencies between modules\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  info:dependencies:show-modules-circular  Shows number of circular dependencies between modules\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  info:language:list                       Displays the list of available language locales\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  info:timezone:list                       Displays the list of available timezones\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e maintenance\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  maintenance:allow-ips                    Sets maintenance mode exempt IPs\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  maintenance:disable                      Disables maintenance mode\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  maintenance:enable                       Enables maintenance mode\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  maintenance:status                       Displays maintenance mode status\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e module\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  module:disable                           Disables specified modules\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  module:enable                            Enables specified modules\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  module:status                            Displays status of modules\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  module:uninstall                         Uninstalls modules installed by composer\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e sampledata\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  sampledata:deploy                        Deploy sample data modules\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  sampledata:remove                        Remove all sample data packages from composer.json\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e setup\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  setup:backup                             Takes backup of Magento Application code base, media and database\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  setup:config:set                         Creates or modifies the deployment configuration\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  setup:cron:run                           Runs cron job scheduled for setup application\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  setup:db-data:upgrade                    Installs and upgrades data in the DB\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  setup:db-schema:upgrade                  Installs and upgrades the DB schema\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  setup:db:status                          Checks if DB schema or data requires upgrade\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  setup:di:compile                         Generates DI configuration and all missing classes that can be auto-generated\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  setup:install                            Installs the Magento application\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  setup:performance:generate-fixtures      Generates fixtures\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  setup:rollback                           Rolls back Magento Application codebase, media and database\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  setup:static-content:deploy              Deploys static view files\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  setup:store-config:set                   Installs the store configuration. Deprecated since 2.2.0. Use config:set instead\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  setup:uninstall                          Uninstalls the Magento application\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  setup:upgrade                            Upgrades the Magento application, DB data, and schema\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e store\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  store:list                               Displays the list of stores\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  store:website:list                       Displays the list of websites\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e theme\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  theme:uninstall                          Uninstalls theme\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e varnish\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e  varnish:vcl:generate                     Generates Varnish VCL and echos it to the command line\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Magento 2 all cli commands"},{"content":"Following are the steps to connect to cpanel through SSH:-\nGo to your cpanel and create a public private key-pair, under SSH access-\u0026gt;manage keys.\nUnder manage keys section, go on create a new key. Create a key and give key name, key password, key type and key size. 4. Click on generate keys and it will look something like this.\nGo back and under public key section , select your public key-\u0026gt;manage-\u0026gt;authorize key.\n6.After that go to private key section and click on download private key and enter the same paraphrase (password) that you’ve entered before (key password).\nAfter the keys are downloaded, open PuTTY. Go to sessions and enter username and hostname .eg username@hostname.com. Go to SSH , select SSH Protocol version 2: Under SSH, go to Auth, and select the private key downloaded and click open A terminal will pop up. Enter your key paraphrase. Done , you are now connected to your root folder via SSH. ","permalink":"https://tutes.in/how-to-connect-cpanel-through-ssh/","summary":"\u003cp\u003eFollowing are the steps to connect to cpanel through SSH:-\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eGo to your cpanel and create a public private key-pair,\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003eunder SSH access-\u0026gt;manage keys.\u003c/p\u003e\n\u003col start=\"2\"\u003e\n\u003cli\u003eUnder manage keys section, go on create a new key.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2018/07/Capture1-300x119.jpg\"\u003e\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2018/07/Capture3-300x134.jpg\"\u003e\u003c/p\u003e\n\u003col start=\"3\"\u003e\n\u003cli\u003eCreate a key and give key name, key password, key type and key size.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2018/07/Capture4-300x144.jpg\"\u003e\u003c/p\u003e\n\u003cp\u003e4.  Click on generate keys and it will look something like this.\u003c/p\u003e\n\u003cp\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2018/07/Capture5-300x144.jpg\"\u003e\u003c/p\u003e\n\u003col start=\"5\"\u003e\n\u003cli\u003eGo back and under public key  section ,\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003eselect your public key-\u0026gt;manage-\u0026gt;authorize key.\u003c/p\u003e","title":"How to connect cpanel through SSH"},{"content":"/app\nThe etc folder contains the di.xml configuration file\nThe di.xml file contains class mapping and interface preferences\nContains the design folder for themes.\n/bin\nThe directory contains the magento file or a Command Line Interface script\n/dev\nMagento 2 testing and development tools are placed in this folder.\n/lib\nThe internal and web subfolders are located here\nThe internal directory contains server-side libraries and several font files;\nThe web subfolder contains client-side libraries, jquery, modernizr, requirejs, prototype, scriptaculous\n/pub\nIt should be set as your web root on the server\nIt contains all the publicly accessible files\nindex.php controller is also contained in the folder\npub also contains the error pages that will be displayed if your site is showing a 404 or 503 or another report page\nImage uploads and imports will appear somewhere within pub/media.\n/var\ncaches and generated classes are all located in the folder\nthe var folder includes cache, composer_home, generation, log, di, view_preprocessed, page_cache files\n/vendor\nthe folder includes various packages that have been defined under composer.json\nMarketplace modules and the core modules are all under vendor.\nIf you download something from the new Magento Marketplace.\n","permalink":"https://tutes.in/magento-file-directory/","summary":"\u003cp\u003e/app\u003cbr\u003e\nThe etc folder contains the di.xml configuration file\u003cbr\u003e\nThe di.xml file contains class mapping and interface preferences\u003cbr\u003e\nContains the design folder for themes.\u003c/p\u003e\n\u003cp\u003e/bin\u003cbr\u003e\nThe directory contains the magento file or a Command Line Interface script\u003c/p\u003e\n\u003cp\u003e/dev\u003cbr\u003e\nMagento 2 testing and development tools are placed in this folder.\u003c/p\u003e\n\u003cp\u003e/lib\u003cbr\u003e\nThe internal and web subfolders are located here\u003cbr\u003e\nThe internal directory contains server-side libraries and several font files;\u003cbr\u003e\nThe web subfolder contains client-side libraries, jquery, modernizr, requirejs, prototype, scriptaculous\u003c/p\u003e","title":"Magento File Directory"},{"content":" tar– to create archive files(.zip, .tar) Syntax:\ntar [options] [archive-file] [file or directory to be archived]\nOptions:\n-c : Creates Archive\n-x : Extract the archive\n-f : creates archive with given filename\n-t : displays or lists files in archived file\n-u : archives and adds to an existing archive file\n-v : Displays Verbose Information\n-A : Concatenates the archive files\n-z : zip, tells tar command that create tar file using gzip\n-j : filter archive tar file using tbzip\n-W : Verify a archive file\n-r : update or add file or directory in already existed .tar file\ncurl – Transfers data from or to a server, using one of the protocols: HTTP, HTTPS, FTP, FTPS, SCP, SFTP, TFTP, DICT, TELNET, LDAP or FILE. Syntax:\ncurl [options] [URL…]\nservice– The service command is used to run a System V init script. Usually all system V init scripts are stored in /etc/init.d directory and service command can be used to start, stop, and restart the daemons and other services under Linux. Syntax:\nservice SCRIPT-Name COMMAND\nThe COMMAND can be at least start, stop, status, and restart.\n4. netstat– The netstat command is used to display very detailed information about how your computer is communicating with other computers or network devices.\nwget– Wget is the non-interactive network downloader which is used to download files from the server even when the user has not logged on the system and it can work in background without hindering the current process. Syntax:\nwget [option] [URL]\ngrep– The grep filter searches a file for a particular pattern of characters, and displays all lines that contain that pattern. Syntax:\ngrep [options] pattern [files]\nOptions Description\n-c : This prints only a count of the lines that match a pattern\n-h : Display the matched lines, but do not display the filenames.\n-i : Ignores, case for matching\n-l : Displays list of a filenames only.\n-n : Display the matched lines and their line numbers.\n-v : This prints out all the lines that do not matches the pattern\n-e exp : Specifies expression with this option. Can use multiple times.\n-f file : Takes patterns from file, one per line.\n-E : Treats pattern as an extended regular expression (ERE)\n-w : Match whole word\n-o : Print only the matched parts of a matching line,\nwith each such part on a separate output line.\nls – list directory contents\nSyntax:\nls [OPTION]… [FILE]… ls -l list with long format, show permissions\nls -la list long format including hidden files\ncat – Concatenate and print the content of files. Syntax:\ncat [Options] [File]…\nnano– GNU nano is a text editor for Unix-like computing systems or operating environments using a command line interface.\nvi – vi is a screen-oriented text editor originally created for the Unix operating system.\ncp – cp stands for copy. This command is used to copy files or group of files or directory.\nSyntax:\ncp [OPTION] Source Destination\ncp [OPTION] Source Directory\ncp [OPTION] Source-1 Source-2 Source-3 Source-n Directory\nFirst and second syntax is used to copy Source file to Destination file or Directory.\nThird syntax is used to copy multiple Sources(files) to Directory.\nmv– mv stands for move. mv is used to move one or more files or directories from one place to another in file system Syntax:\nmv [Option] source destination\nsudo– sudo (“superuser do”, or “switch user do”) allows a user with proper permissions to execute a command as another user, such as the superuser.\nrm -rm stands for remove here. rm command is used to remove objects such as files, directories, symbolic links and so on from the file system\nSyntax:\nrm [OPTION]… FILE…\nmkdir– make directories\nSyntax-\nmkdir [OPTION]… DIRECTORY…\n16. ln -The ln command is a standard Unix command utility used to create a hard link or a symbolic link (symlink) to an existing file. The use of a hard link allows multiple filenames to be associated with the same file since a hard link points to the inode of a given file, the data of which is stored on disk.\nSyntax:\nln [OPTIONS] TARGET… LINK|DIRECTORY\n","permalink":"https://tutes.in/linux-commands-for-ssh/","summary":"\u003col\u003e\n\u003cli\u003e\u003cstrong\u003etar\u003c/strong\u003e– to create archive files(.zip, .tar)\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003eSyntax:\u003cbr\u003e\ntar [options] [archive-file] [file or directory to be archived]\u003c/p\u003e\n\u003cp\u003eOptions:\u003cbr\u003e\n-c : Creates Archive\u003cbr\u003e\n-x : Extract the archive\u003cbr\u003e\n-f : creates archive with given filename\u003cbr\u003e\n-t : displays or lists files in archived file\u003cbr\u003e\n-u : archives and adds to an existing archive file\u003cbr\u003e\n-v : Displays Verbose Information\u003cbr\u003e\n-A : Concatenates the archive files\u003cbr\u003e\n-z : zip, tells tar command that create tar file using gzip\u003cbr\u003e\n-j : filter archive tar file using tbzip\u003cbr\u003e\n-W : Verify a archive file\u003cbr\u003e\n-r : update or add file or directory in already existed .tar file\u003c/p\u003e","title":"Linux commands for SSH"},{"content":"put this in your htaccess file:\nRewriteCond %{HTTP_HOST} !^www\\.(.*) RewriteRule (.*) https://www.%{HTTP_HOST}/$1 [R=301,L] RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] ","permalink":"https://tutes.in/htaccess-redirect-from-http-to-https-and-from-non-www-to-www-redirect-make-site-permanently-ssl-secured/","summary":"\u003cp\u003eput this in your htaccess file:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRewriteCond %{HTTP_HOST} !^www\\.(.*)\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRewriteRule (.*) https://www.%{HTTP_HOST}/$1 [R=301,L]\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRewriteCond %{HTTPS} !=on\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":".htaccess redirect from http to https and from non-www to www redirect – Make site permanently SSL secured"},{"content":"yum -y update command failing Command line will show messages like\nxxx is outdated and v abc will be installed\nbut at the end it shows duplicate binary, please remove duplicate first.\nProcess\nBackup first\nIntegrity Check\nFind Problems\nIdentify duplicates\nClean duplicates\nre build conf cache\nupdate command\nremove backup file .prev if successfully solved\n\\cp -r /var/lib/rpm /var/lib/rpm.prev yum-complete-transaction package-cleanup --problems package-cleanup --dupes package-cleanup --cleandupes yum clean all rpm --rebuilddb yum update # if all went OK run \u0026#39;rm -rf /var/lib/rpm.prev\u0026#39; Other possible solution\n1. Update DNS to google dns 8.8.8.8 and 8.8.4.4 or freenom dns 80.80.80.80 and 80.80.81.81\nsystem-config-network 2. Restart internet while maintaining SSH session (you wont be logged out)\n/etc/init.d/network restart ","permalink":"https://tutes.in/rpm-repo-not-found-connection-errors-on-centos-redhat-duplicate-problems/","summary":"\u003ch2 id=\"yum--y-update-command-failing\"\u003eyum -y update command failing\u003c/h2\u003e\n\u003cp\u003eCommand line will show messages like\u003c/p\u003e\n\u003cp\u003exxx is outdated and v abc will be installed\u003cbr\u003e\nbut at the end it shows duplicate binary, please remove duplicate first.\u003c/p\u003e\n\u003cp\u003eProcess\u003c/p\u003e\n\u003cp\u003eBackup first\u003cbr\u003e\nIntegrity Check\u003cbr\u003e\nFind Problems\u003cbr\u003e\nIdentify duplicates\u003cbr\u003e\nClean duplicates\u003cbr\u003e\nre build conf cache\u003cbr\u003e\nupdate command\u003cbr\u003e\nremove backup file .prev if successfully solved\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"se\"\u003e\\c\u003c/span\u003ep -r /var/lib/rpm /var/lib/rpm.prev\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eyum-complete-transaction\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003epackage-cleanup --problems\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003epackage-cleanup --dupes\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003epackage-cleanup --cleandupes\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eyum clean all\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003erpm --rebuilddb\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eyum update\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e# if all went OK run \u0026#39;rm -rf /var/lib/rpm.prev\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003e\u003cstrong\u003eOther possible solution\u003c/strong\u003e\u003c/p\u003e","title":"RPM repo not found connection errors on Centos Redhat duplicate problems"},{"content":"Centos as test server\nCurrent situation – you are locked out, cant use WHM or SSH or anything else to login.\nYou may or may not remember the password. In any case you can reproduce the following steps to unblock yourself.\nUse any other linux OS cd which can run live. I prefer FINNIX iso for such cases\\ Mount your main disk. mount /dev/vda1 /mnt Reset password if needed to chroot /mnt passwd Enter new password for root and confirm\\ Reboot and done. In case you have been locked out due to WHM cpanel:\\\nUse any other linux OS cd which can run live. I prefer FINNIX iso for such cases\\ Mount your main disk. mount /dev/vda1 /mnt Stop cphulk service for brute force protection chroot /mnt /usr/local/cpanel/etc/init/stopcphulkd chroot /mnt /usr/local/cpanel/bin/cphulk_pam_ctl --disable Disable the lock for cphulk so that it does not start automatically after restart chroot /mnt rm /var/cpanel/hulkd/enabled Reboot and done METHOD 2 – in case you are blocked at firewall level In case you have been locked out due to WHM cpanel and just want to whitelist yourself:\\\nUse any other linux OS cd which can run live. I prefer FINNIX iso for such cases\\ Mount your main disk. mount /dev/vda1 /mnt Stop cphulk service for brute force protection chroot /mnt /usr/local/cpanel/etc/init/stopcphulkd chroot /mnt /usr/local/cpanel/bin/cphulk_pam_ctl --disable Disable the lock for cphulk so that it does not start automatically after restart chroot /mnt /scripts/cphulkdwhitelist XXX.82.6.156 Remove yourself from firwall chroot /mnt whmapi1 flush_cphulk_login_history_for_ips ip=XXX.82.6.156 Reboot and done —\nRemove lockouts\nIf the cPHulk service locks you out of your cPanel account, the /scripts2/doautofixer?autofix=disable_cphulkd script in WHM can disable cPHulk and allow you to log in.\nFor example, log in to WHM and navigate to https://www.example.com:2087/scripts2/doautofixer?autofix=disable_cphulkd, where www.example.com represents your server’s hostname.\nIf you enabled the Block IP addresses at the firewall level if they trigger brute force protection or the Block IP addresses at the firewall level if they trigger a one-day block options in WHM’s cPHulk Brute Force Protection interface (WHM \u0026gt;\u0026gt; Home \u0026gt;\u0026gt; Security Center \u0026gt;\u0026gt; cPHulk Brute Force Protection), remove the iptables rule that the system created. To do this, run the following command:\niptables -F cphulk \u0026amp;\u0026amp; mysql -e \u0026#34;Delete from cphulkd.login_track;\u0026#34; ","permalink":"https://tutes.in/linux-rescue-disk-how-to-reset-root-password-and-unblock-yourself-if-locked-out/","summary":"\u003cp\u003eCentos as test server\u003c/p\u003e\n\u003cp\u003eCurrent situation – you are locked out, cant use WHM or SSH or anything else to login.\u003cbr\u003e\nYou may or may not remember the password. In any case you can reproduce the following steps to unblock yourself.\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eUse any other linux OS cd which can run live. I prefer FINNIX iso for such cases\\\u003c/li\u003e\n\u003cli\u003eMount your main disk.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003emount /dev/vda1 /mnt\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003col start=\"3\"\u003e\n\u003cli\u003eReset password if needed to\u003c/li\u003e\n\u003c/ol\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003echroot /mnt passwd\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003col start=\"4\"\u003e\n\u003cli\u003eEnter new password for root and confirm\\\u003c/li\u003e\n\u003cli\u003eReboot and done.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003eIn case you have been locked out due to WHM cpanel:\\\u003c/p\u003e","title":"Linux – Rescue disk how to reset root password and unblock yourself if locked out"},{"content":"To enable hastle free validation, use raket library.\nFirst install composer and then run “composer require rakit/validation” in your project directory.\nEdit the names according to your input field names.\nYou can also create your own validation file.\nFor further reference, visit\nhttps://github.com/rakit/validation\n","permalink":"https://tutes.in/rakit-library-for-php-validation/","summary":"\u003cp\u003eTo enable hastle free validation, use raket library.\u003c/p\u003e\n\u003cp\u003eFirst install composer and then run “composer require rakit/validation” in your project directory.\u003c/p\u003e\n\u003cp\u003eEdit the names according to your input field names.\u003c/p\u003e\n\u003cp\u003eYou can also create your own validation file.\u003c/p\u003e\n\u003cp\u003eFor further reference, visit\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://github.com/rakit/validation\"\u003ehttps://github.com/rakit/validation\u003c/a\u003e\u003c/p\u003e","title":"Rakit library for PHP validation"},{"content":"Following are the steps to complete install Magento error-free:-\nUncomment the files which are required by Magento in php.ini and restart the server If installation error occurs, set memory_limit = 786M if still error occurs, uninstall the db and make it again after successfull install, go to (root_directory)app/etc/di.xml and change “Symlink” to “Copy” in developerMaterialization section. go to cmd , root directory and type :- “/bin/magento setup:static-content:deploy refresh the page. done. ","permalink":"https://tutes.in/installing-magento-common-issues/","summary":"\u003cp\u003eFollowing are the steps to complete install Magento error-free:-\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003eUncomment the files which are required by Magento in php.ini and restart the server\u003c/li\u003e\n\u003cli\u003eIf installation error occurs, set memory_limit = 786M\u003c/li\u003e\n\u003cli\u003eif still error occurs, uninstall the db and make it again\u003c/li\u003e\n\u003cli\u003eafter successfull install, go to (root_directory)app/etc/di.xml and change “Symlink” to “Copy” in developerMaterialization section.\u003c/li\u003e\n\u003cli\u003ego to cmd , root directory and type :- “\u003cem\u003e/bin/magento setup:static-content:deploy\u003c/em\u003e\u003c/li\u003e\n\u003cli\u003erefresh the page. done.\u003c/li\u003e\n\u003c/ul\u003e","title":"Installing Magento Common Issues"},{"content":"grep -rnwl \u0026#39;./\u0026#39; -e \u0026#39;eval\u0026#39; grep -rnwl \u0026#39;./\u0026#39; -e \u0026#39;]};}\u0026#39; grep -rnwl \u0026#39;./\u0026#39; -e \u0026#39;}[\u0026#34;\u0026#39; grep --include=*\\.php -rnwl \u0026#39;./\u0026#39; -e \u0026#39;${${\u0026#39; grep -rnwl \u0026#39;./\u0026#39; -e \u0026#39;57h\u0026#39; grep -rnwl \u0026#39;./\u0026#39; -e \u0026#39;\\143o\u0026#39; grep -rnwl \u0026#39;./\u0026#39; -e \u0026#39;__O\u0026#39; grep -rnwl \u0026#39;./\u0026#39; -e \u0026#39;__0\u0026#39; grep -rnw \u0026#39;./\u0026#39; -e \u0026#39;057home\u0026#39; grep -rlnw \u0026#39;./\u0026#39; -e \u0026#39;057home\u0026#39; find -name \u0026#34;*.ico\u0026#34; grep --exclude=\\*.scss -rnwl \u0026#39;./\u0026#39; -e \u0026#39;@include\u0026#39; grep --exclude=\\*.{scss,css,map,js} -rnwl \u0026#39;./\u0026#39; -e \u0026#39;@include\u0026#39; grep -rlnw \u0026#39;./\u0026#39; -e \u0026#39;057ho\u0026#39; grep --exclude=\\*.{svg,jpg,png,jpeg} -rlnw \u0026#39;./\u0026#39; -e \u0026#39;057\u0026#39; grep -rlnw \u0026#39;./\u0026#39; -e \u0026#39;057h\u0026#39; grep --include=\\*.php -rnwl \u0026#39;./\u0026#39; -e \u0026#39;@include\u0026#39; grep -rlnw \u0026#39;./\u0026#39; -e \u0026#39;057hom\u0026#39; grep -rlnw \u0026#39;./\u0026#39; -e \u0026#39;7hom\u0026#39; grep -rnwl \u0026#39;./\u0026#39; -e \u0026#39;bgeteam\u0026#39; nano grep -rnwl \u0026#39;./\u0026#39; -e \u0026#39;abcd\u0026#39; grep -rnwl \u0026#39;./\u0026#39; -e \u0026#39;abcd\u0026#39; grep -rnwl \u0026#39;./\u0026#39; -e \u0026#39;{eval\u0026#39; ","permalink":"https://tutes.in/php-malware-important-regex-to-bust-infected-website/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003egrep -rnwl \u003cspan class=\"s1\"\u003e\u0026#39;./\u0026#39;\u003c/span\u003e -e \u003cspan class=\"s1\"\u003e\u0026#39;eval\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003egrep -rnwl \u003cspan class=\"s1\"\u003e\u0026#39;./\u0026#39;\u003c/span\u003e -e \u003cspan class=\"s1\"\u003e\u0026#39;]};}\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003egrep -rnwl \u003cspan class=\"s1\"\u003e\u0026#39;./\u0026#39;\u003c/span\u003e -e \u003cspan class=\"s1\"\u003e\u0026#39;}[\u0026#34;\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003egrep --include\u003cspan class=\"o\"\u003e=\u003c/span\u003e*\u003cspan class=\"se\"\u003e\\.\u003c/span\u003ephp -rnwl \u003cspan class=\"s1\"\u003e\u0026#39;./\u0026#39;\u003c/span\u003e -e \u003cspan class=\"s1\"\u003e\u0026#39;${${\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003egrep -rnwl \u003cspan class=\"s1\"\u003e\u0026#39;./\u0026#39;\u003c/span\u003e -e \u003cspan class=\"s1\"\u003e\u0026#39;57h\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003egrep -rnwl \u003cspan class=\"s1\"\u003e\u0026#39;./\u0026#39;\u003c/span\u003e -e \u003cspan class=\"s1\"\u003e\u0026#39;\\143o\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003egrep -rnwl \u003cspan class=\"s1\"\u003e\u0026#39;./\u0026#39;\u003c/span\u003e -e \u003cspan class=\"s1\"\u003e\u0026#39;__O\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003egrep -rnwl \u003cspan class=\"s1\"\u003e\u0026#39;./\u0026#39;\u003c/span\u003e -e \u003cspan class=\"s1\"\u003e\u0026#39;__0\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003egrep -rnw \u003cspan class=\"s1\"\u003e\u0026#39;./\u0026#39;\u003c/span\u003e -e \u003cspan class=\"s1\"\u003e\u0026#39;057home\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003egrep -rlnw \u003cspan class=\"s1\"\u003e\u0026#39;./\u0026#39;\u003c/span\u003e -e \u003cspan class=\"s1\"\u003e\u0026#39;057home\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003efind -name \u003cspan class=\"s2\"\u003e\u0026#34;*.ico\u0026#34;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003egrep --exclude\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"se\"\u003e\\*\u003c/span\u003e.scss -rnwl \u003cspan class=\"s1\"\u003e\u0026#39;./\u0026#39;\u003c/span\u003e -e \u003cspan class=\"s1\"\u003e\u0026#39;@include\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003egrep --exclude\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"se\"\u003e\\*\u003c/span\u003e.\u003cspan class=\"o\"\u003e{\u003c/span\u003escss,css,map,js\u003cspan class=\"o\"\u003e}\u003c/span\u003e -rnwl \u003cspan class=\"s1\"\u003e\u0026#39;./\u0026#39;\u003c/span\u003e -e \u003cspan class=\"s1\"\u003e\u0026#39;@include\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003egrep -rlnw \u003cspan class=\"s1\"\u003e\u0026#39;./\u0026#39;\u003c/span\u003e -e \u003cspan class=\"s1\"\u003e\u0026#39;057ho\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003egrep --exclude\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"se\"\u003e\\*\u003c/span\u003e.\u003cspan class=\"o\"\u003e{\u003c/span\u003esvg,jpg,png,jpeg\u003cspan class=\"o\"\u003e}\u003c/span\u003e -rlnw \u003cspan class=\"s1\"\u003e\u0026#39;./\u0026#39;\u003c/span\u003e -e \u003cspan class=\"s1\"\u003e\u0026#39;057\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003egrep -rlnw \u003cspan class=\"s1\"\u003e\u0026#39;./\u0026#39;\u003c/span\u003e -e \u003cspan class=\"s1\"\u003e\u0026#39;057h\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003egrep --include\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"se\"\u003e\\*\u003c/span\u003e.php -rnwl \u003cspan class=\"s1\"\u003e\u0026#39;./\u0026#39;\u003c/span\u003e -e \u003cspan class=\"s1\"\u003e\u0026#39;@include\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003egrep -rlnw \u003cspan class=\"s1\"\u003e\u0026#39;./\u0026#39;\u003c/span\u003e -e \u003cspan class=\"s1\"\u003e\u0026#39;057hom\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003egrep -rlnw \u003cspan class=\"s1\"\u003e\u0026#39;./\u0026#39;\u003c/span\u003e -e \u003cspan class=\"s1\"\u003e\u0026#39;7hom\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003egrep -rnwl \u003cspan class=\"s1\"\u003e\u0026#39;./\u0026#39;\u003c/span\u003e -e \u003cspan class=\"s1\"\u003e\u0026#39;bgeteam\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003enano grep -rnwl \u003cspan class=\"s1\"\u003e\u0026#39;./\u0026#39;\u003c/span\u003e -e \u003cspan class=\"s1\"\u003e\u0026#39;abcd\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003egrep -rnwl \u003cspan class=\"s1\"\u003e\u0026#39;./\u0026#39;\u003c/span\u003e -e \u003cspan class=\"s1\"\u003e\u0026#39;abcd\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003egrep -rnwl \u003cspan class=\"s1\"\u003e\u0026#39;./\u0026#39;\u003c/span\u003e -e \u003cspan class=\"s1\"\u003e\u0026#39;{eval\u0026#39;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"PHP Malware – Important regex to bust infected website"},{"content":".collection-grid-item__link:before{ -ms-transition:all 0.5s ease-in-out; -webkit-transition:all 0.5s ease-in-out; transition:all 0.5s ease-in-out; content:\u0026#34;\u0026#34;; position:absolute; top:-110%; left:-210%; width:200%; height:200%; opacity:0; filter:alpha(opacity=0); -webkit-transform:rotate(30deg); -ms-transform:rotate(30deg); -moz-transform:rotate(30deg); -o-transform:rotate(30deg); transform: rotate(44deg); background:rgba(255,255,255,0.1); background:linear-gradient(to right, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.1) 77%, rgba(255,255,255,0.5) 92%, rgba(255,255,255,0) 100%); } ","permalink":"https://tutes.in/light-flick-effect-on-image-hover-css/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-css\" data-lang=\"css\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nc\"\u003ecollection-grid-item__link\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"nd\"\u003ebefore\u003c/span\u003e\u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kp\"\u003e-ms-\u003c/span\u003e\u003cspan class=\"k\"\u003etransition\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"kc\"\u003eall\u003c/span\u003e \u003cspan class=\"mf\"\u003e0.5\u003c/span\u003e\u003cspan class=\"kt\"\u003es\u003c/span\u003e \u003cspan class=\"kc\"\u003eease-in-out\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kp\"\u003e-webkit-\u003c/span\u003e\u003cspan class=\"k\"\u003etransition\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"kc\"\u003eall\u003c/span\u003e \u003cspan class=\"mf\"\u003e0.5\u003c/span\u003e\u003cspan class=\"kt\"\u003es\u003c/span\u003e \u003cspan class=\"kc\"\u003eease-in-out\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003etransition\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"kc\"\u003eall\u003c/span\u003e \u003cspan class=\"mf\"\u003e0.5\u003c/span\u003e\u003cspan class=\"kt\"\u003es\u003c/span\u003e \u003cspan class=\"kc\"\u003eease-in-out\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003econtent\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003eposition\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"kc\"\u003eabsolute\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003etop\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"mi\"\u003e-110\u003c/span\u003e\u003cspan class=\"kt\"\u003e%\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003eleft\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"mi\"\u003e-210\u003c/span\u003e\u003cspan class=\"kt\"\u003e%\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003ewidth\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"mi\"\u003e200\u003c/span\u003e\u003cspan class=\"kt\"\u003e%\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003eheight\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"mi\"\u003e200\u003c/span\u003e\u003cspan class=\"kt\"\u003e%\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003eopacity\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003efilter\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"nf\"\u003ealpha\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"n\"\u003eopacity\u003c/span\u003e\u003cspan class=\"err\"\u003e=\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kp\"\u003e-webkit-\u003c/span\u003e\u003cspan class=\"k\"\u003etransform\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"nb\"\u003erotate\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e30\u003c/span\u003e\u003cspan class=\"kt\"\u003edeg\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kp\"\u003e-ms-\u003c/span\u003e\u003cspan class=\"k\"\u003etransform\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"nb\"\u003erotate\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e30\u003c/span\u003e\u003cspan class=\"kt\"\u003edeg\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kp\"\u003e-moz-\u003c/span\u003e\u003cspan class=\"k\"\u003etransform\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"nb\"\u003erotate\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e30\u003c/span\u003e\u003cspan class=\"kt\"\u003edeg\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"kp\"\u003e-o-\u003c/span\u003e\u003cspan class=\"k\"\u003etransform\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"nb\"\u003erotate\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e30\u003c/span\u003e\u003cspan class=\"kt\"\u003edeg\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003etransform\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e \u003cspan class=\"nb\"\u003erotate\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e44\u003c/span\u003e\u003cspan class=\"kt\"\u003edeg\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003ebackground\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"nb\"\u003ergba\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e255\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e255\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e255\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mf\"\u003e0.1\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003ebackground\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"nb\"\u003elinear-gradient\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"kc\"\u003eto\u003c/span\u003e \u003cspan class=\"kc\"\u003eright\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nb\"\u003ergba\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e255\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e255\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e255\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mf\"\u003e0.1\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"kt\"\u003e%\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nb\"\u003ergba\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e255\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e255\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e255\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mf\"\u003e0.1\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"mi\"\u003e77\u003c/span\u003e\u003cspan class=\"kt\"\u003e%\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nb\"\u003ergba\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e255\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e255\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e255\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mf\"\u003e0.5\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"mi\"\u003e92\u003c/span\u003e\u003cspan class=\"kt\"\u003e%\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nb\"\u003ergba\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e255\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e255\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e255\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"mi\"\u003e100\u003c/span\u003e\u003cspan class=\"kt\"\u003e%\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Light flick effect on image hover – CSS"},{"content":"WordPress is a free and open-source content management system (CMS) based on PHP and MySQL.Features include a plugin architecture and a template system.\nFollow these steps to install WordPress:\nDownload WordPress Download WordPress from this link: https://wordpress.org/download/\nCreate Database Create an empty database for WordPress and specify it’s username and password.\nSet up Wizard Step 1: Upload the downloaded compressed file on your website root directory and extract it. Step 2: Open the url of your website and install WordPress. Step 3: Specify the Database Name, Username, Password and Database Host. Step 4: A confirmation message will appear after the database settings are validated. Click on ‘Run the Installation’ button. Step 5: Provide the administrative information needed for your WordPress website and Install WordPress. Step 6: You have successfully installed WordPress and the final step is to log in, for which you will use the username and password entered at step 5. ","permalink":"https://tutes.in/how-to-install-wordpress-on-cpanel/","summary":"\u003cp\u003eWordPress is a free and open-source content management system (CMS) based on PHP and MySQL.Features include a plugin architecture and a template system.\u003c/p\u003e\n\u003cp\u003eFollow these steps to install WordPress:\u003c/p\u003e\n\u003ch4 id=\"download-wordpress\"\u003eDownload WordPress\u003c/h4\u003e\n\u003cp\u003eDownload WordPress from this link:  \u003ca href=\"https://wordpress.org/download/\"\u003ehttps://wordpress.org/download/\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"/wp-content/uploads/2018/07/step1.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2018/07/step1-1024x556.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003ch4\u003e\u003c/h4\u003e\n\u003ch4 id=\"create-database\"\u003eCreate Database\u003c/h4\u003e\n\u003cp\u003eCreate an empty database for WordPress and specify it’s username and password.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"/wp-content/uploads/2018/07/stepp1.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2018/07/stepp1-1024x390.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"/wp-content/uploads/2018/07/stepp2.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2018/07/stepp2-1024x506.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003ch4 id=\"set-up-wizard\"\u003eSet up Wizard\u003c/h4\u003e\n\u003cul\u003e\n\u003cli\u003eStep 1: Upload the downloaded compressed file on your website root directory and extract it.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003e\u003ca href=\"/wp-content/uploads/2018/07/step2.jpg\"\u003e\u003cimg loading=\"lazy\" src=\"/wp-content/uploads/2018/07/step2-1024x508.jpg\"\u003e\u003c/a\u003e\u003c/p\u003e","title":"How to install wordpress on cPanel"},{"content":"First one on list is the infamous 8 characters in that particular order\nrm -rf / Sometimes we just want to remove the current directory for which the command is rm -rf ./ but you keyboard skips the dot and you end up in a deadzone.\nSecond one would be:\nifdown eth0 wow!!, you just disconnected your server from internet.\n","permalink":"https://tutes.in/commands-not-to-be-used-on-terminal-as-a-root-user/","summary":"\u003cp\u003eFirst one on list is the infamous 8 characters in that particular order\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003erm -rf /\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eSometimes we just want to remove the current directory for which the command is \u003ccode\u003erm -rf ./\u003c/code\u003e but you keyboard skips the dot and you end up in a deadzone.\u003c/p\u003e\n\u003cp\u003eSecond one would be:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eifdown eth0\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003ewow!!, you just disconnected your server from internet.\u003c/p\u003e","title":"Commands not to be used on terminal as a root user"},{"content":"On 15th Year Anniversary of GOogle Adsense and their partnerships with Publishers, google published a youtube video briefly explaining all the basic keywords related to Adsense.\nTranscript:\n15 words to sum up 15 years?\nThat\u0026rsquo;s easy! Okay, let\u0026rsquo;s go.\nContent\nContent is at the heart of the web.\nAnd publishers?\nYou power that web. Without you that place would be quite empty.\nAds? Ads bring the revenue that helps to fund it all while helping you reach your…\nGoals! Goals like growing your business, doing something you love and sharing it with the world creating…\nMemories? So many good memories!\nYou\u0026rsquo;ve told us that Adsense has funded your weddings,\nhelped you buy your homes or hire new teams. We feel part of your…\nCommunity. A community that grows with you recommending us. Thank you!\nBeginnings. It\u0026rsquo;s been 15 years since we ran our first ads, they were text only back then.\nToday? Today Adsense is truly global!\nUrdu, Japanese or French – We speak 45 languages. And counting.\nChange…is constant, especially on the web.\nWe\u0026rsquo;ve been evolving with you and your audience needs for the past 15 years,\nto help you provide the best possible…\n…Experiences. As the look and feel of websites have improved over the years\nwe built native ads to complement them,\nwhile always giving you the…\nControl. To decide what type of ads will show on your site.\nPlatforms? All of them. Mobile, Video and whatever will come next – we have you covered.\nTime. Saved. With smart automated ad placements,\nkeeping things simple for you so that you can focus on creating great content.\nSimplicity. Always. Our team\u0026rsquo;s goal: making it easier to grow your business.\nOkay and last but not least.\nHappy Birthday! Absolutely. 15 years is a milestone we should all celebrate.\nBut the web doesn\u0026rsquo;t wait so time to get back to work.\nCan I finish my cake first?\nWatch the video here\\\n","permalink":"https://tutes.in/basics-about-advertisements-and-google-adsense/","summary":"\u003cp\u003eOn 15th Year Anniversary of GOogle Adsense and their partnerships with Publishers, google published a youtube video briefly explaining all the basic keywords related to Adsense.\u003c/p\u003e\n\u003cp\u003eTranscript:\u003cbr\u003e\n15 words to sum up 15 years?\u003cbr\u003e\nThat\u0026rsquo;s easy! Okay, let\u0026rsquo;s go.\u003cbr\u003e\nContent\u003cbr\u003e\nContent is at the heart of the web.\u003cbr\u003e\nAnd publishers?\u003cbr\u003e\nYou power that web. Without you that place would be quite empty.\u003cbr\u003e\nAds? Ads bring the revenue that helps to fund it all while helping you reach your…\u003cbr\u003e\nGoals! Goals like growing your business, doing something you love and sharing it with the world creating…\u003cbr\u003e\nMemories? So many good memories!\u003cbr\u003e\nYou\u0026rsquo;ve told us that Adsense has funded your weddings,\u003cbr\u003e\nhelped you buy your homes or hire new teams. We feel part of your…\u003cbr\u003e\nCommunity. A community that grows with you recommending us. Thank you!\u003cbr\u003e\nBeginnings. It\u0026rsquo;s been 15 years since we ran our first ads, they were text only back then.\u003cbr\u003e\nToday? Today Adsense is truly global!\u003cbr\u003e\nUrdu, Japanese or French – We speak 45 languages. And counting.\u003cbr\u003e\nChange…is constant, especially on the web.\u003cbr\u003e\nWe\u0026rsquo;ve been evolving with you and your audience needs for the past 15 years,\u003cbr\u003e\nto help you provide the best possible…\u003cbr\u003e\n…Experiences. As the look and feel of websites have improved over the years\u003cbr\u003e\nwe built native ads to complement them,\u003cbr\u003e\nwhile always giving you the…\u003cbr\u003e\nControl. To decide what type of ads will show on your site.\u003cbr\u003e\nPlatforms? All of them. Mobile, Video and whatever will come next – we have you covered.\u003cbr\u003e\nTime. Saved. With smart automated ad placements,\u003cbr\u003e\nkeeping things simple for you so that you can focus on creating great content.\u003cbr\u003e\nSimplicity. Always. Our team\u0026rsquo;s goal: making it easier to grow your business.\u003cbr\u003e\nOkay and last but not least.\u003cbr\u003e\nHappy Birthday! Absolutely. 15 years is a milestone we should all celebrate.\u003cbr\u003e\nBut the web doesn\u0026rsquo;t wait so time to get back to work.\u003cbr\u003e\nCan I finish my cake first?\u003c/p\u003e","title":"Basics about advertisements and Google Adsense"},{"content":"If you are using Windows 10 or have seen the OS in any computer, you might be aware of the new Home aka Quick Access View introduced in Windows 10 File Explorer (previously known as Windows Explorer or My Computer).\nThis new Quick Access or Home view is the default page of File Explorer in Windows 10 and whenever you open File Explorer using its shortcut icon or WIN+E hotkey, this new view is shown in File Explorer. It shows frequently used folders and recently used files list in File Explorer as shown in following screenshot:\nAlthough Microsoft designed this new view for users convenience but most of the Windows 10 users don’t like this default view. They find it annoying as they have to click on This PC link in left-side pane to access disk drives each time they open File Explorer. Also sometimes users don’t want to show frequently accessed folders or recently opened files in File Explorer due to privacy issues.\nIn older preview builds of Windows 10, Microsoft didn’t provide any way to disable/remove this new Quick Access or Home view in File Explorer and users had to use Registry tweaks to get rid of this view such as deleting items keys under HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionexplorerHomeFolderNameSpaceDelegateFolders key in Registry Editor using similar instructions given in following exclusive AskVG tutorial:\nHow to Remove Unwanted Items from My Computer in Windows?\nBut since the release of build 9926 of Windows 10, Microsoft has made users life easier by providing built-in options to customize Quick Access or Home view or completely disabling this new view in File Explorer.\nIf you are using Windows 10 and want to do any of following things:\nRemove frequently used folders list from Quick Access/Home view in File Explorer Remove recently used files list from Quick Access/Home view in File Explorer Get rid of the new Quick Access/Home view in File Explorer This tutorial will definitely help you. Just follow these simple steps to bring back the old This PC view in Windows 10 File Explorer:\n1. Open File Explorer, click on View tab in Ribbon and then click on Options.\n2. Now to remove frequent folders and recent files list from Quick Access/Home view, uncheck following 2 options present under Privacy section:\nShow recently used files in Quick Access Show frequently used folders in Quick Access It’ll immediately remove these 2 sections from Quick Access view in File Explorer.\n3. If you want to completely get rid of Quick Access/Home view from File Explorer, change the option “Open File Explorer to” from “Quick access” to “This PC” using drop-down list. It’ll set the old This PC view as default in File Explorer and you’ll always have disk drives page visible whenever you open File Explorer.\n4. One more thing! If you also want to remove the unnecessary 6 folders “Desktop, Documents, Downloads, Music, Pictures and Videos” from This PC and extra icons such as OneDrive, Quick Access, etc from Navigation Pane in This PC, check out following tutorials:\nPosted in: Windows 10\nAbout the author: Vishal Gupta (also known as VG) has been awarded with Microsoft MVP (Most Valuable Professional) award. He has written several tech articles for popular newspapers and magazines and has also appeared in a few tech shows on TV channels.\nOther similar articles that may interest you ","permalink":"https://tutes.in/how-to-disable-default-quick-access-aka-home-view-in-windows-10-file-explorer-askvg/","summary":"\u003cp\u003eIf you are using \u003cstrong\u003e\u003ca href=\"https://www.askvg.com/all-about-windows-9-or-windows-threshold/\"\u003eWindows 10\u003c/a\u003e\u003c/strong\u003e or have seen the OS in any computer, you might be aware of the new \u003cstrong\u003eHome aka Quick Access View\u003c/strong\u003e introduced in Windows 10 \u003cstrong\u003eFile Explorer\u003c/strong\u003e (previously known as Windows Explorer or My Computer).\u003c/p\u003e\n\u003cp\u003eThis new Quick Access or Home view is the default page of File Explorer in Windows 10 and whenever you open File Explorer using its shortcut icon or WIN+E hotkey, this new view is shown in File Explorer. It shows \u003cstrong\u003efrequently used folders\u003c/strong\u003e and \u003cstrong\u003erecently used files\u003c/strong\u003e list in File Explorer as shown in following screenshot:\u003c/p\u003e","title":"How to Disable Default \"Quick Access\" aka \"Home View\" in Windows 10 File Explorer? – AskVG"},{"content":"Protecting emails from spamming is a tough task. Scraping email data is usually a great trick to get huge lists of working emails from a search engine, but how do we stop it?\nHere is one of the ways to hide your email address from being scraped.\nCSS mail::after{content:attr(dom)} mail::before{content:attr(me) \u0026#34;\\0040\u0026#34;} HTML \u0026lt;mail me=\u0026#34;my_safe_email\u0026#34; dom=\u0026#34;gmail.com\u0026#34;\u0026gt;\u0026lt;/mail\u0026gt; so final code will look like:\n\u0026lt;style\u0026gt; mail::after{content:attr(dom)} mail::before{content:attr(me) \u0026#34;\\0040\u0026#34;} \u0026lt;/style\u0026gt; \u0026lt;mail me=\u0026#34;myemail\u0026#34; dom=\u0026#34;gmail.com\u0026#34;\u0026gt;\u0026lt;/mail\u0026gt; See it in action ","permalink":"https://tutes.in/trick-to-hide-email-address-smartly-on-a-webpage-to-stop-spam/","summary":"\u003cp\u003eProtecting emails from spamming is a tough task. Scraping email data is usually a great trick to get huge lists of working emails from a search engine, but how do we stop it?\u003cbr\u003e\nHere is one of the ways to hide your email address from being scraped.\u003c/p\u003e\n\u003ch2 id=\"css\"\u003eCSS\u003c/h2\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-css\" data-lang=\"css\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nt\"\u003email\u003c/span\u003e\u003cspan class=\"p\"\u003e::\u003c/span\u003e\u003cspan class=\"nd\"\u003eafter\u003c/span\u003e\u003cspan class=\"p\"\u003e{\u003c/span\u003e\u003cspan class=\"k\"\u003econtent\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"nb\"\u003eattr\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"n\"\u003edom\u003c/span\u003e\u003cspan class=\"p\"\u003e)}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nt\"\u003email\u003c/span\u003e\u003cspan class=\"p\"\u003e::\u003c/span\u003e\u003cspan class=\"nd\"\u003ebefore\u003c/span\u003e\u003cspan class=\"p\"\u003e{\u003c/span\u003e\u003cspan class=\"k\"\u003econtent\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"nb\"\u003eattr\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"n\"\u003eme\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;\\0040\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch2 id=\"html\"\u003eHTML\u003c/h2\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-xml\" data-lang=\"xml\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nt\"\u003e\u0026lt;mail\u003c/span\u003e \u003cspan class=\"na\"\u003eme=\u003c/span\u003e\u003cspan class=\"s\"\u003e\u0026#34;my_safe_email\u0026#34;\u003c/span\u003e \u003cspan class=\"na\"\u003edom=\u003c/span\u003e\u003cspan class=\"s\"\u003e\u0026#34;gmail.com\u0026#34;\u003c/span\u003e\u003cspan class=\"nt\"\u003e\u0026gt;\u0026lt;/mail\u0026gt;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eso final code will look like:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026lt;style\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003email::after{content:attr(dom)}\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003email::before{content:attr(me) \u0026#34;\\0040\u0026#34;}\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026lt;/style\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026lt;mail me=\u0026#34;myemail\u0026#34; dom=\u0026#34;gmail.com\u0026#34;\u0026gt;\u0026lt;/mail\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch3 id=\"see-it-in-action\"\u003eSee it in action\u003c/h3\u003e\n\u003cstyle\u003e\nmail::after{content:attr(dom)}\nmail::before{content:attr(me) \"\\0040\"}\n\u003c/style\u003e\n\u003cp\u003e\u003cmail me=\"myemail\" dom=\"gmail.com\"\u003e\u003c/mail\u003e\u003c/p\u003e","title":"Trick to hide email address smartly on a webpage to stop spam"},{"content":"Who we are Our website address is: https://tutes.in.\nWhat personal data we collect and why we collect it Comments When visitors leave comments on the site we collect the data shown in the comments form, and also the visitor’s IP address and browser user agent string to help spam detection.\nAn anonymized string created from your email address (also called a hash) may be provided to the Gravatar service to see if you are using it. The Gravatar service privacy policy is available here: https://automattic.com/privacy/. After approval of your comment, your profile picture is visible to the public in the context of your comment.\nMedia If you upload images to the website, you should avoid uploading images with embedded location data (EXIF GPS) included. Visitors to the website can download and extract any location data from images on the website.\nContact forms Cookies If you leave a comment on our site you may opt-in to saving your name, email address and website in cookies. These are for your convenience so that you do not have to fill in your details again when you leave another comment. These cookies will last for one year.\nIf you have an account and you log in to this site, we will set a temporary cookie to determine if your browser accepts cookies. This cookie contains no personal data and is discarded when you close your browser.\nWhen you log in, we will also set up several cookies to save your login information and your screen display choices. Login cookies last for two days, and screen options cookies last for a year. If you select “Remember Me”, your login will persist for two weeks. If you log out of your account, the login cookies will be removed.\nIf you edit or publish an article, an additional cookie will be saved in your browser. This cookie includes no personal data and simply indicates the post ID of the article you just edited. It expires after 1 day.\nEmbedded content from other websites Articles on this site may include embedded content (e.g. videos, images, articles, etc.). Embedded content from other websites behaves in the exact same way as if the visitor has visited the other website.\nThese websites may collect data about you, use cookies, embed additional third-party tracking, and monitor your interaction with that embedded content, including tracing your interaction with the embedded content if you have an account and are logged in to that website.\nAnalytics Who we share your data with How long we retain your data If you leave a comment, the comment and its metadata are retained indefinitely. This is so we can recognize and approve any follow-up comments automatically instead of holding them in a moderation queue.\nFor users that register on our website (if any), we also store the personal information they provide in their user profile. All users can see, edit, or delete their personal information at any time (except they cannot change their username). Website administrators can also see and edit that information.\nWhat rights you have over your data If you have an account on this site, or have left comments, you can request to receive an exported file of the personal data we hold about you, including any data you have provided to us. You can also request that we erase any personal data we hold about you. This does not include any data we are obliged to keep for administrative, legal, or security purposes.\nWhere we send your data Visitor comments may be checked through an automated spam detection service.\nYour contact information All the queries related to privacy or regarding this website must be sent directly to\nAdditional information How we protect your data What data breach procedures we have in place What third parties we receive data from What automated decision making and/or profiling we do with user data Industry regulatory disclosure requirements ","permalink":"https://tutes.in/privacy-policy/","summary":"\u003ch2 id=\"who-we-are\"\u003eWho we are\u003c/h2\u003e\n\u003cp\u003eOur website address is: \u003ca href=\"https://tutes.in\"\u003ehttps://tutes.in\u003c/a\u003e.\u003c/p\u003e\n\u003ch2 id=\"what-personal-data-we-collect-and-why-we-collect-it\"\u003eWhat personal data we collect and why we collect it\u003c/h2\u003e\n\u003ch3 id=\"comments\"\u003eComments\u003c/h3\u003e\n\u003cp\u003eWhen visitors leave comments on the site we collect the data shown in the comments form, and also the visitor’s IP address and browser user agent string to help spam detection.\u003c/p\u003e\n\u003cp\u003eAn anonymized string created from your email address (also called a hash) may be provided to the Gravatar service to see if you are using it. The Gravatar service privacy policy is available here: \u003ca href=\"https://automattic.com/privacy/\"\u003ehttps://automattic.com/privacy/\u003c/a\u003e. After approval of your comment, your profile picture is visible to the public in the context of your comment.\u003c/p\u003e","title":"Privacy Policy"},{"content":"SELECT u.value_id,u2.value_id, u.attribute_id, u.entity_id, u.value FROM catalog_product_entity_int u, catalog_product_entity_int u2 WHERE u.entity_id = u2.entity_id AND u.attribute_id = u2.attribute_id AND u.value= u2.value and u.value_id\u0026lt;u2.value_id DELETE FROM catalog_product_entity_int WHERE value_id IN ( SELECT u.value_id as value_id FROM catalog_product_entity_int u, catalog_product_entity_int u2 WHERE u.entity_id = u2.entity_id AND u.attribute_id = u2.attribute_id AND u.value= u2.value and u.store_id=u2.store_id and u.value_id\u0026lt;u2.value_id ) ","permalink":"https://tutes.in/sqlstate23000-integrity-constraint-violation-1062-duplicate-entry-magento-2/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-sql\" data-lang=\"sql\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eSELECT\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003evalue_id\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"n\"\u003eu2\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003evalue_id\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003eattribute_id\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003eentity_id\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003evalue\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eFROM\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ecatalog_product_entity_int\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ecatalog_product_entity_int\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu2\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eWHERE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003eentity_id\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu2\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003eentity_id\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eAND\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003eattribute_id\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu2\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003eattribute_id\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eAND\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003evalue\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu2\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003evalue\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eand\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003evalue_id\u003c/span\u003e\u003cspan class=\"o\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"n\"\u003eu2\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003evalue_id\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eDELETE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eFROM\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ecatalog_product_entity_int\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eWHERE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003evalue_id\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eIN\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"w\"\u003e    \u003c/span\u003e\u003cspan class=\"k\"\u003eSELECT\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003evalue_id\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eas\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003evalue_id\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eFROM\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ecatalog_product_entity_int\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ecatalog_product_entity_int\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu2\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eWHERE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003eentity_id\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu2\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003eentity_id\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eAND\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003eattribute_id\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu2\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003eattribute_id\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eAND\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003evalue\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu2\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003evalue\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eand\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003estore_id\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"n\"\u003eu2\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003estore_id\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eand\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eu\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003evalue_id\u003c/span\u003e\u003cspan class=\"o\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"n\"\u003eu2\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"n\"\u003evalue_id\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"w\"\u003e    \u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry Magento 2"},{"content":"$jq=new jQuery.noConflict(); var mimim=[\u0026#34;Yellow Topaz\u0026#34;, \u0026#34;Alexandrite\u0026#34;]; $jq.each(mimim,function(a,b){ $jq(\u0026#34;#add_new_option_button\u0026#34;).click(); $jq(\u0026#34;#matage-options-panel .dynamic-grid tbody tr:nth-child(2) td:nth-child(1) input\u0026#34;).val(b); }); ","permalink":"https://tutes.in/bulk-add-custom-attribute-options-in-magento-1/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-javascript\" data-lang=\"javascript\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003e$jq\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"k\"\u003enew\u003c/span\u003e \u003cspan class=\"nx\"\u003ejQuery\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003enoConflict\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"kd\"\u003evar\u003c/span\u003e \u003cspan class=\"nx\"\u003emimim\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;Yellow Topaz\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"s2\"\u003e\u0026#34;Alexandrite\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003e$jq\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eeach\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003emimim\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"kd\"\u003efunction\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nx\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e){\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003e$jq\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;#add_new_option_button\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eclick\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003e$jq\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;#matage-options-panel .dynamic-grid tbody tr:nth-child(2) td:nth-child(1) input\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eval\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e});\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Bulk Add Custom Attribute Options in Magento 1"},{"content":"select * from `core_config_data` where path like \u0026#39;web/%\u0026#39; ","permalink":"https://tutes.in/magento-2-how-to-manage-multi-domain-website-store-setup-urls/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-sql\" data-lang=\"sql\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eselect\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e*\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003efrom\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003ecore_config_data\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003ewhere\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003epath\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003elike\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;web/%\u0026#39;\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Magento 2 – How to manage multi domain website store setup URLs"},{"content":"Sometimes debugging on Magento can be annoying, specially if something just arises out of the blue, not while you are actually writing a code.\nThis is something that occurs on Magento admin panel. As of now, it can be one out of 3 reasons, let us discuss them:\n1. Admin Password Try to change admin password, log out and log in again. This should fix it.\n2. Some un compiled code or pending schema change upgrade, compile, deploy, reindex, clean cache\nrm -rf generated/* var/cache/* var/view_preprocessed/* php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f php bin/magento indexer:reindex php bin/magento cache:clean 3. Check for some extra output in the php files See Line 41\nOne of the developers left this in index.php and this was just messing with the api calls from admin panel because it was corrupting json output.\n","permalink":"https://tutes.in/solved-magento-2-error-a-technical-problem-with-the-server-created-an-error-try-again-to-continue-what-you-were-doing-if-the-problem-persists-try-again-later/","summary":"\u003cp\u003eSometimes debugging on Magento can be annoying, specially if something just arises out of the blue, not while you are actually writing a code.\u003c/p\u003e\n\u003cp\u003e\u003cimg alt=\"Magento Error - Technical Problem with server\" loading=\"lazy\" src=\"https://user-images.githubusercontent.com/11790408/27586329-859a71fe-5b5d-11e7-8a8a-98b2883a2118.png\"\u003e\n\u003cimg alt=\"If Problem Persists, try again later\" loading=\"lazy\" src=\"https://user-images.githubusercontent.com/11790408/27585926-c74361d0-5b5b-11e7-9a25-bf6e9790af78.png\"\u003e\u003c/p\u003e\n\u003cp\u003eThis is something that occurs on Magento admin panel. As of now, it can be one out of 3 reasons, let us discuss them:\u003c/p\u003e\n\u003ch2 id=\"1-admin-password\"\u003e1. Admin Password\u003c/h2\u003e\n\u003cp\u003eTry to change admin password, log out and log in again. This should fix it.\u003c/p\u003e","title":"[SOLVED] Magento 2 Error: A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, try again later."},{"content":"SPAM, don’t we hate it when our inbox is full of credit card offers, insurance policies and billions of pounds that some rich dude left for you in his will? Everyone wants to get rid of them but somehow, some stupid website out there keeps leaking on our email address and we keep receiving stupid junk emails.\nWe all know that SPAM or Junk Email means unsolicited messages that you receive by email. But here is a fun fact:\nSpam is named after Spam luncheon meat by way of a Monty Python sketch in which Spam in the sketch is ubiquitous, unavoidable and repetitive.\nGo to Latest update of this article UPDATE\nThe new filter guide is on https://github.com/harshvardhanmalpani/Spam-List\nYou can directly use the file filter_import_for_gmail.xml from github repository and add filters.\n———\nlet us get started with the guide, Please be aware that this guide will remove and block the SPAM addresses permanently.\nStep 1: Log in to your Gmail account Step 2: Go to Settings Gmail settings\nStep 3: Under Filters and Blocked Addresses, Click on Create a new filter Step 4: In the new FROM field, enter the Email addresses you want to block separated with \u0026#34; OR \u0026#34; quotations not required, just [space]OR[space] and finally click Create filter with this search\nStep 5: Check Delete it and Never send it to spam and Save the filter by choosing Create filter Ready to import gmail filters now available download here\nfile contents:\n\u0026lt;pre class=\u0026#34;brush: xml; title: ; notranslate\u0026#34; title=\u0026#34;\u0026#34;\u0026gt; \u0026amp;amp;amp;amp;amp;amp;lt;?xml version=\u0026#39;1.0\u0026#39; encoding=\u0026#39;UTF-8\u0026#39;?\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;feed xmlns=\u0026#39;http://www.w3.org/2005/Atom\u0026#39; xmlns:apps=\u0026#39;http://schemas.google.com/apps/2006\u0026#39;\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;title\u0026amp;amp;amp;amp;amp;amp;gt;Mail Filters\u0026amp;amp;amp;amp;amp;amp;lt;/title\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;id\u0026amp;amp;amp;amp;amp;amp;gt; tag:mail.google.com,2008:filters:1583315594819,1583315594820,1583315594821,1583315594821,1583315594822,1583315594822,1583315594823,1583315594823,1583315594823,1583315594824,1583315594824,1583315594825,1583315594825\u0026amp;amp;amp;amp;amp;amp;lt;/id\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;updated\u0026amp;amp;amp;amp;amp;amp;gt;2020-03-04T15:23:14Z\u0026amp;amp;amp;amp;amp;amp;lt;/updated\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;author\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;name\u0026amp;amp;amp;amp;amp;amp;gt;Harshvardhan Malpani\u0026amp;amp;amp;amp;amp;amp;lt;/name\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;email\u0026amp;amp;amp;amp;amp;amp;gt;i@harshmalpani.in\u0026amp;amp;amp;amp;amp;amp;lt;/email\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;/author\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;category term=\u0026#39;filter\u0026#39;\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/category\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;title\u0026amp;amp;amp;amp;amp;amp;gt;Mail Filter\u0026amp;amp;amp;amp;amp;amp;lt;/title\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;id\u0026amp;amp;amp;amp;amp;amp;gt;tag:mail.google.com,2008:filter:1583315594819\u0026amp;amp;amp;amp;amp;amp;lt;/id\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;updated\u0026amp;amp;amp;amp;amp;amp;gt;2020-03-04T15:23:14Z\u0026amp;amp;amp;amp;amp;amp;lt;/updated\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;from\u0026#39; value=\u0026#39;002jaymehta@gmail.com OR 111.@proof.ocn.ne.jp OR 11111.@marble.ocn.ne.jp OR 133873918541@havrby.xyz OR 5901822@aruba.it OR 62711059@mylife.unisa.ac.za OR 99@a.chtah.com OR 99@e.2mg.in OR 99@e.alcondigital.com OR 99@e.simplego.in OR 99@e.transitinbox.com OR 9y4m4andv1yhs7jvq4bbwxtv5yiporhlw97iztitqry09glpva07pfdufxzhsjqqlkm7zsfjfs5nvjxz2ubonhenzxozlv24vyftfpwly68sbeddaxwnxtkgbe7mhadyk199bwlwxzcdapz3vtm7xww1rlq@wv8nmu.bestgymworkoutroutines.com OR Ben_alpha.chambers@qualityservice.com OR SanjayModi74@outlook.com OR VIP@s0a.offerpartners.com OR aabha@netnode.in OR aad94p@jioderigy.com OR aagam.singh@outlook.com OR aaniyashingh@aol.com OR aarkaytraders12@gmail.com OR aarushphpdevloper44@gmail.com OR abuse@namenname.org OR abuse@publicdomainregistry.com OR account@bidvertiser.com OR admin@adnet-online.at OR admin@bigdreamzserver.info OR admin@epaidprogram.com OR admin@onlineqai.in OR admin@upcbbd.com OR adrian.smith@hopeopitte.xyz OR aimee.hendrycks@nycdesignsinc.com OR akiraso@tim.it OR akram.lamba@timesgroup.com OR alauk.ag@gmail.com OR albert@my-seo.tech OR alex@logodesignsite.site OR alex@opencodetreat.com OR alia.bhat@ezycollege.com OR alinalanina1@gmail.com OR alisha@verifiedrank.com OR allexwalter22@gmail.com OR amazo@e.simplego.in OR amelia5277tur@gmail.com OR amrutha@freshersworld.in OR andrew@replaypoker.com OR andy@videohouse.site OR angelo973@h.xanonymous.gq OR anika.maia34@gmail.com OR anilkumar00607@yahoo.com OR aninskci@uecls7pdyldlhoe.us OR anjali@proudsystems.com\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldTrash\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldNeverSpam\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeOperator\u0026#39; value=\u0026#39;s_sl\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeUnit\u0026#39; value=\u0026#39;s_smb\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;/entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;category term=\u0026#39;filter\u0026#39;\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/category\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;title\u0026amp;amp;amp;amp;amp;amp;gt;Mail Filter\u0026amp;amp;amp;amp;amp;amp;lt;/title\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;id\u0026amp;amp;amp;amp;amp;amp;gt;tag:mail.google.com,2008:filter:1583315594820\u0026amp;amp;amp;amp;amp;amp;lt;/id\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;updated\u0026amp;amp;amp;amp;amp;amp;gt;2020-03-04T15:23:14Z\u0026amp;amp;amp;amp;amp;amp;lt;/updated\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;from\u0026#39; value=\u0026#39;ankit@click-by-seo.online OR ankit@splurgingplu.online OR ankita@e.freekacharge.in OR ankita@e.transitinbox.com OR ankitakapoor31@yahoo.com OR antionemueller@aol.com OR apmpkiwybgog4tttnosh.apmpkiwybgog4tttnosh@hobnalak.publicvm.com OR arpitkatiyar04@hotmail.com OR arpitkatiyar11@hotmail.com OR arshpreet@iparmlegal.com OR arvi@yuho.in OR arvind@codebreak.info OR asemeo@e.simplego.in OR ashlee@replaypoker.com OR attached_o@yahoo.co.uk OR austin@ceberalwriting.club OR aya99@e.2mg.in OR barbarakldonsch@aol.com OR beatricewingler@gmail.com OR bert040@tim.it OR bloodtestathome@healthoffers.biz OR bongiornobodiford26@gmail.com OR brandedsms@live.com OR brandon@bestcontenthelp.com OR bret@graphicsanimator.site OR brian_robinson41@aol.com OR brofsky@cox.net OR bryantmelba@gmail.com OR bullpout@haroldthese.date OR butler@ownmobileapp.co OR buyonline@vodafone.com OR bxbaedwp@sqkcmovvia5z7wy.us OR c.diningelegance@mw.twcbc.com OR cargodliveryunitchicago.@woody.ocn.ne.jp OR carsonlouis@consultant.com OR cassio.silva73@etec.sp.gov.br OR ceo@federal.com OR ceo@federalreserve.com OR certificate@ednxt.info OR certificate@manipalprolearnedu.com OR chapmanthomasji@gmail.com OR charlespayne469w@aol.com OR cheapsmsemail@gmail.com OR chevroletmotorsuk87@outlook.com OR chevroletmotorsukclaimsprize@outlook.com OR chhaya@onlinelab.info OR chotiya@a.chtah.com OR christian.feemers@t-online.de OR christina.worldwideemaillist@gmail.com OR claimunit_cash4u6487879@outlook.com OR clair@ebaypro.biz\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldTrash\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldNeverSpam\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeOperator\u0026#39; value=\u0026#39;s_sl\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeUnit\u0026#39; value=\u0026#39;s_smb\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;/entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;category term=\u0026#39;filter\u0026#39;\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/category\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;title\u0026amp;amp;amp;amp;amp;amp;gt;Mail Filter\u0026amp;amp;amp;amp;amp;amp;lt;/title\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;id\u0026amp;amp;amp;amp;amp;amp;gt;tag:mail.google.com,2008:filter:1583315594821\u0026amp;amp;amp;amp;amp;amp;lt;/id\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;updated\u0026amp;amp;amp;amp;amp;amp;gt;2020-03-04T15:23:14Z\u0026amp;amp;amp;amp;amp;amp;lt;/updated\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;from\u0026#39; value=\u0026#39;clla.@fine.ocn.ne.jp OR colemanjeffreyec@gmail.com OR contact055962866262059@happyhealthyhearts.co.uk OR contact975799027124606@happyhealthyhearts.co.uk OR contact@body.bellyreducingfat.com OR contact@domain-submit.eu OR cooper@gamma.ocn.ne.jp OR cooper@tea.ocn.ne.jp OR cooperj@gamma.ocn.ne.jp OR creditsesame.com@mousedive.xyz OR d.trump@futiogs.xyz OR d@zomato.com OR dabrtccc@gmail.com OR danielwa@yamamotoya.com OR daslda22@outlook.com OR david.crawford36@aol.com OR david.wilson@wikiprosinc.com OR davidwarner.webexpert@gmail.com OR debby.wade@aspiretec.info OR derrick@boostwebsolution.com OR desm424@gmail.com OR dharamsharma22@aol.com OR dhiren@dotsinnovations.com OR dhlofficemail01@yandex.com OR dimpi@a.chtah.com OR dkdhte12@abv.bg OR do-not-reply@magentodesignshop.com OR do-not-reply@woocommercedesigns.com OR do-not-reply@wordpressdesignhub.com OR domainlisting@enthuse.computernetworksonline.com OR domainmarketing@work.iwisher.com OR domains@regdomainse.com OR domainservices@iwisher.com OR donation2018wb@olive.ocn.ne.jp OR dora.reed@fundtec.info OR duke@e.simplego.in OR ednabrant456@gmail.com OR egreene@rivier.edu OR eikoh@crocus.ocn.ne.jp OR ekta@mweb.co.in OR email@alerts.mailmusk.com OR emily@vimeologo.com OR emyfergusen@gmail.com OR erect.on.demand@madmajoys.xyz OR evan.uxdesigner@yahoo.com OR evans.wilson1945@outlook.com OR fantasycricket@dream11.com OR fantasysports@dream11.com OR fb@mailfb.in OR federal.@aroma.ocn.ne.jp OR flemingepxholly@gmail.com\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldTrash\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldNeverSpam\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeOperator\u0026#39; value=\u0026#39;s_sl\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeUnit\u0026#39; value=\u0026#39;s_smb\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;/entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;category term=\u0026#39;filter\u0026#39;\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/category\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;title\u0026amp;amp;amp;amp;amp;amp;gt;Mail Filter\u0026amp;amp;amp;amp;amp;amp;lt;/title\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;id\u0026amp;amp;amp;amp;amp;amp;gt;tag:mail.google.com,2008:filter:1583315594821\u0026amp;amp;amp;amp;amp;amp;lt;/id\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;updated\u0026amp;amp;amp;amp;amp;amp;gt;2020-03-04T15:23:14Z\u0026amp;amp;amp;amp;amp;amp;lt;/updated\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;from\u0026#39; value=\u0026#39;fmlotrl@walla.co.il OR fra@pregelse.xyz OR freetrial@0dy.affpartners.com OR genival@fct.unesp.br OR georgethaing@gmail.com OR gerry@imf.com OR get2benson@gmail.com OR gezelaine.souza@etec.sp.gov.br OR gloriareynolds1972@gmail.com OR gordonhayeesgf@gmail.com OR greene_james@aol.com OR groupworld45@live.com OR guttered@hotborutautumn.top OR haggermakerbrookede@gmail.com OR harryrees399t@aol.com OR harsh@gmail.com OR hebertwixomtm7@gmail.com OR hello@3xdesignservice.com OR hello@99ds.us OR hello@bigmarker.com OR hello@craftivebranding.co OR hello@mailerassist.com OR hey@custombrandingguru.com OR hey@logo-moto.com OR hey@onlinebrandingstudio.com OR hey@perfectbrandonline.com OR hidek@arrow.ocn.ne.jp OR hikida@theia.ocn.ne.jp OR hildebrandhlindsay6@gmail.com OR hinesrobin@consultant.com OR hit@frogsgorgeous.org OR hobsondanielwe@gmail.com OR hostmasters@user-support-vericactionc.com OR hudbnas1@abv.bg OR hussam@gmail.com OR ijccom91@gmail.com OR info1436651433@owningabeautysalon.co.uk OR info1@angel.ocn.ne.jp OR info4511125849@latestethnicwear.co.uk OR info8574709340@latestethnicwear.co.uk OR info@5xfniljeff.gainfulfreshbl.co.uk OR info@adzinnovative.in OR info@ampleclick.com OR info@amyq.formirror.com OR info@areginaloman.com OR info@bareflawed.com OR info@bestserversdeal.com OR info@brinjal.info OR info@bulksmsserviceproviders.com OR info@cercindiapost.org OR info@charmpractical.com OR info@cloudtech.in.net OR info@commtrends.in OR info@compoundintrest.com\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldTrash\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldNeverSpam\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeOperator\u0026#39; value=\u0026#39;s_sl\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeUnit\u0026#39; value=\u0026#39;s_smb\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;/entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;category term=\u0026#39;filter\u0026#39;\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/category\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;title\u0026amp;amp;amp;amp;amp;amp;gt;Mail Filter\u0026amp;amp;amp;amp;amp;amp;lt;/title\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;id\u0026amp;amp;amp;amp;amp;amp;gt;tag:mail.google.com,2008:filter:1583315594822\u0026amp;amp;amp;amp;amp;amp;lt;/id\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;updated\u0026amp;amp;amp;amp;amp;amp;gt;2020-03-04T15:23:14Z\u0026amp;amp;amp;amp;amp;amp;lt;/updated\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;from\u0026#39; value=\u0026#39;info@crm.casaconsultant.com OR info@crm.utrans01.com OR info@dansbodyservice.co.uk OR info@dansbodyservice.com OR info@datacloud.in.net OR info@dataticketsyou.com OR info@ddi.affpartners.com OR info@dfycsflwup.parablestory.co.uk OR info@digi.mailscart.com OR info@digitalnotice.se OR info@displaymailbox.com OR info@domain-notice.tk OR info@duvcvehjnq.gainfulfreshbl.co.uk OR info@dyt.offerpartners.com OR info@e.shoponmail.in OR info@easylogocreations.info OR info@ecomtrendz.com OR info@edm.efinmail.com OR info@em.india-furniture.co.in OR info@email.mailscart.com OR info@es.finance-plus.in OR info@exalt-design.co OR info@expo.org OR info@expo.org.net OR info@export.com OR info@export.org OR info@fistcurved.org OR info@fleurs-decorations.us OR info@gokaarts.com OR info@grsoftsolutions.biz OR info@hrumhfhoqs.inspiringfitnessworld.co.uk OR info@itwebservices.biz OR info@jewelslane.com OR info@jmails.info OR info@ketto.org OR info@leftromantic.co OR info@logo-designs.se OR info@lucifro.com OR info@mail9.info OR info@mailclues.info OR info@mailindiaa.com OR info@mails.shiningindiaa.com OR info@mc.progressingindia.com OR info@mc.shiningindiaa.com OR info@myamazers.in OR info@mydigitalindia.xyz OR info@mysending77.com OR info@natureislandskincare.com OR info@naukripakki.in OR info@noticedomain.se OR info@noticedomains.co OR info@oqk6izdcm3.inspiringfitnessworld.co.uk OR info@oreomanager.com OR info@parcelspotty.org OR info@powerhouses.net OR info@proudlegal.com\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldTrash\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldNeverSpam\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeOperator\u0026#39; value=\u0026#39;s_sl\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeUnit\u0026#39; value=\u0026#39;s_smb\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;/entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;category term=\u0026#39;filter\u0026#39;\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/category\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;title\u0026amp;amp;amp;amp;amp;amp;gt;Mail Filter\u0026amp;amp;amp;amp;amp;amp;lt;/title\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;id\u0026amp;amp;amp;amp;amp;amp;gt;tag:mail.google.com,2008:filter:1583315594822\u0026amp;amp;amp;amp;amp;amp;lt;/id\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;updated\u0026amp;amp;amp;amp;amp;amp;gt;2020-03-04T15:23:14Z\u0026amp;amp;amp;amp;amp;amp;lt;/updated\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;from\u0026#39; value=\u0026#39;info@qo7r6ao4ww.inspiringfitnessworld.co.uk OR info@raventranscription.info OR info@rcpt.utrans01.com OR info@rheehfsryb.gymworkoutplans.co.uk OR info@rkcdesign.us OR info@rt.mailindiapro.com OR info@serverauthor.top OR info@serverbest.top OR info@serverblack.top OR info@servpowernet.com OR info@signrequest-mail.com OR info@simpindonesia.pw OR info@simptickets.pw OR info@sm.progressingindia.com OR info@spenn.co.il OR info@steadfastserver.com OR info@techinfoserve.in.net OR info@technosystech.in OR info@tekjioemail.com OR info@todaymstr.com OR info@topratedservice.online OR info@umeacademy.com OR info@ventriculary.co OR info@vhjkmfxxdcmvnxt6xq2w.specimensrobert.co.uk OR info@webizona.com OR info@webizona.org OR info@webservicesportals.xyz OR info@xltaffiliate.com OR info@xp.org OR info@zugvfnycw7.teachersfavorites.co.uk OR infonugascoegbagirest-1234648612@cybersclow.me OR informxapp@lumennomen.com OR isseaterta1985@yahoo.com OR ithelpdesk@artissimodesigns.com OR ivlanyhow@airpurifyingsystems.com OR jacob@webappsusa.info OR james@webcommerce.site OR jaquelinezieler7357@aol.com OR jayaapps@outlook.com OR jayashreeraj1234@gmail.com OR jcooper@arion.ocn.ne.jp OR jecob1552@rediffmail.com OR jeromepowell.@movie.ocn.ne.jp OR jj0hnscott@yandex.com OR jobmessenger@monsterindia.com OR jobs@aspiringminds.in OR jobs@myamcat.com OR joe_minas@utrin.cz OR joeannbauer566@gmail.com OR joepullman813@gmail.com OR jontan220@e-mail.pk OR josephsamuelf@gmail.com OR joshua@ebaypro.biz\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldTrash\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldNeverSpam\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeOperator\u0026#39; value=\u0026#39;s_sl\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeUnit\u0026#39; value=\u0026#39;s_smb\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;/entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;category term=\u0026#39;filter\u0026#39;\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/category\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;title\u0026amp;amp;amp;amp;amp;amp;gt;Mail Filter\u0026amp;amp;amp;amp;amp;amp;lt;/title\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;id\u0026amp;amp;amp;amp;amp;amp;gt;tag:mail.google.com,2008:filter:1583315594823\u0026amp;amp;amp;amp;amp;amp;lt;/id\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;updated\u0026amp;amp;amp;amp;amp;amp;gt;2020-03-04T15:23:14Z\u0026amp;amp;amp;amp;amp;amp;lt;/updated\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;from\u0026#39; value=\u0026#39;justin@riversoflife.org.sg OR kajal.agarwal@ezycollege.com OR karan66vahi@outlook.com OR karen@2danimation.site OR kfinkartupdates@karvy.com OR khanvegaley@gmail.com OR kiran@appziq.com OR kotak@mloyalnewsletter.com OR kristine.emc@gmail.com OR ksandep884@gmail.com OR kvcbosxpzaek@ydzuhpje.com OR kvinjones01@gmail.com OR lably.singh@aol.com OR ladies@hgg.offerpartners.com OR lanasilva@animationglaze.com OR landan@e.simplego.in OR lara.dreamit@gmail.com OR larrydavidg6@gmail.com OR lavania@e.simplego.in OR learn@learnvibes.net OR lester_spencer2@aol.com OR linah56@mobiloan.xyz OR lottery_uk10@yahoo.com OR lpzvikmy@acqohyw6nhvomzh.us OR luckeylaustrame31@gmail.com OR m_heidi15@aol.fr OR mail@rexon.co.in OR mailer@newsletter-mopng.com OR mails@amails.in OR maliajadon@hotmail.com OR malini@a.chtah.com OR malini@e.freekacharge.in OR malini@e.simplego.in OR maniya@e.simplego.in OR mansi@e.2mg.in OR manvi@e.simplego.in OR marcus_exelby@jackmorton.co.uk OR margarettalamantes@aol.com OR maria@e.2mg.in OR maria@sociodigit.tech OR marvin.webtechnology@outlook.com OR mason@businessupviaapp.com OR melinabethard3845@aol.com OR melissatipdfler@aol.com OR melora@e.2mg.in OR men\u0026amp;amp;amp;amp;amp;amp;amp;apos;shealth@sry.affpartners.com OR mfernandez1@rivier.edu OR mgbygblk@i3zuj8qva9zpcqr.us OR mi4r0afsovflhcrftx94q9lfpstgmoiz6gni92sjbffurhgrr2ile4ao0lsaxwmdtqwc09cqfxx7jrr1x03xtnryqrnfbbwofhbi4mbl0qxokceuydwr7rveetjrppxnywqn6agv1oyqa66sybsz5kryzu4@bkd7hb.bestgymworkoutroutines.com OR michael@probizrank.com\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldTrash\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldNeverSpam\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeOperator\u0026#39; value=\u0026#39;s_sl\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeUnit\u0026#39; value=\u0026#39;s_smb\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;/entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;category term=\u0026#39;filter\u0026#39;\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/category\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;title\u0026amp;amp;amp;amp;amp;amp;gt;Mail Filter\u0026amp;amp;amp;amp;amp;amp;lt;/title\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;id\u0026amp;amp;amp;amp;amp;amp;gt;tag:mail.google.com,2008:filter:1583315594823\u0026amp;amp;amp;amp;amp;amp;lt;/id\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;updated\u0026amp;amp;amp;amp;amp;amp;gt;2020-03-04T15:23:14Z\u0026amp;amp;amp;amp;amp;amp;lt;/updated\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;from\u0026#39; value=\u0026#39;michealsharon6@gmail.com OR micros1f@outlook.com OR miklejack@laughingforhealth.com OR miklejackdzkdtzy7ra@laughingforhealth.com OR miklejackff0jydtpsb@laughingforhealth.com OR miklejackj9fp3zlinj@laughingforhealth.com OR miklejackonuwzmsk3j@laughingforhealth.com OR miklejackrijqmow0yd@laughingforhealth.com OR millerittechonology@gmail.com OR miriamsonya.infotech@yahoo.com OR misael_calzada@prodigy.net.mx OR mishka@webmovicare.com OR mitzidraves1004@aol.com OR mohini@a.chtah.com OR mohit@leadingappdeveloper.com OR morgan@esade.edu OR morgchasedept@verizon.net OR mote@a.chtah.com OR mote@e.2mg.in OR movies@mails.justdialmail.com OR mr.salam6357@gmail.com OR mrsrose.e@yahoo.com OR musman405@gmail.com OR mvergara@vecinoslaparva.cl OR mysweetcheekseweb@outlook.com OR n.ergun@arentelekom.com OR nao.@proof.ocn.ne.jp OR navya@e.2mg.in OR navya@e.transitinbox.com OR nbafantasy@dream11.com OR neea@acrowebtechnologies.com OR nehagupta@click-by-seo.online OR nehruplace@firstflight.net OR nelidamartin510@gmail.com OR news@dexterousdigitech.com OR newsletter@banditonetworks.com OR newsletter@bankmarket.in OR newsletter@bow-wow.in OR newsletter@boxme9.com OR newsletter@e.landmarkshop.in OR newsletter@freedealcode.in OR newsletter@freekacharge.com OR newsletter@hotoffers.co.in OR newsletter@kwikinbox.com OR newsletter@lucentmails.in OR newsletter@magnemit.com OR newsletter@mailindiaa.com OR newsletter@netecart.com OR newsletter@offer4uhub.com OR newsletter@offeronmail.com\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldTrash\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldNeverSpam\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeOperator\u0026#39; value=\u0026#39;s_sl\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeUnit\u0026#39; value=\u0026#39;s_smb\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;/entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;category term=\u0026#39;filter\u0026#39;\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/category\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;title\u0026amp;amp;amp;amp;amp;amp;gt;Mail Filter\u0026amp;amp;amp;amp;amp;amp;lt;/title\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;id\u0026amp;amp;amp;amp;amp;amp;gt;tag:mail.google.com,2008:filter:1583315594823\u0026amp;amp;amp;amp;amp;amp;lt;/id\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;updated\u0026amp;amp;amp;amp;amp;amp;gt;2020-03-04T15:23:14Z\u0026amp;amp;amp;amp;amp;amp;lt;/updated\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;from\u0026#39; value=\u0026#39;newsletter@reldigit.co.in OR newsletter@savingsector.com OR newsletter@tsi.ai OR newsletter@update.esteemnewsemail.com OR newsletters@3.leo.bigritz.com OR newsletters@backendmails.com OR newsletters@dare2rare.com OR newsletters@eacketwizz.com OR newsletters@finolux.com OR newsletters@ibankserviceonline.com OR newsletters@isconmail.com OR newsletters@keepitinbox.com OR newsletters@m2i.in OR newsletters@mailonspot.com OR newsletters@mvxwr.info OR newsletters@postfixbox.com OR newsletters@smtpmailbox.com OR newsletters@wwfmails.com OR nishu-bdm@outlook.com OR no-reply@loginshortest.com OR noreply10@freshersworld.in OR noreply@160by2invite.com OR noreply@amubm.com OR noreply@aptoide.com OR noreply@bmsrv3.amubm.com OR noreply@buddyauth.com OR noreply@emails.mailersforyou.com OR noreply@groupiop.com OR noreply@imperialpharms.co.uk OR noreply@kwikinbox.com OR noreply@seedr.cc OR noreply@thalizma.com OR noreply@ttstoreusa.com OR noreply@valunewser.com OR notes@salekode.com OR notification@cashmeback.in OR notifications@impactradius-platform.com OR notifications@livehealthacademy.com OR notifications@zorpia.com OR notify@datingvipnotifications.com OR oaflmkiwhk@racyzuessxgf.com OR offial_984@outlook.com OR oja@e.2mg.in OR opw37@abv.bg OR orabellebacino@yahoo.com OR otis@dwayne.jzibd.com OR ouscevrsmith@gmail.com OR outlook@email2.office.com OR p.dehlinger@tubeo.eu OR p.linley@brighton.ac.uk OR page_319@b.is-hacked.cf OR parker0ciwhif@gmail.com OR parmila.pikeducation@gmail.com\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldTrash\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldNeverSpam\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeOperator\u0026#39; value=\u0026#39;s_sl\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeUnit\u0026#39; value=\u0026#39;s_smb\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;/entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;category term=\u0026#39;filter\u0026#39;\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/category\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;title\u0026amp;amp;amp;amp;amp;amp;gt;Mail Filter\u0026amp;amp;amp;amp;amp;amp;lt;/title\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;id\u0026amp;amp;amp;amp;amp;amp;gt;tag:mail.google.com,2008:filter:1583315594824\u0026amp;amp;amp;amp;amp;amp;lt;/id\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;updated\u0026amp;amp;amp;amp;amp;amp;gt;2020-03-04T15:23:14Z\u0026amp;amp;amp;amp;amp;amp;lt;/updated\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;from\u0026#39; value=\u0026#39;parul@e.simplego.in OR patelrobert19@gmail.com OR paul@seofox.co OR paul_vo2@aol.com OR peter@expertdesignsolutions.onlin OR peter@expertdesignsolutions.online OR petre.teodorescu@otelinox.ro OR pfranks@xtra.co.nz OR philipct@kinoene.com OR pmanoto@gmail.com OR priya@e.transitinbox.com OR priyanshiagarwal55@yahoo.com OR pxxdmq2sexjjz6cdggrizvmg3aejy4mb5yhqijcevfwngmxrblptzdiynudkq1fe1nmxpafrjrrbp734op9kcbst9fcuas91e7qyshjvh6oduvjeefk2euvpmadrwzpollvkpiebcolavby4tmb1im4ddig@xulpmm.bestgymworkoutroutines.com OR query@cetpainfotech.com OR rae.tenahu@xtra.co.nz OR rajani@a.chtah.com OR rankingservices@dollar.cheapwebsitehoster.com OR rashid@trustedappdeveloper.com OR ravensareblackeseo@outlook.com OR reliancedigital@ril.com OR relianceone@env.mailunicorn.com OR reports@cloudtimes.in OR rj@govastu.in OR rmehta8869@gmail.com OR robertjustin.@coral.ocn.ne.jp OR rodrigo.silva930@etec.sp.gov.br OR ron@motionanimation.site OR rose.parker@tecvix.info OR rosskenyongh@gmail.com OR ruchi@websollutions.com OR ruksion63620279130448491994@environmenthealthsafety.com OR rupal@yourinbox.in OR rupalisharma1456@outlook.com OR rustyvwalczak@gmail.com OR sales1@excel-technologies.in OR sales2@excelmarketing.in OR sales5@excelmarketing.in OR sales6@excelmarketing.in OR sales@101copywriters.com OR sales@24kcreativedesigns.com OR sales@99designershub.com OR sales@99designersinc.com OR sales@app3.studioxcess.net OR sales@bcan.in OR sales@bl0gs.space OR sales@brandaspiration.com\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldTrash\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldNeverSpam\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeOperator\u0026#39; value=\u0026#39;s_sl\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeUnit\u0026#39; value=\u0026#39;s_smb\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;/entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;category term=\u0026#39;filter\u0026#39;\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/category\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;title\u0026amp;amp;amp;amp;amp;amp;gt;Mail Filter\u0026amp;amp;amp;amp;amp;amp;lt;/title\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;id\u0026amp;amp;amp;amp;amp;amp;gt;tag:mail.google.com,2008:filter:1583315594824\u0026amp;amp;amp;amp;amp;amp;lt;/id\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;updated\u0026amp;amp;amp;amp;amp;amp;gt;2020-03-04T15:23:14Z\u0026amp;amp;amp;amp;amp;amp;lt;/updated\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;from\u0026#39; value=\u0026#39;sales@brandingistrending.com OR sales@canvadesigners.com OR sales@contentwritingservices.space OR sales@creativecodersonline.com OR sales@dialupagengy.biz OR sales@eb00k.club OR sales@fiverrdesigns.co.uk OR sales@graphicsdesignersonline.com OR sales@jeezanimations.world OR sales@logodesignsgallery.com OR sales@logopublic.com OR sales@logosandtrademark.com OR sales@mweb.co.in OR sales@myjapanautos.com OR sales@planyourlogo.com OR sales@store.mission-health.org OR sales@trippylogos.com OR sales@videojunkiesonline.com OR sales@vimeologo.com OR sales@viralanimationjunkies.com OR salescareer@freshersworld.in OR samantha@westernpapers.co.uk OR samsung.lond101@outlook.com OR samuel@opencodetreat.com OR sandeep.seomanager@yahoo.com OR sanjana@newwebtechsolutions.com OR sanya@a.chtah.com OR sara@e.simplego.in OR sarah.johnson@fortunedesign.live OR sarahtcontreras@gmail.com OR scan@clubbali.com OR schober@prodigy.net.mx OR scottb@yahoo.com OR shanaya@newwebtechsolutions.com OR sharma.ranbir@yahoo.com OR sheetal7109singh@gmail.com OR shikha@e.simplego.in OR shivani@e.simplego.in OR shreya@e.2mg.in OR sj.paige@gmail.con OR skorobulatova85@dreamhostps.com OR sneha.webprovider@outlook.com OR social@bm.perkyfish.com OR social@webizona.com OR somya@e.simplego.in OR sonu.createapps@outlook.com OR sophia@logorative.co.uk OR sophie.badger@outlook.com OR spn-h2@sitepronews.com OR srivastavayashi316@gmail.com OR sruti@a.chtah.com OR stellanathan@logonoir.com OR sudhanshuseoservices@gmail.com\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldTrash\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldNeverSpam\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeOperator\u0026#39; value=\u0026#39;s_sl\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeUnit\u0026#39; value=\u0026#39;s_smb\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;/entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;category term=\u0026#39;filter\u0026#39;\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/category\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;title\u0026amp;amp;amp;amp;amp;amp;gt;Mail Filter\u0026amp;amp;amp;amp;amp;amp;lt;/title\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;id\u0026amp;amp;amp;amp;amp;amp;gt;tag:mail.google.com,2008:filter:1583315594825\u0026amp;amp;amp;amp;amp;amp;lt;/id\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;updated\u0026amp;amp;amp;amp;amp;amp;gt;2020-03-04T15:23:14Z\u0026amp;amp;amp;amp;amp;amp;lt;/updated\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;from\u0026#39; value=\u0026#39;sulaiman@hyper.ocn.ne.jp OR support01pryvwhbz@deliciousdiabetic.co.uk OR support3kz1gzpycw@deliciousdiabetic.co.uk OR support@4067248939.fashionsportsradio.co.uk OR support@8mtq5htu1qeco39.infocusritehub.com OR support@azzjb18hqv.thebridesfamily.co.uk OR support@customwebagency.com OR support@dansbodyservice.com OR support@fndbl.com OR support@getvelfie.com OR support@mails.khalidmuhammadjee.com OR support@mails.logojoy.co OR support@oxygen-me.com OR support@powerinnovator.info OR support@samco.in OR support@singlemalted.com OR support@technologyy.com OR supportdzsdpifglc@deliciousdiabetic.co.uk OR survivaldad@purposedrivenemail.com OR susan@informativewebsite.site OR tactus@e.simplego.in OR tagdi@e.simplego.in OR talvindersingh@pragmaticleaders.io OR taniya@e.simplego.in OR tanya@e.transitinbox.com OR teresahollandswor@gmail.com OR teste@restaurantelavrador.com OR the.q-lap556.@image.ocn.ne.jp OR tina@glelectronic.cn OR tobo@e.simplego.in OR tokio@e.simplego.in OR tokyo.yh@vesta.ocn.ne.jp OR tosee227@eos.ocn.ne.jp OR tracy@animationdevelopment.site OR tracy@animationstory.site OR training@tevatrontech.org OR turner.bethany@aol.com OR tvvtkcaj@cffxnsrbrutq7qi.us OR ukprize.cz@outlook.com OR unccdivision.claims@mocha.ocn.ne.jp OR unccdivision.claims@olive.ocn.ne.jp OR update@101cars.trade OR update@alt.notifyonmail.com OR update@beta.global-mailtrends.com OR update@edm.shop-on-mail.com OR update@email-smtp1.com OR update@env.book-on-mail.com OR update@ep.nano-mails.com\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldTrash\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldNeverSpam\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeOperator\u0026#39; value=\u0026#39;s_sl\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeUnit\u0026#39; value=\u0026#39;s_smb\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;/entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;category term=\u0026#39;filter\u0026#39;\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/category\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;title\u0026amp;amp;amp;amp;amp;amp;gt;Mail Filter\u0026amp;amp;amp;amp;amp;amp;lt;/title\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;id\u0026amp;amp;amp;amp;amp;amp;gt;tag:mail.google.com,2008:filter:1583315594825\u0026amp;amp;amp;amp;amp;amp;lt;/id\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;updated\u0026amp;amp;amp;amp;amp;amp;gt;2020-03-04T15:23:14Z\u0026amp;amp;amp;amp;amp;amp;lt;/updated\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/content\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;from\u0026#39; value=\u0026#39;update@epost.blogonmail.com OR update@etc.worldonmail.com OR update@mta.updates-on-mail.com OR update@mtp.inboxads365.com OR update@net-for-all.com OR update@offersurprise.com OR update@pla.octa-mails.com OR update@pos.mailjio.com OR update@site.easyjobs365.com OR update@srv.jobs-on-mail.com OR update@trans.travelonmail.com OR update@truelancer.in OR update@utm.mails-server.com OR updates@am.perkyfish.com OR user@mysending32.com OR usha@freshersworld.in OR va.loan.#133873918541@havrby.xyz OR vip@70r.offerpartners.com OR vjddseybs@pullmail.info OR vodafonemobileserviceslimited@gmail.com OR vvlascen@xoanssrykhac5sz.us OR w.@air.ocn.ne.jp OR w_jackson52@aol.com OR webmaster@clearmail.com.au OR websitemarket@round.domainsiteregistration.com OR webud@wokcy.com OR williams.itorgansiation@gmail.com OR window-deals@lawerus.xyz OR wordpress@demo3.litextension.com OR wordpress@demo5.litextension.com OR wu.netspend.prepaid.card@nciterm.xyz OR wu.netspend.prepaid.card@ovirand.xyz OR ww.@ray.ocn.ne.jp OR www.@aroma.ocn.ne.jp OR www.@drive.ocn.ne.jp OR www.@ray.ocn.ne.jp OR www.@siren.ocn.ne.jp OR www.@viola.ocn.ne.jp OR y17r33o2ysqhe8msfgcemgh9kay0teiu4djxhpweyo4g3gc1nrnegohgmmixkmhtnait7cvkvbcsvzjbbtuvyrjd5u6wenqoahm7x8z7dnt25trcejn0imqrvqhfawzzyvaplesww9ocza4wvpkeui3539x@oldycg.bestgymworkoutroutines.com OR yadavpoonam4@outlook.com OR ygwg4n8fyfs1y8yb1ulf.ygwg4n8fyfs1y8yb1ulf@maodlpa.publicvm.com OR ysamepcv@93qk6erzouwrmrh.us OR yyy@pastel.ocn.ne.jp OR zainababdul233@gmail.com\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldTrash\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;shouldNeverSpam\u0026#39; value=\u0026#39;true\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeOperator\u0026#39; value=\u0026#39;s_sl\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;apps:property name=\u0026#39;sizeUnit\u0026#39; value=\u0026#39;s_smb\u0026#39;/\u0026amp;amp;amp;amp;amp;amp;gt; \u0026amp;amp;amp;amp;amp;amp;lt;/entry\u0026amp;amp;amp;amp;amp;amp;gt;\u0026amp;amp;amp;amp;amp;amp;lt;/feed\u0026amp;amp;amp;amp; \u0026lt;/pre\u0026gt; \u0026lt;h3\u0026gt;Some of the spam email addresses in my filter list:\u0026lt;/h3\u0026gt; \u0026lt;h4\u0026gt;Note: You might have to create multiple filters because one search can not contain more than \u0026lt;b\u0026gt;1000 characters\u0026lt;/b\u0026gt;\u0026lt;/h4\u0026gt; \u0026lt;p\u0026gt;\u0026lt;a href=\u0026#34;https://raw.githubusercontent.com/harshvardhanmalpani/Spam-List/master/list.md\u0026#34; rel=\u0026#34;noopener noreferrer\u0026#34; target=\u0026#34;_blank\u0026#34;\u0026gt;Whole list of spammers\u0026lt;/a\u0026gt;\u0026lt;/p\u0026gt; \u0026lt;pre\u0026gt;\u0026lt;pre class=\u0026#34;brush: bash; title: ; notranslate\u0026#34; title=\u0026#34;\u0026#34;\u0026gt; 002jaymehta@gmail.com 111.@proof.ocn.ne.jp 11111.@marble.ocn.ne.jp 133873918541@havrby.xyz 5901822@aruba.it 62711059@mylife.unisa.ac.za 99@a.chtah.com 99@e.2mg.in 99@e.alcondigital.com 99@e.simplego.in 99@e.transitinbox.com 9y4m4andv1yhs7jvq4bbwxtv5yiporhlw97iztitqry09glpva07pfdufxzhsjqqlkm7zsfjfs5nvjxz2ubonhenzxozlv24vyftfpwly68sbeddaxwnxtkgbe7mhadyk199bwlwxzcdapz3vtm7xww1rlq@wv8nmu.bestgymworkoutroutines.com Ben_alpha.chambers@qualityservice.com SanjayModi74@outlook.com VIP@s0a.offerpartners.com aabha@netnode.in aad94p@jioderigy.com aagam.singh@outlook.com aaniyashingh@aol.com aarkaytraders12@gmail.com aarushphpdevloper44@gmail.com abuse@namenname.org abuse@publicdomainregistry.com account@bidvertiser.com admin@adnet-online.at admin@bigdreamzserver.info admin@epaidprogram.com admin@onlineqai.in admin@upcbbd.com adrian.smith@hopeopitte.xyz aimee.hendrycks@nycdesignsinc.com akiraso@tim.it akram.lamba@timesgroup.com alauk.ag@gmail.com albert@my-seo.tech alex@logodesignsite.site alex@opencodetreat.com alia.bhat@ezycollege.com alinalanina1@gmail.com alisha@verifiedrank.com allexwalter22@gmail.com amazo@e.simplego.in amelia5277tur@gmail.com amrutha@freshersworld.in andrew@replaypoker.com andy@videohouse.site angelo973@h.xanonymous.gq anika.maia34@gmail.com anilkumar00607@yahoo.com aninskci@uecls7pdyldlhoe.us anjali@proudsystems.com ankit@click-by-seo.online ankit@splurgingplu.online ankita@e.freekacharge.in ankita@e.transitinbox.com ankitakapoor31@yahoo.com antionemueller@aol.com apmpkiwybgog4tttnosh.apmpkiwybgog4tttnosh@hobnalak.publicvm.com arpitkatiyar04@hotmail.com arpitkatiyar11@hotmail.com arshpreet@iparmlegal.com arvi@yuho.in arvind@codebreak.info asemeo@e.simplego.in ashlee@replaypoker.com attached_o@yahoo.co.uk austin@ceberalwriting.club aya99@e.2mg.in barbarakldonsch@aol.com beatricewingler@gmail.com bert040@tim.it bloodtestathome@healthoffers.biz bongiornobodiford26@gmail.com brandedsms@live.com brandon@bestcontenthelp.com bret@graphicsanimator.site brian_robinson41@aol.com brofsky@cox.net bryantmelba@gmail.com bullpout@haroldthese.date butler@ownmobileapp.co buyonline@vodafone.com bxbaedwp@sqkcmovvia5z7wy.us c.diningelegance@mw.twcbc.com cargodliveryunitchicago.@woody.ocn.ne.jp carsonlouis@consultant.com cassio.silva73@etec.sp.gov.br ceo@federal.com ceo@federalreserve.com certificate@ednxt.info certificate@manipalprolearnedu.com chapmanthomasji@gmail.com charlespayne469w@aol.com cheapsmsemail@gmail.com chevroletmotorsuk87@outlook.com chevroletmotorsukclaimsprize@outlook.com chhaya@onlinelab.info chotiya@a.chtah.com christian.feemers@t-online.de christina.worldwideemaillist@gmail.com claimunit_cash4u6487879@outlook.com clair@ebaypro.biz clla.@fine.ocn.ne.jp colemanjeffreyec@gmail.com contact055962866262059@happyhealthyhearts.co.uk contact975799027124606@happyhealthyhearts.co.uk contact@body.bellyreducingfat.com contact@domain-submit.eu cooper@gamma.ocn.ne.jp cooper@tea.ocn.ne.jp cooperj@gamma.ocn.ne.jp creditsesame.com@mousedive.xyz d.trump@futiogs.xyz d@zomato.com dabrtccc@gmail.com danielwa@yamamotoya.com daslda22@outlook.com david.crawford36@aol.com david.wilson@wikiprosinc.com davidwarner.webexpert@gmail.com debby.wade@aspiretec.info derrick@boostwebsolution.com desm424@gmail.com dharamsharma22@aol.com dhiren@dotsinnovations.com dhlofficemail01@yandex.com dimpi@a.chtah.com dkdhte12@abv.bg do-not-reply@magentodesignshop.com do-not-reply@woocommercedesigns.com do-not-reply@wordpressdesignhub.com domainlisting@enthuse.computernetworksonline.com domainmarketing@work.iwisher.com domains@regdomainse.com domainservices@iwisher.com donation2018wb@olive.ocn.ne.jp dora.reed@fundtec.info duke@e.simplego.in ednabrant456@gmail.com egreene@rivier.edu eikoh@crocus.ocn.ne.jp ekta@mweb.co.in email@alerts.mailmusk.com emily@vimeologo.com emyfergusen@gmail.com erect.on.demand@madmajoys.xyz evan.uxdesigner@yahoo.com evans.wilson1945@outlook.com fantasycricket@dream11.com fantasysports@dream11.com fb@mailfb.in federal.@aroma.ocn.ne.jp flemingepxholly@gmail.com fmlotrl@walla.co.il fra@pregelse.xyz freetrial@0dy.affpartners.com genival@fct.unesp.br georgethaing@gmail.com gerry@imf.com get2benson@gmail.com gezelaine.souza@etec.sp.gov.br gloriareynolds1972@gmail.com gordonhayeesgf@gmail.com greene_james@aol.com groupworld45@live.com guttered@hotborutautumn.top haggermakerbrookede@gmail.com harryrees399t@aol.com harsh@gmail.com hebertwixomtm7@gmail.com hello@3xdesignservice.com hello@99ds.us hello@bigmarker.com hello@craftivebranding.co hello@mailerassist.com hey@custombrandingguru.com hey@logo-moto.com hey@onlinebrandingstudio.com hey@perfectbrandonline.com hidek@arrow.ocn.ne.jp hikida@theia.ocn.ne.jp hildebrandhlindsay6@gmail.com hinesrobin@consultant.com hit@frogsgorgeous.org hobsondanielwe@gmail.com hostmasters@user-support-vericactionc.com hudbnas1@abv.bg hussam@gmail.com ijccom91@gmail.com info1436651433@owningabeautysalon.co.uk info1@angel.ocn.ne.jp info4511125849@latestethnicwear.co.uk info8574709340@latestethnicwear.co.uk info@5xfniljeff.gainfulfreshbl.co.uk info@adzinnovative.in info@ampleclick.com info@amyq.formirror.com info@areginaloman.com info@bareflawed.com info@bestserversdeal.com info@brinjal.info info@bulksmsserviceproviders.com info@cercindiapost.org info@charmpractical.com info@cloudtech.in.net info@commtrends.in info@compoundintrest.com info@crm.casaconsultant.com info@crm.utrans01.com info@dansbodyservice.co.uk info@dansbodyservice.com info@datacloud.in.net info@dataticketsyou.com info@ddi.affpartners.com info@dfycsflwup.parablestory.co.uk info@digi.mailscart.com info@digitalnotice.se info@displaymailbox.com info@domain-notice.tk info@duvcvehjnq.gainfulfreshbl.co.uk info@dyt.offerpartners.com info@e.shoponmail.in info@easylogocreations.info info@ecomtrendz.com info@edm.efinmail.com info@em.india-furniture.co.in info@email.mailscart.com info@es.finance-plus.in info@exalt-design.co info@expo.org info@expo.org.net info@export.com info@export.org info@fistcurved.org info@fleurs-decorations.us info@gokaarts.com info@grsoftsolutions.biz info@hrumhfhoqs.inspiringfitnessworld.co.uk info@itwebservices.biz info@jewelslane.com info@jmails.info info@ketto.org info@leftromantic.co info@logo-designs.se info@lucifro.com info@mail9.info info@mailclues.info info@mailindiaa.com info@mails.shiningindiaa.com info@mc.progressingindia.com info@mc.shiningindiaa.com info@myamazers.in info@mydigitalindia.xyz info@mysending77.com info@natureislandskincare.com info@naukripakki.in info@noticedomain.se info@noticedomains.co info@oqk6izdcm3.inspiringfitnessworld.co.uk info@oreomanager.com info@parcelspotty.org info@powerhouses.net info@proudlegal.com info@qo7r6ao4ww.inspiringfitnessworld.co.uk info@raventranscription.info info@rcpt.utrans01.com info@rheehfsryb.gymworkoutplans.co.uk info@rkcdesign.us info@rt.mailindiapro.com info@serverauthor.top info@serverbest.top info@serverblack.top info@servpowernet.com info@signrequest-mail.com info@simpindonesia.pw info@simptickets.pw info@sm.progressingindia.com info@spenn.co.il info@steadfastserver.com info@techinfoserve.in.net info@technosystech.in info@tekjioemail.com info@todaymstr.com info@topratedservice.online info@umeacademy.com info@ventriculary.co info@vhjkmfxxdcmvnxt6xq2w.specimensrobert.co.uk info@webizona.com info@webizona.org info@webservicesportals.xyz info@xltaffiliate.com info@xp.org info@zugvfnycw7.teachersfavorites.co.uk infonugascoegbagirest-1234648612@cybersclow.me informxapp@lumennomen.com isseaterta1985@yahoo.com ithelpdesk@artissimodesigns.com ivlanyhow@airpurifyingsystems.com jacob@webappsusa.info james@webcommerce.site jaquelinezieler7357@aol.com jayaapps@outlook.com jayashreeraj1234@gmail.com jcooper@arion.ocn.ne.jp jecob1552@rediffmail.com jeromepowell.@movie.ocn.ne.jp jj0hnscott@yandex.com jobmessenger@monsterindia.com jobs@aspiringminds.in jobs@myamcat.com joe_minas@utrin.cz joeannbauer566@gmail.com joepullman813@gmail.com jontan220@e-mail.pk josephsamuelf@gmail.com joshua@ebaypro.biz justin@riversoflife.org.sg kajal.agarwal@ezycollege.com karan66vahi@outlook.com karen@2danimation.site kfinkartupdates@karvy.com khanvegaley@gmail.com kiran@appziq.com kotak@mloyalnewsletter.com kristine.emc@gmail.com ksandep884@gmail.com kvcbosxpzaek@ydzuhpje.com kvinjones01@gmail.com lably.singh@aol.com ladies@hgg.offerpartners.com lanasilva@animationglaze.com landan@e.simplego.in lara.dreamit@gmail.com larrydavidg6@gmail.com lavania@e.simplego.in learn@learnvibes.net lester_spencer2@aol.com linah56@mobiloan.xyz lottery_uk10@yahoo.com lpzvikmy@acqohyw6nhvomzh.us luckeylaustrame31@gmail.com m_heidi15@aol.fr mail@rexon.co.in mailer@newsletter-mopng.com mails@amails.in maliajadon@hotmail.com malini@a.chtah.com malini@e.freekacharge.in malini@e.simplego.in maniya@e.simplego.in mansi@e.2mg.in manvi@e.simplego.in marcus_exelby@jackmorton.co.uk margarettalamantes@aol.com maria@e.2mg.in maria@sociodigit.tech marvin.webtechnology@outlook.com mason@businessupviaapp.com melinabethard3845@aol.com melissatipdfler@aol.com melora@e.2mg.in men\u0026#39;shealth@sry.affpartners.com mfernandez1@rivier.edu mgbygblk@i3zuj8qva9zpcqr.us mi4r0afsovflhcrftx94q9lfpstgmoiz6gni92sjbffurhgrr2ile4ao0lsaxwmdtqwc09cqfxx7jrr1x03xtnryqrnfbbwofhbi4mbl0qxokceuydwr7rveetjrppxnywqn6agv1oyqa66sybsz5kryzu4@bkd7hb.bestgymworkoutroutines.com michael@probizrank.com michealsharon6@gmail.com micros1f@outlook.com miklejack@laughingforhealth.com miklejackdzkdtzy7ra@laughingforhealth.com miklejackff0jydtpsb@laughingforhealth.com miklejackj9fp3zlinj@laughingforhealth.com miklejackonuwzmsk3j@laughingforhealth.com miklejackrijqmow0yd@laughingforhealth.com millerittechonology@gmail.com miriamsonya.infotech@yahoo.com misael_calzada@prodigy.net.mx mishka@webmovicare.com mitzidraves1004@aol.com mohini@a.chtah.com mohit@leadingappdeveloper.com morgan@esade.edu morgchasedept@verizon.net mote@a.chtah.com mote@e.2mg.in movies@mails.justdialmail.com mr.salam6357@gmail.com mrsrose.e@yahoo.com musman405@gmail.com mvergara@vecinoslaparva.cl mysweetcheekseweb@outlook.com n.ergun@arentelekom.com nao.@proof.ocn.ne.jp navya@e.2mg.in navya@e.transitinbox.com nbafantasy@dream11.com neea@acrowebtechnologies.com nehagupta@click-by-seo.online nehruplace@firstflight.net nelidamartin510@gmail.com news@dexterousdigitech.com newsletter@banditonetworks.com newsletter@bankmarket.in newsletter@bow-wow.in newsletter@boxme9.com newsletter@e.landmarkshop.in newsletter@freedealcode.in newsletter@freekacharge.com newsletter@hotoffers.co.in newsletter@kwikinbox.com newsletter@lucentmails.in newsletter@magnemit.com newsletter@mailindiaa.com newsletter@netecart.com newsletter@offer4uhub.com newsletter@offeronmail.com newsletter@reldigit.co.in newsletter@savingsector.com newsletter@tsi.ai newsletter@update.esteemnewsemail.com newsletters@3.leo.bigritz.com newsletters@backendmails.com newsletters@dare2rare.com newsletters@eacketwizz.com newsletters@finolux.com newsletters@ibankserviceonline.com newsletters@isconmail.com newsletters@keepitinbox.com newsletters@m2i.in newsletters@mailonspot.com newsletters@mvxwr.info newsletters@postfixbox.com newsletters@smtpmailbox.com newsletters@wwfmails.com nishu-bdm@outlook.com no-reply@loginshortest.com noreply10@freshersworld.in noreply@160by2invite.com noreply@amubm.com noreply@aptoide.com noreply@bmsrv3.amubm.com noreply@buddyauth.com noreply@emails.mailersforyou.com noreply@groupiop.com noreply@imperialpharms.co.uk noreply@kwikinbox.com noreply@seedr.cc noreply@thalizma.com noreply@ttstoreusa.com noreply@valunewser.com notes@salekode.com notification@cashmeback.in notifications@impactradius-platform.com notifications@livehealthacademy.com notifications@zorpia.com notify@datingvipnotifications.com oaflmkiwhk@racyzuessxgf.com offial_984@outlook.com oja@e.2mg.in opw37@abv.bg orabellebacino@yahoo.com otis@dwayne.jzibd.com ouscevrsmith@gmail.com outlook@email2.office.com p.dehlinger@tubeo.eu p.linley@brighton.ac.uk page_319@b.is-hacked.cf parker0ciwhif@gmail.com parmila.pikeducation@gmail.com parul@e.simplego.in patelrobert19@gmail.com paul@seofox.co paul_vo2@aol.com peter@expertdesignsolutions.onlin peter@expertdesignsolutions.online petre.teodorescu@otelinox.ro pfranks@xtra.co.nz philipct@kinoene.com pmanoto@gmail.com priya@e.transitinbox.com priyanshiagarwal55@yahoo.com pxxdmq2sexjjz6cdggrizvmg3aejy4mb5yhqijcevfwngmxrblptzdiynudkq1fe1nmxpafrjrrbp734op9kcbst9fcuas91e7qyshjvh6oduvjeefk2euvpmadrwzpollvkpiebcolavby4tmb1im4ddig@xulpmm.bestgymworkoutroutines.com query@cetpainfotech.com rae.tenahu@xtra.co.nz rajani@a.chtah.com rankingservices@dollar.cheapwebsitehoster.com rashid@trustedappdeveloper.com ravensareblackeseo@outlook.com reliancedigital@ril.com relianceone@env.mailunicorn.com reports@cloudtimes.in rj@govastu.in rmehta8869@gmail.com robertjustin.@coral.ocn.ne.jp rodrigo.silva930@etec.sp.gov.br ron@motionanimation.site rose.parker@tecvix.info rosskenyongh@gmail.com ruchi@websollutions.com ruksion63620279130448491994@environmenthealthsafety.com rupal@yourinbox.in rupalisharma1456@outlook.com rustyvwalczak@gmail.com sales1@excel-technologies.in sales2@excelmarketing.in sales5@excelmarketing.in sales6@excelmarketing.in sales@101copywriters.com sales@24kcreativedesigns.com sales@99designershub.com sales@99designersinc.com sales@app3.studioxcess.net sales@bcan.in sales@bl0gs.space sales@brandaspiration.com sales@brandingistrending.com sales@canvadesigners.com sales@contentwritingservices.space sales@creativecodersonline.com sales@dialupagengy.biz sales@eb00k.club sales@fiverrdesigns.co.uk sales@graphicsdesignersonline.com sales@jeezanimations.world sales@logodesignsgallery.com sales@logopublic.com sales@logosandtrademark.com sales@mweb.co.in sales@myjapanautos.com sales@planyourlogo.com sales@store.mission-health.org sales@trippylogos.com sales@videojunkiesonline.com sales@vimeologo.com sales@viralanimationjunkies.com salescareer@freshersworld.in samantha@westernpapers.co.uk samsung.lond101@outlook.com samuel@opencodetreat.com sandeep.seomanager@yahoo.com sanjana@newwebtechsolutions.com sanya@a.chtah.com sara@e.simplego.in sarah.johnson@fortunedesign.live sarahtcontreras@gmail.com scan@clubbali.com schober@prodigy.net.mx scottb@yahoo.com shanaya@newwebtechsolutions.com sharma.ranbir@yahoo.com sheetal7109singh@gmail.com shikha@e.simplego.in shivani@e.simplego.in shreya@e.2mg.in sj.paige@gmail.con skorobulatova85@dreamhostps.com sneha.webprovider@outlook.com social@bm.perkyfish.com social@webizona.com somya@e.simplego.in sonu.createapps@outlook.com sophia@logorative.co.uk sophie.badger@outlook.com spn-h2@sitepronews.com srivastavayashi316@gmail.com sruti@a.chtah.com stellanathan@logonoir.com sudhanshuseoservices@gmail.com sulaiman@hyper.ocn.ne.jp support01pryvwhbz@deliciousdiabetic.co.uk support3kz1gzpycw@deliciousdiabetic.co.uk support@4067248939.fashionsportsradio.co.uk support@8mtq5htu1qeco39.infocusritehub.com support@azzjb18hqv.thebridesfamily.co.uk support@customwebagency.com support@dansbodyservice.com support@fndbl.com support@getvelfie.com support@mails.khalidmuhammadjee.com support@mails.logojoy.co support@oxygen-me.com support@powerinnovator.info support@samco.in support@singlemalted.com support@technologyy.com supportdzsdpifglc@deliciousdiabetic.co.uk survivaldad@purposedrivenemail.com susan@informativewebsite.site tactus@e.simplego.in tagdi@e.simplego.in talvindersingh@pragmaticleaders.io taniya@e.simplego.in tanya@e.transitinbox.com teresahollandswor@gmail.com teste@restaurantelavrador.com the.q-lap556.@image.ocn.ne.jp tina@glelectronic.cn tobo@e.simplego.in tokio@e.simplego.in tokyo.yh@vesta.ocn.ne.jp tosee227@eos.ocn.ne.jp tracy@animationdevelopment.site tracy@animationstory.site training@tevatrontech.org turner.bethany@aol.com tvvtkcaj@cffxnsrbrutq7qi.us ukprize.cz@outlook.com unccdivision.claims@mocha.ocn.ne.jp unccdivision.claims@olive.ocn.ne.jp update@101cars.trade update@alt.notifyonmail.com update@beta.global-mailtrends.com update@edm.shop-on-mail.com update@email-smtp1.com update@env.book-on-mail.com update@ep.nano-mails.com update@epost.blogonmail.com update@etc.worldonmail.com update@mta.updates-on-mail.com update@mtp.inboxads365.com update@net-for-all.com update@offersurprise.com update@pla.octa-mails.com update@pos.mailjio.com update@site.easyjobs365.com update@srv.jobs-on-mail.com update@trans.travelonmail.com update@truelancer.in update@utm.mails-server.com updates@am.perkyfish.com user@mysending32.com usha@freshersworld.in va.loan.#133873918541@havrby.xyz vip@70r.offerpartners.com vjddseybs@pullmail.info vodafonemobileserviceslimited@gmail.com vvlascen@xoanssrykhac5sz.us w.@air.ocn.ne.jp w_jackson52@aol.com webmaster@clearmail.com.au websitemarket@round.domainsiteregistration.com webud@wokcy.com williams.itorgansiation@gmail.com window-deals@lawerus.xyz wordpress@demo3.litextension.com wordpress@demo5.litextension.com wu.netspend.prepaid.card@nciterm.xyz wu.netspend.prepaid.card@ovirand.xyz ww.@ray.ocn.ne.jp www.@aroma.ocn.ne.jp www.@drive.ocn.ne.jp www.@ray.ocn.ne.jp www.@siren.ocn.ne.jp www.@viola.ocn.ne.jp y17r33o2ysqhe8msfgcemgh9kay0teiu4djxhpweyo4g3gc1nrnegohgmmixkmhtnait7cvkvbcsvzjbbtuvyrjd5u6wenqoahm7x8z7dnt25trcejn0imqrvqhfawzzyvaplesww9ocza4wvpkeui3539x@oldycg.bestgymworkoutroutines.com yadavpoonam4@outlook.com ygwg4n8fyfs1y8yb1ulf.ygwg4n8fyfs1y8yb1ulf@maodlpa.publicvm.com ysamepcv@93qk6erzouwrmrh.us yyy@pastel.ocn.ne.jp zainababdul233@gmail.com \u0026lt;/pre\u0026gt; \u0026lt;div id=\u0026#34;septupdate\u0026#34;\u0026gt;\u0026lt;/div\u0026gt; \u0026lt;p\u0026gt;\u0026lt;ins\u0026gt;September Update\u0026lt;/ins\u0026gt;\u0026lt;/p\u0026gt; \u0026lt;h2\u0026gt;Latest way to be followed for SPAM blocking is as follows:\u0026lt;/h2\u0026gt; \u0026lt;p\u0026gt;\u0026lt;mark\u0026gt;Do NOT follow both the procedures, only one of these is enough\u0026lt;/mark\u0026gt;\u0026lt;/p\u0026gt; \u0026lt;h2\u0026gt;Step 1: Log in to your \u0026lt;a href=\u0026#34;https://gmail.com\u0026#34;\u0026gt;Gmail account\u0026lt;/a\u0026gt;\u0026lt;/h2\u0026gt; \u0026lt;h2\u0026gt;Step 2: Go to Settings\u0026lt;/h2\u0026gt; \u0026lt;p\u0026gt;\u0026lt;figure aria-describedby=\u0026#34;caption-attachment-202-2\u0026#34; class=\u0026#34;wp-caption aligncenter\u0026#34; id=\u0026#34;attachment_202-2\u0026#34; style=\u0026#34;width: 276px\u0026#34;\u0026gt;\u0026lt;a href=\u0026#34;/wp-content/uploads/2018/03/gmail-settings.jpg\u0026#34;\u0026gt;\u0026lt;img alt=\u0026#34;\u0026#34; class=\u0026#34;size-full wp-image-202\u0026#34; height=\u0026#34;377\u0026#34; src=\u0026#34;/wp-content/uploads/2018/03/gmail-settings.jpg\u0026#34; width=\u0026#34;276\u0026#34;/\u0026gt;\u0026lt;/a\u0026gt;\u0026lt;figcaption class=\u0026#34;wp-caption-text\u0026#34; id=\u0026#34;caption-attachment-202-2\u0026#34;\u0026gt;Gmail settings\u0026lt;/figcaption\u0026gt;\u0026lt;/figure\u0026gt;\u0026lt;/p\u0026gt; \u0026lt;h2\u0026gt;Step 3: Delete all previous filters if any, and then click on \u0026lt;strong\u0026gt;Import Filters\u0026lt;/strong\u0026gt;\u0026lt;/h2\u0026gt; \u0026lt;p\u0026gt;\u0026lt;figure aria-describedby=\u0026#34;caption-attachment-1625\u0026#34; class=\u0026#34;wp-caption aligncenter\u0026#34; id=\u0026#34;attachment_1625\u0026#34; style=\u0026#34;width: 840px\u0026#34;\u0026gt;\u0026lt;a href=\u0026#34;/wp-content/uploads/2018/03/filters-and-blocked-addresses.png\u0026#34;\u0026gt;\u0026lt;img alt=\u0026#34;\u0026#34; class=\u0026#34;size-large wp-image-1625\u0026#34; height=\u0026#34;357\u0026#34; src=\u0026#34;/wp-content/uploads/2018/03/filters-and-blocked-addresses-1024x435.png\u0026#34; width=\u0026#34;840\u0026#34;/\u0026gt;\u0026lt;/a\u0026gt;\u0026lt;figcaption class=\u0026#34;wp-caption-text\u0026#34; id=\u0026#34;caption-attachment-1625\u0026#34;\u0026gt;Click on Import Filters\u0026lt;/figcaption\u0026gt;\u0026lt;/figure\u0026gt;\u0026lt;/p\u0026gt; \u0026lt;h2\u0026gt;Step 4: Upload the xml file that you downloaded from here: \u0026lt;a href=\u0026#34;https://raw.githubusercontent.com/harshvardhanmalpani/Spam-List/master/filter_import_for_gmail.xml\u0026#34; title=\u0026#34;ready to import gmail spam filters\u0026#34;\u0026gt;Link to filters in xml\u0026lt;/a\u0026gt;\u0026lt;/h2\u0026gt; \u0026lt;p\u0026gt;\u0026lt;figure aria-describedby=\u0026#34;caption-attachment-1626\u0026#34; class=\u0026#34;wp-caption aligncenter\u0026#34; id=\u0026#34;attachment_1626\u0026#34; style=\u0026#34;width: 741px\u0026#34;\u0026gt;\u0026lt;a href=\u0026#34;/wp-content/uploads/2018/03/choose-xml-file-to-import.png\u0026#34;\u0026gt;\u0026lt;img alt=\u0026#34;\u0026#34; class=\u0026#34;size-full wp-image-1626\u0026#34; height=\u0026#34;134\u0026#34; src=\u0026#34;/wp-content/uploads/2018/03/choose-xml-file-to-import.png\u0026#34; width=\u0026#34;741\u0026#34;/\u0026gt;\u0026lt;/a\u0026gt;\u0026lt;figcaption class=\u0026#34;wp-caption-text\u0026#34; id=\u0026#34;caption-attachment-1626\u0026#34;\u0026gt;choose xml file to import\u0026lt;/figcaption\u0026gt;\u0026lt;/figure\u0026gt;\u0026lt;/p\u0026gt; \u0026lt;h2\u0026gt;Step 5: Click on open file and then you will see that all filters are loaded. Make sure you tick \u0026lt;mark\u0026gt;Apply new filters to existing email.\u0026lt;/mark\u0026gt; and then click on \u0026lt;strong\u0026gt;Create Filters\u0026lt;/strong\u0026gt;\u0026lt;/h2\u0026gt; \u0026lt;p\u0026gt;\u0026lt;figure aria-describedby=\u0026#34;caption-attachment-1627\u0026#34; class=\u0026#34;wp-caption aligncenter\u0026#34; id=\u0026#34;attachment_1627\u0026#34; style=\u0026#34;width: 842px\u0026#34;\u0026gt;\u0026lt;a href=\u0026#34;/wp-content/uploads/2018/03/apply-new-filters.png\u0026#34;\u0026gt;\u0026lt;img alt=\u0026#34;\u0026#34; class=\u0026#34;size-full wp-image-1627\u0026#34; height=\u0026#34;272\u0026#34; src=\u0026#34;/wp-content/uploads/2018/03/apply-new-filters.png\u0026#34; width=\u0026#34;842\u0026#34;/\u0026gt;\u0026lt;/a\u0026gt;\u0026lt;figcaption class=\u0026#34;wp-caption-text\u0026#34; id=\u0026#34;caption-attachment-1627\u0026#34;\u0026gt;Create Filters\u0026lt;/figcaption\u0026gt;\u0026lt;/figure\u0026gt;\u0026lt;/p\u0026gt; \u0026lt;h2\u0026gt;Step 6: There is no step 6, wait and watch. All those filters will get created and will make you rid of SPAM\u0026lt;/h2\u0026gt; \u0026lt;/pre\u0026gt; ","permalink":"https://tutes.in/how-to-stop-spam-in-gmail-account-a-guide-to-creating-filters-in-google-mail/","summary":"\u003cp\u003eSPAM, don’t we hate it when our inbox is full of credit card offers, insurance policies and billions of pounds that some rich dude left for you in his will? Everyone wants to get rid of them but somehow, some stupid website out there keeps leaking on our email address and we keep receiving stupid junk emails.\u003c/p\u003e\n\u003cp\u003eWe all know that \u003ca href=\"https://en.wikipedia.org/wiki/Email_spam\"\u003eSPAM or Junk Email\u003c/a\u003e means unsolicited messages that you receive by email. But here is a fun fact:\u003c/p\u003e","title":"How to stop SPAM in gmail account permanently? A guide to creating filters in Google Mail [no third party app]"},{"content":"So Why is Paypal bad? No, In theory It is not bad. It is an easy mode of payment transfer when comes to my international clients. But being an Indian citizen, why I never prefer Paypal as payment mode. Let us take a look.\nSo, I am going to explain it with an example of payment that I received from United Kingdom.\nMy client sent me 103.60 GBP which at the time of transaction was equivalent to 9334.35 INR.\nStage A Initial Fee = (4.4% + Fixed fee) * taxes as per Indian Government (Currently 18% GST)\n= (4.4% of 103.6 GBP + 0.2 GBP ) x 1.18 = (4.5584 + 0.2 ) x 1.18 = 4.7584 x 1.18 = 5.614912 GBP = 5.62 GBP was charged So, my Paypal amount is now 97.98 GBP (103.6 – 5.62 = 97.98)\nStage B Now for some vague reason, Paypal India stores money in USD as base currency, so My Paypal balance showed 131.64 USD instead of 97.98 GBP. The important point to note here is that value of 131.64 USD at that moment was 95.22 GBP\nWhen I argued Paypal support guys over this conversion, first of all they did not have an answer so they assumed some different question on their own. Later on they told me:\nThank you for your reply. I know that it can be confusing when you believe that you were charged more than you should have been in fees, but I am here to help!\nPayPal uses the most up-to-date conversion rates at the time that a transaction is processed, however conversion rates are fluctuating constantly, which could explain why there is a difference in conversion rates that you are seeing.\nI apologize for any frustrating this situation may have caused you. -Sarah\nSomebody tell me when was the last time you saw a fluctuation of 2.812% in USD-GBP index in 24hr span?\nSo at present scenario I am left with 131.64 USD in my Paypal balance.\nStage 3 Now I wanted that money to sit in my bank account, so obviously I needed to withdraw in INR. I requested for a withdrawal and I was bound to acknowledge a sum credit of INR 8,242.53 (Of course 4% Fee is charged for Currency Conversion to INR)\nso How much I got in Total – 8,242.53 INR!\nWe had started with 9,334.35 INR and I received 8,242.53 INR at the end which means a total of 1,091.82 INR (11.697% ) was somewhere lost in between in form of fees or taxes.\nSummary of Fees and Charges vs Money lost in each stage using Paypal Remark Amt. Amount of Money leaked What client paid 103.60 GBP NIL PayPal Fees -5.62 GBP 5.425% What I received 97.98 GBP 5.425% Paypal Balance 131.64 USD 8.088% What I ultimately received 8,242.53 INR 11.697% Here is the reference sheet –\nhttps://www.paypal.com/in/webapps/mpp/ua/useragreement-full#exhibit_A\n","permalink":"https://tutes.in/receiving-money-in-india-why-paypal-sucks-and-what-are-the-charges/","summary":"\u003cp\u003eSo Why is Paypal bad? No, In theory It is not bad. It is an easy mode of payment transfer when comes to my international clients. But being an Indian citizen, why I never prefer Paypal as payment mode. Let us take a look.\u003c/p\u003e\n\u003cp\u003eSo, I am going to explain it with an example of payment that I received from United Kingdom.\u003cbr\u003e\nMy client sent me \u003cmark\u003e103.60 GBP\u003c/mark\u003e which at the time of transaction was equivalent to \u003cmark\u003e9334.35 INR\u003c/mark\u003e.\u003c/p\u003e","title":"Receiving money in India | Why PayPal sucks and What are the charges?"},{"content":"The problem: Magento 2 wont return any search results if the search token is 2 letters in length.\nSolution: Alter MySQL conf file. Edit my.cnf file on your server\nIn CentOS, use command\nnano /etc/my.cnf and add the following lines:\nft_min_word_len=2 innodb_ft_min_token_size=2 Save using CTRL+x and then restart mysqld service.\nNow we need to regenerate the index in order to get updated search results. Use the following SQL commands to regenerate:\nDon’t forget to replace “jack_db1” with your database name ALTER TABLE `jack_db1`.`catalogsearch_fulltext_scope1` DROP PRIMARY KEY, ADD PRIMARY KEY (`entity_id`, `attribute_id`) USING BTREE; ALTER TABLE `jack_db1`.`catalogsearch_fulltext_scope1` DROP INDEX `FTI_FULLTEXT_DATA_INDEX`, ADD FULLTEXT `FTI_FULLTEXT_DATA_INDEX` (`data_index`); ALTER TABLE `jack_db1`.`catalog_eav_attribute` DROP PRIMARY KEY, ADD PRIMARY KEY (`attribute_id`) USING BTREE; ALTER TABLE `jack_db1`.`catalog_eav_attribute` DROP INDEX `CATALOG_EAV_ATTRIBUTE_USED_IN_PRODUCT_LISTING`, ADD INDEX `CATALOG_EAV_ATTRIBUTE_USED_IN_PRODUCT_LISTING` (`used_in_product_listing`) USING BTREE; ALTER TABLE `jack_db1`.`catalog_eav_attribute` DROP INDEX `CATALOG_EAV_ATTRIBUTE_USED_FOR_SORT_BY`, ADD INDEX `CATALOG_EAV_ATTRIBUTE_USED_FOR_SORT_BY` (`used_for_sort_by`) USING BTREE; References:\nhttps://magento.stackexchange.com/a/157478/32283\nhttps://dev.mysql.com/doc/refman/5.7/en/fulltext-fine-tuning.html\n","permalink":"https://tutes.in/how-to-tweak-magento-2-for-two-letter-search-in-fulltext-mode/","summary":"\u003ch2 id=\"the-problem\"\u003eThe problem:\u003c/h2\u003e\n\u003cp\u003eMagento 2 wont return any search results if the search token is 2 letters in length.\u003c/p\u003e\n\u003ch2 id=\"solution\"\u003eSolution:\u003c/h2\u003e\n\u003cp\u003eAlter MySQL conf file. Edit my.cnf file on your server\u003cbr\u003e\nIn CentOS, use command\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003enano /etc/my.cnf\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eand add the following lines:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eft_min_word_len=2\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003einnodb_ft_min_token_size=2\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eSave using \u003ckbd\u003eCTRL+x\u003c/kbd\u003e and then restart mysqld service.\u003cbr\u003e\nNow we need to regenerate the index in order to get updated search results. Use the following SQL commands to regenerate:\u003c/p\u003e","title":"How to tweak Magento 2 for two letter search in fulltext mode"},{"content":"use this simple code in bash shell. The following code will change all xxx.jpg files to XXX.jpg in any particular working directory.\nfor i in *.jpg; do ext=${i##*.}; name=$(basename \u0026#34;$i\u0026#34; \u0026#34;.$ext\u0026#34; | tr \u0026#39;[a-z]\u0026#39; \u0026#39;[A-Z]\u0026#39;).$ext; if [ \u0026#34;$i\u0026#34; != \u0026#34;$name\u0026#34; ] then mv $i $name; fi done; ","permalink":"https://tutes.in/linux-bash-how-to-change-all-filenames-to-uppercase-leaving-the-file-extension-unchanged/","summary":"\u003cp\u003euse this simple code in bash shell. The following code will change all xxx.jpg files to XXX.jpg in any particular working directory.\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003efor\u003c/span\u003e i in *.jpg\u003cspan class=\"p\"\u003e;\u003c/span\u003e \u003cspan class=\"k\"\u003edo\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003eext\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"si\"\u003e${\u003c/span\u003e\u003cspan class=\"nv\"\u003ei\u003c/span\u003e\u003cspan class=\"p\"\u003e##*.\u003c/span\u003e\u003cspan class=\"si\"\u003e}\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003ename\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"k\"\u003e$(\u003c/span\u003ebasename \u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e\u003cspan class=\"nv\"\u003e$i\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;.\u003c/span\u003e\u003cspan class=\"nv\"\u003e$ext\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e \u003cspan class=\"p\"\u003e|\u003c/span\u003e tr \u003cspan class=\"s1\"\u003e\u0026#39;[a-z]\u0026#39;\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;[A-Z]\u0026#39;\u003c/span\u003e\u003cspan class=\"k\"\u003e)\u003c/span\u003e.\u003cspan class=\"nv\"\u003e$ext\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"o\"\u003e[\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e\u003cspan class=\"nv\"\u003e$i\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e !\u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e\u003cspan class=\"nv\"\u003e$name\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;\u003c/span\u003e \u003cspan class=\"o\"\u003e]\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003ethen\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003emv \u003cspan class=\"nv\"\u003e$i\u003c/span\u003e \u003cspan class=\"nv\"\u003e$name\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003efi\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003edone\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Linux Bash – How to change all filenames to uppercase leaving the file extension unchanged"},{"content":"Gist: https://gist.github.com/harshvardhanmalpani/673e0d88c77247b5e1b43f8c6b13dab5\nDownload: Raw crt file for root ca bundle\n-----BEGIN CERTIFICATE----- MIIFazCCA1OgAwIBAgIRAIIQz7DSQONZRGPgu2OCiwAwDQYJKoZIhvcNAQELBQAw TzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2Vh cmNoIEdyb3VwMRUwEwYDVQQDEwxJU1JHIFJvb3QgWDEwHhcNMTUwNjA0MTEwNDM4 WhcNMzUwNjA0MTEwNDM4WjBPMQswCQYDVQQGEwJVUzEpMCcGA1UEChMgSW50ZXJu ZXQgU2VjdXJpdHkgUmVzZWFyY2ggR3JvdXAxFTATBgNVBAMTDElTUkcgUm9vdCBY MTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAK3oJHP0FDfzm54rVygc h77ct984kIxuPOZXoHj3dcKi/vVqbvYATyjb3miGbESTtrFj/RQSa78f0uoxmyF+ 0TM8ukj13Xnfs7j/EvEhmkvBioZxaUpmZmyPfjxwv60pIgbz5MDmgK7iS4+3mX6U A5/TR5d8mUgjU+g4rk8Kb4Mu0UlXjIB0ttov0DiNewNwIRt18jA8+o+u3dpjq+sW T8KOEUt+zwvo/7V3LvSye0rgTBIlDHCNAymg4VMk7BPZ7hm/ELNKjD+Jo2FR3qyH B5T0Y3HsLuJvW5iB4YlcNHlsdu87kGJ55tukmi8mxdAQ4Q7e2RCOFvu396j3x+UC B5iPNgiV5+I3lg02dZ77DnKxHZu8A/lJBdiB3QW0KtZB6awBdpUKD9jf1b0SHzUv KBds0pjBqAlkd25HN7rOrFleaJ1/ctaJxQZBKT5ZPt0m9STJEadao0xAH0ahmbWn OlFuhjuefXKnEgV4We0+UXgVCwOPjdAvBbI+e0ocS3MFEvzG6uBQE3xDk3SzynTn jh8BCNAw1FtxNrQHusEwMFxIt4I7mKZ9YIqioymCzLq9gwQbooMDQaHWBfEbwrbw qHyGO0aoSCqI3Haadr8faqU9GY/rOPNk3sgrDQoo//fb4hVC1CLQJ13hef4Y53CI rU7m2Ys6xt0nUW7/vGT1M0NPAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNV HRMBAf8EBTADAQH/MB0GA1UdDgQWBBR5tFnme7bl5AFzgAiIyBpY9umbbjANBgkq hkiG9w0BAQsFAAOCAgEAVR9YqbyyqFDQDLHYGmkgJykIrGF1XIpu+ILlaS/V9lZL ubhzEFnTIZd+50xx+7LSYK05qAvqFyFWhfFQDlnrzuBZ6brJFe+GnY+EgPbk6ZGQ 3BebYhtF8GaV0nxvwuo77x/Py9auJ/GpsMiu/X1+mvoiBOv/2X/qkSsisRcOj/KK NFtY2PwByVS5uCbMiogziUwthDyC3+6WVwW6LLv3xLfHTjuCvjHIInNzktHCgKQ5 ORAzI4JMPJ+GslWYHb4phowim57iaztXOoJwTdwJx4nLCgdNbOhdjsnvzqvHu7Ur TkXWStAmzOVyyghqpZXjFaH3pO3JLF+l+/+sKAIuvtd7u+Nxe5AW0wdeRlN8NwdC jNPElpzVmbUq4JUagEiuTDkHzsxHpFKVK7q4+63SM1N95R1NbdWhscdCb+ZAJzVc oyi3B43njTOQ5yOf+1CceWxG1bQVs5ZufpsMljq4Ui0/1lvh+wjChP4kqKOJ2qxq 4RgqsahDYVvTH9w7jXbyLeiNdd8XM2w9U/t7y0Ff/9yi0GE44Za4rF2LN9d11TPA mRGunUHBcnWEvgJBQl9nJEiU0Zsnvgc/ubhPgXRR4Xq37Z0j4r7g1SgEEzwxA57d emyPxgcYxn/eR44/KJ4EBs+lVDR3veyJm+kXQ99b21/+jh5Xos1AnX5iItreGCc= -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- MIIEkjCCA3qgAwIBAgIQCgFBQgAAAVOFc2oLheynCDANBgkqhkiG9w0BAQsFADA/ MSQwIgYDVQQKExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAMT DkRTVCBSb290IENBIFgzMB4XDTE2MDMxNzE2NDA0NloXDTIxMDMxNzE2NDA0Nlow SjELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUxldCdzIEVuY3J5cHQxIzAhBgNVBAMT GkxldCdzIEVuY3J5cHQgQXV0aG9yaXR5IFgzMIIBIjANBgkqhkiG9w0BAQEFAAOC AQ8AMIIBCgKCAQEAnNMM8FrlLke3cl03g7NoYzDq1zUmGSXhvb418XCSL7e4S0EF q6meNQhY7LEqxGiHC6PjdeTm86dicbp5gWAf15Gan/PQeGdxyGkOlZHP/uaZ6WA8 SMx+yk13EiSdRxta67nsHjcAHJyse6cF6s5K671B5TaYucv9bTyWaN8jKkKQDIZ0 Z8h/pZq4UmEUEz9l6YKHy9v6Dlb2honzhT+Xhq+w3Brvaw2VFn3EK6BlspkENnWA a6xK8xuQSXgvopZPKiAlKQTGdMDQMc2PMTiVFrqoM7hD8bEfwzB/onkxEz0tNvjj /PIzark5McWvxI0NHWQWM6r6hCm21AvA2H3DkwIDAQABo4IBfTCCAXkwEgYDVR0T AQH/BAgwBgEB/wIBADAOBgNVHQ8BAf8EBAMCAYYwfwYIKwYBBQUHAQEEczBxMDIG CCsGAQUFBzABhiZodHRwOi8vaXNyZy50cnVzdGlkLm9jc3AuaWRlbnRydXN0LmNv bTA7BggrBgEFBQcwAoYvaHR0cDovL2FwcHMuaWRlbnRydXN0LmNvbS9yb290cy9k c3Ryb290Y2F4My5wN2MwHwYDVR0jBBgwFoAUxKexpHsscfrb4UuQdf/EFWCFiRAw VAYDVR0gBE0wSzAIBgZngQwBAgEwPwYLKwYBBAGC3xMBAQEwMDAuBggrBgEFBQcC ARYiaHR0cDovL2Nwcy5yb290LXgxLmxldHNlbmNyeXB0Lm9yZzA8BgNVHR8ENTAz MDGgL6AthitodHRwOi8vY3JsLmlkZW50cnVzdC5jb20vRFNUUk9PVENBWDNDUkwu Y3JsMB0GA1UdDgQWBBSoSmpjBH3duubRObemRWXv86jsoTANBgkqhkiG9w0BAQsF AAOCAQEA3TPXEfNjWDjdGBX7CVW+dla5cEilaUcne8IkCJLxWh9KEik3JHRRHGJo uM2VcGfl96S8TihRzZvoroed6ti6WqEBmtzw3Wodatg+VyOeph4EYpr/1wXKtx8/ wApIvJSwtmVi4MFU5aMqrSDE6ea73Mj2tcMyo5jMd6jmeWUHK8so/joWUoHOUgwu X4Po1QYz+3dszkDqMp4fklxBwXRsW10KXzPMTZ+sOPAveyxindmjkW8lGy+QsRlG PfZ+G6Z6h7mjem0Y+iWlkYcV4PIWL1iwBi8saCbGS5jN2p8M+X+Q7UNKEkROb3N6 KOqkqm57TH2H3eDJAkSnh6/DNFu0Qg== -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- MIIFjTCCA3WgAwIBAgIRANOxciY0IzLc9AUoUSrsnGowDQYJKoZIhvcNAQELBQAw TzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2Vh cmNoIEdyb3VwMRUwEwYDVQQDEwxJU1JHIFJvb3QgWDEwHhcNMTYxMDA2MTU0MzU1 WhcNMjExMDA2MTU0MzU1WjBKMQswCQYDVQQGEwJVUzEWMBQGA1UEChMNTGV0J3Mg RW5jcnlwdDEjMCEGA1UEAxMaTGV0J3MgRW5jcnlwdCBBdXRob3JpdHkgWDMwggEi MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCc0wzwWuUuR7dyXTeDs2hjMOrX NSYZJeG9vjXxcJIvt7hLQQWrqZ41CFjssSrEaIcLo+N15Obzp2JxunmBYB/XkZqf 89B4Z3HIaQ6Vkc/+5pnpYDxIzH7KTXcSJJ1HG1rrueweNwAcnKx7pwXqzkrrvUHl Npi5y/1tPJZo3yMqQpAMhnRnyH+lmrhSYRQTP2XpgofL2/oOVvaGifOFP5eGr7Dc Gu9rDZUWfcQroGWymQQ2dYBrrErzG5BJeC+ilk8qICUpBMZ0wNAxzY8xOJUWuqgz uEPxsR/DMH+ieTETPS02+OP88jNquTkxxa/EjQ0dZBYzqvqEKbbUC8DYfcOTAgMB AAGjggFnMIIBYzAOBgNVHQ8BAf8EBAMCAYYwEgYDVR0TAQH/BAgwBgEB/wIBADBU BgNVHSAETTBLMAgGBmeBDAECATA/BgsrBgEEAYLfEwEBATAwMC4GCCsGAQUFBwIB FiJodHRwOi8vY3BzLnJvb3QteDEubGV0c2VuY3J5cHQub3JnMB0GA1UdDgQWBBSo SmpjBH3duubRObemRWXv86jsoTAzBgNVHR8ELDAqMCigJqAkhiJodHRwOi8vY3Js LnJvb3QteDEubGV0c2VuY3J5cHQub3JnMHIGCCsGAQUFBwEBBGYwZDAwBggrBgEF BQcwAYYkaHR0cDovL29jc3Aucm9vdC14MS5sZXRzZW5jcnlwdC5vcmcvMDAGCCsG AQUFBzAChiRodHRwOi8vY2VydC5yb290LXgxLmxldHNlbmNyeXB0Lm9yZy8wHwYD VR0jBBgwFoAUebRZ5nu25eQBc4AIiMgaWPbpm24wDQYJKoZIhvcNAQELBQADggIB ABnPdSA0LTqmRf/Q1eaM2jLonG4bQdEnqOJQ8nCqxOeTRrToEKtwT++36gTSlBGx A/5dut82jJQ2jxN8RI8L9QFXrWi4xXnA2EqA10yjHiR6H9cj6MFiOnb5In1eWsRM UM2v3e9tNsCAgBukPHAg1lQh07rvFKm/Bz9BCjaxorALINUfZ9DD64j2igLIxle2 DPxW8dI/F2loHMjXZjqG8RkqZUdoxtID5+90FgsGIfkMpqgRS05f4zPbCEHqCXl1 eO5HyELTgcVlLXXQDgAWnRzut1hFJeczY1tjQQno6f6s+nMydLN26WuU4s3UYvOu OsUxRlJu7TSRHqDC3lSE5XggVkzdaPkuKGQbGpny+01/47hfXXNB7HntWNZ6N2Vw p7G6OfY+YQrZwIaQmhrIqJZuigsrbe3W+gdn5ykE9+Ky0VgVUsfxo52mwFYs1JKY 2PGDuWx8M6DlS6qQkvHaRUo0FMd8TsSlbF0/v965qGFKhSDeQoMpYnwcmQilRh/0 ayLThlHLN81gSkJjVrPI0Y8xCVPB4twb1PFUd2fPM3sA1tJ83sZ5v8vgFv2yofKR PB0t6JzUA81mSqM3kxl5e+IZwhYAyO0OTg3/fs8HqGTNKd9BqoUwSRBzp06JMg5b rUCGwbCUDI0mxadJ3Bz4WxR6fyNpBK2yAinWEsikxqEt -----END CERTIFICATE----- ","permalink":"https://tutes.in/chain-ca-root-bundle-for-letsencrypt-ssl/","summary":"\u003cp\u003eGist: \u003ca href=\"https://gist.github.com/harshvardhanmalpani/673e0d88c77247b5e1b43f8c6b13dab5\"\u003ehttps://gist.github.com/harshvardhanmalpani/673e0d88c77247b5e1b43f8c6b13dab5\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eDownload: \u003ca href=\"https://gist.githubusercontent.com/harshvardhanmalpani/673e0d88c77247b5e1b43f8c6b13dab5/raw/1fbe30537847995452440800d6c8622972ada63d/letsencrypt-ca-bundle.crt\"\u003eRaw crt file for root ca bundle\u003c/a\u003e\u003c/p\u003e\n\u003cpre tabindex=\"0\"\u003e\u003ccode\u003e-----BEGIN CERTIFICATE-----\nMIIFazCCA1OgAwIBAgIRAIIQz7DSQONZRGPgu2OCiwAwDQYJKoZIhvcNAQELBQAw\nTzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2Vh\ncmNoIEdyb3VwMRUwEwYDVQQDEwxJU1JHIFJvb3QgWDEwHhcNMTUwNjA0MTEwNDM4\nWhcNMzUwNjA0MTEwNDM4WjBPMQswCQYDVQQGEwJVUzEpMCcGA1UEChMgSW50ZXJu\nZXQgU2VjdXJpdHkgUmVzZWFyY2ggR3JvdXAxFTATBgNVBAMTDElTUkcgUm9vdCBY\nMTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAK3oJHP0FDfzm54rVygc\nh77ct984kIxuPOZXoHj3dcKi/vVqbvYATyjb3miGbESTtrFj/RQSa78f0uoxmyF+\n0TM8ukj13Xnfs7j/EvEhmkvBioZxaUpmZmyPfjxwv60pIgbz5MDmgK7iS4+3mX6U\nA5/TR5d8mUgjU+g4rk8Kb4Mu0UlXjIB0ttov0DiNewNwIRt18jA8+o+u3dpjq+sW\nT8KOEUt+zwvo/7V3LvSye0rgTBIlDHCNAymg4VMk7BPZ7hm/ELNKjD+Jo2FR3qyH\nB5T0Y3HsLuJvW5iB4YlcNHlsdu87kGJ55tukmi8mxdAQ4Q7e2RCOFvu396j3x+UC\nB5iPNgiV5+I3lg02dZ77DnKxHZu8A/lJBdiB3QW0KtZB6awBdpUKD9jf1b0SHzUv\nKBds0pjBqAlkd25HN7rOrFleaJ1/ctaJxQZBKT5ZPt0m9STJEadao0xAH0ahmbWn\nOlFuhjuefXKnEgV4We0+UXgVCwOPjdAvBbI+e0ocS3MFEvzG6uBQE3xDk3SzynTn\njh8BCNAw1FtxNrQHusEwMFxIt4I7mKZ9YIqioymCzLq9gwQbooMDQaHWBfEbwrbw\nqHyGO0aoSCqI3Haadr8faqU9GY/rOPNk3sgrDQoo//fb4hVC1CLQJ13hef4Y53CI\nrU7m2Ys6xt0nUW7/vGT1M0NPAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNV\nHRMBAf8EBTADAQH/MB0GA1UdDgQWBBR5tFnme7bl5AFzgAiIyBpY9umbbjANBgkq\nhkiG9w0BAQsFAAOCAgEAVR9YqbyyqFDQDLHYGmkgJykIrGF1XIpu+ILlaS/V9lZL\nubhzEFnTIZd+50xx+7LSYK05qAvqFyFWhfFQDlnrzuBZ6brJFe+GnY+EgPbk6ZGQ\n3BebYhtF8GaV0nxvwuo77x/Py9auJ/GpsMiu/X1+mvoiBOv/2X/qkSsisRcOj/KK\nNFtY2PwByVS5uCbMiogziUwthDyC3+6WVwW6LLv3xLfHTjuCvjHIInNzktHCgKQ5\nORAzI4JMPJ+GslWYHb4phowim57iaztXOoJwTdwJx4nLCgdNbOhdjsnvzqvHu7Ur\nTkXWStAmzOVyyghqpZXjFaH3pO3JLF+l+/+sKAIuvtd7u+Nxe5AW0wdeRlN8NwdC\njNPElpzVmbUq4JUagEiuTDkHzsxHpFKVK7q4+63SM1N95R1NbdWhscdCb+ZAJzVc\noyi3B43njTOQ5yOf+1CceWxG1bQVs5ZufpsMljq4Ui0/1lvh+wjChP4kqKOJ2qxq\n4RgqsahDYVvTH9w7jXbyLeiNdd8XM2w9U/t7y0Ff/9yi0GE44Za4rF2LN9d11TPA\nmRGunUHBcnWEvgJBQl9nJEiU0Zsnvgc/ubhPgXRR4Xq37Z0j4r7g1SgEEzwxA57d\nemyPxgcYxn/eR44/KJ4EBs+lVDR3veyJm+kXQ99b21/+jh5Xos1AnX5iItreGCc=\n-----END CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\nMIIEkjCCA3qgAwIBAgIQCgFBQgAAAVOFc2oLheynCDANBgkqhkiG9w0BAQsFADA/\nMSQwIgYDVQQKExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAMT\nDkRTVCBSb290IENBIFgzMB4XDTE2MDMxNzE2NDA0NloXDTIxMDMxNzE2NDA0Nlow\nSjELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUxldCdzIEVuY3J5cHQxIzAhBgNVBAMT\nGkxldCdzIEVuY3J5cHQgQXV0aG9yaXR5IFgzMIIBIjANBgkqhkiG9w0BAQEFAAOC\nAQ8AMIIBCgKCAQEAnNMM8FrlLke3cl03g7NoYzDq1zUmGSXhvb418XCSL7e4S0EF\nq6meNQhY7LEqxGiHC6PjdeTm86dicbp5gWAf15Gan/PQeGdxyGkOlZHP/uaZ6WA8\nSMx+yk13EiSdRxta67nsHjcAHJyse6cF6s5K671B5TaYucv9bTyWaN8jKkKQDIZ0\nZ8h/pZq4UmEUEz9l6YKHy9v6Dlb2honzhT+Xhq+w3Brvaw2VFn3EK6BlspkENnWA\na6xK8xuQSXgvopZPKiAlKQTGdMDQMc2PMTiVFrqoM7hD8bEfwzB/onkxEz0tNvjj\n/PIzark5McWvxI0NHWQWM6r6hCm21AvA2H3DkwIDAQABo4IBfTCCAXkwEgYDVR0T\nAQH/BAgwBgEB/wIBADAOBgNVHQ8BAf8EBAMCAYYwfwYIKwYBBQUHAQEEczBxMDIG\nCCsGAQUFBzABhiZodHRwOi8vaXNyZy50cnVzdGlkLm9jc3AuaWRlbnRydXN0LmNv\nbTA7BggrBgEFBQcwAoYvaHR0cDovL2FwcHMuaWRlbnRydXN0LmNvbS9yb290cy9k\nc3Ryb290Y2F4My5wN2MwHwYDVR0jBBgwFoAUxKexpHsscfrb4UuQdf/EFWCFiRAw\nVAYDVR0gBE0wSzAIBgZngQwBAgEwPwYLKwYBBAGC3xMBAQEwMDAuBggrBgEFBQcC\nARYiaHR0cDovL2Nwcy5yb290LXgxLmxldHNlbmNyeXB0Lm9yZzA8BgNVHR8ENTAz\nMDGgL6AthitodHRwOi8vY3JsLmlkZW50cnVzdC5jb20vRFNUUk9PVENBWDNDUkwu\nY3JsMB0GA1UdDgQWBBSoSmpjBH3duubRObemRWXv86jsoTANBgkqhkiG9w0BAQsF\nAAOCAQEA3TPXEfNjWDjdGBX7CVW+dla5cEilaUcne8IkCJLxWh9KEik3JHRRHGJo\nuM2VcGfl96S8TihRzZvoroed6ti6WqEBmtzw3Wodatg+VyOeph4EYpr/1wXKtx8/\nwApIvJSwtmVi4MFU5aMqrSDE6ea73Mj2tcMyo5jMd6jmeWUHK8so/joWUoHOUgwu\nX4Po1QYz+3dszkDqMp4fklxBwXRsW10KXzPMTZ+sOPAveyxindmjkW8lGy+QsRlG\nPfZ+G6Z6h7mjem0Y+iWlkYcV4PIWL1iwBi8saCbGS5jN2p8M+X+Q7UNKEkROb3N6\nKOqkqm57TH2H3eDJAkSnh6/DNFu0Qg==\n-----END CERTIFICATE-----\n-----BEGIN CERTIFICATE-----\nMIIFjTCCA3WgAwIBAgIRANOxciY0IzLc9AUoUSrsnGowDQYJKoZIhvcNAQELBQAw\nTzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2Vh\ncmNoIEdyb3VwMRUwEwYDVQQDEwxJU1JHIFJvb3QgWDEwHhcNMTYxMDA2MTU0MzU1\nWhcNMjExMDA2MTU0MzU1WjBKMQswCQYDVQQGEwJVUzEWMBQGA1UEChMNTGV0J3Mg\nRW5jcnlwdDEjMCEGA1UEAxMaTGV0J3MgRW5jcnlwdCBBdXRob3JpdHkgWDMwggEi\nMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCc0wzwWuUuR7dyXTeDs2hjMOrX\nNSYZJeG9vjXxcJIvt7hLQQWrqZ41CFjssSrEaIcLo+N15Obzp2JxunmBYB/XkZqf\n89B4Z3HIaQ6Vkc/+5pnpYDxIzH7KTXcSJJ1HG1rrueweNwAcnKx7pwXqzkrrvUHl\nNpi5y/1tPJZo3yMqQpAMhnRnyH+lmrhSYRQTP2XpgofL2/oOVvaGifOFP5eGr7Dc\nGu9rDZUWfcQroGWymQQ2dYBrrErzG5BJeC+ilk8qICUpBMZ0wNAxzY8xOJUWuqgz\nuEPxsR/DMH+ieTETPS02+OP88jNquTkxxa/EjQ0dZBYzqvqEKbbUC8DYfcOTAgMB\nAAGjggFnMIIBYzAOBgNVHQ8BAf8EBAMCAYYwEgYDVR0TAQH/BAgwBgEB/wIBADBU\nBgNVHSAETTBLMAgGBmeBDAECATA/BgsrBgEEAYLfEwEBATAwMC4GCCsGAQUFBwIB\nFiJodHRwOi8vY3BzLnJvb3QteDEubGV0c2VuY3J5cHQub3JnMB0GA1UdDgQWBBSo\nSmpjBH3duubRObemRWXv86jsoTAzBgNVHR8ELDAqMCigJqAkhiJodHRwOi8vY3Js\nLnJvb3QteDEubGV0c2VuY3J5cHQub3JnMHIGCCsGAQUFBwEBBGYwZDAwBggrBgEF\nBQcwAYYkaHR0cDovL29jc3Aucm9vdC14MS5sZXRzZW5jcnlwdC5vcmcvMDAGCCsG\nAQUFBzAChiRodHRwOi8vY2VydC5yb290LXgxLmxldHNlbmNyeXB0Lm9yZy8wHwYD\nVR0jBBgwFoAUebRZ5nu25eQBc4AIiMgaWPbpm24wDQYJKoZIhvcNAQELBQADggIB\nABnPdSA0LTqmRf/Q1eaM2jLonG4bQdEnqOJQ8nCqxOeTRrToEKtwT++36gTSlBGx\nA/5dut82jJQ2jxN8RI8L9QFXrWi4xXnA2EqA10yjHiR6H9cj6MFiOnb5In1eWsRM\nUM2v3e9tNsCAgBukPHAg1lQh07rvFKm/Bz9BCjaxorALINUfZ9DD64j2igLIxle2\nDPxW8dI/F2loHMjXZjqG8RkqZUdoxtID5+90FgsGIfkMpqgRS05f4zPbCEHqCXl1\neO5HyELTgcVlLXXQDgAWnRzut1hFJeczY1tjQQno6f6s+nMydLN26WuU4s3UYvOu\nOsUxRlJu7TSRHqDC3lSE5XggVkzdaPkuKGQbGpny+01/47hfXXNB7HntWNZ6N2Vw\np7G6OfY+YQrZwIaQmhrIqJZuigsrbe3W+gdn5ykE9+Ky0VgVUsfxo52mwFYs1JKY\n2PGDuWx8M6DlS6qQkvHaRUo0FMd8TsSlbF0/v965qGFKhSDeQoMpYnwcmQilRh/0\nayLThlHLN81gSkJjVrPI0Y8xCVPB4twb1PFUd2fPM3sA1tJ83sZ5v8vgFv2yofKR\nPB0t6JzUA81mSqM3kxl5e+IZwhYAyO0OTg3/fs8HqGTNKd9BqoUwSRBzp06JMg5b\nrUCGwbCUDI0mxadJ3Bz4WxR6fyNpBK2yAinWEsikxqEt\n-----END CERTIFICATE-----\n\u003c/code\u003e\u003c/pre\u003e","title":"Chain CA Root Bundle for Let’sEncrypt SSL"},{"content":"Fixing General error: 1813 Tablespace for table xx Please DISCARD the tablespace before IMPORT and SQLSTATE[42S01]: Base table or view already exists\\\nRecently I encountered this error while upgrading an extension on Magento 2.2.2\nThe error was\nSQLSTATE[HY000]: General error: 1813 Tablespace for table \u0026#39;`jack_db1`.`jill_table`\u0026#39; exists. Please DISCARD the tablespace before IMPORT., query was: CREATE TABLE IF NOT EXISTS `jill_table` When I tried to fix the above error, I received:\nSQLSTATE[42S01]: Base table or view already exists: 1050 Table \u0026#39;`jack_db1`.`jill_table`\u0026#39; already exists, query was: CREATE TABLE IF NOT EXISTS `jill_table` So here is how to fix it:\nImportant Note: Replace jack_db1 with your database Name and jill_table with your table Name\nPART 1 – Fixing MySQL backend First log in to server and check the mysql data folder (mine was /var/lib/mysql/jack_db1)\nsay your database name is jack_db1 and your table is jill_table\nso issue\nls /var/lib/mysql/jack_db1 You will find .frm and .idb files\nNote that these files are present as a couple (each frm file has a corresponding idb file)\nBut the table that is causing you issues will have one of them missing.\n.frm was missing in my case, so copy any other frm file and name it as jill_table.frm (i copied wishlist.frm using following command )\ncd /var/lib/mysql/jack_db1;cp wishlist.frm jill_table.frm\nuse the following command to fix ownership\nchown -R mysql:mysql /var/lib/mysql/jack_db1/* Part 2: Fixing Magento Backend Login to phpMyAdmin if available or use MySQL CLI to perform the following actions.\nIn the table setup_module of your magento installation\nDelete the row which is related to your corrupted extension\nDELETE FROM `setup_module` WHERE module=\u0026#34;Custom_Module\u0026#34; you can also do the same from phpMyAdmin\nNow delete the table which was causing the issue, (you would not be able to view the table in phpmMyAdmin)\nJust run the following query in SQL\nDROP TABLE IF EXISTS `jill_table`; Part 3: Upgrade the Magento using php cli run the following commands:\nrm -rf var/cache/* rm -rf generated/* php bin/magento module:enable Custom_Module --clear-static-content php bin/magento setup:upgrade # Hopefully this time you wont see any errors, proceed as usual if upgrade command worked. # run php bin/magento setup:di:compile # and php bin/magento setup:static-content:deploy -f Good Luck with Magento 🙂\n","permalink":"https://tutes.in/magento-2-how-to-fix-tablespace-for-table-exists-base-table-or-view-already-exists/","summary":"\u003cp\u003eFixing General error: 1813 Tablespace for table xx Please DISCARD the tablespace before IMPORT and SQLSTATE[42S01]: Base table or view already exists\\\u003c/p\u003e\n\u003cp\u003eRecently I encountered this error while upgrading an extension on Magento 2.2.2\u003cbr\u003e\nThe error was\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-sql\" data-lang=\"sql\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eSQLSTATE\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"n\"\u003eHY000\u003c/span\u003e\u003cspan class=\"p\"\u003e]:\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eGeneral\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eerror\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"mi\"\u003e1813\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eTablespace\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003efor\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003etable\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;`jack_db1`.`jill_table`\u0026#39;\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eexists\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ePlease\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eDISCARD\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ethe\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003etablespace\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003ebefore\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003eIMPORT\u003c/span\u003e\u003cspan class=\"p\"\u003e.,\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003equery\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"n\"\u003ewas\u003c/span\u003e\u003cspan class=\"p\"\u003e:\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eCREATE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eTABLE\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eIF\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eNOT\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"k\"\u003eEXISTS\u003c/span\u003e\u003cspan class=\"w\"\u003e \u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"n\"\u003ejill_table\u003c/span\u003e\u003cspan class=\"o\"\u003e`\u003c/span\u003e\u003cspan class=\"w\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eWhen I tried to fix the above error, I received:\u003c/p\u003e","title":"Magento 2 : How to fix tablespace for table exists | base table or view already exists"},{"content":"To first force HTTPS, you must check the correct environment variable %{HTTPS} off, but your rule above then prepends the www. Since you have a second rule to enforce www., don’t use it in the first rule.\nRewriteCond %{HTTPS} off # First rewrite to HTTPS: # Don\u0026#39;t put www. here. If it is already there it will be included, if not # the subsequent rule will catch it. RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # Now, rewrite any request to the wrong domain to use www. # [NC] is a case-insensitive match RewriteCond %{HTTP_HOST} !^www\\. [NC] RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] ","permalink":"https://tutes.in/forcing-website-to-https-and-www-using-htaccess-on-apache-servers/","summary":"\u003cp\u003eTo first force HTTPS, you must check the correct environment variable %{HTTPS} off, but your rule above then prepends the www. Since you have a second rule to enforce www., don’t use it in the first rule.\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRewriteCond %{HTTPS} off\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e# First rewrite to HTTPS:\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e# Don\u0026#39;t put www. here. If it is already there it will be included, if not\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e# the subsequent rule will catch it.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e# Now, rewrite any request to the wrong domain to use www.\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e# [NC] is a case-insensitive match\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRewriteCond %{HTTP_HOST} !^www\\. [NC]\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Forcing website to https and www using htaccess on apache servers"},{"content":"Edit the file\n/vendor/magento/module-sales/Model/Order/Pdf/Items/Invoice/DefaultInvoice.php\nInside function draw(), remove/comment following code:\n// draw SKU $lines[0][] = [ \u0026#39;text\u0026#39; =\u0026gt; $this-\u0026gt;string-\u0026gt;split($this-\u0026gt;getSku($item), 17), \u0026#39;feed\u0026#39; =\u0026gt; 290, \u0026#39;align\u0026#39; =\u0026gt; \u0026#39;right\u0026#39;, ]; To remove the SKU header in table header, edit the file\n/vendor/magento/module-sales/Model/Order/Pdf/Invoice.php\n95 //$lines[0][] = [\u0026#39;text\u0026#39; =\u0026gt; __(\u0026#39;SKU\u0026#39;), \u0026#39;feed\u0026#39; =\u0026gt; 290, \u0026#39;align\u0026#39; =\u0026gt; \u0026#39;right\u0026#39;]; and copy the file vendor/magento/module-sales/view/frontend/templates/email/items/order/default.phtml\nto app/design/your/theme/Magento_Sales/templates/email/items/order/default.phtml\nand remove the code\n\u0026lt;p class=\u0026#34;sku\u0026#34;\u0026gt;\u0026lt;?= /* @escapeNotVerified */ __(\u0026#39;SKU\u0026#39;) ?\u0026gt;: \u0026lt;?= $block-\u0026gt;escapeHtml($block-\u0026gt;getSku($_item)) ?\u0026gt;\u0026lt;/p\u0026gt; ","permalink":"https://tutes.in/remove-sku-column-from-magento-2-invoice-and-pdf/","summary":"\u003cp\u003eEdit the file\u003cbr\u003e\n\u003ccode\u003e/vendor/magento/module-sales/Model/Order/Pdf/Items/Invoice/DefaultInvoice.php\u003c/code\u003e\u003c/p\u003e\n\u003cp\u003eInside function draw(), remove/comment following code:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e   \u003cspan class=\"c1\"\u003e// draw SKU\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nv\"\u003e$lines\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e][]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"p\"\u003e[\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"s1\"\u003e\u0026#39;text\u0026#39;\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nv\"\u003e$this\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003estring\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003esplit\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$this\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetSku\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$item\u003c/span\u003e\u003cspan class=\"p\"\u003e),\u003c/span\u003e \u003cspan class=\"mi\"\u003e17\u003c/span\u003e\u003cspan class=\"p\"\u003e),\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"s1\"\u003e\u0026#39;feed\u0026#39;\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"mi\"\u003e290\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"s1\"\u003e\u0026#39;align\u0026#39;\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;right\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eTo remove the SKU header in table header, edit the file\u003cbr\u003e\n\u003ccode\u003e/vendor/magento/module-sales/Model/Order/Pdf/Invoice.php\u003c/code\u003e\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cdiv class=\"chroma\"\u003e\n\u003ctable class=\"lntable\"\u003e\u003ctr\u003e\u003ctd class=\"lntd\"\u003e\n\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode\u003e\u003cspan class=\"lnt\"\u003e95\n\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/td\u003e\n\u003ctd class=\"lntd\"\u003e\n\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e//$lines[0][] = [\u0026#39;text\u0026#39; =\u0026gt; __(\u0026#39;SKU\u0026#39;), \u0026#39;feed\u0026#39; =\u0026gt; 290, \u0026#39;align\u0026#39; =\u0026gt; \u0026#39;right\u0026#39;];\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\u003c/div\u003e\n\u003c/div\u003e\u003cp\u003eand copy the file \u003ccode\u003evendor/magento/module-sales/view/frontend/templates/email/items/order/default.phtml\u003c/code\u003e\u003cbr\u003e\nto \u003ccode\u003eapp/design/your/theme/Magento_Sales/templates/email/items/order/default.phtml\u003c/code\u003e\u003cbr\u003e\nand remove the code\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e\u0026lt;\u003c/span\u003e\u003cspan class=\"nx\"\u003ep\u003c/span\u003e \u003cspan class=\"nx\"\u003eclass\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;sku\u0026#34;\u003c/span\u003e\u003cspan class=\"o\"\u003e\u0026gt;\u0026lt;?=\u003c/span\u003e \u003cspan class=\"cm\"\u003e/* @escapeNotVerified */\u003c/span\u003e  \u003cspan class=\"nx\"\u003e__\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;SKU\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"cp\"\u003e?\u0026gt;\u003c/span\u003e\u003cspan class=\"err\"\u003e: \u0026lt;?= $block-\u0026gt;escapeHtml($block-\u0026gt;getSku($_item)) ?\u0026gt;\u0026lt;/p\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Remove sku column from Magento 2 invoice and pdf"},{"content":"addtocart.phtml\n\u0026lt;?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ // @codingStandardsIgnoreFile /** @var $block \\Magento\\Catalog\\Block\\Product\\View */ ?\u0026gt; \u0026lt;?php $_product = $block-\u0026gt;getProduct(); ?\u0026gt; \u0026lt;?php $buttonTitle = __(\u0026#39;Add to Cart\u0026#39;); ?\u0026gt; \u0026lt;?php if ($_product-\u0026gt;isSaleable()): ?\u0026gt; \u0026lt;div class=\u0026#34;box-tocart\u0026#34;\u0026gt; \u0026lt;div class=\u0026#34;fieldset\u0026#34;\u0026gt; \u0026lt;?php if ($block-\u0026gt;shouldRenderQuantity()): $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance(); $StockState = $objectManager-\u0026gt;get(\u0026#39;\\Magento\\CatalogInventory\\Api\\StockStateInterface\u0026#39;);?\u0026gt; \u0026lt;div class=\u0026#34;field qty\u0026#34;\u0026gt; \u0026lt;label class=\u0026#34;label\u0026#34; for=\u0026#34;qty\u0026#34;\u0026gt;\u0026lt;span\u0026gt;\u0026lt;?= /* @escapeNotVerified */ __(\u0026#39;Qty\u0026#39;) ?\u0026gt;\u0026lt;/span\u0026gt;\u0026lt;/label\u0026gt; \u0026lt;div class=\u0026#34;control\u0026#34;\u0026gt; \u0026lt;?php if($_product-\u0026gt;getTypeId()==\u0026#34;simple\u0026#34;) { ?\u0026gt; \u0026lt;select class=\u0026#34;input-text qty\u0026#34; name=\u0026#34;qty\u0026#34; id=\u0026#34;qty\u0026#34; data-validate=\u0026#34;\u0026lt;?= $block-\u0026gt;escapeHtml(json_encode($block-\u0026gt;getQuantityValidators())) ?\u0026gt;\u0026#34;\u0026gt; \u0026lt;?php $availableQty= $StockState-\u0026gt;getStockQty($_product-\u0026gt;getId(), $_product-\u0026gt;getStore()-\u0026gt;getWebsiteId()); for($repli=1;$repli\u0026lt;=$availableQty;$repli++) echo \u0026#34;\u0026lt;option value=\u0026#39;$repli\u0026#39;\u0026gt;$repli\u0026lt;/option\u0026gt;\u0026#34;; ?\u0026gt; \u0026lt;/select\u0026gt; \u0026lt;?php } else { $usedProducts = $_product-\u0026gt;getTypeInstance()-\u0026gt;getUsedProducts($_product); $productStockd=$objectManager-\u0026gt;get(\u0026#39;Magento\\CatalogInventory\\Api\\StockRegistryInterface\u0026#39;); $finalconfigqty=[]; foreach ($usedProducts as $child) {$childid=$child-\u0026gt;getId(); $productStockObj = $productStockd-\u0026gt;getStockItem($childid); $availableQty= round($productStockObj-\u0026gt;getData(\u0026#39;qty\u0026#39;)); $finalconfigqty[\u0026#39;c\u0026#39;.$childid]=$availableQty; } echo \u0026#39;\u0026lt;script\u0026gt; var fichoo=\u0026#39;. json_encode($finalconfigqty). \u0026#39;\u0026lt;/script\u0026gt;\u0026#39;; echo \u0026#39;\u0026lt;select class=\u0026#34;input-text qty fichoo\u0026#34; name=\u0026#34;qty\u0026#34; id=\u0026#34;qty\u0026#34;\u0026gt;\u0026lt;option value=1\u0026gt;1\u0026lt;/option\u0026gt;\u0026lt;/select\u0026gt;\u0026#39;; ?\u0026gt; \u0026lt;!--input type=\u0026#34;number\u0026#34; name=\u0026#34;qty\u0026#34; id=\u0026#34;qty\u0026#34; value=\u0026#34;\u0026lt;?= $block-\u0026gt;getProductDefaultQty() * 1 ?\u0026gt;\u0026#34; title=\u0026#34;\u0026lt;?= __(\u0026#39;Qty\u0026#39;) ?\u0026gt;\u0026#34; class=\u0026#34;input-text qty\u0026#34; data-validate=\u0026#34;\u0026lt;?= $block-\u0026gt;escapeHtml(json_encode($block-\u0026gt;getQuantityValidators())) ?\u0026gt;\u0026#34; /--\u0026gt; \u0026lt;?php } ?\u0026gt; \u0026lt;/div\u0026gt; \u0026lt;/div\u0026gt; \u0026lt;?php endif; ?\u0026gt; \u0026lt;div class=\u0026#34;actions\u0026#34;\u0026gt; \u0026lt;button type=\u0026#34;submit\u0026#34; title=\u0026#34;\u0026lt;?= /* @escapeNotVerified */ $buttonTitle ?\u0026gt;\u0026#34; class=\u0026#34;action primary tocart\u0026#34; id=\u0026#34;product-addtocart-button\u0026#34;\u0026gt; \u0026lt;span\u0026gt;\u0026lt;?= /* @escapeNotVerified */ $buttonTitle ?\u0026gt;\u0026lt;/span\u0026gt; \u0026lt;/button\u0026gt; \u0026lt;?= $block-\u0026gt;getChildHtml(\u0026#39;\u0026#39;, true) ?\u0026gt; \u0026lt;/div\u0026gt; \u0026lt;/div\u0026gt; \u0026lt;/div\u0026gt; \u0026lt;?php endif; ?\u0026gt; \u0026lt;?php if ($block-\u0026gt;isRedirectToCartEnabled()) : ?\u0026gt; \u0026lt;script type=\u0026#34;text/x-magento-init\u0026#34;\u0026gt; { \u0026#34;#product_addtocart_form\u0026#34;: { \u0026#34;Magento_Catalog/product/view/validation\u0026#34;: { \u0026#34;radioCheckboxClosest\u0026#34;: \u0026#34;.nested\u0026#34; } } } \u0026lt;/script\u0026gt; \u0026lt;?php else : ?\u0026gt; \u0026lt;script type=\u0026#34;text/x-magento-init\u0026#34;\u0026gt; { \u0026#34;#product_addtocart_form\u0026#34;: { \u0026#34;Magento_Catalog/js/validate-product\u0026#34;: {} } } \u0026lt;/script\u0026gt; \u0026lt;?php endif; ?\u0026gt; Another important file is Magento_ConfigurableProduct/web/js/configurable.js\nmodified function _getSimpleProductId and added function _dofichoo\n/** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /** * @api */ define([ \u0026#39;jquery\u0026#39;, \u0026#39;underscore\u0026#39;, \u0026#39;mage/template\u0026#39;, \u0026#39;mage/translate\u0026#39;, \u0026#39;priceUtils\u0026#39;, \u0026#39;priceBox\u0026#39;, \u0026#39;jquery/ui\u0026#39;, \u0026#39;jquery/jquery.parsequery\u0026#39; ], function ($, _, mageTemplate, $t, priceUtils) { \u0026#39;use strict\u0026#39;; $.widget(\u0026#39;mage.configurable\u0026#39;, { options: { superSelector: \u0026#39;.super-attribute-select\u0026#39;, selectSimpleProduct: \u0026#39;[name=\u0026#34;selected_configurable_option\u0026#34;]\u0026#39;, priceHolderSelector: \u0026#39;.price-box\u0026#39;, spConfig: {}, state: {}, priceFormat: {}, optionTemplate: \u0026#39;\u0026lt;%- data.label %\u0026gt;\u0026#39; + \u0026#39;\u0026lt;% if (typeof data.finalPrice.value !== \u0026#34;undefined\u0026#34;) { %\u0026gt;\u0026#39; + \u0026#39; \u0026lt;%- data.finalPrice.formatted %\u0026gt;\u0026#39; + \u0026#39;\u0026lt;% } %\u0026gt;\u0026#39;, mediaGallerySelector: \u0026#39;[data-gallery-role=gallery-placeholder]\u0026#39;, mediaGalleryInitial: null, slyOldPriceSelector: \u0026#39;.sly-old-price\u0026#39;, /** * Defines the mechanism of how images of a gallery should be * updated when user switches between configurations of a product. * * As for now value of this option can be either \u0026#39;replace\u0026#39; or \u0026#39;prepend\u0026#39;. * * @type {String} */ gallerySwitchStrategy: \u0026#39;replace\u0026#39;, tierPriceTemplateSelector: \u0026#39;#tier-prices-template\u0026#39;, tierPriceBlockSelector: \u0026#39;[data-role=\u0026#34;tier-price-block\u0026#34;]\u0026#39;, tierPriceTemplate: \u0026#39;\u0026#39; }, /** * Creates widget * @private */ _create: function () { // Initial setting of various option values this._initializeOptions(); // Override defaults with URL query parameters and/or inputs values this._overrideDefaults(); // Change events to check select reloads this._setupChangeEvents(); // Fill state this._fillState(); // Setup child and prev/next settings this._setChildSettings(); // Setup/configure values to inputs this._configureForValues(); $(this.element).trigger(\u0026#39;configurable.initialized\u0026#39;); }, /** * Initialize tax configuration, initial settings, and options values. * @private */ _initializeOptions: function () { var options = this.options, gallery = $(options.mediaGallerySelector), priceBoxOptions = $(this.options.priceHolderSelector).priceBox(\u0026#39;option\u0026#39;).priceConfig || null; if (priceBoxOptions \u0026amp;\u0026amp; priceBoxOptions.optionTemplate) { options.optionTemplate = priceBoxOptions.optionTemplate; } if (priceBoxOptions \u0026amp;\u0026amp; priceBoxOptions.priceFormat) { options.priceFormat = priceBoxOptions.priceFormat; } options.optionTemplate = mageTemplate(options.optionTemplate); options.tierPriceTemplate = $(this.options.tierPriceTemplateSelector).html(); options.settings = options.spConfig.containerId ? $(options.spConfig.containerId).find(options.superSelector) : $(options.superSelector); options.values = options.spConfig.defaultValues || {}; options.parentImage = $(\u0026#39;[data-role=base-image-container] img\u0026#39;).attr(\u0026#39;src\u0026#39;); this.inputSimpleProduct = this.element.find(options.selectSimpleProduct); gallery.data(\u0026#39;gallery\u0026#39;) ? this._onGalleryLoaded(gallery) : gallery.on(\u0026#39;gallery:loaded\u0026#39;, this._onGalleryLoaded.bind(this, gallery)); }, /** * Override default options values settings with either URL query parameters or * initialized inputs values. * @private */ _overrideDefaults: function () { var hashIndex = window.location.href.indexOf(\u0026#39;#\u0026#39;); if (hashIndex !== -1) { this._parseQueryParams(window.location.href.substr(hashIndex + 1)); } if (this.options.spConfig.inputsInitialized) { this._setValuesByAttribute(); } }, /** * Parse query parameters from a query string and set options values based on the * key value pairs of the parameters. * @param {*} queryString - URL query string containing query parameters. * @private */ _parseQueryParams: function (queryString) { var queryParams = $.parseQuery({ query: queryString }); $.each(queryParams, $.proxy(function (key, value) { this.options.values[key] = value; }, this)); }, /** * Override default options values with values based on each element\u0026#39;s attribute * identifier. * @private */ _setValuesByAttribute: function () { this.options.values = {}; $.each(this.options.settings, $.proxy(function (index, element) { var attributeId; if (element.value) { attributeId = element.id.replace(/[a-z]*/, \u0026#39;\u0026#39;); this.options.values[attributeId] = element.value; } }, this)); }, /** * Set up .on(\u0026#39;change\u0026#39;) events for each option element to configure the option. * @private */ _setupChangeEvents: function () { $.each(this.options.settings, $.proxy(function (index, element) { $(element).on(\u0026#39;change\u0026#39;, this, this._configure); }, this)); }, _dofichoo: function(thisstock){var lsstr=\u0026#39;\u0026#39;; for(var ah=1;ah\u0026lt;=window.fichoo[\u0026#39;c\u0026#39;+thisstock];ah++) lsstr+=\u0026#39;\u0026lt;option value=\u0026#39;+ah+ \u0026#39; \u0026gt;\u0026#39;+ ah + \u0026#39;\u0026lt;/option\u0026gt;\u0026#39;; $(\u0026#39;select.fichoo\u0026#39;).html(lsstr); }, /** * Iterate through the option settings and set each option\u0026#39;s element configuration, * attribute identifier. Set the state based on the attribute identifier. * @private */ _fillState: function () { $.each(this.options.settings, $.proxy(function (index, element) { var attributeId = element.id.replace(/[a-z]*/, \u0026#39;\u0026#39;); if (attributeId \u0026amp;\u0026amp; this.options.spConfig.attributes[attributeId]) { element.config = this.options.spConfig.attributes[attributeId]; element.attributeId = attributeId; this.options.state[attributeId] = false; } }, this)); }, /** * Set each option\u0026#39;s child settings, and next/prev option setting. Fill (initialize) * an option\u0026#39;s list of selections as needed or disable an option\u0026#39;s setting. * @private */ _setChildSettings: function () { var childSettings = [], settings = this.options.settings, index = settings.length, option; while (index--) { option = settings[index]; if (index) { option.disabled = true; } else { this._fillSelect(option); } _.extend(option, { childSettings: childSettings.slice(), prevSetting: settings[index - 1], nextSetting: settings[index + 1] }); childSettings.push(option); } }, /** * Setup for all configurable option settings. Set the value of the option and configure * the option, which sets its state, and initializes the option\u0026#39;s choices, etc. * @private */ _configureForValues: function () { if (this.options.values) { this.options.settings.each($.proxy(function (index, element) { var attributeId = element.attributeId; element.value = this.options.values[attributeId] || \u0026#39;\u0026#39;; this._configureElement(element); }, this)); } }, /** * Event handler for configuring an option. * @private * @param {Object} event - Event triggered to configure an option. */ _configure: function (event) { event.data._configureElement(this); }, /** * Configure an option, initializing it\u0026#39;s state and enabling related options, which * populates the related option\u0026#39;s selection and resets child option selections. * @private * @param {*} element - The element associated with a configurable option. */ _configureElement: function (element) { this.simpleProduct = this._getSimpleProductId(element); if (element.value) { this.options.state[element.config.id] = element.value; if (element.nextSetting) { element.nextSetting.disabled = false; this._fillSelect(element.nextSetting); this._resetChildren(element.nextSetting); } else { if (!!document.documentMode) { //eslint-disable-line this.inputSimpleProduct.val(element.options[element.selectedIndex].config.allowedProducts[0]); } else { this.inputSimpleProduct.val(element.selectedOptions[0].config.allowedProducts[0]); } } } else { this._resetChildren(element); } this._reloadPrice(); this._displayRegularPriceBlock(this.simpleProduct); this._displayTierPriceBlock(this.simpleProduct); this._changeProductImage(); }, /** * Change displayed product image according to chosen options of configurable product * * @private */ _changeProductImage: function () { var images, initialImages = this.options.mediaGalleryInitial, galleryObject = $(this.options.mediaGallerySelector).data(\u0026#39;gallery\u0026#39;); if (!galleryObject) { return; } images = this.options.spConfig.images[this.simpleProduct]; if (images) { if (this.options.gallerySwitchStrategy === \u0026#39;prepend\u0026#39;) { images = images.concat(initialImages); } images = $.extend(true, [], images); images = this._setImageIndex(images); galleryObject.updateData(images); $(this.options.mediaGallerySelector).AddFotoramaVideoEvents({ selectedOption: this.simpleProduct, dataMergeStrategy: this.options.gallerySwitchStrategy }); } else { galleryObject.updateData(initialImages); $(this.options.mediaGallerySelector).AddFotoramaVideoEvents(); } galleryObject.first(); }, /** * Set correct indexes for image set. * * @param {Array} images * @private */ _setImageIndex: function (images) { var length = images.length, i; for (i = 0; length \u0026gt; i; i++) { images[i].i = i + 1; } return images; }, /** * For a given option element, reset all of its selectable options. Clear any selected * index, disable the option choice, and reset the option\u0026#39;s state if necessary. * @private * @param {*} element - The element associated with a configurable option. */ _resetChildren: function (element) { if (element.childSettings) { _.each(element.childSettings, function (set) { set.selectedIndex = 0; set.disabled = true; }); if (element.config) { this.options.state[element.config.id] = false; } } }, /** * Populates an option\u0026#39;s selectable choices. * @private * @param {*} element - Element associated with a configurable option. */ _fillSelect: function (element) { var attributeId = element.id.replace(/[a-z]*/, \u0026#39;\u0026#39;), options = this._getAttributeOptions(attributeId), prevConfig, index = 1, allowedProducts, i, j; this._clearSelect(element); element.options[0] = new Option(\u0026#39;\u0026#39;, \u0026#39;\u0026#39;); element.options[0].innerHTML = this.options.spConfig.chooseText; prevConfig = false; if (element.prevSetting) { prevConfig = element.prevSetting.options[element.prevSetting.selectedIndex]; } if (options) { for (i = 0; i \u0026lt; options.length; i++) { allowedProducts = []; /* eslint-disable max-depth */ if (prevConfig) { for (j = 0; j \u0026lt; options[i].products.length; j++) { // prevConfig.config can be undefined if (prevConfig.config \u0026amp;\u0026amp; prevConfig.config.allowedProducts \u0026amp;\u0026amp; prevConfig.config.allowedProducts.indexOf(options[i].products[j]) \u0026gt; -1) { allowedProducts.push(options[i].products[j]); } } } else { allowedProducts = options[i].products.slice(0); } if (allowedProducts.length \u0026gt; 0) { options[i].allowedProducts = allowedProducts; element.options[index] = new Option(this._getOptionLabel(options[i]), options[i].id); if (typeof options[i].price !== \u0026#39;undefined\u0026#39;) { element.options[index].setAttribute(\u0026#39;price\u0026#39;, options[i].prices); } element.options[index].config = options[i]; index++; } /* eslint-enable max-depth */ } } }, /** * Generate the label associated with a configurable option. This includes the option\u0026#39;s * label or value and the option\u0026#39;s price. * @private * @param {*} option - A single choice among a group of choices for a configurable option. * @return {String} The option label with option value and price (e.g. Black +1.99) */ _getOptionLabel: function (option) { return option.label; }, /** * Removes an option\u0026#39;s selections. * @private * @param {*} element - The element associated with a configurable option. */ _clearSelect: function (element) { var i; for (i = element.options.length - 1; i \u0026gt;= 0; i--) { element.remove(i); } }, /** * Retrieve the attribute options associated with a specific attribute Id. * @private * @param {Number} attributeId - The id of the attribute whose configurable options are sought. * @return {Object} Object containing the attribute options. */ _getAttributeOptions: function (attributeId) { if (this.options.spConfig.attributes[attributeId]) { return this.options.spConfig.attributes[attributeId].options; } }, /** * Reload the price of the configurable product incorporating the prices of all of the * configurable product\u0026#39;s option selections. */ _reloadPrice: function () { $(this.options.priceHolderSelector).trigger(\u0026#39;updatePrice\u0026#39;, this._getPrices()); }, /** * Get product various prices * @returns {{}} * @private */ _getPrices: function () { var prices = {}, elements = _.toArray(this.options.settings), hasProductPrice = false; _.each(elements, function (element) { var selected = element.options[element.selectedIndex], config = selected \u0026amp;\u0026amp; selected.config, priceValue = {}; if (config \u0026amp;\u0026amp; config.allowedProducts.length === 1 \u0026amp;\u0026amp; !hasProductPrice) { priceValue = this._calculatePrice(config); hasProductPrice = true; } prices[element.attributeId] = priceValue; }, this); return prices; }, /** * Returns prices for configured products * * @param {*} config - Products configuration * @returns {*} * @private */ _calculatePrice: function (config) { var displayPrices = $(this.options.priceHolderSelector).priceBox(\u0026#39;option\u0026#39;).prices, newPrices = this.options.spConfig.optionPrices[_.first(config.allowedProducts)]; _.each(displayPrices, function (price, code) { if (newPrices[code]) { displayPrices[code].amount = newPrices[code].amount - displayPrices[code].amount; } }); return displayPrices; }, /** * Returns Simple product Id * depending on current selected option. * * @private * @param {HTMLElement} element * @returns {String|undefined} */ _getSimpleProductId: function (element) { // TODO: Rewrite algorithm. It should return ID of // simple product based on selected options. var allOptions = element.config.options, value = element.value, config; config = _.filter(allOptions, function (option) { return option.id === value; }); config = _.first(config); if(! _.isEmpty(config)) this._dofichoo(_.first(config.allowedProducts)); return _.isEmpty(config) ? undefined : _.first(config.allowedProducts); }, /** * Show or hide regular price block * * @param {*} optionId * @private */ _displayRegularPriceBlock: function (optionId) { if (typeof optionId != \u0026#39;undefined\u0026#39; \u0026amp;\u0026amp; this.options.spConfig.optionPrices[optionId].oldPrice.amount != //eslint-disable-line eqeqeq this.options.spConfig.optionPrices[optionId].finalPrice.amount ) { $(this.options.slyOldPriceSelector).show(); } else { $(this.options.slyOldPriceSelector).hide(); } }, /** * Callback which fired after gallery gets initialized. * * @param {HTMLElement} element - DOM element associated with gallery. */ _onGalleryLoaded: function (element) { var galleryObject = element.data(\u0026#39;gallery\u0026#39;); this.options.mediaGalleryInitial = galleryObject.returnCurrentImages(); }, /** * Show or hide tier price block * * @param {*} optionId * @private */ _displayTierPriceBlock: function (optionId) { var options, tierPriceHtml; if (typeof optionId != \u0026#39;undefined\u0026#39; \u0026amp;\u0026amp; this.options.spConfig.optionPrices[optionId].tierPrices != [] // eslint-disable-line eqeqeq ) { options = this.options.spConfig.optionPrices[optionId]; if (this.options.tierPriceTemplate) { tierPriceHtml = mageTemplate(this.options.tierPriceTemplate, { \u0026#39;tierPrices\u0026#39;: options.tierPrices, \u0026#39;$t\u0026#39;: $t, \u0026#39;currencyFormat\u0026#39;: this.options.spConfig.currencyFormat, \u0026#39;priceUtils\u0026#39;: priceUtils }); $(this.options.tierPriceBlockSelector).html(tierPriceHtml).show(); } } else { $(this.options.tierPriceBlockSelector).hide(); } } }); return $.mage.configurable; }); ","permalink":"https://tutes.in/magento-2-how-to-show-configurable-options-stock-availability-on-product-page/","summary":"\u003cp\u003eaddtocart.phtml\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e\u0026lt;?\u003c/span\u003e\u003cspan class=\"nx\"\u003ephp\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e/**\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e* Copyright © Magento, Inc. All rights reserved.\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e* See COPYING.txt for license details.\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e*/\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e// @codingStandardsIgnoreFile\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e/** @var $block \\Magento\\Catalog\\Block\\Product\\View */\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"cp\"\u003e?\u0026gt;\u003c/span\u003e\u003cspan class=\"err\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;?php $_product = $block-\u0026gt;getProduct(); ?\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;?php $buttonTitle = __(\u0026#39;Add to Cart\u0026#39;); ?\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;?php if ($_product-\u0026gt;isSaleable()): ?\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;div class=\u0026#34;box-tocart\u0026#34;\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;div class=\u0026#34;fieldset\u0026#34;\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;?php if ($block-\u0026gt;shouldRenderQuantity()):\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e$objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e$StockState = $objectManager-\u0026gt;get(\u0026#39;\\Magento\\CatalogInventory\\Api\\StockStateInterface\u0026#39;);?\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;div class=\u0026#34;field qty\u0026#34;\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;label class=\u0026#34;label\u0026#34; for=\u0026#34;qty\u0026#34;\u0026gt;\u0026lt;span\u0026gt;\u0026lt;?= /* @escapeNotVerified */ __(\u0026#39;Qty\u0026#39;) ?\u0026gt;\u0026lt;/span\u0026gt;\u0026lt;/label\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;div class=\u0026#34;control\u0026#34;\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;?php if($_product-\u0026gt;getTypeId()==\u0026#34;simple\u0026#34;) { ?\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e    \u0026lt;select class=\u0026#34;input-text qty\u0026#34; name=\u0026#34;qty\u0026#34; id=\u0026#34;qty\u0026#34; data-validate=\u0026#34;\u0026lt;?= $block-\u0026gt;escapeHtml(json_encode($block-\u0026gt;getQuantityValidators())) ?\u0026gt;\u0026#34;\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;?php \n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e$availableQty= $StockState-\u0026gt;getStockQty($_product-\u0026gt;getId(), $_product-\u0026gt;getStore()-\u0026gt;getWebsiteId());\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003efor($repli=1;$repli\u0026lt;=$availableQty;$repli++)\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003eecho \u0026#34;\u0026lt;option value=\u0026#39;$repli\u0026#39;\u0026gt;$repli\u0026lt;/option\u0026gt;\u0026#34;;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e?\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;/select\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;?php } else { \n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e$usedProducts = $_product-\u0026gt;getTypeInstance()-\u0026gt;getUsedProducts($_product);\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e$productStockd=$objectManager-\u0026gt;get(\u0026#39;Magento\\CatalogInventory\\Api\\StockRegistryInterface\u0026#39;);\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e$finalconfigqty=[];\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003eforeach ($usedProducts as $child)\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e{$childid=$child-\u0026gt;getId();\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e$productStockObj = $productStockd-\u0026gt;getStockItem($childid);\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e$availableQty= round($productStockObj-\u0026gt;getData(\u0026#39;qty\u0026#39;)); \n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e$finalconfigqty[\u0026#39;c\u0026#39;.$childid]=$availableQty;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e}\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003eecho \u0026#39;\u0026lt;script\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003evar fichoo=\u0026#39;.\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003ejson_encode($finalconfigqty).\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026#39;\u0026lt;/script\u0026gt;\u0026#39;;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003eecho \u0026#39;\u0026lt;select class=\u0026#34;input-text qty fichoo\u0026#34; name=\u0026#34;qty\u0026#34; id=\u0026#34;qty\u0026#34;\u0026gt;\u0026lt;option value=1\u0026gt;1\u0026lt;/option\u0026gt;\u0026lt;/select\u0026gt;\u0026#39;; \n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e?\u0026gt; \n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;!--input type=\u0026#34;number\u0026#34; name=\u0026#34;qty\u0026#34; id=\u0026#34;qty\u0026#34; value=\u0026#34;\u0026lt;?= $block-\u0026gt;getProductDefaultQty() * 1 ?\u0026gt;\u0026#34; title=\u0026#34;\u0026lt;?= __(\u0026#39;Qty\u0026#39;) ?\u0026gt;\u0026#34; class=\u0026#34;input-text qty\u0026#34;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003edata-validate=\u0026#34;\u0026lt;?= $block-\u0026gt;escapeHtml(json_encode($block-\u0026gt;getQuantityValidators())) ?\u0026gt;\u0026#34;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e/--\u0026gt; \u0026lt;?php } ?\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;/div\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;/div\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;?php endif; ?\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;div class=\u0026#34;actions\u0026#34;\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;button type=\u0026#34;submit\u0026#34;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003etitle=\u0026#34;\u0026lt;?= /* @escapeNotVerified */ $buttonTitle ?\u0026gt;\u0026#34;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003eclass=\u0026#34;action primary tocart\u0026#34;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003eid=\u0026#34;product-addtocart-button\u0026#34;\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;span\u0026gt;\u0026lt;?= /* @escapeNotVerified */ $buttonTitle ?\u0026gt;\u0026lt;/span\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;/button\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;?= $block-\u0026gt;getChildHtml(\u0026#39;\u0026#39;, true) ?\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;/div\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;/div\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;/div\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;?php endif; ?\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;?php if ($block-\u0026gt;isRedirectToCartEnabled()) : ?\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;script type=\u0026#34;text/x-magento-init\u0026#34;\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e{\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026#34;#product_addtocart_form\u0026#34;: {\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026#34;Magento_Catalog/product/view/validation\u0026#34;: {\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026#34;radioCheckboxClosest\u0026#34;: \u0026#34;.nested\u0026#34;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e}\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e}\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e}\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;/script\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;?php else : ?\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;script type=\u0026#34;text/x-magento-init\u0026#34;\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e{\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026#34;#product_addtocart_form\u0026#34;: {\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026#34;Magento_Catalog/js/validate-product\u0026#34;: {}\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e}\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e}\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;/script\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"err\"\u003e\u0026lt;?php endif; ?\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eAnother important file is Magento_ConfigurableProduct/web/js/configurable.js\u003c/p\u003e","title":"Magento 2 how to show configurable options stock availability on product page"},{"content":"Just re-write the file vendor/magento/module-configurable-product/Model/ConfigurableAttributeData.php\n\u0026lt;?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\\ConfigurableProduct\\Model; use Magento\\Catalog\\Model\\Product; use Magento\\ConfigurableProduct\\Model\\Product\\Type\\Configurable\\Attribute; /** * Class ConfigurableAttributeData * @api * @since 100.0.2 */ class ConfigurableAttributeData { /** * Get product attributes * * @param Product $product * @param array $options * @return array */ public function getAttributesData(Product $product, array $options = []) { $defaultValues = []; $attributes = []; foreach ($product-\u0026gt;getTypeInstance()-\u0026gt;getConfigurableAttributes($product) as $attribute) { $attributeOptionsData = $this-\u0026gt;getAttributeOptionsData($attribute, $options); if ($attributeOptionsData) { $productAttribute = $attribute-\u0026gt;getProductAttribute(); $attributeId = $productAttribute-\u0026gt;getId(); $attributes[$attributeId] = [ \u0026#39;id\u0026#39; =\u0026gt; $attributeId, \u0026#39;code\u0026#39; =\u0026gt; $productAttribute-\u0026gt;getAttributeCode(), \u0026#39;label\u0026#39; =\u0026gt; $productAttribute-\u0026gt;getStoreLabel($product-\u0026gt;getStoreId()), \u0026#39;options\u0026#39; =\u0026gt; $attributeOptionsData, \u0026#39;position\u0026#39; =\u0026gt; $attribute-\u0026gt;getPosition(), ]; $defaultValues[$attributeId] = $this-\u0026gt;getAttributeConfigValue($attributeId, $product); } } return [ \u0026#39;attributes\u0026#39; =\u0026gt; $attributes, \u0026#39;defaultValues\u0026#39; =\u0026gt; $defaultValues, ]; } public function labelsort($a,$b){ return strcmp($a[\u0026#39;label\u0026#39;], $b[\u0026#39;label\u0026#39;]);} /** * @param Attribute $attribute * @param array $config * @return array */ protected function getAttributeOptionsData($attribute, $config) { $attributeOptionsData = []; foreach ($attribute-\u0026gt;getOptions() as $attributeOption) { $optionId = $attributeOption[\u0026#39;value_index\u0026#39;]; $attributeOptionsData[] = [ \u0026#39;id\u0026#39; =\u0026gt; $optionId, \u0026#39;label\u0026#39; =\u0026gt; $attributeOption[\u0026#39;label\u0026#39;], \u0026#39;products\u0026#39; =\u0026gt; isset($config[$attribute-\u0026gt;getAttributeId()][$optionId]) ? $config[$attribute-\u0026gt;getAttributeId()][$optionId] : [], ]; } if(count($attributeOptionsData) \u0026gt; 1){usort($attributeOptionsData,array($this,\u0026#39;labelsort\u0026#39;));} return $attributeOptionsData; } /** * @param int $attributeId * @param Product $product * @return mixed|null */ protected function getAttributeConfigValue($attributeId, $product) { return $product-\u0026gt;hasPreconfiguredValues() ? $product-\u0026gt;getPreconfiguredValues()-\u0026gt;getData(\u0026#39;super_attribute/\u0026#39; . $attributeId) : null; } } ","permalink":"https://tutes.in/magento-2-temporary-fix-for-alphabetical-sorting-of-configurable-product-options/","summary":"\u003cp\u003eJust re-write the file \u003ccode\u003evendor/magento/module-configurable-product/Model/ConfigurableAttributeData.php\u003c/code\u003e\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e\u0026lt;?\u003c/span\u003e\u003cspan class=\"nx\"\u003ephp\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e/**\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e * Copyright © Magento, Inc. All rights reserved.\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e * See COPYING.txt for license details.\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e */\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003enamespace\u003c/span\u003e \u003cspan class=\"nx\"\u003eMagento\\ConfigurableProduct\\Model\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003euse\u003c/span\u003e \u003cspan class=\"nx\"\u003eMagento\\Catalog\\Model\\Product\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003euse\u003c/span\u003e \u003cspan class=\"nx\"\u003eMagento\\ConfigurableProduct\\Model\\Product\\Type\\Configurable\\Attribute\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e/**\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e * Class ConfigurableAttributeData\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e * @api\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e * @since 100.0.2\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e */\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eclass\u003c/span\u003e \u003cspan class=\"nc\"\u003eConfigurableAttributeData\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"sd\"\u003e/**\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e     * Get product attributes\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e     *\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e     * @param Product $product\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e     * @param array $options\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e     * @return array\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e     */\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003epublic\u003c/span\u003e \u003cspan class=\"k\"\u003efunction\u003c/span\u003e \u003cspan class=\"nf\"\u003egetAttributesData\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eProduct\u003c/span\u003e \u003cspan class=\"nv\"\u003e$product\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"k\"\u003earray\u003c/span\u003e \u003cspan class=\"nv\"\u003e$options\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"p\"\u003e[])\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nv\"\u003e$defaultValues\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"p\"\u003e[];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nv\"\u003e$attributes\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"p\"\u003e[];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003eforeach\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$product\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetTypeInstance\u003c/span\u003e\u003cspan class=\"p\"\u003e()\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetConfigurableAttributes\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$product\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"k\"\u003eas\u003c/span\u003e \u003cspan class=\"nv\"\u003e$attribute\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"nv\"\u003e$attributeOptionsData\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$this\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetAttributeOptionsData\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$attribute\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nv\"\u003e$options\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"k\"\u003eif\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$attributeOptionsData\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e                \u003cspan class=\"nv\"\u003e$productAttribute\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$attribute\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetProductAttribute\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e                \u003cspan class=\"nv\"\u003e$attributeId\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$productAttribute\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetId\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e                \u003cspan class=\"nv\"\u003e$attributes\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"nv\"\u003e$attributeId\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"p\"\u003e[\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e                    \u003cspan class=\"s1\"\u003e\u0026#39;id\u0026#39;\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nv\"\u003e$attributeId\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e                    \u003cspan class=\"s1\"\u003e\u0026#39;code\u0026#39;\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nv\"\u003e$productAttribute\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetAttributeCode\u003c/span\u003e\u003cspan class=\"p\"\u003e(),\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e                    \u003cspan class=\"s1\"\u003e\u0026#39;label\u0026#39;\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nv\"\u003e$productAttribute\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetStoreLabel\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$product\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetStoreId\u003c/span\u003e\u003cspan class=\"p\"\u003e()),\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e                    \u003cspan class=\"s1\"\u003e\u0026#39;options\u0026#39;\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nv\"\u003e$attributeOptionsData\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e                    \u003cspan class=\"s1\"\u003e\u0026#39;position\u0026#39;\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nv\"\u003e$attribute\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetPosition\u003c/span\u003e\u003cspan class=\"p\"\u003e(),\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e                \u003cspan class=\"p\"\u003e];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e                \u003cspan class=\"nv\"\u003e$defaultValues\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"nv\"\u003e$attributeId\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$this\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetAttributeConfigValue\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$attributeId\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nv\"\u003e$product\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"p\"\u003e[\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"s1\"\u003e\u0026#39;attributes\u0026#39;\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nv\"\u003e$attributes\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"s1\"\u003e\u0026#39;defaultValues\u0026#39;\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nv\"\u003e$defaultValues\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003epublic\u003c/span\u003e \u003cspan class=\"k\"\u003efunction\u003c/span\u003e \u003cspan class=\"nf\"\u003elabelsort\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$a\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nv\"\u003e$b\u003c/span\u003e\u003cspan class=\"p\"\u003e){\u003c/span\u003e \u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"nx\"\u003estrcmp\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$a\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;label\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e],\u003c/span\u003e \u003cspan class=\"nv\"\u003e$b\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;label\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e]);}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"sd\"\u003e/**\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e     * @param Attribute $attribute\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e     * @param array $config\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e     * @return array\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e     */\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003eprotected\u003c/span\u003e \u003cspan class=\"k\"\u003efunction\u003c/span\u003e \u003cspan class=\"nf\"\u003egetAttributeOptionsData\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$attribute\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nv\"\u003e$config\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nv\"\u003e$attributeOptionsData\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"p\"\u003e[];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003eforeach\u003c/span\u003e \u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$attribute\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetOptions\u003c/span\u003e\u003cspan class=\"p\"\u003e()\u003c/span\u003e \u003cspan class=\"k\"\u003eas\u003c/span\u003e \u003cspan class=\"nv\"\u003e$attributeOption\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"nv\"\u003e$optionId\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$attributeOption\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;value_index\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"nv\"\u003e$attributeOptionsData\u003c/span\u003e\u003cspan class=\"p\"\u003e[]\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"p\"\u003e[\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e                \u003cspan class=\"s1\"\u003e\u0026#39;id\u0026#39;\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nv\"\u003e$optionId\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e                \u003cspan class=\"s1\"\u003e\u0026#39;label\u0026#39;\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nv\"\u003e$attributeOption\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;label\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e],\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e                \u003cspan class=\"s1\"\u003e\u0026#39;products\u0026#39;\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nx\"\u003eisset\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$config\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"nv\"\u003e$attribute\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetAttributeId\u003c/span\u003e\u003cspan class=\"p\"\u003e()][\u003c/span\u003e\u003cspan class=\"nv\"\u003e$optionId\u003c/span\u003e\u003cspan class=\"p\"\u003e])\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e                    \u003cspan class=\"o\"\u003e?\u003c/span\u003e \u003cspan class=\"nv\"\u003e$config\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"nv\"\u003e$attribute\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetAttributeId\u003c/span\u003e\u003cspan class=\"p\"\u003e()][\u003c/span\u003e\u003cspan class=\"nv\"\u003e$optionId\u003c/span\u003e\u003cspan class=\"p\"\u003e]\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e                    \u003cspan class=\"o\"\u003e:\u003c/span\u003e \u003cspan class=\"p\"\u003e[],\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"p\"\u003e];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003eif\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003ecount\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$attributeOptionsData\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"o\"\u003e\u0026gt;\u003c/span\u003e \u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e){\u003c/span\u003e\u003cspan class=\"nx\"\u003eusort\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$attributeOptionsData\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"k\"\u003earray\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$this\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;labelsort\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e));}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"nv\"\u003e$attributeOptionsData\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"sd\"\u003e/**\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e     * @param int $attributeId\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e     * @param Product $product\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e     * @return mixed|null\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"sd\"\u003e     */\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003eprotected\u003c/span\u003e \u003cspan class=\"k\"\u003efunction\u003c/span\u003e \u003cspan class=\"nf\"\u003egetAttributeConfigValue\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$attributeId\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nv\"\u003e$product\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003ereturn\u003c/span\u003e \u003cspan class=\"nv\"\u003e$product\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003ehasPreconfiguredValues\u003c/span\u003e\u003cspan class=\"p\"\u003e()\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"o\"\u003e?\u003c/span\u003e \u003cspan class=\"nv\"\u003e$product\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetPreconfiguredValues\u003c/span\u003e\u003cspan class=\"p\"\u003e()\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetData\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;super_attribute/\u0026#39;\u003c/span\u003e \u003cspan class=\"o\"\u003e.\u003c/span\u003e \u003cspan class=\"nv\"\u003e$attributeId\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e            \u003cspan class=\"o\"\u003e:\u003c/span\u003e \u003cspan class=\"k\"\u003enull\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Magento 2 temporary fix for Alphabetical sorting of Configurable product options"},{"content":"\u0026lt;?php $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance(); $StockState = $objectManager-\u0026gt;get(\u0026#39;\\Magento\\CatalogInventory\\Api\\StockStateInterface\u0026#39;); echo $StockState-\u0026gt;getStockQty($product-\u0026gt;getId(), $product-\u0026gt;getStore()-\u0026gt;getWebsiteId()); ?\u0026gt; Reference: https://magento.stackexchange.com/a/97952/32283\n","permalink":"https://tutes.in/show-available-stock-quantity-for-each-product-in-magento-2/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e\u0026lt;?\u003c/span\u003e\u003cspan class=\"nx\"\u003ephp\u003c/span\u003e \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nv\"\u003e$objectManager\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003e\\Magento\\Framework\\App\\ObjectManager\u003c/span\u003e\u003cspan class=\"o\"\u003e::\u003c/span\u003e\u003cspan class=\"na\"\u003egetInstance\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"nv\"\u003e$StockState\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$objectManager\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003eget\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;\\Magento\\CatalogInventory\\Api\\StockStateInterface\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u003cspan class=\"k\"\u003eecho\u003c/span\u003e \u003cspan class=\"nv\"\u003e$StockState\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetStockQty\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$product\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetId\u003c/span\u003e\u003cspan class=\"p\"\u003e(),\u003c/span\u003e \u003cspan class=\"nv\"\u003e$product\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetStore\u003c/span\u003e\u003cspan class=\"p\"\u003e()\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetWebsiteId\u003c/span\u003e\u003cspan class=\"p\"\u003e());\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"cp\"\u003e?\u0026gt;\u003c/span\u003e\u003cspan class=\"err\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eReference: \u003ca href=\"https://magento.stackexchange.com/a/97952/32283\"\u003ehttps://magento.stackexchange.com/a/97952/32283\u003c/a\u003e\u003c/p\u003e","title":"Show Available Stock quantity for each product in Magento 2"},{"content":"for png, install on centos using command\nyum install optipng for a single image\noptipng -o5 filename.png move to folder in which pngs are stored and use the following command:\nfor i in *.png; do optipng -o7 -strip all -quiet \u0026#34;$i\u0026#34;; done this will overwrite all pngs, o7 is switch for number of tries. o5 will be less time consuming though. -quiet makes it muted, outputs nothing.\n-strip all will try to remove all meta data.\nyou can use -preserve to preserve the modification date.\nalso try -keep, if you want to save backup of each file\n","permalink":"https://tutes.in/compressing-images-directly-on-web-server-better-pagespeed-tips/","summary":"\u003cp\u003efor png, install on centos using command\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eyum install optipng\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003efor a single image\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eoptipng -o5 filename.png\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003emove to folder in which pngs are stored and use the following command:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003efor i in *.png; do optipng -o7 -strip all  -quiet \u0026#34;$i\u0026#34;; done\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003ethis will overwrite all pngs, o7 is switch for number of tries. o5 will be less time consuming though. -quiet makes it muted, outputs nothing.\u003cbr\u003e\n-strip all will try to remove all meta data.\u003cbr\u003e\nyou can use -preserve to preserve the modification date.\u003cbr\u003e\nalso try -keep, if you want to save backup of each file\u003c/p\u003e","title":"Compressing images directly on web server – Better Pagespeed tips"},{"content":"composer require magento/product-community-edition 2.2.6 --no-update composer update rm -rf var/di var/generation var/cache var/view_preprocessed generated/* php bin/magento cache:clean php bin/magento cache:flush php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento indexer:reindex php bin/magento deploy:mode:set production if you receive any errors post installation, try this hard fix\nrm -rf app/code/Magento/ var/* vendor/* chmod 777 -R * composer update \u0026amp;\u0026amp; composer install php -f bin/magento setup:static-content:deploy find . -type d -exec chmod 775 {} find . -type f -exec chmod 660 {} chmod u+x bin/magento bin/magento maintenance:disable bin/magento cache:clean ","permalink":"https://tutes.in/how-to-update-magento-community-edition-using-cli/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ecomposer require magento/product-community-edition 2.2.6 --no-update\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ecomposer update\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003erm -rf var/di var/generation var/cache var/view_preprocessed generated/*\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp bin/magento cache:clean\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp bin/magento cache:flush\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp bin/magento setup:upgrade\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp bin/magento setup:di:compile\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp bin/magento indexer:reindex\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp bin/magento deploy:mode:set production\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eif you receive any errors post installation, try this hard fix\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003erm -rf app/code/Magento/ var/* vendor/*\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003echmod \u003cspan class=\"m\"\u003e777\u003c/span\u003e -R *\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ecomposer update \u003cspan class=\"o\"\u003e\u0026amp;\u0026amp;\u003c/span\u003e composer install\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp -f bin/magento setup:static-content:deploy\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003efind . -type d -exec chmod \u003cspan class=\"m\"\u003e775\u003c/span\u003e \u003cspan class=\"o\"\u003e{}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003efind . -type f -exec chmod \u003cspan class=\"m\"\u003e660\u003c/span\u003e \u003cspan class=\"o\"\u003e{}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003echmod u+x bin/magento\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ebin/magento maintenance:disable\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ebin/magento cache:clean\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"How to update Magento community edition using CLI"},{"content":"In your theme folder, add Folder Magento_Catalog/layout and in layout folder add file catalog_category_view.xml\n\u0026lt;?xml version=\u0026#34;1.0\u0026#34;?\u0026gt; \u0026lt;page xmlns:xsi=\u0026#34;http://www.w3.org/2001/XMLSchema-instance\u0026#34; layout=\u0026#34;2columns-left\u0026#34; xsi:noNamespaceSchemaLocation=\u0026#34;urn:magento:framework:View/Layout/etc/page_configuration.xsd\u0026#34;\u0026gt; \u0026lt;body\u0026gt; \u0026lt;move element=\u0026#34;category.view.container\u0026#34; after=\u0026#34;content\u0026#34; destination=\u0026#34;main.content\u0026#34; /\u0026gt; \u0026lt;/body\u0026gt; \u0026lt;/page\u0026gt; ","permalink":"https://tutes.in/how-to-shift-category-description-below-products-in-magento-2/","summary":"\u003cp\u003eIn your theme folder, add Folder \u003ccode\u003eMagento_Catalog/layout\u003c/code\u003e and in \u003ccode\u003elayout\u003c/code\u003e folder add file \u003ccode\u003ecatalog_category_view.xml\u003c/code\u003e\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026lt;?xml version=\u0026#34;1.0\u0026#34;?\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026lt;page xmlns:xsi=\u0026#34;http://www.w3.org/2001/XMLSchema-instance\u0026#34; layout=\u0026#34;2columns-left\u0026#34; xsi:noNamespaceSchemaLocation=\u0026#34;urn:magento:framework:View/Layout/etc/page_configuration.xsd\u0026#34;\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u0026lt;body\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026lt;move element=\u0026#34;category.view.container\u0026#34; after=\u0026#34;content\u0026#34; destination=\u0026#34;main.content\u0026#34; /\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e    \u0026lt;/body\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u0026lt;/page\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"How to shift category description below products in Magento 2"},{"content":"Core Method is to edit the file\n/vendor/magento/module-catalog-import-export/Model/Export/Product.php\nand Edit the variable $_exportMainAttrCodes\nAdd your attributes in the array like “custom1″,”custom2”, etc and save the file.\nNext time you export the csv, you will see new columns in the file.\n","permalink":"https://tutes.in/how-to-add-custom-attributes-in-magento-2-product-csv-export/","summary":"\u003cp\u003eCore Method is to edit the file\u003cbr\u003e\n\u003ccode\u003e/vendor/magento/module-catalog-import-export/Model/Export/Product.php\u003c/code\u003e\u003c/p\u003e\n\u003cp\u003eand Edit the variable \u003ccode\u003e$_exportMainAttrCodes\u003c/code\u003e\u003c/p\u003e\n\u003cp\u003eAdd your attributes in the array like \u003cem\u003e“custom1″,”custom2”,\u003c/em\u003e etc and save the file.\u003c/p\u003e\n\u003cp\u003eNext time you export the csv, you will see new columns in the file.\u003c/p\u003e","title":"How to add custom attributes in Magento 2 product CSV export"},{"content":"How to remove “Add to Compare” links in sidebar and product page in Magento 2 product pages Magento 2 Community has a default feature of comparison lists for multiple products. Learn how you can disable the “Add to Compare” feature in magento2 community edition.\nAdd the following lines in default.xml of your theme folder\n\u0026lt;referenceBlock name=\u0026#34;catalog.compare.sidebar\u0026#34; remove=\u0026#34;true\u0026#34;/\u0026gt; \u0026lt;referenceBlock name=\u0026#34;catalog.compare.link\u0026#34; remove=\u0026#34;true\u0026#34;/\u0026gt; \u0026lt;referenceBlock name=\u0026#34;related.product.addto.compare\u0026#34; remove=\u0026#34;true\u0026#34;/\u0026gt; \u0026lt;referenceBlock name=\u0026#34;view.addto.compare\u0026#34; remove=\u0026#34;true\u0026#34;/\u0026gt; \u0026lt;referenceBlock name=\u0026#34;upsell.product.addto.compare\u0026#34; remove=\u0026#34;true\u0026#34;/\u0026gt; ","permalink":"https://tutes.in/remove-compare-feature-from-magento-2/","summary":"\u003ch2 id=\"how-to-remove-add-to-compare-links-in-sidebar-and-product-page-in-magento-2-product-pages\"\u003eHow to remove “Add to Compare” links in sidebar and product page in Magento 2 product pages\u003c/h2\u003e\n\u003cp\u003eMagento 2 Community has a default feature of comparison lists for multiple products. Learn how you can disable the “Add to Compare” feature in magento2 community edition.\u003c/p\u003e\n\u003cp\u003eAdd the following lines in default.xml of your theme folder\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u0026lt;referenceBlock name=\u0026#34;catalog.compare.sidebar\u0026#34; remove=\u0026#34;true\u0026#34;/\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u0026lt;referenceBlock name=\u0026#34;catalog.compare.link\u0026#34; remove=\u0026#34;true\u0026#34;/\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u0026lt;referenceBlock name=\u0026#34;related.product.addto.compare\u0026#34; remove=\u0026#34;true\u0026#34;/\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u0026lt;referenceBlock name=\u0026#34;view.addto.compare\u0026#34; remove=\u0026#34;true\u0026#34;/\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\t\u0026lt;referenceBlock name=\u0026#34;upsell.product.addto.compare\u0026#34; remove=\u0026#34;true\u0026#34;/\u0026gt;\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Remove Compare feature from Magento 2"},{"content":"Works for Magento 2.2x\nCross-Origin Resource Sharing header for Access-Control-Allow-Origin for Subdomains\nSetEnvIf Origin \u0026#34;^(.*\\.yourdomain\\.com)$\u0026#34; OSD=$1 Header set Access-Control-Allow-Origin \u0026#34;%{OSD}e\u0026#34; env=OSD Header set Access-Control-Allow-Methods: \u0026#34;*\u0026#34; Header set Access-Control-Allow-Headers: \u0026#34;*\u0026#34; or a general format for simple copy paste:\nSetEnvIf Origin \u0026#34;^(.*)$\u0026#34; OSD=$1 Header set Access-Control-Allow-Origin \u0026#34;%{OSD}e\u0026#34; env=OSD Header set Access-Control-Allow-Methods: \u0026#34;*\u0026#34; Header set Access-Control-Allow-Headers: \u0026#34;*\u0026#34; ","permalink":"https://tutes.in/cors-policy-for-subdomains-htaccess-apache-server/","summary":"\u003cp\u003eWorks for Magento 2.2x\u003c/p\u003e\n\u003cp\u003eCross-Origin Resource Sharing header for Access-Control-Allow-Origin for Subdomains\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eSetEnvIf Origin \u0026#34;^(.*\\.yourdomain\\.com)$\u0026#34; OSD=$1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eHeader set Access-Control-Allow-Origin \u0026#34;%{OSD}e\u0026#34; env=OSD\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eHeader set Access-Control-Allow-Methods: \u0026#34;*\u0026#34;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eHeader set Access-Control-Allow-Headers: \u0026#34;*\u0026#34;\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eor a general format for simple copy paste:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eSetEnvIf Origin \u0026#34;^(.*)$\u0026#34; OSD=$1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eHeader set Access-Control-Allow-Origin \u0026#34;%{OSD}e\u0026#34; env=OSD\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eHeader set Access-Control-Allow-Methods: \u0026#34;*\u0026#34;\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eHeader set Access-Control-Allow-Headers: \u0026#34;*\u0026#34;\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"CORS policy for subdomains – htaccess – apache server"},{"content":"This is an update to my previous script which was used to add custom product attribute values using backend –\nAdd values to product attribute\nRead the previous^ part to get introduction about how it works. you will have to use browser console (ctrl + shift +j in Google chrome)\nFirst of all initialize the array mimim with the final set of values you want to see in backend. The script then automatically removes the extra options first(values which are not in mimim but in present in backend), then it adds the remaining values from mimim (which are in mimim but not at backend)\n$jq=new jQuery.noConflict(); var mimim=[\u0026#34;Abalone\u0026#34;, \u0026#34;Titanium Druzy\u0026#34;, \u0026#34;Tourmaline\u0026#34;, \u0026#34;Turquoise\u0026#34;, \u0026#34;Yellow Zircon\u0026#34;, \u0026#34;Light Blue Druzy\u0026#34;]; var trans=[];var o=0; $jq(\u0026#39;#manage-options-panel tbody tr td:nth-child(3) input\u0026#39;).each( function(a,b){ //if(a\u0026gt;10)return false; //alert(b.value); trans.push(b.value); if($jq.inArray(b.value,mimim)==-1){ o++;$jq(\u0026#39;#delete_button_\u0026#39;+b.name.slice(14,-4)).click(); trans.pop();} }); alert(o+\u0026#34; items removed\u0026#34;); $jq.each(mimim,function(a,b){ //console.log($jq(\u0026#39;#manage-options-panel tbody tr td:nth-child(3) input\u0026#39;).val()); if($jq.inArray(b,trans)==-1){ $jq(\u0026#39;#add_new_option_button\u0026#39;).click(); $jq(\u0026#39;#manage-options-panel tbody tr:last-child td:nth-child(3) input\u0026#39;).val(b); } }); ","permalink":"https://tutes.in/how-to-manage-magento-2-product-attribute-values-options-using-console/","summary":"\u003cp\u003eThis is an update to my previous script which was used to add custom product attribute values using backend –\u003cbr\u003e\n\u003ca href=\"/magento-2-1x-add-options-in-custom-product-attribute-using-backend/\"\u003eAdd values to product attribute\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eRead the previous^ part to get introduction about how it works. you will have to use browser console (ctrl + shift +j in Google chrome)\u003c/p\u003e\n\u003cp\u003eFirst of all initialize the array mimim with the final set of values you want to see in backend. The script then automatically removes the extra options first(values which are not in mimim but in present in backend), then it adds the remaining values from mimim (which are in mimim but not at backend)\u003c/p\u003e","title":"How to manage Magento 2 product attribute values options using console"},{"content":"SQL Query:\n\\ SELECT t1.stone FROM newatt t1 LEFT JOIN att t2 ON t2.stone = t1.stone WHERE t2.stone IS NULL\\\nnewatt = new table (contains updated extra rows) att = old table stone = column name on both tables ","permalink":"https://tutes.in/how-to-find-rows-which-exist-in-new-table-but-not-in-old-table-mysql/","summary":"\u003cp\u003eSQL Query:\u003cbr\u003e\n\u003ccode\u003e\\ SELECT t1.stone FROM newatt t1 LEFT JOIN att t2 ON t2.stone = t1.stone WHERE t2.stone IS NULL\\\u003c/code\u003e\u003c/p\u003e\n\u003cpre tabindex=\"0\"\u003e\u003ccode\u003enewatt = new table (contains updated extra rows)\n\natt = old table\n\nstone = column name on both tables\n\u003c/code\u003e\u003c/pre\u003e","title":"How to find rows which exist in new table but not in old table – MySQL"},{"content":"Connect to your server’s database using mysql cli or phpmyadmin and use the following query\nINSERT INTO `directory_country_region` VALUES (NULL,\u0026#34;IN\u0026#34;,\u0026#34;AP\u0026#34;,\u0026#34;Andhra Pradesh\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;AR\u0026#34;,\u0026#34;Arunachal Pradesh\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;AS\u0026#34;,\u0026#34;Assam\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;BR\u0026#34;,\u0026#34;Bihar\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;CG\u0026#34;,\u0026#34;Chhattisgarh\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;GA\u0026#34;,\u0026#34;Goa\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;GJ\u0026#34;,\u0026#34;Gujarat\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;HR\u0026#34;,\u0026#34;Haryana\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;HP\u0026#34;,\u0026#34;Himachal Pradesh\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;JK\u0026#34;,\u0026#34;Jammu and Kashmir\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;JH\u0026#34;,\u0026#34;Jharkhand\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;KA\u0026#34;,\u0026#34;Karnataka\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;KL\u0026#34;,\u0026#34;Kerala\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;MP\u0026#34;,\u0026#34;Madhya Pradesh\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;MH\u0026#34;,\u0026#34;Maharashtra\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;MN\u0026#34;,\u0026#34;Manipur\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;ML\u0026#34;,\u0026#34;Meghalaya\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;MZ\u0026#34;,\u0026#34;Mizoram\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;NL\u0026#34;,\u0026#34;Nagaland\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;OD\u0026#34;,\u0026#34;Odisha\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;PB\u0026#34;,\u0026#34;Punjab\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;RJ\u0026#34;,\u0026#34;Rajasthan\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;SK\u0026#34;,\u0026#34;Sikkim\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;TN\u0026#34;,\u0026#34;Tamil Nadu\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;TL\u0026#34;,\u0026#34;Telangana\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;TR\u0026#34;,\u0026#34;Tripura\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;UK\u0026#34;,\u0026#34;Uttarakhand\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;UP\u0026#34;,\u0026#34;Uttar Pradesh\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;WB\u0026#34;,\u0026#34;West Bengal\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;AN\u0026#34;,\u0026#34;Andaman and Nicobar Islands\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;CH\u0026#34;,\u0026#34;Chandigarh\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;DH\u0026#34;,\u0026#34;Dadra and Nagar Haveli\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;DD\u0026#34;,\u0026#34;Daman and Diu\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;DL\u0026#34;,\u0026#34;Delhi\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;LD\u0026#34;,\u0026#34;Lakshadweep\u0026#34;), (NULL,\u0026#34;IN\u0026#34;,\u0026#34;PY\u0026#34;,\u0026#34;Puducherry\u0026#34;); ","permalink":"https://tutes.in/insert-indian-states-in-magento-database/","summary":"\u003cp\u003eConnect to your server’s database using mysql cli or phpmyadmin and use the following query\u003c/p\u003e\n\u003cpre tabindex=\"0\"\u003e\u003ccode\u003eINSERT INTO `directory_country_region` VALUES \n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;AP\u0026#34;,\u0026#34;Andhra Pradesh\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;AR\u0026#34;,\u0026#34;Arunachal Pradesh\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;AS\u0026#34;,\u0026#34;Assam\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;BR\u0026#34;,\u0026#34;Bihar\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;CG\u0026#34;,\u0026#34;Chhattisgarh\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;GA\u0026#34;,\u0026#34;Goa\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;GJ\u0026#34;,\u0026#34;Gujarat\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;HR\u0026#34;,\u0026#34;Haryana\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;HP\u0026#34;,\u0026#34;Himachal Pradesh\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;JK\u0026#34;,\u0026#34;Jammu and Kashmir\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;JH\u0026#34;,\u0026#34;Jharkhand\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;KA\u0026#34;,\u0026#34;Karnataka\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;KL\u0026#34;,\u0026#34;Kerala\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;MP\u0026#34;,\u0026#34;Madhya Pradesh\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;MH\u0026#34;,\u0026#34;Maharashtra\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;MN\u0026#34;,\u0026#34;Manipur\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;ML\u0026#34;,\u0026#34;Meghalaya\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;MZ\u0026#34;,\u0026#34;Mizoram\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;NL\u0026#34;,\u0026#34;Nagaland\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;OD\u0026#34;,\u0026#34;Odisha\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;PB\u0026#34;,\u0026#34;Punjab\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;RJ\u0026#34;,\u0026#34;Rajasthan\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;SK\u0026#34;,\u0026#34;Sikkim\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;TN\u0026#34;,\u0026#34;Tamil Nadu\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;TL\u0026#34;,\u0026#34;Telangana\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;TR\u0026#34;,\u0026#34;Tripura\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;UK\u0026#34;,\u0026#34;Uttarakhand\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;UP\u0026#34;,\u0026#34;Uttar Pradesh\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;WB\u0026#34;,\u0026#34;West Bengal\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;AN\u0026#34;,\u0026#34;Andaman and Nicobar Islands\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;CH\u0026#34;,\u0026#34;Chandigarh\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;DH\u0026#34;,\u0026#34;Dadra and Nagar Haveli\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;DD\u0026#34;,\u0026#34;Daman and Diu\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;DL\u0026#34;,\u0026#34;Delhi\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;LD\u0026#34;,\u0026#34;Lakshadweep\u0026#34;),\n(NULL,\u0026#34;IN\u0026#34;,\u0026#34;PY\u0026#34;,\u0026#34;Puducherry\u0026#34;);\n\u003c/code\u003e\u003c/pre\u003e","title":"Insert Indian States in Magento Database"},{"content":"Use this code:\n\u0026lt;?php use \\Magento\\Framework\\App\\Bootstrap; echo \u0026#39;code by harshvardhanmalpani\u0026#39;; include(\u0026#39;./app/bootstrap.php\u0026#39;); $bootstrap = Bootstrap::create(BP, $_SERVER); $objectManager = $bootstrap-\u0026gt;getObjectManager(); function createCategory($a=\u0026#39;\u0026#39;,$b=2,$c=true,$d=\u0026#39;\u0026#39;,$e=\u0026#39;\u0026#39;,$f=\u0026#39;\u0026#39;,$g=\u0026#39;\u0026#39;) { global $objectManager; $category = $objectManager-\u0026gt;get(\u0026#39;\\Magento\\Catalog\\Model\\CategoryFactory\u0026#39;)-\u0026gt;create(); $category-\u0026gt;setName($a); $category-\u0026gt;setParentId($b); // 1: root category. $category-\u0026gt;setIsActive($c); $category-\u0026gt;setCustomAttributes([ \u0026#39;description\u0026#39; =\u0026gt; $d, \u0026#39;meta_title\u0026#39; =\u0026gt; $e, \u0026#39;meta_keywords\u0026#39; =\u0026gt; $f, \u0026#39;meta_description\u0026#39; =\u0026gt; $g, ]); $objectManager-\u0026gt;get(\u0026#39;\\Magento\\Catalog\\Api\\CategoryRepositoryInterface\u0026#39;)-\u0026gt;save($category); } createCategory(\u0026#34;Abc\u0026#34;); createCategory(\u0026#34;Xyz\u0026#34;,4,false,\u0026#34;description\u0026#34;,\u0026#34;m title\u0026#34;); ?\u0026gt; ","permalink":"https://tutes.in/how-to-create-magento-2-category-programmatically/","summary":"\u003cp\u003eUse this code:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"o\"\u003e\u0026lt;?\u003c/span\u003e\u003cspan class=\"nx\"\u003ephp\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003euse\u003c/span\u003e \u003cspan class=\"nx\"\u003e\\Magento\\Framework\\App\\Bootstrap\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003eecho\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;code by harshvardhanmalpani\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003einclude\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;./app/bootstrap.php\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$bootstrap\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nx\"\u003eBootstrap\u003c/span\u003e\u003cspan class=\"o\"\u003e::\u003c/span\u003e\u003cspan class=\"na\"\u003ecreate\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eBP\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"nv\"\u003e$_SERVER\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$objectManager\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$bootstrap\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003egetObjectManager\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003efunction\u003c/span\u003e \u003cspan class=\"nf\"\u003ecreateCategory\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$a\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nv\"\u003e$b\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"mi\"\u003e2\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nv\"\u003e$c\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"k\"\u003etrue\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nv\"\u003e$d\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nv\"\u003e$e\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nv\"\u003e$f\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nv\"\u003e$g\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e \u003cspan class=\"p\"\u003e{\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"k\"\u003eglobal\u003c/span\u003e \u003cspan class=\"nv\"\u003e$objectManager\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nv\"\u003e$category\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"nv\"\u003e$objectManager\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003eget\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;\\Magento\\Catalog\\Model\\CategoryFactory\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003ecreate\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nv\"\u003e$category\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003esetName\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$a\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nv\"\u003e$category\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003esetParentId\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$b\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e \u003cspan class=\"c1\"\u003e// 1: root category.\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nv\"\u003e$category\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003esetIsActive\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$c\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nv\"\u003e$category\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003esetCustomAttributes\u003c/span\u003e\u003cspan class=\"p\"\u003e([\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"s1\"\u003e\u0026#39;description\u0026#39;\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nv\"\u003e$d\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"s1\"\u003e\u0026#39;meta_title\u0026#39;\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nv\"\u003e$e\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"s1\"\u003e\u0026#39;meta_keywords\u0026#39;\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nv\"\u003e$f\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e \u003cspan class=\"s1\"\u003e\u0026#39;meta_description\u0026#39;\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"nv\"\u003e$g\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e     \u003cspan class=\"p\"\u003e]);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e        \u003cspan class=\"nv\"\u003e$objectManager\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003eget\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;\\Magento\\Catalog\\Api\\CategoryRepositoryInterface\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e)\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003esave\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nv\"\u003e$category\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e}\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003ecreateCategory\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;Abc\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003ecreateCategory\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;Xyz\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"mi\"\u003e4\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"k\"\u003efalse\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;description\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;m title\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"cp\"\u003e?\u0026gt;\u003c/span\u003e\u003cspan class=\"err\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"How to create Magento 2 category programmatically?"},{"content":"The process involves matching all requests for an IP, if the IP does not match redirect all secured directory requests.\nRewriteCond %{REMOTE_ADDR} !^120\\.120\\.120\\.120 RewriteRule ^admin/.* - [L,R=403] RewriteCond %{REMOTE_ADDR} ^120\\.120\\.120\\.120 RewriteRule ^admin$ - [L,R=403] If you want to control this IP using a script, you can add 2 lines\n###CUSTOM RULES### # your rules will appear here using php script ###CUSTOM RULES### Now add a script, say happy.php\nand use the following code:\n$htaccess = file_get_contents(\u0026#39;.htaccess\u0026#39;); $ip= str_replace(\u0026#34;.\u0026#34;,\u0026#34;\\.\u0026#34;,$_SERVER[\u0026#39;REMOTE_ADDR\u0026#39;]); $rules=\u0026#34;RewriteCond %{REMOTE_ADDR} !^\u0026#34;.$ip.\u0026#34; RewriteRule ^admin/.* - [L,R=403] RewriteCond %{REMOTE_ADDR} !^\u0026#34;.$ip.\u0026#34; RewriteRule ^admin$ - [L,R=403]\u0026#34;; $problem=\u0026#34;###CUSTOM RULES###\\r\\n\u0026#34;.$rules. \u0026#34;\\r\\n###CUSTOM RULES###\u0026#34;; #please copy the next line carefully, no extra spaces or new lines $solution=preg_replace(\u0026#39;/###CUSTOM RULES###.*?###CUSTOM RULES###/sm\u0026#39;,$problem,$htaccess); file_put_contents(\u0026#39;.htaccess\u0026#39;, $solution); you can also specify your error page for specific http code: 403\nErrorDocument 403 /er.htm\n","permalink":"https://tutes.in/how-to-secure-a-folder-by-whitelisting-one-ip-using-htaccess-and-denying-all-others/","summary":"\u003cp\u003eThe process involves matching all requests for an IP, if the IP does not match redirect all secured directory requests.\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRewriteCond %{REMOTE_ADDR} !^120\\.120\\.120\\.120\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRewriteRule ^admin/.* - [L,R=403] \n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRewriteCond %{REMOTE_ADDR} ^120\\.120\\.120\\.120\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003eRewriteRule ^admin$ - [L,R=403]\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003cp\u003eIf you want to control this IP using a script, you can add 2 lines\u003c/p\u003e\n\u003cpre tabindex=\"0\"\u003e\u003ccode\u003e###CUSTOM RULES###\n# your rules will appear here using php script\n###CUSTOM RULES###\n\u003c/code\u003e\u003c/pre\u003e\u003cp\u003eNow add a script, say happy.php\u003cbr\u003e\nand use the following code:\u003c/p\u003e","title":"How to secure a folder by whitelisting one IP using HTACCESS and denying all others"},{"content":"=IF(COUNTIF($B:$B, $A1)=0, $A1, “”)\n","permalink":"https://tutes.in/compare-two-columns-in-excel-and-check-the-missing-values/","summary":"\u003cp\u003e=IF(COUNTIF($B:$B, $A1)=0, $A1, “”)\u003c/p\u003e","title":"Compare two columns in Excel and check the missing values"},{"content":"Go to the attribute edit page using magento 2 admin panel (Stores \u0026gt; Attributes \u0026gt; Product \u0026gt; Edit attribute)\nUse console – ctrl + shift + J\nEdit the js array mimim and then paste the following code in console.\n$jq=new jQuery.noConflict(); var mimim=[\u0026#34;Black\u0026#34;,\u0026#34;Blue\u0026#34;,\u0026#34;Blue Black\u0026#34;]; $jq.each(mimim,function(a,b){ $jq(\u0026#34;#add_new_option_button\u0026#34;).click(); $jq(\u0026#34;#manage-options-panel tbody tr:last-child td:nth-child(3) input\u0026#34;).val(b); }); ","permalink":"https://tutes.in/magento-2-1x-add-options-in-custom-product-attribute-using-backend/","summary":"\u003cp\u003eGo to the attribute edit page using magento 2 admin panel (Stores \u0026gt; Attributes \u0026gt; Product \u0026gt; Edit attribute)\u003cbr\u003e\nUse console – ctrl + shift + J\u003cbr\u003e\nEdit the js array mimim and then paste the following code in console.\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-javascript\" data-lang=\"javascript\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003e$jq\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"k\"\u003enew\u003c/span\u003e \u003cspan class=\"nx\"\u003ejQuery\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003enoConflict\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"kd\"\u003evar\u003c/span\u003e \u003cspan class=\"nx\"\u003emimim\u003c/span\u003e\u003cspan class=\"o\"\u003e=\u003c/span\u003e\u003cspan class=\"p\"\u003e[\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;Black\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;Blue\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;Blue Black\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e];\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003e$jq\u003c/span\u003e\u003cspan class=\"p\"\u003e.\u003c/span\u003e\u003cspan class=\"nx\"\u003eeach\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003emimim\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"kd\"\u003efunction\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003ea\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e\u003cspan class=\"nx\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e){\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003e$jq\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;#add_new_option_button\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eclick\u003c/span\u003e\u003cspan class=\"p\"\u003e();\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003e$jq\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s2\"\u003e\u0026#34;#manage-options-panel tbody tr:last-child td:nth-child(3) input\u0026#34;\u003c/span\u003e\u003cspan class=\"p\"\u003e).\u003c/span\u003e\u003cspan class=\"nx\"\u003eval\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eb\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"p\"\u003e});\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Magento 2.1x – Add options in custom product attribute using backend"},{"content":"find . -type f -exec chmod 644 {} \\;\\ find . -type d -exec chmod 755 {} \\;\\ find ./var -type d -exec chmod 777 {} \\;\\ find ./media -type d -exec chmod 777 {} \\;\\ chmod 777 ./app/etc\\ chmod 644 ./app/etc/*.xml\n","permalink":"https://tutes.in/correct-file-permissions-for-magento-1-9x/","summary":"\u003cp\u003e\u003ccode\u003efind . -type f -exec chmod 644 {} \\;\\ find . -type d -exec chmod 755 {} \\;\\ find ./var -type d -exec chmod 777 {} \\;\\ find ./media -type d -exec chmod 777 {} \\;\\ chmod 777 ./app/etc\\ chmod 644 ./app/etc/*.xml\u003c/code\u003e\u003c/p\u003e","title":"Correct File Permissions for Magento 1.9x"},{"content":"php bin/magento deploy:mode:show\nphp bin/magento deploy:mode:set production\nphp bin/magento deploy:mode:set developer\n","permalink":"https://tutes.in/how-to-view-current-deployment-mode-magento2-and-change-it/","summary":"\u003cp\u003ephp bin/magento deploy:mode:show\u003cbr\u003e\nphp bin/magento deploy:mode:set production\u003cbr\u003e\nphp bin/magento deploy:mode:set developer\u003c/p\u003e","title":"How to view current deployment mode Magento2 and change it"},{"content":"composer require magento/product-community-edition 2.1.9 --no-update composer update rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/* php bin/magento cache:clean php bin/magento cache:flush php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy php bin/magento indexer:reindex ","permalink":"https://tutes.in/how-to-update-magento-2-1x-to-latest-version-via-ssh/","summary":"\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-bash\" data-lang=\"bash\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ecomposer require magento/product-community-edition 2.1.9 --no-update\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ecomposer update\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003erm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/*\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp bin/magento cache:clean\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp bin/magento cache:flush\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp bin/magento setup:upgrade\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp bin/magento setup:di:compile\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp bin/magento setup:static-content:deploy\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp bin/magento indexer:reindex\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"How to Update Magento 2.1x to latest version via SSH"},{"content":"cd ~/public chmod 750 mage ./mage mage-setup . ./mage config-set preferred_state stable ./mage sync ./mage install https://connect20.magentocommerce.com/community Mage_All_Latest --force php shell/indexer.php reindexall rm -rf downloader/.cache/ var/cache/ ","permalink":"https://tutes.in/updating-magento-1-via-ssh/","summary":"\u003cpre tabindex=\"0\"\u003e\u003ccode\u003ecd ~/public\nchmod 750 mage\n./mage mage-setup .\n./mage config-set preferred_state stable\n./mage sync\n./mage install https://connect20.magentocommerce.com/community Mage_All_Latest --force\nphp shell/indexer.php reindexall\nrm -rf downloader/.cache/ var/cache/\n\u003c/code\u003e\u003c/pre\u003e","title":"Updating Magento 1 via SSH"},{"content":"Cron Jobs\nAdd through cPanel/WHM\nTime interval – 10 minutes -\u0026gt; */10 * * * *\nReplace ^username^ with user dir\nphp /home/^username^/public_html/bin/magento cron:run \u0026gt;/dev/null 2\u0026gt;\u0026amp;1 php /home/^username^/public_html/update/cron.php \u0026gt;/dev/null 2\u0026gt;\u0026amp;1 php /home/^username^/public_html/bin/magento setup:cron:run \u0026gt;/dev/null 2\u0026gt;\u0026amp;1 Using Crontab editor in Terminal Use command crontab -e\n*/10 * * * * php /home/^USERNAME AND PATH^/public_html/bin/magento cron:run \u0026gt;/dev/null 2\u0026gt;\u0026amp;1 */15 * * * * php /home/^USERNAME AND PATH^/public_html/bin/magento indexer:reindex \u0026gt;/dev/null 2\u0026gt;\u0026amp;1 ","permalink":"https://tutes.in/magento-2-1x-cron-jobs/","summary":"\u003cp\u003eCron Jobs\u003cbr\u003e\nAdd through cPanel/WHM\u003c/p\u003e\n\u003cp\u003eTime interval – 10 minutes -\u0026gt; */10 * * * *\u003c/p\u003e\n\u003cp\u003eReplace ^username^ with user dir\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp /home/^username^/public_html/bin/magento cron:run \u0026gt;/dev/null 2\u0026gt;\u0026amp;1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp /home/^username^/public_html/update/cron.php \u0026gt;/dev/null 2\u0026gt;\u0026amp;1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003ephp /home/^username^/public_html/bin/magento setup:cron:run \u0026gt;/dev/null 2\u0026gt;\u0026amp;1\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\u003ch2 id=\"using-crontab-editor-in-terminal\"\u003eUsing Crontab editor in Terminal\u003c/h2\u003e\n\u003cp\u003eUse command \u003ccode\u003ecrontab -e\u003c/code\u003e\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-text\" data-lang=\"text\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e*/10 * * * * php /home/^USERNAME AND PATH^/public_html/bin/magento cron:run \u0026gt;/dev/null 2\u0026gt;\u0026amp;1\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e*/15 * * * * php /home/^USERNAME AND PATH^/public_html/bin/magento indexer:reindex \u0026gt;/dev/null 2\u0026gt;\u0026amp;1\n\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Magento 2.1x Cron Jobs"},{"content":" Hello humans, I have tried to keep this tutorial simple and detailed. Please proceed with caution.\nThe following tutorial and the procedure will unlike pages you have liked from your profile, Please be clear about that the fact that the code provided here is clean and does not intend to do any harm to your Facebook account.\nNote – This code uses jQuery library in its original form. So you do not need to be scared while using this “scary” looking code.\nLet us start right away:\nPART 1 – Get the Console Ready Make sure all extensions are turned off in your browser as this procedure uses a lot of memory. Please make sure that you are logged in to your facebook account.\nOpen page – https://www.facebook.com/search/me/pages-liked\nPress CTRL + SHIFT + J OR Simply Right Click and Choose Inspect Element\nStarting Warning\nIn the new sub-window that pops up, Navigate to tab Console. (You should see a warning from Facebook with a BIG STOP text)\nType clear(); to clean it.\nUse the code from the file jQuery Code and paste it in the Console.\nPaste the Code part1\nPART 2 – Get the URLs of Liked Pages Now it is the time to scroll the page so that you can actually see a number of pages that you have liked (Don’t scroll too much)\nUse code from the cleanslate part2 file and paste it. Press Enter to execute the code.\nPaste code from Part2\ntext to be saved\nAs soon as you press Enter, you will see a lot of links in Red Color (It is a Javascript Array). Right Click in the blank area and choose Save as\n“Save as” The text\nSave it as any file name and Open it in any text Editor (Notepad / Notepad++ / Sublime etc)\nPART 3 – Prepare the JS Array Remove the first line (If second line starts with a [) and type the following: var vd= At the end of the file, Insert a semicolon ; and Copy all text semicolon at end\nPART 4 – Hit the UNLIKE button with script Back to Chrome, Open a new tab (CTRL + T) and Browse to https://mbasic.facebook.com\nOpen the Console in new tab and Paste the jQuery code here too ( Step 3, 4, 5 \u0026amp; 6 )\nPaste the text copied in Step 12\nNow paste the code from cleanslate part4 – Code\nPaste the final code part4\nAs soon as you hit Enter, a lot of small windows shall pop-up. If they don’t, Please allow the pop-ups by changing the settings first.\nHow to allow pop ups\nIf you see these pop-ups, that means unlike process is working.\nCheck out top left part – pop ups\n","permalink":"https://tutes.in/how-to-unlike-all-facebook-pages-from-your-profile-and-clean-your-newsfeed/","summary":"\u003cdiv style=\"position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;\"\u003e\n\t\t\t\u003ciframe allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen\" loading=\"eager\" referrerpolicy=\"strict-origin-when-cross-origin\" src=\"https://www.youtube.com/embed/CmswFDmbkmE?autoplay=0\u0026amp;controls=1\u0026amp;end=0\u0026amp;loop=0\u0026amp;mute=0\u0026amp;start=0\" style=\"position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;\" title=\"YouTube video\"\u003e\u003c/iframe\u003e\n\t\t\u003c/div\u003e\n\n\u003cp\u003eHello humans, I have tried to keep this tutorial simple and detailed. Please proceed with caution.\u003c/p\u003e\n\u003cp\u003eThe following tutorial and the procedure will unlike pages you have liked from your profile, Please be clear about that the fact that the code provided here is clean and does not intend to do any harm to your Facebook account.\u003c/p\u003e\n\u003cp\u003eNote – This code uses \u003ca href=\"https://jquery.com/\"\u003ejQuery library\u003c/a\u003e in its original form. So you do not need to be scared while using this “scary” looking code.\u003c/p\u003e","title":"How to unlike all Facebook pages from your profile and Clean your newsfeed"},{"content":"This Code:\n$mageFilename = \u0026#39;app/Mage.php\u0026#39;; require_once $mageFilename; Mage::setIsDeveloperMode(true); ini_set(\u0026#39;display_errors\u0026#39;, 1); error_reporting(E_ALL \u0026amp; ~E_NOTICE); umask(0); Mage::app(\u0026#39;admin\u0026#39;); Mage::register(\u0026#39;isSecureArea\u0026#39;, 1); Mage::app()-\u0026gt;setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); //your mage code here ","permalink":"https://tutes.in/start-a-magento-instance-programmatically/","summary":"\u003cp\u003eThis Code:\u003c/p\u003e\n\u003cdiv class=\"highlight\"\u003e\u003cpre tabindex=\"0\" class=\"chroma\"\u003e\u003ccode class=\"language-php\" data-lang=\"php\"\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nv\"\u003e$mageFilename\u003c/span\u003e \u003cspan class=\"o\"\u003e=\u003c/span\u003e \u003cspan class=\"s1\"\u003e\u0026#39;app/Mage.php\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"k\"\u003erequire_once\u003c/span\u003e \u003cspan class=\"nv\"\u003e$mageFilename\u003c/span\u003e\u003cspan class=\"p\"\u003e;\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eMage\u003c/span\u003e\u003cspan class=\"o\"\u003e::\u003c/span\u003e\u003cspan class=\"na\"\u003esetIsDeveloperMode\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"k\"\u003etrue\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eini_set\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;display_errors\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eerror_reporting\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"k\"\u003eE_ALL\u003c/span\u003e \u003cspan class=\"o\"\u003e\u0026amp;\u003c/span\u003e \u003cspan class=\"o\"\u003e~\u003c/span\u003e\u003cspan class=\"nx\"\u003eE_NOTICE\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eumask\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"mi\"\u003e0\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eMage\u003c/span\u003e\u003cspan class=\"o\"\u003e::\u003c/span\u003e\u003cspan class=\"na\"\u003eapp\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;admin\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eMage\u003c/span\u003e\u003cspan class=\"o\"\u003e::\u003c/span\u003e\u003cspan class=\"na\"\u003eregister\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"s1\"\u003e\u0026#39;isSecureArea\u0026#39;\u003c/span\u003e\u003cspan class=\"p\"\u003e,\u003c/span\u003e \u003cspan class=\"mi\"\u003e1\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"nx\"\u003eMage\u003c/span\u003e\u003cspan class=\"o\"\u003e::\u003c/span\u003e\u003cspan class=\"na\"\u003eapp\u003c/span\u003e\u003cspan class=\"p\"\u003e()\u003c/span\u003e\u003cspan class=\"o\"\u003e-\u0026gt;\u003c/span\u003e\u003cspan class=\"na\"\u003esetCurrentStore\u003c/span\u003e\u003cspan class=\"p\"\u003e(\u003c/span\u003e\u003cspan class=\"nx\"\u003eMage_Core_Model_App\u003c/span\u003e\u003cspan class=\"o\"\u003e::\u003c/span\u003e\u003cspan class=\"na\"\u003eADMIN_STORE_ID\u003c/span\u003e\u003cspan class=\"p\"\u003e);\u003c/span\u003e\n\u003c/span\u003e\u003c/span\u003e\u003cspan class=\"line\"\u003e\u003cspan class=\"cl\"\u003e\u003cspan class=\"c1\"\u003e//your mage code here\n\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e","title":"Start a magento instance programmatically"},{"content":"If Primary key is set to Auto-increment, there are chances that you would not want to provide its value in insert query.\nHere is how to do it in MySQL:\nINSERT INTO table_name VALUES (NULL, 'column b', 'col c');\nAssumption^: The first column is the primary key set to AI\nSimilarly you can skip columns for other non-required data:\nINSERT INTO table_name(col b,col c) VALUES ('column b', 'col c');\n","permalink":"https://tutes.in/inserting-into-sql-without-specifying-primary-column/","summary":"\u003cp\u003eIf Primary key is set to Auto-increment, there are chances that you would not want to provide its value in insert query.\u003c/p\u003e\n\u003cp\u003eHere is how to do it in MySQL:\u003cbr\u003e\n\u003ccode\u003eINSERT INTO table_name VALUES (NULL, 'column b', 'col c');\u003c/code\u003e\u003c/p\u003e\n\u003cp\u003eAssumption^: The first column is the primary key set to AI\u003cbr\u003e\n\u003cbr\u003e\nSimilarly you can skip columns for other non-required data:\u003cbr\u003e\n\u003ccode\u003eINSERT INTO table_name(col b,col c) VALUES ('column b', 'col c');\u003c/code\u003e\u003c/p\u003e","title":"Inserting into SQL without specifying primary column"},{"content":"Mage::app()-\u0026gt;getCacheInstance()-\u0026gt;flush(); ","permalink":"https://tutes.in/flushing-magento-cache-the-programmer-way/","summary":"\u003cpre tabindex=\"0\"\u003e\u003ccode\u003eMage::app()-\u0026gt;getCacheInstance()-\u0026gt;flush();\n\u003c/code\u003e\u003c/pre\u003e","title":"Flushing Magento cache – The Programmer way"},{"content":"In this article, I am going to explain rooting procedure of your MI REDMI 2 PRIME. Applies to redmi 2 also. Jump to Requirements -\u0026gt; Downloads -\u0026gt; Pre Root Checks -\u0026gt; Root Procedure\nRequirements: ADB and Fastboot TWRP Recovery Image SuperSU update package USB connection with android debugging and of course all drivers installed. Downloads from shared folder contain: adb and fastboot drivers as adb.zip twrp recovery image as twrp.zip SuperSU update package as UPDATE-SuperSU-v2.46.zip Final folder view looks like:\nPre – Root Checks USB Debugging is on. If not, go to developer settings and then turn “Device’s USB Debugging” On Device drivers are configured correctly and your system detects the device. If not, install MI PC SUITE and restart your system.\nADB recognizes your phone as an active device with some random name. If not, kill adb server and then check again Procedure to root Xiaomi Redmi 2 Prime Copy SuperSU update package (.zip) to your device and remember the location.[](http://technacy.net/content/images/recovery-install.jpg)\nCheck ADB connection using command – adb devices . If this command shows an attached device as above, use command **adb reboot bootloader**to restart phone in fastboot mode[](http://technacy.net/content/images/flash-command.png)\nEnter command fastboot boot twrp.img. twrp.img is the name of your recovery file which is in the same folder as adb.exe and fastboot.exe\nYou’ll see the phone booting to recovery mode using TWRP recovery. Select install option to flash supersu package\nChoose that zip file to be flashed in the file explorer. Tap on “Select Storage” to browse SD card or Internal Memory\nSwipe the big dot below to install the package\nReboot system to finish. No need to wipe cache\nDone! Simply use any root app to check your phone is rooted.\nsuccessfully rooted redmi prime\nFully tested root procedure for Xiaomi Redmi 2 Prime running MIUI version 6.7.1 (Model HM2LTE-IN)\n","permalink":"https://tutes.in/how-to-root-xiaomi-redmi-2-prime-without-flashing-custom-recovery/","summary":"\u003cp\u003eIn this article, I am going to explain rooting procedure of your MI REDMI 2 PRIME. Applies to redmi 2 also. \u003cstrong\u003eJump\u003c/strong\u003e to \u003ca href=\"#requirements\"\u003eRequirements\u003c/a\u003e -\u0026gt; \u003ca href=\"#downloads\"\u003eDownloads\u003c/a\u003e -\u0026gt; \u003ca href=\"#preroot\"\u003ePre Root Checks\u003c/a\u003e -\u0026gt; \u003ca href=\"#procedure\"\u003eRoot Procedure\u003c/a\u003e\u003c/p\u003e\n\u003ch3 id=\"requirements\"\u003eRequirements:\u003c/h3\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://drive.google.com/folderview?id=0B7Bo2TmhtyFwfmdBdWRXWURTNWJrdHk2NmR4LU1IdlhiaDQ3WkhIRjl3czBhdzJzRHlHWlE\u0026amp;usp=sharing\"\u003eADB and Fastboot\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://drive.google.com/folderview?id=0B7Bo2TmhtyFwfmdBdWRXWURTNWJrdHk2NmR4LU1IdlhiaDQ3WkhIRjl3czBhdzJzRHlHWlE\u0026amp;usp=sharing\"\u003eTWRP Recovery Image\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://drive.google.com/folderview?id=0B7Bo2TmhtyFwfmdBdWRXWURTNWJrdHk2NmR4LU1IdlhiaDQ3WkhIRjl3czBhdzJzRHlHWlE\u0026amp;usp=sharing\"\u003eSuperSU update package\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003eUSB connection with android debugging\u003c/li\u003e\n\u003cli\u003eand of course \u003ca href=\"http://pcsuite.mi.com/\"\u003eall drivers installed\u003c/a\u003e.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch5 id=\"downloads-from-shared-folder-contain\"\u003e\u003ca href=\"https://drive.google.com/folderview?id=0B7Bo2TmhtyFwfmdBdWRXWURTNWJrdHk2NmR4LU1IdlhiaDQ3WkhIRjl3czBhdzJzRHlHWlE\u0026amp;usp=sharing\"\u003eDownloads\u003c/a\u003e from shared folder contain:\u003c/h5\u003e\n\u003col\u003e\n\u003cli\u003eadb and fastboot drivers as \u003ccode\u003eadb.zip\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003etwrp recovery image as \u003ccode\u003etwrp.zip\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003eSuperSU update package as \u003ccode\u003eUPDATE-SuperSU-v2.46.zip\u003c/code\u003e\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003eFinal folder view looks like:\u003cbr\u003e\n\u003ca href=\"http://technacy.net/content/images/work-folder-layout.png\"\u003e\u003cimg alt=\"work folder layout\" loading=\"lazy\" src=\"http://technacy.net/content/images/work-folder-layout.png\"\u003e\u003c/a\u003e\u003c/p\u003e","title":"How to root Xiaomi Redmi 2 Prime without flashing custom recovery"},{"content":"Commonly used regular expressions (regex) for developers in PHP\nRegex are used or can be used almost everywhere strings are involved. If you are dealing with text strings, you would often find patterns in them and you might be required to filter few of them based on some similarities and properties. For example: a currency or money is often written in this form –\n[Currency symbol] [Digits] ([.] [Digits])maybe\nNow, in order to filter any such things programmatically using a script, few of really helpful regular expressions are mentioned below:\nMatch 4 characters .{4} or .... Match first 4 characters ^.{4} Match last 3 characters .{3}$ or ...$ Match a digit [0-9] Match an alphabet [a-zA-Z] Match a digit occurring 0 or more times [0-9]* Match a lowercase alphabet occurring 1 or more times [a-z]+ Match an uppercase alphabet either NOT occurring or occurring once ( 0 or 1 time) [A-Z]? Match a character occurring exactly once\nwrite the character itself in regex; similar to #4 and #5\nMatch a character literally (used to match meta-characters)\nuse \\ before the character to be matched\nIf you want to find the occurrence of question mark(s) in a string\nuse ? (remember ? is used to find occurrence of at most 1 time but ? with find occurrence of ? itself exactly once)\nPro things\nMatch an e-Mail address\na regular expression to match an email address with 100% efficiency is really tough to be learnt here because according to RFC 0822\nhttps://www.ietf.org/rfc/rfc0822.txt\n, an email address can have letters like { } # $ @ \\ / – _ . alphabets numbers and more.\nSo, a quick regex for matching emails can be\n^[a-zA-Z0-9\\._%\\-^#\\{\\}]+@([a-zA-Z0-9.-]+\\.)+[a-zA-Z]{2,9}$ this will match {^}#@technacy.net which is an actual email address and is totally valid.\nHowever this won’t work all the times, a more detailed regex would be something like this: (email addresses can end with IP addresses too)\n/^(?!(?:(?:\\x22?\\x5C[\\x00-\\x7E]\\x22?)|(?:\\x22?[^\\x5C\\x22]\\x22?)){255,})(?!(?:(?:\\x22?\\x5C[\\x00-\\x7E]\\x22?)|(?:\\x22?[^\\x5C\\x22]\\x22?)){65,}@)(?:(?:[\\x21\\x23-\\x27\\x2A\\x2B\\x2D\\x2F-\\x39\\x3D\\x3F\\x5E-\\x7E]+)|(?:\\x22(?:[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x21\\x23-\\x5B\\x5D-\\x7F]|(?:\\x5C[\\x00-\\x7F]))*\\x22))(?:\\.(?:(?:[\\x21\\x23-\\x27\\x2A\\x2B\\x2D\\x2F-\\x39\\x3D\\x3F\\x5E-\\x7E]+)|(?:\\x22(?:[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x21\\x23-\\x5B\\x5D-\\x7F]|(?:\\x5C[\\x00-\\x7F]))*\\x22)))*@(?:(?:(?!.*[^.]{64,})(?:(?:(?:xn--)?[a-z0-9]+(?:-[a-z0-9]+)*\\.){1,126}){1,}(?:(?:[a-z][a-z0-9]*)|(?:(?:xn--)[a-z0-9]+))(?:-[a-z0-9]+)*)|(?:\\[(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){7})|(?:(?!(?:.*[a-f0-9][:\\]]){7,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?)))|(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){5}:)|(?:(?!(?:.*[a-f0-9]:){5,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3}:)?)))?(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))(?:\\.(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))){3}))\\]))$/iD So, what should be the ideal solution because you won’t like to check this^ regex all the time\nUse PHP’s inbuilt filter – FILTER_VALIDATE_EMAIL\nhttp://php.net/manual/en/filter.filters.validate.php\nif (!filter_var($email, FILTER_VALIDATE_EMAIL)) { $emailErr = \u0026#34;Invalid email format\u0026#34;; } For security, w3schools mentioned passing and sanitizing all the data first with a function:\nfunction test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } Matching a URL\nA URL can have letters, digits, any character as a parameter or in host details. A simple version of regex to match http urls is\n^(http|https):\\/\\/((([a-z0-9.-]+\\.)+[a-z]{2,4})|([0-9\\.]{1,4}){4})(\\/([a-zA-Z?-?0-9-_\\?\\:%\\.\\?\\!\\=\\+\\\u0026amp;\\/\\#\\~\\;\\,\\@]+)?)?$ A detailed and more efficient regex:\n+// _^(?:(?:https?|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\x{00a1}-\\x{ffff}0-9]-*)*[a-z\\x{00a1}-\\x{ffff}0-9]+)(?:\\.(?:[a-z\\x{00a1}-\\x{ffff}0-9]-*)*[a-z\\x{00a1}-\\x{ffff}0-9]+)*(?:\\.(?:[a-z\\x{00a1}-\\x{ffff}]{2,}))\\.?)(?::\\d{2,5})?(?:[/?#]\\S*)?$_iuS Diego Perini\nhttps://gist.github.com/dperini/729294\nHowever PHP’s inbuilt filter can also be used as the most ideal\nuse FILTER_VALIDATE_URL as we used FILTER_VALIDATE_EMAIL earlier\nMatch a Phone number\nRegex for a phone number is easy if you want to match only MOBILE NUMBERS which must be of 10 digits and can include a country code like +91, 091, (91), (+91) or 0\n^(091|\\+91|91|\\(091\\)|\\(\\+91\\)|\\(91\\)|0)? ?[7-9][0-9]{9}$﻿ https://regex101.com/r/kA6oD0/6\nMatch a Name\nA name is supposed to have alphabets only but the length of first names and last names is not fixed or general at all. These lengths may vary thus the regex sounds funny at times.\n^[a-zA-Z’ -]+$\nexpression, match, php, regex\nClean html code with REGEX\n$stripped = trim(preg_replace(\u0026#39;/\\s+/\u0026#39;, \u0026#39; \u0026#39;, $sentence)); ","permalink":"https://tutes.in/commonly-used-regular-expressions-regex-for-developers-in-php/","summary":"\u003cp\u003eCommonly used regular expressions (regex) for developers in PHP\u003c/p\u003e\n\u003cp\u003eRegex are used or can be used almost everywhere strings are involved. If you are dealing with text strings, you would often find patterns in them and you might be required to filter few of them based on some similarities and properties. For example: a currency or money is often written in this form –\u003cbr\u003e\n[Currency symbol] [Digits] ([.] [Digits])maybe\u003c/p\u003e\n\u003cp\u003eNow, in order to filter any such things programmatically using a script, few of really helpful regular expressions are mentioned below:\u003c/p\u003e","title":"Commonly used regular expressions (regex) for developers in PHP"},{"content":"In this article, I am going to discuss how to cheat the game Atomas – available at Google Play store for free.\nWhat is Atomas?\nWell, Atomas is a fascinating puzzle game, which you can learn in seconds but will entertain you for weeks. The perfect game for your spare time!\nYour little universe starts with hydrogen atoms only but with the help of the energy rich plus atoms you are able to fusion two hydrogen atoms into one helium atom, 2 helium atoms into one lithium atom and so on. Your primary goal is to create the valuable elements like Gold, Platinum and Silver.\nDownload it from google android app store Download atomas game.\nRequirements\nRooted Android Phone (full root access) Any file manager capable of editing xml file (ES File explorer) Titanium Backup (optional) Patch file (edited xml data) Procedure\nClose the running instance of the Game(if any) and also remove it from recent apps Open your file manager/explorer and move to /data/data/com.sirnic.atomas/shared_prefs You must find a file named Cocos2dxPrefsFile.xml in this folder. This file is in xml format and hence stores all the info of the current state of game. Replace this file with the file mentioned in the Requirements section. Or you can alternatively click here to download the file Atomas Game – Cocos2dxPrefsFile.xml Run the Game and Enjoy 😉 Shell script for instant black mass atom (-6) to add any two atoms\nbusybox killall com.sirnic.atomas orgusermal=`ls -ln /data/data/com.sirnic.atomas/shared_prefs/Cocos2dxPrefsFile.xml | busybox awk \u0026#39;{print $3}\u0026#39;` busybox sed -i \u0026#39;s:\u0026lt;int name=\u0026#34;classic_ufg_cb\u0026#34; value=\u0026#34;.*\u0026#34;\u0026gt;\u0026lt;/int\u0026gt;:\u0026lt;int name=\u0026#34;classic_ufg_cb\u0026#34; value=\u0026#34;-6\u0026#34;\u0026gt;\u0026lt;/int\u0026gt;:\u0026#39; /data/data/com.sirnic.atomas/shared_prefs/Cocos2dxPrefsFile.xml chown $orgusermal.$orgusermal /data/data/com.sirnic.atomas/shared_prefs/Cocos2dxPrefsFile.xml How it works? A question for curious ones This is a tricky part on the name of XML. Since the data is stored in key and data format, it was not too tough to observe which entry stores what information for the game Atomas.\nLook at this file:\n\u0026lt;?xml version=\u0026#39;1.0\u0026#39; encoding=\u0026#39;utf-8\u0026#39; standalone=\u0026#39;yes\u0026#39; ?\u0026gt; \u0026lt;map\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b8\u0026#34; value=\u0026#34;-10\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b9\u0026#34; value=\u0026#34;-10\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b4\u0026#34; value=\u0026#34;-10\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b5\u0026#34; value=\u0026#34;-10\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b6\u0026#34; value=\u0026#34;-10\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b7\u0026#34; value=\u0026#34;-10\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b0\u0026#34; value=\u0026#34;129\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b1\u0026#34; value=\u0026#34;129\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b2\u0026#34; value=\u0026#34;-10\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b3\u0026#34; value=\u0026#34;-10\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_nu\u0026#34; value=\u0026#34;27597\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;timeStamp3\u0026#34; value=\u0026#34;0\u0026#34; /\u0026gt; \u0026lt;string name=\u0026#34;lastName\u0026#34;\u0026gt;Technacy\u0026lt;/string\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_s\u0026#34; value=\u0026#34;129766\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;supernovas\u0026#34; value=\u0026#34;339\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg\u0026#34; value=\u0026#34;1\u0026#34; /\u0026gt; \u0026lt;boolean name=\u0026#34;hide_ads\u0026#34; value=\u0026#34;true\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;luckyCharm\u0026#34; value=\u0026#34;7\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;neutrinoIntro\u0026#34; value=\u0026#34;1\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;gamesPlayed2\u0026#34; value=\u0026#34;4\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_lv\u0026#34; value=\u0026#34;105\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;soundOn\u0026#34; value=\u0026#34;1\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_hv\u0026#34; value=\u0026#34;114\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_mc\u0026#34; value=\u0026#34;3141\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;localscore_5\u0026#34; value=\u0026#34;0\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_highelement\u0026#34; value=\u0026#34;129\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;localscore_4\u0026#34; value=\u0026#34;0\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;isFirstStart\u0026#34; value=\u0026#34;1\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;localscore_7\u0026#34; value=\u0026#34;0\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;localscore_6\u0026#34; value=\u0026#34;0\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;localscore_1\u0026#34; value=\u0026#34;1391\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;localscore_0\u0026#34; value=\u0026#34;4454\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;localscore_3\u0026#34; value=\u0026#34;297\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_mwp\u0026#34; value=\u0026#34;0\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;localscore_2\u0026#34; value=\u0026#34;1335\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b19\u0026#34; value=\u0026#34;-10\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b16\u0026#34; value=\u0026#34;-10\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b15\u0026#34; value=\u0026#34;-10\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b18\u0026#34; value=\u0026#34;-10\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b17\u0026#34; value=\u0026#34;-10\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_highscore\u0026#34; value=\u0026#34;78454\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b11\u0026#34; value=\u0026#34;-10\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;wasRated1\u0026#34; value=\u0026#34;1\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b12\u0026#34; value=\u0026#34;-10\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b13\u0026#34; value=\u0026#34;-10\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b14\u0026#34; value=\u0026#34;-10\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_cb\u0026#34; value=\u0026#34;-1\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b10\u0026#34; value=\u0026#34;-10\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_lc\u0026#34; value=\u0026#34;1\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_rnu\u0026#34; value=\u0026#34;0\u0026#34; /\u0026gt; \u0026lt;string name=\u0026#34;localname_9\u0026#34;\u0026gt;\u0026lt;/string\u0026gt; \u0026lt;boolean name=\u0026#34;gameCenterAndroidLogIn\u0026#34; value=\u0026#34;true\u0026#34; /\u0026gt; \u0026lt;string name=\u0026#34;localname_6\u0026#34;\u0026gt;\u0026lt;/string\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b24\u0026#34; value=\u0026#34;-10\u0026#34; /\u0026gt; \u0026lt;string name=\u0026#34;localname_5\u0026#34;\u0026gt;\u0026lt;/string\u0026gt; \u0026lt;string name=\u0026#34;localname_8\u0026#34;\u0026gt;\u0026lt;/string\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b22\u0026#34; value=\u0026#34;-10\u0026#34; /\u0026gt; \u0026lt;string name=\u0026#34;localname_7\u0026#34;\u0026gt;\u0026lt;/string\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b23\u0026#34; value=\u0026#34;-10\u0026#34; /\u0026gt; \u0026lt;string name=\u0026#34;localname_2\u0026#34;\u0026gt;Malpani\u0026lt;/string\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b20\u0026#34; value=\u0026#34;-10\u0026#34; /\u0026gt; \u0026lt;string name=\u0026#34;localname_1\u0026#34;\u0026gt;Harsh\u0026lt;/string\u0026gt; \u0026lt;int name=\u0026#34;classic_ufg_b21\u0026#34; value=\u0026#34;-10\u0026#34; /\u0026gt; \u0026lt;string name=\u0026#34;localname_4\u0026#34;\u0026gt;\u0026lt;/string\u0026gt; \u0026lt;string name=\u0026#34;localname_3\u0026#34;\u0026gt;Technacy\u0026lt;/string\u0026gt; \u0026lt;string name=\u0026#34;localname_0\u0026#34;\u0026gt;Technacy\u0026lt;/string\u0026gt; \u0026lt;int name=\u0026#34;localscore_8\u0026#34; value=\u0026#34;0\u0026#34; /\u0026gt; \u0026lt;int name=\u0026#34;localscore_9\u0026#34; value=\u0026#34;0\u0026#34; /\u0026gt; \u0026lt;/map\u0026gt; Analysis:\nThe value classic_ufg_cb stores the current atom details. Value 0 is for Hydrogen and thus increasing numbers for higher atoms. ex 7 for oxygen and 5 for carbon -1 means Plus atom -2 means minus -4 means anti matter -5 means copy atom -6 means black plus classic_ufg_s stores current score classic_ufg_lv and classic_ufg_hv store range of atoms which come randomly after every turn (Low and High value) classic_highelement stores the highest atoms discovered in the game. More things can be deduced as the names are quite self-explanatory ","permalink":"https://tutes.in/atomas-android-game-hack-cheat-and-titanium-backup-saved-game-patch/","summary":"\u003cp\u003eIn this article, I am going to discuss how to cheat the game Atomas – available at Google Play store for free.\u003c/p\u003e\n\u003cp\u003eWhat is \u003ca href=\"https://play.google.com/store/apps/details?id=com.sirnic.atomas\"\u003eAtomas\u003c/a\u003e?\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003eWell, Atomas is a fascinating puzzle game, which you can learn in seconds but will entertain you for weeks. The perfect game for your spare time!\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003cp\u003eYour little universe starts with hydrogen atoms only but with the help of the energy rich plus atoms you are able to fusion two hydrogen atoms into one helium atom, 2 helium atoms into one lithium atom and so on. Your primary goal is to create the valuable elements like Gold, Platinum and Silver.\u003c/p\u003e","title":"Atomas Android Game Hack Cheat and Titanium Backup Saved game patch"}]