-

 -

   Linux_Loader

 -

 LiveInternet.ru:
: 20.04.2008
: 743
: 2542
: 7716

:

.


: (73), (121), (1), (44), (18), (41), (57), (21), --!(71), (9), windoze must die(53), sos(1), howto(35)
(1)

, 18 2023 . 21:21 +

, , .

 
l = [(1, 2, 3), (4, 5, 6), (7, 8, 9), (4, 0, 1)]
 
for (a, b ,c) in l:
    print(f"{a}, {b}, {c}")
 
:
 
1, 2, 3
4, 5, 6
7, 8, 9
4, 0, 1



(0)

module 'collections' has no attribute 'MutableMapping'

, 27 2022 . 15:17 +

, 3.10. , AttributeError: module 'collections' has no attribute 'MutableMapping'.

: 3.9 + 3.2 3.10 + 4.0. 

howto


:  
(4)

, 08 2018 . 01:50 +

. , Qt-. , .

#-*-coding:utf8;-*-
# ver. 2.31
# . . , . ( ), .

#   ,   .

import math

def finput ():
    g = 9.8
    a = input(" \n Enter, \n : \n> ")
    a = zap2point(a)
    if len(a) > 0:
        h = number_test(a)
        if h == "error":
            finput  ()
        else:
            h = float (h)
            u = math.sqrt(2*g*h)
            t = u / g
            u2 = u * 3.6
            print (" : \n{} / \n{} / \n{} {} .".format (fr(u), fr(u2), fr(h), fr(t)))
    else:
        a = input(" : \n> ")
        a = zap2point(a)
        t = number_test(a)
        if t == "error":
            finput ()
        else:
            t = float (t)
            u = g * t
            h = (u * t) / 2
            u2 = u * 3.6
            print (" : \n{} / \n{} / \n{} {} .".format (fr(u), fr(u2), fr(h), fr(t)))

def number_test (a):
    b = ""
    #   1
    #   .
    if a.count (".") > 1:
        pindex = a.index(".")
    else:
        pindex = len (a) + 2
    if len(a) == 0:
        b = "error"
        return b
    else:
    #  
    # ,
    #      
    # ,
    # -
    #
        for char in  a:
            if char in ("1234567890."):
                if char == "." and len (b) > pindex:
                    continue
                b += char
            else:
                print ("***********************\n! \n , \n 34 45.6\n***********************")
                b = "error"
                break
    if b == ".":
        print ("***********************\n! \n , \n 34 45.6\n***********************")
        b = "error"
    return b

#
# ,
# 3.2999999999 3.3,
# ,
# .

def fr (x):
    if x >= 10000:
        x = int(math.modf(x)[1])
    elif x >= 999:
        x = "{:.5}".format(x)
    elif  x <= 0.0001:
        x = "{:.10}".format(x)
    elif x >= 99.9:
        x = "{:.4}".format(x)
    else:
        x = "{:.3}".format(x)
    return x

#  
# ,
#
#
#

def zap2point (h):
    y = ""
    for char in h:
        if char == ",":
            char = "."
        elif char == " ":
            continue
        y += char
    return y
   
# ,
finput()



(0)

, 03 2018 . 23:46 +

. . . HTML,  CSS, JavaScript, Basic 2.0, Pascal, PHP 10 bash .

. , . , . , , , . , , . .

. . . . 



:  
(0)

md5 (v0.20)

, 20 2010 . 01:51 +
md5 Nautilus. ~/.gnome2/nautilus-scripts/ . , file.txt file.txt.md5 . md5sum.md5 . , my_catalog, my_catalog.md5 my_catalog. + md5sum.md5 . . / . , ))). , , , ))). , , md5sum.md5.error , .

, , , .

#!/bin/bash
#	     0.20 (, 21  2010)
#	   wahnbild@yandex.ru
#	 GNU GPL v2 
#	http://www.gnu.org/licenses/gpl-2.0.txt
if [ $# -eq 0 ]
  then
	echo "    " >> md5sum.md5.error
	exit 0;
fi
if [ $# -eq 1 ]
  then
	if [ -d "$1" ]
	then
		md5sum "$1"/* >> "$1".md5
	else
		md5sum "$1" >> "$1".md5
	fi
  else
	until [ -z "$1" ]
	do
		if [ -d "$1" ]
		then
			md5sum "$1"/* >> md5sum.md5
		else
			md5sum "$1" >> md5sum.md5
	fi
    shift
done
fi
exit 0;


. ( ) . ... , . , . md5 , ))). , , - ...



(0)

0.21

, 28 2010 . 17:18 +
0.20 , . , / - ))). , : scriptus-idiotus
. , , ))).

, scriptus-idiotus 0.21:

#!/bin/bash
# scriptus-idiotus 0.21
# (, 13 2010).
# wahnbild@yandex.ru
# GNU GPL v2
# http://www.gnu.org/licenses/gpl-2.0.txt
#
# Script using instructions http://www.liveinternet.ru/users/linux_loader/post119297532/
# http://www.liveinternet.ru/users/linux_loader/post119297532/
until [ -z "$1" ] # ...
do
numb=0;
while [ $numb -lt 1000 ];
do
numb=$(( $numb + 1 ));
filename="$1($numb)";
if [ ! -e "$filename" ]
then
cp -rl "$1" "$filename"
numb=1001;
fi
done
shift
done


http://www.liveinternet.ru/users/linux_loader/post119297532/ . changelog.

1. , .
2. , , :
file-name --> file-name(1)
, file-name(1), file-name(2), file-name(3), file-name(4)... - 1000. ( , - , , ?).

:D.

: . kino.avi kino.avi(1) . , , FAT NTFS :). . 0.22 : file-name --> file-name . , , ... - ...

. :).



:  
(0)

Ƹ ,

, 24 2010 . 18:18 +
, . , ... , ))). .

~/.gnome2/nautilus-scripts/ . , . . . :

#!/bin/bash
sdate=`date +%Y-%m-%d\ %H-%M-%S`;
mkdir "links $sdate";
cp -rl "$*" "links $sdate"/;

" ", . :
 (498x341, 5Kb)

, "links _-- --" . . , . .

.

  1. . , . , . ))). .

  2. /. , . , , temp . temp , ))).

, . , :

#!/bin/bash


new.sh, ~/ ~/.config/user-dirs.dirs . . , , , .

P.S. GPL v2 . , . 3/

howto


:  

 : [1]