Jump to content


Senior Members
  • Content Count

  • Joined

  • Last visited

  • Days Won


Sensei last won the day on March 26

Sensei had the most liked content!

Community Reputation

937 Glorious Leader


About Sensei

  • Rank

Profile Information

  • Interests
    Quantum Physics, C/C++/.NET Framework/Java programming.
  • Favorite Area of Science
    Quantum Physics

Recent Profile Visitors

47542 profile views
  1. The list of school holidays in Germany with their dates per region: Baden-Württemberg -- Bavaria school February 24 - February 28, 2020 Berlin school February 3 - February 8, 2020 Brandenburg February 3 - February 8, 2020 Bremen February 3 - February 4, 2020 Hamburg January 31, 2020 Hesse -- Lower Saxony February 3 - February 4, 2020 Mecklenburg-West Pomerania February 10 - February 21, 2020 North-Rhine Westphalia : -- Rhineland Palatinate February 17 - February 21, 2020 Saarland February 17 - February 25, 2020 Saxony February 10 - February 22, 2020 Saxony-Anhalt February 10 - February 14, 2020 Schleswig-Holstein -- Thuringia February 10 - February 14, 2020 Reference https://www.iamexpat.de/education/primary-secondary-education/school-holiday-dates-germany
  2. When we look at Germany map of infected individuals and fatality rate map we can see very "strange"/"interesting" thing. Basically old West Germany and East Germany (GDR) country border is also border between more and less influenced by COVID-19 regions: Where is coming from such regularity? Some specialists suggested that it is result of different medical standards used in these two countries in the past history between 1945 until the reunification of countries in 1990. e.g. what vaccines were obligatory given to their citizens. The most promising "suspect" of differences is tuberculosis vaccine. BCG World Atlas reveals which countries have obligatory tuberculosis vaccination now, which used to have in the past, and which never had it mandatory: Green colored countries never had it obligatory for all. Purple had it obligatory in some years in the past. France started mass vaccination in 1950 and ended in 2007. Spain started in 1965 and ended in 1981. Very short period of time (and COVID-19 fatality rate 9% for this moment). Italy never had it obligatory (and COVID-19 fatality rate 12% for this moment). https://en.wikipedia.org/wiki/BCG_vaccine I would start from analysis of what kind of e.g. vaccines people from different countries received in the past looking at their medical records. Anonymized big data should be public available so any volunteer programmer or company could write algorithm to analyse..
  3. It should be smarter than that. Pseudo code: if mem >= 1e12 then printf( "%.1f TB", mem/1024/1024/1024/1024 ) else if mem >= 1e9 then printf( "%.1f GB", mem/1024/1024/1024 ) else if mem >= 1e6 then printf( "%.1f MB", mem/1024/1024 ) else ... Also if we have fixed memory size, we could draw one continuous horizontal/vertical bar for both. Used memory in red color, free memory in green color.
  4. Let's concentrate of some constructive part of your message, rather than on religious part of it. We can interpret "unity" as "global economy" i.e. sending and receiving goods, between countries, collaboration between countries, collaboration between people. Some call it globalization. I call it unity of humankind. If global economy is broken, people from countries without e g. natural resources, will have no energy i.e. fuel, gas, electricity, and it will result in complete anarchy. Robbing shops is just easy the first page of this book, which you don't want to open.. In the past history of this world, and history of the entire Universe, it happened.. countless number of times.. Energy (from light from the Sun, wind, water, fuel, gas, oil, coal, etc. etc.) is needed to create food. Entire modern agricultural industry relies on it. If energy is not delivered to farmers, there will be no food, neither for farmers nor for people from cities, so the all people will suffer hungry. Hungry people means anarchy and mass destruction of the entire civilization, as you know today. In some places on this world, governments are very weak. Hungry soldiers and police officers won't bother about law, but about how to save life of their family members. Truck drivers etc. (the one freely passing borders between countries) should not have access to their families, to not spread disease on them. Truck drivers etc. (and other people passing borders) should be people who already had illness and have antibodies. If it is confirmed that people can't have it multiple times. It's great opportunity for IT specialists and engineers making automatic driven devices, of all kinds. One country deliver stuff to country border, other one is taking it to not pass people through border, and vice versa. For many years, I "asked" multiple times to move to renewable energy sources. Many people worldwide disobeyed and ignored my message, or even made completely reverse to my "requests". You don't prepare for fire in the house when it is already burning.. When it is already burning it is too late.. Now you will have to harvest results of your incompetence.. ps. Where are mine solar panels driven harvesters for farmers that don't need fossil fuel.. ?
  5. You can create image dynamically in PHP like it has been presented in this article: https://stackoverflow.com/questions/901201/create-a-dynamic-png-image Parameters for image you provide in URI query string.
  6. You made my day with this article. This world needs true, honest, anonymous, not for likes, videos and public applause, generosity.. #fishandchips4all
  7. This might be interesting to you. CPU usage per thread. https://stackoverflow.com/questions/26238184/cpu-usage-per-thread Just use if thread th1 is alive then th1.get_cpu_percent(), render to string. Repeat with th2. Print final string.
  8. I prefer to have result fast.. As long as algorithm allows for easy migration to MT. Thanks to multithreading you can have results 8x/12x/.../48x/96x faster than on single thread.. depending how many cores/cpus are available. Yet another level of making code harder to maintain and to read is migration to multi thousands GPU cores.. I was thinking about single while loop for both threads with separate cpu usage for each thread.. If thread is alife get cpu usage of thread, repeat with second thread, merge strings, print.
  9. e.g. while loop checking whether any of two threads is alife (rather than just for one). Use logical or operator.
  10. Read about lock, rlock, condition, event objects: https://docs.python.org/3/library/threading.html#lock-objects e.g. make event object in the main thread, pass to child thread and set it at the end of execution. In the main thread wait till event is triggered. In majority of languages and OSes during writing app with GUI you should delay any long time (>50-100 miliseconds) taking operation to separate threads, and not block UI/the main thread, even if it is some basic stuff. In Java on Android it is even forbidden to call e.g. network or database function/method on UI thread and OS immediately throws an exception.
  11. @Dagl1 I and j are loop counters used as indexes to array. You need to compare array values instead of indexes. You need to find math equation giving f(x)=1+2+3+....n. It will be total internal loop executions. Use debugger to see what CPU is doing. It will help you understand issues.
  12. You could find math equation which is giving total number of internal loop executions and then use modulo or so to extract i and j variables from it. e.g. (just an example pseudocode) If we have loops like for i=0 to 10 for j=0 to 10 it is easy to figure out total number of internal loop executions. It is 10 × 10 = 100 so we can write for k=0 to 100 i=k/10 j=k%10 and instead of two loops there is just one.. Your code could be replaced by sort of array then two fields with the same value will be one after another. One loop goes through the all fields and internal if for checking two array entries to check whether they are equal or not.
  13. But what can guarantee electrical isolation? It is just a matter of exceeding breakdown voltage of whatever medium we are taking into consideration.
  14. There is a couple different thermal pastes for computers. Silicone, with silver and with copper. The one with the best properties in thermal conductivity are with silver and copper. Try silicone one.. On every computer paste there is mentioned thermal conductivity in W/m × K. Search net for thermal grease and you will know their properties and will be able to compare.
  15. I have an idea for easy to implement method to keep people at home: Simply give them free access to Netflix/Steam for a couple months. They will be too busy to watch the all movies or play games (with premium enabled). It will be especially efficient in areas with small percentage of users of these platforms.
  • 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.