Monday, January 30, 2023
Thursday, January 26, 2023
Monday, January 23, 2023
How To Code & Use Python On An iPad
https://davidamos.dev/5-ways-to-use-python-on-an-ipad/
"* a-Shell (Free): A full-featured Unix terminal with Python and many other tools. https://holzschu.github.io/a-Shell_iOS/
* Carnets (Free): A local Jupyter client with Python, NumPy, pandas, and other stats and data science packages. https://holzschu.github.io/Carnets_Jupyter/
* Juno ($15): A unique, premium Jupyter client that also includes Python and many scientific and data-related packages. https://juno.sh/
* Juno Connect ($10): A beautiful Jupyter client for connecting to remote servers. https://juno.sh/junoconnect/
* Codeanywhere Cloud IDE ($6/mo, $86+ /2 years): Code on all of your devices with a modern VS Code-inspired IDE (it even runs most of the marketplace extensions!). You can even share your environment live with teammates, with Google Docs-like collaboration tools. https://codeanywhere.com/?ref=davidamos
...
Tip: If you use Apple's Magic Keyboard for iPad, then you don't have a physical Esc key. This makes working in vim painful until you figure out that Cmd + . works like Esc. "
A guide to writing code on an iPad: https://coder.com/blog/a-guide-to-writing-code-on-an-ipad
"There are two possibilities for writing code with an iPad. You can elect to use a native iOS app or use the iPad as a thin client to connect to an IDE running on another machine or server."
"... there are a ton of code editors in the iOS app store, many of them fairly mediocre. Here are a few of the best and most popular ones.
Textastic ($9.99) -
Textastic is probably the most popular code editor for iOS, and for good reasons. It supports syntax highlighting of more than 80 programming and markup languages. Its interface is snappy and uses the native iOS framework Core Text. You can access files via FTP, SFTP and WebDAV or from Dropbox or Google Drive. It also integrates with the iOS Git client Working Copy (more below), allowing you to access projects on GitHub, GitLab, and other repositories. It has an SSH terminal built-in to let you connect to your remote servers.
Koder ($5.99) -
Like Textastic, Koder has been around for over a decade. Its feature set is very similar to Textastic as well, with syntax highlighting, support for FTP, SFTP, WebDAV, Dropbox, and Google Drive file access, and integration with Working Copy for Git repositories.
Pythonista -
While Textastic and Koder take the Swiss army knife approach to supported languages, Pythonista, as you might guess from the name, focuses solely upon Python. ...
Pythonista provides a full-featured editor, includes some popular libraries like NumPy and MatPlotLib, allows you to run your scripts directly on your device, and has an integrated debugger.
One of the best things about Pythonista is its integration with iOS. Your scripts can access data from the clipboard, your contacts, reminders, and photos, as well as your device's motion sensors and geo-location data. It also supports the split-screen feature available on iPad Air2 and newer iPad Pros.
However, you are limited to using either Python 2.7 or 3.5. Additional libraries can also be a bit of a pain to install at times.
Working Copy -
If you are going to use your iPad and a native editor or IDE for anything more than playing around, you are going to need to install Working Copy so that you can access Git repositories. Working Copy is the standard Git client for iOS. The free version allows you to clone repositories, but if you want to push your commits you'll need to purchase the paid version."
"Using a cloud-based IDE for writing code on an Ipad:
Cloud-based IDEs offer the developer an experience much more similar to working on their local machine. If you use your iPad as a highly portable client to access your cloud-based development environments then you can use fully-featured IDEs and skip the workarounds needed when using native iOS apps.
code-server -
Thousands of developers use code-server every day to run VS Code on any machine and access it through the browser. It's an open source project maintained by the developers of Coder (more specifically about Coder later). Depending upon your needs, you can install it on an old machine you have lying around or on a beefy VM. I have it running on an older Mac Mini in my home lab, and many others have installed it on a Raspberry Pi or on a low-cost (or even free) platform like Railway (https://coder.com/videos/how-to-code-on-an-ipad-using-code-server-and-railway).
Once it is installed you can use your iPad (or any other machine) to connect and work just as if you were running VS Code locally. There's even a page in the docs specifically for accessing your code-server installation using an iPad (https://coder.com/docs/code-server/latest/ipad).
A really handy feature of code-server is that if you start it with the --link command you'll get TLS, authentication, and a dedicated URL for accessing your IDE out of the box — no having to mess with Let's Encrypt certificates.
7 Best Python IDEs for iPad and iPhone in 2023 (Free) - If you are a Python enthusiast and wish to code Python on iOS or iPadOS while you are out and about, it is now possible with these 7 free IDEs. https://ninja-ide.org/best-python-ide-for-ipad-iphone/
" Contents:
* Pyto – Overall Best Python IDE for iPhone
* Juno – Free Python IDE for iPad
* Libterm – Free Python code editor and shell for iOS
* Git2Go – Lightweight app to write Python code
* Pythoni-run – Python IDE app for beginners
* Carnets – Best App to use Python on iPad
* Juno Connect – Python via Notebooks on iPhone
* Python IDE for iOS and iPadOS FAQs
+ Is the Python IDE for iPad different then iOS?
+ Can you code Python from your iPad or iPhone?
+ Is it safe to code Python from your iPhone?"
How to use Python on iPad - Learn how to use an iPad to create Python scripts:
https://towardsdatascience.com/how-to-use-python-on-ipad-9a9bd97c40
"...the best way that I have found so far to use Python on an iPad is through Google Colab. It is a free tool available to everyone having a Gmail/Google account."
Pyto - Python 3 - Coding Python Scripts: https://apps.apple.com/us/app/pyto-python-3/id1436650069
"Pyto is a Python 3.10 IDE for iPhone and iPad. Run code directly on your device and offline. You can run scripts from Shortcuts and code your own home screen widgets."
The 2021 guide to coding on an iPad Pro: https://medium.com/@ow/the-2021-guide-to-coding-on-an-ipad-pro-5428d062c5ff
"While you still can't download my favorite code editor, Visual Studio Code, directly to the iPad, Microsoft has made the next best thing available: GitHub Codespaces.
Codespaces is a fully cloud-based version of the Visual Studio Code you're likely already familiar with, complete with virtual servers, so you can actually build and test your code — without needing to jump through hoops. And, best of all, it's completely free (at least for individual accounts, for now)."
My top Python IDEs for iPad: https://blog.devgenius.io/my-top-python-ides-for-ipad-3f777023155c
"Juno: Juno is a clean, powerful and fully supported iOS application for displaying and editing .ipynb files (Jupyter Notebooks) right from the comfort of your iPad. Currently, it has support for many popular data science libraries such as NumPy, MatPlotLib, Seaborn, and Pandas, as well as upcoming support for Scikit Learn and Tensorflow. It boasts a clean and easy to use UI with full keyboard shortcut support for the iPad Pro's magic keyboard, as well as all the functionality that you would expect to receive from any ordinary Jupyter notebook platform.
...
Carnets: Much like Juno, Carnets supports many of your favourite libraries, and supports external library extensions. It also sports a similar user interface style to the classic browser-based Jupyter, which may be more appealing to some users. Since this version is free however, it lacks some of the bells and whistles that Juno has to offer, for example:
External keyboard shortcuts are severely limited, for example there are no shortcuts for deleting cells or undoing actions.
External package support for Carnets is much more limited than that of Juno – packages can be installed, but are not always guaranteed to work.
The user interface is not properly optimised for use on an iPad, and can be a pain to use.
Whilst this does not put Carnets in a particularly good light, the application does have a couple of features up its sleeve that Juno does not have to offer, such as direct access to documentation through the task bar, widget support and finally the ability to save and revert to custom checkpoints. These are just the most important features, and there are likely to be more useful little quirks within the application, so I encourage you to try it out for yourself.
...
Pythonista: When I first started looking for an IDE to use on my iPad, I noticed that there were a lot of paid ones which were practically the same as the default Python IDE for desktop, so I thought to myself – "this isn't worth it, it'll only be more stressful". But then I came across Pythonista, and it was anything but!
Pythonista is a fantastic tool for writing and debugging Python code from the convenience of your iPad or iPhone. It includes a simple user interface with plenty of custom themes to choose from, access to python files from any location (including Dropbox), and the ability to have multiple python scripts open at once. Its automatic code completion paired with offline access to Python documentation makes writing within the IDE an absolute joy.
But aside from the glamorous themes and pages of built in documentation, Pythonista comes with a plethora of other features to justify its £9.99 price tag. Some of these features include, but are not limited to:
The ability to run your code using either Python 2.7 or 3.6.
The ability to run graphical programs inside the compiler using hardware accelerated rendering modules such as Python's built in "scene" module.
The ability to plot graphs and save them as images using MatPlotLib.
Access to iOS' built in "Shortcuts" app allowing users to place custom written programs on the users Home Screen.
Extensive keyboard support for the dedicated users like myself.
A unique UI editor for the aspirational designers looking to get started on iOS.
...
Pyto: Perhaps it's no coincidence that Pyto is the top rated free Python IDE on the App Store, as it is very close in comparison to Pythonista. Not only is it a fantastic free alternative to Pythonista, it also runs native Python 3.8, as opposed to the centuries old Python 3.7…
Although it doesn't include offline documentation, it does grant users access to multiple windows at once, which is a particularly compelling feature for users who have come from VS Code on the desktop. Not only that, it also features support for modules such as Sklearn, which none of the aforementioned IDEs support. If that's not enough, you also have the ability to 'pip install' other Pypi modules.
...
Juno Connect: Before we go into the specifics, I should indeed confess that Juno Connect DOES NOT run natively on your iOS device. It is simply an IDE which allows you to connect to a service running Jupyter Notebooks. This could be your desktop computer at home, a Microsoft Azure server, or perhaps a private external server that you're collaborating on.
With all that being said, Juno Connect DOES however grant you access to a familiar Jupyter Notebook interface, allowing the user to have multiple notebooks running at once. This does come as a relief after using Juno for a prolonged amount of time, since that IDE completely shuts down the notebook that you're working in every time you want to open another one, and there's no option to have multiple windows open at once.
Another huge relief is that since you are running your notebook from a server within this IDE, you have access to any Python library or extension (as long as your computer actually runs it). ..."
Download Python for Other Platforms: https://www.python.org/download/other/
"Pythonista (http://omz-software.com/pythonista/index.html) is a complete development environment for writing Python scripts including third-party libraries and system integration on your iPad or iPhone.
Pyto (https://pyto.app/) also provides a complete development environment for running Python 3 including many third-party libraries and system integration on an iPad or iPhone."
The 5 Best Coding Apps for iOS to Code on the Move: https://www.maketecheasier.com/coding-apps-for-ios/
"Swift Playgrounds (Free) https://apps.apple.com/us/app/swift-playgrounds/id908519492
... This app started out as Apple's initiative to make learning Swift fun, and it grew over the years. Today, you'll find a whole range of lessons ...
The app also gives you a blank canvas for your coding, where you can practice, inspect your code, and even code something from scratch. You can easily preview your app next to your code editor, which is something other coding apps simply can't do. It also integrates with iPadOS frameworks and allows you to submit your app to Apple's App Store."
"Koder Code Editor (Free) https://apps.apple.com/us/app/koder-code-editor/id1447489375
Koder is a fully-baked development environment built specifically for iOS and iPadOS with support for over 80 programming languages, syntax highlighting, and auto-complete, making this app incredibly powerful. If we dare to say it, Koder seems like a bulletproof option ..."
"Pythonista 3 ($9.99) https://apps.apple.com/us/app/pythonista-3/id1085978097
For the Python coders out there, Pythonista 3 is a complete Python editor for coding on your iPad or iPhone. While Python developers would be familiar with the standard libraries provided, Pythonista's benefits include the ability to interact with native iOS features, like location data, contacts, reminders, photos, and more."
"Buffer Code Editor ($9.99) https://apps.apple.com/us/app/buffer-editor-code-editor/id502633252
Like other coding apps for iOS, Buffer Editor provides a native and purposely-built development environment. We're sure that pretty much all your needs as a developer will be met by this app. That starts with Buffer's highly customizable interface, letting you switch between a bunch of themes easily. On top of that, the app is highly optimized for iPhones and iPads, supporting various multitasking operations."
10 Useful Python One-Liners You Must Know: https://www.maketecheasier.com/useful-python-one-liners/
Sunday, January 22, 2023
Raspberry Pi Touchscreen Internet Monitor
https://www.instructables.com/The-Internet-Monitor/
"It's important that you power the Raspberry Pi through the standard USB power connector on the Pi. Don't attempt to power the Pi through any of the GPIO pins - doing so will bypass the Pi's voltage regulator and could harm the Pi."
"The software for The Internet Monitor is written in Python 3. Software and other required files are stored on github in the following library: https://github.com/bartstar/Internet-Monitor.git"
" I found it easier to SSH (using PuTTY) into the Pi from my laptop to access the files and enter commands.
Be sure to turn off WiFi in the configuration menu. Data rates through WiFi will be significantly reduced from your true download speeds. The Internet Monitor should be directly connected to your router with an internet cable."
"A log file is written to a file in /home/pi. The log file name is changed daily as "imon-ddmm.log" where dd is the day of the month and mm is the month of the year as a number (01-12). If the program is restarted more than once in a day, new log entries will be appended to the current log file. It is recommended that log files be deleted at least monthly ..."
Springfield Armory Prodigy Double-Stack 9mm 1911s: Review
https://www.handgunsmag.com/editorial/prodigy-ds-1911s/467290
Factory site:
https://www.springfield-armory.com/1911-ds-series-handguns/1911-ds-prodigy-handguns/
Saturday, January 21, 2023
Wednesday, January 18, 2023
Saturday, January 14, 2023
Build a machine to crush cans
https://fb.watch/i30-0JPhPC/?mibextid=cr9u03
Wednesday, January 11, 2023
MySQL Code Generator & more
"... a Free, web based, powerful tool to increase web development productivity and to cut down time that you spend on writing MySQL Queries/Statements of all nature, regardless of the platform you choose."
SQLMaestro - PHP Generator for MySQL: https://www.sqlmaestro.com/products/mysql/phpgenerator
"PHP Generator for MySQL allows you to create applications that look fine on any device from a mobile phone to an extralarge desktop.
... easy-to-use data input forms with wide spectrum of controls.
... allows you to filter, sort, compare, and partition data according to your needs.
... charts, exporting, & printing"
Thye have several other products for MySql at the same site.
Create table - Online SQL Generator: https://wtools.io/generate-sql-create-table
"Form for generating SQL query for MySQL"
Smart Form Maker: https://mysqlreports.com/mysql-reporting-tools/php-mysql-form-generator/
"... easy to use tool for building AJAX forms from scratch to manage the records of your MYSQL database with a few mouse clicks -
Easy to use wizard-style interface.
Generate and manage an unlimited number of dynamic forms from your MySQL database
Extensive form types:
Columnar forms (standard forms).
Editable grid (help you process multiple records at once).
justified forms.
Mobile forms.
Master details form(sub-forms)."
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Filemaker to Mysql
http://stackoverflow.com/questions/7056022/ddg#7056211
The simplest way is to export data from FileMaker into some common format. To do this you need to open the file in FileMaker and for each table you need go to the layout associated with the table and use the menu to show all records and export.
Make sure to only export data fields (Text, Number, Date, Time, and Timestamp), because it's typical for FileMaker to have lots of calculated fields (Calculation and Summary). (To do this first go to File - Define Database, then to some table, sort files by type, and note the last data field.
This won't export container fields, but most apps don't store such data. It's still possible to export them too but it would require a custom script.
The next option is to use ODBC. It's 'next' because it's less convenient and usually slower.
If you don't have a copy of FileMaker, you can download a 45-day trial from their site; it's fully functional.
Tuesday, January 10, 2023
Use Your Apple Watch to Retrace Your Steps
Stuck in a place with no network? Use Backtrack to return to familiar territory.
Sunday, January 8, 2023
Wednesday, January 4, 2023
Keto Granola recipes
Common Ingredients: | |||||||||||||
|
Keto Granola Recipes: https://www.thedietchefs.com/keto-granola-recipe/
The crunch from the nuts and seeds
Some added texture from the shredded coconut
The perfect amount of sweetness – without the sugar
And of course, just 3.5g net carbs per half cup
Ingredients:
Low carb nuts, like almonds, hazelnuts, and pecans …
To amp up the flavor of this low carb granola, include some unsweetened shredded coconut and just a hint of vanilla extract.
Sweeten up the granola with some confectioner's swerve – sugar free keto sweetener.
Add a good amount of low carb peanut butter for more delicious nutty flavor - or sub in any nut or seed butter that you like! Keep an eye on the carb count on those nut butters.
Use a couple of egg whites to act as a binder for this recipe.
1 Cup (170g) Raw Almonds
1 Cup (125g) Raw Pecans or Walnuts
1 Cup (150g) Raw Hazelnuts
1 Cup (96g) Unsweetened Shredded Coconut
½ Cup (60g) Pumpkin Seeds
½ Cup (65g) Sunflower Seeds
⅓ Cup (45g) Sesame Seeds
⅓ Cup (55g) Chia Seeds
Heaping ½ Cup (80g) Confectioners Swerve (https://www.healthline.com/nutrition/swerve-sweetener#ingredients)? .... *Use (100g) if you like your granola really sweet. Monk Fruit?
Just less than ½ Cup (110g) NO SUGAR Peanut Butter
2 (70g) Egg Whites
1 Tsp. (5g) Pure Vanilla Extract
Pinch of Salt
***Optional: ½ tablespoon Ground Cinnamon
Keto Granola - Crunchy keto granola that doesn't lack on flavor: https://www.ketofocus.com/recipes/keto-granola/
Our low carb granola recipe uses five main ingredients – nuts, seeds, cinnamon, sugar-free sweeteners, and egg whites.
Macadamia nuts: Rich in Vitamin B1 and manganese, Macadamia nuts are antioxidants that promote brain health and reduces risks of diabetes and hunger cravings.
Pecans: A low carb source of ellagic acid and beta-carotene that potentially reduces free radical damage, risk of diabetes, and chances of high cholesterol levels.
Almonds: These are fiber rich and promote healthy digestion.
Pumpkin seeds: High source of fiber, minerals, and healthy fats.
Sunflower seeds: Replete with Vitamin B1, essential fatty acids, and magnesium, Sunflower seeds are fuel for energy, aid weight loss, boost heart health, and prove great for detoxification.
Chia seeds: Rich in calcium and heart-healthy omega-3 fatty acids. Chia seeds can detox and help with weight loss.
Hemp hearts? Technically a nut, Hemp hearts provide omega-3, omega-6, high amounts of Vitamin E, and plant-based protein.
Sugar free sweeteners: These sweeteners add flavor and make the keto granola sugar-free. Look for brands that measure cup for cup with sugar and have monk fruit, erythritol, allulose or stevia as sweeteners.
Cinnamon: Balances the sweetness of the granola cereal with its earthy flavor. It also acts as an antioxidant with prebiotic properties that promote a healthy gut.
Nutmeg: Adds flavor
1 cup chopped macadamia nuts
1/2 cup pecan pieces (chopped pecans)
1/2 cup almond slices
1/4 cup pumpkin seeds
2 tablespoons sunflower seeds
2 tablespoons chia seeds
2 tablespoons hemp hearts?
2 tablespoons granulated sugar-free sweetener
2 tablespoons sugar free brown sweetener
1/2 teaspoon cinnamon
1/4 teaspoon nutmeg
pinch of salt
2 egg whites
Keto Granola: https://www.tasteofhome.com/recipes/keto-granola/
Ingredients:
1/2 cup coarsely chopped walnuts, toasted
1/2 cup coarsely chopped pecans, toasted
1/2 cup unsweetened shredded coconut
1/2 cup pepitas
3 tablespoons coconut oil, melted
2 to 3 teaspoons granulated stevia sugar substitute
Keto Granola Cereal: https://www.ruled.me/keto-granola-cereal/
1 cup almonds
1/2 cup unsweetened shredded coconut
1 cup pecans
1/3 cup pumpkin seeds
1/3 cup sunflower seeds
6 tablespoon erythritol
1/2 cup golden flaxseed meal
1/2 teaspoon cinnamon
1/2 teaspoon salt
1 large egg white
1/4 cup butter, melted
1 teaspoon vanilla extract
* If you're using salted nuts, you can omit the salt from the recipe.
This is one of the best low carb granola recipes simply because of how easy it is to adapt the flavor and ingredients to your preference. For example, here are few of the most popular keto cereal flavors you can make:
Gingerbread Keto Granola Cereal — Add 1/2 teaspoon ground ginger, 1/4 teaspoon ground cloves, and 1-2 pinches of ground nutmeg with the ground cinnamon.
Pumpkin Pie Flavor — Add the gingerbread spices along with 2 tablespoons of pure, sugar-free pumpkin puree and a 1/4 teaspoon of ground allspice.
Chocolate Peanut Butter Flavor — Mix in 1/4 cup of natural peanut butter and sugar-free dark chocolate chunks, chips, or cocoa nibs.
Maple Flavor — Replace the butter with our keto maple syrup.
Crunchy Sea Salt Caramel Flavor — This will require you to use pork rinds as your cereal base. Follow this link to learn how to make this unique keto cereal.
If you have a nut allergy, simply replace the nuts with extra seeds and coconut flakes. To get you started, give this nut-free granola base a try:
1/2 cup pumpkin seeds
1/2 cup sunflower seeds
1/4 cup chia seeds
½ cup of unsweetened shredded coconut
½ cup of unsweetened coconut flakes (for larger morsels with each spoonful)
Keep your flavoring and binding ingredients the same as you would for the nut-based granola.
5-Minute Skillet Keto Granola – Copycat Kiss My Keto recipe: https://mycrashtestlife.com/recipe/keto-granola-copycat-kiss-my-keto/
2 tbsp tapioca fiber syrup (or use sugar-free maple syrup such as Lakanto or omit completely for crunchier granola)
2 tbsp coconut oil (or butter or palm oil)
1 tsp vanilla extract
¼– ⅓ cup allulose (or other sweetener)
2 cups dried coconut chips
½ cup sliced almonds
¼ cup pumpkin seeds
¼ cup sunflower seeds
¼ cup chopped pecans
¼ tsp salt
The Best Keto Granola Recipe – It's Crunchy & Sweet! https://hip2keto.com/recipes/keto-granola/
Ingredients:
1/2 cup chopped walnuts
1/2 cup chopped pecans
1/2 cup chopped almond slices
1/2 cup hemp hearts
1/2 chopped cashews
2 tablespoons melted butter
2 teaspoons cinnamon
1 tablespoon keto maple syrup
1 tablespoon vanilla extract
1 tablespoon keto brown sweetener
Low Carb Keto Granola Bars Recipe: https://www.wholesomeyum.com/keto-granola-bars/
Ingredients:
1/2 cup Almonds
1/2 cup Pecans
1/4 cup Pumpkin seeds
1/4 cup Unsweetened shredded coconut
1 tbsp Hemp seeds
6 tbsp Besti Powdered Monk Fruit Allulose Blend
1/4 tsp Sea salt
3 tbsp Almond butter
1 large Egg (whisked)
1 tsp Vanilla extract
1/3 cup ChocZe
Can Oatmeal increase blood sugar?
Oatmeal and Diabetes: The Do's and Don'ts: https://www.healthline.com/health/diabetes/oatmeal
"The more processed the oats are, as in the case of instant oats, the faster the oats are digested and the faster the blood sugar can potentially increase."
"Because oatmeal has a lower glycemic index, it may be a better alternative to other breakfast choices, such as cold cereal with added sugar, breads with added jelly or pancakes with syrup."
Why is Oatmeal Raising My Blood Sugar? https://diabetesmealplans.com/18103/oatmeal-raising-my-blood-sugar/
"With type 2 diabetes, carbohydrates are the nutrient that affect blood sugar levels the most.
Oatmeal is a high carb food and is not suitable for many people with diabetes."
"... you can try these tips to see if your blood sugar responds any better.
First, make sure you are not adding additional carbs to your oatmeal such as milk, honey, sugar, or dried fruit.
For extra flavor, try adding low carb additions like chia seeds or chopped walnuts instead.
...
Next, keep the portion size in check. Ideally, you want to only consume about a half-cup serving cooked."
Easy Low Carb Keto Oatmeal Recipe: https://www.wholesomeyum.com/easy-low-carb-keto-oatmeal-recipe/
No actual oats involved ...