<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Python on Jackenhack</title><link>https://www.jackenhack.com/tags/python/</link><description>Recent content in Python on Jackenhack</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 12 Jan 2016 00:00:00 +0000</lastBuildDate><atom:link href="https://www.jackenhack.com/tags/python/index.xml" rel="self" type="application/rss+xml"/><item><title>Raspberry Pi NTP Server LCD Status Display</title><link>https://www.jackenhack.com/raspberry-pi-ntp-server-lcd-status-display/</link><pubDate>Tue, 12 Jan 2016 00:00:00 +0000</pubDate><guid>https://www.jackenhack.com/raspberry-pi-ntp-server-lcd-status-display/</guid><description>&lt;p&gt;&lt;img alt="lcd-stability" decoding="async" height="300" loading="lazy" src="https://www.jackenhack.com/raspberry-pi-ntp-server-lcd-status-display/images/lcd-stability-400x300_hu_485afaa2a994ac00.png" width="400"&gt;The last couple of weeks I&amp;rsquo;ve been busy building a Raspberry Pi 2 &lt;a href="https://www.jackenhack.com/raspberry-pi-3-overclocking/"&gt;Raspberry Pi 3&lt;/a&gt; connected to my &lt;a href="https://en.wikipedia.org/wiki/GPS_disciplined_oscillator"&gt;Trimble GPSDO&lt;/a&gt; using the 1 PPS output. The Trimble unit synchronizes with the atomic clocks onboard the GPS satellites, and the precision is fantastic! I bought the GPSDO to get a 10 MHz lab reference for my measure equipment, but after reading an &lt;a href="http://www.wired.com/2007/12/time-hackers/"&gt;article about Time-Nuts&lt;/a&gt;, people obsessed with measuring time as accurately as possible,  and one of my friends showed me pictures of their new &lt;a href="http://www.endruntechnologies.com/stratum1.htm"&gt;Stratum-1 NTP server&lt;/a&gt; rack he helped design, I was hooked.&lt;/p&gt;</description></item><item><title>wpid Added to File Name When Uploading With xmlrpc</title><link>https://www.jackenhack.com/wpid-added-file-uploading-xmlrpc/</link><pubDate>Sun, 08 Feb 2015 00:00:00 +0000</pubDate><guid>https://www.jackenhack.com/wpid-added-file-uploading-xmlrpc/</guid><description>&lt;p&gt;&lt;img alt="Python logo" decoding="async" height="150" loading="lazy" src="https://www.jackenhack.com/wpid-added-file-uploading-xmlrpc/images/python-logo-150x150_hu_10ccd5809ced2e67.jpg" width="150"&gt;I’m working on my script for uploading images directly from the iOS Markdown text editor app &lt;a href="http://omz-software.com/editorial/" title="Editorial for iOS"&gt;Editorial&lt;/a&gt; to Wordpress. The current script uses xmlrpc-Wordpress library, but I’m writing my own so the user doesn’t have to install the extra library just to use my script. When uploading files with &lt;strong&gt;xmlrpclib&lt;/strong&gt;, I got this annoying thing happening. Every time I uploaded an image using &lt;strong&gt;xmlrpclib&lt;/strong&gt; and the function &lt;strong&gt;wp.uploadFile&lt;/strong&gt; the uploaded file got &lt;strong&gt;wpid-&lt;/strong&gt; prepended to the filename of all my uploaded files.&lt;/p&gt;</description></item><item><title>Editorial App Workflow Upload Image to WordPress Media Library Version 2.2</title><link>https://www.jackenhack.com/editorial-app-workflow-upload-image-wordpress-media-library/</link><pubDate>Sat, 31 Jan 2015 00:00:00 +0000</pubDate><guid>https://www.jackenhack.com/editorial-app-workflow-upload-image-wordpress-media-library/</guid><description>&lt;p&gt;&lt;img alt="Editorial iOS app icon" decoding="async" height="1024" loading="lazy" sizes="(min-width: 768px) 720px, 100vw" src="https://www.jackenhack.com/editorial-app-workflow-upload-image-wordpress-media-library/images/editorial-app-icon_hu_2e8c8ae2808969a0.jpg" srcset="https://www.jackenhack.com/editorial-app-workflow-upload-image-wordpress-media-library/images/editorial-app-icon_hu_d59e8266a2ebf565.jpg 360w,/editorial-app-workflow-upload-image-wordpress-media-library/images/editorial-app-icon_hu_f7e134ff9a92b269.jpg 480w,/editorial-app-workflow-upload-image-wordpress-media-library/images/editorial-app-icon_hu_362977c5c188a880.jpg 720w" width="1024"&gt;&lt;a href="https://itunes.apple.com/us/app/editorial/id673907758?mt=8&amp;amp;uo=4&amp;amp;at=11lJWT&amp;amp;ct=Blog"&gt;&lt;img alt="Download on the AppStore" decoding="async" height="200" loading="lazy" sizes="(min-width: 768px) 720px, 100vw" src="https://www.jackenhack.com/editorial-app-workflow-upload-image-wordpress-media-library/images/Download_on_the_App_Store_Badge_US-UK_135x40_0824_hu_e9bd881d9508069.png" srcset="https://www.jackenhack.com/editorial-app-workflow-upload-image-wordpress-media-library/images/Download_on_the_App_Store_Badge_US-UK_135x40_0824_hu_9f896ab9e7102ec7.png 360w,/editorial-app-workflow-upload-image-wordpress-media-library/images/Download_on_the_App_Store_Badge_US-UK_135x40_0824_hu_dc70ee18946631a9.png 480w" width="659"&gt;&lt;/a&gt;I’ve tried a lot of blogging apps for the iPad, but none of them handles images the way I want. Images gets the weird name iOS has assigned to them which is not good for &lt;a href="http://en.wikipedia.org/wiki/Search_engine_optimization"&gt;SEO&lt;/a&gt;. When I upload images to Wordpress, I want them to end up in the Wordpress Media Library and have all the theme defined sizes created automatically. Just like when you upload from the web interface in Wordpress. There’s an added problem when you want your site to support images displayed on a Retina or high DPI device, showing the picture in high resolution using a plugin like &lt;a href="https://wordpress.org/plugins/wp-retina-2x/"&gt;WP Retina x2&lt;/a&gt;. My favourite text editor on iOS is Editorial app, So I made this Workflow so I can do the naming, resizing and uploading of the images directly inside the app from my iPad or iPhone 6 Plus. You can select which of the theme defined image sizes you want to display and also set the image alignment. This workflow works excellent with the &lt;a href="https://wordpress.org/plugins/wp-retina-2x/"&gt;WP Retina x2&lt;/a&gt; plugin, which is the one I use on my site. When everything is done, you have an &lt;a href="http://fletcherpenney.net/multimarkdown/"&gt;MultiMarkdown&lt;/a&gt; referred image link at the cursor position in the text editor, and the image link and information like width, height and alt-text is added to the end of the document. This makes a very convenient way of blogging on the iPad.&lt;/p&gt;</description></item><item><title>Raspberry Pi Car Audio System</title><link>https://www.jackenhack.com/raspberry-pi-car-audio-system/</link><pubDate>Mon, 23 Jun 2014 00:00:00 +0000</pubDate><guid>https://www.jackenhack.com/raspberry-pi-car-audio-system/</guid><description>&lt;p&gt;&lt;img alt="raspberry-pi-car-computer.jpg" decoding="async" height="1425" loading="lazy" sizes="(min-width: 768px) 720px, 100vw" src="https://www.jackenhack.com/raspberry-pi-car-audio-system/images/raspberry-pi-car-computer_hu_d623d2627555ba13.jpg" srcset="https://www.jackenhack.com/raspberry-pi-car-audio-system/images/raspberry-pi-car-computer_hu_becfc7ed4368382a.jpg 360w,/raspberry-pi-car-audio-system/images/raspberry-pi-car-computer_hu_a9da29e733044bc6.jpg 480w,/raspberry-pi-car-audio-system/images/raspberry-pi-car-computer_hu_9b30b44ad28b965.jpg 720w" width="862"&gt;&lt;/p&gt;
&lt;h2 id="my-raspberry-pi-car-audio-player"&gt;My Raspberry Pi Car Audio Player&lt;/h2&gt;
&lt;p&gt;A lot of people are using the excellent Linux microcomputer &lt;a href="http://www.raspberrypi.org/" title="Raspberry Pi"&gt;Raspberry Pi&lt;/a&gt; and &lt;a href="http://www.engineering-diy.blogspot.ro/2013/08/car-pc-projectaugust-2013-update.html" title="Engineering(DIY): Car PC project(August 2013 update)"&gt;install it in their cars&lt;/a&gt;. Usually, they use a color screen that is touch sensitive, being able to play back video and music. But I’m only interested in high-quality audio playback, being able to have all my CDs in lossless &lt;a href="https://xiph.org/flac/" title="FLAC - Free Lossless Audio Codec"&gt;FLAC&lt;/a&gt; format for optimal sound quality. So a 16x2 LCD with some buttons is plenty. I now have a working system (but not yet installed in my car.) here’s a description of how I&amp;rsquo;ve built it. Most of the installations I’ve seen the use of the audio out from the Raspberry Pi, but it’s only 11-bit and sounds like crap. I want to use an external DAC, and you can get that to work in XBMC, but only menu and music output, not films. There are some HDMI to audio converters, but I’ll instead use a quality USB DAC.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://youtu.be/wzmFZlpbBCQ"&gt;http://youtu.be/wzmFZlpbBCQ&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>How To import modules with Pipista into Editorial iOS app</title><link>https://www.jackenhack.com/editorial-app-import-modules-with-pipista/</link><pubDate>Sun, 06 Apr 2014 00:00:00 +0000</pubDate><guid>https://www.jackenhack.com/editorial-app-import-modules-with-pipista/</guid><description>&lt;p&gt;&lt;img alt="1377461573.jpg" decoding="async" height="128" loading="lazy" src="https://www.jackenhack.com/editorial-app-import-modules-with-pipista/images/1377461573-150x128_hu_c155e926571bb72b.jpg" width="150"&gt;&lt;/p&gt;
&lt;h2 id="importing-pipista-modules-in-editorial"&gt;Importing pipista modules in Editorial&lt;/h2&gt;
&lt;p&gt;&lt;img alt="Download on the AppStore" decoding="async" height="200" loading="lazy" sizes="(min-width: 768px) 720px, 100vw" src="https://www.jackenhack.com/editorial-app-import-modules-with-pipista/images/Download_on_the_App_Store_Badge_US-UK_135x40_0824_hu_e9bd881d9508069.png" srcset="https://www.jackenhack.com/editorial-app-import-modules-with-pipista/images/Download_on_the_App_Store_Badge_US-UK_135x40_0824_hu_9f896ab9e7102ec7.png 360w,/editorial-app-import-modules-with-pipista/images/Download_on_the_App_Store_Badge_US-UK_135x40_0824_hu_dc70ee18946631a9.png 480w" width="659"&gt;Lets face it, the &lt;a href="http://omz-software.com/editorial/" title="Editorial for iPad"&gt;Editorial&lt;/a&gt; App is a fantastic text/Markdown editor. It’s incredibly powerful with scripting abilities. But one of the most amazing tool for a power user is the ability to write Python scripts that can do almost anything. There are a lot of modules included with Editorial, but how do you add a library if it’s not included? There is a script for Editorials sister application Pythonista, that makes it easy to add modules, and you can use that for importing libraries to Editorial as well. The script is called &lt;a href="https://gist.github.com/pudquick/4317095" title="Version 2.0 of pipista - Unstable branch :)"&gt;Pipista&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Editorial iPad App Writing</title><link>https://www.jackenhack.com/writing-with-editorial-ipad-app/</link><pubDate>Sat, 14 Sep 2013 00:00:00 +0000</pubDate><guid>https://www.jackenhack.com/writing-with-editorial-ipad-app/</guid><description>&lt;p&gt;&lt;img alt="Editorial iOS app icon" decoding="async" height="150" loading="lazy" src="https://www.jackenhack.com/writing-with-editorial-ipad-app/images/editorial-app-icon-150x150_hu_aeb0577a44e5d3ea.jpg" width="150"&gt;&lt;/p&gt;
&lt;h2 id="editorial-ios-markdown-text-editor"&gt;Editorial iOS Markdown Text Editor&lt;/h2&gt;
&lt;p&gt;&lt;img alt="Download on the AppStore" decoding="async" height="200" loading="lazy" sizes="(min-width: 768px) 720px, 100vw" src="https://www.jackenhack.com/writing-with-editorial-ipad-app/images/Download_on_the_App_Store_Badge_US-UK_135x40_0824_hu_e9bd881d9508069.png" srcset="https://www.jackenhack.com/writing-with-editorial-ipad-app/images/Download_on_the_App_Store_Badge_US-UK_135x40_0824_hu_9f896ab9e7102ec7.png 360w,/writing-with-editorial-ipad-app/images/Download_on_the_App_Store_Badge_US-UK_135x40_0824_hu_dc70ee18946631a9.png 480w" width="659"&gt;So I found a new favorite iPad text editor called &lt;a href="http://omz-software.com/editorial/" title="Editorial for iPad"&gt;Editorial&lt;/a&gt;. After reading &lt;a href="http://www.macstories.net/stories/editorial-for-ipad-review/" title="Reinventing iOS Automation: Editorial Review"&gt;Federico Viticci’s great review of Editorial&lt;/a&gt; on macstories.net I bought the app, because the creator Ole Zorn wrote one of my other favorite apps &lt;a href="https://www.jackenhack.com/scripting-programming-iphone-ipad-python-pythonista-review/" title="Pythonista"&gt;Pythonista&lt;/a&gt;. And Editorial is amazing!&lt;/p&gt;</description></item><item><title>Reinventing iOS Automation: Editorial Review</title><link>https://www.jackenhack.com/reinventing-ios-automation-editorial-review/</link><pubDate>Sun, 25 Aug 2013 00:00:00 +0000</pubDate><guid>https://www.jackenhack.com/reinventing-ios-automation-editorial-review/</guid><description>&lt;p&gt;&lt;img alt="Editorial iOS app icon" decoding="async" height="1024" loading="lazy" sizes="(min-width: 768px) 720px, 100vw" src="https://www.jackenhack.com/reinventing-ios-automation-editorial-review/images/editorial-app-icon_hu_2e8c8ae2808969a0.jpg" srcset="https://www.jackenhack.com/reinventing-ios-automation-editorial-review/images/editorial-app-icon_hu_d59e8266a2ebf565.jpg 360w,/reinventing-ios-automation-editorial-review/images/editorial-app-icon_hu_f7e134ff9a92b269.jpg 480w,/reinventing-ios-automation-editorial-review/images/editorial-app-icon_hu_362977c5c188a880.jpg 720w" width="1024"&gt;&lt;br&gt;
&lt;a href="http://www.macstories.net/stories/editorial-for-ipad-review/"&gt;Reinventing iOS Automation: Editorial Review&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Editorial for iPad, redefines the market of text editors for iOS, and, in many ways, sets a new standard for iOS automation and desktop-class apps. Editorial makes me want to work from my iPad.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Editorial is my new favorite Markdown editor with amazing workflow scripting abilities and a complete Python interpreter from the programmer that made Pythonista. Link to an extensive review of the app and its capabilities.&lt;/p&gt;</description></item><item><title>Blog Post Directly from iOS Safari to Poster App Using Pythonista Script</title><link>https://www.jackenhack.com/blog-post-ios-safari-poster-app-pythonista-script/</link><pubDate>Wed, 13 Mar 2013 00:00:00 +0000</pubDate><guid>https://www.jackenhack.com/blog-post-ios-safari-poster-app-pythonista-script/</guid><description>&lt;p&gt;&lt;img alt="Poster Icon image" decoding="async" height="150" loading="lazy" src="https://www.jackenhack.com/blog-post-ios-safari-poster-app-pythonista-script/images/poster-icon-150x150_hu_f4b5bd475fad195c.jpg" width="150"&gt;I want to be able to share interesting web pages on my Wordpress blog using iOS directly from Safari using a bookmark and a &lt;a href="https://www.jackenhack.com/scripting-programming-iphone-ipad-python-pythonista-review/"&gt;Pythonista&lt;/a&gt; Python script. The script takes the URL of the page, any text you copied and the page title, formats it in &lt;a href="http://daringfireball.net/projects/markdown/"&gt;Markdown&lt;/a&gt; and creates a new post in &lt;a href="http://www.tomwitkin.com/poster/"&gt;Poster App&lt;/a&gt; automatically.&lt;/p&gt;</description></item><item><title>Pythonista Review - Programming iOS with Python for iPad iPhone</title><link>https://www.jackenhack.com/scripting-programming-iphone-ipad-python-pythonista-review/</link><pubDate>Wed, 06 Feb 2013 00:00:00 +0000</pubDate><guid>https://www.jackenhack.com/scripting-programming-iphone-ipad-python-pythonista-review/</guid><description>&lt;p&gt;&lt;img alt="Pythonista icon" decoding="async" height="208" loading="lazy" src="https://www.jackenhack.com/scripting-programming-iphone-ipad-python-pythonista-review/images/pythonista_icon_hu_3b3e1ac7e5eb4576.jpg" width="208"&gt;&lt;/p&gt;
&lt;h2 id="pythonista-finally-programming-workflow-automation-for-ios"&gt;Pythonista, finally programming workflow automation for iOS?&lt;/h2&gt;
&lt;p&gt;I’m doing most of my writing on my iPad or occasionally on my iPhone, and I write everything in &lt;a href="http://daringfireball.net/projects/markdown/"&gt;Markdown&lt;/a&gt;. There are some great scripts in my current favorite language &lt;strong&gt;Python&lt;/strong&gt; out there for doing &lt;strong&gt;Markdown&lt;/strong&gt; conversions, image manipulations, etc., but unfortunately, Apple rules regarding programming apps on &lt;strong&gt;iOS&lt;/strong&gt; devices are pretty stringent. But an app for programming Python on iOS called Pythonista have some smart ways of getting around some of Apple&amp;rsquo;s restrictions. And one of the wonderful things you can do is home screen shortcuts, making your scripts available directly from the home screen of your iOS device. All you have to do to &lt;a href="http://omz-software.com/pythonista/shortcut/"&gt;create a &lt;strong&gt;Pythonista&lt;/strong&gt; home screen shortcut&lt;/a&gt; is to go to a web page and enter the script name and optional arguments. After that, add the page home-screen with Safari’s bookmarks button. Another way of starting your scripts is directly as bookmarks in Safari or another web browser. I found the app from this &lt;a href="http://www.macstories.net/stories/automating-ios-how-pythonista-changed-my-workflow/"&gt;article about making life easier by scripting with &lt;strong&gt;Pythonista&lt;/strong&gt;&lt;/a&gt;, a great read of all the functions available in the app.&lt;/p&gt;
&lt;p&gt;Because they added a Python library for managing the clipboard, you can copy pictures or text to it, then start your script that reads from the clipboard and then put the new modified text/picture back to the clipboard, ready for pasting into any app. Very handy!&lt;/p&gt;</description></item><item><title>Yes, please apple, kill AppleScript</title><link>https://www.jackenhack.com/yes-please-apple-kill-applescript/</link><pubDate>Tue, 03 Jun 2008 00:00:00 +0000</pubDate><guid>https://www.jackenhack.com/yes-please-apple-kill-applescript/</guid><description>&lt;p&gt;Everytime (well, last night actually) when I need to do something with Applescript I shudder with horror. The syntax is actually something you forget all the time. There must be better alternatives for Apple to use as a scripting language. &lt;a href="http://www.red-sweater.com/blog/502/apples-script"&gt;I agree with this article&lt;/a&gt;, but Python or Ruby would be a better alternative I think.&lt;/p&gt;</description></item></channel></rss>