Better HN
topnewbestaskshowjobs
Log inSign up

oblib

5,401 karma · joined Sep 19, 2016 (10y ago) · 1,967 submissions

I'm a solo developer. My main income comes from ezInvoice.com so most of my work is keeping it up to date.

Aside from that my wife and I have a small 5 acre "farmette" in the Ozark Mountains in SW Missouri that we putter around on. We have two mini-burros, 3 dogs, 5 cats, around 30 chickens, thousands of acres of National forest and public land surrounding us, and a lot of wild critters that come visit us.

I have the basement to myself to design and build apps and tinker with things that peak my interest.

Submissions

comment 5y ago · link · parent

I spent some time at "TodoMVC.com" going over the tools they have there. Then I spent some time trying to figure out which of those I wanted to use. After a few weeks of struggling to decide, and not being able to, I decided to not use any of them.

I can see why those would be a reasonable choice when a team is working on a project, but it's just me working on my stuff and all of those tools require a pretty huge investment, and once you're using one you're vested in it and there's no turning back without a significant loss.

I've never been a fan of using SQL DBs for web apps. I'm sure they're great for some apps and if you're well versed is using those it's probably the tool to use, but I wasn't.

So I decided to use what was familiar and easy for me. I use jQuery, Bootstrap, mustache.js, accounting.js. For the DB I started with PouchDB.js, and added Apache's CouchDB and web server running on DigitalOcean VPS when I was ready to move the app to the web.

With this approach I can start off without using any web server or DB at all, or using my Mac's built-in web server and CouchDB installed on my Mac.

And when you move to a web server you can use one that's much smaller. I added a service worker to my app so it stores the app on the client side. Since the app resides and is running almost entirely on the client side the server can handle many more users and you can use a much less costly server with no degradation of performance.

I have a demo with some pre-loaded data you can check out at https://cherrypc.com/app/demo.html, and a free version of the app at https://cherrypc.com/app/web.html. Both of those use your web browser's built-in IndexedDB and run entirely on the client side.

The main point is, for me, these tools were so much easier to get going with than those frameworks and I spent quite a bit of time working with those to find that out. PouchDB.js is, in my opinion, one of the best and most overlooked JS tools we have right now. And CouchDB is right there with it. No other DB makes it so easy to implement Offline-First, Local-First design goals.

512.

Gov Parson pushes to prosecute reporter who found security flaw in state site(missouriindependent.com ↗)

439 points · by oblib · 5y ago · 525 comments

comment 5y ago · link · parent

I rewrote all my Perl app code in JS to run entirely on the client side years ago but Perl is still my go to server side tool. For example, I used to use HTML:Template, now I use Mustache.js.

I'm quite sure I could do most anything I do with Perl with Python instead but since that would be pretty much the only thing I'd use Python for I'd spend more time learning how to do it than is necessary.

I still use CGI.pm for a lot of what I do on the server side, which is not very much anymore. But for what I do use it for it's very good at and I've never had a problem with it.

514.

Is my Facebook activity fucking my finances?(foundation.mozilla.org ↗)

60 points · by oblib · 5y ago · 54 comments

comment 5y ago · link · parent

You can cache templates in the user's browser and insert those into the user's page and show/hide parts of a single page.

For example, you can use mustache.js to load a cached "Preferences" template and just grab the data from the server to fill it in, or from the browser's IndexedDB if you've stored that data there.

Does this approach not qualify as a single SPA?

comment 5y ago · link · parent

Well this made me feel good about being a lone developer who gets to make all the decisions on how to make an app.

517.

The Turnbo Manuscripts(thelibrary.org ↗)

2 points · by oblib · 5y ago · discuss

518.

Apache CouchDB 3.2.0 has been released and is available for download(blog.couchdb.org ↗)

2 points · by oblib · 5y ago · 1 comment

519.

Americans quit their jobs at a record pace in August(apnews.com ↗)

1 points · by oblib · 5y ago · discuss

520.

US-based economists win Nobel for research on wages, jobs(apnews.com ↗)

3 points · by oblib · 5y ago · discuss

comment 5y ago · link · parent

I usually skim the article first and then come back to the comments for insight and clarity, especially when the subject is over my head.

I am often amazed by the discussions I read here. The depth of knowledge and understanding of often very complex subjects is really quite impressive here.

So is the arrogance sometimes. But that's common on the internet and I've learned to try and find value if it's there and ignore the hubris. For the most part I see less of that here than is common elsewhere. "Down voting" probably does a lot to discourage that.

comment 5y ago · link · parent

I almost always read the articles I comment on here, or a least skim them.

But I don't click on something every time I come here. I skim the front page and the "new" page several times most days but probably only click a link an average of about 5-10 times a day.

I come here when I'm taking a break from coding. I take a lot of short breaks.

The thing I love most about HN is the wide range of topics people share here. I find stuff here that I just wouldn't come across anywhere else.

That and the opportunity to see what others think about and add to those topics offers such a great way to learn that HN is one of the very few sites I do visit every day.

And the main reason I visit it is to find links to click on. Next would be to read the comments. Much further, but next after that would be to comment on the subject and content of the link.

comment 5y ago · link · parent

There's a lot of stuff here about software that doesn't make the front page. I tend to scan the front page first and then go look at what's in the "new" section. There's a lot of good stuff there that doesn't generate a lot of comments that I follow the links provided.

I'll come back and leave a comment on some of those. But by the time I do they may be a page or two deeper and not much makes the front page if they haven't already by that point. A later post on the same subject might make the front page though. I've seen that happen a lot here.

