Sunday, July 31, 2022

The Queen was macho???

I already said that when was the horror kingdom of the Era primitive, the king was my uncle and I was chosen to replace him because all his nephews started to say horrid things about the one he liked for the place and he choose me because I was the tallest, and a cousin when saw me to the be the King said that wanted to be the Queen that he would emasculate himself I said that wasn't need because I would be his male, the dick would be in his ass. But something that I didn't say was that I was jealous of him because I monitor him all the time, I was being very faithful and for me was also don't have a woman that could give me sons, he was a smart gay he could sneak with a woman and me be the fool if he could get one woman I could get 10. And had men that tried got my Queen, but married he was my woman, and all the time that happens I forced him to be male with the guy, I sit and watch my Queen fuck the ass of the other, in the first times I said riven his ass because tonight I will rive yours, one that tried run from the room we beat him very bad, was less than 10, I was King and I was revenging of who try to betray me with my wife.

Rute Bezerra de Menezes Gondim

Js why multiply the random for the number works

 You imagine that is magic but isn't, the Math.random() will return an number between 0 and 1, so you can't imagine how helpfull is this when you need to sort a number between o and 10000, intuitively you see that only could work, because you gonna multiply for 10000, so will appear something like 0,120638353..., but see if you need choice randomly the color the parameters are the top 255 for red 255 for blue and 255 for green, see if I gonna have a number betwen 0 and one so gonna be a '0' an decimal separator and a collection of numbers, see I will never gonna have a number higher than '1' isn't true? And say to me if a multiply 255 or any number for 1 I could have a number higher than 255? No. So a number that is 0,2323(something) how do you spect I have a number higher than 255? So I gonna have with the random multiply for 255 what you have between 0 to 255, and never a number higher. Rute Bezerra de Menezes Gondim



Fashion passes don't you agree?

Think that way, about soap for the eyebrows, today is cool because is the today trend, but the result isn't that pretty, so one day 15 years later when young people look that pictures of that time and see that eyebrows and don't know the context that was a fashion that people brush the eyebrows to be tangled on purpose could imagine that the person in the picture is 20 years older than his own age and that have nothing in the comestic market to make an old lady eyebrow be in the correct place, the lady is so old that the hair is iron nails.

Rute Bezerra de Menezes Gondim

Making a paper envelope

Rute Bezerra de Menezes Gondim

 

Music


 

Just returning from the vacations

I said that I would return from the vacations on August and today being the last day from July, I will return in the Sunday of the next week and stay if one more music and one video teaching how to do paper envelope, until next sunday. Rute Bezerra de Menezes Gondim

Music

 


Saturday, July 30, 2022

Using JS to describe a magic with calculator

And is 134134 divided by some numbers you gonna find = 134, and this way if you do for other number like 234234; 

And first, get the calculator and divide a number like this 732732/732 = 1001, is a big number!!!

we have to discover the numbers that divide that number and leave no rest.

I do that!!!

So let's use code to make that work, here the code:

    <script>

        function find(num){
            let i = num;
            let divid=[];
            while (i>=1){
                num/i;
                if(num%i ===0){
                    divid.push(num/i)
                }
                i--;
            } return divid;
        }
        document.write(find(1001));
    </script>

And the result will be:

1,7,11,13,77,91,143,1001.

Now this is all the numbers that could divide that number but the 91 to 1001 isn't necessary for the magic because they are multiples of the others so if you pick 134134 and in the calculator divide by 7, and after by11 and after by 13 you gonna have 134, or of another way:

If you got 231 and multiply for 7 and multiply for 11 and after for 13 you gonna have 231231. Rute Bezerra de Menezes Gondim

Ps.: A more shit program you can ask after to get the array and make the program discard the result that isn't odd number, so you gonna got each number and divide by the original array and store only the result that isn't divided for none other of the array for that you gonna run a 'for' inside other 'for' and have two variables to count once for the number that will be tested and the other to count every number of the array that will divide.







One time in another incarnation I said

That in the gay community tolerance have to be practiced, and was that there have not only who is homosexual, have the kids of them, was that a gay was complaint about me not be gay, I was there all my life because my parents were homosexual he got there just yesterday and wanted to expel me also have men that dress like women, have a lot of people that are there and aren't exactly gay, and of the same way need the protection of a community, so have to have tolerance and understand all the differents that have there, ok? Rute Bezerra de Menezes Gondim

Js - programming

 One way or of another way, what I gonna say will help you remember that, and when I was making in the college, when use functions to designe programs, and doesn't work, I do it writing the program without function, because more then everything the program have to work no matter have or not a function to make it more lean, and one thing that is what make a function doesn't work, all that is inside of the function is local escope so doesn't work you try pull something outside the function, the only thing that make pick out of the function is the return, you can make a calcuation and say it to print it, that will happen when the function be invoked but, you see the result printed you can't use it, because the function do something you say to print and not to return it to you use of another way, so isn't a mistake is just that you limited the function to write the result, you didn't ask to return the result so is -> return bla bla bla. More that you make the calculation but you didn't say what to do with, doesn't gonna work or that you capsuled the result in a variable also doesn't work if you doesn't use the return the variable is local scope, you have to use the --> return. Rute Bezerra de Menezes Gondim

I still like her

Even she being lesbian, I still like her, if she could stay with a man to have a baby she could also marry with him to be his wife, and when we match before, I was trying to remember with precision, and I remember today, and was in the primitive era, and she lived in a sect that was like a community, women live in the sect and only look for men when want got pregnant when God invented the marriage all that sects disappeared, I didn't said but for my mother was of the same way, she wasn't in the sect of my mother because the sect of my mother was older, in that sect the men were the sons of the followers, when the sons got old they hunt, the sect the followers have the same age, or start a new sect. Rute Bezerra de Menezes Gondim

Wednesday, July 27, 2022

JavaScript 3 diferent ways to do random

 1st is the simplest, number is the interval of  to 0 - to 'number', like if want to sort to 10 or to 100 or to 1000, or if you want draw lots just 6 friends:

    function ram (number) {

        return Math.floor(Math.random()*number);

}

2nd we want to draw lots between two limits, for instance of 7 till 25:

        function random(begging, end) {
            let xz1 = Math.floor(Math.random()*(end+1));
            if(xz1<begging){
                while(xz1<begging){
                    return random(begging,end);
                }
            }else {
                return xz1;
            }
           
        }

But have other way, is you create an loop to store all the numbers that will be sort and they gotting a place in a array, so the first number is the 9 but will be in the itemArray[0], and create a function that sort the index and return the number inside the item idexed. Rute Bezerra de Menezes Gondim 






Monday, July 25, 2022

Flirting could be frighten

That was in another incarnation, was easy I was a man and a had friend that was gay, and I wanted to convince him that he could stay with a man that was heterosexual instead of be with another homosexual, I said to him something that my father said, and was that my father said that he was so gay that when he was being male with another was because he liked to see how big was the ass of his friends.

Rute Bezerra de Menezes Gondim

Wednesday, July 20, 2022

Why is need say that... coding

 you can clearly see that have the commandment to edit the code between the doubles marks and why and when this is needed, I participate in mathematics, physics and biology Olympics of the schools from the State of Ceará, and following the logic of there what is out of the delimited area isn't considered for the score and even the programming working, the answer is wrong if the answer is out of the limits of the answer. So the examiner only would consider for the answer what is in the limit of the page, other pages aren't accepted and the student would receive 0. Talent also is not only understanding the matter but also in a competition complete the tasks obeying the rules of the content, I have a father that was counter follow the rules to have success, this makes part of the great result, and my mother was administrator she was exigent with the writing and page organization.

        if (machineActive) {
            // Add your code here

        } else {
            response = 'The ,achine is turned off. Turn it on to prpcess your score.';
        }

        // Don't edit the code below here!

        const

Rute Bezerra de Menezes Gondim







JavaScript why in short sentence the break is need

 And that was 2 years ago when I was designing an simple program, and I need the break, because was simulating an banking program, and without the break what the program do, it was to read a list and organize the contacts, I used the bubble method, so I need to know the first occurence of an age or last name, but without the break even finding what I request the program went to the last name so something that occur in the second renter the program answer that only occur in the 207 renter, because even finding what I request without the break the program would run till the end and every time it find the name again it will erase the previous and assume that was the first time, I didn't ask it to find how much persons has that name that would be easy I would put an counter to count starting from the 0, thinking that I could rewrite a more longer program to don't use the break, but the break make the things faster, but of course the break have to be inside the conditional. Rute Bezerra de Menezes Gondim 

Wednesday, July 13, 2022

My solution for the MDN skills - conditionals 4


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Test your skills 4</title>

    <style>
         p {
             color: black;
             text-shadow: 2px 2px 2px rgb(66, 96, 53);
             margin: 0.5em 0;
         }
         * {
             box-sizing: border-box;
         }
        section {
            width: 250px;
            height: 100px;
            border: 2px solid black;
            text-align: center;
           
            margin: 80px;
           
        }
    </style>
</head>
<body>
    <h1>Test your skills - 04 - Conditionals</h1>

    <section class="preview"></section>
    <script>

        let machineactive = true;
        let pwd = 'cheese'; // user login

        let machineResult; // will hold the response if machine-on
        let pwdResult; // if login

        const section = document.querySelector('section');

        // Add your code

        (machineactive)? machineResult = 'So the power is on and the system is working': machineResult = 'The power is off, the system is shut down';

        (pwd == 'cheese')? pwdResult = 'The login was sucessfully, welcome to the system':pwdResult = 'The login was\'t executed';

        if(machineactive && pwd == 'cheese'){
            section.style.background = 'yellow';
            section.style.boxShadow = '4px 4px 10px yellow';
        } else {
            section.style.background = 'white';
        }


        // Don't edit the code below!

        section.innerHTML = '';
        let para1 = document.createElement('p');
        let para2 = document.createElement('p');

        para1.textContent = machineResult;
        para2.textContent = pwdResult;

        section.appendChild(para1);
        section.appendChild(para2);        
    </script>
</body>
</html>

To you see what the system when shut down go to the 'let machineactive' and delete true and write false and the button will be written other text and the color of the panel will be white.

Rute Bezerra de Menezes Gondim

My solution for one of the mdn test your skills

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Skills 2</title>
</head>
<body>
    <h1>Test your skills</h1>
    <button>turn on the machine</button>
    <section></section>
<script>
   
    let score = 75;
    let response = '';
    let machineactive = false;
    let section = document.querySelector('section');
    let button = document.querySelector('button');
   


    button.addEventListener('click', ()=>{
        score = parseInt(Math.random()*100);
        machineactive = true;
        getDone();
        section.innerHTML = '';
    let para1 = document.createElement('p');
    let para2 = document.createElement('p');

    para1.textContent = score;
    para2.textContent = response;
    section.appendChild(para1);
    section.appendChild(para2);
    })
   


function getDone()
{    if (machineactive) {
        if(score < 0 || score > 100) {
            response = 'This is not possible, an error has occured.';
       
        }else if(score >=0 && score <=19){
            response = 'That was a terrible score - total fail!';
        }else if(score <= 39){
            response = 'You know some thing, but it\'s a pretty bad score. Needs improvement.';
        } else if (score <= 69) {
            response = 'you did a passsable job, not bad!'
        } else if (score <= 89) {
            response = 'What amazing score! Did you cheat? Are you for real?';
        }
        else {
            response = 'You got a very high score'
        }
    }else {
        response = 'The machine is turn off, turn it on';

    }}
    getDone();
   
       





</script>
</body>
</html>

Rute Bezerra de Menezes Gondim

Tuesday, July 12, 2022

This example of the mdn was missing the CSS...

to be ressamblance with the example, I just give some personal style to don't be the same colors pallete

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Calendar</title>
    <style>
        body {
            font: normal 1.7em Arial ;
        }
        ul {
            width: 600px;
        }
        li {
            width: 100px;
            height: 30px;
            display: inline-block;
            background-color: blueviolet;
            margin: 2px;
            font: normal 30px Arial;
            color: blanchedalmond;
            border-radius: 3em;
            border: 5px groove pink;
       
        }
        select {
            width: 100px;
            height: 30px;
            border-radius: 3em;
            border: 5px groove pink;
            background-color: blueviolet;
        }
    </style>
</head>
<body>
    <h2>Calendar</h2>
    <select name="" id="months">
        <option value="January">January</option>
        <option value="February">February</option>
        <option value="March">March</option>
        <option value="April">April</option>
        <option value="May">May</option>
        <option value="June">June</option>
        <option value="July">July</option>
        <option value="August">August</option>
        <option value="September">September</option>
        <option value="Octomber">Octomber</option>
        <option value="November">November</option>
        <option value="Dezembro">Dezembro</option>
    </select>
        <ul></ul>
        <h1></h1>

   
    <script>
        const select = document.querySelector('select');
        const list = document.querySelector('ul');
        const h1 = document.querySelector('h1');

        select.addEventListener('change', ()=>{
            let month = select.value;
            h1        
            let days= 31;
            switch (month) {
                case 'February':
                    days = 28;
                    break;
                case 'April':
                    days = 30;
                    break;
                case 'June':
                    days = 30;
                    break;
                case 'September':
                    days = 30;
                    break;
                case 'November':
                    days = 30;
                    break;
                default :
                days = 31;

            }
            createCalendar(days,month);
        })
   

        function createCalendar(days,month) {
            list.innerHTML = '';
            h1.textContent = month+','+days;
            for(let i=1; i <= days; i++){
                const listItem = document.createElement('li');
                listItem.textContent = i;
                list.appendChild(listItem);
            }

        }
        createCalendar(31, 'January');

    </script>
</body>

</html> 


Rute Bezerra de Menezes Gondim








Tuesday, July 5, 2022

Peaches

Canvas pixel manipulation 3

Canvas pixel manipulation 3 Grayscale and inverting colors

Monday, July 4, 2022

Too much love collateral effects

And was that have a guy that I love him even we two being men, if depends of me the love only be hugs and kisses forever, but one day in our heaven he said that want went to the world to find a someone to be man with him so I came out of my innocence and thought why that man would not be me, and I show to him that I could even be that in his life, I was being just a child with him, so I have to grow up and show that man that he was looking for was still me, he fight with me I am only soft, so some times I think really he loves me? When people talk about I am be the boyfriend of another man why do I want if I wasn't gay to be passive, I thought what the problem you have digust with man skin? What you think the skin smells different, is that being very hetero, very intelligent I think that my perfect pair is someone kind of rude and very inteligent, I would never take advantage of the oportunity of the birth of the one that I love to have the perfect wife, so I understand the high probability of I having special feelings for another man. Rute Bezerra de Menezes Gondim

And is like the Egypt read hyerogliphos


Study programming by the MDN is like find in the Egypt hierogliphos and try discover what is write, I am not disacouraging nobody of trying but saying that is hard but possible and good for who think that is brilliant, is like the experienc of the Jean-François Champollion and the rosetta stone, he acchieve didn't he? I like Egpty stories, I like the Doctor Phibes because in one of the sequencies he went to Egpty, I like the Death under the Nile, the one with Peter Ustinov and David Niven, the Mumy, Land of the Pharaos with Joan Collins, have an relitive that like very much the 10 Comandments I thought that was only a old movie with scenes with an image very poor of color, I also doesn't like the Sanson and Dalila is other old movie with a image with very poor colors, Salome is a bit better, enough have classics and very old movies. So I was thinking that one day I would look an computer of the time of the cosntruction of the piramids of the Egypt, now I find something more challenging discover the codes of the MDN, is so exciting like the other. Rute Bezerra de Menezes Gondim

Friday, July 1, 2022

Was there and let inspect

 look down

looping panoramic

Canvas Basic animation

Canvas Basic Animation

Looping Panorama

Js about that snippet of animation

This is the part of the code that will animated the hour-pointer, for the minutes and seconds is basically the same understand the seconds is more longer because is making more stilized the seconds pointer, so for the hours, save is because when we being animating the hours we gonna make deep changesin the settings and we gonna want to make the minutes and seconds the state previous the change, so we save to restore to this situation when animating the others pointers, why this code is animated 1st because in the end we gonna ask the window.requestAnimatedFrame(clock) but also because we are saying to print in the screen the hours but the hours are changing all the time of course is more easy to see in the seconds pointer, but we ask Animated the seconds or hours and this is changing all the time, without the method request... everytime we refresh the page will give the hours, with the method the clock moves, the ctx.rotate... - is the reality that change so what make it be animated.

ctx.lineWidth... - stillize the pointer to be of that thikness

ctx.beginPath(),ctx.move(...), ctx.lineTo(...);ctx.stroke() - make the hour pointer without any of that lines we don't gonna see the pointer. 

And how I said we ask a reality that is changing, the time so and the method - requestAnimated... for this we see the animation.

    // Write Hours

    ctx.save();
    ctx.rotate(hr*(Math.PI/6)+(Math.PI/360)*min +(Math.PI/21600)*sec);
    ctx.lineWidth = 14;
    ctx.beginPath();
    ctx.moveTo(-20,0);
    ctx.lineTo(80,0);
    ctx.stroke();
    ctx.restore();

Rute Bezera de Menezes Gondim