921 views

Poučky z pravopisu pro android

Stránka bude zrušena – aplikaci již není možno stáhnout z tohoto webu.

 

 

pravopis ceskeho jazyka

Posted in Uncategorized | Comments Off on Poučky z pravopisu pro android
1,737 views

PHP how to include file from parent directory relative path

If You have an Android project web in PHP code, you can to try this code for including file from parent directory:

Example source code:

// from parent dir
include "./myIncludeFile.php";
 
 
// from parent dir
include __DIR__."/../myIncludeFile.php";
 
// from parent dir or count of slash like as directories count
include substr(__DIR__,0,strrpos ( __DIR__ , "/")).'/myIncludeFile.php'; 
 
 
// from PARENT/parent/
include "./../myIncludeFile.php";
Posted in PHP | Tagged , | Comments Off on PHP how to include file from parent directory relative path
1,017 views

That Eerie Blue Glow and Sleep Deprivation software download

Using an electronic device that emits artificial light – including laptops, smartphones, and tablets – an hour before bed can prevent you from falling asleep. This is a cause for concern. Chronic lack of sleep has been linked to such detrimental health conditions as diabetes, obesity, and heart disease.

Solution:

f.lux
f.lux fixes this: it makes the color of your computer’s display adapt to the time of day, warm at night and like sunlight during the day.

It’s even possible that you’re staying up too late because of your computer. You could use f.lux because it makes you sleep better, or you could just use it just because it makes your computer look better.
Download f.lux from https://justgetflux.com/

Posted in Download | Tagged | Comments Off on That Eerie Blue Glow and Sleep Deprivation software download
1,096 views

Puzzle maker for Windows – download

Make sure the image has a dimension divisible by the number of columns and rows.

  1. Download app – see link below
  2. Create a folder for app
  3. Open app
  4. Select picture, or put path of picture tu text field.
  5. Select number of parts: colmns x rows
  6. Press OK button
  7. Check programm folder for result

puzzle-maker-jk.exe dowload

puzzle-maker-jk-picture

puzzle-maker-jk-picture_promo

Posted in Download | Tagged , | Comments Off on Puzzle maker for Windows – download
1,854 views

JS get window url javascript window location href

window.location.href
Example for debuging of code

if (window.location.href.indexOf('/localhost')!= -1){
// debug code here
 
}
Posted in Javascript css html | Tagged , | Comments Off on JS get window url javascript window location href
1,372 views

JS multi threading thread javascript example

For all browsers e.g. old IE 11 ….

 
 <script>
 
 
 
        var mbThreadOneRunning = false;
        var mbThreadOneEnded = false;
 
        var mbThreadTwoRunning = false;
        var mbThreadTwoEnded = false;
 
        // you can create more than one Thread 
        // setTimeout() used for running more Threads at once
        var timeout_1 = setTimeout("ThreadOne()", 5000); // 5000 == 5 second
        var timeout_2 = setTimeout("ThreadTwo()", 3000); // 
 
        function ThreadOne() {
            mbThreadOneRunning = true;
            alert("1. ThreadOne working!");
            // working code here .............
            mbThreadOneEnded = true;
            clearTimeout(timeout_1);
        }
 
        function ThreadTwo() {
            mbThreadTwoRunning = true;
            alert("2. ThreadTwo working!");
            // working code here .............
             mbThreadTwoEnded = true;
            clearTimeout(timeout_2);
        }
 
 
        var mInterval = setInterval("checkThread()", 1000); // 1000 ms == 1 second, you can put smaller value
 
        function checkThread() {
            if (mbThreadOneEnded == true) {                
                alert("1. checkThread() ThreadOne finish work! " + mbThreadOneEnded);
            }
            else if (mbThreadTwoEnded == true) {
                alert("2. checkThread() ThreadTwo  finish work! " + mbThreadTwoEnded);
            }
            if (mbThreadOneEnded && mbThreadTwoEnded) {
                clearInterval(mInterval); // just to be sure
                mbThreadOneEnded = false;
                mbThreadTwoEnded = false;
                alert("ThreadOne and ThreadTwo ended ");
            }
 
        }
 
 
 
 
 
    </script>
Posted in Javascript css html | Tagged , | Comments Off on JS multi threading thread javascript example
1,404 views

JS how to emulate click on element javascript example

 
    <input type="radio" name="nmRadio" id="idOne" onclick="javascript:myFc(this)">One<br>
    <input type="radio" name="nmRadio" id="idTwo" onclick="javascript:myFc(this)">Two<br>
    <input type="radio" name="nmRadio" id="idThree" onclick="javascript:myFc(this)">Three<br>
 
    <script>
        if (!document.all && document.getElementById) document.getElementById('idTwo').click();
 
        function myFc(ts) {
            alert(ts.id);
       }
 
    </script>
Posted in Javascript css html | Tagged | Comments Off on JS how to emulate click on element javascript example
1,385 views

JS multitype multi type array javascript

     <div id="idMyDiv"></div>
    <div id="idOtherDiv"></div>
 
    <script>
    var myDiv = document.getElementById('idMyDiv');
    var otherDiv = document.getElementById('idOtherDiv');
    // array can contains string, number, object etc.
    var arr = new Array('5', 3, 'hello', 12, myDiv);
 
    if (contains(arr, myDiv)) {
        alert('Contains myDiv');
        idMyDiv.innerHTML = "I found You!!!!! :)";
    } else {
        alert('Does not contains myDiv');
    }
 
    if (contains(arr, otherDiv)) {
        alert('Contains otherDiv');
    } else {
        alert('Does not contains otherDiv');
    }
 
 
    function contains(arr, valueOrObject) {
        for (var i = 0; i < arr.length; i++) {
            if (arr[i] === valueOrObject) {
                return true;
            }
        }
        return false;
    }
 
    </script>
Posted in Javascript css html | Tagged , | Comments Off on JS multitype multi type array javascript
2,504 views

JS Check if an array contains an value or object JavaScript

Tthis code works in all previous versions of browsers

// use ===
function contains(arr, valueOrObject) {
    for (var i = 0; i < arr.length; i++) {
        if (arr[i] === valueOrObject) {
            return true;
        }
    }
    return false;
}
 
// example of usage
// array of strings and numbers
    var arr = new Array('5', 3, '7', 12);
// true
    if (contains(arr, '5')) {
        alert('Contains string 5');
    } else {
        alert('Does not contain string 5');
    }
 
// false
    if (contains(arr, 5)) {
        alert('Contains number 5');
    } else {
        alert('Does not contain number 5');
    }
 
// true
    if (contains(arr, 12)) {
        alert('Contains number 12');
    } else {
        alert('Does not contain number 12');
    }
Posted in Javascript css html | Tagged | Comments Off on JS Check if an array contains an value or object JavaScript
1,890 views

JS sleep wait function javascript use setTimeout

Tthis code works in all previous versions of browsers

Pause code by alert

var n = 1;
alert(n);
 
n = 5;
alert(n);

Set timeout

var n = 5;
// wait 5 second / do next code
// next code put into function and call this function by setTimeout
setTimeout("nextCodeFc (n)",5000); // wait for 5000 millisecond == 5 second and execute
 
// how put string as parameter into setTimeout
var str = "Hello string parameter!";
setTimeout("nextCodeFc(\"str"\)",3000); // produce "str"
setTimeout("nextCodeFc(\""+str+"\")",3000); // produce "Hello string parameter!"
setTimeout("nextCodeFc(str)",3000); // produce Hello string parameter!
 
function nextCodeFc (n){
  // do work .........
 
  alert(n);
}
Posted in Javascript css html | Tagged , | Comments Off on JS sleep wait function javascript use setTimeout
1,890 views