Weird Pip / Distutils / Config.py Error of the Day: distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch: now “10.4” but “10.7” during configurePosted: February 1, 2012
Should you see:
"distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.4" but "10.7" during configure"
the problem is relfected in
Also noted at gimmebar, where a simple solution is given:
At last night’s PyMNtos, talked about using Fabric for fun and profit: https://gist.github.com/1206734 .
- command/decorator for ‘confirm on first invocation
- hows to generator ‘roles’ on the fly, using a mappable
- showed some more realistic commands from Flask-Tool
In July 2011, IPython released version 0.11, which changes/ breaks the embedded shell api.
I use this bash alias to get it work right under both versions (0.11 first, then 0.10):
alias ipython='python -c "from IPython import embed; embed()" 2>/dev/null || python -c "import IPython; IPython.Shell.IPShell().mainloop()"'
Recently, people have been asking me how I created my resume. You already read about my princicples of resume design in Part 1, so let’s get on to building it!
For the actual document construction, you have lots of choices:
- InDesign: Proprietary, no ‘scripting’, anything is possible
- Google Docs: Look great! For example, look at: this resume, (made using “Create New>From Template”, then searching for Resume).
- LaTeX: Painful on OSX, very good rendering engine, can be fussy.
- Python Restructured Text (Docutils).
What Rocks About Restructured Text
- Simple markup syntax.
- Full power of css.
- Source control (i.e., they are plain text, and can be used to construct documents).
rst2html.py --link-stylesheet --no-doc-title --stylesheet style.css resume.txt > resume.html
Nits and Known Problems (or Why Not To Use RST)
- css isn’t perfect, and is hard to get right.
- No hyphenation / layout (which InDesign and LaTeX get right).
- Need a ‘smaller’ pdf (for CodeEval.com, for example)? Use:
Preview > Save as... > Quart Filter | Reduce File Size
- Webkit does poorly with the page and other ‘css -> print’ media formatting directives.
- position: fixed is supposed to print on every page (which can be exploited to make headers), but this doesn’t really seem to work on either Safari or Chrome.
- the @page directives in http://www.alistapart.com/articles/boom don’t seem to work in Safari.
- Automating the makeit bits is a little thin/hard/impossible. Maybe I just don’t understand AppleScript, osascript, and Automator, but getting a workflow of ‘open it in Safari, print to PDF, Preview though Quartz Filter’ is beyond me.
- Chrome issue: using ‘Save as PDF’ on OSX from Chrome doesn’t link images (at all). Save the following to a file, and the resulting pdf won’t link. This works fine in Safari.
<a href="http://google.com"> <img src="http://pystar.org/_static/pystar_flaming_160_150px.png"> </a>
- Chrome: ‘https’ links don’t seem to show up in Save as PDF
- Chrome: much fussier on borders, made extra (blank) pages.
(Please educate me on any of these, if I have them wrong!)
Introducing rst2resume – Resumes using Restructured Text (rst)
- Install Python, understand how to use the cli. On OSX, this is built in.
- git clone firstname.lastname@example.org:gregglind/rst2resume.git
- pip install docutils
- copy files from the example directory, season to taste
- edit resume.html as you see fit. Main things:
- add .. class:: pagebreak before sections that need a pdf page break
- add/remove extra classes if you need more styles
- add/remove styles in style.css as you like
- On OSX, I use the makeit script. Look at it if you want to see the actual commands. They should be installed by default.
The Power of a Good Resume
In hiring for Renesys and PPNA, I have read hundreds of resumes. Few sell their candidates very well. Compelling and well-designed resumes have rescued candidates from the trash heap, and I have probably missed good candidates because I couldn’t see their greatness on paper. Presentation matters.
Remember, resumes are your advertisement for yourself! It can be quite hard to get into the mindset of ‘selling yourself’, especially for modest and shy people (including me). ‘Selling’ sounds dirty, but selling well means respecting your client’s needs and giving them what they want (an awesome new employee!).
Let’s move beyond the obvious failure points (typos, lies, lack of actual qualifications) to some simple tips to improve the power and impact of your resume.
For the Applicant
Writing the resume forces the applicant to choose a story. Deciding what story to tell guides what experiences and skills to include in the rest of the document.
- Where are you coming from? What are your strengths and weakenesses?
- Where do you want to be in two years? Management? Implementing? Running the shop? School? Giving a TED talk? Traveling South America? Build to reach that goal.
- Are you ‘punching above your weight’, or applying for jobs you are actually (gasp!) qualified for?
- When people read your resume, does your ‘evidence’ support your goal? Ask friends what they would look for in hiring for a particular position, and ‘patch over’ the parts that you are missing. Iterations and drafts here can work wonders!
For the Reader
- Make it easy for them to sell you internally.
- Make it easy for people to be part of your success story.
- Show how you can help their company / solve their problems.
- Entertain the reader (or at least don’t stress them out)
- Make it easy to find information.
- Make it easy to see if you are fit or not (hard!).
Resume designs should keep the document’s purpose in mind. With a few small steps, you can make your resume look designed. To follow along at home, open my annotated resume. (Since I am giving advice, I had better be willing to take it and there are plenty of things to improve in mine!)
12 Simple Ideas for Better Resumes
- Stop worrying about page length. Seriously, people will read them on the screen. If you make the first page awesome, they will read more. Make sure you have enough bait in the first page to pull people in!
- Big margins give air and room for the design to breathe. Lines should have 65-70 characters for maximum readability.
- Increasing line height gives some vertical rhythm to the page
- Nice fonts look good. Helvetica is classic, and free on OSX, but choose your own and season to taste. No more than two (one sans, one serif), and keep the number of color/size/font-face combinations small.
- Alignment matters. Think about gridlines and guidelines.
- Stay on message. Remember your goal: to advertise yourself. Any text that doesn’t support that goal should be trimmed.
- Write like it’s a press release. Summary sections ‘front-load’ the interesting material, and give the reader an easy way to sell you to other people inside the company.
- Empahasize the important infomation first. “MS (Rocket Science). Harvard. 1990.” not “1990. Cambridge, MA. Harvard. Rocket Science, MS.”
- No bullets. They are wasted ink, most of the time.
- Use color. Bold and other typographic choices can sometimes be replaced by color changes. Remember that we are visual people.
- Remove “references available on request”. Of course they are!
- Be bold. Bold is succinct. Trim unnecessary words, especially weasel words and ‘liberal arts hedging’. Save your caveats and hesitations for in-person.
4 Other Ideas about Resumes That Might Be Terrible
- Images speak volumes. In the United States, there are legal issues around including images of you on a resume. That doesn’t mean that you can’t link to plots you have made, buildings you have designed, project logos, or other portfolio work. My ‘links’ section retells my story in image form. (I think this is my own creation. I have never seen this in another resume, so if there is prior art, let me know!)
- Passing the HR buzzword filter is hard and tedious, so move all that stuff to the end.
- De-empahasize dates. Ageism exists, especially in tech.
- Move contact info (including possibly name!) to header or footer. Blind the resume to any bias-inducing information (name, apparent gender, etc.).
- Keep a text document with all of your scraps to get over the procrastination and inertia of starting.
- After you finish a draft start over from scratch, and see if you do better the second time. All iteractions are selections from the distribution of the ‘ideal resume’, and ‘averaging them out’ can get the highlights of both.
- Leave appropriate time. Like any document, resumes take time, and doing them in a panic won’t have good results.
Read more about how I created this resume (and the trade-offs I made) in Part 2 at https://writeonly.wordpress.com/2011/08/10/building-better-resumes-using-python-and-some-design/
rst2resume is located at https://github.com/gregglind/rst2resume/
As a Boxing Day present to myself, I have released version 0.1 of Duck, a ‘simple data’ and JSON verifier. Extending the metaphor of duck typing, I often find it useful to see if a ‘simple data’ structure (one made of dicts, lists, ints, floats, strings, booleans and the like) is ‘close enough’ to what I need to be useful.
- checking json (using duck.jsonduck)
- simple guards on kwargs, or particular function arguments
Project is at: https://github.com/gregglind/duck
I could also use help with it, since I have done a public release of anything packaged in a long time! I could use advice on:
- pypi / pip setup?
- where the code should *really* live
- integrating test stuff into setup.py
Look and Feel:
- does what I am doing even make sense?
- is it *too magical*
Starting at about 7:30 (CDT) tonight, Comcast DNS services went down for my Business class internet service in Minneapolis.
For others who are affected:
Change your dns servers to another DNS (this should be under your wireless settings). An easy one to use (and remember!) is the Google DNS: 18.104.22.168 or 22.214.171.124.
See further: Mediate