homami

Joined 13 years ago

Karma
112
Submissions
41
Member since
Nov 2
https://homam.me
View on Hacker News

Recent submissions

Comment · 1 year ago
It is also not working for me, this opens http://localhost:3128/oauth/callback?code=... but on Kiro interface I see "There was an error signing you in. Please try again"
Comment · 2 years ago
I am just imagining GPT-4o saying this in her sarcastic voice!
Comment · 3 years ago
We mostly use recruiters now
Comment · 3 years ago
I don't understand why they killed their job board. We used to pay them a few hundreds a month for a a couple of job ads that we were quite happy with. But then they "decided to focus on enabling our community of developers and technologists to discover and learn about companies rather than just giving them a way to apply to an open role." Which meant they became a platform for recruiters that can spend monthly 10Ks+. That killed Stack Overflow for me.
Comment · 3 years ago
I don't lie either. I just spit out words that is in alignment with my mental model for optimizing my future.
Comment · 3 years ago
I wish this had a feature to slow down the turtle.
Comment · 3 years ago
Unfortunately this person graduating from a Western European uni, could not even grasp the algorithm for creating a count down timer.

They asked me for career advice. I wonder whether the jobs that require only this level of copy and pasting skills would thrive or die in the AI era.

Comment · 3 years ago
We had a CS undergrad intern that didn’t know what i++; means in JavaScript for loops.
Comment · 3 years ago
Based on my experience traveling between Europe, Middle East and Asia:

- for return flights I always get different fares based on the origin. At least for the airlines that I travel with it does not matter what my IP is, but where my origin is.

- depending on the airline or the hotel booking service, I get higher fares if I book with an iPhone (including their apps) or a Mac comparing to when I spoof my user agent to Windows. The difference can be substantial.

- for hotel bookings, my IP location used to make a big difference. I guess these days the services just became better at finger printing and detecting VPNs.

Comment · 4 years ago
Four. Using pm2. But it is a overkill. This server is running other applications next to my node server.
Comment · 4 years ago
For what it is worth, I am handling about 130k views and registering ~1k paying users per day with a t2.large instance server running node, redis and nginx behind a free tier Cloudflare proxy, a db.t2.small running postgres 14, plus CloudFront and S3 for hosting static assets.

Everything is recorded in the database and a few pgcron jobs aggregate the data for analytics and reporting purposes every few minutes.

Comment · 4 years ago
I fully recommend this. The fp-ts is quite readable for JavaScript. Combine it with io-ts and you have a robust way of handling user inputs:

    pipe(
      decoder.decode(req.body)
      , E.mapLeft(_ex => new InputValidationError(decoder.decode(req.body)))
      , RTE.fromEither
      , RTE.chain(handleInput)
      , RTE.match(
        error => {
          res.status(500);
          res.send(error)
        },
        result =>  {
          res.send(result)
        }
      )
    )(reader)
Comment · 4 years ago
I've been a frequent flyer of Emirates for the past ~ six years. From my perspective, the airline suddenly changed about three years ago. The quality of their service dropped and still every time that I take an EK flight, I notice something else is missing from the service. Flying Emirates does not have any glory anymore.
Comment · 4 years ago
Yeah.

> The java.lang.Math.random() method returns a pseudorandom double type number greater than or equal to 0.0 and less than 1.0.

Comment · 4 years ago
Off topic, but this is a code smell for me: [(int) Math.round(Math.random() * (userAgents.length - 1))]); This leads to a lower probability of selecting the 0th and the last items in the array.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton