Eben Upton oznámil další zdražení počítačů Raspberry Pi: 2GB verze o 10 dolarů, 4GB verze o 15 dolarů, 8GB verze o 30 dolarů a 16GB verze o 60 dolarů. Kvůli růstu cen pamětí. Po dvou měsících od předchozího zdražení.
Shellbeats je terminálový hudební přehrávač pro Linux a macOS, který umožňuje vyhledávat a streamovat hudbu z YouTube, stahovat odtud skladby a spravovat lokální playlisty. Pro stahování dat z YouTube využívá yt-dlp, pro práci s audiostreamy mpv. Je napsán v jazyce C a distribuován pod licencí GPL-3.0, rezpozitář projektu je na GitHubu.
Byla vydána nová verze 26.1.30 svobodného multiplatformního video editoru Shotcut (Wikipedie) postaveného nad multimediálním frameworkem MLT. S podporou hardwarového dekódování videa. Shotcut je vedle zdrojových kódů k dispozici také ve formátech AppImage, Flatpak a Snap.
LibrePCB, tj. svobodný multiplatformní softwarový nástroj pro návrh desek plošných spojů (PCB), byl po deseti měsících od vydání verze 1.3 vydán ve verzi 2.0.0. Přehled novinek v příspěvku na blogu a v aktualizované dokumentaci. Zdrojové kódy LibrePCB jsou k dispozici na GitHubu pod licencí GPLv3.
Guido van Rossum, tvůrce programovacího jazyka Python, oslavil 70. narozeniny. Narodil se 31. ledna 1956 v nizozemském Haarlemu.
OpenClaw je open-source AI asistent pro vykonávaní různých úkolů, ovládaný uživatelem prostřednictvím běžných chatovacích aplikací jako jsou například WhatsApp, Telegram nebo Discord. Asistent podporuje jak různé cloudové modely, tak i lokální, nicméně doporučován je pouze proprietární model Claude Opus 4.5 od firmy Anthropic v placené variantě. GitHubová stránka projektu OpenClaw.
Projekt VideoLAN a multimediální přehrávač VLC (Wikipedie) dnes slaví 25 let. Vlastní, tenkrát ještě studentský projekt, začal již v roce 1996 na vysoké škole École Centrale Paris. V první únorový den roku 2001 ale škola oficiálně povolila přelicencování zdrojových kódů na GPL a tím pádem umožnila používání VLC mimo akademickou půdu.
Moltbook je sociální síť podobná Redditu, ovšem pouze pro agenty umělé inteligence - lidé se mohou účastnit pouze jako pozorovatelé. Agenti tam například rozebírají podivné chování lidí, hledají chyby své vlastní sociální sítě, případně spolu filozofují o existenciálních otázkách 🤖.
scx_horoscope je „vědecky pochybný, kosmicky vtipný“ plně funkční plánovač CPU založený na sched_ext. Počítá s polohami Slunce a planet, fázemi měsíce a znameními zvěrokruhu. Upozornil na něj PC Gamer.
O víkendu probíhá v Bruselu konference FOSDEM 2026 (Free and Open source Software Developers’ European Meeting). Program konference je velice nabitý: 37 místností, 71 tracků, 1184 přednášejících, 1069 přednášek, prezentací a workshopů. Sledovat je lze i online. K dispozici budou jejich videozáznamy. Aktuální dění lze sledovat na sociálních sítích.
lsmod, ten modul by se měl jmenovat podobně jako síťovka, jejíž jméno zjistíš lspci.
Taky by možná mohl používat mii:
$ lsmod Module Size Used by ... mii 5952 1 jméno_modulu_pro_tvojí_síťovku ...
omlouvám se, ale nešlo mi to dát do tagu pre.Mně to tedy do <pre> jde dát:
fs/eventpoll.c: In function ‘sys_epoll_create’: fs/eventpoll.c:500: warning: ‘fd’ may be used uninitialized in this function fs/udf/balloc.c: In function ‘udf_table_new_block’: fs/udf/balloc.c:751: warning: ‘goal_eloc.logicalBlockNum’ may be used uninitialized in this function fs/udf/super.c: In function ‘udf_fill_super’: fs/udf/super.c:1358: warning: ‘ino.partitionReferenceNum’ may be used uninitialized in this function fs/xfs/xfs_dir.c: In function ‘xfs_dir_removename’: fs/xfs/xfs_dir.c:363: warning: ‘totallen’ may be used uninitialized in this function fs/xfs/xfs_dir.c:363: warning: ‘count’ may be used uninitialized in this function fs/xfs/xfs_inode.c: In function ‘xfs_ifree’: fs/xfs/xfs_inode.c:1960: warning: ‘last_offset’ may be used uninitialized in this function fs/xfs/xfs_inode.c:1958: warning: ‘last_dip’ may be used uninitialized in this function fs/xfs/xfs_log.c: In function ‘xlog_write’: fs/xfs/xfs_log.c:1749: warning: ‘iclog’ may be used uninitialized in this function fs/xfs/xfs_log_recover.c: In function ‘xlog_find_tail’: fs/xfs/xfs_log_recover.c:523: warning: ‘first_blk’ may be used uninitialized in this function ipc/msg.c: In function ‘sys_msgctl’: ipc/msg.c:338: warning: ‘setbuf.qbytes’ may be used uninitialized in this function ipc/msg.c:338: warning: ‘setbuf.uid’ may be used uninitialized in this function ipc/msg.c:338: warning: ‘setbuf.gid’ may be used uninitialized in this function ipc/msg.c:338: warning: ‘setbuf.mode’ may be used uninitialized in this function ipc/sem.c: In function ‘sys_semctl’: ipc/sem.c:810: warning: ‘setbuf.uid’ may be used uninitialized in this function ipc/sem.c:810: warning: ‘setbuf.gid’ may be used uninitialized in this function ipc/sem.c:810: warning: ‘setbuf.mode’ may be used uninitialized in this function drivers/char/ftape/lowlevel/fdc-io.c: In function ‘fdc_command’: drivers/char/ftape/lowlevel/fdc-io.c:217: warning: ‘restore_flags’ is deprecated (declared at include/linux/interrupt.h:84) drivers/char/ftape/lowlevel/fdc-io.c: In function ‘fdc_setup_formatting’: drivers/char/ftape/lowlevel/fdc-io.c:885: warning: ‘restore_flags’ is deprecated (declared at include/linux/interrupt.h:84) drivers/char/ftape/lowlevel/fdc-isr.c: In function ‘fdc_isr’: drivers/char/ftape/lowlevel/fdc-isr.c:1094: warning: ‘sti’ is deprecated (declared at include/linux/interrupt.h:75) drivers/char/ftape/lowlevel/ftape-io.c: In function ‘ftape_sleep’: drivers/char/ftape/lowlevel/ftape-io.c:98: warning: ‘save_flags’ is deprecated (declared at include/linux/interrupt.h:79) drivers/char/ftape/lowlevel/ftape-io.c:99: warning: ‘sti’ is deprecated (declared at include/linux/interrupt.h:75) drivers/char/ftape/lowlevel/ftape-io.c:106: warning: ‘restore_flags’ is deprecated (declared at include/linux/interrupt.h:84) drivers/char/ftape/lowlevel/ftape-format.c: In function ‘ftape_format_track’: drivers/char/ftape/lowlevel/ftape-format.c:135: warning: ‘restore_flags’ is deprecated (declared at include/linux/interrupt.h:84) drivers/char/ftape/zftape/zftape-read.c: In function ‘_zft_read’: drivers/char/ftape/zftape/zftape-read.c:298: warning: ‘req_clipped’ may be used uninitialized in this function drivers/char/ipmi/ipmi_si_intf.c: In function ‘init_ipmi_si’: drivers/char/ipmi/ipmi_si_intf.c:1797: warning: ‘data.irq’ may be used uninitialized in this function drivers/ide/ide-tape.c: In function ‘idetape_copy_stage_from_user’: drivers/ide/ide-tape.c:2663: warning: ignoring return value of ‘copy_from_user’, declared with attribute warn_unused_result drivers/ide/ide-tape.c: In function ‘idetape_copy_stage_to_user’: drivers/ide/ide-tape.c:2690: warning: ignoring return value of ‘copy_to_user’, declared with attribute warn_unused_result drivers/input/serio/serio_raw.c: In function ‘serio_raw_read’: drivers/input/serio/serio_raw.c:164: warning: ‘c’ may be used uninitialized in this function drivers/message/i2o/exec-osm.c: In function ‘i2o_msg_post_wait_mem’: drivers/message/i2o/exec-osm.c:187: warning: comparison of distinct pointer types lacks a cast drivers/mtd/chips/cfi_cmdset_0020.c: In function ‘cfi_staa_init’: drivers/mtd/chips/cfi_cmdset_0020.c:1417: warning: ‘inter_module_register’ is deprecated (declared at include/linux/module.h:563) drivers/mtd/chips/cfi_cmdset_0020.c: In function ‘cfi_staa_exit’: drivers/mtd/chips/cfi_cmdset_0020.c:1423: warning: ‘inter_module_unregister’ is deprecated (declared at include/linux/module.h:564) drivers/mtd/chips/cfi_cmdset_0002.c: In function ‘cfi_amdstd_init’: drivers/mtd/chips/cfi_cmdset_0002.c:1766: warning: ‘inter_module_register’ is deprecated (declared at include/linux/module.h:563) drivers/mtd/chips/cfi_cmdset_0002.c: In function ‘cfi_amdstd_exit’: drivers/mtd/chips/cfi_cmdset_0002.c:1773: warning: ‘inter_module_unregister’ is deprecated (declared at include/linux/module.h:564) drivers/mtd/chips/cfi_cmdset_0001.c: In function ‘cfi_intelext_init’: drivers/mtd/chips/cfi_cmdset_0001.c:2454: warning: ‘inter_module_register’ is deprecated (declared at include/linux/module.h:563) drivers/mtd/chips/cfi_cmdset_0001.c:2455: warning: ‘inter_module_register’ is deprecated (declared at include/linux/module.h:563) drivers/mtd/chips/cfi_cmdset_0001.c:2456: warning: ‘inter_module_register’ is deprecated (declared at include/linux/module.h:563) drivers/mtd/chips/cfi_cmdset_0001.c: In function ‘cfi_intelext_exit’: drivers/mtd/chips/cfi_cmdset_0001.c:2462: warning: ‘inter_module_unregister’ is deprecated (declared at include/linux/module.h:564) drivers/mtd/chips/cfi_cmdset_0001.c:2463: warning: ‘inter_module_unregister’ is deprecated (declared at include/linux/module.h:564) drivers/mtd/chips/cfi_cmdset_0001.c:2464: warning: ‘inter_module_unregister’ is deprecated (declared at include/linux/module.h:564) drivers/mtd/chips/gen_probe.c: In function ‘cfi_cmdset_unknown’: drivers/mtd/chips/gen_probe.c:210: warning: ‘inter_module_put’ is deprecated (declared at include/linux/module.h:567) drivers/mtd/devices/doc2000.c: In function ‘init_doc2000’: drivers/mtd/devices/doc2000.c:1282: warning: ‘inter_module_register’ is deprecated (declared at include/linux/module.h:563) drivers/mtd/devices/doc2000.c: In function ‘cleanup_doc2000’: drivers/mtd/devices/doc2000.c:1301: warning: ‘inter_module_unregister’ is deprecated (declared at include/linux/module.h:564) drivers/mtd/devices/doc2001.c: In function ‘init_doc2001’: drivers/mtd/devices/doc2001.c:861: warning: ‘inter_module_register’ is deprecated (declared at include/linux/module.h:563) drivers/mtd/devices/doc2001.c: In function ‘cleanup_doc2001’: drivers/mtd/devices/doc2001.c:880: warning: ‘inter_module_unregister’ is deprecated (declared at include/linux/module.h:564) drivers/mtd/devices/doc2001plus.c: In function ‘init_doc2001plus’: drivers/mtd/devices/doc2001plus.c:1127: warning: ‘inter_module_register’ is deprecated (declared at include/linux/module.h:563) drivers/mtd/devices/doc2001plus.c: In function ‘cleanup_doc2001plus’: drivers/mtd/devices/doc2001plus.c:1146: warning: ‘inter_module_unregister’ is deprecated (declared at include/linux/module.h:564) drivers/mtd/devices/docprobe.c: In function ‘DoC_Probe’: drivers/mtd/devices/docprobe.c:315: warning: ‘inter_module_put’ is deprecated (declared at include/linux/module.h:567) drivers/mtd/redboot.c: In function ‘parse_redboot_partitions’: drivers/mtd/redboot.c:103: warning: passing argument 1 of ‘__swab32s’ from incompatible pointer type drivers/mtd/redboot.c:104: warning: passing argument 1 of ‘__swab32s’ from incompatible pointer type drivers/mtd/redboot.c:105: warning: passing argument 1 of ‘__swab32s’ from incompatible pointer type drivers/mtd/redboot.c:106: warning: passing argument 1 of ‘__swab32s’ from incompatible pointer type drivers/mtd/redboot.c:107: warning: passing argument 1 of ‘__swab32s’ from incompatible pointer type drivers/mtd/redboot.c:108: warning: passing argument 1 of ‘__swab32s’ from incompatible pointer type drivers/mtd/redboot.c:109: warning: passing argument 1 of ‘__swab32s’ from incompatible pointer type drivers/scsi/sata_svw.c: In function ‘k2_sata_tf_load’: drivers/scsi/sata_svw.c:115: warning: passing argument 2 of ‘writeb’ makes pointer from integer without a cast drivers/scsi/sata_svw.c:120: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast drivers/scsi/sata_svw.c:121: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast drivers/scsi/sata_svw.c:122: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast drivers/scsi/sata_svw.c:123: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast drivers/scsi/sata_svw.c:124: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast drivers/scsi/sata_svw.c:126: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast drivers/scsi/sata_svw.c:127: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast drivers/scsi/sata_svw.c:128: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast drivers/scsi/sata_svw.c:129: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast drivers/scsi/sata_svw.c:130: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast drivers/scsi/sata_svw.c:134: warning: passing argument 2 of ‘writeb’ makes pointer from integer without a cast drivers/scsi/sata_svw.c: In function ‘k2_sata_tf_read’: drivers/scsi/sata_svw.c:146: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast drivers/scsi/sata_svw.c:147: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast drivers/scsi/sata_svw.c:148: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast drivers/scsi/sata_svw.c:149: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast drivers/scsi/sata_svw.c:150: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast drivers/scsi/sata_svw.c:151: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast drivers/scsi/sata_vsc.c: In function ‘vsc_sata_tf_load’: drivers/scsi/sata_vsc.c:152: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast drivers/scsi/sata_vsc.c:153: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast drivers/scsi/sata_vsc.c:154: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast drivers/scsi/sata_vsc.c:155: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast drivers/scsi/sata_vsc.c:156: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast drivers/scsi/sata_vsc.c:158: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast drivers/scsi/sata_vsc.c:159: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast drivers/scsi/sata_vsc.c:160: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast drivers/scsi/sata_vsc.c:161: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast drivers/scsi/sata_vsc.c:162: warning: passing argument 2 of ‘writew’ makes pointer from integer without a cast drivers/scsi/sata_vsc.c:166: warning: passing argument 2 of ‘writeb’ makes pointer from integer without a cast drivers/scsi/sata_vsc.c: In function ‘vsc_sata_tf_read’: drivers/scsi/sata_vsc.c:178: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast drivers/scsi/sata_vsc.c:179: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast drivers/scsi/sata_vsc.c:180: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast drivers/scsi/sata_vsc.c:181: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast drivers/scsi/sata_vsc.c:182: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast drivers/scsi/sata_vsc.c:183: warning: passing argument 1 of ‘readw’ makes pointer from integer without a cast drivers/scsi/sata_vsc.c: In function ‘vsc_sata_setup_port’: drivers/scsi/sata_vsc.c:320: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast drivers/scsi/sata_vsc.c:321: warning: passing argument 2 of ‘writel’ makes pointer from integer without a cast drivers/scsi/fdomain.c:425: warning: ‘ports’ defined but not used drivers/scsi/fdomain.c:469: warning: ‘signatures’ defined but not used drivers/scsi/fdomain.c:652: warning: ‘fdomain_get_irq’ defined but not used drivers/usb/misc/auerswald.c: In function ‘auerchain_control_msg’: drivers/usb/misc/auerswald.c:667: warning: ‘length’ may be used uninitialized in this function net/ipv4/netfilter/ip_conntrack_ftp.c: In function ‘help’: net/ipv4/netfilter/ip_conntrack_ftp.c:298: warning: ‘matchoff’ may be used uninitialized in this function net/ipv4/netfilter/ip_conntrack_ftp.c:298: warning: ‘matchlen’ may be used uninitialized in this functionA jinak varování by měla být "OK", nás programátory zajímaj' jenom errory
A jinak varování by měla být "OK", nás programátory zajímaj' jenom errory
Tak to asi nejsem programátor, svůj kód se snažím psát podle zásady "0 warnings při -Wall". A už se mi to párkrát vyplatilo… :-)
Jinak se taky snažím psát tak, aby eclipse nezobrazovalo ani jeden žlutý trojúhelníček
Ale pokud překládám cizí program, warningy nejsou až tak důležité. A ono zrovna jádro asi bude používat konstrukce, které nejsou zrovna obvyklé…
moje oblíbené volby jsou -Wall -ansi -pedantic
deb http://ftp.cz.debian.org/debian jessie main contrib non-freehttp://kmuto.jp/debian/hcl/index.cgimake > /dev/null
make 2> /dev/null
make | sed '/^.*[Ww]arning.*$/d'
grep -v
x obsahuje 10000 radku
warning: bla bla blaVysledky:
[pasmen@nyx tmp]$ time cat x | sed '/^.*[Ww]arning.*$/d' real 0m0.107s user 0m0.097s sys 0m0.002s [pasmen@nyx tmp]$ time cat x | grep -v '[Ww]arning' real 0m21.110s user 0m19.641s sys 0m0.104s:D
cat měřit, jak dlouho běží sed a grep?
time (cat x | sed '/^.*[Ww]arning.*$/d') real 0m0.071s user 0m0.044s sys 0m0.004s time (grep -v '[Ww]arning' x) real 0m0.006s user 0m0.004s sys 0m0.000s
Tiskni
Sdílej: