Jump to content

Sensei

Senior Members
  • Joined

  • Last visited

Everything posted by Sensei

  1. No, you do not work.. ...then show your not optimal code....
  2. https://en.wikipedia.org/wiki/DNA_computing
  3. ..it's hard to believe that people who write "Caution: Contents Hot" on a cup of coffee have flown to the Moon..
  4. A humanist would say the opposite.. When I see "a sea of words" without math, or a trace of it, I simply ignore it because it is "word salad"...
  5. How many votes does it take to become president of the United States? https://en.wikipedia.org/wiki/2000_United_States_presidential_election "The recount having been ended, Bush won Florida by 537 votes, a margin of 0.009%. [...]" ...You should learn from the past: https://en.wikipedia.org/wiki/Sulla
  6. When you do nothing, I do everything.. His constituents don't read the internet.. at least not the one that would report on it.. The well-informed, well-educated, well XYZ think they are reaching their audience, while this is not the case....
  7. Wind can also accelerate a thing, depending on the direction. Airplane pilots often use this knowledge to reduce fuel consumption during flight. (Taking off and landing against wind direction is another story)
  8. You learn from mistakes. Your own. Or others'. You can say "don't try it at home" to a significant amount of chemistry..
  9. Not without a reason Humphry Davy had an accident and Faraday had to replace him: https://en.wikipedia.org/wiki/Humphry_Davy#Laboratory_incident
  10. Electrolysis of molten NaCl (or any other salt with a Chlorine atom), not necessarily electrolysis of an aqueous solution of that salt. e.g. When sufficiently high voltage and current are used, Chlorine gas is released.. which you need to capture.. The burner is needed only at the beginning, then everything works on its own using electricity alone. ..which we ignore during electrolysis of brine.. Because we're interested only in Chlorine, or Chlorine and Hydrogen. It will be used to make HCl.. ^^^^
  11. That's yet another question. The easiest way to answer it is when someone uses a biofuel: bioethanol. When someone uses the word "fuel" it is too ambiguous. 5L/100km, liters of what? You can't burn less than one molecule. But it can be only partially oxidized (i.e., releasing only part of its potential energy).. As an exercise, try doing it with ethanol ("biofuel").
  12. When a chemist wants to have breakfast with eggs:
  13. Look on the Internet for how to make HCl and learn how to do it. I think it is easier at home than sulfuric acid. NaCl is cheap, and the only cost is the electricity bill (which can be reduced, for example, by using solar panels).
  14. Why use such an arbitrarily large unit as millimeters? You can use nanometers, picometers, or even better, calculate how far a device will travel per molecule of fuel..
  15. Just use stronger acid with salt of weaker acid.. https://www.sigmaaldrich.com/technical-documents/technical-article/chemistry-and-synthesis/acid-base-chart Use stronger acid than H2SO4..
  16. The mission failed.. forgot to say "I'll be back"....
  17. You touch paper money or door handles every day, right? And you don't panic about it? Then there is no reason to freak out about a used laptop.. ps. You should worry about computer viruses and Trojan applications on it..
  18. Antiscientist.
  19. Without the time parameter, we don't know when someone said something and when the system sent any message, so you can only insert element at the end of the list. Here is the working Python code: #!/bin/python user_comments = [ { 'user': 'Alice', 'message': 'Hello!' }, { 'user': 'Bob', 'message': 'Hi there!' }, ] system_messages = [ { 'message': 'System message 1' }, { 'message': 'System message 2' }, ] for msg in system_messages: user_comments.append( { 'user': 'system', 'message': msg[ 'message' ] } ) line=1 for msg in user_comments: if( msg is not dict ): #print( "Converting.." ) msg = dict( msg ) print( str( line ), "User", msg[ 'user' ], "Message", msg[ 'message' ] ) line += 1 print( "OK" ) I added a special user system for convenience. In real web development, it should use a database such as MySQL. https://www.w3schools.com/python/python_mysql_getstarted.asp This is a list of dict objects that are not understood as a dict until the dict() function is used (at least by my Python v3.x) https://docs.python.org/3/tutorial/datastructures.html#dictionaries This also seems to work: #!/bin/python user_comments = [ { 'user': 'Alice', 'message': 'Hello!' }, { 'user': 'Bob', 'message': 'Hi there!' }, ] system_messages = [ { 'message': 'System message 1' }, { 'message': 'System message 2' }, ] for msg in system_messages: user_comments.append( msg ) line=1 for msg in user_comments: print( str( line ), end=' ' ) for key in msg: print( key, msg[ key ], end=' ' ) print() line += 1 print( "OK" ) (but msg won't have the "user" key of course, you would have to verify it before using it)
  20. This is not exactly what I said. My phone shut down due to battery drain. Every attempt to restart it ended in failure. It failed because the operating system could not save a certain file during the startup process. Free space was counted in KB, not MB. It doesn't matter. It's actually worse because it is Linux. I can cause Linux to stop working without any problems.. I even gave an example with Linux on Live flash drive. Try dd if=/dev/zero of=file bs=16M status=progress or dd if=/dev/random of=file bs=16M status=progress ..and wait until the entire disk is full.. Exactly. That's why Windows pre-allocates space in the hidden files hiberfil.sys and pagefile.sys They are the size of the RAM. So if you have 24 GB, it will be 48 GB lost from the primary partition. You can regain this space by in admin mode: powercfg -h off but machine won't hibernate anymore. You can also turn off the page file and get double the space (for example, 2x 24 GB). I do this often on 120 GB drives, because the loss of 32-48 GB is unbearable.. Every operating system is vulnerable to such attacks. Especially customer devices. It's just a matter of how much exhausted physical memory and storage is needed to operate. ..we are talking about free space counted in kilo bytes.. BTW, 10, 100 MB, 1 GB, 100 GB (does not matter!), free memory, does not guarantee the correct operation of the application if it needs it as a continuous memory region.. Memory can be fragmented. https://en.wikipedia.org/wiki/Fragmentation_(computing)
  21. If something interests you in the series, you can always search the web to expand your knowledge about it.
  22. I suspect studiot is looking for knowledge than entertainment..
  23. Welcome to current television. In any Netflix series, this is a must-see element.. https://en.wikipedia.org/wiki/Flashback_(narrative)
  24. Twenty years ago I managed to "destroy" ("render useless") Nokia's then best and most expensive phone by filling up all the internal memory. It could not restart anymore. The system reads and writes data from the disk (regardless of the type). If OS can't write, the user is screwed. The Live Linux flash drive is particularly prone to this problem as the storage is emulated in the physical memory of the computer instead of the physical HDD/SSD/NVMe. On my outdated Athlon 15+ years old with just 2 GB, just watching YouTube videos for two-three hours, on the Linux Live pendrive (without installation of Linux on disk) is enough to make the OS crash permanently to the point where the mouse pointer is frozen and the keyboard is unresponsive. The system will try to 1) archive some files 2) delete something 3) shut down and never be able to wake up....
  25. Motivations are obvious. "To be elected to yet another period".. ..the one who fights against drugs in the presence of TV cameras often takes them, such as smoking marijuana, in his/her own house.. ps. Shouldn't politicians be tested for drugs in their blood like car drivers... ? This would remove some from the political scene, as some drugs are detectable after many months.. How can you debunk e.g. marijuana in front of a TV camera (and meanwhile secretly smoke it) to gain undeserved applause from voters who condemn such practices? In the US, the consequences are rather obvious. Managers of private prisons and their shareholders are getting richer.. With such model, the more criminals the better for entire system of lawyers, judges, prosecutors, policeman, criminal psychologists (!), criminal "specialists" in various areas, prison owners, prison employees, etc. etc.

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.