Aug 26, 2026 09:49 PM
I'm using a Raspberry pi 4 with 4 GB of ram (was about $70) and it's not bad!
Install ollama .. consult Gemini for details
Start the magic with ollama run qwen2.5-coder:1.5b
The clue is in the name .. optimised for coding but it still knows the five longest rivers (probably).
A sample (useful) output..
It won't write an 'app' from scratch but for someone like me it saves reading manuals (if they even exist) and I don't have to mess with a datacentre the size of Louisiana.
It isn't instant but I've spent almost as long in a queue waiting for an instant answer.
Install ollama .. consult Gemini for details
Start the magic with ollama run qwen2.5-coder:1.5b
The clue is in the name .. optimised for coding but it still knows the five longest rivers (probably).
A sample (useful) output..
qwen Wrote:Yes, you can get a list of bad sectors and use them to determine when to
replace the microcontroller.
Here's an example
of how to do it:
```python
import os
def get_bad_sectors():
bad_sectors = []
for block_number in range(1000, 2000): # Replace with the range of block
numbers you want to check
if os.access(f'/data/{block_number}', os.W_OK):
bad_sectors.append(block_number)
return bad_sectors
bad_sectors = get_bad_sectors()
if len(bad_sectors) > 5:
print("Replacing the microcontroller because the number of bad sectors has
increased.")```
This will print "Replacing the microcontroller because the number of bad
sectors has increased." if the number of bad sectors is greater than 5.
You can adjust the range of block numbers you want to check and the threshold
for bad sectors as per your requirements.
It won't write an 'app' from scratch but for someone like me it saves reading manuals (if they even exist) and I don't have to mess with a datacentre the size of Louisiana.
It isn't instant but I've spent almost as long in a queue waiting for an instant answer.
