The grocery chain I shop at has a component of their loyalty card that lets you add certain coupons to your card and they change constantly. All told there may be a few hundred of items offered up daily, most of which I don't buy anyhow. So instead of wasting my time sifting through them to save $10 a month I just wrote a script to add all of them to my card every day at the same time. So long as I go shopping after that time I may have discounts for items I actually purchase deducted at checkout.
Safeway does the whole digital coupon thing. It’s too much of a hassle to be worthwhile but this could help. Not sure it’s worth the effort of writing the script myself though. Do you mind open sourcing it?
I wrote a database and interface once that would automatically catalog and run the Safeway Monopoly game, all I had to to was scan in the pieces with an app on my phone. It worked well, but demonstrated just how bad my luck was, after 614 tickets gathered, I won exactly 0 items. :/
Planning on using OpenCV to look for the "rare" items on the next go-round and not have to actually scan over all the game pieces manually. The most I can expect is to have some fun writing the code because I'm quite unlikely to win any cash or prizes.
I wrote a bot to read the top article titles and comments (10 articles at a time) on Hacker News and it just runs every hour. Plays out loud on my speakers. Uses a rapsberry pi, python and AWS Polly, I put the code up on github if anyone is interested. The voice kind of gets monotonous but I've found Kendra's voice to be the best IMO.
Last edit: since the free tier has a 5 million character per month limit (AWS Polly) I wrote the script to check if my one desktop IP is connected and if so it can run as I'm not always home/desktop off. So I can keep working and when it plays I pause my music and listen to it. Takes about 20 seconds to do the 10 requests limited to 1500 characters per audio file/synth request. Edit: to be clear you don't need a raspberry pi, just a computer with web connection, runs python, with audio output and scheduler eg. cron. I just have a raspberry pi webserver at home that is always on, also does other stuff like measure a solar cell's voltage every 10 minutes. It doesn't do anything useful at this time just gathering data and plotting it on a site/working with ADCs/building web API to receive data (want to make it world wide). https://github.com/jdc-cunningham/python_aws_polly_hacker_ne...
Odd it broke today, been running for I'd say several weeks. Connection aborted will see what it means. Hasn't been on for a while though since I haven't been on/since I posted about it, coincidence probably.
Nope, now it's working no code changed, guess that one or two requests failed
In college I wrote a script to register for classes. I'd input the potentially-full classes I'd like to register for, and it would just hammer the registration site repeatedly until someone removed themselves from the class at which point I'd be registered. I'm still amazed IT didn't pull the network connection to my dorm room or have any kind of rate limiting.
1 req every 30 seconds is more or less invisible, and universities have comparatively small customer bases. If everyone was doing it, there might be a problem.
My university does require a cooldown period. I heard that someone made his course registration script available to everyone, which I guess was a problem. Unfortunately, the detection system triggers even when you're just manually clicking through the site, which is annoying.
Similarly the college I attended required a five or six (can't remember now) digit number required for access to class registration. The idea was that you would talk to your advisor beforehand so you didn't sign up for the wrong thing I guess. My advisor seemed to be pretty uninterested in meeting with me over email (never responded to multiple attempts), so I gave up and brute forced it.
Class registration was done by most with the web interface, but I opted to connect to the backing mainframe via a 3270 terminal emulator. Doing so allowed me to write a simple expect script passing in an increasing number as fast as the connection would allow. I didn't bother with rate limiting and am surprised nobody noticed. Took me about 30 minutes and I was in! I was able to use that script at least twice and I wished I had thought of writing it sooner.
My advisor was a jerk who scheduled appointments for about 14 people at the same time, the day he left the country for a month. Wish I had this then, that following semester was brutal.
I occasionally hear about students in US colleges having to compete for places in classes like this. How does it happen? Why does the college admit more people than it has class space for? In the UK they don’t enroll more people than they can teach so everyone has a place.
Ah in the UK each class only runs once a year, and everyone supposed to do that class just all does it together at the same time. If there are electives each elective can take any number of people up to the total number on the course. So no need to compete for places.
It's not that the schools enroll more than they can teach. One simple reason is that many classes are just very popular, word gets around that they are great for whichever reason (professor, easy A, really fun project, etc). If a class can only hold 20 people, and its a popular class, its going to fill up as soon as registration opens.
In the end, you aren't left without being able to take classes. Just possibly not the ones you wanted I doubt this isn't the case in the UK too
In the UK you start a degree as a group and do all the same classes all at the same time as your peers. If you have a choice of classes then each of those choices can accommodate the whole group at the same time if everyone chose it, so classes just can’t be too full. At least this was the case at both use UK universities I’ve been to.
Also keep in mind that usually in the US, college students can sign up for any class as long as it doesn't have specific prerequisites - at large schools that means you'd be able to take just about any intro-level class you wanted to, regardless of your major. I'm not sure it works like that in the UK.
We have a module system, and depending on their topic people have some freedom to pick courses outside their main degree during their first 2 years. (We do 4 years, not 3). I did a module on Philosophy of Science during my Computer Science degree, for instance - pretty interesting. That said, I haven't heard people complain about classes being full in the same way that they seem to in the USA. I don't know why. Maybe it was because I was in science not arts and there were very few overly popular science classes :-) But across the whole uni, I only heard of a few classes that were so popular they were turning people away. I think one of them prioritised by who was doing that course as their main degree. But I generally heard of very few conflicts, so I don't know what was different. Maybe arts students have a different story?
Comments (704) 186 threads
Earlier commentshttps://medium.com/@jmathai/understanding-my-need-for-an-aut...
https://medium.com/@jmathai/introducing-elodie-your-personal...
https://medium.com/@jmathai/my-automated-photo-workflow-usin...
https://medium.com/@jmathai/one-year-of-using-an-automated-p...
https://github.com/jmathai/elodie
Edit Update: Gist is fixed and working 100%
Last edit: since the free tier has a 5 million character per month limit (AWS Polly) I wrote the script to check if my one desktop IP is connected and if so it can run as I'm not always home/desktop off.
So I can keep working and when it plays I pause my music and listen to it. Takes about 20 seconds to do the 10 requests limited to 1500 characters per audio file/synth request.
Edit: to be clear you don't need a raspberry pi, just a computer with web connection, runs python, with audio output and scheduler eg. cron.
I just have a raspberry pi webserver at home that is always on, also does other stuff like measure a solar cell's voltage every 10 minutes. It doesn't do anything useful at this time just gathering data and plotting it on a site/working with ADCs/building web API to receive data (want to make it world wide).
https://github.com/jdc-cunningham/python_aws_polly_hacker_ne...
https://youtu.be/fWfatVYML9o
Nope, now it's working no code changed, guess that one or two requests failed
No 8am sessions for me!
Class registration was done by most with the web interface, but I opted to connect to the backing mainframe via a 3270 terminal emulator. Doing so allowed me to write a simple expect script passing in an increasing number as fast as the connection would allow. I didn't bother with rate limiting and am surprised nobody noticed. Took me about 30 minutes and I was in! I was able to use that script at least twice and I wished I had thought of writing it sooner.
My advisor was a jerk who scheduled appointments for about 14 people at the same time, the day he left the country for a month. Wish I had this then, that following semester was brutal.
Additionally, the competition is usually for desireable time slots, rather than to get into a class at all.
In the end, you aren't left without being able to take classes. Just possibly not the ones you wanted
I doubt this isn't the case in the UK too
We have a module system, and depending on their topic people have some freedom to pick courses outside their main degree during their first 2 years. (We do 4 years, not 3). I did a module on Philosophy of Science during my Computer Science degree, for instance - pretty interesting.
That said, I haven't heard people complain about classes being full in the same way that they seem to in the USA. I don't know why. Maybe it was because I was in science not arts and there were very few overly popular science classes :-) But across the whole uni, I only heard of a few classes that were so popular they were turning people away. I think one of them prioritised by who was doing that course as their main degree. But I generally heard of very few conflicts, so I don't know what was different. Maybe arts students have a different story?
All comments shown.
Couldn't load more comments. Check your connection and try again.