Lurker News

Comments (731) 147 threads

Earlier comments
jmpman2 replies#
I trained a mobile neural network to feed the dog every morning, and his brother to feed it every night.
matt_the_bass1 reply#
My mobile neural nets are still in the training stage. Sometimes, they have trouble recognizing when the dogs fifo is full.

Also, though I derive great happiness from this automation effort, I’ve noticed that the processing units are quite expensive and the maintenance cost is also large. After 5 years, I’m certain I’ve spent more time training them than if I fed the dog myself and more money that if I hired a 3rd party DwaaS (dog walker as a service).

delinka1 reply#
I think part of the problem is the ordering of the canine calorie queue: should it not be approximately lifo rather than fifo? If you are indeed correct, I’m curious to know how the canine has direct access to the caloric morsels at the bottom of the container.
dudleypippin1 reply#
I believe they were referring to the canine unit's output queue, which definitely should be fifo. If it switches to lifo, a trip to the troubleshooting specialist is in order.

Continue this thread — 1 reply

BenoitP#
The artificial artificial intelligence way.
A_Person8 replies#
Ok, I'll bite!

About 20 years ago I inherited enough money to retire on for the rest of my life. But the only evidence of those assets was, a dot matrix printout that anyone could have done in five minutes. So over the next few weeks, I created accounts in the various share registries and online banking websites, and manually cross-checked the printed list against those accounts. All was good, but I wanted to do that on a regular basis, and it was clear that doing it manually, on a regular basis, was not gonna happen.
I am personally -- NSFW SPOILER ALERT!! -- a long time Windows/IE user, and I knew that IE has a comprehensive automation interface. In literally a few lines of VBScript (say), you can programatically start IE, navigate to URLs, parse the DOM, create new local documents, and so on. But although those interfaces are very simple, they're not robust against failures, and have various weird and wonderful corner cases that will sometimes trip you up.
So over the next 10 years or so, I created a robust, general-purpose IE automation wrapper, and wrote some applications on top thereof. The result is that at any time, I can click a few buttons on a handsome user interface, and enter a single master password, at which point my application will automatically log into each share registry and online banking website in turn; download all new and amended data therefrom; transform all data into common formats; store it in a local cache, so it doesn't matter if it later disappears from the website; then creates a single share holdings document, showing all share holdings from all share registries, and a single online banking document, showing all transactions from all accounts at all banks since the start of time. Both documents have dynamic, user-defined sorting and filtering. They also hilite significant changes; check all share holdings against banking credits to confirm that all expected dividends were received; and so on.
In other words, I've completely automated various important financial checks that I simply couldn't do by hand on a regular basis. The downside is, I'm tied to IE - and - several hundred thousand lines of VBScript! If anyone would like to re-write all that code for Chrome or whatever - for free - you're more than welcome to contact me!!!

anonnel1 reply#
You mean I can rewrite several hundred thousand lines of VBScript for you for free? Sounds awesome. Do reach out.
helsinki1 reply#
Hahaha, oh wow, that's a lot of work. I think you should learn Python and some Requests...
A_Person3 replies#
I don't think that would make it much simpler (if that's what you're getting at). There's tons of grunt work that just has to be done - eg. calculating expected dividend payments (by automatically matching portfolio details to dividend schedules from corporate websites), and automatically matching those to bank account credits - all through code. Despite the laughs that the VB languages get on HN, VBScript is in fact, a fully featured traditional imperative programming language, and has all the features you'd expect in such a language (but no IDE :-(). So I doubt that rewriting in python would make much difference. And I'd still be bound to the IE automation model.
wafflesindeed#
I'm not OP, but I suspect they meant that Python and some libraries would have solved your problem in a few days of work.

This is particularly true in the UK where there's a big push for "Open Banking" where banks must provide APIs for developers.
This would remove your dependency on IE if it was all done from the command line :)

A_Person#
To wafflesindeed (there's no reply button):

> I'm not OP, but I suspect they meant that Python and some libraries would have solved your problem in a few days of work.
I wrote software professionally for 30 years. I have a good understanding of the work required to implement a business requirement! I cant really see myself spending 10 years on a one-week task :-)
PS. I didn't downvote you.

PurpleRamen3 replies#
> And I'd still be bound to the IE automation model.

Why? You fetch data, calculate stuff and give out reports. Unless there is heavy javascript involved, you don't need a browser for any of this. But now you are dependent on the fragile setup you have created, hopping that VBScript, IE and your datasources will continue to work as long as you live.
Becoming independant and gaining a future ground would be a valid reason to change to a better environment. It doesn't need to be Python, but considering the requirements, Python is a very good choice for this it seems.

Continue this thread — 3 replies

jacobush1 reply#
No problem. I will need your bank and website passwords... :-D
A_Person1 reply#
I've no idea what they are! They're all random strings within the integrated password manager that I wrote as part of the package!
egypturnash1 reply#
This is kind of perfect.

Continue this thread — 1 reply

