Everything posted by Sensei
-
what's a good programming language to learn?
Yes. We use the right tool, for right task. To drive a nail we use hammer, not rock or dumbbell (although they would work more or less good for this task). If you would do research before posting, and talk only about things that you know, you wouldn't have reputation points like you have now.. That's natural selection, like in real life. Living languages are evolving, dead languages are dead and nobody knows about them, until finding fossils.. Common language of science is not human language, but mathematics.. No, it's not. If you would know C/C++/PHP/JavaScipt/Java etc. you wouldn't ask such silly questions.. C/C++ is compiled to machine code, one at a time (f.e. 32 bit Intel for Windows). Have direct pointers to memory. Allow low-level manipulation of data. Thus very prone to crashing program or crashing whole computer including restart in the worst scenario. So completely not suitable for servers running web masters programs. PHP is server run interpreted script. Access to low-level of server would cause serious issues with security.. It will never crash server due to error in script.. JavaScript is client run interpreted script. It's run on web browsers, and nowhere else. Java is either interpreted or JIT-compiled. Can be run on either server (f.e. JSP) or client. It's high level, so no memory pointers like in C/C++. PHP, JSP and JavaScript can be mixed with HTML pages seamlessly. Program meant to run on server must be in not compiled form, except CGI (which is C that is writing HTML to stdio). But it's obsolete now. Architecture of server is/should be unknown to web masters.
-
Energy source: evaporation - condensation
50 bar is almost ~50x higher pressure than standard pressure. It's almost pressure that's at 500 meters below sea level in ocean. Water mass is 500 tons per m^2 at such depth. Submarines from II war were squashed at 200... 280 meters, at twice smaller pressure. Pressure will be so high, it's unlikely to push piston back... Normal piston is releasing gas that's inside when it'll go to upper est position, then piston goes in reverse direction, because it's empty and nothing disallows going it in that direction. Then there is injected fuel, and spark is igniting it, and changes liquid to gas which pushes piston again. And everything is repeated. You want to push piston back, without releasing CO2 from inside.
-
Energy source: evaporation - condensation
Under standard pressure, normal temperature (on Earth), CO2 dry ice goes directly from solid state to gaseous state skipping liquid state (sublimation) at -79 C. So "bottom liquid CO2" from image C, the most probably, will never happen. Yes, piston would be pushed up. But why on image D it would go back to "squeezed"?
-
Perceiving 2D images (that are not meant to be perceived as 3D) as 3D
Different LCD/LED monitors work slightly differently. One mine monitor has linear polarization of photons with 45 degree. Other one has vertical polarization. Cell phone LCD is emitting not polarized photons. 3 LCD, 3 different results. You can verify what is polarization of your devices by using polarization filter such as this one: Pure speculation: if one of your eyes would be better at seeing polarized photons than the other eye, slightly different image would appear to each one, but brain would like to merge them. This technique is used by one of 3d glass technologies - screen is emitting image for left eye using polarized vertically photons, and image for right eye using horizontal polarized photons, then 3d glass has vertical polarization filter on one eye, and horizontal polarization filter on 2nd eye, so 2 different images (rendered/recorded by 2 cameras during movie making) are reaching eyes at the same time. And our brain is rebuilding 3d depth.. Do you have the same 3D illusion while watching 2D images in real world, not LCD monitor?
-
what's a good programming language to learn?
The most of modern C/C++ IDE's have syntax checking, wrong entered stuff is highlighted.. Visual Express/Studio is searching for names of variables, members, classes while entering couple letters, suggesting what you might want, and then you can pick it up from drop-down list. Use f.e. ConTEXT editor for programmers. It can analyze different types of languages, PHP, C/C++, JavaScript etc. http://www.contexteditor.org/ In interpreted languages the all variables are strings. So language doesn't need to know type, when there is just one type variable you can have. In C/C++ you need to tell language what will be type of variable, otherwise it doesn't know type. In C/C++ string doesn't even exist as language standard (std::string is just yet another optional to use class included in external linked library). There is array of characters (char name), which is equal to array of bytes. You can't use it as "default type", without telling how large is array, and we are back to root.. At modern times in serious programming everybody are using Unicode, which has wider character standard.
-
Can't produce chlorine gas!
I have made couple devices for fast production of Hydrogen, Oxygen and Chlorine, and NaOH (because had enough waiting for slow battery rate). Mine normal rate is 1 Liter of Hydrogen per hour easily. Couple times measured. The bigger area of electrodes, the more current is flowing. But usually people are using 60 grams of NaCl and 18 grams of H2O which has volume = ~28 cm^3, so it's hard to use large size electrodes.. But I bet, he used metal which is immediately reacting with solution. If I use steel or aluminum for positive electrode, there is often no sign of Chlorine, instead electrode is dissolving. You need/should use carbon-graphite electrode for positive electrode (or better for both). 1 A * s = 1 C 1 C / e = 1 C / 1.6*10^-19 = 6.25*10^18 electrons (in theory) one electron can split H2O to OH- and H+ So there are needed 2 electrons to produce one molecule H2 1 L of H2 has mass 0.08988 g/L 1 molecule of H2 has mass 2 * 1.0078 g/Na = 2 * 1.67*10^-24 g so in 1 L there is 0.08988 g/3.3469*10^-24 g = 2.68*10^22 molecules of H2 2.68*10^22 / 3600 seconds = 7.459*10^18 molecules produced per second *2 electrons needed to each molecule= 1.492*10^19 electrons per second needed Which is 2.387 A average. I can easily go beyond this current. Today I was using 5 A to produce Hydrogen in experiment.