Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 149
» Latest member: hjt
» Forum threads: 178
» Forum posts: 1 033

Full Statistics

Online Users
There are currently 8 online users.
» 0 Member(s) | 7 Guest(s)
Yandex

Latest Threads
Call Of Duty: PHP Rules C...
Forum: Game tools
Last Post: Donatosdog
8.8.2018 04:52
» Replies: 72
» Views: 29 863
Proxy Guard
Forum: Bash scripts
Last Post: Donatosdog
8.8.2018 04:24
» Replies: 1
» Views: 2 680
Find apps blocking APK in...
Forum: Guides / Návody
Last Post: Donatosdog
8.8.2018 01:44
» Replies: 4
» Views: 2 619
Google AdSense Extension ...
Forum: Other
Last Post: SaRan
18.7.2018 07:42
» Replies: 34
» Views: 21 662
Call Of Duty: PHP RCon 2....
Forum: Game tools
Last Post: Brenton
14.3.2018 10:39
» Replies: 385
» Views: 126 345
Call Of Duty 2: Kafemlyne...
Forum: Game tools
Last Post: Ashus
6.1.2018 04:17
» Replies: 75
» Views: 30 045
Availability
Forum: Bash scripts
Last Post: Bethune
22.5.2017 01:59
» Replies: 1
» Views: 2 610
How to calibrate low-end ...
Forum: Guides / Návody
Last Post: Ashus
7.5.2017 01:30
» Replies: 0
» Views: 1 428
GIT global configuration ...
Forum: Guides / Návody
Last Post: Ashus
19.4.2017 06:22
» Replies: 0
» Views: 1 277
How to insert separately ...
Forum: Guides / Návody
Last Post: Ashus
7.3.2017 04:15
» Replies: 0
» Views: 1 312

 
  How to calibrate low-end 5.1 speakers volume using Windows controls
Posted by: Ashus - 7.5.2017 01:30 - Forum: Guides / Návody - No Replies

This is a guide to calibrate levels of your cheap 5.1 analog surround sound setup on a Windows machine. If you have an expensive setup, there is YPAO or other automatic setup system with microphone. However to emulate this feature for free with any speakers, this is one way to go. It is especially useful if you go with cables around the furniture on in walls to hide them. The signal may be lost and one rear side will be louder than the other.

You will need these media files:

.mkv   PinkNoise 7.1.mkv (Size: 3,53 MB / Downloads: 0)
.mkv   PinkNoise 5.1.mkv (Size: 2,65 MB / Downloads: 3)
.mkv   PinkNoise 2.0.mkv (Size: 891,58 KB / Downloads: 0)
They all are 1 minute generated Pink Noise 500 - 2000Hz with various track numbers. Select the one you need to match your setup.

Also you will need a smartphone and this app: Sound Meter or a dB loudness meter.

For getting sane environment please use Media Player Classic Home Cinema and after opening a video right click the dark window and select Filters - LAV Audio Decoder. Verify, that you have the checkbox Enable mixing under Mixer tab turned off.

Follow these steps:

  1. Make sure all speakers are set up at fixed posititons according to numerous guides on the net. Make sure all speakers are connected and after opening audio devices you have the correct speaker count set under Configuration button.
  2. Open up audio devices, click on connected speakers and Properties. On Levels tab click the Balance button.
  3. Start your DB meter on your phone and place it on a stool to a position of your ears, right in front of you. You will need a quiet environment, so close the door or tell your roomie to keep it down if you haven't already.
  4. Prepare the test audio file in MPC-HC and play it (you may consider enabling Loop).
  5. Set your speakers volume to medium (not too silent and not reaching their limits).
  6. Put all sliders to 0, try one by one to identify which speakers are used.
  7. For all active speakers (except subwoofer) repeat this: put only the slider of one speaker to 100, wait for a few seconds and mark down the loudness in dB on a piece of paper.
  8. Now look at your paper and find the lowest number (57dB for me). This is the loudness you need to match on all other speakers.
  9. Again go one by one and move the slider to a position in which the loudness is matched while all other sliders are off. Mark these results to a piece of paper.
  10. Set all sliders to positions according the results on the paper you just made.
  11. Subwoofer should be set by ear and to your liking preferably while watching a movie.
  12. You are done. Make sure nobody adjusts balance or surround knob on your subwoofer if it is present, you'd have to repeat this.


  GIT global configuration for Windows
Posted by: Ashus - 19.4.2017 06:22 - Forum: Guides / Návody - No Replies

Fine setting for keeping unwanted changes to a minimum.

Code:
git config --global http.sslVerify false
git config --global core.autocrlf false
git config --global pull.rebase true
git config --global credential.helper wincred


  How to insert separately styled HTML e-mail to heavily styled page
Posted by: Ashus - 7.3.2017 04:15 - Forum: Guides / Návody - No Replies

Use iframe like this!


Code:
<iframe id="unstyled-text" sandbox="allow-scripts allow-popups allow-same-origin" srcdoc="<?= htmlspecialchars('<head><base target="_blank"></head><body>' . $html . '</body>') ?>"></iframe>
<script>
    $(function(){
        // hack for IE and browsers without srcdoc support
        var $u = $('#unstyled-text');
        var $body = $u.contents().find('body');
        if ($body.html() == '')
            $body.parent().html($u.attr('srcdoc'));
    });
</script>


  How to find wide elements when making a web adaptive / responsive
Posted by: Ashus - 14.9.2016 10:39 - Forum: Guides / Návody - No Replies

