Hacker Newsnew | past | comments | ask | show | jobs | submit | locofocos's commentslogin

I have horrible news for you. Google had it, then they killed it

https://www.reddit.com/r/GoogleMaps/comments/1737ft9/google_...


Woah I remember this. Totally forgot about the feature.


From the comments it seemed that it didn't work well for everyone?


Oh yeah, n-gate.com, "we can't both be right"


Can you pitch me on why I would want to use this, instead of Rails.cache.fetch (which supports TTL) powered by redis (with the "allkeys-lru" config option)?


I'm not OP nor have I read through all the code, but this gem has no external dependencies and runs in a single process (as does activesupport::Cache::MemoryStore). Could be a "why you should," or a "why you should not" use this gem, depending on your use case.


Good question. I built this gem because I needed a few things that Rails.cache (and Redis) didn’t quite fit:

- Local and zero-dependency. It caches per object in memory, so no Redis setup, no serialization, no network latency. -Isolated and self-managed. Caches aren’t global. Each object/method manages its own LRU + TTL lifecycle and can be cleared with instance helpers. - Easy to use — You just declare the method, set the TTL and max size, and you're done. No key names, no block wrapping, no external config.


For what its worth, ActiveSupport::CacheStore is a really flexible api that gives minimal contractual obligations (read_entry, write_entry, delete_entry is the entire set of required methods), but still allows you to layer specific functionality (eg TTL) on top with an optional 'options' param. You could get the best of both worlds by adhering to that contract and then people can swap in eg redis cache store if they wanted a network-shared store.

EDIT: see https://github.com/rails/rails/blob/main/activesupport/lib/a...


That's actually a really good idea! I'll definitely consider this in a future update. Thanks!


Redis is great for caching a customer config that's hit 2000 times/second by your services, but even then, an in-mem cache with short TTL would make redis more tolerant to failure. This would be great for the in-mem part.


It's nice being able to toggle flags immediately, without waiting for a deploy. Having near-instant rollback is reassuring for launching new features.


Very neat. I've been doing this with Calibre (https://calibre-ebook.com/), which involves plugging it into your PC via USB. Simple RSS feeds work with little configuration, and more complicated news sites require writing a custom python "recipe".

This project uses Amazon's email gateway, which I think is limited to 25 articles per month (don't quote me on this).


FWIW to avoid the plugging in (which I hated) Calibre can be configured to send emails as well, which works well with the email to kindle feature, and with a little fiddling you can bridge the gap to have Calibre auto-email you. (https://www.mobileread.com/forums/showthread.php?t=314401)


Could Calibre (or any other software) generate an OPDS feed? I know that at least KOReader has support for OPDS[0], maybe vanilla Kindle firmware has it too. That would let you forget the part of connecting your device to a PC.

[0] KOReader also has an RSS reader, but I'm not sure how good is it and what it can support in terms of feeds "complicatedness"


Calibre-web can, I use it with an app on an iPad. It’s not immediately obvious how to access it, but here’s a GitHub issue with good info: https://github.com/janeczku/calibre-web/issues/2103


I use KOReader's RSS reader, I haven't run into any issues yet. It supports RSS and Atom, supports pulling the full article text if it's in the feed, supports images, and puts each feed entry into its own epub.


Indeed. I used to this in Calibre all the way back in 2010.


TIL there's a name for this! (Chargie)

I have an old Mac multiport adapter (USB C / USB A / VGA) that I use only to limit the current going into my smartphone, for the sake of battery health. It effectively downgrades any fast charger to a slow charger. This looks nicer, thanks for sharing.


It really is! I built a system to monitor/control my wood stove with a pi. The GPIO pins made it easy-ish to hook up an infrared temp sensor over i2c. I found a relay hat that allowed me to switch 120 VAC to control the stove's fan. My pi 4B had plenty of power to run a Ruby on Rails server to build little charts/graphs, a config UI, and some cron jobs. Lots of very powerful Lego blocks, basically.

https://github.com/locofocos/wood-stove-rails


That's so wild. Many small businesses in my area give you a discount for paying with cash. They pass the card fee onto the consumer, but it's baked into the menu prices.


The case studies in TFA are all places that deal with extremely high volume over very short time periods—amusement parks, zoos, and sporting events. Many of their points of sale are also mobile (food carts or someone walking around with a tray). Both the volume and the mobility make cash much more difficult to manage than a phone with a card reader, so they've likely done the math and determined that the interchange fees more than pay for the logistical improvements.


Remember when Chipotle got in trouble for rounding 24¢ and 26¢ to 25¢, to save time making change? [1] It was not unfair on average, and it surely sped things up, but they stopped because it's technically not correct.

1: https://www.delish.com/food/news/a37579/chipotle-caught-roun...


I can see if being considered unfair if it's a single business, but I do think that it's at least a little funny, considering we have penny rounding (to the nearest nickel) here in Canada since geting rid of the penny. Now it's by default, everywhere. And as someone that uses cash for all in-person purchases, it's actually really, really nice


The typical reason for a business to give a discount for paying for cash is so they can then evade paying tax on that income (at least, here in Australia, but it was my direct experience in the UK as well at least sometimes).

The discount has to reflect the fact that the cost of dealing with the cash isn't too far off the actual cost of paying card fees now. To the point where cash is so rare in Australia that cash handling companies are in trouble [1].

Our Reserve Bank recently suggested that businesses might soon want to charge customers who want cash /more/ - it seems possible that at some point in the near future anyone offering discounts for cash will just be instantly flagged for tax investigation!

1. https://www.abc.net.au/news/2024-06-05/fresh-accc-scrutiny-o...


Yep, some restaurants added a cc surcharge during the pandemic, and none seem to have done away with them. I've watched customers pay at the POS, and pretty much no one seems to realize that the fee is assessed (and the employees don't mention it).


This also really annoys me. Sometimes that fee is up to 4%, and I've seen corner stores that literally only disclosed it on a tiny sticker at the front door – not near or on the POS, not on the receipt (which you usually don't get by default).

I think at one point I've even seen 4% cash discount and 4% card surcharge in the same place. And I doubt that even the most expensive payment service provider out there charges the merchant anything close to 4% for card processing.


Yeah, I understand cc minimums (usually $5, but sometimes $10), but the hidden fees bug me.


And there is a subtle distinction between charging more for using a credit card (not a bank debt card) and a discount for cash that people argue about with respect to a particular card's merchant agreement.


I do this! My personal computers run Windows. I have an iPod touch that I use for listening to music on a stereo in my living room. I use iTunes to manage my music library. When I want more music, I buy CDs (or mp3s if those aren't available).

It's nice owning things. It has no ads, unlimited skips, and music doesn't sporadically disappear.


It's not exactly what you have in mind, but my friend walked into local small businesses saying "Hey, can I make you a website?". Then he googled "how to make a website" and figured out how to drag and drop with WordPress. Literally no tech experience, just a few business cards, and it went uphill from there.

He gradually moved into SEO and marketing as his customers wanted that. Right now he has about 40 customers that give him consistent work.

To this day, he's still amazed that I can code and write CSS.


I often wonder if SquareSpace, Shopify, etc has eaten the market for small companies wanting to someone to build them a website. I’d be curious to know if your friend could still get that step up now.


Those platforms have accelerated the market creating more opportunities for freelancers to design bespoke websites on their platforms with low/no code.


Charisma is very valuable.


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

Search: