# Localhost

Published articles for Localhost.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Devenv 2.3: Portless and TUI configuration

DevFeed: [Devenv 2.3: Portless and TUI configuration](<https://devfeed.tech/articles/devenv-2-3-portless-and-tui-configuration-31348.md>)

Original publisher: [Read original article](<https://discourse.nixos.org/t/devenv-2-3-portless-and-tui-configuration/79969>)

Author: domenkozar

Published: 2026-09-07T13:59:38Z

Content type: release

Language: en

Sources: [Announcements - NixOS Discourse](<https://devfeed.tech/sources/announcements-nixos-discourse.md>)

Topics: [Nix](<https://devfeed.tech/topics/nix.md>), [Pingora](<https://devfeed.tech/topics/pingora.md>), [Text-based user interface](<https://devfeed.tech/topics/tui.md>), [proxy](<https://devfeed.tech/topics/proxy.md>), [Processes](<https://devfeed.tech/topics/processes.md>), [configuration](<https://devfeed.tech/topics/configuration.md>)

Tags: [announcements](<https://devfeed.tech/tags/announcements.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [docker](<https://devfeed.tech/tags/docker.md>), [llms](<https://devfeed.tech/tags/llms.md>), [localhost](<https://devfeed.tech/tags/localhost.md>), [open](<https://devfeed.tech/tags/open.md>), [pingora](<https://devfeed.tech/tags/pingora.md>), [processes](<https://devfeed.tech/tags/processes.md>), [proxy](<https://devfeed.tech/tags/proxy.md>), [python](<https://devfeed.tech/tags/python.md>)

### AI overview

Devenv 2.3 introduces an opt-in localhost proxy using Pingora for stable process URLs, configurable TUI settings, a dotenv parser, improved process cleanup, credential helpers in SecretSpec 0.20, and a smaller devenv closure.

### Source excerpt

The new opt-in localhost proxy (using Pingora) gives your processes stable URLs, even when automatic port allocation changes the underlying port: { pkgs, config, ... }: { process.proxy.enable = true; processes.web = { exec = "${pkgs.python3}/bin/python -m http.server $PORT"; ports.http.allocate = 8000; env.PORT = builtins.toString config.processes.web.ports.http.value; }; } Run devenv up and open http://web.<project-name>.localhost. You can override hostnames per process or port and enable HTTPS per process. The TUI now has a personal configuration file for statusline placement, colors, keybindings, and log behavior. You can also hide the statusline or disable the (devenv) prompt prefix. Other highlights: multiverse.pins resolves multiple package versions through the fewest nixpkgs revisions. A new dotenv parser supports quotes, multiline values, variable substitution, and ordered files. SecretSpec 0.20 adds Git and Docker credential helpers and five new providers. Process shutdown and cleanup are more reliable. The devenv closure shrank from 528 MB to 376 MB. nixpkgs PR devenv devenv 2.3: Portless and TUI configuration Fast, Declarative, Reproducible, and Composable Developer Environments using Nix. LLMs have been used 1 post - 1 participant Read full topic

## Android emulator access to local server

DevFeed: [Android emulator access to local server](<https://devfeed.tech/articles/android-emulator-access-to-local-server-28703.md>)

Original publisher: [Read original article](<https://jeroenmols.com/blog/2023/01/25/development-server-emulator/>)

Author: info@jeroenmols.com (Jeroen Mols)

Published: 2023-01-25T00:00:00Z

Content type: tutorial

Language: en

Sources: [Jeroen Mols](<https://devfeed.tech/sources/jeroen-mols.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [Emulator](<https://devfeed.tech/topics/emulator.md>), [Server](<https://devfeed.tech/topics/server.md>), [adb](<https://devfeed.tech/topics/adb.md>), [Network](<https://devfeed.tech/topics/network.md>), [Development](<https://devfeed.tech/topics/development.md>)

Tags: [adb](<https://devfeed.tech/tags/adb.md>), [android](<https://devfeed.tech/tags/android.md>), [blogs](<https://devfeed.tech/tags/blogs.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [devices](<https://devfeed.tech/tags/devices.md>), [emulator](<https://devfeed.tech/tags/emulator.md>), [ip](<https://devfeed.tech/tags/ip.md>), [localhost](<https://devfeed.tech/tags/localhost.md>), [network](<https://devfeed.tech/tags/network.md>), [port](<https://devfeed.tech/tags/port.md>), [react-native](<https://devfeed.tech/tags/react-native.md>), [server](<https://devfeed.tech/tags/server.md>)

### AI overview

This tutorial explains how to connect an Android app running in an emulator to a development server on a computer's localhost. It presents using the computer's IP address, the emulator loopback alias, editing the emulator's hosts file, and ADB reverse as possible approaches.

### Source excerpt

How can you connect your app on an Android emulator to a development server running on the localhost of your computer? The problem # Since Android emulators create their own virtual network, they cannot access devices on your local network.

## Getting Past Ansible Password Required Issues

DevFeed: [Getting Past Ansible Password Required Issues](<https://devfeed.tech/articles/getting-past-ansible-password-required-issues-28121.md>)

Original publisher: [Read original article](<http://fuzzyblog.io/blog/ansible/2020/06/03/getting-past-ansible-password-required-issues.html>)

Author: Fuzzygroup

Published: 2020-06-03T00:00:00Z

Content type: tutorial

Language: en

Sources: [Scott Johnson](<https://devfeed.tech/sources/scott-johnson.md>)

Topics: [Ansible](<https://devfeed.tech/topics/ansible.md>), [passwords](<https://devfeed.tech/topics/passwords.md>), [account](<https://devfeed.tech/topics/account.md>)

Tags: [account](<https://devfeed.tech/tags/account.md>), [ansible](<https://devfeed.tech/tags/ansible.md>), [apt](<https://devfeed.tech/tags/apt.md>), [command](<https://devfeed.tech/tags/command.md>), [exploits](<https://devfeed.tech/tags/exploits.md>), [localhost](<https://devfeed.tech/tags/localhost.md>), [module](<https://devfeed.tech/tags/module.md>), [password](<https://devfeed.tech/tags/password.md>)

### AI overview

This tutorial explains how to resolve Ansible's "sudo: a password is required" failure when running tasks after switching into the jenkins account. The author attributes the problem to Ansible's become operation and describes temporarily granting passwordless sudo access through visudo, then removing the account entry afterward.

### Source excerpt

I recently had the situation where I needed to run an Ansible task on a user which I sudo su'd into i.e.: sudo su jenkins I then ran my Ansible task and I repeatedly got this error: TASK [zzet.rbenv : update apt cache] **************************************************************************************************************** fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "sudo: a password is required\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1} The underlying issue was that most of the tasks in the playbook used: become: true which says to Ansible "run this as a sudo operation" and, given that I was already sudo'd into this account, that proved to be a failure. I puzzled over this for a bit and then realized that all I needed to do was grant the jenkins account passwordless sudo access via the command: sudo visudo by adding this line to the end of the sudoers file that visudo edits: jenkins ALL=(ALL) NOPASSWD:ALL Note: I made sure to remove the jenkins account from visudo after this was done to prevent any issues related to sudo exploits and this user.

## MySQL - reset root password

DevFeed: [MySQL - reset root password](<https://devfeed.tech/articles/mysql-reset-root-password-27630.md>)

Original publisher: [Read original article](<https://gagor.pro/2015/12/mysql-reset-root-password/>)

Author: Tom

Published: 2015-12-28T00:00:00Z

Content type: tutorial

Language: en

Sources: [Tomasz Gągor](<https://devfeed.tech/sources/tomasz-gagor.md>)

Topics: [MySQL](<https://devfeed.tech/topics/mysql.md>), [passwords](<https://devfeed.tech/topics/passwords.md>), [Databases](<https://devfeed.tech/topics/databases.md>), [configuration](<https://devfeed.tech/topics/configuration.md>)

Tags: [configuration](<https://devfeed.tech/tags/configuration.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [linux](<https://devfeed.tech/tags/linux.md>), [localhost](<https://devfeed.tech/tags/localhost.md>), [mariadb](<https://devfeed.tech/tags/mariadb.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [password](<https://devfeed.tech/tags/password.md>), [percona](<https://devfeed.tech/tags/percona.md>), [root](<https://devfeed.tech/tags/root.md>), [set](<https://devfeed.tech/tags/set.md>)

### AI overview

A tutorial explaining how to reset a MySQL user password, including the root password, by stopping MySQL, using an init file with a SET PASSWORD command, starting the server with that file, and then deleting it.

### Source excerpt

It will happen from time to time, that you're on alien machine and have to brutally update things in db without knowing credentials. Example is for root (quite secure candidate to change because it shouldn't be used in app 😃 ) but will work for any user. shutdown db service mysql stop create text file with command like this (update user accordingly) ex. in /tmp/pwchange.txt SET PASSWORD FOR "root"@"localhost" = PASSWORD("HereYourNewPassword"); start mysqld with --init-file param mysqld_safe --init-file=/tmp/pwchange.txt sometimes you may require to point configuration file ex. --defaults-file=/etc/mysql/my.cnf

## Using MassiveJS with Node and Postgres for database queries

DevFeed: [Using MassiveJS with Node and Postgres for database queries](<https://devfeed.tech/articles/node-postgres-massivejs-a-better-database-experience-41181.md>)

Original publisher: [Read original article](<https://www.craigkerstiens.com/2015/11/30/Node-Postgres-MassiveJS-A-better-database-experience/>)

Author: Map

Published: 2015-11-30T20:55:56Z

Content type: article

Language: en

Sources: [Craig Kerstiens](<https://devfeed.tech/sources/craig-kerstiens.md>)

Topics: [Databases](<https://devfeed.tech/topics/databases.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [Object-relational mapping](<https://devfeed.tech/topics/orm.md>), [App](<https://devfeed.tech/topics/app.md>)

Tags: [crud](<https://devfeed.tech/tags/crud.md>), [database](<https://devfeed.tech/tags/database.md>), [install](<https://devfeed.tech/tags/install.md>), [localhost](<https://devfeed.tech/tags/localhost.md>), [node](<https://devfeed.tech/tags/node.md>), [npm](<https://devfeed.tech/tags/npm.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [sql](<https://devfeed.tech/tags/sql.md>)

### AI overview

This tutorial evaluates MassiveJS as an alternative to conventional ORMs for Node applications using Postgres. It demonstrates connecting to a database, querying users, requiring a primary-key index, and running arbitrary SQL.

### Source excerpt

First some background-I've always had a bit of a love hate relationship with ORMs. ORMs are great for basic crud applications, which inevitably happens at some point for an app. The main two problems I have with ORMs is: They treat all databases as equal (yes, this is a little overgeneralized but typically true). They claim to do this for database portability, but in reality an app still can't just up and move from one to another. They don't handle complex queries well at all. As someone that sees SQL as a very powerful language, taking away all the power just leaves me with pain. Of course these aren't the only issues with them, just the two ones I personally run into over and over. In some playing with Node I was optimistic to explore Massive.JS as it seems to buck the trend of just imitating all other ORMs. My initial results-it makes me want to do more with Node just for this library. After all the power of a language is the ecosystem of libraries around it, not just the core language. So let's take a quick tour through with a few highlights of what makes it really great. Getting setup Without further adieu here's a quick tour around it. First let's pull down the example database from PostgresGuide Then let's setup out Node app: $ npm init $ npm install massive --save Connecting and querying Now let's try to connect and say query a user from within our database. Create the following as an index.js file, then run with node index.js: var massive = require("massive"); var connectionString = "postgres://ckerstiens:@localhost/example"; var db = massive.connectSync({connectionString : connectionString}); db.users.find(1, function(err,res){ console.log(res); }); Upon first run if you're like me and use the PostgresGuide example database (which I now need to go back and tidy up), you'll get the following: db.users.find(1, function(err,res){ ^ TypeError: Cannot read property 'find' of undefined I can't describe how awesome it is to see this. What's happening is when Mass

## Cat-DNS: a DNS server that resolves everything to cats

DevFeed: [Cat-DNS: a DNS server that resolves everything to cats](<https://devfeed.tech/articles/cat-dns-a-dns-server-that-resolves-everything-to-cats-35520.md>)

Original publisher: [Read original article](<https://meowni.ca/posts/go-cat-dns-go/>)

Author: Monica Dinculescu

Published: 2014-02-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [Monica Dinculescu](<https://devfeed.tech/sources/monica-dinculescu.md>)

Topics: [HTTP](<https://devfeed.tech/topics/http.md>), [servers](<https://devfeed.tech/topics/servers.md>), [Internet](<https://devfeed.tech/topics/internet.md>), [Code](<https://devfeed.tech/topics/code.md>), [web applications](<https://devfeed.tech/topics/web-applications.md>)

Tags: [client](<https://devfeed.tech/tags/client.md>), [dns](<https://devfeed.tech/tags/dns.md>), [http](<https://devfeed.tech/tags/http.md>), [http-server](<https://devfeed.tech/tags/http-server.md>), [localhost](<https://devfeed.tech/tags/localhost.md>), [server](<https://devfeed.tech/tags/server.md>), [udp](<https://devfeed.tech/tags/udp.md>), [website](<https://devfeed.tech/tags/website.md>)

### AI overview

A playful tutorial for running Cat-DNS, a Node-based DNS server that resolves hostnames to a fixed cat-hosting IP address. It explains running the server on UDP port 53, configuring localhost as the DNS server, and switching the configuration back when finished.

### Source excerpt

The internet needs more cats. DNS servers are the authority on all things internet. Therefore, the best DNS server is the one that resolves everything to cats. Guess what kind of DNS server this is (Hint: it's the cat kind). Making it go First, get the code, and the npm packages you need (the instructions are with the code). To run, start the server as a privileged process. This is because to be a DNS server, you need to be a UDP server on port 53. This is a small numbered port, which means it needs superpowers. This is how your run it: sudo node cat-dns.js You also need to somehow set your DNS server to be localhost. On a Mac, I do this by creating a new (wi-fi) interface (called Cats), in my Network preferences, and setting its DNS server to 127.0.0.1. You could do this on your normal interface, but this makes switching back and forth easier. Warnings While you're playing with this, pretty much nothing on your computer that requires the internet works. Except for your browser. And then that's mostly cats. So being able to deactivate this easily is kind of key (I know. You might think "Why would I ever want to deactivate cats?", but trust me on this one). I also recommend killing all the things that need to call the mothership (google hangouts, twitter feeds, dropbox, iMessage), because they will not like your sassy cat answers, and will slow everything down. You are ready Go in your browser to www.google.com and wait a bit. You should see a cat. Go to a different website. Another cat. Congratulations. Your internet is now all cats. Wait, what? Do not panic. While I recommend you don't look at the source because it's gross, if you do look at the source, you'll notice all it does is resolve any hostname to 54.197.244.191, which is a magical place on the internet that has cats. My friend @eigma made it, and is hosting it, so please try not to kill all the cat bandwith at once. You could also resolve everything to localhost, and serve your own for now cats on an http

## MySQL - dostęp zdalny na szybko

DevFeed: [MySQL - dostęp zdalny na szybko](<https://devfeed.tech/articles/mysql-dostep-zdalny-na-szybko-27487.md>)

Original publisher: [Read original article](<https://gagor.pro/2011/08/mysql-na-szybko/>)

Author: Tom

Published: 2011-08-27T00:00:00Z

Content type: tutorial

Language: pl

Sources: [Tomasz Gągor](<https://devfeed.tech/sources/tomasz-gagor.md>)

Topics: [MySQL](<https://devfeed.tech/topics/mysql.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [Databases](<https://devfeed.tech/topics/databases.md>), [Server](<https://devfeed.tech/topics/server.md>)

Tags: [apt](<https://devfeed.tech/tags/apt.md>), [debian](<https://devfeed.tech/tags/debian.md>), [flush](<https://devfeed.tech/tags/flush.md>), [ip](<https://devfeed.tech/tags/ip.md>), [localhost](<https://devfeed.tech/tags/localhost.md>), [mariadb](<https://devfeed.tech/tags/mariadb.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [percona](<https://devfeed.tech/tags/percona.md>), [root](<https://devfeed.tech/tags/root.md>), [server](<https://devfeed.tech/tags/server.md>), [sql](<https://devfeed.tech/tags/sql.md>)

### AI overview

A Polish tutorial explains how to install MySQL Server on Debian and configure remote access. It covers granting privileges, limiting access by IP address, changing the MySQL bind address, and restarting the server.

### Source excerpt

Instalacja serwera MySQL na Debianie jest niezwykle prosta i sprowadza się do jednego polecenia: sudo apt-get install mysql-server Polecenie to zainstaluje i uruchomi usługę serwerową MySQL. W czasie instalacji będziemy proszeni o podanie hasła dla root'a (które oczywiście dobrze jest zapamiętać bądź zapisać). Tak zainstalowana baza nasłuchuje na lokalnym porcie (localhost:3306) umożliwiająć dostęp wyłącznie root'owi. Jest to bardzo bezpieczna konfiguracja... Ale jeśli nie mamy zamiaru na tej samej maszynie instalować oprogramowania zarządzającego to nie zawsze jest to wygodne, tym bardziej gdy przykładowo mamy działającego phpmyadmin'a na jakimś serwerze www. W takim przypadku pierwszą rzeczą, którą robię jest udostępnienie dostępu zdalnego dla root'a. Warto zaznaczyć że uprawnienia root'a można nadać dowolnemu użytkownikowi (np. romanowi) co jest dużo bezpieczniejszą konfiguracją niż działanie bezpośrednio na koncie root'a (którego nazwa jest powszechnie znana).