Покажи Публикации - soulcollector
* Виж публикациите на потр. | Виж темите на потр. | Виж прикачените файлове на потр
Страници: [1] 2 3 4
1  Linux секция за начинаещи / Настройка на програми / Разрешаване на ssh -: May 06, 2007, 11:16
В slackware-current пакета е версия 4.6pl1 - явно ползваш по-стар slackware. Гледай да инсталираш възможно най-новата (дори да се наложи компилация от сорс ).
Иначе, да installpkg openssh-....

PS. Потърси из интернет как да ограничиш и подсигуриш достъпа до компютъра си през ssh. За малко повече от месец имах близо 1000 опита за злонамерено логване.
2  Linux секция за начинаещи / Настройка на програми / Разрешаване на ssh -: May 05, 2007, 11:51
Пакетът за ssh за slackware  се казва openssh
Първо провери дали все пак не е инсталиран
(в /var/log/packages)
Ако не е - намира се в slackware/n/ на диска (или някое огледало)

След като го инсталираш, би трябвало sshd да се пуска при стартирането на системата. Ако не - разгледай скриптовете в /etc/rc.d/
3  Хумор, сатира и забава / Живота, вселената и някакви други глупости / В eu предстои гласуване на директива, целяща ... -: Apr 24, 2007, 16:33
Само се надявам СКОРО да се предизвика известна реакция, защото като гледам по темата няма много коментари.

Писах на нашите европредставители и
г-жа Антония Първанова ми отговори следното:

Цитат

NApalno vi podkrepyam za iniciativata. Snosti v zala izteche debata po Zingaretti doklada, t.e. IPRED2. Glasuvaneto ste bade utre, sryada. Dovechera ima zasedanie na parlamentarnata ni grupa ALDE i po moe predlozenie ste ima diskusia po temata za da vzemem obsta pozicia po glasuvaneto. Ste vi izpratya i stanovisteto na dokladchika.

SPESHNO, imam nuzda ot konsultacia s vas!!! Molya naj-kompetentnia ot vas speshno da mi zvanne na tel:
XXXXXXXXXXXXX
Ne sam kompetentna po temata i mi tryabvat tochni argumenti za dovechera


 
Ето и въпросния доклад:
Цитат


Nicola Zingaretti

Socialist Group
 
 

For the Attention of

Members of the European Parliament
 
 
 

Strasbourg, 23rd of April 2007
 
 

Subject: Your support to criminal measures aimed at ensuring the enforcement of intellectual property rights
 

      Dear Colleague,

      we are finally approaching the last chapter of this important directive. Somebody expressed her/his concern regarding the text and the whole proposal, but nevertheless the technicality of the theme requires the proper knowledge and confidence of the topic that not all among us have.

      I therefore think that it might be useful to clarify some of the most relevant points of this dossier:
 

1. This is a legislative text aiming at tackling organized crime and the harms produced to European countries due to counterfeiting and infringements of intellectual property rights.

      Organized crime is nowadays a global activity that does not recognize borders nor customs and that can count on extremely strong economic resources.

      It causes a fatal harm to European industries, since it deeply damages the most elementary rules of markets and competition.

      It causes a fatal harm to European workers, because workers employed in criminal activities do not have any kind to protection, security and guarantee given to the regular workers; nevertheless, figures show that during the last ten years more than 125.000 European regular workers lost their job due to the unfair competition perpetrated by counterfeiters worldwide.

      It causes a fatal harm to European consumers, whose rights and guarantees are not respected properly when it comes to the quality of goods bought. It is useless to draft regulations and legislations in favour of consumers' rights if the EU does not have appropriate instruments to fight against dangerous goods.

      It causes a particular harm to patients worldwide, since the flows of counterfeited medicines is constantly increasing. Furthermore, most of these flows pass through European seaports in order to reach poor countries worldwide. The Executive Secretary of the World Health Organization Taskforce, Mr Valerio Reggi, has recently stated that "this legislation, if approved, will provide a great help for the work of this taskforce".
 

