Control browser from command line I have an old router that I have set up as an AP on my home network. For some reason it loses connectivity every few days and needs a reboot.   I would like to set up a script to run once every night to do this automatically.  I can open the my browser (iceweasel) and navigate to my admin page of the router from the terminal:  iceweasel http://admin:password@192.168.1.1/WLG_adv.htm   On the page that this command opens there is a button with this code:  &lt;input onclick="return checkData();" name="Apply" value="Apply" type="submit"&gt;   Is there a way of performing the same action as this button from the terminal? I'm using a Debian Linux.
Are there any good tools besides SeleniumRC that can fetch webpages including content post-painted by JavaScript? One major shortcoming of curl is that more and more wepages are having their main piece of content painted by a JavaScript AJAX response that occurs after the initial HTTP response. curl never picks up on this post-painted content.   So to fetch these types of webpages from the command line, I've been reduced to writing scripts in Ruby that drive the SeleniumRC to fire up a Firefox instance and then return the source HTML after these AJAX calls have completed.  It would be much better to have a leaner command line solution for this type of problem.  Does anyone know of any?
Where is the right place to register/enqueue scripts & styles Highlight tags corresponding to our favorites Each of us have our list of favorite tags.  When a question has tag(s) that match one or more of ours, the background gets highlighted, drawing our attention to the question.  It would also be nice to highlight (perhaps using a bold font) the tags(s) that matched our own, so one could quickly do a further filtering of the question to see if it is of interest at the present time, like the following:    e.g. arduino is in my list of favorites, but the other two in each question are not. I tried to find an answer to this a few years ago, but it seemed it wasn't possible then (I suspect it isn't now either! - but what the hell!)   I have a three monitor system, that I mostly use for remote desktop. However occasionally it would be useful to have remote desktop on two monitors and use the other monitor for the local machine.   I know it is possible to have a single monitor full screen, or to stretch an RDP session across monitors, but this loses things like snapping etc.   P.S. this is a duplicate of  thread, but that was a couple of years ago, I'm hoping things have changed. Change password on root user and user account I can't seem to get Python to import a module in a subfolder. I get the error when I try to create an instance of the class from the imported module, but the import itself succeeds. Here is my directory structure:  Server     -server.py     -Models         --user.py   Here's the contents of server.py:  from sys import path from os import getcwd path.append(getcwd() + "\\models") #Yes, i'm on windows print path import user  u=user.User() #error on this line   And user.py:  class User(Entity):     using_options(tablename='users')      username = Field(String(15))     password = Field(String(64))     email    = Field(String(50))     status   = Field(Integer)     created  = Field(DateTime)   The error is: AttributeError: 'module' object has no attribute 'User' Why am I getting 50V at a light when the switch is off? I am trying to put in a switch and a light it controls in a storage building and  is how I wired it.   Click for larger view  When I checked the wiring it registered 120V when the switch was on, and right around 50V when the switch was off.  Why would power still be getting to the light (I'm guessing there is a problem with the switch) and why would it only be 50V?  Oh, and where everything branches off at the beginning I have a junction box there where all of the wires are joined there. How do I assign the output of a command into an array? How to use resistors? I have a power supply of 5 volts @ 1A. I want to reduce the current from 1A to 250mA. Which resistor should be use?   I tried this equation(Ohm's Law):  R = V / I  = 5/(0.75)  = 6.66 Ohms.  I tried the 6.66 Ohm resistor but it only reduce few mili Amps. Difficulty in finding a counterexample How to change LCD brightness from command line (or via script)? $A$ is normal and nilpotent, show $A=0$ Given a matrix $A \in R^{n \times n}$ which is normal ($AA^H=A^HA$ where $A^H$ is hermitian of $A$) and nilpotent ($A^k=0$ for some $k$). Now we need to show that $A=0$. (This is essentially exercise 5(b) in sec. 80 on p.162 of Paul R. Halmos' Finite-Dimensional Vector Spaces.) I tried to show in the following way, we know that, $AA^H=A^HA$ pre-multiply by $A^{k-1}\implies A^kA^H=A^{k-1}A^HA$ Now, we have $0 = A^{k-1}A^HA$, since $A$ nilpotent. I am not sure how to proceed from here to show $A=0$. Can someone help me in this problem? Export objects to separate files in Illustrator How to kill applications I have been playing around with Ubuntu installing new themes and and docks. Sometimes during the installation, whole screen just hangs. What is the best way in Ubuntu to Kill a process/application? Anything similar to Ctrl + Alt + Del of windows? What are good books for graduates/undergraduates in Astrophysics? There are no book recommendations for Astrophysics here. I will write my own answer, but I am also interested in what are others' views on the question (I will NOT mark my own answer as the best one). Is there a way to "auto login" in PuTTY with a password? Is there a way to configure a password for a stored session in ?  I know there is the capability to specify an "auto-login username" (under Connection/Data), but is there a way to do the same with the password? Add folder to PATH How to add something to PATH ? I have added like   PATH=$PATH:/home/example export PATH   and it works until I restart , after that when  I type env in PATH there is no /home/example. How to create a  tag with Javascript? I'm looking for a way to insert a &lt;style&gt; tag into an HTML page with JavaScript.  The best way I found so far:  var divNode = document.createElement("div"); divNode.innerHTML = "&lt;br&gt;&lt;style&gt;h1 { background: red; }&lt;/style&gt;"; document.body.appendChild(divNode);   This works in Firefox, Opera and Internet Explorer but not in Google Chrome. Also it's a bit ugly with the &lt;br&gt; in front for IE.  Does anyone know of a way to create a &lt;style&gt; tag that   Is nicer Works with Chrome?   Or maybe   This is a non-standard thing I should avoid Three working browsers are great and who uses Chrome anyway? find all the members of A4/K Let K={(1),(12)(34),(13)(24),(14)(23)} show that K is a normal subgroup of the alternating group of degree A4 and find all the members of A4/K and write down the group table for A4/K.   i know that K is the Klein four group and i have already proven it is a normal subgroup but i need a start on approaching the A4/K part of this question no direct answers are necessary,just ideas thank you! :) Prove that there are no positive integers $x$ and $y$ such that $x^3 + y^3 = 10^3$. Prove that there are no positive integers $x$ and $y$ such that $x^3 + y^3 = 10^3$.   This is a homework question, and I understand that its part of Fermat's Last Theorem, but when I looked that up to try to figure out the homework, I realized that it is way further than what we've learned in class so far. We have to prove this, but the only way I can think to do it is by exhaustion, which would be extremely lengthy. Any little shove in the right direction would be appreciated. Thanks! AutoFixture with AutoMoq and concrete object injection