-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS Publishing Workflow with Git, Snapas-hosted images, to the Writeas/WriteFreely CMS #128
Comments
...and five geee, I suppose.... |
Hardware
Hilarious that Tylt is bragging about tree planting already - might as well get it in place ASAP though for when the public realizes your chargers are 40%+ less efficient than just... Plugging the fucking phone in. |
![Title Preview}(https://user-images.githubusercontent.com/43663476/117581148-f96fdf80-b0c0-11eb-8be6-ac9d9666d8b1.png) |
"Using Pandoc on iOS (Sorta) | W. Caleb McDaniel"By W. Caleb McDaniel hacks Posted by W. Caleb McDaniel on May 3, 2013 As I’ve explained before, I now do almost all of my writing—including my academic writing—in plain-text, Markdown files. I then use the incomparable document-conversion tool, Pandoc, to turn these files into HTML, Microsoft Word documents, PDFs, or EPUBs. Even this website is produced with Pandoc. One virtue of this preference for plain-text files is that it enables me to write on my iOS devices. Plain text is mobile. But Pandoc is not, or so I have long assumed. Because Pandoc is a command-line utility, my ability to convert Markdown into Pandoc’s other file formats has so far been tethered to my laptop.1 Enter Docverter, an open-source tool that makes it possible to use Pandoc without having it installed on your machine. To use it, you post But can you use Docverter without having a desktop or laptop computer at all? At first glance, no: the documentation suggests using another command-line Unix utility, Pythonista + Docverter = iPandoc (Sorta)The solution is Pythonista, an inexpensive iOS app that allows you to write and execute Python scripts, including ones that interact with web services like—you guessed it—Docverter. Last weekend I spent a day writing a script that uses You can grab the script, with explanatory comments, as a Gist. Briefly put, the script works like this. I open a text editing app like Nebulous Notes and put some Markdown text on my iOS clipboard. I open Pythonista and run my iMDtoPDF script. A few moments later, a PDF output file appears in my Dropbox.2 This method will help me quite a bit in the following sort of situation: I am away from my laptop, but I need to email a long, footnote-heavy document to someone. Or a student requests a recommendation letter that is due before I can get to my computer, and I need to create a PDF version with letterhead from the plain text version of the letter that I keep under version control. Now I can run this script, go to my iOS Dropbox app, and email the PDF file from there, all without leaving the iPad. In other words, I can use Pandoc on the iPad … sorta. I haven’t yet figured out how to utilize all of Docverter’s options in my script. And unlike Pandoc, Docverter does not use LaTeX to produce PDFs. Instead, it converts Markdown to HTML and then uses a service called Flying Saucer to print that HTML to a PDF. Nonetheless, this method still allows you to control some of the styling of the PDF by using a CSS stylesheet and embedded fonts. For example, here’s the PDF output of this post using the CSS declarations included in my script.3 Extending the ScriptIn the Gist version of this script, I’ve deliberately kept things simple. But the version I’m using has several extended features. For example, the public version automatically gives the output PDF file a generic, time-stamped name. But you can use Pythonista’s console module to prompt yourself for a specific title.
|
"A Machine Learning Workflow for the iPad Pro"**By **** __ 20 minute read __ Published: The iPad is a revolutionary device. I take all my notes with it, read & annotate papers and do most of my conceptual brainstorming on it. But how about Machine Learning applications? In todays post we will review a set of useful tools & venture into the love story of the iPad Pro & the new Raspberry Pi (RPi). Afterwards, you will be empowered to establish your very own “mini”-ML workflow, know the ML-tailored application landscape & get started with setting up a RPi as an iPad-powered USB-C device. More specifically, we will discuss how I integrate a set of useful apps in my daily research routines, how I got started with the iPad & RPi and how one can use the iPad to run larger compute jobs on remote servers. So let’s get started with today’s agenda:
Apps which I use throughout my daily research!The iPad Pro has been one my the best financial investments. It is primarily designed for multi-media creatives who need an intuitive and efficient workflow. This includes artists, creators and media editors. Not necessarily people who would like to program. Only recently, Apple has been pushing towards making the iPad Pro a stand-alone computer replacement. The biggest step towards this is the USB-C port which allows for simultaneous charging and data exchange. In combination with the new iPadOS we can start to dream & experiment. Furthermore, recent updates to apps and new launches introduce a plethora of possibilities for the code savy peepz. Here are some of my favourite ones: Note Taking & Paper Annotation with Notability & ProcreateI use the majority of my “iPad time” reading papers, taking notes at talks or brainstorming sessions for projects. There are many options which allow you to do so. I personally really enjoy Notability. It is very flexible while being minimal in its design. A feature that I greatly appreciate is the ease of cropping text snippets & how you can smoothly include images from presentations/white boards/online search. After being done writing or if you want to share your notes, you can export them to any cloud storage or share them via AirDrop/email. This makes collaborating super easy! I also use Notability for all the visual-ml-notes (check out the repository). Finally, a feature which I am not using enough (but should) is the audio recording & playback of notes. Notability allows you to record while writing. Afterwards, you can simply press play to get a form of video of the creation process of your notes while listening to the audio again. You can “tap” into the note and the audio timeline will automatically jump to the audio that was recording at the time of writing. Pretty neat, right? If I want to be a little more artsy, I like to go with Procreate. Sometimes it is really relaxing to simply loose yourself in some fine details of a drawing (sometimes I wonder whether Sundays were made for “peocreat-inating”). My recent blog thumbnails are illustrated in Procreate. Procreate is a “serious” app for artists (and arts lovers ) and has tons of features to tune colours, drawing styles, canvases & so on. I got to admit - the shear amount of options was initially a little overwhelming. And that’s where the world wide web came to rescue me. There are soo many awesome YouTube tutorials out there. Even if you are not the most talented at drawing (which I am most definitely not) Procreate has a set of tools to support you (line snapping, different layers, etc.). Something I really enjoy is the mirroring option which makes every little doodle appear as a calligraphic master piece (maybe I am exaggerating a little here). Connecting to remote machines with blink.shOften times when I attend conferences, I don’t want to carry my laptop since I know that I won’t be getting serious amounts of focused time to work on projects. But I still might run some jobs or test some hyperparameter intuition. In that case I simply need some way to tunnel into my remote machine so that I can monitor what is going on and start new jobs on demand. And that’s where blink.sh comes in. Blink is a Mosh (mobile shell) application which lets you smoothly Blink is minimal in its design and focuses on the mosh/ssh service. A few things that I am looking forward to being integrated (or maybe haven’t discovered yet) are the following:
Editing and version control with Kodex & WorkingCopyIf I want to code something locally on the iPad, this usually involves 4 main steps:
WorkingCopy allows you to connect your iPad with your GitHub account and provides all the version control functionalities that one may need. Kodex, on the other hand, is a text editor for the iPad which supports linter utilities for almost all programming languages. You can directly edit files from your cloud storage (Dropbox, etc.) or locally on the iPad. Both, Kodex and WorkingCopy, are free of any charge! Connecting to Jupyter Servers with Juno ConnectSo let’s review what we have covered so far: Paper work and artsy stuff, connecting to remote machines & editing/managing code-based projects. What are we missing? Exactly, the favourite application of every data scientist - Jupyter notebooks - and here is how to do Jupyter on the iPad: The Juno collection of apps provides us with two options to setup/connect to Jupyter servers & work with notebooks either locally on the iPad or on remotely:
The user interface and notebook rendering then looks like this: Something that I am missing from Juno and would love to see in the future are functionalities of Jupyter Lab which includes support for system shells as well as other nice extensions. One of my favourite features of Jupyter Lab (compared to plain Jupyter notebook) is the built-in terminal multiplexer which allows you to easily switch between command line and notebook editing. iPad Pro + Raspberry Pi Model 4B =The iPad Pro by itself does not have a full operating system and should also not be thought of as a compute machine . While Apple claims that the 64-bit A12X/A12Z bionic chips are faster than many Windows computers, their performance is optimized for graphics operations such as rendering/4K editing/gaming and not for running Python code. And this is where the Raspberry Pi comes in. The new quad-core RPi model 4 comes in a couple of different variants (1/2/4 GB) RAM - and most importantly with a USB-C connection which can power as well as exchange data simultaneously. It is not bigger than a pack of cigarettes 🚬 & can easily be hooked up to the iPad Pro. So what are the main benefits of this setup?
So how do we make this work? Equipment, equipment - What do we need?!So what are the ingredients I am currently using in my setup? Here is a short list:
The last three are all optional can can smooth out the experience. Steps to setup the Raspberry Pi
Note The correct final instruction should be add The first steps are a lot easier if you have access to an external monitor to check that everything works out as desired. Steps to setup the iPad ProAt this point you are ready to get everything rolling on the iPad:
You should have logged into the RPi for the first time and we are now able to dive deeper. The full RPi-iPad setup looks something like this: Next things to doYou have made it & can now start customising all the features according to your needs! Some of my first steps included the following:
In my experience the RPi does not suck too much power from the iPad. Without any power source, a full iPad charge gives me around 5+ hours of RPi usage (at medium compute and with active fan). This is usually more than enough for me. Something that might come in handy can be a USB-C adapter with two USB-C ports. This way you can charge the iPad while at the same time powering the RPi. Compute, COmPUtE, ComPUTEAt this point we have discussed two main ways how to do scientific computing with the iPad:
And now we have so many more options:
As previously mentioned Juno also lets you connect to a notebook running on your RPi. In order to do so, you simply have to setup Miniconda (with Python >= 3.6) on the RPi and then again run a browser-less notebook process with port forwarding. And you don’t even need any internet connection! Some Tricks of the TradeManaging files with external SSDs,
|
toc: true
|
And a Magic Keyboard is the real kicker, I suppose.
WF Workflow Social
https://mastodon.social/@DavidBlue/106621130332857798
I can’t help it… time to get back to the “Insane Full-Throttle Write.as Publishing IPHONE ONLY Workflow” …workflow… guide. here begins its thread (can’t remember if I’d already started one.) #128
—-
https://mastodon.social/@DavidBlue/106621135526473737
so this take is definitely gonna have to be deleted b/c of my puppy… but GitHub just let me upload the whole fucking thing? cool
this is actually pretty much the gist of the “Development” worth demonstrating - in this case, editing CSS with Kodex, previewing it with @write_as‘s new CSS.horse tool (almost lol,) and Git-enabling all of it with Working Copy. https://user-images.githubusercontent.com/43663476/126570421-a0316032-573f-4507-8fa6-a4e0a8f03d99.MOV
—-
The text was updated successfully, but these errors were encountered: