Better HN
topnewbestaskshowjobs
Log inSign up

homami

112 karma · joined Nov 2, 2013 (13y ago) · 41 submissions

https://homam.me
Submissions

comment 1y ago · link · parent

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 2y ago · link · parent

I am just imagining GPT-4o saying this in her sarcastic voice!

comment 3y ago · link · parent

We mostly use recruiters now

comment 3y ago · link · parent

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 3y ago · link · parent

I don't lie either. I just spit out words that is in alignment with my mental model for optimizing my future.

comment 3y ago · link · parent

I wish this had a feature to slow down the turtle.

comment 3y ago · link · parent

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 3y ago · link · parent

We had a CS undergrad intern that didn’t know what i++; means in JavaScript for loops.

comment 3y ago · link · parent

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 4y ago · link · parent

Four. Using pm2. But it is a overkill. This server is running other applications next to my node server.

comment 4y ago · link · parent

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 4y ago · link · parent

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 4y ago · link · parent

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 4y ago · link · parent

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 4y ago · link · parent

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.

comment 5y ago · link · parent

Deezer has added a "don't recommend this song again" button. I used a couple of times only but I feel that my recommendations have been indeed improved.

Before, I had to skip the songs that I did not like, and Deezer was keep putting them back in my 'Flow' a few days later. That was pretty annoying.

comment 5y ago · link · parent

Non-breaking space is very important for languages like Arabic and Farsi. Changing a non-breaking space to a normal space in some sequence of characters, may change the meaning of the word in these language.

comment 5y ago · link · parent

How long does it take to vaccinate the whole population?

I did not look for better sources, but I read in this [1] CNN post that in 2021: AZ is producing 3 billion doses, Pfizer 1.3B and Moderna less than 1B.

So in total we are going to have 5 billion doses in 2021. Each person requires two doses. So we end up vaccinating around one third of the world's population. It seems to me even at the end of 2021 our lives will be still far from "normal".

Are there other promising vaccines on the way?

[1] https://us.cnn.com/2020/12/30/investing/premarket-stocks-tra...

comment 6y ago · link · parent

Haskell's killer feature here is higher kinded types. do notation is just a syntactic sugar. But (with the exception of Scala or PureScript) almost no other every-day language supports the ability for defining abstractions over higher kinded constructs like monads.

comment 6y ago · link · parent

For advertisers, the fact that people that may never click on any banner ad, are blocking the ads on the internet is not a bad thing per se.

Once they got a click, they know that this user does not have an ad blocker so is less tech savvy, and more susceptible to be influenced by marketing.

Click through rates and conversion rates have increased on desktop traffic in the past few fears.

comment 6y ago · link · parent

It seems to me that Facebook instead of battling racism and other problems in the information bubbles that it has created, is doing some kind of straw man.

"Look here we are banning black face!" Don't get me wrong, symbols matter. But this is not even remotely the most consequential thing that Facebook can do to fight disinformation and racism.

They should make a fix for their echo chambers.

22.

What Does Trump Have Against TikTok?(nytimes.com ↗)

24 points · by homami · 6y ago · 42 comments

comment 6y ago · link · parent

> This application will be able to read and write all public and private repository data. This includes the following: ...

Is it really needed?

comment 6y ago · link · parent

socket.onerror event happens for both cases. But there does not seem to be any difference between the error object that is passed to the these handlers.

comment 6y ago · link · parent

How does it work in practice? It seems in Chrome these errors cannot be caught try-catch blocks.

    try {
      var socket = new WebSocket('ws://localhost:808');
    }
    catch (ex) {
      console.log(ex) // control does not reach here
    }

comment 6y ago · link · parent

I find SQL INSERT statement not intuitive. I can understand why SQL requires me to declare the field names and then the values of a new row that I am inserting; but it would've been a huge time saver if SQL had a key-value dictionary-like syntax:

    INSERT INTO "my_table"
       "col1": value1,
       "col2": value2,
       ...

27.

Estimating the size of COVID-2019 outbreak in Iran(medrxiv.org ↗)

5 points · by homami · 6y ago · 3 comments

comment 6y ago · link · parent

Even after years of being brained washed by the media and the educational system, a typical middle class millennial in Iran does not hate Western culture or America.

Older generations (even in some rural areas) have fond memories of Americanization of Iran in the 70s (which finally led to the Islamic revolution).

The problem that I see with Trump's approach is that it alienates these groups of people that had been pro-American before.

The country and the economy was thriving for a brief couple of years after the nuclear deal. People used their money to visit Gulf countries, east Asia and Europe. I think Internet speed almost doubled in that period.

But new sanctions made the economy collapse. And Muslim ban is a real thing if you are born in Iran. And it does not matter how pro-American you are.

Then now we ended up in a situation that even ordinary, middle class Iranians that could've been in American camp, are feeling under attack by a bully. For them everything that the government has been preaching about the great Satan is coming true.

comment 6y ago · link · parent

That's funny, but 'marg' is pronounced with an /a/ sound like 'cab'.
12