Jump to content

Sensei

Senior Members
  • Joined

  • Last visited

Everything posted by Sensei

  1. Oncogenes do not cause cancer. They just have the potential to cause cancer. that is, after severe code damage during replication, it may prevents programmed cell death. For me thread title sounded more like you are interested in "genetic disorder", "genetic disease", not "cancer".. Damage of the code done several generations ago, which spread to organim offspring. https://en.m.wikipedia.org/wiki/Genetic_disorder To some extent genetic disorders are fixable by specially prepared viruses which will inject the corrected genetic material into existing cells and fix the problem. Such therapy is extremely expensive, counted in hundred thousands or millions USD, per person, and only the richest people can afford it, for the rest there is needed crowdfunding.. https://en.m.wikipedia.org/wiki/Viral_vector https://en.m.wikipedia.org/wiki/Oncolytic_virus
  2. https://dailymed.nlm.nih.gov/dailymed/lookup.cfm?setid=c22944b8-8733-4689-be0c-f320467f79ea&version=15 "Active ingredient (per tablet) Calcium Carbonate USP 750 mg"
  3. ..but OP didn't say the answer should be in Python...
  4. Hangman game? In two weeks? Your teacher is very gracious.. ps. If you will write it in 60 minutes, you will be spared..
  5. Nerds and geeks are not antisocial. They simply don't want to waste their time on talking with lower form of intelligence i.e. people who mock of them.. Nerds and geeks are spending time with other nerds and geeks. Likewise people understand each other, have common worldview, have common subjects for discussions etc. etc.
  6. Regardless of source of data there are stock operations like stock split and stock merge which dramatically change stock price when in the reality they are neutral . Read here: https://en.m.wikipedia.org/wiki/Stock_split https://en.m.wikipedia.org/wiki/Reverse_stock_split Which will completely confuse script or program which doesn't handle them or stock data doesn't contain information about the operation. E.g. one day stock price is $100 and the next day is $20. Script will interpret it as 80% drop of price when in the reality there was no drop but quantity of shares was 5x multiplied. Yet another operation influencing price is dividend. Read here: https://en.m.wikipedia.org/wiki/Dividend
  7. Are you against shale gas and fracking technology only? Or against drilling tradidional way natural gas too? In your posts you are mixing them. 39 mln tones worldwide is leakage from both technologies. Fracking is minority of worldwide production of gas. Contrary to US were it is dominant technology. (People in US are often forgetting that World is not only US..) Decide if you want to talk about US or World. Don't mix World data with US data. Keywords for search engine "natural gas market share" "shale gas market share". https://www.eia.gov/todayinenergy/detail.php?id=27512
  8. It is easy to dismiss it as "prime trigger of global warming". Anthropogenic methane emissions worldwide in 2019 was 363 mln tons. 33% of it was coal, oil and gas production, distribution and usage. USA had 6.2% share of methane emissions in 2012. In 1970 it was over 11%. (in absolute numbers it also dropped). See table in below article. https://en.m.wikipedia.org/wiki/Methane_emissions Coal, oil and gas industry by themselves should be the most interested in methods limiting leakage of methane because they simply can't sell leaked product to end customers and lose money. If entire US would stop coal, oil and gas production and usage (regardless of whether it is using fracking or not), methane emissions worldwide would drop only by 2%. Attempt to fight with anthropogenic global warming is job of entire worldwide population, not just one country, or group of countries. Personally I think attempt to fight with it by taxation is silly and instead of solving existing problems, it makes new ones, economical e.g. movement of investors to countries without this silly CO2 emission tax. Which ends up with people being fired (unhappy and rejecting AGW), production unprofitable, reduction of country export (higher costs of production) etc. etc.
  9. If aim is to have Deuterium, search net how to make heavy water. Once you have heavy water you can just do electrolysis of water. Typical source of Hydrogen in lab is electrolysis of water. Normal tap water has very little amount of Deuterium. Sea water has a bit more. Search net for "abundance of Deuterium". It is 1 per 6400. So there are three possible combinations H2, DH and D2. H2 is the most abundant and D2 is the least abundant. Similar situation is with water. There are three combinations H2O, HDO and D2O. From normal water you make semiheavy water and then semiheavy water is enriched to heavy water. https://en.m.wikipedia.org/wiki/Semiheavy_water From more info read production of the heavy-water https://en.m.wikipedia.org/wiki/Heavy_water
  10. Caching thousands the most used words in ASCII would take a few dozen kilobytes. Not MB. Not GB. But KB. In Unicode 2-4x more. You are caching to not have to lookup things like "I", "you", "it", etc. etc.
  11. Make cache in memory. Check if word is present in dynamically allocated array or key-value pair associative array, if it is, increase usage counter of the entry. If it is not present, lookup the database and put the new entry in the cache. Have 1000, 10000, or so, the most used entries. From time to time flush cache of the least used entries. The most frequently used words-entries-phrases will be cached at all times during execution of the script. You can make separate caches for words, phrase with two words. three words. Each with user configurable max number of entries. In OOP language you should just make class for cache which will cover entire database code.
  12. Do you have SSD? Do you have NVMe? What is transfer of data during db access? How many GB of memory does your computer have? Try using virtual disk in memory to see whether there will be change in speed. How are you storing, querying and updating db? Show SQL query string for them all. You can try: - calculate md5 (or so) of phrase text first. It will be hash code. - phrase table. Use above hash as unique key together with each phrase text. - frequency table. Use above hash code in second table with quantities / frequencies as integer. Therefore update should be faster. Won't require adding or replacing entire string. Alternatively don't store phrases as plain text. Have dictionary with words with unique indices. 4 bytes integer is enough to have 4.2 bln words. Then make phrase dictionary table. One with two columns for word indexes. Second table with three columns for word indexes. etc. in the future you will add more.
  13. @MigL You can't /shouldn't trash old CDs, DVDs, HDDs, pendrives, computers, laptops, tablets, smartphones, anything with your personal data. Especially if they were damaged. E.g. many people thoughtlessly throw away a smartphone with a cracked screen. If the device will be intercepted by a competent person such as a hacker, he/she will fix it and get the all data from it. Possible consequences are stolen identity, yours, a family member or other person (do you have contacts in smartphone with phone numbers and emails? content of emails with long discussion about private subjects). If you can't remove data storage from a device e.g. smartphone or table, you shouldn't use electronic repair service either if you can't see entire process personally. If a hacker works in a repair service, they will get your personal data. You can get an unwanted unauthorised loan, interception of bank accounts, and similar accidents..
  14. Paper is made of wood. Freshly cut tree contains trace amount of radioactive isotope of Carbon C-14 with half life ~ 5730 years. https://en.m.wikipedia.org/wiki/Carbon-14 There is aluminum foil in each kitchen. It is used to cover cakes in the oven. You can buy it at almost any grocery store around the corner.
  15. Grow up my child, grow up..
  16. Repeat the question after 10, 15 or 20 years when there will be no working CD/DVD reader/writer anymore. Who cares about UV light? Write 10+ copies of the same files with checksums every 1 kb or so. If you will have in 2030-2040 working reader which will work with PC you will be able to recover data from 10 copies.. but most likely your readers will be broken and modern in 2030-2040 PC won't allow plugging ancient CD/DVD readers anymore..
  17. If you are concerned about the safety of data storage after years, you should answer the question of whether you are able to load data from a tape recorded in the 80's or 90's... In my laptop there is no built-in CD/DVD reader at all.. (in my PC I don't have it either plugged all the time) Do you have it in your laptop? It increases weight of the device therefore it is used less and less.. Do you have external CD/DVD reader/writer? Soon it will be hard to get them at all. Like tapes. Or similar things from the past years.
  18. I don't think so. It would boost opponents movements as well as the main player movements, possibly rendering entire game unable to play anymore by human. The all real time games refresh at constant rate (if game has wait for vblank) or adaptive rate (if has not wait for vblank). Contrary to games with rounds in which objects don't move therefore don't require periodical screen refreshes. Refresh is needed when there is movement to update state. There are special electronic displays which update only when there is change of pixels. Used mostly with ebooks. This reduces electric power usage only to switch states and saves battery.
  19. You don't seem to understand what he did on the video... Game was not run in some turbo speed. Just frequency of key events was increased.. On Windows OS is sending events WM_KEYDOWN when user pressed key and WM_KEYUP after releasing key button. However when user pressed key button and holds it, there are send WM_CHAR with small delay between them. Application (emulator) and/or external keyboard utility (e.g. keylogger) can inject more WM_CHAR into input events queue and increase frequency. Buggy application will be cheated because programmer did not think about such situation in advance.. Similar situation is with games which did not wait for vertical blank (VBlank interrupt). Emulator get this functionality to fight with such not waiting for vblank games, so they still could be usable after increasing delay of key events. If you want to increase speed of execution of your programs 1) stop using Python and write code in C/C++ 2) use multithreading. Modern CPUs have 8+ HT threads and more. 3) use CUDA/OpenCL and use GPU for heavy computing. Modern GPUs have 1024-8192 cores on GFX. Looking on questions asked on the forum, doubtful that his Python programs are multithreaded. So he could instantly have 8-12 boost after using the all cores of CPU.. If script is just calculating.. But the most of the scripts are loading data from storage etc. etc. Getting M2 NVMe would speedup 3-7x in comparison to ordinary SSD, and 70x in comparison to traditional HDD.
  20. Comparison of mass of living organisms on the Earth:
  21. Yes.. https://en.m.wikipedia.org/wiki/Hydropower https://en.m.wikipedia.org/wiki/Hydroelectricity
  22. What is color of building and room walls? White color reflects light preventing it from being absorbed. But check if it is not having Titanium Oxide. https://www.sustainability-times.com/green-consumerism/a-new-white-paint-can-keep-buildings-naturally-cooler/ You can get IR camera for smartphone to see which part of wall is heating the most.
  23. The closer to Earth properties i.e. mass and radius (thus closer to 1g), the better for human body. Moon or asteroid will have too weak gravitation (astronauts on ISS are suffering from too weak gravitation. To fight with it have to spend many hours per day heavily training).
  24. There were couple airplane crashes and accidents due to metric-imperial conversion errors including fatal costing people lives.. https://en.m.wikipedia.org/wiki/Gimli_Glider In See Also section in the article above there is list of accidents which were not so happy ending as this story..

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.