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

Ha. I thought I was the only person that did this. I have a very spatial memory and before a vacation I love to fly around the area at low speed and build up my model of the terrain.

Is your app in the Play Store?

No apps here. It is just a Wifi-plug and Termux. It reads the battery voltage with termux-battery-status and turns the plug onoff. It does various other things too and there are issues, which I dont remember, so here is the entire program.

  import os,json,time
  loki="../batcon.log"
  f=open(loki,'w')
  f.write('ALKU\n')
  f.close()
  lokinolla=time.time()
  alku=True
  while True:
    b=json.loads(os.popen("termux-wifi-connectioninfo").read())
    if b['ip'] == "192.168.1.205":
        os.system("termux-api-start")
        os.system("termux-wake-lock")
        a=json.loads(os.popen("termux-battery-status").read())
        if alku:
            alku=False
            os.system('termux-notification -c "BATCON TOIMII"')
        p=a['percentage']
        s=a['status']
        cur=a['current']
        if p<70 and s=="DISCHARGING":
            yes=int((time.time()-lokinolla)/60)
            if yes>0:
                fi=open(loki,'a')
                fi.write(str(yes)+" "+str(cur/1000)+"\n")
                fi.close()
            os.system('curl 192.168.1.156/ON')
            lokinolla=time.time()
        if s=="CHARGING":
            if p>70: os.system('curl 192.168.1.156/OFF')
            if p==81:
                os.system("termux-tts-speak -l fi LASTAUS EI LOPU &")
                if 0!=os.system("ping -c 1 192.168.1.156"):
                    os.system("termux-tts-speak -l fi LATURI EI VERKOSSA &")
                time.sleep(30)
        if 0==os.system("ping -c 1 192.168.1.118"):
            os.system("termux-volume music 15 &")
            os.system("termux-tts-speak -l en YOUR FRONT DOOR IS OPEN! &")
            time.sleep(30)
        if 0==os.system("ping -c 1 192.168.1.219"):
            os.system("termux-volume music 15 &")
            os.system("termux-tts-speak -l fi HUOMIO... JÄÄKAAPIN OVI ON AUKI ! &")
            os.system("termux-toast -b yellow -c black  JÄÄKAAPPI")
            time.sleep(30)
    else:
        alku=True
        print('No KOTIKONE')
    time.sleep(30)

CouchDB was always a curious product that asked the question, "what would happen if your database and your application server were the same product?"

Unfortunately I think the answer was nobody would use it.


CouchDB dev here. While that was our idea early on for a while, we have loooong (10+ years) moved away from this narrative.

CouchDB is a document database that can be essentially indefinitely clustered to grow and shrink with your application / traffic demands.

It also comes with a unique replication protocol that allows you to synchronise casually connected instances (say offices around the world, or mobile devices and a cloud) much more like git uses push & pull. No other database really puts that into an open source / open government project.

There’s tons more cool stuff that CouchDB does and its being used in mission critical infrastructure that you’re relying on every day :)


> There’s tons more cool stuff that CouchDB does and its being used in mission critical infrastructure that you’re relying on every day :)

If you could share a bit on those I think the community would be extremely interested. There was that CERN thing a decade ago, if it's still true or there are other actors with similar amounts of data, there would be fewer comments about not finding CouchDB useful


Yeah we are working on that. Sometimes it is hard to get public info out of private projects, but there’s going to be a bit more on that in the not so distant future :)

> ...replication protocol that allows you to synchronise casually connected instances...

That single featurte right there was why i first had started playing with couchDB several years ago. It really had been quite awesome! I think other features that help it really help with offline-first approaches also are really cool! But, ultimately, after playing with it (and really liking it), i just didn't have a need for too many personal use-cases....since sqlite was "good enough". I thought - and still believe - that for wider (maybe corporate/enterprise?) uses, it can still fit the need....but i don;t hear much buzzz about it in general...so in my case, i stopped using it, and forgot about it. Apologies to any devs behind it, no offnese meant...i just got my personal use-cases covered by sqlite...and on enterprise side, too many internal politics to convince stakeholders that couchdb would be better than other solutions in some use cases.

Also, the documentation back in the day to get started was ok-ish, but there didn't seem to be much around....i guess it could be one of those things where it is/was a great thing...but if not enough attention and use exists, then it won;t trigger a wider audience of devs who will also document more stuff and further triugger a virtuous cycle?

Anyway, good to see the devs are still at it! :-)


