News for hackers. Stuff that matters.
Re:How I Hacked My University's Registration System with Pyt... by makr99 on Friday June 23, 2017 @12:08PM (#14620185)
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 now 'open' ". They will close the application intake when they have reached X number of applicants. So timing is very important.

So I hacked up a script which diffs their home page every 10 minutes for "open" regex. When there is an "open" keyword in the diff, the python script calls twilio API to make a phone call to me along with an SMS.

So this script was running in AWS for many weeks and one day I got the call. Logged in to Saskatchewan's immigration homepage and applied. Now I am in Canada as a permanent resident. Thanks to Twilio.

edit: add H1B to make clear which type of immigration is broken IMO.

Re:How I Hacked My University's Registration System with Pyt... by gregorymichael on Friday June 23, 2017 @12:22PM (#14620317)
Greg from Twilio here. Congrats on your immigration! Glad we could play a small part in that journey, but credit goes to you for your courage and creativity. Would love to hear more of your story. Would you mind dropping me a note at [email protected]?
Re:How I Hacked My University's Registration System with Pyt... by nodesocket on Saturday June 24, 2017 @01:12AM (#14624458)
Sounds like an amazing case study. Just looked/stalked your profile and ended up watching your talk on "Developers, entrepreneurs and depression"[1]. Really inspiring and awesome!

[1] https://vimeo.com/78419167

Re:How I Hacked My University's Registration System with Pyt... by danudey on Friday June 23, 2017 @01:20PM (#14620899)
Welcome to Canada! Also: it's not all like Saskatchewan, most of it is really nice. ;)
Re:How I Hacked My University's Registration System with Pyt... by fapjacks on Friday June 23, 2017 @12:29PM (#14620405)
That's along the lines of what I do when I am waiting for a dedicated machine from OVH, since they list all of their clearance machines on a special page and you have to keep checking them. So I just used my script with Twilio to send me SMS when it's available to buy. Done that all three times I needed a box. I would not call it "hacking" though.
Re:How I Hacked My University's Registration System with Pyt... by ganoushoreilly on Friday June 23, 2017 @12:39PM (#14620488)
I think hacking in a sense of having a problem and piecing together a solution is the context they were going for (much like hackernews) vs traditional escalation type hacking.
Re:How I Hacked My University's Registration System with Pyt... by fapjacks on Wednesday June 28, 2017 @06:17PM (#14659004)
Sure, but the term for this is "problem solving" and calling it "hacking" is disingenuous. I am not a big fan of the crowds that co-opt terminology for sort of superficial (e.g. marketing) reasons. I'm a bit hypocritical about it, because I think rms has historically done extremely well with this tactic, pushing ideals that I agree with. But there are other groups which do this that grinds on my soul.
Re:How I Hacked My University's Registration System with Pyt... by problems on Friday June 23, 2017 @01:01PM (#14620712)
Warning you now - that strategy on Kimsufi boxes at least is extremely popular. If you're willing to pay a little more check out their "SoYouStart" line - they seemed more readily available.
Re:How I Hacked My University's Registration System with Pyt... by Jugurtha on Saturday June 24, 2017 @08:37AM (#14625378)
I did something similar for a job offer on LinkedIn. I had to go out with friends so I polled the site every minute (not as gentlemanly as you) looking for the apply button. I was going to use Twilio for I had just signed up for a trial, but the internet was unreliable and I ended up using Gammu with a 3G dongle and a local SIM card to send an SMS.

I was surprised to see the number of applicants increase without the button having ever become available (no SMS received and I had logging to confirm). It was fun, nonetheless.

It's made me want to make something like this to diff arbitrary things and send notifications to people who're watching them, but I didn't sit down to do it, and sitting down to do it is all that matters.

Re:How I Hacked My University's Registration System with Pyt... by telesilla on Friday June 23, 2017 @05:53PM (#14623072)
I got tickets to a certain-to-sell-out concert doing the same thing. My friends were shocked I got them A-class seats. I'm teaching their kids to know that they will have more control over their world than they might imagine.
Re:How I Hacked My University's Registration System with Pyt... by WalterBright on Friday June 23, 2017 @06:35PM (#14623276)
This works until the technique gets popularized, then it won't anymore.
Re:How I Hacked My University's Registration System with Pyt... by pm90 on Friday June 23, 2017 @04:32PM (#14622523)
Did you manage to keep your compensation around the same? Or did you have to give up on it somewhat?

Canada does seem more attractive than US. However, there are definitely a lot more jobs in technology, and a lot more software engineers here in the US.

Re:How I Hacked My University's Registration System with Pyt... by gnopgnip on Friday June 23, 2017 @02:41PM (#14621611)
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 Pyt... by balladeer on Friday June 23, 2017 @10:02PM (#14624023)
And maybe also the fact that the computer and browser has to be open all the time, right?

I believe OP did this by running a cron or so on an always-on server.

Re:How I Hacked My University's Registration System with Pyt... by e12e on Friday June 23, 2017 @12:40PM (#14620500)
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 simple email, based on topic/sender filtering... (hm, maybe there's a nice side project for an app in there...).

Re:How I Hacked My University's Registration System with Pyt... by resu_nimda on Friday June 23, 2017 @03:10PM (#14621902)
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 Pyt... by thesuitonym on Friday June 23, 2017 @04:02PM (#14622297)
If you treat emails with the same urgency you give phone calls, I would argue there's a fault in your phone/communication set up. For most people I know, email can wait an hour or two, or even overnight. Phone calls require you to choose to ignore them.
Re:How I Hacked My University's Registration System with Pyt... by __jal on Friday June 23, 2017 @05:13PM (#14622855)
Maybe in your world that works.

Until the FCC develops redevelops any sort of interest in dealing with scammers, my phone is basically useless for most of the world to speak to me.

If you're trying to reach me and are not on my list of approved callers, you can email me, or decide you didn't actually want to talk to me. (No, I don't use FB Messenger or related spyware, either.)

On the other hand, I apparently pay much more attention to email than you - I generally respond within about five minutes, assuming there's some reason.

Re:How I Hacked My University's Registration System with Pyt... by cyphar on Friday June 23, 2017 @10:34PM (#14624103)
One of the points of email is that it is asynchronous communication. You can even respond in batches like RMS does. While everyone's email workflow is different, it would be a mistake to assume that email was ever designed to be used as an instant-messaging-style communication tool.

IRC exists for a reason.

Re:How I Hacked My University's Registration System with Pyt... by problems on Friday June 23, 2017 @01:00PM (#14620704)
Yeah, this isn't really a major Twilio win or a hack - it's a basic scraping technique.

I found a house for myself and a friend in a similar way, reverse engineer mobile app from MLS, scrape all listings once a day to get new stuff as it hits the market and you can now be far more selective than the crappy search on the MLS site allows.

Re:How I Hacked My University's Registration System with Pyt... by hbk1966 on Friday June 23, 2017 @01:02PM (#14620721)
Yeah you can sends texts to your phone just like sending an email.
Re:How I Hacked My University's Registration System with Pyt... by murukesh_s on Friday June 23, 2017 @01:08PM (#14620772)
How to do that?
Re:How I Hacked My University's Registration System with Pyt... by KekDemaga on Friday June 23, 2017 @01:57PM (#14621229)
Put the phone number in front of a domain for each carrier, a list is here.

https://github.com/WilliamFCipriano/FreeSMS/blob/master/data...

Re:How I Hacked My University's Registration System with Pyt... by pbhjpbhj on Friday June 23, 2017 @03:50PM (#14622218)
Re:How I Hacked My University's Registration System with Pyt... by icebraining on Friday June 23, 2017 @04:35PM (#14622547)
Do they work? For Portugal it still lists Telecel - which hasn't existed since '99.
Re:How I Hacked My University's Registration System with Pyt... by KekDemaga on Friday June 23, 2017 @09:36PM (#14623952)
My list is accurate as of a year or so ago, or at least they don't bounce back when you send an email to them.
Re:How I Hacked My University's Registration System with Pyt... by murukesh_s on Friday June 23, 2017 @02:25PM (#14621445)
Thanks, this hack (if it's a hack) looks interesting.
Re:How I Hacked My University's Registration System with Pyt... by toomuchtodo on Friday June 23, 2017 @03:25PM (#14622027)
It works, but know that it is nowhere as reliable as an SMS sent through a carrier's gateway.
Re:How I Hacked My University's Registration System with Pyt... by michalskop on Friday June 23, 2017 @08:47PM (#14623800)
I am using Telegram for such notifications. I made a simple Telegram bot, it does not do anything itself, I just use it as a sender of my messages to my phone. And I have a particular web address, which collects requests from any of my scripts and it just resends it (it is a simple python script) through the bot to me.
Re:How I Hacked My University's Registration System with Pyt... by aisofteng on Friday June 23, 2017 @01:53PM (#14621191)
You can check Twilio's website for information.
Re:How I Hacked My University's Registration System with Pyt... by linkregister on Friday June 23, 2017 @05:31PM (#14622961)
Which MLS mobile app are you referring to?
Re:How I Hacked My University's Registration System with Pyt... by uiri on Friday June 23, 2017 @11:13PM (#14624206)
SMTP is not an instantaneous protocol. Email prioritizes reliability over speed when it comes to delivery. An email alert could very well be delayed to the point that it becomes useless for something which is time sensitive.

Given the synchronous nature of a phone call, it seems like the perfect medium for this kind of alert. Similarly, SMS piggybacks off of the same network and therefore inherits some of the same properties.

Re:How I Hacked My University's Registration System with Pyt... by makr99 on Friday June 23, 2017 @01:27PM (#14620949)
I tried web alerts, but the emails were not instant, plus no phonecalls. Most the services I found didn't look reliable enough as I had no window for mistakes for my immigration. So I rolled my own.
Re:How I Hacked My University's Registration System with Pyt... by joombaga on Friday June 23, 2017 @02:41PM (#14621606)
> I would argue that the fact that you find SMS/phone calls a more urgent alert is a fault with your phone/communication setup

Doesn't the asynchronous nature of an IM make it less urgent than a synchronous phone call?

Re:How I Hacked My University's Registration System with Pyt... by pbhjpbhj on Friday June 23, 2017 @04:23PM (#14622455)
The industry I'm in is all SMEs - they regularly complain about people messaging them [ie SMS, aka "text"] out of work hours. Like "a customer texted me at 9pm about something how inconsiderate". They don't seem to understand it's absolutely considerate and that the idea is they respond when they next want to make themselves available. Mind you some people will get annoyed if they're not texted back straight away; why they don't then phone I'm not sure.
Re:How I Hacked My University's Registration System with Pyt... by joombaga on Friday June 23, 2017 @07:19PM (#14623475)
Yeah I've heard the same sentiment. I think people feel rude phoning because they feel rude ignoring calls, so if they call they're making the other party feel responsible for answering. This is silly of course.
Re:How I Hacked My University's Registration System with Pyt... by grecy on Friday June 23, 2017 @07:15PM (#14623463)
> but this really is the sort of thing that email alerts (or IM alerts, or IRC alerts) should also work fine for.

Except when you are asleep.

And when it comes to immigration, you are happy to be woken up in the middle of the night by a phone call when it means the difference between failure and success.

Re:How I Hacked My University's Registration System with Pyt... by icebraining on Friday June 23, 2017 @04:31PM (#14622509)
Receiving phone calls is free, a data plan isn't :)
Re:How I Hacked My University's Registration System with Pyt... by jlgaddis on Friday June 23, 2017 @07:56PM (#14623635)
I use Pushover for (personal) things like this.
Re:How I Hacked My University's Registration System with Pyt... by grecy on Friday June 23, 2017 @07:16PM (#14623466)
May I ask what PR stream you applied under that "opens randomly"?

After years of hard work I successfully got in via Provincial Nomination.

Re:How I Hacked My University's Registration System with Pyt... by patmcc on Friday June 23, 2017 @01:07PM (#14620766)
We're always glad to have more hackers in Canada, welcome! (If you've got your PR this was probably a while ago, but still)
Re:How I Hacked My University's Registration System with Pyt... by makr99 on Friday June 23, 2017 @01:35PM (#14621029)
Thank you. I got my PR some months back. My spouse can work now. We are very happy than being in the US where she was not authorized to work. We enjoy the real freedom here.
[dead]
Re:How I Hacked My University's Registration System with Pyt... by makr99 on Friday June 23, 2017 @02:37PM (#14621562)
I am not like everyone else and is not dying to get in to the US as you can see that I moved to Canada. I am a highly skilled worker and was working for some of the top technology companies in the US. I should have been given preference for my Green Card. But I was queued up and backlogged to 9 years because of the country of my birth. That is not how skilled immigration should work.

The immigration system of Canada is called Express Entry and gives importance to skills than luck (H1B lottery). That's why I called US immigration system broken. I should have been specific that its the H1B system that is broken. Edited my comment for the same.

Re:How I Hacked My University's Registration System with Pyt... by cgmg on Friday June 23, 2017 @01:14PM (#14620843)
"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.

Re:How I Hacked My University's Registration System with Pyt... by cat199 on Friday June 23, 2017 @06:11PM (#14623167)
> makes your own economy better off

just because the overall economy is better off (often measured in GDP) doesn't mean it is better off for all existing residents (e.g. GDP/capita).. even from a pure free-market perspective, distribution of wealth is not so market driven especially in the short term and when massive distortions deliberately exist in the marketplace (regulation, patents, near-monopolies, barriers, etc.)

Re:How I Hacked My University's Registration System with Pyt... by Paul-ish on Friday June 23, 2017 @02:11PM (#14621343)
Do you have a source. Do these economists say there should be no limits on immigration?
Re:How I Hacked My University's Registration System with Pyt... by droidist2 on Friday June 23, 2017 @01:35PM (#14621033)
It's a balance, if you don't have enough immigration you want more, if you have too much you want less. Which side of the curve the US is on is debatable.
Re:How I Hacked My University's Registration System with Pyt... by pbhjpbhj on Friday June 23, 2017 @04:31PM (#14622512)
The rate-limiting analogy can work: thing is the boat is leaking, so you think that if you let someone in it will leak quicker. And it will. But when you let someone in then you can bail it out and they can row (or vice-versa). You're still sinking but actually slower and now you can move too. Let someone else on and you can stop the sinking.

Testing the limits of the analogy, but there you are.

[dead]
Re:How I Hacked My University's Registration System with Pyt... by BeetleB on Friday June 23, 2017 @01:58PM (#14621233)
Working well, generally:

http://fortune.com/2015/09/08/germany-migrant-crisis/

>The 6.6 million people living in Germany with foreign passports paid $4,127 more in taxes and social security on average than they took in social benefits in 2012--generating a surplus of 22 billion euros that year, according to one report

More recently:

https://qz.com/901076/what-effect-did-the-record-influx-of-r...

Re:How I Hacked My University's Registration System with Pyt... by peculiar on Friday June 23, 2017 @03:00PM (#14621799)
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 Pyt... by netsharc on Sunday June 25, 2017 @07:04AM (#14629514)
Europe has an immigration policy of "you have a degree and a company is willing to pay you above average? Here's your residence permit!" (Obviously background checks are done). I guess their logic is that's a skilled trained worker who will be paying taxes and increase the private sector's productive output, why would a quota be needed? And skilled workers should not be a drain on resources since there's a sane tax system instead of a "steal from the poor, give to the rich" mentality.

As for refugees, letting them in should be like helping the people from that burnt down tower, it's about being human.

Re:How I Hacked My University's Registration System with Pyt... by BeetleB on Friday June 23, 2017 @01:55PM (#14621205)
>You're just like everyone else, and everyone else wants to get in, too.

Actually, no. Parts of the US immigration system have separate queues for people in certain countries. Not all applicants for a given immigration category are treated equally.