Posts
1862
Following
92
Followers
172
Riding horses, hacking computers, phones and smartwatch.
@matidmgdef mapy.com is using openstreetmap data. Just use openstreetmap, instead.
1
0
0
Trump zuřil, že se na pohřbu všechno netočilo kolem něj.
Upřímně – ostatní byli naštvaní ze stejného důvodu.
0
0
2
@kuba77 And no, I don't believe Furi Labs do a good service to Linux community. Marketing Linux device that can't run mainline kernel is just not cool.
0
0
0
@kuba77 SailfishOS is not OSS. Android is closer to OSS than SailfishOS. I don't care about Android, and neither should you. Same goes for SailfishOS.
0
0
0
@Liberux Aha, so this is going to become powerful phone one day. Specs of the phone are listed (and quite high), but its expected weight is not. Also expected to be quite high? :-). I'm assuming this will be meant to run mainline kernel?And ... good luck.
0
0
0
@pancake If ads are designed to enhance overall experience, surely there's a way to turn them off? :-).
0
0
0
@kuba77 First, SailfishOS is non-free. Could get Nokia 6230 and would get nicer device :-). Second, no, 7 years is not enough. Nokia N900 should still be supported, and Motorola Droid 4 is still useful. PinePhone is 5 years...
1
0
0
@fell Finaly a use-case for LLM in browser! :-)
0
0
1
@mkyral @fabia_man @smoon Diky za doporuceni. Ja doporucim tohle (jmena kanalu na konci).

#!/usr/bin/python3

# ytcc?
# smtube?

# scp ~/bin/periodic-yt.py pavel@jabberwock.ucw.cz:~/incoming
# cd /data/film/yt
# find perun/ 8bit/ svine/ usagi/ ac-* vas-av/ blancolirio/ veteran/ veritasium/ spacetime/

# for A in .done.*; do echo 20240804 > $A; done
# sed -i s/20241210/20241205/ .done.*

import os
import subprocess
import datetime
import time

class YT:
def run(m, v, d):
# -r 3k
#~/bin/youtube-dl -f 'best[height<=480][abr<=64]' $1
#~/bin/youtube-dl -f 'worst[height>=480]' $1
#youtube-dl -f 'bestvideo[height<=720]/best[height<=720]' $1
#format = [ "-f", "worst" ]
#format = [ "-f", "best" ]
#format = []
#format = [ "-f", "worst[height>=1080],best" ]
#cmd = ["youtube-dl"] + format + v
# , "-q" -- quiet
cmd = ["yt"] + v
print(cmd)
subprocess.run(cmd, cwd=d)
#time.sleep(120)


def channel(m, url, name, num=1):
days = 1
num = num*days+2
url = "https://www.youtube.com"+url
done = '.done.'+name
if not os.path.exists(name):
os.mkdir(name)
start_date = "20220826"
if os.path.exists(done):
start_date = open(done, "r").readline()
now = datetime.datetime.now()
end_date = str(now.strftime("%Y%02m%02d"))

print("Start: ", start_date, " end: ", end_date)

m.run(["--dateafter", start_date, "--datebefore", end_date, "--playlist-end", "%d" % num, url], name)
open(done, "w").write(end_date)

#os.chdir(os.getenv("HOME")+"/incoming/yt/")
os.chdir("/data/film/yt/")
y = YT()

#g("https://www.youtube.com/watch?v=ykS6gUmcccI")


y.channel("/channel/UCF92X9gUd9m9XyFByej0UWA/videos", "svine")
y.channel("/channel/UCC3ehuUksTyQ7bbjGntmx3Q/videos", "perun")
y.channel("/@CombatVeteranReacts/videos", "veteran", 4)
#y.channel("/@europeancults/videos", "nabozenstvi")
y.channel("/@svetovanabozenstvi/videos", "nabozenstvi", 4)
y.channel("/@RFU/videos", "rfu")
y.channel("/@ReportazezUkrajiny/videos", "crfu")
y.channel('/@Gametheory101/videos', 'game101')
#y.channel('/@icarusproject/videos', 'icarus')

y.channel("/c/pbsspacetime/videos?ucbcb=1", "spacetime")
y.channel("/@SteveMould/videos", "sm")
y.channel("/c/veritasium/videos", "veritasium")
y.channel('/@3blue1brown/videos', "3blue")
#y.channel('/@Sideprojects/videos', 'side')
y.channel('/@MarkRober/videos', 'mrober')
y.channel('/@xkcd_whatif/videos', 'xkcd')

y.channel("/user/adric22?ucbcb=1", "8bit")
y.channel('/@UsagiElectric/videos', "usagi")
y.channel('/@TheLinuxEXP/videos', "lexp")
y.channel('/@RealEngineering/videos', 're')
y.channel('/@CleoAbram/videos', 'cleo')

y.channel("/@MentourNow/videos", "mentour2")
y.channel("/c/MentourPilotaviation/videos", "mentour")
y.channel("/user/blancolirio/videos?view=0&sort=dd&shelf_id=0f", "blancolirio")
y.channel("/c/theflightchannel/videos", "ac-flight")
y.channel("/c/VASAviation/videos", "vas-av")
y.channel("/c/MiniAirCrashInvestigation/videos", "ac-miniair")
y.channel("/c/AllecJoshuaIbay/videos", "ac-yoshua") #fix!
y.channel("/c/DisasterBreakdown/videos", "ac-disaster")

y.channel("/@VivaLaDirtLeague/videos", "vivala")

os.system("date")
0
0
2
@pid_eins @chergert @AdrianVovk @swick @pwithnall That would also warn about portable applications, so maybe don't...
1
0
0
@Annalee youtube-dl + mpv + its screenshot feature (s key)?
0
0
0
@bart @TotalSonic @fredldotme If you are looking for open-source watch, and Linux is not mandatory, Bangle.js2 is good option.
1
0
1
@mkyral @tritol128 @logout Spravne nevim, ale je to jedna z cest. Kdyz je jednodussi zkontrolovat vystup nez ho vytvorit, tak se LLM celkem hodi.
0
0
0
@bycx @mkyral @sesivany Tak ja mam nektere stroje s 256MB RAM, a celkem bych je rad pouzival :-).
1
0
0
@mkyral @tritol128 @logout Tak jasne, to je tak nejak vlastnost "AI". :-).
0
0
0
@mkyral @tritol128 @logout Ne, ta vec to dela sam kdyz to dava smysl :-). Proste neco se povede a neco se nepovede...


Potrebuju 12341234 * pi.


ChatGPT said:
Hodnota výrazu 12341234 × π je přibližně:

38765645825.82949

(Použita přesná hodnota π ≈ 3.141592653589793...)

Chcete to i s více desetinnými místy nebo ve vědeckém zápisu?







You said:
S vice misty a postupem.


ChatGPT said:
Postup výpočtu:

Použili jsme Python modul decimal pro vysokou přesnost:

getcontext().prec = 60 nastaví preciznost na 60 platných číslic.

Konstantu π jsme zadali jako řetězec s 50 desetinnými místy.

Vynásobili jsme hodnotu 12341234 touto vysokopřesnou hodnotou π.

Výsledek jsme vypsali.

Konečný výsledek s 50 desetinnými místy je:

Copy
Edit
38771130.07063257836748528225160403249755216969532756287340

Kdyz se to rozklikne, je videt python:

from decimal import Decimal, getcontext

# Nastavení požadované presnosti (počet platných číslic)
getcontext().prec = 60

# Definice konstanty π s dostatečnou presností
pi = Decimal('3.14159265358979323846264338327950288419716939937510')

# Výpočet výrazu 12341234 * π
result = Decimal(12341234) * pi

# Výpis výsledku
print(result)
1
0
0
@mkyral @tritol128 @logout Pracuji na tom :-). A rozumna cesta neni "LLM umi pociat" ale "LLM vygeneruje python kod, ktery to spocita", a to uz jim chodi.
1
0
0
@mkyral @logout @tritol128 Tak mnoho lidi si mysli, ze "skutecna AI" bude v zasade konec sveta :-). (Aka singularita aka...) Takze je mozna dobre ze LLM nejsou skutecna AI.
1
0
0
@Daojoan Game theory says this is a bit more complex.
0
0
0
Show older