localhost
How can I test Google Tag manager locally
Google Tag Manager can be easily tested on your local machine (no need for a Chrome extension), similar to how you would Preview your changes on a public website/app: Setup your Google Tag Manager account. Add the <!– Google Tag Manager –> script to the <head> of your webpage(s). Add the <!– Google Tag Manager … Read more
How to fix Error: MySQL shutdown unexpectedly on Xampp due to Plugin ‘Aria’
The solution is Removing the aria_log_control file allowed MariaDB to start again. You can find this file in \xampp\mysql\data. Then restart or start xammp.
What is the purpose of the Microsoft Loopback Adapter?
When sending messages to 127.0.0.1 (or the localhost) the internal network driver typically handles this by shortcutting a few steps. If you have a networksniffer/protocol analyzer like wireshark, it can not see these shortcutted packets. By using a loopback adapter, the messages get send much further through the stack, enabling programs like wireshark to capture … Read more
Restricting MySQL connections from localhost to improve security
If you restrict access from remote hosts to your usernames and passwords then someone won’t be able to access the database externally. You could also configure your firewall to only allow traffic to 3306 (MySQL Default Port) from the localhost machine. Update To setup your user so they can only access through LOCALHOST use: GRANT … Read more
Visual Studio Code debugger with Chrome refused to connect to localhost
If anyone else is having this issue, I solved it by: 1)installing the ritwickdey/vscode-live-server available here: vscode-live-server link 2) restarting vscode 3) clicking the Go Live button at the bottom of the screen 4) getting the server address from the resulting Chrome window (ex: http://localhost:5500/) 5) changing the .vscode/launch.json file to include that server address: … Read more
AttributeError: ‘Settings’ object has no attribute ‘ROOT_URLCONF’
From django docs: A Django settings file contains all the configuration of your Django installation. When you use Django, you have to tell it which settings you’re using. Do this by using an environment variable, DJANGO_SETTINGS_MODULE. The value of DJANGO_SETTINGS_MODULE should be in Python path syntax, e.g. mysite.settings. Note that the settings module should be … Read more
React tutorial – how do I start the node server for a reactJs application?
Pretty solid chance it’s npm start from the project root. Properly packaged modules will have some node scripts configured in package.json. It’s customary to use start as the script to run the dev environment, though some might use build, dev, or other names.
How to use subdomains with localhost on IISExpress?
This can be accomplished by editing the applicationHost.config file C:\Users\yourProfile\Documents\IISExpress\config\applicationHost.config Visual Studio usually handles editing this file for you when you make configuration changes, but you can manually edit. Find the particular site you are working with and the following bindings should work: <bindings> <binding protocol=”http” bindingInformation=”*:5252:localhost” /> <binding protocol=”http” bindingInformation=”*:5252:contoso.localhost” /> </bindings> You can … Read more
send email from localhost
Update for rails 4.0 Now you need these code to make it work: # I recommend using this line to show error config.action_mailer.raise_delivery_errors = true ActionMailer::Base.smtp_settings = { :address => ‘smtp.gmail.com’, :domain => ‘mail.google.com’, :port => 587, :user_name => ‘[email protected]’, :password => ‘******’, :authentication => :plain, :enable_starttls_auto => true }