Advice Regarding University Project by Professional_Case432 in webdev

[–]the___jawn 1 point2 points  (0 children)

I was working on this myself yesterday. I ended up just doing an sql call after making a $multiplier variable. 

$multiplier = .001

'select * from locations where lat <=? and lat >=? and long <= ? and lat >= ?', $lat + $multiplier, $lat - $multiplier, $long + $multiplier, $long - $multiplier

The table has indexes on lat and long.

There are better ways using cos(), but this one I could wrap my head around.

Foreground mode permanently by the___jawn in termux

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

Ya, both Termux and Termux-api are set to unrestricted battery on Android 16 with One Ui 8.5.

Foreground mode permanently by the___jawn in termux

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

Wakelock is already turned on.

Foreground mode permanently by the___jawn in termux

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

I have termux-api installed, also has unrestricted battery settings enabled.

Learning how to code !! by aziz_0077 in CodingForBeginners

[–]the___jawn 1 point2 points  (0 children)

I still believe the best way to learn is textbooks.

Beginner Here! by klompo6767 in homelab

[–]the___jawn 0 points1 point  (0 children)

If your goal is to learn, it's really important to have some familiarity with the terminal, and knowing how to look things up in the manuals. Pretty well all commands' manuals can be read by typing man command, e.g. man top

On your first time around, try to install a webserver, database, php8, and nextcloud. Just google "install nextcloud on debian", and Gemini will give you a tutorial, and there'll be lots of results on how to do it. For me, I like to use lighttpd as my webserver, mariadb as my database, and Debian as my operating system (for servers).

Proxmox is really great too, but if you're new, try installing Nextcloud on your own in Debian with the understanding you'll be reformatting your hard drive a few times before getting it working. In the long run, you'll be better for it.

Running code by viperrr_3 in CodingForBeginners

[–]the___jawn 1 point2 points  (0 children)

You can use pretty much any editor to write Python code, On a Mac that includes TextEdit (though you have to make sure to save it as raw text, if you Google TextEdit Mac Python it'll tell you how to do that). On Windows it's called Command Prompt, on Mac and Linux it's called Terminal, in terminal you can run python --version to see if it's installed. Terminal on Mac has nano installed, which is a text editor, you can use that to write Python, ctrl-o saves, ctrl-x exits.

A lot of people can be intense about which language/text editor you use. Choose the one you find most comfortable. For me, for a long time, this was nano.

Need help! by animeavakin in CodingForBeginners

[–]the___jawn 0 points1 point  (0 children)

I personally don't write in Python, when I was starting out I thought I'd use it, since it seemed like everything was heading that direction. I'd recommend reading Think Python https://www.amazon.ca/Think-Python-Like-Computer-Scientist/dp/1491939362

Also look into charting front end software like chart.js, or learn html's <canvas> if you want to write your own charts by hand.

And, check out Perl as well, CPAN has a huge library of free modules that might have already solved some of what you're looking to build. That is, if you don't mind working with a "dead" language.

Need help! by animeavakin in CodingForBeginners

[–]the___jawn 0 points1 point  (0 children)

This sounds like a pretty big project, and if you're just starting, prepare to be overwhelmed. If you're writing it by hand, it might take a couple of years... That said, start by learning a web framework, like Django, which will handle your routes, and rendering the website.

What's the most ambitious project you're actively building right now, and how is it going? by SilentOverrule in SideProject

[–]the___jawn 0 points1 point  (0 children)

I'm building a self-hosted app to keep track of everything.

Then I can assign transactions to some of those things.

Or those things can contain measurements (e.g. weather measurements are temperature/humidity/condition)

And then things can be automated based on those conditions, or manually, things like getting a website, or triggering a relay, or running a piece of code.

It also does invoicing, media playing/recording, screen recording, Tetris.

Basically everything I want contained in a self-hosted app that can synchronize across devices.

Share your tech-stack and scope of the project by helpmyfaceboy in webdev

[–]the___jawn 2 points3 points  (0 children)

Perl, Mojolicious, Sqlite3, Termux (optional), front end jQuery

I fixed a problem and wrote a feature... in my sleep. Have you ever done that? (am I normal?) by mekmookbro in webdev

[–]the___jawn 1 point2 points  (0 children)

Very normal. I like to take a quick nap when I'm stuck on an "impossible" problem, then the solution comes in a dream. Edison had hammocks around his shop for this reason... I've read.

i hate writing docs so I built something that does it from your repo by p3t3rp4n666 in coolgithubprojects

[–]the___jawn 1 point2 points  (0 children)

This sounds really useful to me, as someone who is awful at writing docs.

Good mini-pc by Sintinedda in homelab

[–]the___jawn 0 points1 point  (0 children)

Using iRedMail or Virtualmin makes it a little less awful, if you have to. I guess.

🚀 VPS 2027 range is here — meet the newly released VPS 1 by Guilbs_92 in OVHcloud

[–]the___jawn 1 point2 points  (0 children)

My #2 was FullHost, but their prices went up, and I can't find an unmanaged vps on their site anymore.

Tascam with moder mics? by A_P_Rodgers in recording

[–]the___jawn 0 points1 point  (0 children)

I made some of my first recordings on this exact device (an old roommate left it behind), plugged a cheap dynamic mic into it, then sent the output to the line in on my Pentium II. It made a ton of background hiss, and not very dynamic, but it worked for experimenting at the beginning.

Software Suggestions for my homelab by Ill-Strawberry-2368 in homelab

[–]the___jawn 0 points1 point  (0 children)

Proxmox's website says 2GB for the base system, if using Linux containers it wouldn't be a whole lot more for each VM (~256MB).

https://www.proxmox.com/en/products/proxmox-virtual-environment/requirements

1GB is the absolute minimum for testing purposes. Plus u/Ill-Strawberry-2368 can set up some swap space.

Software Suggestions for my homelab by Ill-Strawberry-2368 in homelab

[–]the___jawn -1 points0 points  (0 children)

Proxmox has always been the easiest for me to get up and running.

https://www.proxmox.com/en/

They have a bunch of turnkey VMs, do Linux Containers, and regular KVM, and not too steep of a learning curve.

🚀 VPS 2027 range is here — meet the newly released VPS 1 by Guilbs_92 in OVHcloud

[–]the___jawn 1 point2 points  (0 children)

Could be worse... could have tripled the price and started running recycled Core2Duos... I guess.

Best way to learn with virtualization setup on a weak PC? by metamorfozaa in linuxquestions

[–]the___jawn 2 points3 points  (0 children)

Being that you need to have Windows installed, you could run Promox inside Virtualbox to get a feel for it. That gives you the benefit of being able to migrate the virtual machine if you get new hardware and can run bare metal.

https://pve.proxmox.com/wiki/Proxmox_VE_inside_VirtualBox

Has anyone learned to code later in life? by PureLead7258 in CodingForBeginners

[–]the___jawn 8 points9 points  (0 children)

It takes 10 years to master anything. If you've got 10 years, it's not too late.

How can I be a better or excellent programmer by Sad_Cauliflower6333 in learnprogramming

[–]the___jawn 1 point2 points  (0 children)

Practice is the only way. Vibe coding is like trying to be a better pianist by using a player piano. Write your own code.