Byl vydán Debian 13.6, tj. šestá opravná verze Debianu 13 s kódovým názvem Trixie a Debian 12.15, tj. poslední patnáctá opravná verze Debianu 12 s kódovým názvem Bookworm, k dispozici je LTS. Řešeny jsou především bezpečnostní problémy, ale také několik vážných chyb. Instalační média Debianu 13 a Debianu 12 lze samozřejmě nadále k instalaci používat. Po instalaci stačí systém aktualizovat.
V jádře Linux byla nalezena a v upstreamu již byla opravena kritická zranitelnost GhostLock aneb CVE-2026-43499. Lokálnímu uživateli umožňuje získat práva roota a také obejít kontejnerovou izolaci. Zranitelnost existovala v Linuxu 15 let, tj. od roku 2011, od Linuxu verze 2.6.39.
Evropská komise předběžně shledala, že návykový design aplikací Instagram a Facebook od americké společnosti Meta porušuje unijní nařízení o digitálních službách (DSA). Návykový design zahrnuje například takzvané nekonečné posouvání, automatické přehrávání videí, tzv. push notifikace, kdy aplikace uživatele vybízí k návratu do jejího prostředí, či vysoce personalizovaný algoritmus, který rychle pozná, co uživatele baví a snaží
… více »Byla vydána verze 1.97.0 programovacího jazyka Rust (Wikipedie). Podrobnosti v poznámkách k vydání. Vyzkoušet Rust lze například na stránce Rust by Example.
Švýcarská společnost Punkt. má nově v nabídce telefon Punkt. MC03. Telefon byl navržen ve Švýcarsku s důrazem na soukromí a digitální suverenitu a vyroben v Německu. V telefonu běží operační systém AphyOS (Apostrophy OS) založený na AOSP (Android Open Source Project) 15. Cena telefonu je 745 eur.
TypeScript (Wikipedie), tj. JavaScript rozšířený o statické typování a další atributy, byl vydán v nové verzi 7.0. Kompilátor byl kvůli výkonu přepsán z TypeScriptu do Go.
Europarlament podpořil pozměněnou verzi výjimky známé jako „chat control 1.0“ umožňující firmám skenovat soukromou komunikaci na internetu kvůli ochraně dětí před zneužitím. Pozměňovací návrhy přijaté europoslanci však počítají s tím, že z výjimky bude vyřazena šifrovaná komunikace. Výjimka přestala platit začátkem dubna poté, co se Evropský parlament a Rada EU nedokázaly shodnout na jejím prodloužení. Rada následně přijala
… více »Nejnovější X.Org X server 21.1.24 a Xwayland 24.1.13 řeší 2 bezpečnostní chyby.
Clement "Clem" Lefebvre publikoval souhrn dění v Linux Mintu za červen 2026. Vypíchnuta je vylepšená podpora Waylandu. Už není považována za experimentální. V příští verzi Linux Mintu, plánována je na Vánoce, bude běh Cinnamonu plně podporován na X11 i Waylandu. V květnu na vývoj Linux Mintu přispělo 611 dárců celkovou částkou 19 612 dolarů. Dalších 2 326 patronů přispělo na Patreonu celkovou částkou 5 334 dolarů.
V Linuxu v KVM byla nalezena a v upstreamu již byla opravena kritická zranitelnost Januscape aneb CVE-2026-53359. Root na hostovaném počítači (virtuální stroj) může obejít izolaci a získat plnou kontrolu nad hostitelským systémem (DoS útok nebo vzdálené spuštění kódu s právy roota). Na obou hlavních architekturách – Intel i AMD. Zranitelnost v Linuxu existovala téměř 16 let (od srpna 2010 do června 2026).
keywords vim matlab script m-file
Nevím, jak jsou na tom verze matlabu nyní, ale tento skript edit.m nahrazuje matlabí edit. Používal jsem jej pro gnome-terminal, ale pak jsem přešel na aterm. Proto je kód pro gnome-terminál ponechán zakomentovaný. Překvapil mne kamarád, že jej používá a bez problémů. Psal jsem to před 2 lety kvůli diplomce, protože jsem prostě na vim zvyklý.
Logika argumentů je divoká, ale nějak mě to zatím nezradilo.
Skript je k použítí v xkách. Matlab je dobré spouštet v terminálu jako matlab -nosplash -nojvm -nodesktop
~/matlab. Použijte help edit
function [C, A ] = vim( varargin )
% EDIT
% EDIT arg1 arg2
% EDIT ./arg1 ./arg2
% EDIT /.../arg1 /.../arg2
% [C, A ] = EDIT
% [C, A ] = EDIT( 'arg1', 'arg2', ... )
% [C, A ] = EDIT( '-c \"<editor command>\"', 'arg1', 'arg2' )
%
% EDIT overrides a default matlab script EDIT.m.
% EDIT opens the file in a text editor.
%
% By default, The EDIT editor is used. The user may
% specify a different editor by modifying the shell command
% in the M-file.
%
% EDIT X Y Z ... will atempt to open all specified files in an
% editor. Each argument is directly passed into an editor argument.
% Instead of the first file you can use the editor (EDIT) command
% as well. But this command has to be the first argument
% in the string.
%
% EDIT '-c \"w\"' FILE1.M FILE2.M
%
% passes the command "save FILE1.M" to EDIT. Be aware of placing
% a gap between both the editor command and the file name.
%
%
% EDIT, by itself, opens up a new editor window.
%
%
% EDIT returns two strings:
% C is the command passed into the terminal input.
% A is the command passed into the editor input.
%Copyleft 2004 elviin
if ~iscellstr( varargin )
error( 'The input must be a string.' );
return;
end
cellFileArg = '#'; %Use this character instead of a white space.
%There are problems with leading and trailing spaces.
%Because in gnome-terminal is needed full file-path.
%Say vim to open it. (I don't know why it doesn't work.)
%gnome-terminal
%vimOpenFile = '-c#\"e#';
%aterm
vimOpenFile = '-c#"e#';
%Set the proper directory for edited file.
curDir = strcat( pwd, '/' );
%gnome-terminal %Set the proper directory for editor;
%changeDirOptionTail = strcat( curDir, '\"' );
%aterm
changeDirOptionTail = strcat( curDir, '"' );
%for gnome-terminal
%changeDirOption = strcat( '#-c#\"cd#', changeDirOptionTail );
%for aterm
changeDirOption = strcat( '#-c#"cd#', changeDirOptionTail );
%Fill the buffer with arguments.
for i = 1:nargin
cVarargin = char( varargin(i) );
switch cVarargin(1)
case {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'}
Err = sprintf('Remove heading ''%s'' from the name.', cVarargin(1));, ...
disp(Err)
return
case '-', ...
cellFileArg = strcat( cellFileArg, cVarargin );, ...
cellFileArg = strcat( cellFileArg, '#' );
case {'~', '/', '.', '\'}, ...
if length(cVarargin) < 2
disp('File name is too short.')
return
end
nameLength = length( cVarargin );
if strfind( cVarargin( nameLength-1: nameLength ), '.m' )
cVarargin = strcat( vimOpenFile, cVarargin );
%for gnome-terminal
%cVarargin = strcat( cVarargin, '\"' ); %terminate the command
%for aterm
cVarargin = strcat( cVarargin, '"' ); %terminate the command
cellFileArg = strcat( cellFileArg, cVarargin );, ...
cellFileArg = strcat( cellFileArg, '#' );
else
cVarargin = strcat( cVarargin, '.m' );, ...
cVarargin = strcat( vimOpenFile, cVarargin );, ...
%for gnome-terminal
%cVarargin = strcat( cVarargin, '\"'); %terminate the command
%for aterm
cVarargin = strcat( cVarargin, '"'); %terminate the command
cellFileArg = strcat( cellFileArg, cVarargin );, ...
cellFileArg = strcat( cellFileArg, '#' );
end
otherwise %No exact file name is specified.
%Try to select a file:
parPath = which( cVarargin );
if ( strcmp( parPath, '' ) )
nameLength = length(cVarargin);
%If the file name is long enough...
if ( nameLength > 1 )
%If .m extension is missing...
if ( strfind( cVarargin( nameLength-1: nameLength ), '.m' ) )
cVarargin = strcat( curDir, cVarargin );
cellFileArg = strcat( cellFileArg, cVarargin );
cellFileArg = strcat( cellFileArg, '#' );
else
cVarargin = strcat( cVarargin, '.m' );
cVarargin = strcat( curDir, cVarargin );
cellFileArg = strcat( cellFileArg, cVarargin );
cellFileArg = strcat( cellFileArg, '#' );
end
else %Edit the file in spite of too short name.
cVarargin = strcat( cVarargin, '.m' );
cVarargin = strcat( curDir, cVarargin );
cellFileArg = strcat( cellFileArg, cVarargin );
cellFileArg = strcat( cellFileArg, '#' );
Err = sprintf('File name ''%s''is possibly too short to specify m-file.', cVarargin);, ...
disp(Err);
end
else %We have found a path to reach the file.
cellFileArg = strcat( cellFileArg, parPath );
cellFileArg = strcat( cellFileArg, '#' );
end
end
end;
%Convert values of the type cell to the string.
cFileArg = char( cellFileArg );
%Include arguments in to the shell command.
%You can edit both the name of a file manager and an editor.
%Change editting directory:
cFileArg = strcat( changeDirOption, cFileArg );
%--zoom arg is useless in Gnome
commandGnomeTerminal = strcat( 'gnome-terminal --window-with-profile=matlab --zoom=1.333333333 --geometry=80x25 --command "vim' , cFileArg );
commandATerm = strcat( 'aterm -T Matlab -e vim', cFileArg );
command = commandATerm; %commandGnomeTerminal
% command = strcat( command, '"' ); %commandGnomeTerminal terminator
%The way how to disable gtk warning messages:
%** (gnome-terminal:2240): WARNING **: [Invalid UTF-8]
%in case your default xwindow manager is not Gnome.
execommand = strcat( command, '#');
execommand = strcat( execommand, '>#/dev/null#2>&1#&');
execommand = strcat( 'nohup#', execommand );
%Replace the character '#' with ' ' and execute the command.
execommand = strrep( execommand, '#', ' ' );
%Execute the command attached to vim editor:
unix( execommand );
nout = max(nargout,1)-1;
%Disable output messages (0).
%List the enabled ones (1, 2).
switch nout
case 2,
C = execommand;,
A = strrep( cFileArg, '#', ' ' );
case 1,
C = execommand;
A = strrep( cFileArg, '#', ' ' );
case 0, %(*) explicit obstruction from stdout
otherwise
disp('To many output arguments.')
end;
Tiskni
Sdílej: