Google has added ads on both its search page and Chrome://newtab
423 pointsby Nephx315 comments
#!/usr/bin/python3
battery_directory = "/sys/class/power_supply/BAT1/"
with open(battery_directory + "status", "r") as f:
state = f.read().strip()
with open(battery_directory + "current_now", "r") as f:
current = int(f.read().strip())
with open(battery_directory + "voltage_now", "r") as f:
voltage = int(f.read().strip())
wattage = (voltage / 10**6) * (current / 10**6)
wattage_formatted = f"{'-' if state == 'Discharging' else ''}{wattage:.2f}W"
if state in ["Charging", "Discharging", "Not charging"]:
print(f"{state}: {wattage_formatted}")
Output:
Two quick questions. On data ownership: do the ToS allow you (or a future acquirer) to sell or commercially use the content people publish on their blogs? And is there a way to export blog posts, say as Markdown? Portability is a big deal for me before committing to a platform.
Will definitely subscribe either way. Nice work.