Zobrazují se příspěvky se štítkemprojekty. Zobrazit všechny příspěvky
Zobrazují se příspěvky se štítkemprojekty. Zobrazit všechny příspěvky

sobota 24. března 2007

Barevny make / Coloured Make

Jazyk: Perl

Kratoucky a rychle napsany skriptik, ktery pouziva make a dela to, co make, ale vystup je barevny (udela make a zbarevni vystup). Je to uplne prvni verze obsahujici malicko pravidel. Jestli se vam to libi a budete si doplnovat vlastni dalsi pravidla, budu rada, kdyz mi je poslete. Perl moc neumim, takze i dalsi pripominky ohledne efektivity atd. uvitam.

Download: skript: mymake.pl 1.7kB

Language: Perl

Short and quickly written script that uses make, bahaves almost like make and the output is colored (calls make and colors the output). This is very first version with a small amout of rules. If you like it you can add your own rules and I will be happy if you send those to me. I'm not perl expert so all notes are welcomed.

Download: script: mymake.pl 1.7kB

sobota 24. února 2007

Process Killer

Jazyk: C
Napsal David

Process killer je urcen pro platformu Windows NT. Vypise tabulku bezicich procesu spolu se zakladnimi informacemi (jmeno, pid, parent pid, cpu usage, priorita, pocet vlaken a handlu, vyuziti pameti, cas behu), dale umi ziskat dalsi informace o procesu(ech) na zaklade jmena nebo pid procesu: jmeno procesu, cesta, prikazova radka, pid, parent pid, vyuziti procesoru, priorita, pocet vlaken a handlu, cas behu, cas spusteni, cas v kernelu, cas v usermodu, jmeno tokenu, uziti memory a spicka, uziti virtual memory a spicka, uziti pagefilu a spicka, uziti paged a nonpaged pool a page faults. procesy umi vypsat ve tvaru stromecku, umi je killovat, vcetne systemovych (s pravy debugeru,systemu i driveru).

Download: Zdrojak: pskill.zip 65.2kB

Language: C
Written by David

Process killer is for dedicated Windows NT platform. It can show the table running proceses including the basic information (name, pid, parent pid, cpu usage, priority, number of threads and handles, uasge of the memory, time of running of the process). It also can get more information about the process from given name or id of process: process name, path, command line, pid, parent pid, the meassure of usage of the processor, priority, number of threads and handles, running time, time of start, kernel time, usermode time, token name, usage of memory and the top, usage of virtual memory and the top, uasage of pagefile and the top, usage of paged a nonpaged pool and page faults. Processes can be written at the form of a tree, it can kill them including system processes (with rights of debugger, system or driver).

Download: Source code: pskill.zip 65.2kB

neděle 4. února 2007

Manager pro Linux / Manager for Linux

Jazyk: C

Manager urceny pro Linux. Umi podobne ukony jako ls, ls -l, cp, rm, mv, ln, ln -s, chmod, ps, kill.

Download: Zdrojak: manager.tar.gz 10.48kB
Language: C

Manager for Linux, can be used like ls, ls -l, cp, rm, mv, ln, chmod, ps and kill.

Download: Source code: manager.tar.gz 10.48kB

sobota 3. února 2007

Jak ovladat Anicku

Anicka je IRC bot na kanale #mff.cuni na quakenetu.

Proc Anicka?
google video

seen

prava: vsichni

!seen nick             ... kdy naposledy se nick vyskytl na kanale
!chanstats, !seenstats ... stistiky
!lastspoke nick ... kdy naposledy nick neco napsal
learn

prava:
zmena, mazani, pridani pouze operatori
cteni vsichni
!add a b   ... zadefinuje a jako b
?? a ... vyzada definici a
!ins a c ... prida dalsi definici pro a
!del a x ... smaze tu z definic a, ktera ma cislo x
!forget a ... smaze vsechny definice a
!mod w n ... smaza dosavadni vyznamy slova w a nahradi je novym vyznamem n
!lock a ... znemozni menit a mazat definice a
!unlock ... zrusi !lock
!locklist ... vypise seznam uzamcenych slov
!forceback ... vynuti zalohovani prave ted (jinak se zalohuje pravidelne)
!learninfo ... informace o skriptu
!lhelp ... napoveda
uptime

prava: vsichni
!uptime
bad word

prava: vsichni

kickne za sprosta slova
/msg Anicka bword           ... napoveda
/msg Anicka bword add slovo ... prida sproste slovo do databaze
/msg Anicka bword del slovo ... odstrani sproste slovo z databaze
/msg Anicka bword list ... vypise databazi sprostych slov
zanechavani zprav

prava: vsichni

zanecha vzkaz, dotycnemu se zobrazi, ze ma novy vzkaz, kdyz vstoupi na kanal. prosim, mazte sve prectene zpravy! maximalni pocet zprav pro jednoho uzivatele je 2 - pokud je nesmazate, nebudete moci prijimat dalsi.
/msg Anicka .putnt komu zprava  ... zanecha komu zpravu
/msg Anicka .getnt ... vyber vasich zprav
/msg Anicka .delnt ... smaze vase zpravy
google

prava: vsichni

napise prvni odkaz na googlu pro zadana klicova slova
!google klicova slova ... prvni odkaz na google
!image klicova slova ... prvni obrazek nalezeny na googlu
anonymni poznamky

prava: vsichni

co ji napisete v soukrome zprave, rekne verejne
/msg Anicka say text  ... rekne "text"

středa 1. března 2006

Konzolove ps pro Windows / Console ps for Windows