No offence taken, SQLite is great technology :) — My company makes a (commercial) CouchDB add-on based on SQLite to add SQL queries to CouchDB (link provided for informational purposes): https://neighbourhood.ie/products-and-services/structured-qu...

How interesting! Thanks for sharing! :-)

Map/Reduce was a hype of the days it was created, but you're perfectly fine not using it. CouchDB has been integrating MongoDB-style queries for a few releases now, and this very release introduces a full-text search engine. Map/Reduce is still there because it just works.

The real shame is that Map/Reduce is simply a toy, easy-to-add bonus when looking at the data structure, but that's not what CouchDB is or ever was about. The one reason it was created is replication and simplistic conflict handling, and it does it perfectly.

The reason CouchDB never took off is that it targets offline-first, something you'll see associated with peer-to-peer systems, but does that only for servers: you're supposed to install that thing through packages, configure a text file, run it with your preferred daemon manager, ... If CouchDB had a simple desktop version you could start in one click and forget about, it would have been way more interesting. Alas.


There are client implementations, such as PouchDB for the browser and Couchbase Lite (community edition) for mobile platforms.

The Mac version is probably closest to what you mean, but yeah, an “Access/FileMaker“ type of app, most easily realised by bundling CouchDB and Electron probably, would go a long way. If anyone needs a project ;)

I think that better describes zodb/hope. Or gemstone glass.

https://zodb.org/en/latest/tutorial.html



still does (in a limited capacity :)

Unless you are IBM.

Not sure whether this is a Lotus Notes reference also, but it should be! (that's where the idea for CouchDB came from)

I was mostly thinking of the AS/400, where the database was built into the operating system platform.

As it should be :)

Let's be real though. 99% of people 99% of the time are also not coming up with novel ideas.

LLMs seem to mostly be limited right now by the fact that they're always losing context on new conversations and their interactions don't rewire their neural nets. Hard to come up with a new idea when your brain gets reset with every conversation.


I agree but I have tried many times to intersect two ideas with a LLM that would be novel and the LLM can not do this at all.

We shouldn't expect the stochastic parrot to be able to do this though and it is unfair to the stochastic parrot.

It is like expecting a real parrot to say words it has never heard before.

No one asks that of a real parrot because we don't anthropomorphize a real parrot like we do the LLM.


> Hard to come up with a new idea when your brain gets reset with every conversation.

Haha I love this picture!


He never believed in colonizing Mars (unless he's a moron). His Mars ambition has always just been about snatching the most lucrative inter-governmental contract that anyone has ever conceived of. Everything Musk has been involved with since PayPal has only been possible through federal subsidies and contracts.


I doubt it. Elon seems to be operating from Trump's "what the fuck are they gonna do about it?" playbook. To be fair, this playbook works really well if you have enough money to just pay lawyers to run interference for you 24 hours a day.


I'm aware of that reputation—that's precisely why I'm curious!


Couldn't agree more. And you didn't even touch on the pain and misery caused when an amateur hour shop decides to do micro services like big tech.


Lol. "I don't see hate speech as long as I turn off the promoted speech."


I am an adult and can manage my own needs and expectations. The platform offers the adjustments that I would expect to be able to do that. I don't wear a diaper or have the govt wipe my rear either.


Okay, use X then, I don’t understand your problem here. The rest of us are going to choose platforms where we don’t have to be neighborly with phrenology enthusiasts.

The internet has something for everybody, just pick the social media you are happy with.


I'm not the one trying to censor public discourse or jail people that allow for public discourse that the people in govt don't like. It's a slope that's repeatedly been slipped on through history.

If you have a platform you like, use it. As long as I have a block button that I can choose to use, I'm okay. If you think Twitter/X is bad, you should splunk around Telegram sometime.

In any case, I can choose who to associate with. I don't want the government to tell me I can't, it isn't right. I don't like flag burning either, but would rather not have that outlawed either. Repressive regimes can come from many directions... best to resist them all.


Very cool. Curious if you have looked into non-imaging (anidolic) solar collectors? My understanding is that they are actually more efficient than mirror or lens based collectors as they do not require precise aiming and are able to collect indirect sunlight as well.


I wasn't aware of such systems.

If I understand correctly, their main feature is that they do not focus on a focal point, but instead diffuse the light.

So I'm not sure if it would be applicable to my project.

I need to dig deeper to fully understand how it works exactly, thanks for the hint.


Absolutely. Metadata notwithstanding, highly encrypted payloads and highly compressed payloads should theoretically be almost indistinguishable from each other as both operations have a technical side-effect of extremely high data entropy.


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

Search: