Well i know that it needs infinite energy..but the term infinite is itself not physical so i am not satisfied with this answer  ...but what would happen if we provide a constant acceleration to an object for hundreds of year ...isn't its velocity will go on increasing with time ?? some told me as velocity increases ...so time dilation occurs and time slows down ...so acceleration will not work ...but i didn't get it ..its all messed up ...please help ..  Can i get an answer only in term of forces and time i mean without using infinite energy concept ...i hope you will get what i wanna ask about

I'm in a freshmen level physics class now, so I don't know much, but something I heard today intrigued me. My TA was talking about how at the research facility he worked at, they were able to accelerate some certain particle to "99.99% the speed of light". I said why not 100%, and I didn't quite understand his explanation, but he said it wasn't possible. This confused me. Since the speed of light is a finite number, why can we go so close to its speed but not quite?  Edit: I read all the answers, and I think I'm sort of understanding it. Another silly question though: If we are getting this particle to 99.99% the speed of light by giving it some sort of finite acceleration, and increasing it more and more, why cant we increase it just a little more? Sorry I know this is a silly question. I totally accept the fact we cant reach 100%, but I'm just trying to break it down. If we've gotten so close by giving it larger and larger acceleration every time, why cant we just supply it with more acceleration? And how much of a difference is there between 99.99% the speed of light, and the speed of light? (I'm not really sure if "difference" is a good word to use, but hopefully you get what I'm asking).


Is there any way to boot a Mac with WiFi turned off completely, until manually turned on again? (And to be precise - it should be turned off completely and not just disconnected from a network.)  The use case would be to patch a Mac that hasn't been used in a while (and has been powered off) and therefore booting it in an unpatched state is a small but non-zero security risk.  I've searched the web and haven't found any hint (could be me using wrong search phrases) so at this point I'm looking for any undocumented, "obscure" solution that's out there.  EDIT: This question has been marked as a duplicate of  but while it's pretty similar, I believe it's also different, so let me clarify.  The other question is about fixing a system that doesn't boot, whereas my question is about security.  We know that EFI in Macs is able to connect to WiFi to download the Recovery image, or in case of Macs with the T2 chip--to verify the OS if secure boot is enabled.  This means that if the system hasn't been updated in a longer while, the WiFi (or more general: networking) code in the EFI can have known vulnerabilities.   So basically when I turn on such a vulnerable Mac, up to a few minutes can pass until I can disable the WiFi in macOS preferences (let's say is has a spinning disk, so the boot time is significant),  and even then the EFI will still be able to turn it on after a reboot.  Now, I'm fully aware that it's unlikely that something bad will happen, but I'm hoping to learn a way to somehow enable "radio silence" mode on boot, e.g. using some magic, undocumented keyboard shortcut.

That is, are there nvram boot-args to disable wifi or a startup key sequence that does? Safe mode is said to PARTIALLY disable Wi-Fi on some Macs.   I googled and couldn't find an answer.   Haven't managed finding/searching the source code because that's hard to do from ths iPhone. My Mac is not booting normally... Even in safe mode. (Diagnostic running now. )  I'm getting an error about AWDL mode suspending and I recently enabled AirDrop and so I want to see if I can boot if I completely disable Wi-Fi.


