Live data from Hacker News

How I Hacked My University's Registration System with Python and Twilio

twilio.com

91–100 of 163 posts

Re: How I Hacked My University's Registration System with Python and Twilio

#91
post #41
post #25

I was in the US and want to immigrate to Canada because of US broken H1B immigration system ( for me it will take 9 years to get a greencard). Here is what I did - The immigration website of Saskatchewan province opens up randomly to apply for immigration. I missed it many times because there is no indication other than the "Apply" button being enabled and a small text in their homepage which says "Applications are n…

Nice story, and great that Twilio worked out for you - but this really is the sort of thing that email alerts (or IM alerts, or IRC alerts) should also work fine for. I would argue that the fact that you find SMS/phone calls a more urgent alert is a fault with your phone/communication setup - and twilio is an interesting hack around that. But there really should be an easy way to make just as much ruckus from a simpl…

[deleted]

Re: How I Hacked My University's Registration System with Python and Twilio

#92
post #25

I was in the US and want to immigrate to Canada because of US broken H1B immigration system ( for me it will take 9 years to get a greencard). Here is what I did - The immigration website of Saskatchewan province opens up randomly to apply for immigration. I missed it many times because there is no indication other than the "Apply" button being enabled and a small text in their homepage which says "Applications are n…

The distill browser add-on will work for this too, except for the phone call. SMS is a paid feature but email and popup notifications are free.

Re: How I Hacked My University's Registration System with Python and Twilio

#93
I did the same thing at UCSB 10 years ago to constantly poll for seats opening up in a class. This was back when GOLD was a primitive web interface that was clearly screen-scraping an IBM AS/400 terminal app. I used python and twill--put values into forms (no JavaScript and the form IDs never changed), login, search for the class, and scrape.

Re: How I Hacked My University's Registration System with Python and Twilio

#94
post #65
post #58

Earlier quoted context omitted.

Couldn't you just let anybody sign up for $LONG_ENOUGH_PERIOD and then randomize who gets in the classes? It sounds like a much better solution in general.

My university switched to that for some (mostly optional) classes. This resulted in a lower attendance rates because as a student you end up registering for pretty much everything instead of one or two classes you really want. There was a system in place to fill the empty seats with students still in the waiting queue by the second session but most students already got into other classes and just didn't remove themse…

Okay, so what about this:

Students rank their course preferences in an order and submit it. For each course, free seats are first allocated to the students who ranked it as their first choice, then what is left to the students who ranked it as a second choice, and so on until the round n and there are less seats available than people who ranked the course as their nth choice: the remaining seats are allocated by a lot to them. (For a very popular course, they would have to start with the random selection right away on the round n=1).

However, instead of enrolling the lucky students right away, everyone gets notified about which classes they have been tentatively admitted, and they must confirm their attendance before they can take their seat. If they don't confirm in a timely manner, they lose the opportunity and the free seats are propagated to students left in the waiting list until someone accepts (again using random lot).

The one problem I can think of: the process (especially the propagation of rejected offers in the waiting list) may be too long-winded to be practical. So maybe skip the confirmation part: there's a set maximum number of courses you can take, M, and slots are filled until you're enrolled to maximum of M courses.

But in any case, if the overbooking is enough of a problem so that you are looking at methods like these, the real problem is that have too many students compared to the teaching resources. All other attempts can only mitigate the symptoms of the root cause.

So maybe staff should choose limit the amount of students eligible to take some very popular courses by an entrance exam, or imposing certain mandatory minimal GPA requirement in the prerequisite courses. This option should be especially considered if the attrition rate is high (there's a problem of students taking much-coveted seats in the class but who fail to show up or otherwise don't put in enough effort to pass). Usually that would have been done on the admission level already, though.

Re: How I Hacked My University's Registration System with Python and Twilio

#95
post #17
post #14

If you were able to do that prior to taking CS101, you might not need CS101.

If you want to get that piece of paper that some companies require...

At my school, they would waive requirements if you take a higher level course in the same track. For example, if I just took CS102 that requires CS101, I wouldn't have to go back to satisfy the CS101 requirement.

Obviously everywhere is different.

Re: How I Hacked My University's Registration System with Python and Twilio

#96
post #60
post #56

Earlier quoted context omitted.

"Just like a lifeboat, the US can't let everyone in at once or we'd sink." Actually, the consensus among economists is that immigration makes your own economy better off. It has a net positive effect on productivity and prosperity. In other words, your "rate-limiting" analogy makes zero sense. You want more immigration, not less.

» In other words, your "rate-limiting" analogy makes zero sense. You want more immigration, not less. How's that working out for Germany?

I have no idea how that's working out for Germany. But I was under the impression that Europe gives away social benefits to the refugees (at least at the initial stage). While the author of the parent comment (I expect) is self sufficient from day 1 (otherwise, he / she wouldn't be allowed in, right?). It's not like the government of the US is spending people's taxes on him / her. He / she paid for the interview with the embassy, paid for the visa, then was paying taxes and spending money locally buying food / clothes / etc. (thus creating / supporting new jobs).

Re: How I Hacked My University's Registration System with Python and Twilio

#99
post #41
post #25

I was in the US and want to immigrate to Canada because of US broken H1B immigration system ( for me it will take 9 years to get a greencard). Here is what I did - The immigration website of Saskatchewan province opens up randomly to apply for immigration. I missed it many times because there is no indication other than the "Apply" button being enabled and a small text in their homepage which says "Applications are n…

Nice story, and great that Twilio worked out for you - but this really is the sort of thing that email alerts (or IM alerts, or IRC alerts) should also work fine for. I would argue that the fact that you find SMS/phone calls a more urgent alert is a fault with your phone/communication setup - and twilio is an interesting hack around that. But there really should be an easy way to make just as much ruckus from a simpl…

The post you replied to barely even mentioned Twilio. It made no comparison to email or IM. It never said those wouldn't have worked. You seem to imply that choosing to use Twilio at all indicates a fault in one's communication setup...because they should use email instead?

The funny thing is, you go on to acknowledge that a phone call is psychologically more urgent than an email, and ponder how email might be extended to cover that use case...or maybe, the person was not at fault and was actually using the right tool for the job!

Re: How I Hacked My University's Registration System with Python and Twilio

#100

For the curious, if you just want to one-off this for yourself, you probably don't need twilio to do it. Most carriers have a special domain that if you send email with the recipient's phone number, it turns into a text. I've got Verizon and its as simple as this from the command line: echo 'Text message text' | mail -s 'Subject will display in braces in the message' -a 'From: Myserver@Mydomain.com' 'number@vtext.com…

Is the SMS free? If not, who pays for it?
Post reply on HN