Everything posted by Sensei
-
Data Analysis with Python: Calculating Mean and Median
No, you do not work.. ...then show your not optimal code....
-
How DNA computer works?
https://en.wikipedia.org/wiki/DNA_computing
-
Why not use ZnSO4 for sulphuric acid.
..it's hard to believe that people who write "Caution: Contents Hot" on a cup of coffee have flown to the Moon..
-
Regular negative mass black holes under time transformations
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"...
-
McCarthy out... what next?
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
-
McCarthy out... what next?
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....
-
Fuel consumption as an area
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)
-
Why not use ZnSO4 for sulphuric acid.
You learn from mistakes. Your own. Or others'. You can say "don't try it at home" to a significant amount of chemistry..
-
Why not use ZnSO4 for sulphuric acid.
Not without a reason Humphry Davy had an accident and Faraday had to replace him: https://en.wikipedia.org/wiki/Humphry_Davy#Laboratory_incident
-
Why not use ZnSO4 for sulphuric acid.
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.. ^^^^
-
Fuel consumption as an area
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").
-
The Official JOKES SECTION :)
When a chemist wants to have breakfast with eggs:
-
Why not use ZnSO4 for sulphuric acid.
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).
-
Fuel consumption as an area
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..
-
Why not use ZnSO4 for sulphuric acid.
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..
-
Alien life in Universe: Scientists say finding it is 'only a matter of time'
The mission failed.. forgot to say "I'll be back"....
-
Germs on laptop keyboard
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..
-
Antimatter falls like matter
Antiscientist.
-
Web Development Data Processing: Merging and Displaying Lists in Python
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)
-
How could lack of free space affect the performance of an iPhone?
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)
-
BBC2 Series 'Earth'
If something interests you in the series, you can always search the web to expand your knowledge about it.
-
BBC2 Series 'Earth'
I suspect studiot is looking for knowledge than entertainment..
-
BBC2 Series 'Earth'
Welcome to current television. In any Netflix series, this is a must-see element.. https://en.wikipedia.org/wiki/Flashback_(narrative)
-
How could lack of free space affect the performance of an iPhone?
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....
-
Was the war on drugs harmful to us as a society?
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.