My code doesn't show errors, but also doesn't work as it should. The output from the ajax call is working fine but I just can't get anything out of the onClick, no errors message, nothing.  The HTML

   The Ajax call  $(document).ready(function() {  $('.tab2').click(function(){         var account_id = $('#account_id').val();               $.ajax({                  url: 'ajax/account_info_serials_ajax.php',                  type:'POST',                  dataType: 'json',                  data: 'account_id='+account_id,                         success: function(response){                 $('#serials').html(response.table),                 $('#accounts_info_key').html(response.key),                 $('.drop_down').hide();                 },               error:function (xhr, ajaxOptions, thrownError){               alert(thrownError);                } // End of success function of ajax form               }); //end of ajax        });//close trigger   });//close whole function   The PHP     $response = '';    $response .='
';    $response .='plop';     $response .='
';    $response .='
';    $response .='bob';    $response .='
';     $output_array = array(               'table' => $response,               'key' => $key,               'count' => $count      );    echo json_encode($output_array);   The jquery onclick  $(document).ready(function() {       $('#serials').on("click", ".question", function(e){         alert('smeg');       }); });   Please note, I am not asking how to do it, I am asking why my version is not working, it is NOT a duplicate question

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


Replaced Win XP on my old desktop with 14.04 which is working fine, should I upgrade to 15.0 - I'm not a programmer, just a basic user - what do I need to know before making the upgrade? Do I just download and instal 15.0 or do I need to uninstall 14.04 first? Thanks for any help.

What are the differences between an Ubuntu Long Term Support release (LTS) and a normal release?


This is kind of a follow-up question to my last question (). I have succesfully used an Arduino digital output pin. The output pin drives IN1 and IN3 inputs of an L298N engine driver (with max 100 microA input current), as well as a CD4049 hex inverter input. The hex inverter output drives the other 2 inputs of the driver (IN2, IN4). This has worked without a problem. When I try to drive another load from the inverted output is when I get a problem.         – Schematic created using   I tried to drive at the same time the 2 inputs (IN2 and IN4) of the L298N and the base of a NPN BJT transistor 2N2222. When the inverter input was high everything worked well, and when the inverter input was low, neither the L298N driver worked or the 2 LED's through the transistor. I then though that maybe the base current was too high, so I thought I would switch with an N-channel MOSFET BS170. I replaced it Gate-Base, Drain-Collector and Source-Emitter. If the input went low, the output would go high on the CD4049. But when the input went high again, the output stayed high as well.  What am I doing wrong here? How do I correctly drive a NPN BJT or N-channel MOSFET from the output of a CMOS inverter like the CD4049?

I have an IC that has an GPIO with which I would like to drive a LED.   Since the device will be running off battery, keeping the power use low (Zero maybe) while the LED is off as a priority.  The GPIO supplies 3.3V when turned on and 0.0V votes when turned off.   It also has a limit of a maximum of 4mA.  The LED has a forward current of 20mA and a desired forward voltage of 2.0V.  When the LED is turned on it will most likely be blinking (using PWM) in the low kilohertz range.  After poking around I believe this may be the type of circuit I need.    Question 1: Am I even close to being on the right track.  Question 2: What is the correct component to use for item (5), (Transistor or  Mosfet), and how do I go about finding one (at the local Frys, RadioShack, Online) and how are they identified(specified)?  Question 3: Will the choice of item (5) have any effect on the ohm value of the resistor item (3)?  Apart from the normal Ohms law for the 3.0V power source and the 2.0V LED.  Question 4: What would be the ohm value of the resistor item (2), if any is required.


I have booted my system from a live usb (ubuntu 12.04 64 bit) and while I was going to format a certain partition on my hard drive, I accidentally deleted the partition table {disk utility --> selected my partition from the menu on left side of the window --> format (at the upper center part of the window) --> I select partition table --> and hit format}. Now it doesn't show any partitions (see attachment). and says "unallocated space" whereas it is allocated and there is data that are really important and I cannot afford to lose. I want to ask is there any way out to recover this information. I have already used testdisk and it has found three partitions successfully whereas the fourth one is still missing. If you recommend using the same software (testdisk) kindly guide me how can I find the fourth one as well and how can I recover them later on (after finding the right partitions). I don't know if it is duplicate or not but as far as I have searched on this site, most of the posts were not helpful. Posts related to testdisk has worked for me to some extent but still I am confused. If you mind asking like this, kindly remove this question. I don't mind. Sorry for any inconvenience caused. Thanks

I was installing ubuntu 12.04 on my system. There were 4 partitions on my system and I selected one of the four partition for the installation and chose the option of resizing the partition. Initially my partition was of size 100+GB and i created another partition out of it of size 15GB (EXT4). Now the moment I changed this partition structure my original partition got lost along with its data and I am left with 50GB partition and 50GB unallocated free space.   Now the data that I have lost is meant a lot to me and I want to recover that data. So is there any way I can recover it? And I haven't checked "format" option while resizing the partition.


I'm using a program to make GURPS characters (this is a game basically like D&D, with a lot more flexibility) created and run over here:  It's made in Java, and currently, when I open it, it renders all of the text invisible unless I click on an option. (See the screenshot.) Corresponding with the developer, he's saying that the dark theme I'm using is contributing to the unreadable quality. I can confirm this after playing with that option! There is a theme option in the program, but nothing in those options controls the basic presentation of text in selection. They also suggested opening GCS with a different environment variable setting, but I'm not sure what to change. I've investigated the option but most of what I've found involves changing the entire desktop environment, not just the variables for one program. I would love to know how to change the environment options just for this program!

For example, can I keep Ambiance as main theme but assign elementary theme to elementary's app?


I wonder if there is a chance that the VPS service provider can access my Windows VPS even I have changed the default password?

I am curious if it is possible to have a VPS that has data on it that is not readable by the hosting provider, but is still usable on the VPS.  Obviously there are some things that you could do to prevent them from reading anything...   You could change all the passwords, including root. But then, they could still use some alternate boot to reset the password, or they could just mount the disk another way. So, you could encrypt the disk or at least some of the contents on the disk. But then it seems that if you decrypted the content, they could still "peer in" to see what you were doing at the console, because after all, the virtualization platform should allow this. And even if you could stop that, it seems they could just read the RAM of the VPS directly.   Of course, the VPS can store data on it and as long as the key is not on the VPS and the data is never decrypted there, then the host cannot get the data.  But it seems to me that if any point the data on the VPS is decrypted...for use on the VPS...then the hosting provider can get the data.  So, my two questions are:   Is this correct? Is it true that there is no way to 100% secure data on a VPS from a host from seeing it, while keeping it accessable by the VPS? If it is possible to make it 100% secure, then how? If it is not possible, then what is the closest you can get to hiding data from the web host?


I have a DataTemplate in a ResourceDictionary. Now I have a GroupBox in the template, on which I want to use the MouseDown event. But the ResourceDictionary has no code behind (as intended) and no link to the code behind of the file where I use the things from the dictionary.  How do I use this event?

Is it possible to set code behind a resource dictionary in WPF. For example in a usercontrol for a button you declare it in XAML. The event handling code for the button click is done in the code file behind the control. If I was to create a data template with a button how can I write the event handler code for it's button click within the resource dictionary.


I have an equation in my application that works this way: user enter a number X (double) to use it in this equation:  double m = X * 0.015; double resultIWant = X - m;   Note that if m has more than 3 digits after comma I take exactly 3 digits without rounding by using this function:  public static double threeDigitsAfterCommaWithoutRounding(double retenue) {     return Math.floor(retenue * 1000) / 1000; }   but I'm getting wrong calculation result : Example: if X = 1359.532 this is what I get in console:  1359.532 * 0.015 = 20.392979999999998 m = 20.392 (After using the function above) 1359.532 - 20.392 = 1339.1399999999999 !!!!   So the result should be 1339.14 and not 1339.1399999999999 What am I missing ?

public class doublePrecision {     public static void main(String[] args) {          double total = 0;         total += 5.6;         total += 5.8;         System.out.println(total);     } }   The above code prints:  11.399999999999   How would I get this to just print (or be able to use it as) 11.4?


I have this text

The setup is shown below:

%as2-From%-%srcfilebase%.%srcfileext%

  I need regex to match to: src=""https://support.comp.com/inlineimages/Notify/Oct2014/25899/1413838988355.png""  and src=""/inlineimages/1413839088730.png""  However, when I use the regex img src="".+png"" It matches to:

The setup is shown below:

%as2-From%-%srcfilebase%.%srcfileext%

  Why is it including the  stuff between the two hyperlinks? Any help is appreciated.  I'm using regex generator:

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


I am stuck on this problem and have only basic knowledge of accounting. Can you help me?  Trying to find the effective annual interest rate of a car lease situation. The cost of the car originally is $24,995. A lease is set up with an initial $1594 payment and $295 monthly payments for 42 months. Assume the interest is compounded monthly. The residual value of the car if you want to buy it at the end of the cycle is $14,130. How can this be done in Excel?  I have found that the total amount in interest over time will be $3119. That is, if the customer pays the $295 for 42 months and add the principal value of $1594 to that. Using that sum and finding the difference from the original sale tag of the car is how I came up with the total interest amount. How can I convert this into effective annual interest?

How to calculate Annual Percentage Rate (APR) given the following:  A - Loan borrowed at the beginning (USD 1000), B - Loan total costs paid at the end (USD 2000), c - Number of compounding periods per year (52 weeks), k - Number of periods to pay the loan (60 weeks)  All the formulas found in literature use nominal interest rate but here we do not have it.  By APR I mean:   I have constructed a spreadsheet where I can find APR with Excel Solver by changing nominal interest rate. Wouldn't there be more elegant solution for that?


You have a car and would like to lift one side (so that two of the wheels don't lay on the ground). How hard would that be?  I am talking about a car close to the average dimensions: 1200kg, 4m20(length) x 1m80(width) x 1m50(height).  Ideally I would like to know how heavy would be a dumbbell to be as hard to lift.

I don't know the EXACT measurements, but I can closely guess that the bumper is about 18 inches from the ground, and the engine is in the front, yes(the engine is about 20 inches from the front bumper inside the hood, and about 23 inches centered between the hood on both sides). I don't know what the engine weighs, but the car's overall curb weight (whatever that means) is 2,480 lbs. Convert to any other weight measurements if you wish, but I'm most used to pounds.  I can assume you can easily find the specs of the size ... it's a Toyota Corolla 2002 blue SE limited-edition model.   Specs:  It is about fourteen feet and six inches long.  It is five feet and size inches wide from both doors on the front left to right seats.  The wheelbase is around eight feet.  The car is in total four feet and five inches from the floor to the roof in height.  I don't know if this question is relevant or meets the standards here, but I would really appreciate someone decent at physics and maths to help me find the weight here that is lifted from the back bumper's height, and the total force necessary to raise both wheels in the air about one inch.  Some have said that since there's shocks, the weight is favorable to the lifter somewhat, but to what degree I'm uncertain.  Any help would be greatly appreciated in your findings on this issue.


I would like to know if someone can help me with this.  "Show that a finite ring $R$ with unity $1\neq 0$ and no divisors of 0 is a field."  The original exercise asked me to show that it was a division ring, it's done. It also says that showing that commutativity holds is hard. I wonder, is it too hard? If it isn't, how could I show that?

I'm relatively new to ring theory so this is probably a simple question.  Its easy to see that a finite ring that is commutative and has no-zero divisors (i.e. an integral domain) must have multiplicative inverses.  I am wondering if we can rearrange these properties and always get implication or produce finite rings with only 2 of the above properties.  Explicitly my questions are:  1) Does a finite ring that is commutative with multiplicative inverses always have no-zero divisors? (EDIT: this one is pretty easy too, let $xy=0$ and assume $x\neq 0$. then $x^{-1}xy=x^{-1}0$. Hence, $y=0$ as desired.)  2) Is a finite ring that has multiplicative inverses and no zero divisors always commutative?  If these are actually simple exercises, I'd just like a hint to get started with the proof or any counterexamples.  Thanks :)


Excuse my limited acquaintance on English usage; which sentence is grammatically correct, and if any, which meaning does each convey?   I saw them play chess. I saw then playing chess.

I saw him crossing the road.   I saw him cross the road.   Which one is correct and why?


I accidentally deleted a directory with rm -rf /media/directory   When using ls -lh /media  the space appears to be free, but when I use df or open the file manager nautilus or pantheon, it shows that the previously occupied space is still allocated. I googled this problem and some says that some process is still using these data, so it won't be freed till unmount, restart or killing the process itself. I did none of these still, is there any way to recover it?

Are there any tools, methods, incantations to recover recently deleted files on Ubuntu?  If it makes any difference, I want to recover a  2.x database file. But would be better to have a method/tool that works on any kind of file.


I recently installed Ubuntu 13.10 on my Computer. I want to install Latex on my Desktop but i am unable to install it.  I first tried to install using following command:  sudo apt-get install texlive-full   but i am getting following error:  E: Package 'texlive-full' has no installation candidate

What does the above Error mean? What is an installation candidate?  I was trying to do  sudo apt-get install munin-memcached     and I get this message:  Reading package lists... Done Building dependency tree        Reading state information... Done Package munin-memcached is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package munin-memcached has no installation candidate   I googled for the problem and someone said to do a apt-get upgrade but it still did not solve my problem.


Here is the picture  hello im trying to put 3 divs next to each other just like in the link  (Im sorry i couldnt show the picture apparently my rank is too low to display the picture)  if you cant see the picture, im trying to display 3 divs inline with each other and does not resize even if you change the size of the browser how do i go about it? Thank you for your time  this is my code     body{  } #wrap{     width:auto;  margin:0 auto;   border:0px solid;  height:200px;   display:block;    } #one {   width:40%;   float:left;   background:red; }  #two {  background:yellow;  }  #three {   width:40%;   float:inherit;    background:blue; }

 BREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAK

 BREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAK

BREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAKBREAK

I want to put two <div>s next to each other. The right <div> is about 200px; and the left <div> must fill up the rest of the screen width? How can I do this?


I have the following code. I understand the concept of java string immutability and string constant pool. I don't understand why 'name1 == name2' results false and 'name2 == name3' results true in the following program. How are the string variables name1, name2, and name3 placed in the string constant pool? public class Test {     public static void main(String[] args) {         final String firstName = "John";         String lastName = "Smith";         String name1 = firstName + lastName;         String name2 = firstName + "Smith";         String name3 = "John" + "Smith";         System.out.println(name1 == name2);         System.out.println(name2 == name3);    } }  Output: false true

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


Is the 1st level Command spell [PHB p223] a "charm" (that would trigger an elf's Fey Ancestry [PHB p23] racial ability and thus get advantage on the saving throw)?

Elves and Half-Elves have Fey Ancestry, which states     You have advantage on saving throws against being charmed.   What spells and effects are covered by this? Only Charm Person? Enchantment spells with a Wis save?   A good answer should contain either rule text and/or statements (tweets) by the 5e design team.


Find the value of $x$ so that $|x-1|+|2x-1|+|3x-1|+\dotsb +|119x-1|$ is minimum. Based on my trial-and-error method in Desmos, I am getting $x=\frac{1}{118}$; how do I get the correct answer?

What is the global minimum of the expression   \begin{align} |x-1| &+ |x-2|+|x-5|+|x-6|+|x-8|+|x-9|+|x- 10| \\&+  |x-11|+|x-12|+|x-17|+|x-24|+|x-31|+ |x-32|? \end{align}   I've solved questions of this sort before but there were only 3 terms. I solved those by expanding all the terms in the modulus and drawing a graph. This question came in a paper which requires the student to solve it within 5 minutes. What's a better method?


I'm aware that between books 1-4 Voldemort was vaporized and didn't have a physical body, but why doesn't he just visit Harry after he gained a physical body in books 4-7? Did Voldemort have travel restrictions? Was Hogwarts or Little Whinging protected against Voldemort? I know this would be a plot-twist but there must be a reason...

As we all know that Voldemort had one of his Horcruxes in as Harry himself, but sighting that he would be defeated at the hands of Harry, why didn't he - the Dark Lord - take a look into the future to know what was to happen. He could trace down Harry's Muggle residence and try to kill him altogether. That would have given a twist to the story, wouldn't it?


I have two projects in GitHub one is a core and the other depends on it. I am constantly updating both still and need a way to always have the latest version of the dependency when working on the project.  I tried setting up a maven project and depending on the core plugin using JitPack but since my repos are private it wouldn't let me without a subscription. Are there any other programs that work with private repos for free?  I tried searching online but don't know exactly what type of program it would be since I am new to working with all this.

In Maven, dependencies are usually set up like this:  <dependency>   <groupId>wonderful-inc</groupId>   <artifactId>dream-library</artifactId>   <version>1.2.3</version> </dependency>   Now, if you are working with libraries that have frequent releases, constantly updating the <version> tag can be somewhat annoying. Is there any way to tell Maven to always use the latest available version (from the repository)?


I use two linux machines, home pc and server.  Lets say i want to modify some config files on both systems.  How can i synchronize them to make these modifications ony once?  Is there option to add new machine to this hypotetical synchronized network and apply all previous changes to new machine?

Beside our internal IT infrastructure, we've got around 500 Linux machines hosting our services for the on-line world. They are grouped in a bunch of clusters like Database A-n, Product A-n, NFS, Backoffice and so on. Furthermore, they are administered by an external provider, according to our specifications and requirements.  However, we face a lot of trouble during (web-) software development, roll-out and deploy - especially because the dev- and staging-environments have almost nothing in common with the live systems (I spare out the nasty details..).  Thus, I've tried to create virtual machines, copied the various live-systems as exactly as possible and prepared them to connect to e.g. the development-databases instead of the "real" ones transparently for developers (they aren't root). This works pretty well, but...  I was wondering how one could administer those systems remotely and in bulk? Is there some software family I'm not aware of? Or, at least, some techniques or principles one should be familiar with?  We would provide every developer with a bunch of images to be run locally (VirtualBox). The QA dept. would get virtual clusters (XEN or Hyper-V). If I need to provide an additional server-module, re-route a new database connection or just want to update everything provided by the package manager... how could I possibly do that without being forced to log on to every system and/or ask my colleagues to download and run some fixture-script?  I believe there are plenty of solutions. Well, somehow I'm too stupid to enter the correct keywords into the search engines... Or isn't this issue as trivial as it sounds?  For the record:   Almost all systems are running Debian GNU/Linux 6.x "squeeze" No developer is forced to use a particular OS at his/her workstation The budget is limited, of course, but not too small to buy proprietary software A solution that would involve our aforementioned provider is preferred


I'm using Blender 2.71, and a day or two ago this weird UI glitch started occuring:   ^ Here's a screenshot of it.  The bleeding seems to trigger in various ways, the most common one being changing the user perspective viewing angle. The bleeding starts slow, going down one line at a time blurring the content (and diagonally, as you can see in the upper left).  Mousing over a bled UI element restores it to normal. I tried resetting to factory settings as well as changing the window size (full screen, small, etc) but to no avail.  I haven't had any graphical issues with other software (including games) so I doubt it's a graphics card issue.  I'm going to try and reinstall Blender and make sure my graphics drivers are up to date, hopefully that will work.  Any other suggestions?  Thanks in advance!

When I move my mouse, the window in Blender blurs / smears down. Why is this is happening?


I'm trying to create tasks in a loop and each task uses different values as method parameter. However, I found all tasks are having the same parameter              for(int i = 0; i < threads; i++)         {             tasks.Add(new Task( () => DownloadFunc(i) ));         }          WATCH.Reset();         WATCH.Start();         Parallel.ForEach(tasks, t => t.Start());

I met an interesting issue about C#. I have code like below.  List<Func<int>> actions = new List<Func<int>>();  int variable = 0; while (variable < 5) {     actions.Add(() => variable * 2);     ++ variable; }  foreach (var act in actions) {     Console.WriteLine(act.Invoke()); }   I expect it to output 0, 2, 4, 6, 8. However, it actually outputs five 10s.  It seems that it is due to all actions referring to one captured variable. As a result, when they get invoked, they all have same output.  Is there a way to work round this limit to have each action instance have its own captured variable?


I am running Ubuntu 14.04 64 bit.  When I plug in my USB floppy drive Ubuntu tries to automount the drive and I get the same error message if there is a disk in the drive or not. The USB Floppy drive works on another laptop that is running Windows 7.  "Error mounting /dev/sdb at /media/dave/disk: Command-line `mount -t "auto" -o "uhelper=udisks2,nodev,nosuid" "/dev/sdb" "/media/dave/disk"' exited with non-zero exit status 32: mount: no medium found on /dev/sdb"  I am not sure how to go about troubleshooting this one.  --Dave

Same computer, under Ubuntu 8.04 no problem at all. Under 12.04, floppy drive is non existent for Ubuntu. Drive and floppy disquette works well on DOS. Computer boots from the floppy W98se, no problem at all.  How I can use floppys under Ubuntu 12.04 ?.


I need good precision on the data, so I am using double to lable my definitions  (e.g. double x=M_PI). But whatever I do, double will not work, and only give me 5 points after decimal.   My IDE is geany, and I am currently using Raspberry Pi to program.  #include <iostream> using namespace std;  int main(int argc, char **argv) {     std::cout<<"Hello,World\n";     double dxe=1.3558153152153215321755;     cout<<dxe<<endl;     return 0; }   I need dxe to show most of its decimal place, but I am only getting 1.35582 on my terminal.

In my  I was printing a double using cout that got rounded when I wasn't expecting it.  How can I make cout print a double using full precision?


I've noticed that a new "Community Bulletin" box is being rolled out network-wide:    Can someone describe this new feature?

#Community Bulletin was redesigned on June 23, 2014 More info on .   As some of you , there's a new feature on Stack Exchange:  The Community Bulletin box is a tool for the community to promote events and initiatives that are important to them. On-site activities like tag cleanup events, chat events, and weekly topic contests are some examples of things to promote in the community bulletin.  The origins of this yellow grab bag of information are a suggestion by iKnowKungFoo:  and another from Isaac Moses: . Both of these ended up approaching very similar problems from very different directions... Every community needs some public area to post notices of general interest. Meta works to a certain extent, but not everyone visits meta. We needed a fixed, visible place to display this stuff that would be easy to find but wouldn't intrude upon the normal content of the site (in the way that system messages do). So after a considerable amount of internal discussion, we came up with some fairly simple rules for displaying moderator elections, current events, blog posts,  meta posts and . (For the specific details, see: ) Note that this replaces the "Visit Meta" sidebar block, which had very similar rules for what got displayed... But didn't consistently show up anywhere itself! This makes it pretty easy for everyone to have at least some say in what gets shown there. Anyone can start a meta discussion. Moderators can feature them if they need some extra attention, and they can schedule events to promote chat discussion, contests, conferences, etc.  There are two missing pieces though:  It's not particularly functional for Stack Overflow, because there's no way to create per-tag events. Apart from things like  and major cleanup efforts, there aren't a lot of events that are worth intruding on every single reader's view.  The best part - scheduled events - is .   The reason for omitting both of these initially is to give y'all a chance to play with it a bit without getting too crazy. With no gatekeepers in place, a bulletin board quickly starts to look a bit... messy.  So for now, when you have something you'd like to announce, create a meta post describing the event and tag it   - you can then use this post to describe, discuss, and collect votes (for and against) the proposed event. If it gets sufficient activity, a moderator should then step in and add it to the site's calendar. Use it! Together with , this is your space to talk about yourselves, share important news and keep each other informed of what's going on. We're excited to see what you can come up with...


I'd like to put enumerate on a new line, but cannot use \newline because there is no line to end! Here is the code:  \newtheorem*{quoz}{Teoremi del quoziente} \begin{quoz} % \newline here does not work     \begin{enumerate}         \item Se $\lim\limits_{x \to \alpha} |f(x)| = +\infty$ allora $\lim\limits_{x \to \alpha} \frac1{f(x)} = 0$.         \item Se $\lim\limits_{x \to \alpha} f(x) = 0$ allora $\lim\limits_{x \to \alpha} \frac1{|f(x)|} = +\infty$.         \item Se $\lim\limits_{x \to \alpha} f(x) = l$ allora $\lim\limits_{x \to \alpha} \frac1{f(x)} = \frac1l$.         \item Se $\lim\limits_{x \to \alpha} f(x) = l$ e $\lim\limits_{x \to \alpha} g(x) = m \neq 0$, allora $\lim\limits_{x \to \alpha} \frac{f(x)}{g(x)} = \frac lm$.     \end{enumerate} \end{quoz}   Currently the problem is that the first point starts where the theorem's title is. I find it kind of ugly. Is there a way to make it start after a new line?  I tried doing  \begin{quoz}$ $\newline     \begin{enumerate} %...   But that adds too much space and feels like a hack. Is there a better way?  EDIT: I discovered that for some weird reason this works  \begin{quoz}$ $     \begin{enumerate} %...   I don't get why because $ $ should be inline... Nevertheless, is there a better way?

I wish to use the enumerate/itemize environment within the proof/remark environment, but when I do this the first number/bullet-point is on the same line as the word 'Remark'/'Proof' indented to the right, and all subsequent number/bullet-points are all aligned nicely below.  I think it looks a bit clumsy. I tried adding a double backslash immediately after \begin{proof} but sometimes this means I have the word Proof at the bottom of a page and on the next page the bullet points start, which looks terrible. Is there a way round this?


We saw a Grimm neutralize a hexenbeast before by stripping her of her powers (Adalind Schade).  Why does this not work for       Juliette Silverton?   It might have been discussed in some of the episodes but I simply don't remember if there is a reason.

In the last few episodes we've seen that Juliette has      Somehow transformed into a Hexenbiest.    Shouldn't Nick be able to cure her simply by having her ingest some of his blood?


I am trying to clone an object and delete 2 properties,  this.clone = Object.assign({}, this.purchaseOrder) console.log("0clone", this.clone) this.clone.client_purchase_order_items.forEach((order, index) => {     delete order.list_of_measures;     delete order.isReadOnly; }); console.log("purchase Order", this.purchaseOrder)   But its affecting cloned object and the which I used for cloning. I don't want to remove properties from this.purchase order. what should I do?

What is the most efficient way to clone a JavaScript object? I've seen obj = eval(uneval(o)); being used, but . I've done things like obj = JSON.parse(JSON.stringify(o)); but question the efficiency.  I've also seen recursive copying functions with various flaws.  I'm surprised no canonical solution exists.


Does anyone know why is the function  $Z  = \sum e^{-\beta E_i}$ called ?  For example, does it have a connection to the mathematical term "partition of $A$" which is a representation of the set $A$ as a disjoint union of it's subsets  (and defines an equivalence relation over $A$)?  EDIT: The explanation below and the explanation  indeed almost give me a full answer. I just want to be sure: We are divding the whole quantity be it's energy states and not by it's particles. This means that a class in a partition can have lots of particles and can be related to one energy state exactly. And we have to know the distribution function of the particles in the system. Am I right? or mayby every particle has it's own distribution?

The  plays a central role in statistical mechanics.  But why is it called ''partition function''?


Why does the Equivalent resistance decrease when we connect resistors in parallel? I know current divides and potential difference is constant but my question is that if Equivalent resistance have same flow of current as indiviual resistance then why parallel equivalent resistance is smaller than smallest indiviual resistance. I dont want derivation of parallel resistance formula.

I understand that for resistors in series we need to add R for each resistor to get the equivalent resistance, where R is resistance. I also understand the mathematical manipulations that show that for resistors in parallel we need to add the 1/R for each resistor to get the equivalent resistance. However I have a couple of questions that have to do with the physical interpretation of the mathematical manipulations involved.   First, I am trying to understand why in the case of parallel resistors we have to add 1/R's instead of adding R's as in the case of resistors in series i.e. could it be thought that the current in the wire is like a sort of water flow in the pipe that has two horizontal parallel pipes positioned one on top of the other and in between connected by a number of vertical pipes that have a tap each that could be adjusted to represent different resistances. Then at the top of each vertical pipe the water pressure P exists and at the bottom the pressure will be reduced by P*R.   For example, suppose we have three vertical pipes, so then the pressure at the bottom of each (after the tap) is P*R for the total of 3*P*R so why is the equivalent resistance not 3*R*P but 1/R = (1/R1 + 1/R2 + 1/R3) and how can I be able to visualize this relation?


When I use contextual filters in a view, I can select an option to display a summary when the argument is not present. If I do it, it shows a list of node IDs instead of titles. For example, I get the following output, where the first number is the node ID, and the second number is the count of nodes.   1256 (12) 4323 (723) 5643 (34)   I want is to rewrite the output and replace the node ID with its title. ViewExecutable has a $args property I can check to know when the argument is not present.  How could I achieve this in a hook? In Drupal 7 I could use hook_views_post_execute(). I modified $view->result and changed it on my own.  I tried to do the same with Drupal 8 and the same hook, but hook_views_pre_render() gets a ViewExecutable object, and I don't know how to change it. I used the following code.  function MYMODULE_views_pre_render(ViewExecutable $view) {   if ($view->id() == 'myidoftheview') {     $results = $view->result;     foreach ($results as $result) {       \Drupal::logger('myview')->notice('<pre>'.print_r($result,TRUE).'</pre>');       // What code should I write here?     }       } }

I'm using Drupal 8.0.5, and need to force a title on a View.  I've tried various Views hooks, but will focus on ().  There's a ViewExecutable $view taken as an argument, which is not passed by reference.  I've tried:  function mymodule_views_pre_render(ViewExecutable $view) {   $view->setTitle('foo');   // $view->save(); // I've also tried this }   I've gone through step-debugging to ensure it's getting called, but it seems the  method does not affect the output that renders. I've also set my theme back to Seven to ensure there's not a theme issue involved.  I'm also happy to embed the View using a custom block, but I am running into the same issue there.  How does one modify a  object properly?


Sometimes google passwords in chrome doesn't pop up to offer to fill a password or to save it. is there a shortcut or a way to make it come up?

So at one point, Chrome asks you (after login) if you want it to save the password.    The next few times I login, the dialog box/bar doesn't pop up but the key icon near the star is there.    I click it and delete some outdated or duplicate passwords. I changed my Google password because I was forced to by Google.    Chrome isn't remembering that new password (the dialog box isn't popping up).    Is it possible to add a new password to the settings such that when I navigate to the page, the username/password is there already in the fields, highlighted in yellow? this happens in gmail. Thats when i started noticing it. (and all other sites)  Edit: This doesn't seem to happen anymore for me. although someone should answer for the benefit of other readers


For context:  A moderator in a chatroom created a joke event, then deleted the event once they realized it sent out a site-wide announcement, including an "upcoming event" notification in the sidebar. However, apparently the event being deleted didn't remove it from the sidebar. Now, this event starts in a couple of hours, so it's not a big issue that it's on the list. But just for future reference: if a chat event is created in error, what is the correct procedure to remove it in such a way that it's no longer shown in "upcoming events" in the sidebar?

For the second time recently, I've managed to schedule a chat event for the wrong time (the date defaults to tomorrow?!). Once I realised this, I unscheduled the event. However, there is still a link in the sidebar on the main site, several hours after I did so:


I know this has to be proven both ways since it is an if and only if question, but I do not know how to go about this or even where to start either side of the proof. I know $[a][b]=[0]$ for there to be a zero divisor. Please help!

A non-zero number $a \in \mathbb Z_n$ is called a divisor of zero if there is a non-zero number $b \in \mathbb Z_n$ such that $ab\equiv 0\pmod n.$  How can I prove $\mathbb Z_n$ has divisors of zero if and only if $n$ is not prime.  I filled out the addition and multiplication tables for modulo 6 and 7 and tried to find out the relation, and it's definitely true. I know I need to prove it in both directions since it is an 'iff' question. But I still don't get it.


I want to write an application with the library in nodejs. Is there any way to connect QML or C++ with nodejs on ubuntu touch?  Edit: I want to write a native application (in QML) and use a library written in nodejs. How can I call nodejs in QML?  Duplicate question does not respond to the question.

I'm new here and interested in developing apps for Ubuntu Touch. Already got the developer version running on a tablet model P3110.  What I'd like to know is if it's compatible with NodeJS or if it's possible to create apps using that technology given that I read it accepts Javascript.  Or is it better to use HTML5/QML? If so, why?  Thanks in advance!


My code reads a number ("4") from a .txt file, in sd card, then It is supposed to compare this number against "5". but It is not letting me, It says  "operator '<' cannot be applied to java.lang.stringbuilder"  this is how I read-    StringBuilder serverApkVersion = new StringBuilder();         try {             BufferedReader br = new BufferedReader(new FileReader(VerFileDirectory));             String line;             while ((line = br.readLine()) != null) {                 serverApkVersion.append(line);                 serverApkVersion.append('\n');             }             br.close();         } catch ( IOException e ) {             Toast.makeText(context, "error reading ver file", Toast.LENGTH_LONG).show();         }   this is how I compare-     if (serverApkVersion > 5) {   PS:: I have tried this -  int serverApkVersion = Integer.parseInt(String.valueOf(serverVersion));  but it force closes, log says "invalid int "5" "

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I created a Compute Engine VM (Ubuntu 18.04), and when I log into it using the SSH button in the VM instances list I'm logged in as user username.  After a while, I realised I needed to be able to use another SSH client as well. As per  I enabled OS Login by adding a key-value pair in metadata, where key is enable-oslogin and value is TRUE.  I then tried to add my existing SSH key:  gcloud compute os-login ssh-keys add --key-file ~/.ssh/id_rsa.pub --ttl 0  which was successful except one major problem: it has added the key for user username_gmail_com and will only allow me to ssh to my VM as that user:  ssh username_gmail_com@myinstance  That's very inconvenient, because my code is at /home/username owned by username. So instead, I would like to be able to  ssh username@myinstance  Where did I go wrong, and what would be the best way to solve this?  ps. I also tried   gcloud compute ssh username_gmail_com@myinstance gcloud compute ssh username@myinstance   which both give the WARNING: You do not have an SSH key for gcloud. and offer to create it (which I haven't).  ===Edit  I disabled OS Login, but then I can't ssh from my local console at all (of course, because that's what the docs say). The web interface console then logs in with the old username.  So with OS Login disabled for my project, Compute uses username. With OS Login enabled, it uses username_gmail_com. Any pointers to docs explaining why this is and how we can influence would be welcome.  My solution likely lies in reconfiguring the server for the new user (it's entirely possible that recreating it is easier). If anyone knows any other solution I'm interested to learn.

I created a Compute Engine VM (Ubuntu 18.04), and when I log into it using the SSH button in the VM instances list I'm logged in as user username.  After a while, I realised I needed to be able to use another SSH client as well. As per  I enabled OS Login by adding a key-value pair in metadata, where key is enable-oslogin and value is TRUE.  I then tried to add my existing SSH key:  gcloud compute os-login ssh-keys add --key-file path/to/key.pub --ttl 0  which was successful except one major problem: it has added the key for user username_gmail_com and will only allow me to ssh to my VM as that user:  ssh username_gmail_com@myinstance  And it has also created that user on my VM. From the web interface, I'm logged in to the VM with that new user as well (/home/username_gmail_com). Of course, I can still access the original user's data (/home/username). When I disable OS Login the web interface logs me in as username again and SSH from another client is disabled.   Why is the username different when enabling OS Login? Can I change the username with OS Login enabled?   Edit  There has been an addition to the docs explaining exactly this question. Check here:  and on  all the way at the bottom under "Expected login behaviors".


How do I prove that $\dfrac{H_n}{n}$ (where $H_n$ is a harmonic number) converges to $0$, as $n \to \infty$?

Show that  $$\lim \frac{1}{n} \sum_{i=1}^n \frac{1}{i} =0 $$  I've proved that this sequence converges (it is bounded and decreasing). NOW, I need to find a sequence that is bigger than this one and goes to zero. Maybe something using geometric serie of 1/2  Thanks in advance!


I'm trying to make a Postfix-based E-mail server. I face the following error whenever I try to launch the server:  Sep 24 12:17:39 hostname9727 postfix/postfix-script[7506]: warning: group or other writable: /etc/postfix/./master.cf Sep 24 12:17:39 hostname9727 postfix/postfix-script[7507]: warning: group or other writable: /etc/postfix/./relocated Sep 24 12:17:39 hostname9727 postfix/postfix-script[7508]: warning: group or other writable: /etc/postfix/./generic Sep 24 12:17:39 hostname9727 postfix/postfix-script[7524]: starting the Postfix mail system Sep 24 12:17:39 hostname9727 postfix/master[7526]: fatal: open lock file /var/lib/postfix/master.lock: unable to set exclusive lock: Resource temp...vailable Sep 24 12:17:40 hostname9727 postfix/master[7525]: fatal: daemon initialization failure Sep 24 12:17:41 hostname9727 postfix/postfix-script[7527]: fatal: mail system startup failed Sep 24 12:17:41 hostname9727 systemd[1]: postfix.service: control process exited, code=exited status=1 Sep 24 12:17:41 hostname9727 systemd[1]: Failed to start Postfix Mail Transport Agent. Sep 24 12:17:41 hostname9727 systemd[1]: Unit postfix.service entered failed state. Hint: Some lines were ellipsized, use -l to show in full.   postconf -M  smtp       inet  n       -       n       -       -       smtpd pickup     unix  n       -       n       60      1       pickup cleanup    unix  n       -       n       -       0       cleanup qmgr       unix  n       -       n       300     1       qmgr tlsmgr     unix  -       -       n       1000?   1       tlsmgr rewrite    unix  -       -       n       -       -       trivial-rewrite bounce     unix  -       -       n       -       0       bounce defer      unix  -       -       n       -       0       bounce trace      unix  -       -       n       -       0       bounce verify     unix  -       -       n       -       1       verify flush      unix  n       -       n       1000?   0       flush proxymap   unix  -       -       n       -       -       proxymap proxywrite unix  -       -       n       -       1       proxymap smtp       unix  -       -       n       -       -       smtp relay      unix  -       -       n       -       -       smtp showq      unix  n       -       n       -       -       showq error      unix  -       -       n       -       -       error retry      unix  -       -       n       -       -       error discard    unix  -       -       n       -       -       discard local      unix  -       n       n       -       -       local virtual    unix  -       n       n       -       -       virtual lmtp       unix  -       -       n       -       -       lmtp anvil      unix  -       -       n       -       1       anvil scache     unix  -       -       n       -       1       scache   postconf -n  alias_database = hash:/etc/aliases home_mailbox = /home/virtual/mail/ alias_maps = hash:/etc/aliases broken_sasl_auth_clients = yes command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 home_mailbox = /home/virtual/mail/ html_directory = no inet_interfaces = localhost inet_protocols = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain mydomain = hostname9727.com mynetworks = 127.0.0.0/8, 10.0.0.0/24 myorigin = $myhostname newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES sample_directory = /usr/share/doc/postfix-2.10.1/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtpd_banner = $myhostname ESMTP unknown_local_recipient_reject_code = 550   what is the problem? Thanks!

Postfix was running well untill I decided for some reason to restart since I updated message_size_limit   By doing this     postconf -e message_size_limit=24840000   Stopped it and Now ... Postfix wont start , It keeps on saying      fatal: open lock file /var/lib/postfix/master.lock: unable to set exclusive lock: Resource temporarily unavailable   I tried reverting the change but no luck,  Sep 23 20:47:45 example.com systemd[1]: Starting Postfix Mail Transport Agent... Sep 23 20:47:45 example.com postfix/postfix-script[13392]: starting the Postfix mail system Sep 23 20:47:45 example.com postfix/master[13394]: fatal: open lock file /var/lib/postfix/master.lock: unable to set exclusive lock: Resource temporarily unavailable Sep 23 20:47:46 example.com postfix/master[13393]: fatal: daemon initialization failure Sep 23 20:47:47 example.com postfix/postfix-script[13395]: fatal: mail system startup failed Sep 23 20:47:47 example.com systemd[1]: postfix.service: control process exited, code=exited status=1 Sep 23 20:47:47 example.com systemd[1]: Failed to start Postfix Mail Transport Agent. Sep 23 20:47:47 example.com systemd[1]: Unit postfix.service entered failed state. Sep 23 20:47:47 example.com systemd[1]: postfix.service failed.   If it would help , I also installed SSL from LetsEncrypt like 2 weeks ago , perhaps that might be the cause of the problem?


I have a Transact-SQL query that uses the IN operator. Something like this:  select * from myTable where myColumn in (1,2,3,4)   Is there a way to define a variable to hold the entire list "(1,2,3,4)"? How should I define it?  declare @myList {data type} set @myList = (1,2,3,4) select * from myTable where myColumn in @myList

How do I parameterize a query containing an IN clause with a variable number of arguments, like this one?  SELECT * FROM Tags  WHERE Name IN ('ruby','rails','scruffy','rubyonrails') ORDER BY Count DESC   In this query, the number of arguments could be anywhere from 1 to 5.  I would prefer not to use a dedicated stored procedure for this (or XML), but if there is some elegant way specific to , I am open to that.


I am using a cartesian coordinate system, and I have the coordinates of two points (red dots in the figure). By Pythagoras I can calculated the distance between those two points. However I want to know the coordinates of the green dot, which is perpendicular the side $b$, given that I know the distance $a= 80.$ I cannot find a way to calculate the coordinates of the green point. Any suggestions will be most welcomed.

Given that I know the point coordinates of point $A$ and point $B$ on segment $AB$ and the expected length of a perpendicular segment $CA$ (perpendicular over $AB$), how do I calculate the point coordinates of the point $C$?


For instance, let's say I mounted dev/sda1 and dev/sda2 in the distant past. I'm in media and I see folders drive1 and drive2. What command can I use to see which one is sda1 and which one is sda2?

I can do df . to get some of the info on the mount that the current directory is in, and I can get all the info I want from mount. However I get to much info (info about other mounts). I can grep it down, but am wondering if there is a better way.  Is there some command mountinfo such that mountinfo . gives info I want (like df ., but with the info that mount gives.)    I am using Debian Gnu+Linux.


I've upgraded to Ubuntu 13.10. If I now click the Ubuntu logo the default is that it only searches in social media. I cannot find my programs any more!

After upgrading to Ubuntu 13.10, when I click on the Dash icon I can only see social media search results. I can't type in applications or see a list of applications to launch.


I would like to create a mass-market paperback size book using scrbook. The book in question is approximately 400 pages long at 6x9 dimensions. I would like the text to still be readable, but I'd like this version to have as few pages as possible. What packages are recommended, or what techniques/tricks can be used to best accomplish this?  I tried to search the site for answer, but I am caught in a captcha infinite loop. The first two or three times there were pictures, now I just check a box before I get yet another captcha. Hence this question.   \documentclass[fontsize=10pt,headings=small,BCOR=.25mm,openany]{scrbook} \usepackage[paperheight=6.88in,paperwidth=4.25in, left=1cm]{geometry} % will the binding correction affect the margins? \addtokomafont{disposition}{\rmfamily} \usepackage[english]{babel} \usepackage[DIV=15]{typearea} \usepackage{fontspec,xltxtra,xunicode} \defaultfontfeatures{Mapping=tex-text} \setromanfont[Mapping=tex-text]{Times NR Condensed} \linespread{.9} \raggedbottom \begin{document} blah blah \end{document}   The following lines were deleted because LaTeX reported that they were causing conflicts with scrbook. It's odd the crop package caused a conflict.  %\usepackage[small,compact]{titlesec}   %added to save space %\enlargethispage* %added to save space? didn’t work %\enlargethispage{3\baselineskip} %\usepackage[cam,a4,center]{crop}    I tried reducing the font to 8 pts but it's really not readable. Are there any other suggestions, or packages that might help?

I am submitting a paper to a conference that has a limit of 10 pages.  I have edited and edited the text, but the paper still fills 11 pages, and I am reluctant to remove anything.  What tricks can I use to make the paper fit in 10 pages?    I know about \vspace{-1mm}, but are other and better tricks?  How can I squeeze a little bit between lines, around the elements produced by \maketitle, around headlines, etc. in a way that is consistent and does not look too ugly?  Is it possible to reduce the font size from 11 points to, say, 10.9?  (This should be community wiki, but I don't have enough rep yet.)


I have a power key on my keyboard, and I want to run a script when it's pressed.  I looked around and didn't found anything on this, for what I've seen, people always have been satisfied with what logind.conf is offering, here is the interesting part of man logind.conf:  HandlePowerKey=, HandleSuspendKey=, HandleHibernateKey=, HandleLidSwitch=, HandleLidSwitchDocked=        Controls how logind shall handle the system power and sleep keys and the lid switch to trigger actions such as system power-off or suspend. Can be one of "ignore", "poweroff", "reboot", "halt", "kexec", "suspend", "hibernate", "hybrid-sleep", and "lock". If "ignore", logind will never handle these keys. If        "lock", all running sessions will be screen-locked; otherwise, the specified action will be taken in the respective event. Only input devices with the        "power-switch" udev tag will be watched for key/lid switch events.  HandlePowerKey= defaults to "poweroff".  HandleSuspendKey= and HandleLidSwitch= default to        "suspend".  HandleLidSwitchDocked= defaults to "ignore".  HandleHibernateKey= defaults to "hibernate". If the system is inserted in a docking station, or if        more than one display is connected, the action specified by HandleLidSwitchDocked= occurs; otherwise the HandleLidSwitch= action occurs.         A different application may disable logind's handling of system power and sleep keys and the lid switch by taking a low-level inhibitor lock        ("handle-power-key", "handle-suspend-key", "handle-hibernate-key", "handle-lid-switch"). This is most commonly used by graphical desktop environments to take        over suspend and hibernation handling, and to use their own configuration mechanisms. If a low-level inhibitor lock is taken, logind will not take any action        when that key or switch is triggered and the Handle*= settings are irrelevant.   I didn't managed to set bold text in code block (and didn't used quote block since it puts all in a single line and it then clearly unreadable), I then repeat the interesting part here:     Controls how logind shall handle the system power and sleep keys and the lid switch to trigger actions such as system power-off or suspend. Can be one of              "ignore", "poweroff", "reboot", "halt", "kexec", "suspend", "hibernate", "hybrid-sleep", and "lock".   Or I am in the wrong way and this is just for keyboard keys, and not power button ?  In any case, previously, it was easy with acpi, one just had to replace the power_button script in /usr/lib/acpid/, isn't there something equivalent for systemd ?  Thanks.  PS:  suggested in comments does not answer my question, as I answered this is to manage power key from keyboard, not power button.

How does one change the power button shutdown action under say debian 10 systemd to run a custom script instead of shutting down the system?  Back when this was handled by acpi one could edit the scripts in /etc/acpi.  The only suggestion I have found thus far is to replace various power related binaries with my script.  Is there a way to do this without replacing binaries?


How do you disable Bluetooth on startup? I found a few solutions but non of them worked, so I was wondering how can I create a script that will run on each system startup, and perform an action to kill the bluetooth service so I can manually enable it later when I need it?

How can I deactivate Bluetooth on system startup?


When I navigate to /?q=admin/structure/types/add in order to add a content type, I get a white screen of death. I'm running Drupal version 7.41 on Windows 2008 r2. Can someone walk me through the steps on diagnosing this problem? Most of the documentation I've found is written for the Linux platform, so it's not very helpful. Thanks.

How can I see the error messages when the site I am working on gets a white screen?


I am using Ubuntu 13.10 on a computer with 3072 MB RAM and 20 GB swap. It is an HP G62 laptop which overheats pretty regularly.   When I type free -mt in the terminal the output is:  free -mt              total       used       free     shared    buffers     cached Mem:          2873       2741        132          0          9       1084 -/+ buffers/cache:       1648       1225 Swap:        19529         42      19487 Total:       22403       2784      19619   Note the free memory: 132 MB!! The maximum free memory I have observed is 750 MB directly after startup. Whats happening???  also note the temperatures:  sensors  acpitz-virtual-0 Adapter: Virtual device temp1:        +78.0°C  (crit = +99.0°C)  coretemp-isa-0000 Adapter: ISA adapter Core 0:       +75.0°C  (high = +80.0°C, crit = +90.0°C) Core 2:       +72.0°C  (high = +80.0°C, crit = +90.0°C)

I am using System Monitor 2.28.0.  When I look in the Resources tab, I see a nice graph with for memory and swap.  Memory is about 60% 2.3 GiB of 3.8.  When I type the command free, I got :               total       used       free     shared    buffers     cached Mem:       3994908    3962396      32512          0     100852    1477032 -/+ buffers/cache:    2384512    1610396 Swap:      8000328      28468    7971860   cat /proc/meminfo | grep MemFree give  MemFree:           34536 kB   The situation has remained the save for several minute.  I started a lot of process with a script and the script is waiting for the free memory to get lower.  According to what I am seeing in the Process tab (or with top), the number in System Monitor seem a lot closed to the total of the memory of the process that the one reported by free.   Thanks


Hello.  I have been studying Arguments and Predicate when I noticed that there are two different views over Predicators: Some say that it is the main verb of the Predicate, others say that it is the finite verb while others say that it is both the finite and auxiliary verbs.    I have been doing it - Predicator: "doing"; I have been doing it - Predicator: "have"; I have been doing it -  Predicator: "have been doing";   According to the representation above and bearing in mind that all representations might be correct to different perspectives, which one seems more accurate regarding most modern theories of grammar?

BACKGROUND According to Oxford Dictionaries Online:   means "(In systemic grammar) a verb phrase considered as a constituent of clause structure, along with subject, object, and adjunct."  means "The part of a sentence or clause containing a verb and stating something about the subject (e.g. went home in John went home)."  In the latter example of John went home, it seems, the predicate is went home whereas the predicator is went, home being an adjunct and thus not part of the predicator as defined. Now, I looked further in  to better understand the difference. The article recognizes two competing notions of the predicate in theories of grammar:  (1) Predicates in traditional grammar (e.g., went home in John went home) (2) Predicates in modern theories of syntax and grammar (e.g., went in John went home)  Which, according to the article, causes confusion as to what exactly the term predicate mean, and some grammarians came up with a new term "predicator" specifically for use (2), says the article. No problem thus far. What bothers me: The article in its explanation of (2) says, "Other function words -- e.g. auxiliary verbs, certain prepositions, phrasal particles, etc. -- are viewed as part of the predicate." (Emphasis mine.) Now, remember this definition of the predicate, i.e., (2) above, corresponds to the new term "predicator". I understand that auxiliary verbs are part of this definition of predicate, because an auxiliary verb can be part of a verb cluster. But can certain prepositions and phrasal particles also? The article has these example sentences (Words belonging to "predicate" (2) are boldfaced as in the article itself; My comments in parentheses.):  The butter is in the drawer. (preposition in being part of the predicate) You should give it up. (particle up being part of the predicate) Susan is pulling your leg. (I don't know why leg is marked as part of the predicate. Maybe a typo?)  QUESTION Except for the last one, which I suspect is a typo, I'd like to know whether the preposition in and the particle up belong to the predicate as presented in (2) and thus belong to the new term "predicator".


I have to fix a website overloaded. The website doesn't load most times with a 503 error. I want to temporally stop it to everybody but me, so I want to deny all the IPs but mine.  The server has several WordPress sites within the same hosting and domain. I have found the possibily of deny the access of the IPs I want (black listing). Unfortunatelly, I have not find how to white list the access to it. Is it possible?

Currently, my website is under maintenance. I want to be the only person who's able to access/view the website online until I finish maintenance. How to set restrictions to others? I hate stalkers.


In the following code, the setText() function is giving an error, not allowing the text to be changed for JLabel a and JLabel b. What is the fix?  public void actionPerformed(ActionEvent e) {     boolean is1 = true;     if (e.getActionCommand().equals("r")) {         if (is1 == true) {             r1++;             a.setText("Dice Rolls: " + r1);         } else {             r2++;             b.setText("Dice Rolls: " + r2);         }     } }   Initializations:  public class Clacker implements ActionListener {     JLabel a;     JLabel b;     int r1 = 0;     int r2 = 0;     ...     public Clacker() {         JLabel a=new JLabel("Dice Rolls: " + r1);         JLabel b=new JLabel("Dice Rolls: " + r2);     } }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


How did planets start to spin in the first place?  Some say that gases which condense and form planets start spinning and hence planets acquire a spin. And some say that they start to spin to conserve angular momentum. Can someone give an explanation about this?  Also, do all planets spin in the same direction? If they do, then why? Also, why do planets have the same chosen rotation direction?

The origin of spin is some what a puzzle to me, everything spin from galaxies to planets to weather to electrons.  Where has all the angular momentum come from? Why is it so natural?  I was also thinking do photons spin? we always think of the wave as a standard 2d sin wave but could this rotate in 3d? What implications would this have?   And what about spacetime how does all the spinning effect?  This has always been avoided in all lectures and classes I ever went to.


In JavaScript I've discovered that a function can be declared after it is called but only if it is declared as a function not as a variable.  This works:  alerter('this is an alert');  function alerter(text) {   alert(text); }   But this doesn't  alerter('this is an alert');  var alerter = function(text) {   alert(text); }   Can someone explain to me why these are treated differently and maybe give a brief explanation of how JavaScript compiles.

I've recently started maintaining someone else's JavaScript code. I'm fixing bugs, adding features and also trying to tidy up the code and make it more consistent.  The previous developer used two ways of declaring functions and I can't work out if there is a reason behind it or not.  The two ways are:  var functionOne = function() {     // Some code };     function functionTwo() {     // Some code }   What are the reasons for using these two different methods and what are the pros and cons of each? Is there anything that can be done with one method that can't be done with the other?


What is the force that causes it to move and why does it maintain the speed for so long? If it has no mass, why is it effected by mass?

I would like to know if light is affected by gravity, also, I would like to know what is the correct definition of gravity:  "A force that attracts bodies with mass" or "a force that attracts bodies with energy, such as light"?  Is light massless after all?


This is my first semester doing computer programming and our professor totally bailed on us mid class. But I managed to nearly complete the classwork but for some reason my while statement is getting skipped.  import java.util.Scanner; import java.text.DecimalFormat;  public class Election {     public static void main (String[] args)         {              DecimalFormat f = new DecimalFormat("##.00");              float votesForPolly;              float votesForErnest;              float totalPolly = 0;              float totalErnest = 0;              String response;              int precinctsforpolly = 0;              int precinctsforernest = 0;             int precinctsties = 0;              Scanner scan = new Scanner(System.in);             System.out.println ();                   System.out.println ("Election Day Vote Counting Program");             System.out.println ();               do             {                    System.out.println("Do you wish to enter more votes? Enter y:n");                 response = scan.next();                 //this is where it skips from here*********                 while (response == "y")                 {                     System.out.println("Enter votes for Polly:");                     votesForPolly = scan.nextInt();                     System.out.println("Enter votes for Ernest:");                     votesForErnest = scan.nextInt();                      totalPolly = totalPolly + votesForPolly;                     totalErnest = totalErnest +  votesForErnest;                      System.out.println("Do you wish to add precincts? Enter y:n");                     response = scan.next();                     if (response =="y")                     {                            System.out.println("How many precincts voted for Polly: ");                         precinctsforpolly = scan.nextInt();                         System.out.println("How many precincts votes for Ernest: ");                         precinctsforernest = scan.nextInt();                         System.out.println("How many were ties: ");                         precinctsties = scan.nextInt();                      }                 }             }             while (response == "n");             //to here*********************************************             System.out.println("Final Tally");             System.out.println("Polly received:\t " + totalPolly + " votes\t" + f.format((totalPolly/(totalPolly + totalErnest))*100) + "%\t" + precinctsforpolly + " precincts");             System.out.println("Ernest received: " + totalErnest + " votes\t" + f.format((totalErnest/(totalPolly + totalErnest))*100) + "%\t" + precinctsforernest + " precincts");             System.out.println("\t\t\t\t\t" + precinctsties + " precincts tied");          } }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I mainly studied Illustrator to use it in T-Shirt custom design.  Now, I have this problem.  According to the tutorials that I see.  When working on print jobs, I should use CMYK mode rather than RGB.  I am just having trouble utilizing blending mode in CMYK transparency panel.  They sometimes dont look so well especially doing abstract designs.  If I switch to RGB, the design looks good in illustrator but does'nt print well on my CMYK printer.  Question is, how do I do about this problem of mine.  Anyone having this?

I have used photoshop for some time and am now trying to learn Illustrator (Both version CS5) I would like to know if there is a difference in the way the blend modes work between these two apps, specifically "Hard Light", I have included an example of the results of using the hard light blend mode on a white to black gradient square on a block of solid colour.  The left image is what I would expect from Photoshop and on the right is what Illustrator displayed, is there anything I'm missing here?  Comparison of Photoshop and Illustrator Hard Light blend mode:


I have a folder in linux called New Folder (specified in shell arguments) This contain two single files, called file1.txt and file2.txt I want to zip the New Folder in one file called test test.zip (with spaces) Here my script: #!/bin/bash  folder=$1  #not work zip -r "test test" $folder  This is the output error. I will try with all arguments, but nothing work. test 1: ./zip_script New\ Folder/ New Folder         zip warning: name not matched: New         zip warning: name not matched: Folder  test 2: ./zip_script "New Folder" New Folder         zip warning: name not matched: New         zip warning: name not matched: Folder  But if my script is written witout arguments it work: #!/bin/bash #work zip -r "test test" New\ Folder

Or, an introductory guide to robust filename handling and other string passing in shell scripts.  I wrote a shell script which works well most of the time. But it chokes on some inputs (e.g. on some file names).  I encountered a problem such as the following:   I have a file name containing a space hello world, and it was treated as two separate files hello and world. I have an input line with two consecutive spaces and they shrank to one in the input. Leading and trailing whitespace disappears from input lines. Sometimes, when the input contains one of the characters \[*?, they are replaced by some text which is is actually the name of files. There is an apostrophe ' (or a double quote ") in the input and things got weird after that point. There is a backslash in the input (or: I am using Cygwin and some of my file names have Windows-style \ separators).   What is going on and how do I fix it?


In some packages like tabularx, I find the following syntax in many places  {\ifnum0=`}\fi   or even   \ifnum0=`{\fi}   But I can't figure out why this can be useful for? Is ` a register of some kind? Or is it a TeX-hack to generate error on specific occasion ?

There have been a few questions about braces recently, specifically about when to use them (see  and  question). Note: I had mistakenly stated that SamB was the author of both questions.  But there are other ways to get token lists that behave like braces. For instance,  { and  }  \let\bgroup{ and  \let\egroup}  \def\Egroup{\iffalse{\fi}} and  \def\Bgroup{\expandafter{\iffalse}\fi}  \def\bbgroup{\expandafter{\ifnum0=`}\fi} and \def\eegroup{\ifnum0=`{\fi}}   Of course, this is not a complete list. It would be nice to have a showcase of typical situations where one can/should use each. Share on any brace hack that appears in your macros, or in packages that you've written/read about/used...  I guess one hack per answer.


Singing and dancing is fun!  Singing and dancing are fun!  Please tell me which expression is correct.

I am having trouble with the following sentence:      "The complexity and diversity of the new platforms is worrying us."   If "complexity" and "diversity" constitute two subjects, then the verb should presumably be "are"; however, the sentence feels more natural with "is". Is this correct? Is there a linguistic term for this occurrence?    The following questions address the general topic of compound subjects, but not specific cases like this:             And the following question seems to have somewhat inconclusive answers:         So this question is not really a duplicate of these three.


I'm using QGIS to extract centroid coordinates in a multi-shape object from a project I was given. I want the coordinates to be regular latitude an longitude, but they're coming out huge (see below).     These locations are in New York City, so x and y should be somewhere around 74 longitude and 41 latitude. I tried to use this:     where I set the CRS layer for my shapefile and centroids to be EPSG:3628 but it doesn't appear to have worked. I have the same results using the CRS found originally in the project folder. I think these are not the problem as adding an OpenStreetMap layer using either CRS displays New York City.

I need to extract the Lat/long coordinates of the centroids of districts. My QGIS project SCR and the different layers have all been set on "WGS 84 / UTM zone 18N".   I've created the centroids using the usual tool. I could then extracted the coordinates using the "Vector > Geometry Tools > Export/Add Geometry Columns", or saving the layer in CSV typing "GEOMETRY=AS_XY" in the "Layers" part of the "OGR creation options".  Nevertheless, both methods output Cartesian coordinates, whereas I need Lat/long coordinates.


I would like to add 3 new 20 Amps outlets in my unfinished basement. I'm going to run some NM-B cable along the ceiling joists and I will use metal boxes attached on the concrete walls as well as use EMT conduit to protect the cable from the receptacle to the ceiling.  If I decide to cable my receptacles in a row using the terminal screws (vs pig tail), can I run the 2 cables from the middle outlet in the same conduit or do I need to run 2 conduits? If yes is there a minimum acceptable diameter to do so?

I want to install electrical outlets in my unfinished basement that has block walls.  It is my understanding you can't have cable on the walls--that whatever cable used must be protected by conduit.  My idea is use NM-B cable from the breaker box, run cable through joists down 3/4" conduit to box with GFCI outlet. Then run the 12/2 cable back up the same conduit and thru joists until it goes down conduit on wall again to an outlet and so on.  Is there any issue with taking cable down and back up the same conduit due to heat?   Trying to do this with the least conduit installed as possible but safely.


the Bounty award button moves the answer quite a bit. Not to mention the alignment of the bounty award button isn't aligned with the upvotes, downvotes, and total votes icons

It's just a minor CSS issue. See the following gif:


I am wondering if there is a way to compare folders in Ubuntu? I have tried to organize my photo folders many times...and for this reason I have several folders that contain the same files (maybe a couple of extra ones) and it would be great to have a tool to figure out which files are extra and which files are identical.  P.S. I have just found an application that works well. It's called FSlint. Here is a link to it with a detailed description:

What can I use to find duplicate photos, including photos that have been resized?


I have 2 databases, they both share many of the same tables, I want to identify which tables do not exist one database but not the other. Is there any simple way of doing this?

I'm currently developing an application using a MySQL database.  The database-structure is still in flux and changes while development progresses (I change my local copy, leaving the one on the test-server alone).  Is there a way to compare the two instances of the database to see if there were any changes?  While currently simply discarding the previous test server database is fine, as testing starts entering test data it could get a bit tricky. The same though more so will happen again later in production...  Is there an easy way to incrementally make changes to the production database, preferably by automatically creating a script to modify it?     Tools mentioned in the answers:    (Commercial)     (Commercial)   (Commercial)


I want to move(archive) the multiple files from say directory /users/wahasan to /users/wahasan/old. The archive files should be autodated.  files are of the format CHKBOI.pos, CHKUTI.pos, CHKSBI.pos,so on. here CHK and .pos are common in every file name.  I need a single shell script that should move all the files from source directory to destination with date-stamp.

I have several files that I ftp each hour.  The receiving system needs to have some sort of identifier that they came from the same batch, so I would like to append a timestamp to the filename.  That alone is fairly easy, but since I want each file to have the same timestamp (so it can serve as the batch identifier), I cannot figure out how to do this.  So, I have:  file1.txt file2.txt file3.txt   And I want to have:  file1_20141110184303.txt file2_20141110184303.txt file3_20141110184303.txt   Any use of the date +%Y%m%d%H%M%S after the first use will obviously result in a different values in seconds, so I would like to have the first timestamp appended to the remaining files.


In this MWE, of a math equation  \documentclass{article} \begin{document} \begin{equation} \sqrt{\frac{\left(E-\frac{N_c e^d}{b}\right)}{a}} \end{equation} \end{document}   I find that lualatex (Version beta-0.70.2-2013031016 (TeX Live 2013/dev)) produces a very strange result:    The result is however as expected with pdflatex 3.1415926-2.5-1.40.13 (TeX Live 2013/dev) and xelatex (3.1415926-2.5-0.9999-2013031016 (TeX Live 2013/dev))  The example is really minimal to reproduce the bug.  The question is: I really need to type an equation like this and I really need to use lualatex for other reasons. What is a workaround (trick with commands) or a permanent solution (e.g. load package, add something to the preamble)?  A secondary question is how one reports a bug in lualatex?, (or for any TeX program for that matter)

I think I found a bug in LuaLaTeX. I use the current version from TeX Live 2012.  lualatex --version This is LuaTeX, Version beta-0.70.2-2012052410 (TeX Live 2012)   When I compile the following document  \documentclass{standalone} \begin{document} $\displaystyle\sqrt{\sum_{k=1}^{n} x_k}$ \end{document}   it works fine with pdflatex; .  But with lualatex I get .  So, where should I report this? And how can I get around it?


If we have two isomorphic groups $A$ and $B$, where $B\subset A$, is it possible that $A/B \not \approx (e)$? Obviously, $A$ and $B$ are infinite.

I need a non trivial  examples of group isomorphism that maps $G\to H$ such that   $G/H \cong G$.


When asking database questions, new users often forget to tag their question both with  and any of , , , , or whatever. People then always need to ask "What database is this about?", e.g:    Often, some clever users then start to guess SQL dialects before the actual dialect is supplied, which will then render their answers invalid.  Very few questions are really SQL-dialect-agnostic, and thus "pure" SQL questions. Wouldn't it be interesting if a warning would pop up next to the "Post Your Question" button or next to the tags field, indicating that the current set of tags might not be complete or precise enough? I would imagine that other "general" tags with related "specific" tags may exist. In this example, if the  tag is present, any of the related , , , , or whatever tags might be useful to add.  Another example: With  it might be useful to also specify any of , , , , , whatever.  In fact, this goes along the lines of "Is your tag-set complete? Because users who tagged their questions with  often also tagged their questions with..."  A similar request has been made before, although I do not think that tags need that much structuring:

Tags should be suggested based on related questions When you start typing a title, you get a bunch of related questions:  When you click in the tag space however, you don't get any suggestions (save on meta):  Now if you are working within a programming framework, this works great. You say, "My question is about !" and you're off to the races. But what if you're on a site which doesn't fit in to default frameworks quite so nicely?  What the heck am I supposed to tag my question with?  What I'm currently doing (trying to get hired! errrr, ) My job title/source of my problem () My industry ()  (the suggestions for SO are a much more helpful , , ) Can't we give the user a bit better context? We already have the related questions being displayed, and those questions have tags, right?  Wouldn't it be absolutely awesome if you clicked in the tag box, and based on the related questions it gives you some suggestions even before typing based on the related questions to what you're asking? You know, something like this:  This would make it easier for many of the not-so-easily-classified sites in the SE network to save time on tag cleanup and make it easier for users to find related questions, and to tag appropriately. It is such a simple and obvious improvement, it doesn't even need freehand red circles on it! For reasons unknown, something similar to this is already implemented for Meta. For instance this is what it shows me for this post:  I have no idea how these are decided, but they aren't appearing on SE or on TW for me, only Meta SO. TL;DR Suggest tags. I don't care if you ignore the methods or design suggested above. At the end of the day, suggest tags to new users and make SE just a wee bit more civilized.


i have for exemple this string "abc({". now, i want to split it by the "(" delimiter, and i know i can use String.split for that. but is there a way i can split if by this symbol but not loss it? like if i used split i would have gotten this string[] = { "abc" , "{" } and i want { "abc" , "(" , "{" }.  also is there a way to do this with multiple delimiters?

I'm splitting a string by three different characters but I want the output to include the characters I split by. Is there any easy way to do this?


I'm trying to copy the code written inside a
 tag into the clipboard. How can I do that? I have tried to solve this problem using the code below:   function myFunction() {   var copyText = document.getElementById("myInput");   copyText.select();   document.execCommand("Copy");   alert("Copied the text: " + copyText.value); }
   class first     {         public static  void  main(String args[]) // here S is capital of String word         {             System.out.println("Hello World!!"); // here S is capital of System word         }     }
    Give me the proper solution to copy code from pre tag into clipboard without including span tags.

What is the best way to copy text to the clipboard (multi-browser)? I have tried: function copyToClipboard(text) {     if (window.clipboardData) { // Internet Explorer         window.clipboardData.setData("Text", text);     } else {         unsafeWindow.netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");         const clipboardHelper = Components.classes["@mozilla.org/widget/clipboardhelper;1"].getService(Components.interfaces.nsIClipboardHelper);         clipboardHelper.copyString(text);     } }  But in Internet Explorer it gives a syntax error. In Firefox, it says unsafeWindow is not defined. A nice trick without using :


I'd like to know how to rename the labels in Trello.  They all have been named as their color, as a default, and I'd like to change it so it's easier to find out which is labeling what.  In the Trello development board you've done it. That's why I'm asking how...

It seems it's possible to change label's name, but I can't figure out how.  I found the label list in the board preferences, but the names aren't editable, they turn from grey to black when my mouse comes over, but that's all.  How can I change those labels' names?


Recently my iCloud backup for my iPhone SE has grown and my 5GB free iCloud is almost full.  Is there a way to view what is included in the backup, to find the biggest items, and possibly remove them?  Note: I don't have a Mac computer.  About the duplicate: That question is about the next backup and it's size, this one is about the existing backup on iCloud. This are two different. My "Next Backup Size" is a mere 64 MB.

I use 120 MB of iCloud storage space for iCloud Backup of my iPad & iPhone. There is still 4.8 GB free from 5 GB, but I have a notification in iPad's backup window that I'm lacking space to back up to iCloud and would rather not buy more space to back up today.


It throws NullPointerException while running JUnit. Error is being shown at line " driver.get(baseUrl)". Somehow it is not able to read data of String baseUrl. String baseUrl is defined at @Before and I am trying to read data @Test.  Please Suggest.   Below is my code :  public class JunitTest1 {     WebDriver driver;     String baseUrl;      @BeforeClass     public static void setUpBeforeClass() throws Exception {         System.out.println("Execution starts here");     }      @Before     public void setUp() throws Exception {         System.setProperty("webdriver.chrome.driver", "E:\\chromedriver_win32\\chromedriver.exe");         WebDriver driver= new ChromeDriver();         driver.manage().timeouts().implicitlyWait(60,TimeUnit.SECONDS);         baseUrl="http://spezicoe.wipro.com:81/opencart1/";     }      @Test     public void test() {          driver.get(baseUrl);         WebElement registerBtn = driver.findElement(By.xpath("//*[@id=\"top-links\"]/ul/li[2]/a/span[1]"));         registerBtn.click();         WebElement loginlink = driver.findElement(By.xpath("//*[@id=\"top-links\"]/ul/li[2]/ul/li[2]/a"));         loginlink.click();          //Login steps         WebElement emailId=driver.findElement(By.xpath("//input[@id=\"input-email\"]"));         emailId.sendKeys("username");          WebElement password=driver.findElement(By.xpath("//input[@id=\"input-password\"]"));         password.sendKeys("Suren!123");          WebElement loginBtn=driver.findElement(By.xpath("//input[@class=\"btn btn-primary\"]"));         loginBtn.click();     }      @After     public void tearDown() throws Exception {         System.out.println("Execution completed");     }      @AfterClass     public static void tearDownAfterClass() throws Exception {              System.out.println("Execution completed");      }  }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


In this question:  [  There is a comment about hunting giant lizards on a planet and exporting their hides.  I remember a story, possibly from Isaac Asimov's Science Fiction Adventure Magazine in the 1980s.  In an interstellar civilization, the protagonist runs out of luck on a planet and has to sign a contract to pay off his debts.  The contract requires him to hunt dangerous giant lizards on a neighboring, privately owned, planet.   The giant lizard hides are exported for use as industrial machinery belts, like buffalo hides were used in the 1800s.  The owner runs the planet like a company town, charging high prices for everything and paying little for hides, so while it is theoretically possible for a hide hunter to pay off his debt and leave, most get deeper and deeper in debt and are eventually killed by a lizard.  The protagonist eventually runs away with the owner's mistress, and the owner sends men to chase them.  The market for hides collapses when an artificial material is invented, and the planet owner goes bankrupt.  So can anyone identify that story?

Searching for a novel that I remember reading in college, but probably published a few years earlier (So the late 80's/early 90's timeframe). Details that I remember:   Protagonist was enslaved to pay off debts or sent to prison planet Eventually employed by family monopoly Family plotted against each other for control/influence Job was to hunt a dangerous animal on a specific planet Essentials had to be bought from family (increasing debt)   IIRC the cover was either red or yellow, and had a picture of the protagonist in hunting gear.