-
Posts
7863 -
Joined
-
Last visited
-
Days Won
26
Content Type
Profiles
Forums
Events
Everything posted by Sensei
-
Why is (x = y) == x is not the same as x == (x = y) ?
Sensei replied to Bunty12's topic in Computer Science
In C# it is the same: using System; class Test { static void Main( string [] args ) { int x = 1; int y = 3; Console.WriteLine("pre x={0} y={1}", x, y ); Console.WriteLine(x == (x = y)); // false Console.WriteLine("post x={0} y={1}", x, y ); x = 1; // reset Console.WriteLine("pre x={0} y={1}", x, y ); Console.WriteLine((x = y) == x); // true Console.WriteLine("post x={0} y={1}", x, y ); } } In languages that allow overloading of operators, you can try to create your own class with overloaded assignment and comparison operators and do logging there. -
Did you see a UFO? No, it was a balloon. Did you see a balloon? No, it was a UFO. A balloon? A UFO? Unsure...
-
What is the simplest way to set up a Donation Page?
Sensei replied to PeterBushMan's topic in Computer Help
You can use crowdfunding platforms. https://www.google.com/search?q=crowdfunding+platforms Doubtful it will be enough attractive and effective to anybody participate in it. -
..are such programs needed.. ? You thaw the meat and bake or fry it.. and you eat it..
-
Different planets have different surface areas facing the Sun. You need to calculate the surface area of the planet and use it in calculating what total Watts per planet they get, not just leave it at Watts/m^2. Then multiply these Watts by the albedo of the planet. Do this in different columns in Excel. Include the raw data too, i.e. distance, radius, albedo, area, for readers and your convenience in calculations (use the column as a data source in the equation).
-
See my post - you also need to take into account the radius/diameter of the planet (therefor, the area facing the Sun) and albedo. Read both Wikipedia articles carefully.
-
The Earth's surface receives 1370 W/m^2 per surface area facing the Sun. Some of it is reflected, some is absorbed by the atmosphere, and some is absorbed by the land and sea. Knowing the distance of the Sun from the Earth, the total power generated by the Sun can be calculated. Then you can do similar calculations (check the inverse-square law) for any other space object on your list and find out what Watts/m^2 they receive. https://en.wikipedia.org/wiki/Inverse-square_law https://en.wikipedia.org/wiki/Albedo
-
You can press "print screen" and attach image instead.
-
-
@Saber Did you have trigonometry in school? Use Pythagoras' triangle to find out how curvature changes with distance: What you see here, 6 degrees, would be equivalent of ~ 670 km.
-
I created flat ground plane with 1km x 1km size. Basically, you can't see the difference. The edge (the blue-gray transition, 1-2 pixels in the image) is 500m from the camera.
-
I added 100m x 100m x 100m box. Its center is 0.01 degrees away from us. 2*PI*6370000m / 360 / 100 = 1111.8m - 50m = 1061.8 m. Approximately 1km from the camera. Another view, but 0.1 degrees away from us.2*PI*6370000m / 360 / 10 = 11117.7m - 50m = 11067.7 m. Approximately 11km from the camera.
-
Don't you see that it is not needed? From a human point of view, the Earth is not curved enough to make any difference to the human eye..
-
You have a 3D application, so make the right size of the globe i.e. 6370 km. Then place a virtual camera e.g. 170 cm from the surface i.e. at the eye level of an ordinary person with a height of 180 cm. Render it. What do you see? I bet there will be a straight horizontal line of horizon, not even 1 pixel away from "perfection"..
-
@John Cuthber ..you truly deserve to be called an "ape" and not "homo sapiens".. this video wasn't about "apes and black people".. it was about "giving guns to the wrong hands that can turn against you".. If you were a "homo sapiens", and not a "ape", you would have figured it out, but your hatred blinds you and prevents you from seeing the real content.. V.P. is giving weapons to the wrong hands, i.e. criminals from prisons and ordinary Russians who don't share his madness, and might turn against V.P. and his mafia.. The ancient Romans did this twenty centuries ago, and it began and ended their downfall.. Wow! I never imagined it would turn into some kind of racist thread branch.. You need to flush that shit out of your head..
-
https://en.wikipedia.org/wiki/Non-stoichiometric_compound
-
https://www.google.com/search?q=which+router+have+poe "Do any routers have PoE? Most routers will not support PoE. PoE is fairly rare in consumer-level products and not even a given on more expensive stuff, so I would always expect it to be called out explicitly. If you don't see it, it doesn't have it."
-
..which still needs an external power source i.e. a wire or powerbank, a solar powerbank, or a solar panel alone.. That's a great price £43 for 305m Cat5E (which is still Gigabit), and £64 for 305m Cat6 with higher frequency.
-
20 years ago, I used to buy an RJ45 cable for £0.2 per meter and that was the regular price at a time.. It's doubtful that it has dropped.. 173 GBP/305m is 0.57 GBP per meter. You know what electronics and computer shops you have in UK. Check them. The cheapest option, which does not require a large investment if you have any old smartphone, is to buy a 2nd SIM card for it and enable tethering via USB.
-
305m RJ45 ethernet cable cost here 173 GBP https://uk.rs-online.com/web/p/ethernet-cable/0557470
-
Is your goal to network your garden with your house (and have free intranet transmission) ? Or to have any internet in the garden regardless of whether it is from the house or not? A regular router can be configured for extended range mode, and put in the middle with some energy source. If one is not enough, a couple of them.. https://www.google.com/search?q=extended+range+modem+router (pay attention to whether router has built-in antenna (cheap router) or on screw -> external antenna (>50 USD) can significantly extend range of the router) (expensive routers can have multiple antennas/screws) You can buy a second LTE/5G SIM card for your phone.. (old phone connected by USB with desktop PC computer delivering Internet) It can also be plugged to a LTE/5G modem, which will be connected via USB to a computer and/or router. WiFi USB cards are cheap. 5-10 USD. 3G/4G/5G modem USB cards are for 35-60 USD. There are also PCI modems for desktops. Mutually exclusive expectations.. Too little data. Depends on your home WiFi speed. If you have less than 480 Mbps, modem with LTE SIM card plugged directly to PC might be the fastest option, as long as mobile operator will deliver enough.. I have problems with 15m range due to obstacles in the apartment.. and you want 260m - no mention of obstacles.. With what bandwidth? Counted in kbps? Mbps?