2. This report fixes clear borders between what is liable of criminal sanctions and what is not.

      Only infringements committed "on a commercial scale" are liable of criminal sanctions. But the current legislation mentioning the definition of "commercial scale" (art. 61 TRIPS) do not state the explicit exclusion of private users from the sanctions. Now, thanks to amendment 39, all acts committed by "final users for personal and not for profits purposes" would be excluded from the scope of this directive.  
 

3. This report excludes patents' rights and patents' related rights from the scope of the directive.

      Patents, utility models, plant variety rights and supplementary protection certificates are not covered by this report. Given the specific disputes on patents rights and patents' infringements, the report states that these rights have to be protected only through measures of civil law.
 
 

Please do not hesitate to contact us for further informations.
 

With my best regads,

Nicola Zingaretti.

Rapporteur
 



Не твърдя, че от това изобщо ще излезе нещо, но все пак всеки аргумент би бил от полза.
4  Linux секция за начинаещи / Настройка на програми / Цветове на fluxbox -: Sep 19, 2006, 23:43
Всъщност въпросното розово идва от темата на GTK.
Друга тема за GTK и gtk2_prefs  би трябвало да ти помогнат.
5  Програмиране / Web development / Помощ за perl -: Sep 05, 2006, 02:25
Аз  в предния си пост бях сложил
Примерен код

abs ($temp - $temp_t) >= 0.5

 но от обяснението ти какво точно трябва да прави разбрах (явно погрешно), че при падане на температурата съобщение се праща само когато падне под критичната.
6  Програмиране / Web development / Помощ за perl -: Aug 26, 2006, 23:19
Това би трябвало да правиш каквото искаш.
Примерен код

#!/usr/bin/perl
use warnings;
use strict;

sub temp_warn ($$);

my $file = "test.txt";
my $critical = 27.0;

my $temp = `tail -1 tempdaemon.temp | cut -s -d ' ' -f 3`;

open INFILE, "$file" or die "Can't open $file: $!\n";
my $temp_t = <INFILE>;
close INFILE;
chomp $temp_t;

if ($temp >= $critical and ($temp_t == 0.0 or $temp - $temp_t >= 0.5)) {
        temp_warn $file, $temp;
        print "Send note with temperature: $temp\n";
}
if ($temp < $critical and $temp != 0.0) {
        temp_warn $file, '0.0';
        print "Send note with temperature: $temp\n";
}

sub temp_warn ($$) {
        my $file = shift;
        my $temp = shift;

        open OUTFILE, "> $file" or die "Can't open file $file: $!\n";
        print OUTFILE "$temp\n";
        close OUTFILE;
}



Но VladSun може и да е прав, че bash е по - добър избор, а и последният му скрипт ми изглежда еквивалентен.

Към VladSun: за инициализациите имах предвид точно скрипта, който си копирал.



7  Програмиране / Web development / Помощ за perl -: Aug 26, 2006, 00:24
Точно този скрипт силно се съмнявам да работи. А ако наистина работи, бих искал да знам откъде се взима стойността на $temp_a още на ред 6?

Ето до какво го докарах

Примерен код

#!/usr/bin/perl
use warnings;
use strict;

sub temp_warn ($$);

my $file = "test.txt";
my $critical = 27.0;

my $string = `tail -1 tempdaemon.temp`;

my ($date, $time, $temp) = split / /, $string;

open INFILE, "$file" or die "Can't open $file: $!\n";
my $temp_t = <INFILE>;
close INFILE;
chomp $temp_t;

if ($temp >= $critical and ($temp_t == 0.0 or abs ($temp - $temp_t) >= 0.5)) {
   temp_warn $file, $temp;
   print "Send note with temperature: $temp\n";
}

if ($temp < $critical and $temp != 0.0) {
   temp_warn $file, '0.0';
   print "Send note with temperature: $temp\n";
}

sub temp_warn ($$) {
   my $file = shift;
   my $temp = shift;

   open OUTFILE, "> $file" or die "Can't open file $file: $!\n";
   print OUTFILE "$temp\n";
   close OUTFILE;
}


Би могло да се сложи един return в края на блока на първият if с цел да се избегне излишната (в случая) проверка на втория if.



8  Програмиране / Web development / Помощ за perl -: Aug 25, 2006, 04:43
Ами всъщност този файл temp.lock се създава точно с тази цел - след като температурата е станала над 27 градуса, предупреждава и създава файла. Докато файлът съществува и температурата е над 27 няма нови съобщения. Ако температурата спадне и файлът съществува той се трие.
Неудобно в случая е, че всеки път преди да пуснеш daemon-а трябва да си сигурен, че НЕ съществува файл temp.lock

Примерен код

#!/usr/bin/perl

$critical = 27;
$lock = "temp.lock";

$string = `tail -1 tempdaemon.temp`;

($date,$time,$temp) = split / /, $string;

if ($temp >= "$critical" && !(-f $lock)) {
   print "Allert";
   system "/usr/bin/touch $lock";
}

if ($temp < "$critical" && -f $lock) {
   sytem "/bin/rm $lock";
}


Друг вариант е да не използваш такъв файл, а да четеш последните два реда от tempdaemon.temp и да вземеш двете температури. После сравняваш - Ако текущата е над или е 27, а предишната под 27 - ALERT. Т.е

Примерен код

#!/usr/bin/perl
use warnings;
use strict;

my $critical = 27;

# четене на температурите - предполага се, че DATE TIME TEMP са разделени с
# един интервал и всеки ред в tempdaemon.temp e в този вид
my ($temp_b, $temp_n) = split /\n/, `tail -2 tempdaemon.temp | cut -d ' ' -f 3`;

if ($temp_n >= $critical && $temp_b < $critical) {
   print "ALERT\n"
}



PS. За да не стават такива грешки, като тази с $_lock вместо $lock във втория if твоят код е добре да се ползват use warnings; и use strict;
9  Linux секция за начинаещи / Настройка на програми / Avi codec за xmms -: Aug 22, 2006, 00:58
Инсталирал ли си правилно mplayer, със всичките му кодеци?
Ако имаш работещ mplayer, то за XMMS виж:
xmmplayer



10  Linux секция за начинаещи / Настройка на програми / Графичен браузер под конзола? -: Aug 09, 2006, 23:57
Прекомпилирай си links с подръжка за графичен режим и драйвер svgalib или fb, или и двете.
11  Linux секция за начинаещи / Настройка на програми / Не ми се изключва компютъра -: Feb 05, 2006, 00:08
Търсачката "изплю" следното:

http://www.linux-bg.org/cgi-bin....f05c40e
12  Linux секция за начинаещи / Настройка на хардуер / Компютърът ми не се изключва след telinit 0 -: Oct 22, 2005, 22:36
Пробвай с:

# modprobe apm

Просто при мен така работи.
13  Linux секция за начинаещи / Настройка на програми / Nedit -: Oct 16, 2005, 11:00
С помощта на xfontsel си избираш шрифт с кодирането, което искаш (предпологам cp1251) и го поставяш в диалога Preferences -> Text Fonts
Аз използвам Terminus и диалогът изглежда така:

Primary font :
-xos4-terminus-medium-r-normal--14-140-72-72-c-80-microsoft-cp1251

Italic font:
-xos4-terminus-medium-r-normal--14-140-72-72-c-80-microsoft-cp1251

Bold font:
-xos4-terminus-bold-r-normal--14-140-72-72-c-80-microsoft-cp1251

Italic bold font:
-xos4-terminus-bold-r-normal--14-140-72-72-c-80-microsoft-cp1251
14  Linux секция за начинаещи / Настройка на програми / Disc formating?!? -: Sep 26, 2005, 22:24
Например ZipSlack
15  Програмиране / Общ форум / макроопределения с аргументи -: Sep 19, 2005, 18:11
Ами аз го виждам така:
Имаме например:  
Примерен код
#define  max(A, B)  ((A) > (B) ? (A) : (B))
***
m = max(n, p)
***
x = max(y, z)
***
q = max (a+b, c+d)

След предпроцесора трите реда ще изглеждат така:
Примерен код
m = (n > p)? n : p;
***
x = (y > z) ? y : z;
***
q = ((a+b) > (c+d))? (a+b) : (c+d);


все едно викаш нормална функция

P.S Да благодарим на Brian W. Kernighan и Dennis M. Ritchie за примера и затова, че са го обяснили, така че аз да го разбера.
Страници: [1] 2 3 4