Retrieving IMDB movie IDs

So , I recently was working on an interesting problem where I needed a way to retrieve IMDB movie IDs given movie names and use the IDs to further retrieve its Ratings . I used this opportunity to test a long standing code that I wrote to read data in the JSON format.  Well, it worked and made the job a lot quicker and easier. Here's the code

just copy and paste in your notepad/ text editor >> save it as an HTML and RUN!


ShellShocked? Check if you are vulnerable (and fix it)

This is only for apple users using advance versions of OSX.

Type the following code to your terminal to check if you are vulnerable to the ShellShock bug.

env x='() { :;}; echo vulnerable' bash -c 'echo hello'


if you see the word "vulnerable" printed out on your terminal. Your are vulnerable. (and most probably you will find yourself vulnerable )

Note your bash version - run the following command on your terminal

macbook:~ Abhishek$ bash -version
GNU bash, version 3.2.51(1)-release (x86_64-apple-darwin13)
Copyright (C) 2007 Free Software Foundation, Inc.

So you need to obtain and recompile bash to fix this. 

MAKE SURE YOU HAVE XCODE INSTALLED BEFORE PROCEEDING TO THE NEXT STEP 

Copy the following code and then type 

$ mkdir bash-fix
$ cd bash-fix
$ curl https://opensource.apple.com/tarballs/bash/bash-92.tar.gz | tar zxf -
$ cd bash-92/bash-3.2
$ curl https://ftp.gnu.org/pub/gnu/bash/bash-3.2-patches/bash32-052 | patch -p0    
$ curl https://ftp.gnu.org/pub/gnu/bash/bash-3.2-patches/bash32-053 | patch -p0  
$ cd ..
$ sudo xcodebuild
$ sudo cp /bin/bash /bin/bash.old
$ sudo cp /bin/sh /bin/sh.old
$ build/Release/bash --version # GNU bash, version 3.2.53(1)-release
$ build/Release/sh --version   # GNU bash, version 3.2.53(1)-release
$ sudo cp build/Release/bash /bin
$ sudo cp build/Release/sh /bin

(Note: you can run this by copy-and-pasting the above code block, going into Terminal and then running pbpaste | cut -c 2- | sh. Always take care when running random scripts from the internet though ...)

After this, the Bash version should be v3.2.53:

run the checker command again

macbook:~ Abhishek$ env x='() { :;}; echo vulnerable' bash -c 'echo hello'
bash: warning: x: ignoring function definition attempt
bash: error importing function definition for `x'
hello

"Vulnerable" is gone. 

Go to Sleep ....You are safe.. (for now)









11 Stories You Don’t Want To Miss This Week . via @techcrunch

1.   Larry Ellison, CEO of Oracle since he founded the company in 1977, has relinquished his CEO title. New co-CEO structure consisting of Mark Hurd and Safra Catz.
2. Chinese e-commerce giant Alibaba has gone public, NYSE opening at $92.70 per share, up 36 percent from the $68 share price of its ipo. valued at  $237.7 billion
3. 17-year-old Kai Kloepfer has invented a biometric smart gun that unlocks with your fingerprint. The high school student from Boulder hopes that his prototype, which employs a user ID and fingerprint match, will help reduce gun-related accidents.
4. Sarah Buhr reported on a San Francisco startup called ManServants, a service through which you can hire attractive men to wait on you hand and foot for $125 an hour. In an effort to dig deeper into this controversial idea,
7. Tomorrow Group founder Tom Goodwin wrote a piece called “How The Internet Killed Profit” about how he sees the Internet as a destructive force against the foundations of business and how digitalization has skewed economic balance.
8. Launched: iPhone 6 and the iPhone 6 Plus, and Matthew Panzarino showed us what using these new devices is actually like in real life, as he brought the new iPhones with him on a trip to Disneyland..
10. Mike Ducker took us back in time with his story “It’s Not About Creating Another Silicon Valley, But Preventing Another Motor City” in which he discusses how to develop ecosystems that will support the job-creating entrepreneurs of the future.
11. Twitter’s CEO had a great comeback to Peter Thiel’s attack on the company’s management, suggesting that there is “probably a lot of pot-smoking going on there” telling Thiel that he’d get back to him when he finished his bag of Doritos.