Go to Check
--_.
check this coool!!! Great blog!
Friday, February 9, 2024
Saturday, November 25, 2023
wow!! visitors --my page.
Now I can continue writing my story,
https://ideasmoviesetcetera.blogspot.com/2023/11/movie-idea-time-traveling-cowboys.html
So! I turn my this ⬆️
My Movie idea! to a RatRat & Ed my pr2y universe story --full book.
So RatRat is buying spending his reward on local market, when sudently molten core blob of fiery stone like shooting stars all over sky, luckily no one hit near him. Or them because there is also a bar. The local man says to his drinking buddy near tavern "That damn! powerplant it is about to explode but, those stupid inbred owners don't know shit, any normal man could just fix powerplant if get there but all those stupid ugly inbred swamp persons, that own powers station not let anyone in. "
It is from local wise guy.
RatRat thinks his business then: "What are that those metal-eggs"
Shopkeeper: "They are one broken entertainment system, before it lead user a virtual world now it just turns user crazy, you don't want that"
RatRat thinks: __I can't physically match that stupid smelly Ed, but I might can get him using that entertainment system, and when his mind is gone. I stab him! and finally get him good. Then I steal all his stuff.__
RatRat says: "I want it! have monney: here"
Shopkeeper: "Ok, but I warned you"
RatRat "Narf* Narf* I use it as experimental trap."
Shopkeeper: "Ok"
Shopkeeper: "It take any files."
RatRat buys an old movie. dv and they speak boring
Monday, November 20, 2023
Monday, October 30, 2023
Error: Cannot enqueue Handshake after invoking quit: on node mysql
Have you try createPool instead createConnection or insert whole app.get(... inside of query's callback function.
one or both these helps me
sequelize is also good
Wednesday, January 18, 2023
Problem: Fill array by dice numbers; all different 2
function gapLot(){ var array6=[]; var array2=[1,2,3,4,5,6]; var random; for(var i=0;i<6;i++){ //0-5 random= Math.floor(Math.random() * (6-i))+1; if(random==(6-i)){ array6[i]=array2[5-i]; }else{ array6[i]=array2[random-1]; array2[random-1]=array2[5-i]; } } return array6; } console.log(gapLot());
Wednesday, January 4, 2023
Problem: Fill array by dice numbers; all different
You got array of 6,
It need to be fill dice-numbers all less that 6 more than one. We talk about 1,2,3,4,5,6. Minimal O is preferred. I mean few loops as possible to do this task.
Here my solution, throw dice, get 6 add that to array
Next acquire smaller dice, 1-5 the d5 throw this now, it show 4
That is not 5, we must remember 5 is 4, so that when we take yet smaller dice, the data not get lost, to help remember what is what, we have a pre-filled array where numbers are in order.
And now 5 is 4 and 4 is 5. The data.
Yes. Then we dice smaller dice d4->
We got a three, next let's update the helper-array, that what is on the position-4 on the helper-array, is 3 and three is that, what have there before(5). So...
D3 -> 1
the helper-array goes:..
To terminate last two numbers we flip coin.
Thursday, July 28, 2022
This killer C:macro make, C random like it would be JS:random
Javascript random is nice, because it is between 0 and 1; So you can like:
Math.random()*sum where you get then numbers between 0 and the sum
like if sum is 7 it give's random's 0-7. And if you want transfer it out of zero you just add numbers to it.
So it good and easy, but Random in C gives BIG numbers it harder to use, here how you alter it similar to JS-random:
Then use like JS
But you must, before use that JSrandom, make that time seeds thingy, as usually, that make random more random
How it works? Lowest number that C random gives is 32767 that what they promise. If you then use it to "%(modulo)" random it ensure that all numbers are lower than it(32767) or equal. When it(the calculation) be then divided by 32767 it make so that what was before 32767 is now 1 and all other numbers be between 0 to 1.
Monday, January 3, 2022
Brown noise
You know Brown noise the Brownian noise the Brownian motion A random walk. Here some hints how I make it Say: 2D-plane |A|B|C|D|... 1|1A||1B||4C|... 2|2A||2B||4C|... 3|3A||3B||4C|... 4|4A||4B||4C|... . . . . . . Matrix if yuo will How presentate this in 1D dimensional sound buffer? Let another dimension be in higer tenth power 1000 2000 3000... 1001 2001 3001... 1002 2002 3003... . . . It depends the size of matrix how get square area walker to wadel around. basic steps can be: var steps=[1,-1, 1000, -1000, 999,-999, 1001, -1001]; in 999 999 square where there is 999 step-blocs y is over thousand and x 0-999 At the edges it is different, you want it stay, inside think most careful the edges:if((positionnow)%1000==0)
Here if you kive it the normal steps; here being the left edge -1000 0 1000 2000 . . . (The matrix is another way up here) you step out the bounds if dice roll on steps -999, -1 or 999, so here walk need to be the different:var stepsonedge1=[1,2, 1000, -1000, 1002,-1002, 1001, -1001];
I make them edges, to be scarry to that random walker so it take two teps opposite direction, out of them if it is about walk thru them edges. First I thought maybe it teleport on edges the walker back to its original position 500, but then I decide: "Why not this way." . Strange it come this good, that sound, that definitely is the Brownian noise, not all the seeds, if it souds snapping or pounding: Reload the page! the real head scratcher. Here! Is that, there is geometrically 2 between -1 and 1, or is there? The Real paradox!? It makes your head spin. And the dice is js normal vanilla:function getRandomInt(max) { return Math.floor(Math.random() * max); }
--that silent blep* sound comes when sound buffer loop-around back in beginig.
Friday, December 24, 2021
Pink noise test 1
Monday, December 6, 2021
Friday, December 3, 2021
3D BLog has return
Go to Check https://thereal3dblog.com/
-
Press here to hear the Brown noise. Press again and noice go away. Not bad ;) You know Brown noise the Brownian noise the Brownian moti...
-
Press here to hear the test pink noise 1. Press again and bad noice go away. Its not yet sound like in the wiki. sound like error and fire ...