That said, there's still a lot here about "software, hardware, computer science". As far as "hacker culture" goes I'm not really sure what that is.

comment 5y ago · link · parent

Yeah... that's some more over the top bullshit.

comment 5y ago · link · parent

OAN is Vampire media. I'm stunned to learn ATT is involved with them.

526.

AT&T helped build far-right One America News(reuters.com ↗)

9 points · by oblib · 5y ago · 5 comments

comment 5y ago · link · parent

What cracked me up about this is how many "FB Friends" of mine think FB did it on purpose. "They were erasing data" is one the theories I was told.

comment 5y ago · link · parent

I don't make Apple apps but I think this is a good idea.

I don't provide a way for a user to delete their data in my app but that's because I don't want to have to deal with having to tell them "You shouldn't have pressed that button". But I'll gladly delete it they request I do.

That's a tough one to balance though. It's been very rare but I've had users call me a few years after their account expired asking if I still had their data, and in all those cases I did, and that saved their butts because they needed it.

In my case storing user data is very inexpensive so unless they ask me to delete it I'll let it sit for long time.

What's happened more often is I'll have users try to login and then renew their accounts after they've sat for over a year.

529.

Platforms That Trust DST Root CA X3 but Not ISRG Root X1(letsencrypt.org ↗)

1 points · by oblib · 5y ago · discuss

comment 5y ago · link · parent

"They argue that Twitter is censoring Trump in violation of his First Amendment rights, according to the motion."

I really do not see how anyone has any 1st Amendment rights to use a platform they do not own. Trump, like all of us, can run a server from his home or pay a service to host it if he wants and say pretty much anything he wants there, and he did try something similar.

Twitter owes Trump nothing at all.

531.

Trump asks US judge to force Twitter to restore his account(apnews.com ↗)

4 points · by oblib · 5y ago · 4 comments

comment 5y ago · link · parent

It's because the cost to bring them to court is far to expensive. I don't know anyone who can afford to do that here in the U.S.

comment 5y ago · link · parent

Google owes me money too. They screwed me back in the early years of this century by billing me for ad "hits" that were clearly bogus and I've never used their services since.

I still use their search engine but I always use duckduckgo first and I won't click on any of the advertised links the offer. Never.

If anyone hasn't figured out by now that Google is a predator who'll screw them out of everything they can, including their startup ideas, they will sooner or later.

comment 5y ago · link · parent

You can do that with CouchDB installed on the client's PC. Syncing that with a Cloud based CouchDB is trivial, and fast and efficient, and requires no user interaction.

comment 5y ago · link · parent

I ran into this yesterday with a CouchDB running on an Ubuntu 16.04.7 LTS Droplet.

I don't think this is an issue with the droplets though and updating to the latest release did not solve the problem.

In my case I could not connect to the CouchDB using the Chrome and Opera web browsers running on my Late `09 Mac Mini. I get an "SSL certificate has expired" alert for both the website and the CouchDB running on that server. Firefox, however, works fine with that Cert.

So I tested it on a new Raspberry Pi with both the Chrome and Firefox browsers and got the same result. Works in Firefox and not in Chrome.

I also tested it on my old iPhone 5s and Safari did not work but Firefox does.

I think this is related to what's described here just a couple days ago:

"Let’s Encrypt’s root certificate has expired, and it might break your devices"

https://techcrunch.com/2021/09/21/lets-encrypt-root-expiry/

536.

Managed Database Lets Encrypt SSL Connectivity Incident Report for DigitalOcean(status.digitalocean.com ↗)

1 points · by oblib · 5y ago · 1 comment

comment 5y ago · link · parent

A few years ago a tried using the browser's IndexedDB for my invoicing app and loaded a 1000 documents into it at a time. It did ok up to about 2-3k documents but choked the browser to the point of being unusable at 5k documents. That was on a Late `09 Mac Mini so maybe newer or more powerful PCs would do better, but that's not an issue at all if you're using CouchDB to store the data on the client side.

I use CouchDB installed on the client side to implement Offline First data storage. This works for Desktop PCs and if you run it on local device that's accessible via your local network, like a Raspberry Pi in-house for example, you can also use it with mobile devices in-house too.

The local CouchDB will sync with the Cloud based CouchDB as soon as they're both online. CouchDB will decide which version to keep and deliver it from that point.

It's certainly not perfect and doesn't provide "real time collaboration" but so far that's been out of reach anyway and may not be a very good approach at all. The notion of several people editing the same document at the same time seems to me to be chaotic no matter how you approach it.

The biggest downside to this approach is that the user has to install and configure CouchDB. I made a simple web app to help with this, but it's a bit too much to expect users to install and configure it.

What we need is a client side DB pre-installed that any web app can access and the data for that app is sandboxed and can only access the DB assigned to it. But it's not reasonable to add that to a web browser. CouchDB can do that now.

comment 5y ago · link · parent

Here's what I know so far... This breaks my websites SSL on Opera and Chrome on my late `09 Mac Mini, and Chrome on a new Raspberry Pi 4, and Safari on my old iPhone 5s.

Even the https://community.letsencrypt.org/ site is broke in those.

On all of those devices my sites work fine in Firefox. I have to think this is biting more folks than we know right now. I mean, I know my Apple stuff is old, but there's still a lot of old hardware out there.

comment 5y ago · link · parent

I got bit by this today and I've not been able to find out what I need to do to fix it.
1
171819
66