Coderust solutions in almost any programming language, with interactive diagrams. Reddits How to Prepare for Tech Interviews a benchmark. My free online Lean Launch. Pad class on Udacity is here. All the Lectures and their subtitles can be download for free here. Blog Handicapped Riding. I'm trying to run this and test the script. Free hack polldaddy Download dt. Rdr::Hack is a Perl module with. Download On: iOS - Android Looking for something amazing to inspire your kids for Shavuos? RustyBrick Quick Service Overview: Web services; web design. PollDaddy Survey Bypasser v3.
If you are an experienced professional, chances are you have a good set of tools and a work process that you repeat on a daily basis to handle your work. That’s good; it’s how you become more productive, and become an expert. But with repetitive processes come repetitive mechanical work. Whether it’s opening a file in Photoshop to change the format or adding an iCal to-do item based on an email you received, these little tasks can be streamlined. That’s the purpose of AppleScripts.
AppleScript is a scripting language developed by Apple to help people automate their work processes on the Mac operating system. It accomplishes this by exposing every element of the system’s applications as an object in an extremely simple, English-like language. AppleScript is to the Mac OS as JavaScript is to browsers. You may also be interested in the following related posts: • • • Quite a few AppleScripts are available on the Web, ready for you to use, so you don’t even need to look at their code. This article presents you with 17 of the most useful ones.
If you’re interested in learning this language, here are some good resources to get started: • Apple’s page on AppleScript. • Apple’s in-depth guide to AppleScript.
• Macworld’s article on the fundamentals of writing AppleScripts. • AppleScript Mailing List. First, Where To Put Your AppleScripts After you download a script, you have to know where to put it to start using it.
For this purpose, let’s say that there are three different kinds of AppleScripts, each of which is used for a different purpose. Embedded System Design Vahid Givargis Pdf Download. Simple Scripts You put these scripts in a special folder and call them when you need them. You can invoke them just by double clicking on them, but calling them contextually is a lot more effective. Using the Script Menu is one way to achieve this. To activate the Script Menu, first open the AppleScript Utility app in the /Applications/AppleScript folder and check “Show Script Menu in menu bar.” The Script Menu will show a list of AppleScripts that come with Mac OS X, plus your application-specific scripts.
To add a script to an application, simply put it in ~/Library/Scripts/Applications/. If that folder doesn’t exist, you can create it.
For example, if you had a Safari AppleScript, you’d put it in ~/Library/Scripts/Applications/Safari. From then on, if you clicked the Script Menu when Safari was active, your script would appear at the top of the list for you to use. Droplets Droplets are AppleScripts that live in the Finder’s toolbar. To use it, all you need to do is drop a file or folder into it. This is very useful for when a script affects a file or the contents of a folder, because all you have to do is drop the target of the action onto the script’s icon. To “install” a Droplet, first save it in a folder of your choosing: ~/Library/Scripts/Droplets is a good place. Then just drag the script to the Finder’s toolbar.
Folder Actions Folder Actions are AppleScripts that are “attached” to a folder. They are executed every time you perform an action with that folder.
Folder Actions can get triggered every time you add a file to a folder, remove a file, modify its items, etc. The behavior depends on how the script works, but you can imagine how useful that would be.
To add a Folder Action to a folder, right-click it to bring up the contextual menu, and click Attach a Folder Action. The default location for Folder Action scripts is /Library/Scripts/Folder Action Scripts, but if you want to keep all your custom-installed scripts in one place, ~/Library/Scripts/Folder Actions is a good place to keep them. Multimedia Processing 1. ConvertImage This is a great example of how Droplets are useful.
Just drop an image file into ConvertImage, and you will be prompted to choose from a list of file formats. Pick a format, and it saves it in the same folder as your original file. ConvertImage Type: Droplet Requirements: OS X 10.4+, Image Events 2. QuickTime to Photoshop Exports QuickTime frames directly to Photoshop.
All you have to do is pause a video at the frame that you want to export, and then invoke the script. If Photoshop is closed, the script will activate it for you. After it imports the frame, it will ask you if you want another frame from the QuickTime file. Type: Simple Script Requirements: Adobe Photoshop CS4. New job openings Great companies are looking for smart cookies like you.
IPhoto to Photoshop This opens the currently selected iPhoto image in Photoshop. It is a simple automation leap that gets you where you want without intervening steps. Type: Simple Script Requirements: Adobe Photoshop CS4 4. Rampage Drop an image file or a folder with image files in Rampage, and you get a text file with a lot of information about the file(s): size, resolution, color mode, ICC Profiles and more. It also reports warnings and errors about the file(s). The script currently supports TIFF, GIF, BMP, PNG and JPG image formats.
Rampage Type: Droplet Requirements: None 5. SWF Extractor This extract SWF files from Flash projectors (Windows or Mac executables) that are dropped into it. SWF Extractor Type: Droplet Requirements: None Safari Tools 6. Safari Web Site Validator Safari Web Site Validator gets the HTML or XHTML from the current active Safari tab and sends the code to the W3C Markup Validation Service in a separate window. It then asks if you want to validate the page’s CSS file as well. Safari Web Site Validator Type: Simple Scripts Requirements: OS X 10.4.4+ 7. Tiny URL Despite its name, the Tiny URL script doesn’t use the TinyUrl application.
It’s based on another URL shortening service called Metamark. It goes to the currently active Safari tab and puts the shortened URL directly in your clipboard. Tiny URL Type: Simple Scripts Requirements: None 8. Safari Cleannup This automates the deletion of Safari icons and cache and plist files.
Getting rid of these extraneous files can boost Safari’s performance. Safari Cleannup Type: Simple Scripts Requirements: None 9.
Scour Web Page This script scans the current Web page in Safari looking for MP3, AAC and PDF media files. If it finds multiple files, it prompts you to select the ones you want to keep, and then downloads them and adds them to your iTunes media library. Type: Simple Scripts Requirements: None Mail And iCal 10. Fuhgeddaboutit In Sopranos-speak, fuhgeddaboutit means “forget about it.” Indeed, one of the purposes of GTD is to free your brain from having to keep track of everything.
Just relax, forget about it now and be confident that you’ll remember when you need to. This script make that possible by making iCal To-Do items from an Apple Mail email.
Just invoke the script with the email you want, and it will create an iCal item with a due time set relative to the email’s arrival. Fuhgeddaboutit Type: Simple Scripts Requirements: None 11. Send Attachment Droplet Just drop a file into this Droplet, and it will make a new Mail email with the file as an attachment and the subject set to the file’s name. If the Mail app is closed, the script will open it for you.
Send Attatchment Droplet Type: Droplet Requirements: None 12. Remove iCal Duplicates When you sync and share many calendars in iCal, you often end up with a lot of duplicates.
This simple script helps you remove those. But once you ask it to delete duplicates, there’s no undoing. So, be sure to back up your calendar first. Remove iCal Duplicates Type: Simple Script Requirements: None 13. ICalculate Invoke this script, create an iCal calendar item and start date, and it will generate a text file reporting how many hours you have worked on the project. It even calculates the total cost of the project, based on the hourly rate your specify.
Especially suited to freelancers. ICalculate Type: Simple Script Requirements: None Finder Utilities 14. Pack’em Pack’em takes one or more items from Finder, packs them with tar, compresses them with either bzip2 or gzip and saves the compressed archive in the same folder as the original items.
A great companion to the Send Attachment Droplet. With these two AppleScripts, you can compress and email a set of files or folders directly from Finder. Pack’em Type: Simple Script Requirements: None 15. Rename Files Just drop a folder into this Droplet, and it will give you a lot of options to batch process its contents. You can rename the files according to names specified in a particular text file or change the files individually. Either way accomplishes your task much faster than by changing every file name independently.
Rename Files Type: Droplet Requirements: None 16. Websafe Name If you develop websites, you are probably accustomed to giving your files Web-friendly names. But there are times when you have to upload a whole set of files sent to you by a client, or upload things that you weren’t expecting to use. Websafe Name is very useful for this kind of task. You don’t even need to look through the list of files; just drop them into this script, and it will rename them to something Web-friendly. Websafe Name Type: Droplet Requirements: None 17. Tagger Safari Web Site Validator gets the HTML or XHTML from the current active Safari tab and sends the code to the W3C Markup Validation Service in a separate window.
It then asks if you want to validate the page’s CSS file as well. Safari Web Site Validator Type: Simple Scripts Requirements: OS X 10.4.4+ 7. Tiny URL Despite its name, the Tiny URL script doesn’t use the TinyUrl application. It’s based on another URL shortening service called Metamark. It goes to the currently active Safari tab and puts the shortened URL directly in your clipboard. Tiny URL Type: Simple Scripts Requirements: None 8. Safari Cleannup This automates the deletion of Safari icons and cache and plist files.
Getting rid of these extraneous files can boost Safari’s performance. Safari Cleannup Type: Simple Scripts Requirements: None 9.
Scour Web Page This script scans the current Web page in Safari looking for MP3, AAC and PDF media files. If it finds multiple files, it prompts you to select the ones you want to keep, and then downloads them and adds them to your iTunes media library. Type: Simple Scripts Requirements: None Mail And iCal 10. Fuhgeddaboutit In Sopranos-speak, fuhgeddaboutit means “forget about it.” Indeed, one of the purposes of GTD is to free your brain from having to keep track of everything. Just relax, forget about it now and be confident that you’ll remember when you need to.
This script make that possible by making iCal To-Do items from an Apple Mail email. Just invoke the script with the email you want, and it will create an iCal item with a due time set relative to the email’s arrival.
Fuhgeddaboutit Type: Simple Scripts Requirements: None 11. Send Attachment Droplet Just drop a file into this Droplet, and it will make a new Mail email with the file as an attachment and the subject set to the file’s name. If the Mail app is closed, the script will open it for you. Send Attatchment Droplet Type: Droplet Requirements: None 12.
Remove iCal Duplicates When you sync and share many calendars in iCal, you often end up with a lot of duplicates. This simple script helps you remove those.
But once you ask it to delete duplicates, there’s no undoing. So, be sure to back up your calendar first. Remove iCal Duplicates Type: Simple Script Requirements: None 13. ICalculate Invoke this script, create an iCal calendar item and start date, and it will generate a text file reporting how many hours you have worked on the project. It even calculates the total cost of the project, based on the hourly rate your specify. Especially suited to freelancers.
ICalculate Type: Simple Script Requirements: None Finder Utilities 14. Pack’em Pack’em takes one or more items from Finder, packs them with tar, compresses them with either bzip2 or gzip and saves the compressed archive in the same folder as the original items. A great companion to the Send Attachment Droplet. With these two AppleScripts, you can compress and email a set of files or folders directly from Finder. Pack’em Type: Simple Script Requirements: None 15.
Rename Files Just drop a folder into this Droplet, and it will give you a lot of options to batch process its contents. You can rename the files according to names specified in a particular text file or change the files individually. Either way accomplishes your task much faster than by changing every file name independently.
Rename Files Type: Droplet Requirements: None 16. Websafe Name If you develop websites, you are probably accustomed to giving your files Web-friendly names. But there are times when you have to upload a whole set of files sent to you by a client, or upload things that you weren’t expecting to use.
Websafe Name is very useful for this kind of task. You don’t even need to look through the list of files; just drop them into this script, and it will rename them to something Web-friendly. Websafe Name Type: Droplet Requirements: None 17. Tagger The “folder” is a computer interface paradigm that is a very powerful way to organize files. But it’s neither the only paradigm nor the best solution for all scenarios. Many sub-folders nested deep is a sign that a folder structure may not be appropriate.
Another great paradigm, coming straight from the Web, is “tagging.” You keep all your files flat in a common location, but group them by tags so that you can retrieve or filter them by tags. It so happens that the Mac OS X has very good support for this. You can use Spotlight Comments to tag files and Smart Folders to dynamically retrieve them.
All you need now is an easy way to do this, and this Folder Action does exactly that. To use Tagger, attach it to a folder. Then, every time you add a file to that folder via Finder, the script will prompt you to tag that file. It also automatically creates Smart Folders for all of your defined tags. Tagger Type: Folder Action Requirements: None Further Resources If you like the scripts above, you may also be interested in the following articles and related resources: • ScriptBuilders A forum in which script authors post their scripts. • A huge collection of AppleScripts for iTunes. • Scripts and discussion on how to make them.
• A search list of AppleScripts hosted on Github Should Smashing Magazine publish more Mac-related posts? Please let us know in the poll below and in the comments to this post!
When I heard that Time magazine was running another online voting component with its prestigious Person of the Year poll, the first thing I thought was, “Not again.” Didn’t the news magazine learn anything in, the year the notorious imageboard community had its founder Christopher “” Poole win the top spot? Or in, when a small group of programmers created some software to have North Korean President Kim Jong-un win?
Actually, apparently Time had. After watching last year’s public online poll get more than just rigged—the programmers also had the first letter of each of the nominees’ names spell out ““—the magazine switched from using Polldaddy to Poptip.
At first glance, the move seemed to solve many of Time’s problems. It required voters to log in to the site with their Twitter or Facebook account first before casting a vote. But I messaged a programmer named Gains whom I had met during last year’s voting ordeal. I wanted to know what he thought of the new polling platform. An hour after sending him a link to Time, he had found a way to crack the system.
“We think we could of found a way, now that we’re investigating it further, in depth,” Gains told me. “I guess the biggest lesson I learned today is that even if it looks ‘un-riggable’ doesn’t mean it is. Just in the hour or so that we’ve been talking, I created a prototype and ultimately ‘beat the system.’” By Monday evening, Gains and his programming partner Marek had decided on the celebrity they wanted to win: singer.
This is how they’re going to make sure she twerks her way to the top. ••• It was about 9:30pm Monday and Gains and Marek were already pounding away at their keyboards.
Coding in C# (Gains) and Ruby (Marek), each of them was working on a script, a piece of software that automated the process of casting votes by working around Twitter and Facebook’s authentication. By plugging a person’s ID number (which is public) into their scripts, the duo discovered a sizeable loophole in Poptip’s service: They could vote on behalf of that person without them knowing. (The following screengrabs of the script in action were provided to the Daily Dot by Marek and Gains.) As the two shared code back in forth on, I was a digital fly on the wall, trying to keep track of everything. Around 10:30pm, the conversation turned to the subject of who they wanted to win.
Gains had suggested and, the two brothers accused of bombing the this spring. Marek suggested Cyrus, the perfect mix of controversy and. Cyrus has spent the last six months as the most,, and celebrity on the planet.
Her transformation from cute Disney TV star to adulthood was solidified in when Cyrus released the music video for “.” In it, Cyrus can be seen twerking, writhing around in a skin-tight bodysuit, and sticking her tongue out. Cyrus followed up her video with a live performance of the song at in which she twerked in an ill-fitting, mouse-eared ensemble and flesh-colored bikini with crooner and a bevy of giant teddy bears.
In, Cyrus dropped her single “” along with a music video featuring her sitting nude atop a, well, wrecking ball. Like “We Can’t Stop,” “Wrecking Ball” was a viral hit, collecting parodies and covers featuring, a, and a. The decision was made: Cyrus.
At about 10:45pm, Cyrus hovered around 15th place, right above the Tsarnaev brothers. At 12:40am, she was in fifth, just half a percentage point behind Texas state Sen., famous for her 13-hour filibuster attempt in June to prevent a vote on a controversial Texas (SB 5) clinics around the state. Sitting above Davis was the duo’s stiffest competition, National Security Agency () whistleblower, the preeminent choice of the 4chan community and the hacktivist collective. “Oh no, I want Miley to win,” Marek said in response to a tweet from for its 1.1 million followers to vote for Snowden. The tweet was punctuated by two different threads on 4chan’s random imageboard /b/ and two on /g/, its technology board, calling for anyone to develop a script to have Snowden win.
This was another suggestion /b/ had on how to get Snowden to the top: “I don’t think /b/ has a chance to make what they want to do a reality,” Gains said. “Whenever, if ever, they figure out how to do what my program does, Miley should be number one, which they’ll have to recover from. This is just another edgy attempt by /b/ to be more infamous. /b/’s losing its touch.” By 1am Gains had worked threading into his script. In the first version of his program, without threading, votes would only be cast one after another. With multiple threads, 10 votes could be cast at the same exact time.
A thread could be described as a “worker.” In other words, if there are 10 threads, there are 10 workers casting votes all at the same time. At 3am today, Cyrus had moved into fourth place behind Sen. Rand Paul of Kentucky. Snowden was in. ••• As was the case in 2009 and 2012, Time editors will ultimately decide who wins, despite what the public poll says.
But that didn’t stop these programmers from having a lasting impact. In April 2009, as a way to pay tribute to Poole and have some fun at the expense of one of the most respected media organizations in the country, 4chan decided to game Time’s annual Time 100 poll. Not only did they push Poole to the top of the list, they also rigged the rest of the poll, spelling out the phrase “Marblecake, also the game” with the first letter from the first name of each contender. “The 21-year-old college student and founder of the online community 4chan.org, whose real name is Christopher Poole, received 16,794,368 votes and an average influence rating of 90 (out of a possible 100) to handily beat the likes of Barack Obama, Vladimir Putin, and Oprah Winfrey,” Time, after awarding Poole the top spot despite /b/’s tomfoolery.
The publicity turned Poole into a mainstream tech celebrity. In 2010 he spoke at the conference, and over the next year he raised $3 million in venture capital to start, a safe-for-work community where users can remix images in exchange for colorful stickers. Last fall, /b/ tried to make polling magic once again.
Time launched its prestigious 2012 poll a year ago today. Egyptian President Mohamed Morsi —with Kim Jong-un in a close second—thanks to a Java script that automated the voting process on. “At the time, it was all about trying to get above Morsi,” script creator _js5 told me then. About two days later, the task was complete. Kim had collected, at a rate of 6,000 every 10 minutes, thanks to about 100 people who all ran the script at once. “With Polldaddy, it wasn’t any hacking, specifically,” _js5 added.
“Polldaddy allowed for 100 vote bursts every 10 minutes. And then it switched to 50 vote bursts when we started overloading their server, which was unintentional.” These 100 people had also spelled “” by voting candidates such as Secretary of State Hillary Clinton and New Jersey Gov. Chris Christie to the top of. While the phrase indirectly references the at North Korea’s prisons, “” was just supposed to be funny and not necessarily related to the penal labor colonies, _js5 said. “There really is nothing too exciting about the meaning, sorry to say,” one anonymous IRC user wrote in an email to the Daily Dot and other media organizations. “We chose it because it was clever, had semi-subtle offensive overtones, and wasn’t as childish as our second choice of KFCBUTTSEX.
Furthermore, if there was any overt justification for why we chose gas chambers, it’s because we wanted to reference Hitler, who’s [sic] gas chamber antics are always offensive to people. His name was mentioned a lot when we were discussing what to spell.” On, President Barack Obama was crowned. But that didn’t stop from calling the race in Kim’s favor. “Dear God the enemies 5.6 million people by ballot boxes from the lord of the most votes by o’clock,” read the, according to a rough translation from.
Voting for this year’s poll closes on Dec. 4 at 11:59pm and the combined winner the reader polls will be announced on Dec. Time’s Person of the Year will be announced Dec. If Cyrus ends up winning this year’s poll, do you think Time will honor her with the cover? Or will they be too busy trying to figure out how to strengthen their voting platform against vote-rigging in time for 2014? Illustration by Jason Reed.