Hacker News new | past | comments | ask | show | jobs | submit | aimor's comments login

I've been using http://somafm.com and it's really the only thing that got me back into listening to music. ( https://radio.garden is also interesting )

Two nights ago I rebooted my router and it wasn't able to update its clock. The logs were filled with "ntp: start NTP update" every 5 seconds.

Well, it was something related to using AdGuard's (94.140.14.14) DNS and pool.ntp.org. I added Google's (8.8.8.8) to resolv.conf temporarily to get the clock synced. But I'm still not sure what the root cause was.


Arroz con Pollo

Ingredients

    3/4 cup dry white wine
    pinch of saffron threads
    4 chicken thighs (we used 2 split chicken breasts cut in half)
    salt and pepper for seasoning chicken
    3 tablespoons olive oil
    1 small onion, diced
    2 cloves garlic, minced
    1- 14.5 ounce can diced tomatoes (mostly drained)
    1 bay leaf
    1 1/2 teaspoons salt (or to taste) and 1 teaspoon coarse ground black pepper
    2 1/4 cups chicken broth
    1 1/2 cups white rice
    1 cup large green pimento olives
Directions

    Combine wine and saffron in a small bowl. Set aside.
    In a large, heavy-bottom saucepan or dutch oven, heat olive oil over medium heat. Season both sides of the chicken generously with salt and pepper.
    Place chicken pieces, skin side down, in the hot oil. Allow to crispy and fry for 5-7 minutes. Flip over and cook for another 2 minutes. Remove the chicken pieces from the hot pan and place on a clean plate.
    Add onions and garlic to the pan. Cook, stirring, until soft and tender, about 5 minutes.
    Add the partially drained can of tomatoes, bay leaf, salt and pepper, and saffron wine. Allow to simmer, uncovered, until the mixture has reduced by half, about 10 minutes.
    Add the rice to the pot. Add the chicken broth and chicken pieces. Top with olives. Reduce the heat to low, place the lid on the pot, and allow to simmer until rice is tender and liquid is absorbed, about 30-40 minutes.
    Check the rice after 30 minutes to make sure that it is cooking evenly. Add more broth if necessary.
    Once cooked, allow to rest for 10 minutes with the lid on before serving.


Yes, I think that the light being stationary is an important distinction, though it's a good thing to control for because motion complicates things.

I came to the comments here because of a flickering effect (different from what they're testing for) I often observe: the tail lights of cars. Sometimes when I move my eyes (not my head) very quickly I will see a dashed trail from the red tail lights of certain cars (I'm assuming they're pulse modulating for some reason). I've been thinking about this in terms of the often-cited phenomena where our brains 'black out' our vision briefly when moving our eyes. I think this (brain 'blacking out' our vision) is not what happens, and some others have similar evidence: https://www.science.org/doi/10.1126/sciadv.abf2218


I don't think I see a dashed trail, but I will pay more attention. I mostly find that many modern car LED lights are flickering very obnoxiously. And it is worse during motion.


Yes, a couple years ago I started a few beds of saffron at home (zone 7). They're crocus, and bulbs, so I figured why not. I ordered online and planted in the fall and they all flowered that year. I went out after work and picked the saffron by hand, not nearly as difficult as blogs would have you think it is (no, they don't need to "be harvested at mid-morning, when the flower is fully open to the Sun"). Just pinch with your fingers and pluck. I harvested about 1 tablespoon (didn't weigh it), worth maybe 1/3 the cost of the bulbs.

The next year two of my three locations came back with strong leaves and offshoots, but almost nothing flowered. A big disappointment. This year I'll split them up (or maybe split up just one bed) and see what happens. Despite this, I'd encourage anyone in the right climate to give it a shot.

Also, if you're looking for easy expensive spices to grow, try bread (opium) poppy.


I wish I could, on mobile Firefox, force the viewport or at least easily change it.

    <meta name="viewport" content="width=device-width, initial-scale=1.0">


I like to think of them as Artificial Idiots.


Thanks for sharing, I've needed this for years and never stumbled across it.


https://jsfiddle.net/u1vybhqg/

  input:checked + .slider:active:before {
    transform: translateX(8px);
    transition: 1s;
  }
  
  input:not(:checked) + .slider:active:before {
    transform: translateX(18px);
    transition: 1s;
  }


This, but set closer to 200 or 100 ms (and for me, swapping the translate 8 and 18 so that the switch barely moves on mouseDown, because that's damn close to a real switch's behavior). This seems like it could be a good compromise to all of the people complaining about lag and others who understand that the visual system is powerful and movement is a huge part of that. Also, it's relatively simple as far as CSS animations go!


What do you do in Python when you want different behavior? Sometimes it's desirable to fix, floor, ceil, or round depending on the situation.


Assuming a, b are integers, the following answers are exact:

    def div_floor(a, b):
        return a // b

    def div_ceil(a, b):
        return (a + b - 1) // b

    def div_trunc(a, b):
        return a // b if (a < 0) == (b < 0) else -(-a // b)

    def div_round(a, b):
        return (2*a + b) // (2*b)


`int(a/b)` instead of `a//b` (for trunc to zero behavior. especially important when working with c or disassembled code)


You convert to float, divide and then do floor, ceil or whatever.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: