-
Posts
7954 -
Joined
-
Last visited
-
Days Won
26
Content Type
Profiles
Forums
Events
Everything posted by Sensei
-
If anyone has objections about Trump being Putin's sockpuppet, they should see his reaction to Russia's criminal activities: https://www.nytimes.com/2022/02/22/world/europe/trump-putin-russia-ukraine.html "Former President Donald J. Trump called Russia’s aggression toward Ukraine “genius” and called President Vladimir V. Putin of Russia “very savvy” for describing the troops aligned on the Ukrainian border as peacekeepers." Mr. Trump said: “That’s the strongest peace force I’ve ever seen. There were more army tanks than I’ve ever seen. They’re going to keep peace, all right. No, but think of it. Here’s a guy who’s very savvy.”
-
Electrons are accelerated by an external electric field and have a certain maximum kinetic energy that depends on the strength of the electric field. An electron hitting a screen loses its kinetic energy, the atom in the screen becomes excited, and as it transitions to ground state, it emits photons. The nearly motionless electron is then captured by the electrode. 230V (230 Vrms!) 60 Hz are properties of AC, not quantum states..
-
Download universal automation tool AutoHotKey, and write a script. https://www.autohotkey.com/ It has commands to click LMB, RMB, https://www.autohotkey.com/docs/commands/Click.htm mouse move, https://www.autohotkey.com/docs/commands/MouseMove.htm send key press, and so on. https://www.autohotkey.com/docs/commands/Send.htm I have used it with a web browser (Firefox but does not really matter) to get all the data I needed from websites with protections against crawlers like wget/curl. In your case you should send ctrl-o, open the file, send ctrl-a, send ctrl-c, activate the text editor window, send ctrl-v, repeat. Reading a line of text from a text file: https://www.autohotkey.com/docs/commands/LoopReadFile.htm Then you can paste it in the file requester (after sending ctrl-o) Eventually, list directory to get file names: https://www.autohotkey.com/board/topic/87864-get-list-of-files-in-selected-folder/ Use Sleep to introduce a delay (needed for many things, apps think a human is doing the work, not a bot!) https://www.autohotkey.com/docs/commands/Sleep.htm (e.g., if you send a Page Down/Up/Home/End key, you must wait for the browser to update the window to retrieve data from the page (via screen-grabbing)) An interesting (and very commonly used) command: https://www.autohotkey.com/docs/commands/ImageSearch.htm e.g. open a web browser, make a screen-grab, cut out the icon with the thing you are interested in (e.g. PDF icon), and in the script search for it, send mouse move, send RMB and simulate click on "Save file as..." and repeat... If you use AutoHotKey, any text editor will suffice... It is free to use. But if you like it and use it often, you can make a donation to the authors. Buy from companies that offer PayPal, Google Pay, Apple Pay... They will hide your credit card information.
-
Gravitational Potential Energy in a 2 dimensional Universe
Sensei replied to Vashta Nerada's topic in Classical Physics
2D world is equivalent to 3D world but with one axis constant zero.. e.g. z=0 (which is used all the time by computer graphics cards/modern operating systems, i.e. even when you look at the screen it's actually an accelerated 3D gfx) -
-
..the same can be said by AI "living" inside a game-engine/simulation.. about the things AI sees around it..
-
Define what is alive..
-
...doubtful that they would be interested in knowing about AI in e.g. a game-engine/simulation that has gained self-awareness.. (and it's doubtful I'd be interested in being published in any newspaper for mortals in the first place) how do you prove that the AI has gained self-awareness? ..prove me, you gained self-awareness..
-
Check your drive - you may already have an artificial life on it, but you don't know anything about it either...
-
Server administrators have a built-in "dd" command... e.g. dd if=/dev/null of=/dev/sda bs=64M will wipe the entire HDD/SSD dd if=/dev/sda of=/dev/sdb bs=64M will copy the entire HDD/SSD to a 2nd HDD/SSD dd if=/dev/sda of=/media/root/pendrive/file.img bs=64M will copy entire HDD/SSD to a pendrive https://en.wikipedia.org/wiki/Dd_(Unix) You can backup, wipe out or restore MBR/GPT. https://en.wikipedia.org/wiki/Dd_(Unix)#Master_boot_record_backup_and_restore (Or check if the MBR/GPT has been modified by a hacker. Create a script that reads the MBR/GPT, calculate the hash and compare it to the previous version, possibly sends it to the other machine.... and alert you if it has changed) It works on Windows data. Just download Linux live DVD, Rufus create bootable pendrive, and you can make a backup of Windows data as well.
-
The only "shock wave" we have reading layman's post on the forum..
-
It is also the result of propaganda.. If you prevent people from openly sharing extremist ideas, it doesn't mean that those people will automatically disappear.. They still have their worldview, but hidden underground, sharing it only with people similar to themselves.. Spreading to children and family..
-
Confused about recursion in python-depth first search-:
Sensei replied to shivajikobardan's topic in Computer Science
General tip: Search net for "python online debugger". It will give you for example: https://www.onlinegdb.com/online_python_debugger Copy'n'paste code, and debug it, step-in, step-out, step-over etc. Observe what Python interpreter is doing. Observe how variables change every line. -
@Johnn From the regular electrical grid? There is a couple possibilities. Usually fairly inexpensive, as long as you create them yourself. Cockcroft-Walton generator: https://en.wikipedia.org/wiki/Cockcroft–Walton_generator Marx generator: https://en.wikipedia.org/wiki/Marx_generator Tesla coil: https://en.wikipedia.org/wiki/Tesla_coil Van de Graaff generator: https://en.wikipedia.org/wiki/Van_de_Graaff_generator
-
Experimenting with simulated spotlight inside a 3D application (for a quick check of results): The mathematical equation is rather self-explanatory.
-
Why is it in physics? Sounds like a Computer Science topic, Ray-Tracing, to me.. https://en.wikipedia.org/wiki/Ray_tracing_(graphics) In simulations of real world, we usually have light sources with different types: distant, point, spotlight, area, environment, dome, IES. The main difference between them is the direction vector of the light sample. The distant light type has a uniform vector of light sample direction. It is used to simulate sunlight that is nearly parallel (due to the great distance between the Sun and Earth). The point light type has the light sample direction vector is calculated by the formula: Normalize( hit_position - light_position ) The spotlight type is a compilation of the point light type with the distant light type. You have a vector like in distant type and calculate a vector like in point type (both must be normalized!) and if you will do a dot-product between them you will get a cosine, use arc-cosine to get the angle in radians/degrees, and pass to the gradient function which will return 0 for no light in that direction, or 1 for full intensity, and 0...1 for a smooth transition between the two extremes. When you have both the surface normal vector and the light sample direction vector calculated, you do -dot_product( surface_normal, light_sample_direction ) (note: MINUS!). Then you should get rid of the negatives by max(x,0). Repeat the procedure with more samples from the same light (for multi-sample lights like IES, dome, environment, area), and iterate through all the lights in the scene. To have shadows in backward ray-tracing, the programmer should cast the ray from the hit_position in the direction REVERSE to the direction of the light sample (as in the point light type). If the ray-cast function hits another object before reaching the light position, the evaluated spot is in shadow, and the light sample has no effect on that spot. I hope it will help a bit.
-
What is the best tools/method to draw honeycombs(hexagon)?
Sensei replied to PeterBushMan's topic in Computer Science
Where? In a 3D app? In OpenGL/Direct3D? In the Unity/Unreal etc. game engine? In C/C++/C#/Java etc. ? C/C++ code: void moveTo( int x, int y ) { // fill me } void lineTo( int x, int y ) { // fill me } void hexagon( int x, int y, int radius ) { for( int i = 0; i < 6; i++ ) { double angle1 = 2.0 * M_PI * 360.0 * i / 6; double angle2 = 2.0 * M_PI * 360.0 * ( i + 1 ) / 6; moveTo( x + sin( angle1 ) * radius, y + cos( angle1 ) * radius ); lineTo( x + sin( angle2 ) * radius, y + cos( angle2 ) * radius ); } } In the 3D application. I used the Sphere tool, set Z to 0 to have a circle, changed the number of segments to 6, and then used the Array tool: -
How many % of these people are obese? https://www.weforum.org/agenda/2020/05/this-is-why-people-with-obesity-are-more-likely-to-die-from-coronavirus
-
@StringJunky The keyword here are "laptop", "preinstalled OS"/"OEM OS".. https://en.wikipedia.org/wiki/Original_equipment_manufacturer All of the laptops I bought came with Windows OEM pre-installed. The older ones came with a label on the back with a license key. The newer ones have it encoded into the hardware. All of the desktop computers (x86, Macs excluded) that I bought did not have an operating system pre-installed. They were simply separate pieces of hardware...
-
Aren't you talking about laptops that have the OS preinstalled by default? https://www.google.com/search?q=read+license+key+from+laptop+motherboard
-
Disk failure (especially HDD which takes more energy than SSD) can be a sign of cable problems or PSU problems.. 1) replace SATA cables. 2) replace PSU. Measure the voltages on the power supply. Without a heavy load and with a heavy load. ps. All my problems with PC for the last year were caused by the PSU giving too low a voltage at random times. Periodic heavy use of the CPU/GPU, plugging in DVD drives and several drives caused them to occur faster. PSU does not have to be permanently damaged. It just can give you 4.5V instead of 5V and 11V or 13V instead of 12V. When there is heavy HDD usage, HDD is shutting down, and cannot start spinning again, until reboot. Data on NTFS is lost and logical errors start appearing on volumes. And OS becomes unstable.
-
I saw the movie and enjoyed it. Personally, I think real politicians would have fared worse in a similar crisis. Humanity is facing a climate change crisis. All the politicians have done is raise taxes on CO2 emissions, which has only hit ordinary people in the pockets.. Any reason to raise taxes is good for politicians, all kinds of politicians.. People who have less money in their pockets are less likely to buy expensive electric cars, install renewable power generators, upgrade their homes to zero emission, etc. etc. Which causes people to turn away, to become discouraged, to start fighting change because it affects them personally.. If a crisis similar to the one depicted in the movie were to happen for real, we can expect to see taxes raised..
-
James Webb Telescope and L2 Orbit Question
Sensei replied to exchemist's topic in Astronomy and Cosmology
BTW, if anyone is interested in where JW Telescope is, there is an online tracker available: https://www.jwst.nasa.gov/content/webbLaunch/whereIsWebb.html -
Configure RAID in mirror mode. https://en.wikipedia.org/wiki/Standard_RAID_levels
-
Electron transfer reactions question (ElectroChemistry)
Sensei replied to Dhamnekar Win,odd's topic in Homework Help
As usual in these kinds of questions... Answer them accordingly to your knowledge.... Otherwise it will be a lie! If you don't know the answers to the questions, then you need to read and learn something that is still missing...