Everything posted by Sensei
-
Final year raytracer project question
That's asking a lot, as I said. ...computer programs, utility programs, solve problems if they are not just for entertainment....
-
Final year raytracer project question
Making basic ray-tracer in C/C++ is ~ 1-2 hours project, especially if you will stick to parametric objects like spheres, boxes, planes, therefor objections of teachers about it is too easy for a final degree student project. Do you have experience in OpenGL? Learn especially glDrawPixels() https://docs.microsoft.com/en-us/windows/win32/opengl/gldrawpixels as you will presumably want to use it to output the temporary and final rendering buffer to the screen. From ray-tracing routines: KD-Tree to optimize geometry (if you use some real geometry, not parametric one, which is "too easy to bother" - if you have no parametric objects you have to write I/O loader of some object format like .obj (which is also pretty easy text file, but will take a couple of hours to do it correctly, due to its caveats) - therefor you need/should to partition data to limit the amount of ray-intersection routines to minimum, to not execute it multi-million times per pixel) https://en.wikipedia.org/wiki/K-d_tree eventually Octree: https://en.wikipedia.org/wiki/Octree https://www.google.com/search?q=how+to+find+intersection+of+line+and+plane (instead of plane use also keywords "sphere", "triangle", etc.) Then to shading: https://en.wikipedia.org/wiki/Phong_shading Other algorithms you have in references. https://en.wikipedia.org/wiki/List_of_common_shading_algorithms Not really. OP wanted to make ray-tracer, not teacher. Not really. Making ray-tracer as homework for one or a couple evenings is typical in IT. Yet another ray-tracer.. It would make sense to make yet another ray-tracer, if you would utilize GPU (CUDA/OpenCL) to do it, instead of CPU, or at least give an option to use GPU apart from the CPU. Split to multi-threads is a must have, I think, otherwise your code will run at 1/12 or more of potential of your CPU.. In the easiest implementation, one thread works on Y number of lines at a time. y=screen_height/max_thread_count.. In more challenging, each thread dynamically allocates lines or regions on the screen, which requires some multi-thread communication and synchronization, or thought and experience.
-
The next US President. By the people who know the odds.
https://www.oddschecker.com/politics/us-politics/us-presidential-election-2024/winner Don't worry. There are even Dwayne Johnson and Bill Gates on the table..
-
Computer router and radiation?
My router can be connected to USB to the computer and it works perfectly fine. USB v2.0 has a maximum of 5 V and 1 A, which gives a maximum output power 5 W. But this router draws 1.6 watts. A traditional 100-watt light bulb has 60 times more power than the router. Just to give you idea how little it is. The RF power emitted by the router is literally a fraction of that 1.6 watts, counted in mW (milliwatts).. Additionally it fades with distance..
-
Stars revolving on the sky...
"A picture is worth a thousand words"..
-
Spooky experiences
I spook the boogeymen and they are too afraid to come back..
-
War Games: Russia Takes Ukraine, China Takes Taiwan. US Response?
This is the story of the people who passed through the "Russian infiltration camps". Original: "Російські фільтраційні табори. Українці розповідають про принизливі огляди, допити та хабарі З початку повномасштабної війни росія розгорнула систему так званих фільтраційних таборів. Через них доводиться проходити всім українцям, які хочуть виїхати на території, підконтрольні Україні. Важко повірити, яких принижень зазнають люди, щоб вирватися на волю. Ми поспілкувалися з ними й дізналися про все з перших вуст. Українці, які були в російських фільтраційних таборах на окупованих територіях, розповідають, що вони пережили там. 17-річна Марія Вдовиченко жила в Маріуполі. В один із днів квартира її сім’ї згоріла від прямого влучання російського снаряда. Тоді вона з батьком вирішила виїхати з міста. "Ми взяли найнеобхідніше й вирушили в дорогу на своїй автівці. Навколо тривали бої, але в нас була мета: вибратися з цього пекла", — розповідає дівчина. На одному з блокпостів їх скерували до селища Мангуш — для проходження фільтрації. Там були величезні черги, люди днями перебували без їжі та води. Окупанти максимально все затягували. І так було не тільки тут, а й в інших "таборах". Фільтраційні табори росії: допитують навіть про книги і хобі "Дійшло до того, що ми стояли в черзі на автобус, яким проїдемо 200 метрів до нової черги, — каже 39-річна Наталія Кальна, яка також із сім’єю намагалась виїхати з Маріуполя і котру скерували на фільтрацію у селище Нікольське. — Щодня нам потрібно було приходити о 9-й ранку й чекати, чи буде хоч якесь просування. Для нас це все тривало майже півтора місяця!" Сім’ї Наталії довелося заплатити окупантові 100 доларів, аби пришвидшити потрапляння на... допит. Цю процедуру проходять усі, кому більше як 16 років. Жінка розповідає: на допит викликали по одному. Питали про професію, ставлення до української влади, росіян, війни і навіть про книги та хобі. Обов’язково вивчали мобільні телефони. "Я залишила на гаджеті трохи нейтральних фото, а батько повністю почистив усе, — ділиться Марія Вдовиченко. — Це викликало в окупантів підозру... Тата лупцювали, морально тиснули, погрожували покалічити та вбити. Коли ж зрозуміли, що це не дає результату, на прощання сильно вдарили по голові. Оговтався він уже на вулиці. Під знущальні вигуки росіян ледве дістався нашої автівки..." Другий етап фільтрації: беруть відбитки пальців і не тільки Після допиту українців відправляють на другий етап фільтрації — внесення даних у єдину базу росії. Для цього беруть відбитки пальців, руки та долоні, а також роблять фото. Лише опісля видають папірець, який дає дозвіл на виїзд. Проте отримати той "документ" щастить не всім. "Пам’ятаю, як при нас виводили людей, які не пройшли фільтрацію, — зазначає Наталія. — Їх саджали в якісь автобуси й везли у невідомому напрямку..." Тож можна сказати, що нашим співрозмовникам перепустка на волю далася малою кров’ю. На відміну від 25-річного волонтера Ігоря Талалая, який евакуйовував людей із Маріуполя. Його схопили на одному з блокпостів. "Я був взутий у черевики, це не сподобалося "деенерівцям", — каже харків’янин. — Так само, як і патріотичні світлини в моєму телефоні. Цього виявилось достатньо, щоб позбавити мене волі". Ігор потрапив до рук окупантів 19 березня, а на волі опинився аж 15 червня. Спочатку він майже три тижні просидів за гратами у відділку поліції в окупованому Мангуші (у камері, розрахованій на 5 — 6 людей, було 32!), потім — у Докучаєвську. "Нас не просто утримували, а й проводили постійні допити, били та морально тиснули, — пригадує чоловік. — Росіяни хотіли вибити з мене зізнання у тому, що я якось пов’язаний із військовими. Коли ж заперечував це, звинувачували в брехні". За якийсь час Ігоря Талалая перевезли в колонію у сумнозвісній Оленівці. Умови там були не кращі: двоповерхова будівля без санвузла, в якій дуже тхнуло. Люди спали на старих матрацах чи просто на бетоні. Їсти давали, але порції були настільки малі, що навіть не втамовували голод. Як пережити фільтрацію? "Допомагає віра" Людей, з якими харків’янин перебував у колонії, також утримували безпідставно. "Наприклад, там був чоловік, якого кинули за грати за татуювання герба України, — ділиться співрозмовник. — Також із нами утримували пастора: духовна освіта, здобута у Львові, була для росіян вагомою причиною, аби позбавити волі його із сином, а їхнє майно забрати". Ігор еві пощастило вибратися з полону. Допомогло те, що долею чоловіка опікувалися міжнародні гуманітарні організації. Після пережитого йому таки виписали довідку про проходження фільтрації... "Увесь той жах нам допомогла пережити віра, що Бог не дає на долю людини випробування, які вона не може витримати, — підсумовує Марія Вдовиченко. — Ну й бажання вижити: на зло окупантові, який робить усе, щоб нас знищити". Віталій МІКУЛА" Google translated version: "Russian filtration camps. Ukrainians talk about humiliating examinations, interrogations and bribes Since the beginning of the full-scale war, Russia has deployed a system of so-called filtration camps. All Ukrainians who want to leave the territories controlled by Ukraine have to go through them. It's hard to believe the humiliations people go through to break free. We talked to them and learned about everything firsthand. Ukrainians who were in Russian infiltration camps in the occupied territories tell what they experienced there. 17-year-old Maria Vdovichenko lived in Mariupol. One day, her family's apartment burned down as a result of a direct hit by a Russian shell. Then she and her father decided to leave the city. "We took the most necessary things and set off in our car. Fighting was going on all around, but we had a goal: to get out of this hell," says the girl. At one of the checkpoints, they were directed to the village of Mangush - to undergo filtration. There were huge queues, people were without food and water for days. The occupiers delayed everything as much as possible. And so it was not only here, but also in other "camps". Filtering camps of Russia: even books and hobbies are interrogated "It got to the point that we were standing in line for a bus that would take us 200 meters to the next line," says 39-year-old Nataliya Kalna, who also tried to leave Mariupol with her family and was directed to the village of Nikolske for filtering. "Every day we had to come in at 9 in the morning and wait to see if there was any progress. It took us almost a month and a half!" Natalya's family had to pay the occupier 100 dollars to speed up getting to... interrogation. This procedure is carried out by everyone who is over 16 years old. The woman says: they called one by one for questioning. They asked about the profession, the attitude towards the Ukrainian authorities, the Russians, the war, and even about books and hobbies. Mobile phones were definitely studied. "I left some neutral photos on the gadget, and my father completely cleaned everything," says Maria Vdovichenko. in farewell, they hit him hard on the head. He recovered already on the street. Under the mocking shouts of the Russian, he barely reached our car..." The second stage of filtering: they take fingerprints and more After interrogation, the Ukrainians are sent to the second stage of filtering — entering data into a unified Russian database. For this, fingerprints, hands and palms are taken, and a photo is taken. Only after that, they issue a paper that gives permission to leave. However, not everyone is lucky enough to receive that "document". "I remember how people who didn't pass the screening were taken out with us," notes Nataliya. "They were put on some buses and taken to an unknown destination..." So we can say that our interlocutors were given a free pass with little blood. In contrast to the 25-year-old volunteer Igor Talalay, who evacuated people from Mariupol. He was caught at one of the checkpoints. "I was wearing boots, the Deener people didn't like that," says the Kharkiv native. "Just like the patriotic photos in my phone. This was enough to deprive me of my freedom." Igor fell into the hands of the occupiers on March 19, and was released on June 15. First, he spent almost three weeks behind bars at the police station in occupied Mangush (there were 32 in a cell designed for 5-6 people!), then in Dokuchaevsk. "We were not just detained, but also constantly interrogated, beaten and morally pressured," the man recalls. "The Russians wanted to force a confession out of me that I was somehow connected with the military. When I denied it, they accused me of lying." After some time, Ihor Talalai was transferred to the colony in the infamous Olenivka. The conditions there were no better: a two-story building without a bathroom, which smelled very bad. People slept on old mattresses or simply on concrete. They gave me food, but the portions were so small that they did not even satisfy my hunger. How to survive filtering? "Faith helps" The people with whom the Kharkiv resident was in the colony were also detained without reason. "For example, there was a man who was thrown behind bars for tattooing the coat of arms of Ukraine," the interlocutor shares. take". Igor was lucky to get out of captivity. It helped that the man's fate was taken care of by international humanitarian organizations. After what he experienced, he was issued a certificate of passing the filtration... "We were helped to survive all that horror by the belief that God does not give man trials that he cannot withstand," concludes Maria Vdovichenko. Vitaly Mikula"
-
Jarlesberg Cheese
"Practice makes master" and "It is better to try and fail than not to try at all"..
-
Jarlesberg Cheese
@studiot due to your thread I spend over an one hour watching tutorials "how to make cheese at home".. there are even companies selling what we need (which is basically a "microbial starter kit" and "microbial rennet enzyme", the rest of the equipment I can print on a 3D printer, just have to reverse-engineer them). From 10 L of milk we can get 1 kg of cheese, and some more ricotta cheese.
-
Jarlesberg Cheese
You must be snobs.. I stopped buying "normal" cheese (e.g. Gouda, Emmentaler, Radamer etc.) (and cured meats too) when they went from $5.1/kg ($2.3/lb) to $7.7/kg ($3.5/lb) this year, as it is too high.. Instead, I prefer to buy more chuck steak for $4.7/kg ($2.1/lb), cheaper and more nutritive.. 1 kg potatoes, onion, and there is food for entire day for ~$3/day. Today will have also special soup soured (fermented rye starter) for $0.5/plate. And thinking about starting making such sour soup by myself to limit costs. Sourdough for sour soup: ps. Anyone here have a cow to borrow? We can also make some experimental cheese..
-
Without any sex, could there be any sexually transmitted infection?
A slap in the face after a kiss, does it count as disconsent? #metoo Does "I am tired of reading crap on the Internet wrote by crackpots"? I am intellectually raped and molested every single day reading crap... #metoo
-
Without any sex, could there be any sexually transmitted infection?
...necrophiles will require a medium (ghost busters?) after your confession..
-
Without any sex, could there be any sexually transmitted infection?
@mistermack Silence! Watching Westworld S04E08! Have you watched season one of Westworld? ..you may be here, without or with, a reason, my little friend.. just to make amuse me.. or to piss me off..
-
Without any sex, could there be any sexually transmitted infection?
I'm not entirely sure what you mean by that. Sounds like a conservative/extremist Christian condemnation of having sex (without which you wouldn't exist). But I was thinking more from the point of view of a pathogen that likes some friendly environment and dislikes another unfriendly one. In friendly one, in some cases, it's vaginal discharge, sperm or blood etc. Pathogen does not think. Doesn't analyze how he/she/it gets there. So it can get there without any sexual activity of the host body.. ps. So don't abuse sex toy dolls if you find one discarded.. Even if you are her type..
-
Without any sex, could there be any sexually transmitted infection?
This depends on the survivability of the pathogen outside the host body.
-
The Real World and Politics/politicians.
@studiot Politicians in some countries have introduced legislation forcing/recommending/advising IT companies to introduce two-factor authentication, meaning that you (user of service) have to enter your phone number and receive an SMS to register and access your online account. If a hacker comes into possession of the IT company database, he/she will not only have your email, name and surname, but also your phone number. FB has leaked ~2.3 billion people's records already. Use Pegasus or Pegasus-like hole and get access to your phone. Check your mailbox and find out what bank account someone is using. Use a banking app to make a transfer or other operation on a bank account.. SMS with confirmation about the transfer will be sent to the same smartphone.. The bank will treat it as you would do it yourself. All communication between the smartphone and the bank's server will go through the smartphone, its IP and authorization data will be included. Complains about unauthorized operation will be ignored.. Studiot, I can call you in the middle of night. "Hello? Sensei Jesus speaking, Studiot".. What for Google needs your phone number? For nothing! What for YouTube needs your phone number? For nothing! What for Facebook needs your phone number? For nothing! What for Yahoo needs your phone number? For nothing! How do you know? https://www.google.com/search?q=booking.com+data+leak "12 Feb 2022 — A massive data breach has been uncovered, totaling in excess of 172 GB of data and affecting an estimated 19 million people."
-
The Real World and Politics/politicians.
@studiot How do you want to force criminals from using someone's address? Politicians have made enough s**t over the years with regulations like cookies, unsolicited mails, non-anonymous SIM cards, non-anonymous emails and online accounts, including private communication.. https://nypost.com/2022/08/09/facebook-gave-teens-private-messages-about-alleged-abortion-to-police/ "Facebook gave teen’s private messages about alleged abortion to Nebraska police" Did you see "Snowden" movie? https://www.imdb.com/title/tt3774114/ All these regulations are a "hacker's heaven".. If a hacker reached top politicians, he would ask for the kind of legislation they have implemented, because it helps hackers..
-
Thermal insulation or conductivity
@geordief Check the physical properties, such as thermal conductivity, the things in question i.e. white paint can be Titanium dioxide or Zinc oxide..
-
Idling on the internet...
@Externet You need to find pid of web browser process: https://www.google.com/search?q=linux+bash+get+pid+of+process store it in some variable or env variable: https://www.google.com/search?q=linux+bash+store+in+environment+variable and use as parameter: https://stackoverflow.com/questions/131303/how-can-i-measure-the-actual-memory-usage-of-an-application-or-process Extract memory usage to yet another env variable and check it if it is greater than your limit: https://www.google.com/search?q=linux+bash+greater+than+or+equal+to and show warning: https://www.google.com/search?q=linux+bash+print+text then delay: https://www.google.com/search?q=linux+bash+delay+seconds Then make loop in bash script. https://www.google.com/search?q=linux+bash+loop
-
What do you regard as the most basic operations in Mathematics ?
Sorry, I don't understand your statement.. What I described is the built-in hardware of the processor in the form of transistors and other electronic components. If engineers could do it with just logic gates, that I mentioned, then analyzing the inner workings of the processor will give you clues on how to do it yourself. Reverse engineer the most basic CPU internals and rewrite as mathematical equation.
-
What do you regard as the most basic operations in Mathematics ?
CPU has internal flags, Z-Zero, N-Negative , to implement greater than, greater than or equal, equal, not-equal, less than or equal, and less than. It is done by fake subtraction (CMP instruction), which result is lost, just sets/clears CPU flags. If a-b == 0 then Z flag is set. If a-b != 0 then Z flag is cleared. If a>b then a-b is positive so N flag is cleared. If a<b then a-b is negative number therefore N flag is set. Z flag can be implemented as series of OR operators. n-th bit OR n-th-1 OR [....] OR 1st bit. N flag is the highest bit of the number with specified number of digits. 8 bits number has 7th bit sign, 16 bits number has 15th bit sign, 32 bits number has 31th bit sign etc.
-
What do you regard as the most basic operations in Mathematics ?
Bitwise operators. https://en.wikipedia.org/wiki/Bitwise_operation NOT, AND, NAND, XOR, OR. XNOR. (if you have AND and NOT, you can make NAND) (if you have OR and NOT, you can make NOR) (if you have XOR and constant %(1), you can make NOT) (and a couple similar equivalences) If you have bitwise operators, you can implement addition, subtraction, multiplication, division, modulo, and so on..
-
testing pure gold jewelry without device?
Gold jewelry is almost never made of 24 karat gold because it is too soft for things that have been worn.... https://www.google.com/search?q=24+karat+gold+as+it+is+too+soft There are 24k coatings.. with internal stuff made from something cheap..
-
War Games: Russia Takes Ukraine, China Takes Taiwan. US Response?
An attack on Taiwan would be China committing suicide.. It is the largest net importer of food, oil and IP.. "China is already the world's largest importer of food. Since 2014, the country's grain imports have remained above 100 million tonnes. It imported 115.1 million tonnes of grain during the first 10 months of 2020, up 28.5 per cent from a year earlier." https://en.wikipedia.org/wiki/List_of_countries_by_oil_imports
-
How to identify a stainless steel ? [metallurgy]
At my old scrap yard they just used magnets. If something was attracted by a magnet, they classified it as non-stainless (3 times lower price than stainless). I told them it wasn't enough to classify, and they replied "we're not a lab"....