Jump to content

Sensei

Senior Members
  • Joined

  • Last visited

Everything posted by Sensei

  1. Sensei replied to studiot's topic in The Lounge
    Here they are called "sleeping policeman".
  2. Chances comparable to winning on the lottery..
  3. Finding appropriate resonance for specific object can have fatal consequences https://en.m.wikipedia.org/wiki/Tacoma_Narrows_Bridge_(1940)#Resonance_(due_to_Von_Kármán_vortex_street)_hypothesis There might be places in the room where are existing constructive interferences.
  4. Watch video from his other thread. The idea is simple. Heat substance with low boiling point so it will change to gaseous state and move to the other end of closed container where it will liquify. Repeat with other end.
  5. People with idea build prototype. Nobody will do it for you. Once you have prototype you can show it on YouTube and Vimeo and make crowdfunding project on e.g. Kickstarter or similar website. If people will see value in your idea, they will give you money to build more professional motors utilizing relatively low boiling temperature 39.6 C of methyl chloride or whatever else you will choose. It will be heat by sunlight I suppose so? I enjoy the idea. But you did not even spend time on description of your idea.. Sounds like you want everything to be done for you by us.. If you will continue this, somebody will use idea without you participating in it at all.. You can start from 3D model. Download 3D application e.g. Blender, LightWave etc. model motor and animate it. Render to image sequence. Then render video. Make professional appealing video with lecturer and present it on Kickstarter. The first stage of building a prototype could be 1) buy 3D printer. Once you will have it, remake what you presented on previous showcase in the real world. This way people will see that it is serious project and will give you even more money to e.g. buy CNC and make metalic prototype. Or invest these initial ~ 500 usd in 3D printer by yourself.
  6. To implement MMU you need knowledge how to program MMU. https://en.m.wikipedia.org/wiki/Memory_management_unit To implement FPU you need knowledge how to program FPU. And how to store IEEE 754 in memory. https://en.m.wikipedia.org/wiki/IEEE_754
  7. I can help you: "grow up"..
  8. That reminds me situation from the past. Language teacher was giving novels to read in such quantity it was physically impossible to read them all and learn anything else including other disciplines, basically 24h was not enough to read them all, forcing the all students in the class to use ready novels summaries instead of reading these books for real. Does it count as cheating if you read brief book summary instead of the real book? Teachers who really bother about it, often ask tricky questions about details which can be known only by person who really spent time reading a book.. Flood of knowledge and great amount of books to read in a short period of time forces students to cheating and taking shortcuts..
  9. If you will hover by mouse pointer that little icon on PC desktop/laptop machine there will appear bubble help with details "(...) joined recently". It changes with icon image. In your case it is shield and text "swansont is a moderator".
  10. Read Java manual.. e.g. https://docs.oracle.com/javase/specs/jvms/se7/html/index.html https://en.m.wikipedia.org/wiki/Java_bytecode There are even physically existing CPUs which understand Java bytecode natively. https://en.m.wikipedia.org/wiki/Java_processor
  11. That is correct. Object and class are building blocks in Java language. Program written in C/C++ is compiled to machine code. Understood by some physical processor. It runs directly only on CPUs which understand it. Program written in Java is compiled to special code. It is executed on virtual machine. Simulation of the real computer. This disallow program direct access to mother machine devices and resources. e.g. if you allocate memory in Java it is from JVM heap. It is problematic on Android for example. Default heap size on my smartphone is.. 128 MB per app. Programmer has to set special field in manifest largeheap=true to get 512 MB. Virtual machine interprets Java special code to the real processor instructions.
  12. This is good for a beginner: https://www.w3schools.com
  13. Read about spatial database: https://en.m.wikipedia.org/wiki/Spatial_database e.g. Google maps, computer game playfield, stars and galaxy database etc. It is an example of data which dictates the most optimal algorithms to store and query records. Sorry. That part was meant to be together with the rest of my reply but was split to two by Prometheus's post written in the middle of my longer reply.
  14. There is no sense to use Kd-tree or octree algorithms on data which are not 3 dimensional. There is no sense to use quad tree on data which is no 2 dimensional. So the number of dimensions of data forces programmer to use or not use specific algorithms. OP said: Therefore I replied, "blackbox is not an algorithm".. No teacher would say "let's apply the blackbox algorithm".. Blackbox is lack of knowledge about specific implementation by unauthorised people. e.g. programmer executing method Collections.sort( list ); has no idea whether it is quicksort algorithm or bubble sort algorithm. Authors of this method/class know what is algorithm used there in the reality. 3rd party programmers don't. Unauthorised programmer can gain knowledge about specific implementation by reverse engineering the code.
  15. Blackbox means that you have no idea how 3rd party library or class is working internally and it can be changed at any time by the creator e.g. your app connects to database. It could be MySQL, SQLite, in-memory db, or something less recognizable.. Blackbox is not an algorithm. Usage of certain algorithms sometimes force programmer to use of specific solutions e.g. hash map requires that class will calculate hash code for supplied data. Lack of proper implementation of hash code method e.g. return 0 all the time, will lead to useless non optimal hash map which will work slower than plain list/array. If you are expecting there will be very few elements in the collection there is no sense to use hash map. It will just slowdown. The amount of elements in collection dictates you what algorithm you should use to have the quickest and the most optimal access to a single element. e.g. list/array of strings (specific data source) "begs" for being sorted alphabetically and then usage of binary search algorithm to find exact element (string) on the list. Binary search algorithm will find element in O(log2(x)) instead of O(x). Make graph f(x) of both functions to see how much can you gain depending on value of x.
  16. @Dave if you will compare computer version of the forum with mobile version of reply UI panel, you should see there are missing buttons e.g. subscript and superscript icons in mobile. Is it fixable?
  17. Don't try to understand, just use them.. You don't understand how computer works but still use it either. Understanding how something works grow together with the amount of stuff that you wrote (programmed). It is not heart surgery. Don't have to know how it works internally with great details. Bugs and problems are unavoidable and common day stuff for any programmer. The best programming tutorials for beginners IMHO are the one which explain "How to write app xxx". Because they are not boring. You immediately see effects. You repeat what tutor is presenting and together with him or her repeat line by line. Attempt to explain everything will lead to uberboring textbook. To store name you need e.g. string. In C++ you write: std::string first_name; Then you need to have surname: std::string surname; Then you need age. Age is integer with years. int age; put them in separate class together: class Person { std::string first_name; std::string surname; int age; } You need to create object of this class so you use: Person *person = new Person(); and you need to initialize it: person->first_name="John"; person->surname="Doe"; person->age=34; Abstract/custom data type. For app which stores people data. You don't need to know how std::string was implemented. And you will never know it. It is blackbox. You can only know what methods and fields were exposed to public and read about their parameters and properties in the reference.
  18. FPU stands for Floating point unit. https://en.m.wikipedia.org/wiki/Floating-point_unit ALU stands for Arithmetic logic unit. https://en.m.wikipedia.org/wiki/Arithmetic_logic_unit If CPU has no builtin instructions which operate natively on the datatype, they need to simulate it in normal code. Such virtual datatypes are created in every C++ or Java project. Programmer-scientist usually needs to have limitless resolution of the number so needs to make (or find library with ready solution) which will allow much better precision than 64 bit integer to 64 bit double. CPU which has no FPU built-in nor external FPU had to simulate IEEE 754 in regular code. If you would like to have 128 bits or 256 bits floating point number you would have to make such code by yourself. It is kinda fun task.
  19. They have meaning. Integers are understood by ALU. Floats and doubles are understood by FPU. These days FPU is builtin CPU. But in '80 and early '90 in 386 and early 486 FPUs were external chipsets. Coprocessor. Floats are in IEEE 754 standard. https://en.m.wikipedia.org/wiki/IEEE_754 It is much harder to convert float or double to human readable format than plain integer. Therefore there is plentiful parameters which you need to bother about during conversion. Read printf/sprints C/C++ manual %f and %g.
  20. Bit can contains value 0 or 1. If we group 8 bits it is byte. The all other data types have resolution in multiple of byte: 16 bits, 32 bits, 64 bits etc. From computer point of view they are always binary. If typical computer application must print number to user, it has to convert binary to decimal (for non-programmers). It is just on screen. Internally it is is still binary. Conversion takes CPU time and memory. In older times sometimes was used BCD. Now I think it is obsolete. https://en.m.wikipedia.org/wiki/Binary-coded_decimal It could be found in e.g. embedded systems. Display and basic maths are easier and takes less time than full binary to decimal conversion (because they need multiplication, division and/or modulo.. which maybe are not implemented in cheaper weaker chips e.g. Atari/C-64 CPU Motorola 6502/6510 don't have built-in multiplication, division and modulo instructions). CPU has flags: zero, overflow, carry, nagative and others. Some CPU instructions modify some of these flags. Usually arithmetic instructions. If you subtract e.g. variable x0 from x1 (register from register/memory) and you get zero result there is set zero flag in CPU. What does it mean? That x0 was equal to x1. Therefore instructions to perform jumps are called je, jne, beq and bne. Shortcuts from Jump if Equal. Jump if Not Equal. Branch if EQual and Branch if Not Equal. They test state of zero flag in CPU. It is what is used by higher level languages if()/for()/while() etc. functions. And by Boolean to check its state and perform jump. What you see on the screen is just bunch of pixels with shape of digit.
  21. I got "nunca mais" which means "never again"..
  22. Inverse square law is e.g. [math]P = \frac{P_0}{4 × \pi × r^2}[/math] From total power of the Sun P0 we get P in W/m^2. And it (P) is what we can measure using physical devices. To get total power of the Sun (P0) we have to reverse inverse square law equation to: [math]P_0 = P × 4 × \pi × r^2[/math] This is also used to measure distance to stars. Earth due to orbiting the Sun is 300 mln km nearer to the star and half year later it is 300 mln km farther from it. Brightness of the star periodically changes due to increased or decreased distance, so we can deduce r (distance).
  23. It the opening post Danilo said "Once, I heard about that the Sun releases 1,7x10^17 J per year".. but gave incorrect value. 3.846×10^26 W is calculated from ~1370 W/m^2 × (~150×10^9 m)^2 × 4 × 3.14159265. It is value that you gave earlier in this thread too. But you didn't multiply by the number of seconds per year to match OP units "J per year". What energy Sun releases per second, or per year, is one thing. What arrives to the Earth is another thing. It gets tricky to calculate what really reaches Earth surface as you have to take into account latitude, longitude, altitude, weather, reflectivity of surface (e.g. white snow reflects light) etc. etc. What is the origin of Danilo's data i.e. 1.7 × 10^17 J.. ? 1370 W/m^2 × 3.14159265 × (6,370,000m)^2 = ~ 1.75 × 10^17 W.. So it is energy per second (without taking into account angle), not per year as Danilo wrote. At noon, and in the best weather possible conditions.
  24. Correction: it must be multiplied by 4 PI. ~1370 W/m^2 × (~150×10^9 m)^2 × 4 × 3.14159265 × 60s × 60 × 24 × 365.25 = ~1.222 × 10^34 J per year. ..and they could work online, and be paid by western country companies, work as e.g. software engineers. Therefore they also need fast reliable Internet connection with the rest of world. This way they won't have to abandoned homes and searching for a better life in the Europe risking losing life in travel.
  25. OP said "per year".. We should calculate the energy which truly arrives to the Earth's surface. With inclusion of day-night variations. With analysis of angle (majority of the land is in the Northern Hemisphere)

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.