Thursday, June 20, 2024

Run Linux as an App on Android


" ... developers ... introduced a very interesting project called "Lindroid", which aims to let users run Linux in "a new way on Android devices"."
" With this, users can run various Linux distributions on native hardware, on their Android installation ..."
"Before you do that, you need to know that you will require a rooted Android device alongside some AOSP patches to be able to run Lindroid. It is not possible to run it without root access because the underlying architecture uses LXC with access to host drivers."
".... Lindroid will be officially made available via LibreMobileOS under the Ulumo name, where it will feature an Ubuntu base."

5 Copilot AI features that are on by default in Microsoft products | Mashable

https://mashable.com/article/5-microsoft-copilot-defaults

Thursday, June 13, 2024

AI Coding Assistance & more

Using AI for Coding: Everything You Need To Know:
https://learntocodewith.me/resources/ai-coding/
"... these are some of the top uses of AI in coding:
1. Code autocompletion
AI-powered code editors use machine learning algorithms to analyze patterns in code. They can predict and suggest code snippets for you, making your coding process faster and more efficient.

2. Automated code generation
AI can generate code snippets or even entire functions based on user prompts to accelerate the development, especially for repetitive & boilerplate code.

3. Code refactoring
Analyze code and suggest improvements for better readability, performance, or adherence to coding standards.

4. Bug detection and fixes
Identify and even fix bugs in the code."

"Programming is really not about being able to type code. Programming is about being able to mentally deconstruct problems into well-defined algorithmic steps, decide on correct data structures that will model the problem and then turn all this into working code."


Microsoft / Generative-AI-for-beginners - 18 Lessons, Get Started Building with Generative AI:
https://github.com/microsoft/generative-ai-for-beginners


AI With Python Tutorial:
https://www.geeksforgeeks.org/python-ai/


AI-Powered Code Generation Tool (JustDone):
https://justdone.ai/gen/best-code-generator-ai


10 Best AI Code Generators (June 2024):

https://www.unite.ai/best-ai-code-generators/
"GitHub Copilot represents the next level in AI-powered programming assistance. This tool functions like a virtual pair programmer that aids developers in writing better code at an expedited pace. It achieves this by suggesting whole lines or blocks of code as you type. The tool utilizes a system trained on public code repositories and is thus able to understand a multitude of programming languages and coding styles."

"Codeium is an advanced AI-driven platform designed to assist developers in various coding tasks. It encompasses a range of functionalities, including code fixing and code generation, but its most prominent feature is the code autocomplete capability."

"Replit GhostWriter, ... is another ... coding assistant designed to aid programmers in writing efficient and high-quality code. GhostWriter stands out for its ability to complete the code in real-time as the developer types ..."

"Amazon's CodeWhisperer revolutionizes the coding process by offering real-time suggestions ranging from snippets to entire functions, thanks to its vast knowledge from billions of lines of code. ... Furthermore, it prioritizes code security by pinpointing vulnerabilities, providing instant solutions, and ensuring alignment with esteemed security benchmarks such as those by OWASP."

"CodePal is a sophisticated AI-driven assistant designed for coding tasks. It provides a variety of services including code correction, explanation, and documentation. However, its most notable feature is the code generation capability. This means it can produce source code based on textual prompts. For example, if a user inputs a request like "Write a function in JavaScript that prints the Bitcoin price," CodePal will autonomously create code to display the current price of Bitcoin."

"Cody ... offers an impressive set of features that extend beyond the scope of code completion. Cody can be a boon to developers by providing automated code reviews and even identifying and fixing potential bugs in the code.
Cody's main strength lies in its capability to understand the context in which the code is written, allowing it to provide meaningful and relevant suggestions and reviews."

"Tabnine ... uses machine learning algorithms to predict and suggest code completions, aiming to make coding faster, more efficient, and less prone to errors.
... compatibility with over 20 programming languages. This, along with its integration capabilities with various code editors, makes TabNine a versatile tool for developers across different platforms. Furthermore, its deep learning capabilities allow it to provide highly relevant code suggestions ..."

...

5 AI Tools That Can Generate Code To Help Programmers (March 2022):
https://www.forbes.com/sites/janakirammsv/2022/03/14/5-ai-tools-that-can-generate-code-to-help-programmers/
"OpenAI Codex is the model based on GPT-3 that powers GitHub Copilot - a tool from GitHub to generate code within mainstream development environments including VS Code, Neovim, JetBrains, and even in the cloud  ..."

"CodeT5 is an open source programming language model built by researchers at SalesForce. It is based on Google's T5 (Text-to-Text Transfer Transformer) framework. In order to train CodeT5, the team sourced over 8.35 million instances of code, including user comments, from publicly accessible GitHub repositories. A majority of these datasets were derived from the CodeSearchNet dataset, which includes Ruby, JavaScript, Go, Python, PHP, C, and C#, in addition to two C and C# datasets from BigQuery."

"Polycoder is an open source alternative to OpenAI's Codex. Developed by the researchers at Carnegie Mellon University, the model is based on OpenAI's GPT-2, which is trained on a 249 GB codebase written in 12 programming languages. According to PolyCoder's authors, the program is capable of writing C with greater accuracy than any other model, including Codex.
While most of the code generators are not open source, Polycoder is one of the first open source code generation models."

"Cogram, a Y-Combinator, Berlin-based Startup, is a code generation tool aimed at data scientists and Python programmers using SQL queries and Jupyter Notebooks."


How AI code generation works: https://github.blog/2024-02-22-how-ai-code-generation-works/
"AI code generation refers to full or partial lines of code that are generated by machines instead of human developers."
"While every developer can reap the benefits of using AI coding tools, experienced programmers can often feel these gains even more so. ... It's just faster to hit 'tab' (thus accepting the suggestion) than it is to write out those 20 characters by myself"


AI code-generation software: What it is and how it works (Sept 2023):
https://www.ibm.com/blog/ai-code-generation/
"There are three main benefits of using AI code-generation software tools:
  1.     It saves time by enabling developers to generate code faster, reducing the work of manually writing lines of code and freeing developers to focus on higher-value work.
  2.     Generative AI can quickly and efficiently test and debug computer code.
  3.     Using generative AI for code also makes code development accessible to non-developers."


AI code generation: How it works and 9 tools you should know (March 2024, by Tabnine):
https://www.tabnine.com/blog/ai-code-generation-how-it-works-and-9-tools-you-should-know/
  1. Tabnine
  2. GitHub Copilot
  3. Replit GhostWriter
  4. Code Llama
  5. CodeT5
  6. AI2SQL
  7. Durable
  8. Mintlify
  9. Cody


CODEpal -  Code Generator - Generate Code Online with AI:  https://codepal.ai/
Free startup, monthly fee for significant volumes of requests.


Refraction - Learn, improve and generate code with AI:  https://refraction.dev/
"Generate code using AI in 56 languages — ABAP, Ada, Apex, Assembly, Batch, C, C#, C++, CameLIGO, Clojure, Cobol, CoffeeScript, CSS, D Lang, Dart, Elixir, Erlang, F#, Fortran, Go, GraphQL, Groovy, Handlebars, Haskell, HTML, Java, JavaScript, Julia, Kotlin, LaTeX, Less, Liquid, Lua, MatLab, Objective-C, OCaml, PascaLIGO, Perl, PHP, PowerShell, Pug, Python, R Lang, Racket, Ruby, Rust, Sass / SCSS, Scala, Shell, Solidity, SQL, Swift, TypeScript, Visual Basic, XML, and YAML."

Sunday, June 9, 2024

Build a real-life Winamp player before the PC app goes open-source

Build a real-life Winamp (called Linamp) player with Raspberry Pi:
https://www.xda-developers.com/real-life-winamp-player-raspberry-pi

https://hackaday.io/project/196407-linamp/details
Linamp has the following features:
  • Play music files from the file system (mp3, m4a, FLAC, etc.), including from SMB network mounts.
  • Playlist management for file playback
  • Display a real time bar spectrum analyzer
  • Display track information, including bitrate and sample rate
  • Control the output volume and balance
  • CD Playback (when connecting an external CD drive), including getting the track information from MusicBrainz
  • Bluetooth and Spotify playback (This is a Work in Progress)
------------------------------------------------------------------
Winamp is going open source (on September 24th, 2024), and it feels like the early 2000s again. - Remember Winamp? Turns out, it never went away, and it's now about to get a lot better:
https://www.xda-developers.com/winamp-open-source/
https://about.winamp.com/press/article/winamp-open-source-code

Saturday, June 8, 2024

32 Common Windows Mistakes to Avoid

https://www.pctips.com/common-windows-mistakes/

For writers: Profanity in science fiction

https://en.wikipedia.org/wiki/Profanity_in_science_fiction

FN's Reflex 9mm Pistol: Micro Size, Big Features. And More.

".. the Reflex is not a striker-fired pistol but rather an internal hammer-fired single action only. The lighter single-action pull is less likely to result in inadvertent movement when firing, which could send your round askew."
" The Reflex doesn't have a grip or thumb safety ... For a concealed-carry pistol, there's much to be said for "point and shoot" simplicity."
" With an overall length of just over six inches and a height just over four inches with a flush-fit magazine, and just an inch thick, the Reflex's slim profile makes it easy to conceal. The pistol boasts a capacity of 11+1 with the flush-fit magazine or 15+1 with the extended magazine. At just 18.4 ounces, the Reflex won't weigh you down." (Approximately the same dimensions as the Glock 26, but a little lighter.)
------------------------------------------------------------------------------------------------------------------------
Top 8 Best Single Stack Sub-Compact 9mms Of 2023 Review:

Best Sub-Compact Single-Stack 9mm for CCW:

8 Best Micro 9mm Handguns of 2024: