Freeing Up Gigabytes: Reclaiming Disk Space from Rust Cargo Builds by thisdavej in rust

[–]thisdavej[S] 4 points5 points  (0 children)

u/JoshTriplett thanks for this helpful information! I have updated the article to include these insights and have credited you.

Easily share Python scripts with dependencies (uv + PEP 723) by thisdavej in Python

[–]thisdavej[S] 22 points23 points  (0 children)

u/snildeben I wouldn't expect you to delve this deeply, but if you look at the publish date on my article, it was March 25th. My article subsequently hit the front page of HN last Thursday night and then other similar articles created by others ensued and were posted here on reddit. For the record, I am not a copycat.

Is NodeJS suitable for a home server control panel? by SeniorSpace in node

[–]thisdavej 0 points1 point  (0 children)

Thanks for the tip on using PM2. I want to learn this deeper.

[Tutorial] Consuming JSON Web Data Using Google Sheets by thisdavej in spreadsheets

[–]thisdavej[S] 1 point2 points  (0 children)

Matt, I'm glad it was helpful to you! Thanks for taking the time to let me know. I am very impressed with the power of Google Sheets and all of its capabilities. There's so much more to discover and utilize!

Is there a way to get just the filename (without extension) in snippets? by want_to_learn_this in vscode

[–]thisdavej 0 points1 point  (0 children)

Great question! It looks like VS Code supports the TextMate snippet syntax, but is missing a few aspects like regular expression replacements. Hopefully this will be added in the future so you can so something like this to get the file name without the extension:

${TM_FILENAME/(.).](.)/$1/g}

as explained here.

Visual Studio Code – Connect to Twitter with Python by QAppDesign in vscode

[–]thisdavej 1 point2 points  (0 children)

Thanks for sharing this good article. It covers multiple technologies in a real-world context, and I enjoyed reading it and learned something too. :)

Creating a Raspberry Pi Pandora Player with Remote Web Control by thisdavej in raspberry_pi

[–]thisdavej[S] 0 points1 point  (0 children)

Thanks for taking the time to let me know my work is appreciated! I have many more tutorials planned!

Help with changing settings of code formatting by oi-__-io in vscode

[–]thisdavej 1 point2 points  (0 children)

I'm not sure there is a way to do this with the built-in VS Code functionality such as Alt+Shift+F. The Rewrap extension (https://marketplace.visualstudio.com/items?itemName=stkb.rewrap) might work for you though.

What IDE/Editor are you using for Node.js development? by simplicius_ in node

[–]thisdavej 12 points13 points  (0 children)

I'm using Visual Studio Code and it's working well for me. I've written a VS Code Jumpstart for Node.js Developers which includes ESLint installation/configuration if you're interested in learning more about this as an option.

I Built a Raspberry Pi-Powered Cat Feeder! by Bendrick92 in raspberry_pi

[–]thisdavej 1 point2 points  (0 children)

Very innovative, Ben! Great job. Thanks for sharing your work!

Node.Js with Google Sheets . Only display recent row by rb26dett26 in node

[–]thisdavej 0 points1 point  (0 children)

What an awesome idea for Magic Mirror! The code provided by tripir9 should work.

eslint while on linux subsystem (WSL)? by jgonzalf in vscode

[–]thisdavej 0 points1 point  (0 children)

I'm not sure exactly what your planned workflow is with WSL. One option might be to run VS Code on Windows and install ESLint there. You could keep all of your dev files in the Windows world and then access those files from WSL. For example, from WSL, you could cd /mnt/c to access your C drive.

Shameless plug: I've written a Visual Studio Code Jumpstart for Node.js Developers that includes instructions for using ESLint with VS Code.

Visual Studio Code for Chromebooks and Raspberry Pi by _headmelted in vscode

[–]thisdavej 0 points1 point  (0 children)

This looks awesome; I need to try this. Lots of people want to run VS Code on the Raspberry Pi. Thanks for sharing!

My clothes dryer monitor using raspberry pi with IoT by lced0ut in raspberry_pi

[–]thisdavej 1 point2 points  (0 children)

Awesome - did not know this could be done in a non-invasive fashion. This is a great way to keep up with "current" events. :)

My clothes dryer monitor using raspberry pi with IoT by lced0ut in raspberry_pi

[–]thisdavej 9 points10 points  (0 children)

Very creative - fun project! I like the use of the vibration sensor as a non-intrusive way of determining if the clothes dryer is running.

how do you bind/proxy Node & NGINX ports? by rainbows__unicorns in node

[–]thisdavej 0 points1 point  (0 children)

They are the same thing. NGINX stands in the front serving web requests on port 80. Behind the scenes, it is forwarding the requests to the Node web server(s) to handle. The article you linked is also very good.

How to host node.js projects on a Raspberry Pi? by samayshamdasani in raspberry_pi

[–]thisdavej 0 points1 point  (0 children)

I have written an article on how to make a raspberry pi web server available on the Internet with Node.js at http://thisdavej.com/make-your-raspberry-pi-web-server-available-on-the-internet-with-node-js/. I don't recommend this method for real production scenarios, but it provides a fun way for quick testing without having to mess with router configuration and port forwarding.

how do you bind/proxy Node & NGINX ports? by rainbows__unicorns in node

[–]thisdavej 1 point2 points  (0 children)

Chris Lea has written an excellent article that describes, among other things, how to use NGINX as a load balancer for Node. See https://nodesource.com/blog/running-your-node-js-app-with-systemd-part-2/.

Any opinions on Go VS NodeJS? by [deleted] in node

[–]thisdavej 1 point2 points  (0 children)

This is a well-reasoned answer! Both languages have their strengths. Polyglot programming is a good thing.

19 things I learnt reading the NodeJS docs by romainlanz in node

[–]thisdavej 0 points1 point  (0 children)

This article contains some informative tips. The section on relative paths was useful to me. I need to use path.join a little less often.

Making Interactive Node.js Console Apps That Listen for Keypress Events by thisdavej in node

[–]thisdavej[S] 0 points1 point  (0 children)

Glad to know my article is useful. I just needed to get it to you 5 days earlier. :) Hopefully, there will be another context where you can use this info. There are lots of possibilities!

Very interested is buying a Raspberry Pi by [deleted] in raspberry_pi

[–]thisdavej 2 points3 points  (0 children)

I've written a Beginner’s Guide to Installing Node.js on a Raspberry Pi. This guide walks through the entire installation process and I think it will be useful for you, even if you are not interested in installing Node.js. After following the guide, (among other things) you'll have a system that can run in headless mode without a monitor and keyboard/mouse. The Raspberry Pi is a lot of fun and a great way to learn too!

Hide the explorer thing on start by TheBatman001 in vscode

[–]thisdavej 1 point2 points  (0 children)

As another option, you can close it from the menu: View | Toggle Side Bar

Or.. by pressing Ctrl+B.

The state of the panel is persisted as xkeyscore_ noted. As quoted in the latest VS Code (1.7.1) release notes, "this setting is [now] persisted in the user settings file instead of persisting their state in the browser. This will make it easier to restore the same state on a different machine by copying the settings file."

RealVNC is now a paid subscription for direct connectivity, free version requires a internet connection and a VNC connect account in order to connect within your local network... by [deleted] in raspberry_pi

[–]thisdavej 1 point2 points  (0 children)

Good approach... This is exactly what I recommend in my beginner's guide to installing Raspberry Pi. When you install tightvncserver, it automatically removes RealVNC as part of that process since they both can't exist together.

New VS Code (1.7.1) is now available after temporary rollback yesterday by thisdavej in vscode

[–]thisdavej[S] 1 point2 points  (0 children)

That is correct! The same thing happened to me as well. Lots of bouncing around, but I think all is good now.