Latest Threads

Forum Statistics
  • Forum posts:1 172
  • Forum threads:183
  • Members:1 486
  • Latest member:lopez


Posted by: Ashus
29.7.2008 11:02
Forum: Webové stránky a aplikace
- No Replies

Webové stránky a aplikace na pozadí internetového rádia RadioGothic.net.

Technologie: PHP "z ničeho", MySQL, LiquidSoap, Cron

Práce:

  • stránky: tvorba designu, vícejazyčná podpora, zobrazování aktuálního počtu posluchačů a aktuální skladby v šoupátku přes AJAX, registrace uživatelů, aktivace účtů ověřením platného mailu, řešení zapomenutí hesla, uživatelská práva, návštěvní kniha s captchou, mazáním a smajlíky, AJAXový chat se smajlíky, uživatelské profily, seznam uživatelů, soukromé zprávy s volitelným upozorňováním na e-mail, pravidelná aktualizace playlistu, aktualizace posledních 20 hraných skladeb, písničky na přání s omezením proti opakování, počet přítomných lidí na stránkách, seznam přihlášených s odkazy na profily, malý přehrávač WMP a SWF v popup okně, grafy posluchačů přes PHP/RRDtool, kontaktní formulář s captchou pro nepřihlášené.
  • backend: vícenásobný AJAX (chat a obnovení názvu aktuální skladby), automatická aktualizace playlistu, skripty pro komunikaci s LiquidSoapem přes telnet - písničky na přání, přepis ID3 tagů na názvy souborů, při nové skladbě vzdálené spouštění aktualizace posledních 20, hlídání časového přepínání práv uživatelů (podle příspěvků), RRDtool.
  • celková doba práce 90h

   

Print this item


Posted by: Ashus
27.5.2008 01:55
Forum: Delphi programs
- No Replies

This tool was developed by Mem. I upgraded it with some GUI changes and added a new variable. WMS is basically an internet browser designed to grab maps to images. It supports all maps, that offer drag-and-drop moving. The only thing I must ask you, is to verify, that the grabbing is allowed in the terms.

.rar WebMapSaver.rar Size: 190,7 KB  Downloads: 837


How to use WMS:
  1. Execute WMS.
  2. Paste or browse to your on-line map, find your area and choose the zoom you need.
  3. Calibrate the area by clicking Position and size, checking the Show checkbox, and resizing the blinking crop rectangle, so no controls could be seen inside. You may want to make the rectangle a bit more smaller, than the actual map size - to make sure it doesn't interfere with controls.
  4. Remember, that the WMS uses the rect to identify where to grab for dragging and where to drop. If it interferes, some of the test buttons (U D L R) won't work. In that case, smallen the area.
  5. Time settings always depends on three things: your computer CPU/mem/GPU speed, your internet connection latency, the map server you choose to grab from. To test the chosen settings, grab 2x2 images and join them. If the result image is OK, you can grab larger areas.
  6. Set your Capture area. For example 5x5 makes 5 images horizontally, then returns, moves one row below and does the same thing again. If you need area to the left and up of your current position, change the Move left and Move up variables. Eg. to grab area 5x5 with current position exactly in the middle, choose Move left 2 and move up 2. The indicator below tells you, how large the final image file will be.
  7. Click Start saving. The indicator changes the color to red and you must not move your mouse until the work is done. To cancel the procedure, hold your Shift button for a while.
  8. When the grabbing is done, use the BitmapCombine tool (requires .NET Framework installed). Remember to enter the same values of X and Y as you entered in WMS. You can choose any of the buttons, that you find the fastest. BMP format is uncompressed - they can make a very large file. PNG needs the whole image to be loaded into memory, it is smaller, much better for vector graphics.

Now you have one big map image. You can either use MS Excel to effectively print separate images to A4 format (you decide how many pages horizontally and vertically it will split into). Or you can upload the image into your PDA / GPS. Before you do so, there's just one more thing to do. You need to calibrate the map, to make the GPS program know, what coordinates correspond to what part of image. I like to use the GPS Tuner tool, if you need guide for calibrating to other programs, just google them.

