Jump to content


Senior Members
  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Sensei

  1. Sensei

    Locusts for Lunch

    ..or simply don't ask "what am I eating?" Frogs taste like chickens with a bit of fishy taste..
  2. Yet another way is to dry banana (or other fruits and vegetables) peels couple weeks/months and mix in blender. Then add to soil. If you have your own garden, you should make your own composter. https://www.amazon.com/composter/s?k=composter
  3. The first which comes to mind is algae.. Yet another natural fertilizer, but not marine, is banana peel. Search net for "banana peel fertilizer".
  4. Sensei

    Locusts for Lunch

    ..you seem to not understand what off-topic is about: whether people eating locusts will or not be infected by zoonotic diseases... Pretty on-topic IMHO...
  5. The whole point of using pseudocode is to have it human readable and understandable and independent from the real computer language (which might be, and usually is, not self-explanatory). Read article: https://en.wikipedia.org/wiki/Pseudocode
  6. Tell this to Diamond Princess passengers.. One infected individual was on board between 20 to 25 January. Taken to hospital and identified as infected by COVID-19 6 days later. 4 February cruise ship has been quarantined and people locked in their rooms the most of time. Three weeks later over 712 people were infected (some more identified after disembarking the ship)..
  7. Helium-4 that we have on Earth is byproduct of decay of radioactive isotopes.
  8. The all elements and isotopes used to be Hydrogen-1 before it fused together billions years ago. Hydrogen-1 has the highest mass-energy per Baryon number ratio.
  9. Sensei

    Locusts for Lunch

    Insects have no lungs. https://en.m.wikipedia.org/wiki/Respiratory_system_of_insects
  10. ANSI-C is the closest. Just change to if(....) printf(....); (semicolon at the end of line of code is required) and add #include <stdio.h> at the beginning. and cast type to float (because %f is used)
  11. In other words, they are product of two prime numbers. They are called semiprimes or biprimes. https://en.m.wikipedia.org/wiki/Semiprime 6 is discrete semiprime.
  12. Sensei

    Locusts for Lunch

    I would find pheromones which attract locusts. And let them get in to hermetic container. Then freeze them and repeat. ps. Pigs will happily eat them after blending.
  13. Instruction is special data in computer memory. Program is sequence of instructions. CPU reads instruction from address specified by special register with name PC (Program Counter). (Read articles below) https://en.wikipedia.org/wiki/Program_counter After reading it, CPU starts executing assigned to instruction operation and PC is incremented by length of the all arguments taken by instruction (it is variable in the most of CPUs and depends on instruction). Different CPUs have different instruction sets. The same value might mean something else (different operation) depending on which CPU is used. Therefore program compiled to one processor is not working with different processor or with different architecture (see below). Even the most basic ANSI C complaint program, requires recompilation if intended to be used on different CPU. There is yet another special kind of register: CPU flags register. https://en.wikipedia.org/wiki/FLAGS_register The most important (and common to the all modern processors) are: Zero, Carry, Overflow and Negative flags. https://en.wikipedia.org/wiki/Zero_flag https://en.wikipedia.org/wiki/Carry_flag https://en.wikipedia.org/wiki/Overflow_flag https://en.wikipedia.org/wiki/Negative_flag These allow computation and comparison of data by instructions. For instance, to check whether one data is equal to another data there is used virtual subtraction of them. Result is lost, nowhere stored, but flag register is updated instead. if data are equal subtraction of them gives zero, therefore Zero flag is set, and BEQ or BNE instructions (or equivalent with different name) can be used to perform jump. B.. is shortcut of Branch, J... is shortcut of Jump. EQ = EQual. NE = Not Equal. Relative jump means addition or subtraction of PC register. Absolute jump means setting PC register to fixed value (address of the next instruction to execute). Read articles: https://en.wikipedia.org/wiki/Instruction_set_architecture
  14. Feature for good guys. Vulnerability for evil guys. Dynamic generation and/or modification of the code to execute is state-of-the-art way to accelerate execution of the code. e.g. JIT. https://en.wikipedia.org/wiki/Just-in-time_compilation With memory protection for code, JIT becomes much more complicated than it can be in the normal circumstances (without "evil guys"). They had code on paper tape, equivalent of non-volatile ROM.
  15. Computer store data in bits. Bit can be 0 or 1. Sequence of 8 bits is byte. It can have values from 0...255 (because 2^8=256). Byte is also used as ASCII character (modern equivalent is Unicode which is 16 bits wide character in computer memory, and encoded in 1-4 bytes in various standards e.g. UTF-8 when it is stored in file). In this article you will find ASCII conversion table i.e. what ASCII code corresponds to which glyph. https://en.wikipedia.org/wiki/ASCII e.g. word "ASCII" is sequence of bytes 65,83,67,73,73. Computer does not know the true meaning of human language words. More information about Unicode standard: https://en.wikipedia.org/wiki/Unicode https://en.wikipedia.org/wiki/Glyph
  16. The basic alcoholmeter is just measuring density of liquid. It costs less than 10 usd on e.g. ebay. https://en.m.wikipedia.org/wiki/Hydrometer You can easily convert saccharometer to alcoholmeter. Get reference 96% ethanol in the shop and add precisely measured amount of water. Record equivalent saccharometer readings. Repeat.
  17. Are you familiar with permeability and permittivity? https://en.wikipedia.org/wiki/Permeability_(electromagnetism) https://en.wikipedia.org/wiki/Permittivity You can reflect, refract, or absorb, or emit photons in radio wave spectrum.. Did you hear about Faraday cage? https://en.wikipedia.org/wiki/Faraday_cage "A Faraday cage or Faraday shield is an enclosure used to block electromagnetic fields." ..and yet another gap in your electromagnetism's knowledge is magnetic domains.. https://en.wikipedia.org/wiki/Magnetic_domain "A magnetic domain is a region within a magnetic material in which the magnetization is in a uniform direction. This means that the individual magnetic moments of the atoms are aligned with one another and they point in the same direction. When cooled below a temperature called the Curie temperature, the magnetization of a piece of ferromagnetic material spontaneously divides into many small regions called magnetic domains. The magnetization within each domain points in a uniform direction, but the magnetization of different domains may point in different directions. Magnetic domain structure is responsible for the magnetic behavior of ferromagnetic materials like iron, nickel, cobalt and their alloys, and ferrimagnetic materials like ferrite. This includes the formation of permanent magnets and the attraction of ferromagnetic materials to a magnetic field. The regions separating magnetic domains are called domain walls, where the magnetization rotates coherently from the direction in one domain to that in the next domain. The study of magnetic domains is called micromagnetics."
  18. Update: 22 millions jobless people in the USA. Within four weeks. https://edition.cnn.com/2020/04/16/economy/unemployment-benefits-coronavirus/index.html How well and wisely these people spend their "vacations".. ? I would suggest them to read and learn C/C++ from e.g. https://www.cplusplus.com/ and/or web design/programming https://www.w3schools.com/ and/or PHP https://www.php.net/ and other computer related activities, which can be remotely performed. It will more wisely spent time that on the front of TV watching entire Netflix all day long.. There are migrants who don't know language. It is good moment to teach them English. Because everything in USA spins around money, everybody should get prepaid Visa/Mastercard with their name, uploaded with money once a day e.g. $30-$50. Person goes to special on-line training website. Performs tests and when they are okay, extra money appears on their prepaid card. We have teaching connected with economic help. For instance, language teaching on-line website could have dictionary of English words or entire sentences. It randomly picks up word/sentence, and couple equivalent meaning to select by user the right one. If somebody selects wrong version, the right one is highlighted (perhaps with image of thing or action, context in which it is used etc.), and new question appears. It should have play button to hear sound sample of word/sentence. It is repeated cycle for e.g. 20, 50, 100 words to learn per day, adjusted to skill of individual. After doing this test for a few hours, even not really bright person, will pick up the right words/sentences. At the end, there is uploaded extra money with amount correlating to score (amount of good/bad answers). System remembers which words/sentences individual learned, and only occasionally rechecks them in the future, giving every day new set of words/sentences.
  19. You can easily do it with them ruining shots. You just have to make a few photos from tripod, instead of just one *). Then in Photoshop you place one photo in background layer, other one in foreground layer, etc. with the rest, if more photos have been taken, and then use eraser tool. It reveals what is in below layer. It is kinda entertaining. Newer Photoshop versions can even do it automatically analyzing sequence of images. See this tutorial: *) I always do multiple shots of the same scene. Because one might be out of focus.
  20. Sensei

    Voting By Mail

    South Korea holds traditional elections on 15 April 2020 (today). See the crowds in front of the offices. If some of them are infected without symptoms it must end up with catastrophe. Just wait one or two weeks... https://www.theguardian.com/world/2020/apr/14/south-korea-votes-in-first-national-election-of-coronavirus-era http://www.apimages.com/Search?query=lee+jin+man+virus
  21. But "RTFM" is the best generic lesson for programmer-to-be, presented in easy to remember and humorous form. The majority of answers for questions programmer will have in the future every day work, are answered in manuals, docs, and in comments made by other programmers, who wrote below manual the main page, in articles leaved for other programmers. "RTFM" should not be taken personally.
  22. 1) Did you read ArrayList class, the all superclasses and interfaces manuals? To do it you use search engine with the name of class, and the name of language that you're using e.g. "ArrayList java" (because ArrayList is present also in the .NET Framework in C#/C++ on MSDN, but has different methods and syntax). https://docs.oracle.com/javase/8/docs/api/java/util/ArrayList.html If you are not familiar with this class, that is where you should start. By reading docs. Every programmer does it. RTFM = Read The Fucking Manual. 2) How to enumerate entries in ArrayList class? 3) How to check whether two following entries are in the right order? ps. If you don't know what to do, RTFM! Print it on your T-Shirt.
  23. In this video author showed something exactly reverse: Just checked. My Android smartphone is clearly showing whether my remote IR pilot is sending signal or not. A 940 nm wavelength LED is typically used in remote controllers. [ref]
  24. Reverse maths going from the end of this sentence to the beginning. i.e. 360$ is needed. Each driveway gives $18. How many driveways is needed? Then continue with the rest paying attention to units/dimensions.. "driveway" can be considered as unit/dimension as well. Did you have "cancelling units"/"dimensional analysis"/"unit analysis" on physics or eventually on chemistry lessons? https://www.google.com/search?q=cancel+of+units
  • Create New...

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.