Provided you have jQuery, open you dev. tools, adjust the window to designated dimensions and put this to the console in your browser:

Code:
$(':visible').each(function(){var w = $(this).outerWidth(); if (w<=360) return; console.log(w, this)})

You can adjust the 360 px number to any number you need for your breakpoint.


  Ford Code service ukbookshelf.co.uk review
Posted by: Ashus - 23.6.2016 12:42 - Forum: English - No Replies

I'd like to just inform any potential Ford V code radio owners, that the service ukbookshelf.co.uk for retrieving lost or never owned radio codes indeed works.
I sent my 3.95 GBP and on Saturday morning the code arrived as promised. And it worked just fine.


  OpenWRT static IPv6 DUID auto-assign script
Posted by: Ashus - 13.12.2015 11:05 - Forum: Bash scripts - No Replies

The script and idea was based on jhnphm's post here.
The idea is to assign client's DUID addresses (IPv6) just like MAC addresses for IPv4 to the config file. The prerequisite is to have odhcpd configured and IPv6 prefixes filled for DHCP clients via LuCI. Since the DUID is required for static IPv6 to work and there are no fields in LuCI, you can use the script after the client is seen for the first time (probably configured dynamically).

Code:
#!/bin/sh

for I in $(uci show dhcp|awk -F '(\\[|\\]|\\.|=)' '{if ($2=="@host" && $5=="name") print $6}'); do # find existing static host entries and find hostnames
    NAME=$(echo -ne $I | sed -r "s/'//g")
    DUID=$(cat /var/hosts/odhcpd |awk -F ' '  "{if (\$1 == \"#\" && \$5 == \"$NAME\") print \$3 }"|head -n 1)  # find duid for existing hostname in leases
    ID=$(uci show dhcp|awk -F '(\\[|\\]|\\.|=)' "{if (\$2==\"@host\" && \$6==\"$I\") print \$3}") # Find placement of host entry
        if [ "$DUID" != "0000000000000000000000000000" ]; then
                echo Found: $NAME = $DUID
                uci set dhcp.@host[$ID].duid=$DUID # Set DUID
        fi
done
echo Commiting changes.
uci commit
killall -HUP odhcpd


  Synchronization of config files and documents among several PCs
Posted by: Ashus - 15.8.2015 09:04 - Forum: Guides / Návody - No Replies

At first I thought about creating a file synchronization tool in PHP myself, but then I read about synchronization and it looked like I'd have to spend a whole lot of my time fixing some special cases, so I googled more and found about SparkleShare. The main advantage is that it can use your own server - no data are sent to clouds (NSA), all data are on all PCs, not just opened remotely on the server (or in some cache).

SparkleShare


You can create a GIT repository on your own linux server using included dazzle tool. This tool installs GIT if needed, creates a new user storage for this purpose and adds authorized keys created on client machines. It can also add more trusted key fignerprints - more clients. And finally it creates shares (projects). After a share is created, you can "mount" it on your client machines. SparkleShare watches for changes and after they are saved completely, they are automatically transferred to the server.

Now for the fun part.. download and install Link Shell Extension and use hardlinks to mirror requested config files to app data locations. On other machines, remove the current config files and create hardlinks to the mounted locations. The only downside is you can't synchronize Windows registry changes, so if you plan to synchronize eg. PuTTY, you need to use a portable version, that exports registry to REG file when the app is closed. IMO small apps like PuTTY portable can be mirrored whole, not just the reg file; also the updates are pretty easy - you just update once and other machines are updated as well.


  Úkoly
Posted by: Ashus - 27.7.2015 10:34 - Forum: Webové stránky a aplikace - No Replies

Malá responzivní aplikace pro záznam časů při práci. Automaticky sčítá časy a data ukládá při změně na server (pro případ pádu pracovní stanice). Dvojklikem se rychle doplní aktuální čas.

Technologie: PHP, JS - AJAX, Webnotification

   

https://ukoly.kafemlynek.cz/


  MarcelaSilber.cz
Posted by: Ashus - 27.7.2015 10:14 - Forum: Webové stránky a aplikace - No Replies

Založeno na vlastním frameworku AshusRS vyvíjeném primárně pro tento web a používaný i pro další weby.
Redakční systém je psaný bez chyb v režimu strict (E_ALL), pro nové verze PHP (5.5+), bez hloupých děr a s maximálním možným zabezpečením při přenosu dat.
Optimalizováno pro SEO, uspokojení Google Pagespeedu a dalších analytických nástrojů.
Obsahuje množství modulů (zatím 7) a další přidávám podle potřeby.
Některé zajímavé klíčové fráze najdou oba hlavní vyhledávače Google a Seznam již na první stránce.
Implementováno vlastní řešení přihlášení přes třetí stranu (identifikace a autorizace na ashus.net) namísto univerzálních hesel, hesla uživatelů jsou pak solena konstantou i proměnnou.
Vzhled byl původně převzat z Wordpressu a upravován se zachováním responzivity pro mobilní zařízení. Téměř čtvrtina návštěvníků přichází z mobilů Wink

   

https://www.marcelasilber.cz/


  Nekuřácké restaurace
Posted by: Ashus - 27.7.2015 09:54 - Forum: Webové stránky a aplikace - No Replies

Systém pro hledání restaurací v okolí s funkční geolokací z mobilu pod záštitou ostravské webhostingové společnosti Banan.cz.

Technologie: PHP, MySQL, JavaScript+jQuery

   

http://www.nekuracke-restaurace.cz
v rámci Banan.cz