Cyphase1 reply#
> If anyone would like to re-write all that code for Chrome or whatever - for free...

For free? I thought you inherited enough money to retire on for the rest of your life. Share the wealth. :)

A_Person1 reply#
Well put :-) I was actually taking a subtle dig at folk who say, "just ditch IE, how hard can it be?" If you have an enormous corporate or personal application, the answer could be: "impossibly hard", unless a good fairy appears from the sky and rewrites it for free!
test6554#
You might look into Yodlee. Services like Mint use their non-free apis to get financial data.
13of401 reply#
Honestly curious: Why wouldn't you just liquidate all of it and invest in some mutual funds?
A_Person1 reply#
A lot of it is in fully-franked shares in a self-managed superannuation fund. The fund is now in pension mode, which means it pays no tax on earnings. Where I live, fully-franked shares, in a zero tax environment, get a refund, from the tax office, of all the tax that the issuing companies payed on those earnings!! It's a sweet deal, but actually makes me feel a bit guilty. It's all 100% above board (and managed by one of the big 5 accounting firms), but it means I pay less tax than all my friends and acquaintances, all of whom earn much less than me. Reference: Warren Buffet's secretary :-)
whatsstolat1 reply#
Fellow Aussie

Continue this thread — 1 reply

delbel3 replies#
If you wanted to re-write that for Chrome or whatever (including headless) I would suggest Selenium or WebDriver suite, including PhantomJS. However, my knowledge (expert level at the time) is a bit outdated and there are probably new toolkits based on the Selenium/WebDriver protocol, it is a good direction to point you to.

I have had my bank remove records from my online account, or not have the ledger balance add up, so your idea interest me. I contacted the controller of the currency about my bank messing with my records, and they did absolutely nothing.

A_Person1 reply#
Thanks for the reference to sekenium etc. I know nothing about other browsers' automation capabilities, so i'll takee a look at some stage.
sonar_un1 reply#
I’ve automated a bunch of tasks thanks to selenium. It’s really pretty simple once you get the hang of it. I’d totally recommend.

Continue this thread — 1 reply

ntzm#
Wouldn't go for PhantomJS
sudouser1 reply#
ever tried sikulix? it clicks the things
A_Person#
Nope, never heard of it. My software certainly has to click lots of thing! But it also has to do lots of data processing behind the scenes. So the clickety click is only part of the story :-)
nanospeck#
I’m interested to work on it. Can u share the details in nanospeck0@gmail.com
nopcode5 replies#
I automated all my piracy.

My NAS automatically downloads files as they are released by scene/p2p/pirate groups. Files are extracted (if compressed), renamed, metadata is added, and published on some apps like plex and trakt.
Movies, TV Shows, Music.

kaybe#
Hm, how about a show about a robot pirate ship (in space or today's world) and either some hackers in a basement or a 3-letter agency on the other end? (Maybe leave it ambiguous for a while. Or maybe they fight each other for control.)

There probably are a number of political and economical reasons to disrupt shipping routes and terrorize billionaires on yachts, and plenty to stay unrecognized and uncaught meanwhile (use 'hacking' to disrupt the military that might come to check).
Maybe at some point the robots gain their own sentience and decide to mutiny, maybe to become space pirates too..
The plot is pretty far-out, but I think I would watch it.

atmosx2 replies#
Sickbeard and couchPotato did that through GUI with a few clicks a few years ago (at least).
FuckOffNeemo#
Sonarr, Lidarr and Radarr do it much better these days :)
arbitrage#
Sickbeard was also a giant piece of junk that crashed all the time, and sucked all available system resources.
faitswulff2 replies#
In the same general category, I just wrote a script to download episodes of anime as they're released.
sparkie#
I wrote a YAML file for flexget. Much easier.
watyousay1 reply#
Would you be willing to go into some more detail on how it works? I use Sonarr and Hydra2 with a handful of private indexers and for most TV its the perfect solution.. but for anime it's the pits. For whatever reason the anime ripper scene seems to be actively resistant to this sort of automation.
faitswulff#
My use case is really simple. I just use a script to fetch the latest free episode of My Hero Academia from CrunchyRoll with youtube-dl.

Continue this thread — 2 more replies

oxygen02111 reply#
1. some miscellaneous things using IFTTT like cross posting from Instagram to Twitter and Facebook

2. Smart Home stuff like turning on the light on sunset if I’m home, turning off the lights when I leave home and multifunctional wake up calls using light and music.
3. And which I guess I’m most proud of: I’m secretary at my local volunteer fire brigade and one of the chores is to send out a weekly email to everyone with a digest of trainings and other appointments in the next week. To get this out of my head, I wrote a serverless function that queries a special google calendar for this, collects titles, start times and notes, generates an email and sends it out to our members. This lets me just manage the appointments within my calendar and takes care of all the mechanics. Fun fact: this works that good that sometimes people come to me with “yeah, about your email...” and I’m like “which E-... OH!”

Continue this thread — 1 reply

Load more comments