Jazyk: C

Konsolova aplikace s jistotou funkcni pod Windows 2000 a Windows XP, umi vypsat seznam bezicich procesu, jejich PID, a vsechny TID co v nich bezi. Procesy lze vypsat i do 'stromecku', ze ktereho bude patrne, kdo je ci otec. Existujici procesy je mozno okamzite ukoncit. K dispozici je volba 'force', ktera umoznuje ukonceni i systemovych procesu (jako smss.exe, winlogon.exe apod.). Program umi zjistit prikazovou radku, se kterou byly danne procesy spusteny. Program nepouziva psapi ani toolhelp, misto toho vyuziva native api funkce.

Download: Zdrojak: ps.zip 11.87kB

Language: C

Console application for Windows (should run correctly at W2k and XP) that can print out the list of running processes including PID and all their TIDs. Output can be also formated into the the "tree" that shows who is whom parent. Runnning proceses can be terminated. There a "force" parameter to kill system processes (like smss.exe, winlogon.exe and so on). Program can show a command line that started any process. Program doesn't use psapi nor the toolhelp - instead of those it uses native api functinos.

Download: Source code: ps.zip 11.87kB

pátek 24. února 2006

Reseni rubikovy kostky / Solution of Rubik's cube

Jazyk: Prolog

Relativne kratky, pekne napsany a zdokumentovany kod.

Download: Zdrojak: zapoctak-rubik.pro 22.9

Language: Prolog

Quite short, very nice written and documented code.

Download: Source code: zapoctak-rubik.pro 22.9

sobota 14. ledna 2006

Symbolicka integrace / Symbolic Integration

Jazyk: Prolog

Vstupem je term reprezentujici matematicky vyraz a promena, podle ktere se integruje. Vystupem je term reprezentujici matematicky vyraz vysledku, coz je v tomto pripade neurcity integral vstupniho vyrazu podle zadane vstupni promenne. Integrator umi pracovat s nasledujicimi matematickymi funkcemi: +, -, *, /, ^, sin, cos, log, exp. Integrator umi pri integraci pouzi­vat nasledujici metody integrace: elementarni tabulkove pripady, per partes, substituci. Mezi uzitecne pomocne predikaty patri mimojine derivace a zjednodusovani vyrazu.

Download: http://www.edisk.cz/stahnout-soubor/54840/integrator.pro_54.71KB.html

Language: Prolog

The input is the mathematical term and the variable that denotes the integration. The output is the mathematical term that is the result of the symbolic integration. This integrator recognises following mathematical operations: +, -, *, /, ^, sin, cos, log, exp. It uses following methods of integration: elementar cases, integration by parts, substitution. There are auxiliary predicates like derivation and simplification of the term.

Download: http://www.edisk.cz/stahnout-soubor/54840/integrator.pro_54.71KB.html

úterý 5. července 2005

graficke ps pro windows / Graphical ps for Windows

Jazyk: Delphi, C

Okenkova aplikace, umi:
  • vypis vsech bezicich procesu a jejich vlaken (jmeno, pid, vlakna)
  • vypis vsech bezicich procesu ve forme stromu (je zrejme, kdo je ci potomek (jmeno, pid)
  • uzivatel muze zadat pid, ktery chce killnout a to vcetne systemovych procesu (po zvlastnim potvrzeni, zda to uzivatel opravdu chce udelat). uzivateli je potom oznameno, zda byl proces zabit, nebo proc ne.
  • uzivatel zada pid, ukaze se mu (pokud proces existuje) jmeno a pid procesu, prikazova radka, se kterou byl proces spusten, vsechny jeho nactene moduly. ke kazdemu modulu prida informaci o jeho puvodni bazi, bazi v pameti, velikosti, vstupnim bodu v pameti a plne ceste k modulu.
  • aplikace nepouziva psapi ani toolhelp, namisto toho vyuziva native api.

Download: Zdrojak: gps.zip 406.23kB
Language: Delphi, C

Graphical application that is usable for:
  • printout of all running processes and their threads (name, pid, tids)
  • printout of all running processes at the tree format (name, pid; it shows who is whom parent)
  • user can enter the pid to be killed (including system processes)
  • user can enter pid and then see the name of the process, pid, command line and all loaded modules of the process. to each modul there is information about it's base address, size, entry point and the full path to the module.
  • application doesn't use psapi nor toolhelp, instead of it it uses native api.


Download: Source code: gps.zip 406.23kB

pondělí 16. května 2005

Jednoducha sprava emailove konference / The Simple Administration Tool for an Email Conference

Jazyk: bash, awk, sed

Skript, ktery se vola ve ~/.forward. Umi registrovat a odregistrovat uzivatele, kontroluje opravnenost uzivatelu prispivat do konference, preposila prispevky, archivuje, loguje...


Download: Zdrojak: mailiky.sh 4.04kB

Language: bash, awk, sed

The script that is called at ~/.forward. It can register and unregister the user, checks the permission of user to write to the conference, forwards messages, archives messages, creates logs...

Download: Source code: mailiky.sh 4.04kB

pátek 11. března 2005

Formatovac zdrojoveho kodu v C do latexu / Formating C code into Latex

Jazyk: Pascal

Vstupnim souborem by mel byt soubor obsahujici zkompilovatelny zdrojovy kod v jazyce C. Na vystupu bude Latexem prelozitelny soubor.

Download: Zdrojak: main.pas 25.76kB

Language: Pascal

The input file should be the C source file that can be compiled. The output is the Latex file containing given source code.

Download: Source code: main.pas 25.76kB