GPS Tuner uses Map Calibrator, available to download for free:
  1. Execute Map Calibrator.
  2. Click Open Map. Find our big image file (it isn't the default - JPG format afaik). You may need to wait for a while, it has to load into memory.
  3. Move to the left top corner of the map file. Find a precise spot easy to remember, right-click it and choose Add Calibration point.
  4. Switch back to the WMS and find the exact same spot. Find a function to display its exact GPS coordinates. Type them back to the calibrator dialog.
  5. Repeat previous two steps with bottom right corner of the map.
  6. From the Save icon menu, choose Save multiscale map slices. Any other save is fine as well, but multiscale format makes it load very fast at all map scales. The map name should be chosen to describe the area and map type, so you can differ between them later.

Now just copy the output images and calibration files (the whole directory) to the GPS device / memory card. Open it up in GPS Tuner and you're ready to go hiking or geocaching.

Print this item


Posted by: Ashus
13.5.2008 06:56
Forum: PHP scripts
- No Replies

This is a simple script, that converts Czech diacritic characters to non-diacritic in ASCII. I used it to remove diacritics from my phonebook.

Don't use UTF-8 files. All files should be converted to Win-1250 before converting (use PSPad Editor).
Select any text or binary file here for parsing
Save the output file

Try this script live!

Print this item


Posted by: Ashus
20.4.2008 12:35
Forum: Webové stránky a aplikace
- No Replies

Webová aplikace dělaná na zakázku Janíčku Trnečkovi. Potřebuje se se svou bandou domluvit na schůzi (pracovní píchačky / spíchnout se) a podle toho, jak budou moct, se na daný termín můžou přihlásit, odhlásit nebo změnit svůj komentář. Poté admin určí, jestli daný termín potvrdí, stornuje, kompletně zruší, nebo zamkne proti změnám.

Následuje pár obrázků, které řeknou více, než tisíc slov Smile

Prázdný termín:
   

Vytvořený předběžný termín, na který už admin Edu přihlásil:
   

Potvrzený termín, z pohledu admina:
   

Potvrzený termín, z pohledu nepřihlášeného:
   

Potvrzený termín, z pohledu Eda:
   

Potvrzený a zamčený termín, z pohledu Eda:
   

No a tady je jednoduchá správa uživatelů:
   

Ještě dodám, že celá sranda má dva konfiguráky - users.ini a events.ini a tudíž nepotřebuje databázi.

Print this item


Posted by: Ashus
19.4.2008 11:43
Forum: Webové stránky a aplikace
- Replies (2)

Webová aplikace Správa serverů slouží správcům herních a jiných serverů (tj. uživatelům rozhraní) k jejich spuštění a zastavení, aniž by měli přístup k shellu. Byla postavena na zakázku pro potřeby hostingového serveru http://www.n1ce.cz.

   

Aplikace používá PHP funkci exec a sudo. Podpůrné bash skripty se starají o nalezení běžícího procesu, jeho spuštění nebo zastavení. Umístili jsme je do jediného adresáře, ve kterém máme právo používat sudo na jiného uživatele. Zde v praxi používáme jako názvy serverů čísla portů, na kterých běží. Návratová hodnota skriptu je vždy uložena do tabulky.

   

Admini můžou spravovat všechny servery, uživatelé jen ty, které jim admini přidělí. Seznamy serverů se můžou překrývat, tj. více uživatelů může mít právo obsluhovat stejný server.
Admin sám sebe smazat nemůže, ale může mazat ostatní adminy.

Print this item


Posted by: Ashus
19.4.2008 12:54
Forum: Bash scripts
- No Replies

A simple script meant to be launched via crontab once a month to keep your offline GeoIP database up-to-date.

Code:
#! /bin/bash

cd /usr/share/GeoIP

wget "http://www.maxmind.com/download/geoip/database/GeoIP.dat.gz" -O GeoIP.dat.gz
7z e -y GeoIP.dat.gz
rm GeoIP.dat.gz

Print this item


Posted by: Ashus
15.4.2008 04:54
Forum: PHP scripts
- Replies (11)

This script converts Points of interest (POIs) from old iGO 2006 format (used by MioMap 3) to the new one - Nav N Go iGO 8 - to keep your PDA/GPS devices happy and up-to-date. To convert you also need iGO POI Explorer. All group names will be kept.

  1. Import old iGO database file to iGO POI Explorer
  2. Export all to CSV file named input.csv
  3. Parse it with this script, the result will be saved as user.upoi
  4. Return the file back to iGO installation dir/save/user.upoi

.rar Convert_POI_iGO6_2_iGO8.rar Size: 1 013 bytes  Downloads: 6106


Use online POI editor instead.

Print this item


Posted by: Ashus
14.4.2008 03:05
Forum: Guides / Návody
- No Replies

Na úvod podotknu, že návod asi rok nebyl třeba, protože na notebooku jsem měl starý BIOS a ten hlásil interní BT modul jako zařízení Windowsům známé. Po upgradu a reinstalaci WinXP nešel nainstalovat Microsoft stack driver - ovladač bluetooth, který je součástí Windows. Z oficiálního FTP serveru Aceru sice šlo stáhnout balík ovladačů na Broadcom BCM 2045 driver, zabíral ale dalších 70MB a nainstaloval spoustu zbytečností. Na mé potřeby komunikace přes MyPhone Explorer stačí pár COM portů. Co je hlavní, po pokusu o komunikaci s mobilem SE W800i, přestal bluetooth na mobilu reagovat a mobil se musel restartnout. S ovladačema od MS jsem takové problémy nikdy neměl a bez problémů fungovalo i rozhraní HID - vzdálené ovládání PC pres BT.

Po přehrání BIOSu všechno ještě jelo jak mělo, ale když jsem se pokoušel udělat čistou instalaci WinXP, okno Nalezen nový hardware vždy našlo jen "Acer Module". Když jsem chtěl hledat kompatibilní a pak i nekompatibilní ale funkční ovladač, nikdy žádný Broadcom nebyl v nabídce.

Googlil jsem dlouho, ale vyplatilo se to. Našel jsem asi rok starý článek od Harsh J, kde podobný problém řešili a použili následující postup:

Pravým na Tento počítač a Spravovat. Tam najděte Acer module nebo podobný neznámý hardware. Pravým a Vlastnosti. Na poslední kartě (Podrobnosti) je rozevírací nabídka. Najděte ID hardwaru a opište si číslo kratšího (u mě USB\VID_0A5C&PID_2101).
Do kolonky nab. Start > Spustit zadejte notepad "%WINDIR%\inf\bth.inf", tím se spustí úprava konfiguračního souboru našeho ovladače. Najděte řádek [Broadcom.NT.5.1] a zduplikujte řádek pod ním - v mém případě jsem pod něho přidával řádek
Acer BCM2045 Bluetooth 2.4 GHz Single Chip Transceiver= BthUsb, USB\VID_0A5C&PID_2101
v závěru jak už si pozorní jistě všimli upravíte opsané číslo ID hardwaru.
Soubor uložte a editor zavřete.

Pak se vraťte ke správci zařízení. Pravým vyberte náš hardware bez ovladačů a zvolte Aktualizovat ovladač. Dále pak Instalovat ze seznamu ručně. Jako jediný by se měl objevit náš nově kompatibilní ovladač a po vybrání se nainstaluje. Zároveň s ním se najde nové zařízení "Bluetooth device enumerator" a ještě síťové zařízení "Bluetooth device (PAN)".
Po otevření vlastností zařízení Acer BCM2045 na záložce Upřesnit najdete pole, do kterého vypíšete název počítače pro okolí BT (název radiostanice). Pak ještě pro jistotu restartujte zařízení čudlíkem pro vypnutí BT modulu.

Vše funguje jak má - naprostá spokojenost a malá zátěž paměti. Konfigurace se provádí přes Ovládací panely - Zařízení Bluetooth.



Poznámka: skoro stejně se postupuje, pokud nemáte k dispozici ovladače nového notebooku údajně kompatibilního jen s Win Vista. Použil jsem ho např. u VGA karty, na kterou nebylo v konfiguráku ovladače napsán přímo můj model, přičemž na podobné modely byl ovladač vytvořen. Pokud se spletete a setkáte se i s BSODem, není nic jednoduššího, než ovladač v Nouzovém režimu zase odebrat a zkusit jiný.

Print this item


Posted by: Ashus
13.3.2008 03:21
Forum: PHP scripts
- No Replies

This is a simple script, that converts XML phonebook from Gammu (Nokia) to MyPhoneExplorer (Sony Ericsson) format. I needed it only once to transfer contacts from an old phone, maybe someone else finds it useful as well.

  1. Export a XML phonebook from any Nokia phone with the app Gammu
  2. Select it here for parsing and save the output
  3. Import your new phonebook to Sony Ericsson phone with the app MyPhoneExplorer


.rar Convert_Phonebook_Gammu_2_MPE.rar Size: 1,85 KB  Downloads: 658

Print this item


Posted by: Ashus
23.12.2007 06:00
Forum: Game tools
- Replies (385)

This is a PHP interface for remote console administration to:

  • Call Of Duty 1
  • Call Of Duty: United Offensive
  • Call Of Duty 2
  • Call Of Duty 4: Modern Warfare
  • Call Of Duty 5: World At War
  • Call Of Duty 6: Modern Warfare 2 (not possible to use until there is rcon implemented to the game)
  • Call Of Duty 7: Black Ops (very limited on ranked, no changing maps, etc.)

Those games share the same rcon protocol with Quake3, so many others may be compatible. Just try it.

What does it do?
It gives you a list of players currently on the server along with colors - rcon status. You may then send any command to the game, including messages to all, private messages, map changes, map restarting, and any other rcon command. Suggests will guide you with a hint on command and variable names and their default values. Next to all players there are links for 'one-click kick' and 'one-click message'. Screenshots taken by PunkBuster on the server can also be retrieved, remotely and securely.

PHP Rcon works everywhere, even if you are sitting at a network with blocked UDP packets - the webserver does the job. That's why you would need to find a webhosting, that would allow you to use UDP connections made by PHP. I recommend to put it on the same machine the gameserver runs on.

Language files:
  • EN - English 2.33
  • CZ - Czech 2.33
  • AR - Arabic (Anees) 2.33
  • DE - German (Scratch, Papacheata) 2.2
  • ES - Spanish (TaRTeSSio, Hades) 2.0
  • FI - Finnish (TunTuri) 2.2
  • FR - French (Max, Dh0mp5eur) 2.33
  • HU - Hungarian (Marcelldzso) 1.8
  • IT - Italian (PietroTC, Nazgul) 2.2
  • NL - Dutch (HippoTraxius, Moustache) 2.3
  • NO - Norwegian (HPH Janni) 2.0
  • PL - Polish (JaReK & HanSolo) 2.2
  • RS - Serbian (Fanatic) 2.0
  • RU - Russian (Anarhist & Koosh87) 2.33
  • SK - Slovak (Eddieee) 2.2



   
   



Screenshots:
.rar PHP-RCon.rar Size: 2,37 MB  Downloads: 2194
.rar screenshot-cleaner.rar Size: 543 bytes  Downloads: 1040
           
.7z PHP-RCon.7z Size: 3,57 MB  Downloads: 949


History:
2.41
Fixed: matching user and server was broken.
Added: Arabic translation (thx. Anees)
Updated: GeoIP lookup library
Fixed: minor errors, PHP7.2 compatibility, code style (code is still a bunch of spaghetti, but a bit more readable); sorry, but I don't have time to rewrite this.

2.40
Added: Russian language (thx. Anarhist & Koosh87).
Fixed: Serious security issue.
Added: Call of Duty: Black Ops support - gametype list, maplist (thx. Anarhist), new map screenshots, dvarlist.
Changed: AJAX communication protocol, uses jQuery exclusively (increased compatibility).
Changed: RCON communication protocol, may be faster, but needs testing on older games, works very fast with COD:BO. $server_buffer_results and $server_extra_wait are deprecated.
Added: Game name aliases (codbo=cod7, codmw=cod4, codwaw=cod5, codmw2=cod6), use whatever you like.
Fixed: Suggest returns focus to input box when selected.
Fixed: Response messages now return OK in COD:BO as it should.
Added: %a in custom commands can be used, admin's name will be used.
Updated: French translation (thx. Dh0mp5eur).

2.351
Fixed: Output of log was not html escaped (thx. Moustache).

2.35
Added: It is now possible to use %m in $custom_cmd[], popping up a dialog window for user input - non-user-specific command.

2.34
Fixed: Screenshot related problems (thx. Moustache). Limited rights users can also see screenshots if they are allowed to make them ($commands_enabled[] = 'pb_sv_getss'Wink.
Fixed: Colored nicknames username detection (different length based on number of colors).
Added: Command can use text only, icons or both. Now $custom_cmd in addition to $custom_cmds is compatible with this syntax, see config.
Fixed: Custom commands with icons in playerlist were line-wrapped.
Added: Custom commands in playerlist ($custom_cmds[]) might be supplied with a javascript (starting with *), see config.
Added: Suggest window gets resized horizontally to match the input box above.

2.33 - new translated strings needed
Added: Screeshot explorer (local and remote).
Changed: CSS was split in two, one site-specific (may be replaced by site-specific design) and one directly involving PHP Rcon elements.
Fixed: Finnish translation was lost in another source.

2.32
Added: Crystal project icons used instead of several links (replaced by jQuery on the fly, can be turned off).
Fixed: code cleaning, moving hardcoded stuff to external css.
Added: GeoIP.dat included with the package, default config resolves countries with internal library.
Changed: Many javascript scripts were replaced by typically only one jQuery line, some elements are now faded slowly.
Added: Country codes are now located in a textfile with their full name alternative and automatically resolved to the mouse hover title.
Added: Country code is now logged with other userinfo, large part of the code had to be moved.
Added: Inline log, re-loaded using ajax everytime the box is opened, automatically scrolled to the bottom.

2.31
Fixed: Corrupted character was not replaced correctly.
Fixed: Headers already sent warning message on login (re-loading user-specific list of servers).
Fixed: The raw UDP command fix was lost in another source.
Updated: Dutch translation (thx. Moustache).

2.3
Fixed: Multiple server configuration was broken by separating scripts from main script.
Updated: JQuery library to 1.4.3pre.
Added: Two variables that could be filled with HTML to use selected map and gametype. New links can be added next to map/gtype select boxes - javascript is used to fill a specific game mod variable with selected map. We use it along with Kafemlynek mod to choose next map forced in upcoming vote menu.
Added: Finnish translation (thx. TunTuri).
Changed: Raw UDP command prefix changed - removed "x\02" as it probably was a bug in all COD games and was fixed in COD5 (WaW) patch 1.5 (thx. Brit_FK, Jimbo). Please report whether this version works on older games.
Changed: Limited access users have most controls hidden.
Added: Checking for available functions in PHP configuration.
Added: Users can be limited to their own servers, they can have more than one, the server config filename must begin with the user's name and $match_user_and_server must be enabled in config.inc.php.
Fixed: Deprecated ereg functions were replaced by preg alternatives (PHP 5.3+).
Added: Log now contains extra data, username and IP info on kicked player. All $custom_cmds (including the command 'tell') also include this data, fully compatible with punkbuster's ID offset.


   


I am accepting new translations, just be in touch to keep your work up-to-date.
Send your work via PM here.

This thread is cleaned from time to time, posts with low value/repeated/outdated are being deleted. Before you ask, please read it trough.


Sadly, I noticed lately, that some of you take my work, change little things and remove my credits.
Use it and modify it freely for non-commercial use, just include my name, as I spent a lot of time developing this tool.

If I helped you with this tool only a little, consider donating any amount of your choice by PayPal on the bottom of this page.

Print this item