-
Posts
7927 -
Joined
-
Last visited
-
Days Won
26
Content Type
Profiles
Forums
Events
Everything posted by Sensei
-
How can I get a list of nodes connected to a router
Sensei replied to Shery's topic in Computer Science
C'mon. Are not your judgment slightly premature in this case.. ? Some routers have admin panel. There is needed to log in to them by specifying admin and password. It must be done by API which allows keeping cookie, because that's how logging credential are typically implemented (other way is redirect to some URL with GET URL part set to some secret code). After code is logged in, visit website in router's admin panel where are all data who is connected to router and download. He mimic what user would do in web browser to see who is connected, but from script. This method would not work with my router, but I know plentiful routers where it could/should work as intended, just by replacing login,password and connection status.cgi url to appropriate value. Fiveworlds, you should not return in the middle of function code. But store result from curl_exec() in the variable, and return it at the end of function. //Upload a blank cookie.txt to the same directory as this file with a CHMOD/Permission to 777 function login($url,$data){ $fp = fopen("cookie.txt", "w"); fclose($fp); $login = curl_init(); curl_setopt($login, CURLOPT_COOKIEJAR, "cookie.txt"); curl_setopt($login, CURLOPT_COOKIEFILE, "cookie.txt"); curl_setopt($login, CURLOPT_TIMEOUT, 40000); curl_setopt($login, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($login, CURLOPT_URL, $url); curl_setopt($login, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); curl_setopt($login, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($login, CURLOPT_POST, TRUE); curl_setopt($login, CURLOPT_POSTFIELDS, $data); ob_start(); $result = curl_exec ($login); // return result to variable ob_end_clean(); curl_close ($login); unset($login); return( $result ); // return variable } function grab_page($site){ $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); curl_setopt($ch, CURLOPT_TIMEOUT, 40); curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt"); curl_setopt($ch, CURLOPT_URL, $site); ob_start(); $result = curl_exec ($ch); // return result to variable ob_end_clean(); curl_close ($ch); return( $result ); // return variable } function post_data($site,$data){ $datapost = curl_init(); $headers = array("Expect:"); curl_setopt($datapost, CURLOPT_URL, $site); curl_setopt($datapost, CURLOPT_TIMEOUT, 40000); curl_setopt($datapost, CURLOPT_HEADER, TRUE); curl_setopt($datapost, CURLOPT_HTTPHEADER, $headers); curl_setopt($datapost, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); curl_setopt($datapost, CURLOPT_POST, TRUE); curl_setopt($datapost, CURLOPT_POSTFIELDS, $data); curl_setopt($datapost, CURLOPT_COOKIEFILE, "cookie.txt"); ob_start(); $result = curl_exec ($datapost); // return result to variable ob_end_clean(); curl_close ($datapost); unset($datapost); return( $result ); // return variable } Ignore second script, use just the top one, as it's easy to work with. It's PHP script that you should put in your local Apache/PHP server, accessible from web browser folder. Do you have installed Apache/PHP? You must adjust couple variables in the last lines, to appropriate for your router (login,password,connectionstatus.cgi). login("http://192.168.1.254/cgi-bin/index.asp?YWRtaW46ZWZhNTM4OTZmOTVl","Loginuser=fiveworlds&LoginPassword=&Prestige_Login=Login"); $string=grab_page("http://192.168.1.254/cgi-bin/pages/connectionStatus.cgi"); Obviously your router must have such connectionStatus.cgi page (login to it manually from web browser, to learn what are data). Fiveworlds is writing mostly in PHP/JavaScript, so you have to excuse him for providing such script. Once it's checked it works, you can rewrite it in Java,C,C++,C# or whatever. There is no sense doing it, if your router does not have such connectionStatus.cgi or wont allow logging from script/code.. -
Light year is unit of length, not time. https://en.wikipedia.org/wiki/Light-year How about pulsar star? https://en.wikipedia.org/wiki/Pulsar It spins around some axis, and periodically emitting beam of photons in the same direction (f.e. gas cloud, where it's reflected toward Earth, or Earth directly).
-
How can I get a list of nodes connected to a router
Sensei replied to Shery's topic in Computer Science
Fiveworlds, show output from your scripts. Run them and take screen-shot, and attach image here.. -
Northern quolls in the North Australia are learned to not eat toad by using specially prepared sausages causing vomit. http://www.theguardian.com/australia-news/2015/sep/10/cane-toad-sausages-on-menu-in-attempt-to-save-kimberleys-northern-quolls Once they learn toads are not eatable, they spread this knowledge to their offspring. Such learning what is eatable, what is not eatable, or to avoid predators like cats or dogs, could be adopted to save other moribund wild species.
-
https://en.wikipedia.org/wiki/Trial_and_error Because they are good prepared to life in their environment. If f.e. there would be catastrophic winter world-wide, humans could survive, heat by artificial energy sources, below the ground, but the all animals not prepared for cold on the surface of Earth, would die (assuming no human help). Dinosaurs also lived parallel to their ancestors. Sometimes successors cause extinction of ancestors, but so far it didn't happen yet in the case of monkeys.
-
https://en.wikipedia.org/wiki/Hexamine_fuel_tablet "Esbit's Material Safety Data Sheet states combustion can create formaldehyde, ammonia, nitrogen oxide, hydrogen cyanide" "When burned, the chemical oxidation of the fuel yields noxious fumes, "
-
4 KB is size of file on disk. After decompression by loader, it's dozen of KB. The better compression algorithm in loader, the more can be stored. Then decompressed code is executed to generate procedural textures, procedural geometry, etc. Memory used during execution of code, is meaningless in this.
-
What you posted the first, is what I showed in my thread initally. I just noticed that my link author has been banned/closed YT channel... Second your link is also beautiful example of work. Sometimes it looks like greeble and nurnie. https://en.wikipedia.org/wiki/Greeble to generate detail geometry.
-
Catastrophic economic loss with AIDS and Cancer cure?
Sensei replied to Elite Engineer's topic in The Lounge
I don't promote "natural supplements shops". Actually I have never been in such store. I promote greengrocer's shop rather. Or self made vegetables instead. Surprisingly Sirona, and you mentioned them, and tried to derail the main thread in such weird track at all... I was talking about pure raw Garlic. Not some preprocessed crap. We have medicament of two types: - not existing in nature compound, artificially created. - existing in nature compound. Second one can be extracted from natural source, or created artificially. "Big Pharma" pills have well know content and amount of compound we want to provide to organism, while it's hard to estimate how much natural source, such as f.e. Lemon, Orange, Banana, Garlic, etc. will have it. Personally I prefer drink a single Lemon in the tea, than taking pills with Vitamin C. ps. Natural means to me vegetable, plant, fruit, literally in their natural form. Not preprocessed, and in a box, foil, dehydrated etc. etc. or so. ps2. Nobody is taking pills for "common cold" in advance prior they are ill. While eating garlic is quite normal. Example of "natural supplements shop" product... My product looks like this: -
You rather meant why some leaved Africa, and the rest stayed, as the most of people stayed in Africa, while amount of people leaving Africa was very small.. The same can be asked why some fly to f.e. London while the majority remain here. They are searching for new better life. Africa has very small direct connection to other continents (Sinai Peninsula).
-
Catastrophic economic loss with AIDS and Cancer cure?
Sensei replied to Elite Engineer's topic in The Lounge
Garlic is not food supplement. It's plant. Cheap to produce. No serious company can make a profit on selling it (and that's whole problem to discourage people from using it). They used allicin just because to not influence people in the experiment. So they won't know in advance whether they took placebo or allicin. Now you must be kidding making such statement....... Experimental personal experience is not anecdote... Explain then difference in the amount of people in prison is USA, versus European countries... I don't understand WTH are you talking about here. Politicians are generally from the richest group of community. Their parents didn't have to "save the whole life every dollar" to push their kids to go to study... Then how they can be "affected" by money needed to spend on education of their kids the next generation? Affected are people that live from week by week, or month by month, we call it from 1st to 1st (month). The most "common ill", with average 14-28 billions occurrences per year in total population (2-4 average per adult, child more) is "common cold". Instead of downvoting my post, you should spend time searching for objective experiments proving that garlic did not heal/prevent people from getting "common cold", instead it increased symptoms.- 32 replies
-
-1
-
Catastrophic economic loss with AIDS and Cancer cure?
Sensei replied to Elite Engineer's topic in The Lounge
That's the same as on the bottom of my own link. http://www.ncbi.nlm.nih.gov/pubmedhealth/PMH0013804/ "Authors' conclusions: There is insufficient clinical trial evidence regarding the effects of garlic in preventing or treating the common cold. A single trial suggested that garlic may prevent occurrences of the common cold but more studies are needed to validate this finding. Claims of effectiveness appear to rely largely on poor‐quality evidence." Yes, I read the whole article, I gave link to. I don't know of any researcher who would write "we have found everything what we wanted to, with perfect evidence, and no further research is needed". That's typical asking for more funds to continue their job, on larger amount of people. Even if they would make experiment with 10k people their conclusions in the next paper would be "give us more money to continue research on 100k people group, around the whole world, the all continents". If you don't understand what's written in the paper, I will happily explain it to you: 146 people were split to two groups, 73 people each one. From 73 people group who received placebo, 65 of them in the next 3 months were ill. 65/73=89% of group. 11% were fine. From 73 people group who received 180 milligrams of allicin per day, 24 of them in the next 3 months were (slightly less) ill. 24/73=32.8% of group. 67.1% were fine. The conclusion from it is drop from 89% -> 33% between non-takers and takers. 65-24=41 people who didn't catch illness in tested period. (Casinos and lotteries would bankrupt in one day, if somebody would have such influence on random numbers..) Obviously more research is needed. Just to confirm already made (and worldwide known by millions of people by dozen human generations) observation, and make researchers more rich, for obvious worldwide well known experimental human knowledge. The more you write the more you sound like our old member xyzt, impertinent and plain rude. Do I write "Why say daft things like that?" when you, John Cuthber, claimed to be "chemistry expert", are showing scientific community, that you f.e. cannot even calculate right amount of Nitrogen in thread: http://www.scienceforums.net/topic/93083-making-nitrocellulose/?p=904803 According to John Cuthber, mathematic skills (because it's mathematic question, not chemistry), if we have 1000 apples, and for each 6 apples, there are 2 oranges, you claim result will be: 1000 * ( 6 / 2 ) = 3000 oranges. Like you showed in the above linked thread post. (moles of Carbon must be > moles of Nitrogen) While the proper result is: 1000 * ( 2 / 6 ) = 333 oranges. Obviously quantity of apples is higher than oranges. More realistic example, we have 2500 kg of apples, each one with 125 grams, 2500000 g / 125 g = 20,000 apples for each 6 apples there are 2 oranges 150 grams each 20,000 / 6 = 3333 * 2 = 6666 * 150 = 1000 kg of oranges. Obviously mass of apples is higher than oranges. (125 gram Apple vs 150 gram of Orange is just to mimics difference between slightly lower mass of Carbon versus Nitrogen) Can I quote you? "Why say daft things like that?" (should I include this sentence in every thread post you're making some mistake? Will it make you return from your pedestal to the Earth back?) Instead of somebody, mathematician, coming and explaining to you where you made mistake, there was no further reaction by scientific community, except your cheeky claim, that I made mistake while pointing your error in calcs. And wrong result remained in thread unfixed. And perhaps influencing other reading it people that you are "chemistry expert".. Chemistry expert that cannot even calculate the basic things in his own science discipline.. ps. You're the second one the most rude, and unpleasant, generally skilled member of this forum, after xyzt.. You have a long route to learn swansont's, Phi for All's, Imatfaal's, Mordred's, social behaving skills. Well, I just wrote the truth in the above statement. Not sure what is upsetting you in it. Definitely. But it's result of poor US education. And pay for education scheme. So poor people have no money for college and university. And they and their children are generally not well skilled. Unlike rich, and people who were saving the whole life for their kids go to college.. or took insane loans for education, and are desperately dreaming to get good job after PhD.. It's straight route for making human classes. Better (rich), worser (poor). Rich get educated, poor are poorly educated, can have only poor jobs, and poor life, in f.e. NY ghetto. Here education is for free.- 32 replies
-
-3
-
Catastrophic economic loss with AIDS and Cancer cure?
Sensei replied to Elite Engineer's topic in The Lounge
By the most common ill of the world, quite obviously, I meant common cold. As typical human being catch it a few times per year. "On average, children have six to eight colds per year and adults have two to four." http://www.greenmedinfo.com/blog/yes-dear-garlic-vitamin-c-and-zinc-do-treat-common-cold " Efficacy of Garlic For Common Cold Proven From review research from Australia's The University of Western Australia we find a study that gave 146 people either a garlic supplement - standardized to 180 milligrams of allicin - or a placebo for 12 weeks. The research found that the placebo group in total had 65 common cold occurrences while the garlic group only had 24 occurrences. This is less than half the number of colds. Furthermore, when those who were taking the garlic supplement did catch a cold, that cold lasted an average of one day shorter than the colds among the placebo group some 20-25% shorter. Another study, from the University of Florida, tested 120 people by giving half 2.5 grams per day of an aged garlic extract supplement and the other half a placebo. Over a six month period, the garlic group had 61 percent fewer number of days of colds, and 58 percent had few incidences of colds, along with 21 percent fewer cold symptoms when they did catch a cold." This is the original article, the above one is based: http://www.ncbi.nlm.nih.gov/pubmedhealth/PMH0013804/ I have not been ill for over 20 years.. There are different methods of preparation of meal with garlic. It could be fresh raw, cooked, fried on pan, blended or cut in slices. It does matter, how food source is prepared. As some valuable compounds could be destroyed, or decreased their quantity in the middle of processing. I don't know how French or Italians are processing their garlic (and using garlic for seasoning is completely different story, as it's minute amount of it), but here it's often eaten blended fresh raw with white curd cheese. -
The worst part of it, is that the most of people are busy doing senseless jobs.. Or even busy hurting other people. Doing things against local/global community. If they would be just more busy doing something good to community..
-
What is meant by 'perfect'.. ? Perfect, equal, set up of atoms, same configurations? Once you make a clone, they will start differentiate immediately, as they live, move, eat, breath, chemical, physical, reactions, are random in nature. Through one clone there will be flying different cosmic rays, than by other clone, so the same Sun light, neutrinos. etc. etc. If one clone has 36.6 C and other 36.6 +-1 nano Kelvin more/less, are they 'perfectly' the same in your sense of this word.. ?
-
Catastrophic economic loss with AIDS and Cancer cure?
Sensei replied to Elite Engineer's topic in The Lounge
The same "issue" is with gangsters/criminals and police and other Department of Justice employers, prosecutors, lawyers etc.. Lack of crime and offense (in the case of police officers), renders them jobless.. Like in "Demolition Man" with Sylvester Stallone, Sandra Bullock and Wesley Snipes. http://www.imdb.com/title/tt0106697/ Therefor introduction of "crimes" that are not true crimes (how can somebody commit crime, if he/she is "victim". Victim and criminal in the same person. What a nonsense). Yeah, they have product that they have to get rid off, and sell as much as they can.. No matter if people need it or not.. The most of ill people around the world could simply use garlic a day, and the most common ills are gone/never appear. -
I would use fast recording camera for this type of experiment. Plentiful even relatively low cost cameras can record 120 FPS, with limited quantity of frames. But 1000+ FPS would be great. Depending on your funds. Behind it place something with precisely draw vertical and horizontal lines, or checkerboard, allowing easier estimate distance. Alternative method is sending photons by laser and measuring time needed them to return to receiver. The longer distance the larger delay between emitting them and receiving back.
-
Are not you mixing units here? Power P is in Watts W, mA, Ampere, is unit of Current I. 10 mA with 230 Volts is 2.3 Watts... That would be quite a lot to "miss".. https://en.wikipedia.org/wiki/Electricity_meter Analog electricity meters are basically motors, that have disc spinning after applying to them current. Number of revolutions are read by device and displayed. In their case, your question could be rephrased to "is there so little current which won't cause motor to spin?" (even after a day/week/month of observation).. Plug say 1 Mega Ohm resistor to it, record initial settings, and check again after a day. You will see whether there is difference, or not.
-
-
In the real world experiment, it looks like this: This is from my Van De Graaff generator. Each time discharge is slightly different, but they are always from the closest as possible distances between plates. Therefor it's good to use f.e. needles. Spark will be from the end of needle. When electrons flow through metal, they heat it. Hot metal has different resistance than cold(er) metal. So the next time electrons choose slightly different path through metal where is lower temperature, and smaller resistance. Now, sort of, parallel plates: I choose couple frames from over 800. Spark in each discharge is in slightly different place and has different shape. ps. I wanted to attach Anim GIF, but SFN didn't play it, so had to switch back to static frames.
-
Your nickname is not feminine. Your avatar is not feminine. You were/are gaining some up votes in banning/suspending people, that are inadequately increasing mods/admins reputation, but you have also plentiful "right" upvotes for knowledge that you have showed and shared with others who asked for it. Unlike her. I have not seen any single her post I would like to upvote. Upvoting your post, except in banned/suspended section, is just because of your knowledge (which should be appreciated), not sex. Some might not even know you're woman. And that how should be in science community. Knowledge should rules over sexualism and sexism. Even though we have spring, and some might not control their hormones on the leash.. Your upvotes (except banned/suspended section) seem to be well deserved.
-
That's too cruel IMHO. And inappropriate. Jar Jar was traitor-idiot. He betrayed the whole galactic republic by proposing additional power for Chancellor, creating him Emperor.
-
Java has System.out.println() function. https://docs.oracle.com/javase/tutorial/essential/io/formatting.html But it does not matter in this subject. In C/C++ you would just replace that line with printf() or cout.
-
In your case (and my too) I would start from clay, as internal material, preventing lost of heat. It could be purchased in supermarket for pretty low price. It's plastic prior heating. It's used by sculptors. You can create any shape with it that you want. f.e. sphere with couple holes for air/Oxygen supply. $20 per kg here in Leroy Merlin (310 grams for $6.2) On auction websites I see it for $3.2 per kg with delivery. Delivery of air/Oxygen could be done by fish aquarium air pump. They differ by volume of air pumped per minute (mentioned on the box), and thus required power. I purchased aquarium air pump for $15. It has two pipes, each one 2.25 L/minute of air flow = 4.5 L/min capable at max (smooth regulation of power). 5 Watts (not much). I used it for making Sulfuric/Sulfurous Acid etc. It's pretty noisy at max power though. The other way could be reusing old broken computer/power supply fan. Unfortunately I don't have volume per minute data for this type of fan. Probably they will vary from model to model (and won't have mentioned V/min on the box like fish air pump). But it's worth checking, and you can dismount them at no cost, and use computer power supply to power them. Are you going to use Carbon, Methane, or something else.. ? Carbon you should blend in coffee grinder (purchase one cheap just for it) to dust. Good luck.
-
Being on orbit is not enough to call it living. It is better described as "sustaining alive", than "living". There has to be done everything what is done here on the Earth, and more. There have to be born new children and grow to adult in the space. While trying to reach other star system, without hibernation system, at non-relativistic velocities, there will be few to few dozen generations born in journey.