HNHacker News
TopNewBestAskShowJobs

Sheeny96

235 karma · joined April 10, 2022

submissionscomments
Sheeny96··on Hands on way to learn to deploy applications on bare metal Virtual Machine?
Bare metal virtual machines? Do you mean a virtual machine on bare metal? In which case, it's just a vm - all VMs on some level live on bare metal.

You're on the right track with Ansible - I'd suggest just buying a raspberry pi and deploying whatever you want to it via ansible over your home network. Once you're comfortable with all the basics, spin up a vm on the pi and then deploy to that. You could then even try deploying the whole VM itself as an image! Then try to deploy the same stack to a cloud hosted machine. Even If you don't want to run cloud systems, it'll allow you to deploy to a machine outside your network and you'll get exposure to how that works.

Just start small and build up.

Sheeny96··on Ronda Rousey: "I never wanted to talk about concussion"
> PEDs that make them even dumber.

Tell me that you have no idea about physiology without telling me.

Sheeny96··on Ronda Rousey: "I never wanted to talk about concussion"
It's up to the referee. UFC fighters get half their money as a win bonus, and the lower ranked fighters on the card can be earning 6k show, 6k win, fighting 3 or 4 times a year. With the costs of training, sports nutrition etc etc, that win bonus can be the difference between feeding their family or not, and many of them come from poor backgrounds so know what that feels like. A fighter isnt going to take that chance and stop when the referee hasnt stepped in, and give their opponent oppertunity to recover.
Sheeny96··on A mistakenly published password exposed Mercedes-Benz source code
Many car companies are transitioning from a predominantly mechanical engineering space to a predominantly software engineering space, along with all the legacy mindset that comes with. It's par for the course when they can't understand that they're now a tech company and need to invest as such.
Sheeny96··on Keeping a long shell history
Shoutout for https://atuin.sh/, shell history across multiple devices with tons of cool features
Sheeny96··on How to Escape a Container
I think there's some version of the dunning krueger effect going on in these comments - assuming that no one would include this number of security flaws unless intentionally. Perhaps it's that this forum tends to attract people more engaged in the CS space that wouldn't do this - but I've seen enough brute forcing in the wild to know that this ABSOLUTELY exists where a "just make it work" mentality is present.
Sheeny96··on Go Package for Building Progressive Web Apps
https://github.com/a-h/templ

Templ is a far more elegant solution for composing HTML within Go

Sheeny96··on We’re opening up access to Gov.uk forms
Honestly, the people behind the scenes of gov uk are doing gods work. See nothing but great stuff coming out of there.
Sheeny96··on Ray-Ban Meta Smart Glasses
Anyone notice that these meta links open a new tab, then close the tab you're on, not allowing you to use the back button to navigate back to the previous page? Horrendously user hostile behaviour.
Sheeny96··on Ask HN: Are there any fulfilling careers in tech anymore?
Did you have a background in cybersec beforehand, or just as a software engineer? Cybersecurity interests me, but no background in it (beyond being a senior engineer with a fair amount of cloud experience, and the security stuff you'd be expected to know as one)
Sheeny96··on Apple: The only big tech giant going against the job cuts tide
I've sesn this headline everywhere and being shared all over Linkedin. There's definitely some PR here from Apple.
Sheeny96··on Building a Virtual Machine Inside ChatGPT
This thing is crazy. This may seem simple to some but I asked it to write a signup endpoint for signing up to a website:

``` package main

import ( "database/sql" "fmt" "log" "net/http" "time"

"golang.org/x/crypto/bcrypt"

_ "github.com/lib/pq" )

const ( host = "localhost" port = 5432 user = "postgres" password = "password" dbname = "mydb" )

func main() { // Create a new HTTP server http.HandleFunc("/signup", signupHandler) log.Fatal(http.ListenAndServe(":8080", nil)) }

// signupHandler handles the signup request. func signupHandler(w http.ResponseWriter, r *http.Request) { // Parse the request body username := r.FormValue("username") password := r.FormValue("password")

// Hash the password hash, err := bcrypt.GenerateFromPassword([]byte(password), bcrypt.DefaultCost) if err != nil { http.Error(w, "Error hashing password: "+err.Error(), http.StatusInternalServerError) return }

// Connect to the database psqlInfo := fmt.Sprintf("host=%s port=%d user=%s password=%s dbname=%s sslmode=disable", host, port, user, password, dbname) db, err := sql.Open("postgres", psqlInfo) if err != nil { http.Error(w, "Error connecting to database: "+err.Error(), http.StatusInternalServerError) return } defer db.Close()

// Insert the username and hashed password into the database _, err = db.Exec("INSERT INTO users (username, password) VALUES ($1, $2)", username, hash) if err != nil { http.Error(w, "Error inserting into database: "+err.Error(), http.StatusInternalServerError) return }

// Send the response w.Write([]byte("User successfully signed up!")) } ```

Along with this, it included:

``` This program uses the database/sql package to connect to a PostgreSQL database and insert the username and hashed password into the users table. It also uses the golang.org/x/crypto/bcrypt package to hash the password using the bcrypt.GenerateFromPassword function.

To run this program, you will need to have a PostgreSQL database running and a users table with a username and password column. You can create the table using the following SQL statement:

CREATE TABLE users ( username text NOT NULL, password bytea NOT NULL );

This program is a simple example of how to handle signup requests and store user data in a database. In a real-world application, you should also validate the input data and handle any potential errors more grace ```

Not only is this doing what the prompt asks, it's going above and beyond, and giving tips on other things that you might miss. As a teaching prompt alone, this is absolutely incredible.

Sheeny96··on Hey, GitHub – Waiting list signup
I feel like this is being misunderstood - the long term view of this wouldn't be for code scribing, it'd be for non technical people to be able to instantly create things. Imagine being able to say outloud to your phone "hey, create me a view of all the weather data from the past year correlated against x and y in z view format". The code is the means, not the product.
Sheeny96··on Tinygrad: A simple and powerful neural network framework
I'd say 99.9% of the western worlds workforce doesn't focus for 8 hours straight in the work day - its not really eve possible to in a great deal of jobs where there's context switching (meetings etc)
Sheeny96··on Ask HN: Examples of Top C# Code?
Not a .NET developer, but even as such, the Bitwarden code was very readable to me https://github.com/bitwarden/server
Sheeny96··on What Tech Workers Don't Understand They've Lost by WFH
Genuine question - do you enjoy what you do? Because the only difference there is social judgement in the office if you were to be slacking - if you need to be pressured into doing your work, are you in the right field?
Sheeny96··on You can read my blog posts using curl
Interesting. It's easy to fall trap to the tech mindset - my big ideas to change the lives of your average person are often humbled whenever I have to explain the difference between a web browser and the internet, to my averagely tech literate mid 20s friends.
Sheeny96··on You can read my blog posts using curl
A cool add-on to this would be a plugin that automatically redirected /latest to the latest blog post. That way, if the blogger were to publish say once a week every Tuesday, the user could alias the curl for maximum ease of use.
Sheeny96··on Can the knees go over the toes? (2016)
Seen this come up a few times - this may be true, but you have to separate the art from the artist in this case (in my opinion). What he teaches has solid foundations, with multiple testimonies from legitimate athletes. Whether he believes weak knees come from ancient alien souls is not my concern, but his methodologies to fix such ailments are absolutely credible.
Sheeny96··on Ask HN: I love programming but hate the industry. Can anyone relate?
Anecdotally, you have far more experience than me therefore probably already know this, but the skills you're describing sound suited to a digital transformation (buzzword in many old hat businesses transitioning to being 'tech companies')/technical management role as opposed to an out and out engineer at this point. Depends what you want as your day to day.
Sheeny96··on Steelmanning: Discover the truth by helping your opponent
Recently listened to the Douglas Murray episode. As someone who has followed Douglas for a while, it was disappointing to see him completely skirt the request to steelman his opponents arguments in any meaningful sense.
Sheeny96··on Mundane chores are all the rage in gaming
You can reach 20 woodcutting in Runescape in < 1 hour as a complete noob to the game. The equivalent irl skill would take months or years of training. Video games artificially speed up the process of skill acquisition with a satisfactory level of dopamine release such that you will keep going.
Sheeny96··on Ask HN: How to improve as a struggling junior software engineer?
First off, I want to express that, barring malicious intent, you have done ABSOLUTELY NOTHING WRONG. Processes should exist that no one, from the cleaner to the senior architect, should be able to push back a production release by a month. That aside, to put that on a junior engineer is at best negligent and at worst down right vindictive (possibly seniors covering their tracks because deep down, they know it's ultimately their responsibility).

Stories like this frustrate the heck out of me. As someone who progressed from junior to senior in a little over 2 years at a pretty major company (pretty much any American would know the name), the quality of mentors early in your career is PARAMOUNT to efficient progression. A seniors top priority should be the progression and happiness of their junior engineers (one of my best tech leads used to say "The less code I have to write, the better a job i'm doing"). Sure, they could bash out a production ready service once a month - or, they could nurture the people they're meant to be guiding, and at the end produce several senior engineers of equal quality.

My advice? Have some frank conversations with your team, and if it comes to it escalate higher. Ask concretely what the expectations of a junior are there and why that is the case. Also ask what they see the role of a senior to be as well. Express that you're coming from a place of wanting to better yourself not only for your own sanity, but the benefit of the company at large. If things don't change, move on swiftly.

← PreviousPage 2 of 2