sito web:Tutsplanet - Risorse tecniche e blog gratuitesoddisfare
Tutsplanet-FreeTechnicalandBloggingResources window._wpemojiSettings={"baseUrl":":\/\/s.w.org\/imes\/core\/emoji\/15.0.3\/72x72\/","ext":".png","svgUrl":":\/\/s.w.org\/imes\/core\/emoji\/15.0.3\/svg\/","svgExt":".svg","source":{"concatemoji":":\/\/tutsplanet.com\/wp-includes\/js\/wp-emoji-release.min.js?ver=6.7.1"}};/*!Thisfileisauto-generated*/!function(i,n){varo,s,e;functionc(e){try{vart={supportTests:e,timestamp:(newDate).valueOf()};sessionStore.setItem(o,JSON.stringify(t))}catch(e){}}functionp(e,t,n){e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(t,0,0);vart=newUint32Array(e.getImeData(0,0,e.canvas.width,e.canvas.height).data),r=(e.clearRect(0,0,e.canvas.width,e.canvas.height),e.fillText(n,0,0),newUint32Array(e.getImeData(0,0,e.canvas.width,e.canvas.height).data));returnt.every(function(e,t){returne===r[t]})}functionu(e,t,n){switch(t){case"fl":returnn(e,"\ud83c\udff3\ufe0f\u200d\u26a7\ufe0f","\ud83c\udff3\ufe0f\u200b\u26a7\ufe0f")?!1:!n(e,"\ud83c\uddfa\ud83c\uddf3","\ud83c\uddfa\u200b\ud83c\uddf3")&&!n(e,"\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f","\ud83c\udff4\u200b\udb40\udc67\u200b\udb40\udc62\u200b\udb40\udc65\u200b\udb40\udc6e\u200b\udb40\udc67\u200b\udb40\udc7f");case"emoji":return!n(e,"\ud83d\udc26\u200d\u2b1b","\ud83d\udc26\u200b\u2b1b")}return!1}functionf(e,t,n){varr="undefined"!=typeofWorkerGlobalScope&&selfinstanceofWorkerGlobalScope?newOffscreenCanvas(300,150):i.createElement("canvas"),a=r.getContext("2d",{willReadFrequently:!0}),o=(a.textBaseline="top",a.font="60032pxArial",{});returne.forEach(function(e){o[e]=t(a,e,n)}),o}functiont(e){vart=i.createElement("script");t.src=e,t.defer=!0,i.head.appendChild(t)}"undefined"!=typeofPromise&&(o="wpEmojiSettingsSupports",s=["fl","emoji"],n.supports={everything:!0,everythingExceptFl:!0},e=newPromise(function(e){i.addEventListener("DOMContentLoaded",e,{once:!0})}),newPromise(function(t){varn=function(){try{vare=JSON.parse(sessionStore.getItem(o));if("object"==typeofe&&"number"==typeofe.timestamp&&(newDate).valueOf() // SkiptoprimarynigationSkiptomaincontentSkiptoprimarysidebarTutsplanetFreeTechnicalandBloggingResourcesHomeWebHostingProgrammingPluginsTwitterTrendsToolsAboutUsProgrammingHowtocopyfilefromhostsystemtodockercontainer?Oct25,2024EditorialStaffLeeaCommentThequickestwaytotransfer/copyfilesfromthehostsystemtodockercontainersisusingthe8220;dockercp8221;command.ThecommandwillbeasfollowsByrunning8220;dockerps-a8221;youcanseetheIDofthecontainerUsethe8220;dockerexec-it8221;commandtocheckifthelocationexistsinsidethecontainer.Ifeverything8230;ContinueReadingProgrammingTsMento2AddCustomAttributetoSortoptioninMentoSearchResultspeOct22,2024EditorialStaffLeeaCommentRequirementInourwebshop,weheproductswithadiscontinuedfl,andacustomattributeaddedtotheproductsectionofMentotomarkaproduct.Whenacustomersearchesforproducts,theresultwillalsoincludethesediscontinuedproducts.Wedonotplantohidetheseresults,butit8217;squiteannoyingitcomesin8230;ContinueReadingDesign&DevelopmentHowtoFix8211;productshetheissue:Missinginventorydata8211;GoogleMerchantcenter?Oct18,2024EditorialStaffLeeaCommentOnefineday,IhebeenbrowsingdifferentoptionsthroughGoogleMerchantCenterandenabled/disabledsomesettings.Butthenextday,GMCsurprisedmewithsomewarningslikethebelowproductshetheissue:MissinginventorydatainthenotificationstabWehadmorethan1000productsanditbaffledmealot,thatI8230;ContinueReadingProgrammingTsmento2HowToAddMoreSortingFieldsinMento2.4?Oct16,2024EditorialStaffLeeaCommentIntoday8217;stutorial,weshowshowtoaddanewsortfieldtotheMento2project.Note:Thisisonlytestedonversionsafter2.4.6.Tokeepthetutorialsimple,Iassumeyouhealreadyafunctioningmodule,oryouknowhowtocreateamoduleinMento.First,wecreateVendor\ModuleName\etc\di.xmltorun8230;ContinueReadingProgrammingTsMySqlHowtoupdateinnodb_buffer_pool_sizeinmysql8withUbuntu24.04?Oct9,2024EditorialStaffLeeaCommentIntoday8217;sdiscussion,weareshowinghowtoupdateinnodb_buffer_pool_sizeinMySQL8withUbuntu24.04.Gotothisfile/etc/mysql/my.confWhenyouopenthefileyouwillbeencountersomethinglikebelow,ifyoudon8217;tperformanymodificationsNext,addthebelowblockbeforetheincludestatementsinthefileNowyourfilewill8230;ContinueReadingProgrammingTsWordpressCustomErrorMesseWithwpcf7_before_send_mailHookSep24,2024EditorialStaffLeeaCommentIntoday8217;ssnippetweareillustratinghowtoaddacustomererrormessewhenusingwpcf7_before_send_mailinWordPressContactForm7.MyexamplefollowsimplementingaminimalcustomhoneypotcaptchaintheContactForm7.The$abort=truestatementwillpreventtheemailfrombeingsent.ProgrammingTsMento2WhichlayoutfileisresponsibleforthecmspeinMento2?Aug28,2024EditorialStaffLeeaCommentInMento2,thelayoutfileresponsibleforrenderingCMSpesiscms_pe_view.xml.Thislayoutfileistypicallylocatedin:ThislayoutfiledeterminesthestructureandcontentsoftheCMSpes,suchaswhichblocksareincludedandtheirpositions.IfyouneedtocustomizethelayoutofCMSpes,youcancreateor8230;ContinueReadingProgrammingTsMento2CreateaGuestOrderusingRESTApiinMento2Aug6,2024EditorialStaffLeeaCommentToday8217;stutorialdiscusseshowtocreateaguestorderusingtheRESTAPIinMento2.Oftentimes,wehetointegrateourstoreintomobileapplications,andmobileapplicationneedsthedataintheformofAPIs.FollowingarethestepstocreateaguestorderusingRestAPIinMento2Step1:Create8230;ContinueReadingDesign&DevelopmentTsAISmartStays:atarsSettheStandardforAIConciergeEleganceinHotelsDec14,2023EditorialStaffLeeaCommentPicturethis:youwalkintoahotel,andinsteadofahumanbehindthefrontdesk.Youseeafriendlyrobotreadytohelp.That8217;sthemicofAIconcierges.Thesearelikesuper-smaTutsplanet - Risorse tecniche e blog gratuitertcomputerfriends.Lastly,Thatcanassistyouduringyourstay.Theycananswerquestionsandrecommendcoolplacestovisit.And8230;ContinueReadingGeneralTsjQueryHowtoshowadivandhideafterafewsecondsinjQuery?Dec13,2023EditorialStaffLeeaCommentjQueryiscapableofdoingamazingstuffwithlesscodeinourapplications.Today,weareseeingoneusecasewherewecanshowahiddendivandhideainafterfewsecondsinjQuery.ProgrammingTsMento2Mento2:HowtosenddatausingAjaxformincustomform?Dec13,2023EditorialStaffLeeaCommentInMento2,wecanusejQuerytoperformsomeajaxrequestssuchassendinganemailfromthecatalogproduct,oracustomcontactformwithuserdetails.ThefollowingeasyscriptwillhelpyoutoimplementajTutsplanet - Risorse tecniche e blog gratuiteaxwithjQueryinaphtmlfileofyourchoice.InspirationProgrammingTsMento2HowtoassignaGuestOrdertoaCustomerinMento2?Nov24,2023EditorialStaffLeeaCommentWeareseeingthisalotasthecustomerplacesorderwithoutloggedinandlatercreateandaccountandviewtheirordersfromthedashboard.WecansolvethisissuebydirectlyrunningSQLqueriesorjustcreatingasmallscripttodoit.SQLMethodUsingPHPScriptSourceProgrammingTsMento2Howtogetproductcollectionbasedoncustomattribute(dropdownattributevalue)Nov15,2023EditorialStaffLeeaCommentMento2iswellknownforit8217;scapacitytoextendingthefeatures.Today8217;sarticlewewillbediscussinghowtogetproductcollectionbasedoncustomattribute(dropdownattributevalue).Fordropdownattribute,WecanfilterusingdropdownoptionIDinsteadofLabel.Soyourcodeislikebelow.Theabove20isthe8230;ContinueReadingProgrammingTsMento2HowGetCurrentURLfromaPHTML8211;Mento2Oct20,2023EditorialStaffLeeaCommentToday8217;spostwearediscussinghowtogetthecurrentURLinphtmlfileinMento2.Asweknowweheaccesstoobjectinthephtml,wecanutilizethatforthispurpose.Let8217;sprintmethodsfortheclassItproducestheoutputlikethisFromthiswecanusethemethodget8230;ContinueReadingProgrammingTsMento2Howtoprogrammaticallyupdatenameofcategoryinspecificstore8211;Mento2Oct4,2023EditorialStaffLeeaCommentFollowthebelowcodetoprogramaticallyupdatenameofcategoryinaspecificstoreinMento2.GeneralBestDummyContent8211;LoremIpsumAug14,2023EditorialStaffLeeaCommentWhatisLoremIpsum?LoremIpsum issimplydummytextoftheprintingandtypesettingindustry.LoremIpsumhasbeentheindustry8217;sstandarddummytexteversincethe1500s,whenanunknownprintertookagalleyoftypeandscrambledittomakeatypespecimenbook.Ithassurvivednotonlyfivecenturies,butalso8230;ContinueReadingGeneral,ProgrammingTsbash,ShellHowtowritetoafile,butoverwriteexistingdatainabashscript?Aug4,2023EditorialStaffLeeaCommentTowritetoafileandoverwriteanyexistingdata,youcanusethe>operator.Forexample,towrite8220;Hello,world!8221;toafilecalledhello.txt,youcanrunthefollowingcommand:Thisredirection>>helpstoappend,butyoucanuseasinglearrowsyntaxtooverwriteexistingdata.Ifthefilehello.txt8230;ContinueReadingProgrammingTsMento2HowtogetcategoryidbycategorynameinMento2Jul27,2023EditorialStaffLeeaCommentIntoday’sblog,weareillustratinghowtogetacategoryidbycategorynameinMento2.CallthecollectionfactoryintheconstructoroftheclassandusingaddAttributeToFilterfilterthecollectionbyname.Youshouldmakesureyourcategorynamesareunique,oryouhetoaddthelevelfieldinthe8230;ContinueReadingProgrammingTsMySql,phpmyadminTypeError:PhpMyAdmin\Export::getFilenameAndMimetype():Argument#5($filenameTemplate)mustbeoftypestring,nullgiven,calledin/libraries/classes/Controllers/Export/ExportController.phponline397Jul27,2023EditorialStaff1CommentTypeError:PhpMyAdmin\Export::getFilenameAndMimetype():Argument#5($filenameTemplate)mustbeoftypestring,nullgiven,calledin/libraries/classes/Controllers/Export/ExportController.phponline397TheaboveerrorwascomingwhenexportingtheMySqlwithafreshinstallationofphpMyAdmin.SolutionGotophp.iniandchangethemax_input_varstoahighervalueasthedefaultwouldbe1000.ProgrammingTsMento2Mento2:HowtoaddoptionvaluestoproductattributesprogrammaticallyJul24,2023EditorialStaffLeeaCommentIntoday’sblog,weareshowinghowtoaddoptionvaluestoproductattributesprogrammaticallyinMento2.ProgrammingTsMento2Mento2:Gettheproductattribute8217;sselectoptionvaluefromoption_idwithoutloadingtheproductJul24,2023EditorialStaffLeeaCommentIntoday’sblog,weareshowinghowtogetanoptionvaluebasedontheoptionidinMento2,withoutloadingtheproduct.FirstofallloadtheAttributeRepositoryInterfaceviaconstructorwhereveryourequirethisfeature.ProgrammingTsMento2Howtodisplayimesfromthemefolderininphtml-Mento2Jul14,2023EditorialStaffLeeaCommentYoucanusebelowtwomethodstodisplayimesfromthemefolderinphtmlfileinMento2.Oftentimesit8217;sveryconvenienttokeepthethemerelatedimestothemeimesfolders.ProgrammingTsMento2YouneedtoconfigureTwo-FactorAuthorizationinordertoproceedtoyourstore8217;sadminarea8211;Mento2Jun16,2023EditorialStaffLeeaCommentAfterinstallingMento2youmightencounterthisscreen,thatsaysYouneedtoconfigureTwo-FactorAuthorizationinordertoproceedtoyourstore8217;sadminarea.ProgrammingTsMento2HowtoGetProductStockQuantityandOtherStockInformation8211;Mento2Jun16,2023EditorialStaffLeeaCommentIntoday’stutorial,IamshowinghowtogettheproductstockquantityandinformationinMento2.Inthisarticle,IwillillustratemainlytwomethodstogetproductstockinformationinMento2,andbothmethodsaretestedandconfirmedit’sworking.#Method1Thismethodwillbeusing\Mento\CatalogInventory\Model\Stock\Itemclasstoget8230;ContinueReadingProgrammingTsLarelWhatisgetOrPutinLarel?Mar28,2023EditorialStaffLeeaCommentgetOrPutfeaturewasintroducedinLarel8.81andit8217;saprettyamazingoneliner.getOrPuthelpsyoutogetanexistingkeyorputthevalueifitdoesn8217;texistandreturnthevalueonacollection.Asofnowyouwanttohethreelinesofcodetoachievethis,butgetOrPutchangeseverything.if8230;ContinueReadingDesign&DevelopmentTsGit,githubHowtosetupGitHubSSHinUbuntuwithexampleMar25,2023EditorialStaffLeeaCommentToday8217;stutorialdemonstrateshowtoconfigureGitHubsshinyourUbuntu22.04operatingsystem.WeoftenusegitandGitHubfordevelopmentpurposes,soconnectingtoremoteGithubisanimportantstepinourdevelopmentjourney.FollowthebelowstepstoconnectyourlocalmachinetoGitHubremotebyconfiguringtheGitHubsshkey.Adding8230;ContinueReadingGeneralTsdockerDockerInstallUbuntu:docker-desktop:Depends:docker-ce-clibutitisnotinstallableMar14,2023EditorialStaffLeeaCommentProblemIwasexperiencinganissuewheninstallingthedockerdesktoponUbuntu22.04,asitthrowsthebelowerrorwhenIranthebelowcommand.ProgrammingTsLarelWhatistheoppositeofhas()methodinLarel?Nov17,2022EditorialStaffLeeaCommentWeallknowthehas()methTutsplanet - Risorse tecniche e blog gratuiteodhelpslistanumberofrecordswithatleastarelatedrecordinLarelEloquent.Forexample,belowwecangetallpoststhatheatleastonecomment.$posts=App\Models\Post::has(8216;comments8217;)->get();Butwhatwouldbetheoppositeofthis?Howdowegetapostthathaszero8230;ContinueReadingProgrammingTsLarelLarel:DownloadfilestostorefromSFTPNov3,2022EditorialStaffLeeaCommentThispostwilldiscussusingLareltoreadanddownloadfilesfromaremoteserverviaSFTP.Forthispurpose,weuseathird-partypacketoconnecttosftpanddownloadthefilestothestorefolderinLarel.Thefirstandmostimportantstepistoinstallandconfiguretheleue/flysystem-sftpintheLarel8230;ContinueReadingProgrammingTsnodejsWhyYouShouldUseNodeJsForEnterpriseSoftware?Sep27,2022EditorialStaffLeeaCommentEnterprisesoftwareisdevelopedtomanecomplicatedtasks,suchasmonitoringandcontrollingessentialbusinessoperations,gatheringandanalyzingdata,andenforcingsecuritypolicies.Theseprogramstendtobecomplex,requiringmuchuserinputandawidevarietyofseparatebutrelatedcomponents.Theoptimizationoftheseapplicationsisanotherpotentialobstacle.Additionally,enterpriseapps8230;ContinueReadingPe1Pe2Pe3Interimpesomittedx;Pe19GotoNextPex000BB;PrimarySidebar QuickLinks Top21WebsiteIdeasToMakeMoneyOnlinein2021ASimpleYouTubeVideoDownloaderScriptinPHPThe50MostUsefuljQueryPluginsforFrontendDevelopmentReplace“\n”withnewlinecharacters,usingNotepad++UsingThird-PartyLibrariesinCodeigniterUploadMultipleImesandStoreinDatabaseusingPHPandMySQL.HierarchicalTreeviewCategoryExampleinLarelLarelImeInterventionTutorialWithExampleHowtoimportsqlfileinMySQLdatabaseusingPHP?FreeVATCalculatorOnline Subscribe *indicatesrequired EmailAddress* SearchHereSearchthiswebsiteShare Categories Design&Development Drupal Facebook General HowTo ios Jascript Linux Mento Marketing News PHP Plugins Programming SnippetsList SocialMedia Softwares Themes Tips Wordpress YouTube x000A9; 2024·PlanetonGenesisFramework·PoweredByBunnyCDN.Networkoneweb.tools window.dataLayer=window.dataLayer||[]; functiongt(){dataLayer.push(arguments);} gt('js',newDate()); gt('config','UA--1'); document.addEventListener('DOMContentLoaded',(event)=>{document.querySelectorAll('pre').forEach((el)=>{ hljs.highlightElement(el);});}); vargenesis_responsive_menu={"mainMenu":"Menu","menuIconClass":"dashicons-beforedashicons-menu","subMenu":"Submenu","subMenuIconClass":"dashicons-beforedashicons-arrow-down-alt2","menuClasses":{"others":[".n-primary"]}};