I'm currently trying to install ubuntu 16.04 through a virtual machine (using VirtualBox) however, I am getting this error:    I'm not particularly good with with computers so I don't really know what I'm doing wrong. I have followed the installation steps correctly to my knowledge.  I am using MacOS.

I am trying to boot Ubuntu 13.04 in VirtualBox, but every time I boot, I get an error that says:  SMBus base address uninitialized - upgrade BIOS or use force_addr=0xaddr   This happens right after I start the virtual machine, and the operating system does not even start properly. I see the error, then the screen just goes black and gives me a blinking cursor. The solutions I have found online tell me to open up a terminal only after the OS boots correctly. Sadly, I cannot even get to that stage, so I can't use that solution.  Help?  By the way, I am VERY new to Virtual Box and creating virtual machines, so excuse me if I'm not familiar with some of the terminology. Another thing, if it helps, is that I'm running Windows 7 as my host OS.


I've been looking for a way to list bind mounts or at least determine if a particular mount is a bind mount. Several answers on this website say that because it is a parameter of a mount operation it will not appear in files like /proc/mounts or in the output of mounts. If the device node /dev/sda1 is mounted at / and the directory /etc is bind mounted at /etcetera, then the output from mount will look like:  /dev/sda1 / <some other stuff> /dev/sda1 /etcetera <some other stuff>   But the kernel must have some knowledge of a bind mount, otherwise it would not be able to bind one directory to another and keep a record of that particular directory being bound to some other directory. Any thoughts on this?  UPDATE: I am not asking about how to find bind mounts. I am asking how the kernel can possibly know about them.

Rather than using mount | grep, I'd like to use mount -l -t bind, but that doesn't work, and -t none shows all mounts.


Also what are the main differences between these two. To execute a script is it necessary to write this at the beginning of script?

What are the fundamental differences between the mainstream *NIX shells and what scenarios might prompt you to use one over the other?  I understand that some of it probably comes down to user preference but I've only ever used Bash and I'm interested to hear where another shell might be useful. Also, is there an impact on user-written shell scripts when running under one shell or another or is it simply a matter of changing the shell at the top of the file?  My instinct says it's not that easy.


I have been getting great help on this site trying to create a clone process.  The user can clone up to 9 records.  I am almost there.  I am able to use a custom form and an apex class to insert the records that are created.  I  had to remove the caching from the apex class so I could do the insert.  The last step that I am struggling with is refreshing an array on the page when I insert the new records.  Initially, these records get loaded by using the wire service and an apex class to retrieve the records.  How do I refresh that process after the insert?  Here is my javascipt to save the array and also my apex.  Thank you!!` saveClones() {   console.log('$$$ here is the rowindex ' +  this.clonedGroupStructures);   saveGroupStructures({ gs: this.clonedGroupStructures })   .then(result => {     this.message = result;     this.error = undefined;     if(this.message !== undefined) {         this.clonedGroupStructures = []         this.dispatchEvent(             new ShowToastEvent({                 title: 'Success',                 message: 'Account created',                 variant: 'success',             }),         );        //update page       this.bShowModal = false;       this.isReadForm = false;       this.isEditForm = false;       this.isNewForm = false;       this.isCloneForm = false;       }   }) .catch(error => {     this.message = undefined;     this.error = error;     this.dispatchEvent(         new ShowToastEvent({             title: 'Error creating record',             message: error.body.message,             variant: 'error',         }),     );     console.log("error", JSON.stringify(this.error)); });  }    @AuraEnabled () public static List<Group_Structure__c> saveGroupStructure (List<Group_Structure__c> gs) {     try{         insert gs;         return gs;     }     catch(Exception ex) {         system.debug('Im in apex error');         throw new AuraHandledException('The records did not save: '                                         + ex.getMessage());     }  }

I'm not able to get refreshApex() working in an lwc. . Here are the key elements of the js file:  import { LightningElement, track, api, wire } from 'lwc'; import getBlasts from '@salesforce/apex/Blast.getBlasts'; import { refreshApex } from '@salesforce/apex';  export default class BlastWaveTree extends LightningElement {     @api recordId;     @track blastData;     @track error;     @wire(getBlasts, { CampaignId: '$recordId' })         wireBlastData({             error,             data         }) {             if (data) {                 let tempjson = JSON.parse(JSON.stringify(data).split('waves').join('_children'));                 this.blastData = tempjson;          } else {                 this.error = error;         }     }      @api     refresh() {         return refreshApex(this.blastData);      }   My code varies from the doc examples for 2 reasons:    The example code doesn't separate out the Apex response into error and data, the pattern I've been following as shown elsewhere. This data is going into a lightning-tree-grid so I have to process it a bit before assigning it to blastData.   I've tried return refreshApex(this.wireBlastData) as well, and that doesn't work.  Ultimately, I want to call the refresh function from the parent component (hence, the @api), but I've simplified it (till I get it working) by calling the refresh function from a button on this same component. I added a console.log line in the refresh() function so I know the button is calling the function. It just doesn't refresh. I'm also watching the apex logs as I push the refresh button, and there's no apex activity.  Here's the template:  <template> <lightning-card title="Blasts" icon-name="custom:custom3">
         <lightning-button-group >             <lightning-button-icon icon-name="utility:refresh"  alternative-text="Refresh" onclick={refresh}></lightning-button-icon>             <lightning-button label={buttonLabel} onclick={toggleWaves}></lightning-button>              <lightning-button label="New Blast" onclick={onNewBlast} variant="Brand"> </lightning-button>         </lightning-button-group>

         <lightning-tree-grid              data={blastData}              columns={columns}              key-field="id"              hide-checkbox-column="true"              onrowaction={handleRowAction} >         </lightning-tree-grid>
 </lightning-card>     What am I missing?  Here's the error detail from the browser dev tools:      lds.js:2 Uncaught (in promise) Error: Refresh failed because resolved configuration is not available.     at Object.e.refresh [as refreshApex] (lds.js:2)     at l.refresh (blastWaveTree.js:4)     at callHook (aura_prod.js:24)     at sa (aura_prod.js:2)     at aura_prod.js:2     at _ (aura_prod.js:2)     at HTMLElement.e (aura_prod.js:2)     at l (aura_prod.js:2)     at Un.call.a (aura_prod.js:2)     at Array.forEach (<anonymous>) e.refresh   @   lds.js:2 refresh @   blastWaveTree.js:4 callHook    @   aura_prod.js:24 sa  @   aura_prod.js:2 (anonymous) @   aura_prod.js:2 _   @   aura_prod.js:2 e   @   aura_prod.js:2 l   @   aura_prod.js:2 Un.call.a   @   aura_prod.js:2 t   @   aura_prod.js:2 Lt  @   aura_prod.js:2 t.$$lwcEventWrapper$$   @   aura_prod.js:2


I am trying to include a separate TeX file that will contain the text of a chapter, however when I try to point the main TeX file to the chapter TeX file, there is an error which claims to not be able to locate it.  Here is a MWE:  %%Preamble%% \documentclass[11pt]{book} \usepackage[english]{babel} \usepackage{graphicx} \usepackage{hyperref} \usepackage[framemethod=TikZ]{mdframed}     \mdfsetup{%     middlelinecolor=red,     middlelinewidth=2pt,     backgroundcolor=gray!10,     roundcorner=10pt} \usepackage[scale=2]{ccicons} \title{\bf{An Econometrics Primer}} \author{David Clark} \date{}  \begin{document}  \frontmatter     \maketitle     \vspace*{\fill}       \begin{mdframed}         Except where otherwise noted, this work is licensed under \\         \bf{https://creativecommons.org/licenses/by-nc-nd/4.0/} \\         \ccbyncnd         \end{mdframed}     \tableofcontents  \mainmatter  \include{Chapter One/chapter1}  \backmatter  \end{document}   The directory path to the chapter tex file is as follows, where Introduction to Econometrics in the Primary Files folder is the TeX file which is compiled using the MWE above:

I'm going crazy...  I have a file I want to include which path is C:\Users\Matthieu\Documents\Folder withOneSpace\myFile.tex. (As you can see with the \, I'm on windows actually)  I tried the following but none works:  \input{C:/Users/Matthieu/Documents/Folder withOneSpace/myFile} \input{C:/Users/Matthieu/Documents/Folder\ withOneSpace/myFile} \input{C:/Users/Matthieu/Documents/Folder withOneSpace/myFile.tex} \input{C:/Users/Matthieu/Documents/Folder\ withOneSpace/myFile.tex}   I also tried to put the file out of the folder with a space and it works (no surprise):  \input{C:/Users/Matthieu/Documents/myFile} --> Works   All I found is to put a \ before the space but it doesn't work at all. --> Please help ! :)


ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATON have both been included in the manifest. Also included in the Activity are:  import android.location.Location; import android.location.LocationManager;   I have a listener for the nav drawer with the following class  private class DrawerItemClickListener implements ListView.OnItemClickListener {     @Override     public void onItemClick(AdapterView<?> parent, View view, int position, long id) {      LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);     Location location = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);         if (location != null)         {             final double longitude = location.getLongitude();             final double latitude = location.getLatitude();         }      selectItem(position);     } }   From this, the location = null, and thus would fail on location.getLongitude();. I can of course avoid this with if (location != null), but I want the lat and long found.   Why is the location always null?

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?


Here is my code snippet:  public void joinRoom(String room) throws MulticasterJoinException {   String statusCheck = this.transmit("room", "join", room + "," + this.groupMax + "," + this.uniqueID);    if (statusCheck != "success") {     throw new MulticasterJoinException(statusCheck, this.PAppletRef);   } }   However for some reason, if (statusCheck != "success") is returning false, and thereby throwing the MulticasterJoinException.

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?


In Classic/Visualforce I can iterate through Map using apex:repeat. What is the best way to do that in lightning? I want to display key and some fields from sObject.

I have a aura map attribute defined in my component file as below  <aura:attribute name="FilesNameMap" type="Map">  But i am not able to understand how to iterate this in the component file as we know that  the  < aura:iteration > will work on List but not for Map.  Below is the code which i tried to iterate the Map but couldn't succeed.   <aura:iteration items="{!v.FilesNameMap}" indexVar="key" var="item">                     //- logic                     </ aura:iteration>   Please let me know how can i iterate the Map in Aura component to fetch key and value pairs.  Thanks.


I am Indian Student pursuing my studies in New Zealand , can i apply for a B1/B2 Visa for USA .I have a valid visa till March 2017 .Can I apply from New Zealand ,else I need to come back to my Home country

I am an Indian passport holder and currently visiting Canada. I have a 10 year multiple entry visit visa for Canada and I want to apply for a US visit visa.   Can I apply for a US visa in Canada while I am a visitor in Canada?


I just had a solar eclipse followed by a blood moon, but it’s been almost 46 nights since I beat the first mech boss, and the eclipse happened right after beating Plantera a second time.   Is there some kind of probability that defeating certain bosses triggers a solar eclipse?

Is any way to improve the chances of a solar eclipse happening (apart from killing the mechanical bosses).  Basically I want to get broken hero swords to be able to forge the terra blade...


Is there a term for rejecting a proposal by not actively endorsing/confirming/voting for it? Like a veto, but by abstention, rather than active participation.  Alternatively, a term for "A choice being made for you, because you refused to choose for yourself" could work as well.  An example of a situation where this would apply:  When you boot windows after a crash, and you're asked if you want to enter safe-mode, while a timer counts down. When the timer reaches zero, the computer booths in normal mode instead. Waiting for the timer to run out would be functionally the same as making the choice of not entering safe-mode, even though you didn't do anything. I'm looking for a term/word/expression to describe this act of choosing by not choosing.

I need a word to use in describing the following abstract case:   There is a situation.  A person could take action to react to the situation, and then there would be an effect of that action.  But the person could also ignore the situation, and there would be a different consequential outcome resulting from inaction.    I'm looking for a concise (and preferably short) word for "consequential outcome resulting from inaction".


I have already tried all the usual fixes to this .. no luck so far  sudo apt-get dist-upgrade  Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done The following packages have been kept back:   libglib2.0-0:i386 libhwloc-plugins 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.   none of the following help  sudo apt-get update sudo apt-get upgrade sudo apt-get -f install

I just added a PPA repository for the development version of the GIMP, but I get this error:  $ apt-get update && apt-get upgrade ... The following packages have been kept back:   gimp gimp-data libgegl-0.0-0 libgimp2.0   Why and how can I solve it so that I can use the latest version instead of the one I have now?


The exercise is as below  Let $V = \{x \in \mathbb{R}^2: 2x_1^2+3x_2^2\leq4\}$ Prove: V is convex  I started the proof like this:  Let $x,y \in V$ be given. Let $\lambda \in [0,1]$. We want to show that $\lambda x + (1-\lambda) y \in V$.  Now, I know that I have to rewrite $2[\lambda x_1 + (1-\lambda)y_1]^2+3[\lambda x_2 + (1-\lambda)y_2]^2$ into something like   $\lambda(2x_1^2+3x_2^2) + (1-\lambda)(2y_1^2+3y_2^2) \leq \lambda*4+(1-\lambda)*4 = 4$   But I just can't get my head around it, can someone please make a step-by-step derivation? I am really hopeless at this point.

I'm trying to prove that the following set ($B$) defined by an ellipse is convex, but I am getting stuck.  $$B = \left\{(x_1,x_2):3(x_1-3)^2+2(x_2-3)^2 \leq 1 \right\} $$  My sad attempt:  $$ \textrm{Let }x,y \: \in \: B \:, \: \lambda \: \in \: [0,1]$$  $$ \lambda x+(1-\lambda)y=(\lambda x_1+(1-\lambda)y_1,\: \lambda x_2 +(1-\lambda)y_2  )$$ $$3(\lambda x_1 + (1-\lambda)y_1 -3)^2+2(\lambda x_2+(1-\lambda)y_2-3)^2=3(\lambda ^2x_1^2 +(1-\lambda)^2y_1^2+9+2\lambda x_1(1-\lambda)y_1-6\lambda x_1 -6(1-\lambda)y_1)+2(\lambda ^2x_2^2 +(1-\lambda)^2y_2^2+9+2\lambda x_2(1-\lambda)y_2-6\lambda x_2 -6(1-\lambda)y_2)$$  and this is where I have lost all confidence in proving it. I was able to factor some of the terms into the form $(\lambda x_1 -3)^2$, $((1-\lambda) y_1 -3)^2$, $(\lambda x_2 -3)^2$, and $((1-\lambda) x_2 -3)^2$, but I don't think that helps the situation any.


So I have an object   var ajaxOptions = {             url: ajaxurl,             type: 'POST',             async: false,             success: function (retval) {                 if (!JSON.parse(retval))                 {                      alert("Error occurred.");                 }                 else                 {                     jQuery('#member-modal').modal('hide');                     location.reload();                 }             },             cache: false,             contentType: false,             processData: false         };   which I want to reuse in several pieces of my code, like  var theseOptions = ajaxOptions;  theseOptions.data = new FormData($('#thisform')[0]);  $.ajax(theseOptions); // ... somewhere else in code ...  var thoseOptions = ajaxOptions;  thoseOptions.data = new FormData($('#thatform')[0]); thoseOptions.someOtherOption = "hehehe"; $.ajax(thoseOptions); // ... somewhere else in code ... var poopOptions = ajaxOptions;  poopOptions.data = new FormData($('#poopform')[0]); $.ajax(poopOptions);     The problem is that, as I understand, my vars are actually references to the existing ajaxOptions, so that, for example, when I run  $.ajax(poopOptions);   the key-value pair someOtherOptions : "hehehe" is still there. In reality I would have to do something like   var theseOptions = ajaxOptions;  theseOptions.data = new FormData($('#thisform')[0]); $.ajax(theseOptions);   delete thoseOptions.data; // now ajaxOptions is back to what it originally was // ... somewhere else in code ...  var thoseOptions = ajaxOptions;  theseOptions.data = new FormData($('#thatform')[0]); theseOptions.someOtherOption = "hehehe"; $.ajax(thoseOptions);  delete thoseOptions.data; delete thoseOptions.someOtherOption; // // now ajaxOptions is back to what it originally was // ... somewhere else in code ... var poopOptions = ajaxOptions;  poopOptions.data = new FormData($('#poopform')[0]); $.ajax(poopOptions);   delete poopOptions.data; // now ajaxOptions is back to what it originally was   or maybe I would have to do something like  function getAjaxBaseOptions ( )  {     return {                 url: ajaxurl,                 type: 'POST',                 async: false,                 success: function (retval) {                     if (!JSON.parse(retval))                     {                          alert("Error occurred.");                     }                     else                     {                         jQuery('#member-modal').modal('hide');                         location.reload();                     }                 },                 cache: false,                 contentType: false,                 processData: false             };  }  var theseOptions = getAjaxBaseOptions();  theseOptions.data = new FormData($('#thisform')[0]);  $.ajax(theseOptions); // ... somewhere else in code ...  var thoseOptions = getAjaxBaseOptions();  thoseOptions.data = new FormData($('#thatform')[0]); thoseOptions.someOtherOption = "hehehe"; $.ajax(thoseOptions); // ... somewhere else in code ... var poopOptions = getAjaxBaseOptions();  poopOptions.data = new FormData($('#poopform')[0]); $.ajax(poopOptions);    This seems a little ridiculous. Is there really no native way in Javascript of making a direct copy of an object? WTF?

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.


bruni@PROX15:~$ mount /home/bruni/Documents/Data_Buero/Egroupware/wd_files /sbin/mount.davfs: user bruni must be member of group davfs2 bruni@PROX15:~$ groups bruni bruni : bruni dialout cdrom floppy sudo audio video plugdev users input lpadmin davfs2 bruni@PROX15:~$    Could somebody enlighten me with regard to the error message user bruni must be member of group davfs2? As I understand it, bruni already is a member of davfs2.

I was not able to access the VirtualBox shared folder, so I made the user part of the vboxsf group. But, still not able to access it. Rebooting the guest resolved the problem. Is it a bug? A reboot is not required to add a user to a group.   sudo usermod -a -G vboxsf praveensripati   There was similar query .  I am using 11.10 and don't remember seeing similar behavior in 11.04.


I tried installing Ubuntu 12.04 on my new computer (I have already installed it on my old computer, and everything is fine). For some reason, grub said it was not installed. Upon reboot, I reach the grub rescue screen with no bootable device. I tried using normal.mod, but I have no modules. I can't access my bios, and I basically cannot even boot to reinstall. I have no idea what to do.

I purchased an Acer Aspire M5-481PT-6688 which came preloaded with Windows 8. I wiped that, reinstalled my own bloatware-free copy, and tried to dual boot Ubuntu 13.04 on it. It has a hybrid drive, so when I installed it running alongside Windows, Ubuntu was installed to the SSD and Windows is on the HHD. I later removed Ubuntu via formatting the SSD and now I'm stuck at the grub rescue> prompt. The error says: no such device. No matter what key combo I press (F2, F8, F10, F12, Esc, Del) I cannot access my BIOS nor can I boot from the CD/DVD drive or USB.


I'm new to Visual Studio C# and I've created my first DLL. I'm referencing this DLL within a web application.  In my code throughout numerous classes within the DLL and even in the controller classes of my web application, I make use of Console.WriteLine(...) to help with troubleshooting.  I fully expected those messages to be output to the console at runtime, but they aren't showing up.  For example here is some code from a class that is attempting to access a MySQL database, and before I execute the query, I attempt to write the query string to the console:  MySqlCommand cmd = null; MySqlDataReader rdr = null; MySqlCommand cmd2 = null;          try{         Console.WriteLine("query: " + query.ToString());         cmd = new MySqlCommand(query.ToString(), conn);         rdr = cmd.ExecuteReader();          ... }   In Visual Studio, during project execution time, I've looked at the Immediate Window, the Output, Locals, Call Stack windows.    Where are my writeline messages?

In a J2EE application (like one running in WebSphere), when I use System.out.println(), my text goes to standard out, which is mapped to a file by the WebSphere admin console.  In an ASP.NET application (like one running in IIS), where does the output of Console.WriteLine() go?  The IIS process must have a stdin, stdout and stderr; but is stdout mapped to the Windows version of /dev/null or am I missing a key concept here?  I'm not asking if I should log there (I use log4net), but where does the output go?  My best info came from this  where they say Console.SetOut() can change the TextWriter, but it still didn't answer the question on what the initial value of the Console is, or how to set it in config/outside of runtime code.


How can someone invent a spell? Snape has invented Sectumsempra, we all know that. But what interests me is the act of making spell. If all spells are invented, what does it say about magic in HP-universe?

In the Harry Potter series, are wizards capable of creating their own spells, or are they limited to the spells that they're taught/learn?  I seem to remember something about Snape creating sectumsempra, but I'm not sure if that really is the case.


Suppose $x_n \to L$, prove that $\frac{x_1 + \dots + x_n}{n} \to L$.  So far I've got that because $x_n \to L$, then for any $\epsilon>0$, there exists some $N \in \mathbb{N}$ such that $|x_n-L|< \epsilon$ whenever $n \geq \mathbb{N}$.  From this it's not hard to show that $|x_{N}+\dots + x_m - (m-N)L| < \epsilon$, but I don't know how to deal with the beginning of the series $x_1 + \dots + x_{N-1}$, which I need to ultimately show  $ |\frac{x_1+\dots+x_{N-1}}{n} + \frac{x_N + \dots + x_n}{n} - L|<\epsilon $ whenever $n \geq K$.

Prove that if $\lim_{n \to \infty}z_{n}=A$ then:  $$\lim_{n \to \infty}\frac{z_{1}+z_{2}+\cdots + z_{n}}{n}=A$$ I was thinking spliting it in: $$(z_{1}+z_{2}+\cdots+z_{N-1})+(z_{N}+z_{N+1}+\cdots+z_{n})$$ where $N$ is value of $n$ for which $|A-z_{n}|<\epsilon$ then taking the limit of this sum devided by $n$ , and noting that the second sum is as close as you wish to $nA$ while the first is as close as you wish to $0$. Not sure if this helps....


I am trying to run Ubuntu 17.04 on Oracle VirtualBox 5.1.26 from an image that I downloaded from the Ubuntu website.  I have seemingly successfully installed Ubuntu correctly, however Ubuntu runs, I see the operating system load normally up until Ubuntu is supposedly fully loaded and what is displayed is a screen of graphics that is terribly distorted.  Here's a screenshot of what is displayed inside the operating system:    Within this screen, I can see the screen respond to my mouse movements, as if it does accept the input, but it's nothing that I can actually use.  Here is a screenshot of some of the settings I used for the Virtual Machine:    I'm wondering if anybody has had this problem before and knows how to fix this issue.    Update  It should be noted that at the time that this question was asked, the operating system was not installed.   After using the suggested actions within the accepted answer, I was able to install Ubuntu normally. Afterwards, I need to perform this sequence of button combinations a few times while loading Ubuntu in order to run the operating system.

Inside a VirtualBox VM, I have installed myself an Ubuntu 16.04.1 LTS Server installation. However, when I installed the ubuntu-desktop package and rebooted, this happened:    Exact command I used: sudo apt-get update; sudo apt-get install ubuntu-desktop ..and then a reboot command.  This just seems like a corrupted top-left portion of the screen, as my cursor can appear in view (but corrupted):    This is a purely graphical issue because I can use the keyboard to successfully progress to a desktop:    Note: On startup it shows correct graphics for a split-second then reverts to glitch.    Any help on this?


I'm trying to automate the installation of CUDA on an Ubuntu 18.04 VM template as part of the startup script. I'm very new to bash and cloud computing in general. When I run the command to install CUDA, mid-installation I am always prompted to choose a country and a language from a list of options by entering the corresponding ID numbers. Basically, when I run: sudo apt-get -y install cuda  I know I'm going to have to manually enter "31" and "1" for the install to complete. As a relative n00b at all this, my question is thus "How do I automate those inputs so I don't have to manually type them in every time I spin up a fresh copy of this VM template?" My initial approach was this: printf "31\n1\n" | sudo apt-get -y install cuda  But this does not seem to work the way I expected it to. No input is autofilled. My end goal is to have everything taken care of in one startup script that I don't have to touch. I appreciate any and all help, and I apologize if my question has been answered elsewhere (if it has, I've been unable to find it and would greatly appreciate being directed to it!)

I'm running a script that it requests entering 'y' on each operation, I am looking for a solution like $ ./script < echo 'yyyyyyyyyyyyyy' to pass all my inputs in one time.


I have a table that I need to delete duplicates. However, the table is designed so that each customer can have identical items. Here is a screen shot for example:    When I try to delete duplicates I also get Book Number that are the same for both customer. The Green area shows actual duplicates, however the blue shows books that are not duplicate because customers can borrow the same books.  How do I delete only where the row is the same for each customer? So the green area.  Here is my code: It does not work if both customer has the same Book number.  WITH CTE AS ( SELECT  *,  ROW_NUMBER() OVER (PARTITION BY BookNumber ORDER BY BookNumber DESC) AS DUPS FROM Store.Books  )  SELECT * FROM CTE WHERE DUPS > 1

What is the best way to remove duplicate rows from a fairly large SQL Server table (i.e. 300,000+ rows)?  The rows, of course, will not be perfect duplicates because of the existence of the RowID identity field.  MyTable  RowID int not null identity(1,1) primary key, Col1 varchar(20) not null, Col2 varchar(2048) not null, Col3 tinyint not null


So I've learned that the general anti-derivative of $f(x)=1/x$ is:  $\ln|x|+C$  But it is also true, according to Wolfram Alpha, that the derivative of $\ln(2x)$ is also $1/x$.   So what gives? How can these facts both be true? Why isn't $\ln(2x) + C$ also an anti-derivative of $1/x$?   Is there something about the definition of anti-differentiation that I'm missing?   NOTE: I am in high school Calculus, and we have not yet covered integration. That being said, I have some limited familiarity with the notation for indefinite integrals (which I understand to be the same as anti-derivatives?), so as long as you're careful to explain things and use precise language, I suppose I'm fine with using integrals in any answers.

Given the very simple integral  \begin{equation} \int -\frac{1}{2x} dx \end{equation}  The obvious solution is  \begin{equation} \int -\frac{1}{2x} dx = -\frac{1}{2} \int \frac{1}{x} dx = -\frac{1}{2} \ln{|x|} + C \end{equation}  However, by the following integration rule \begin{equation} \int \frac{1}{ax + b} dx = \frac{1}{a} \ln{|ax + b|} + C \end{equation}  the following solution is obtained \begin{equation} \int -\frac{1}{2x} dx = -\frac{1}{2}\ln{|-2x|} + C \end{equation}  Why are these solutions different? Which is correct?   The second solution can be simplified \begin{equation} -\frac{1}{2}\ln{|-2x|} + C = -\frac{1}{2}\ln{|-2|} -\frac{1}{2}\ln{|x|} + C= -\ln{\frac{1}{\sqrt{2}}} - \frac{1}{2}\ln{|x|} + C \end{equation} but they still differ.


I wonder if anybody have experience with migrating to the latest Gen8 HP microserver from existing architectures.    In my case the server what I would migrate would have 2X  Intel® Xeon® Processor E5450 (12M Cache, 3.00 GHz, 1333 MHz FSB) and 24 GB ram and I would replace this with 1X Intel® Xeon® Processor E3-1220L v2 (3M Cache, 2.30 GHz) and 16GB ram.  Looking at the CPU comparison, this would result in a much slower server:   I would be running 8-10 lightly loaded Vmware vms on top of it. Only used by 1-5 users irregularly. Would I notice significant degradation in performance?  Thanks

This is a  about  Related:      I have a question regarding capacity planning. Can the Server Fault community please help with the following:   What kind of server do I need to handle some number of users? How many users can a server with some specifications handle? Will some server configuration be fast enough for my use case? I'm building a social networking site: what kind of hardware do I need? How much bandwidth do I need for some project? How much bandwidth will some number of users use in some application?


Question as in title:  I have attempted this question by saying that the homomorpism that maps G to $Z_2$ is onto, $Z_2$ is abelian so G must be abelian.

If the order of all nontrivial elements in a group is 2, then the group is Abelian. I know of a proof that is just from calculations (see below). I'm wondering if there is any theory or motivation behind this fact. Perhaps to do with commutators?    Proof: $a \cdot b = (b \cdot b)  \cdot (a \cdot b) \cdot (a \cdot a) = b \cdot (b \cdot a) \cdot (b\cdot a) \cdot a = b \cdot a$.


I've below method which I am trying to call from the Apex Test class, but when I call below method from Test class this query doesn't fetch any result. If I manully execute the query, then I get the result.   Why is this happening ?  public static string createBulkQuery(List<string> componentToShow){         string UserLang = '';         Id userId = UserInfo.getUserId();         userContacts = new List<Contact>();            userContacts = [Select id,Preferred_Name__c,Correspondence_Language_Formula__c,FirstName,LastName,Position_Title__c,Correspondence_Language__c,Brand_Non_Brand__c,Manager_Flag__c,Work_Location_Country__c, Additional_Privileges__c,(Select Work_Location_Building_Name__c ,Global_Grade__c, Work_Location_Country__c ,Work_Location_City__c ,Work_Location_State__c,Location__c,Primary__c,Work_Location_Type__c,Job_Function__c,Job_Sub_Function__c,High_Level_Organization__c,Job_Area__c FROM Employee_Related_Information__r) FROM Contact WHERE RelatedUser__c=:userId Limit 1];           if(userContacts.size() > 0){             Contact currentUserContact = userContacts[0];              //Checking User Language             if(String.isNotBlank(currentUserContact.Correspondence_Language__c)){                 UserLang = '\''+currentUserContact.Correspondence_Language__c+'\'';             }         }     } }   I write below Test class, still making updates  @isTest  static void testBulk(){     Test.startTest();     Profile p = [SELECT Id FROM Profile WHERE Name = :portalEmp];      String orgId = UserInfo.getOrganizationId();     String dateString = String.valueof(Datetime.now()).replace(' ','').replace(':','').replace('-','');     Integer randomInt = Integer.valueOf(math.rint(math.random()*1000000));     String uniqueName = orgId + dateString + randomInt;      User u = new User(  firstname = 'John',                         lastName = 'Doe',                         email = uniqueName + '@test' + orgId + '.org',                         Username = uniqueName + '@test' + orgId + '.org',                         EmailEncodingKey = 'ISO-8859-1',                         Alias = uniqueName.substring(18, 23),                         TimeZoneSidKey = 'America/Los_Angeles',                         LocaleSidKey = 'en_US',                         isActive = true,                         LanguageLocaleKey = 'en_US',                         ProfileId = p.Id);     insert u;      System.runAs(new User(Id = UserInfo.getUserId())){         List<string> checkInComponents = new List<string>{'Request Catalog', 'Short Menu Catalog'};         String queryValue = ProjectUtil.createBulkQuery(checkInComponents);     }      System.assert(u != null);      Test.stopTest(); }   Even if I run this code normally using Anonymous window. I get the result. But through Apex test class I dont get any result.

I am currently programming a trigger on Opportunities.   I created a test class for this and in my Sandbox I created an account, contact and opportunity. When I try to reference them   Opportunity Opp = [SELECT id from Opportunity where name = 'Test1'];    and then start my   Test.startTest();         Opp.StageName = 'PO in (100%)';          update Opp;         Test.stopTest();   It just errors and shows that Opp returns 0 rows. However when I paste my first bit of code in 'Execute Anonymous' it returns a row and the correct info.   Does this mean I have to create an account, contact, quote and all necessary fields in my test class?


How can I put fbq('track', 'CompleteRegistration'); on a button that pops up a submit form? <form role="form" id="contactForm" data-toggle="validator" class="shake">

Name*

<input type="text" id="name" required />

Mobile Number*

<input type="tel" id="contact" required />

E-mail

<input type="email" id="email" placeholder="(Optional!)" />

   <input type="submit" id="form-submit" value="Send Now" class="submit" />

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.


My approach : I tried using integral calculus and using infinite geometric series..however it didn't match..any trick?

How can I evaluate $$\sum_{n=1}^\infty\frac{2n}{3^{n+1}}$$? I know the answer thanks to , but I'm more concerned with how I can derive that answer. It cites tests to prove that it is convergent, but my class has never learned these before. So I feel that there must be a simpler method.  In general, how can I evaluate $$\sum_{n=0}^\infty (n+1)x^n?$$


I am trying to check for updates using the core update module but I keep getting this error:     There was a problem getting update information. Try again later.   I am checking from /admin/reports/updates.  When I press "Check manually," the screen quickly skips through the progress bar and then immediately returns the error (there are dozens of modules installed, so it normally isn't that fast).  The "Recent log messages" report has no information.  I'm trying to do this from a multidev environment in Pantheon; until a few hours ago, update checks were working fine, but after I created some new environments, it seems that I can no longer check for updates.  Uninstalling and re-enabling the update module does not fix the problem.

I cannot update some of the modules and the Drupal core itself from "Available Updates" menu. The error is "No available releases found". However, I can list the updates with drush ups.                Why?


Here's what I have:     $ax \equiv b (mod\ m)$ has answer if there are $x$ and $y$ such that     $b = ax + my$     Let $d = gcd(a,m)$. Then:     $d|a$ and $d|m \Leftrightarrow d|ax$ and $d|my \Leftrightarrow d|(ax+my)$     Since $m$ divides the right part of the equation, it also has to divide the left part.     Is this a valid proof for what I want?

In my notes it has a theorem, stating: $ax\equiv b\mod m$ has solutions if and only if $\gcd(a,m)|b$.  The proof going from right to left is:  If $d=\gcd(a,m)$, $d|b \Rightarrow b=td$. We write $d=ra+sm$ for $r,s\in\mathbb{Z}$ so $b=t(ra+sm)=tra+tsm\equiv (tr)a\mod m$, so $x=tr$ is a solution.  Why is $x=tr$ a solution?


Simplify $$\frac{\displaystyle\sum_{k=1}^{2499}\sqrt{10+{\sqrt{50+\sqrt{k}}}}}{\displaystyle\sum_{k=1}^{2499}\sqrt{10-{\sqrt{50+\sqrt{k}}}}}$$  I don't have any good idea. I need your help.


I have two switches at the bottom of my stairs in the basement. One switch is a three way to the switch at the top of my stairs. The other switch lights a series of lights all connected to the same circuit. One of those lights is in the pantry and what I would like to do is isolate that light from the rest by adding a single pole switch to the room. The switch at the bottom of the stairs would still light up the rest of the lights.  Do I need to run a separate hot from the existing box to the new box where the new switch in the pantry will be for the pantry light.


Background: I'm writing an exam and solutions for the exam in LaTeX (using WinEdt 10.2, if that matters). The university has an exam package I'm using that lets me change one option on the package to declare if I want to include solutions or not each time I compile.   The downside is that the filename remains the same, so what I have been doing is compiling with the answers. Then I'll locate the file in the directory and manually change the name of the file, then I can go back to the .tex file, change my option to not include solutions, then compile again and I'll have produced a blank copy of the test.  All of this isn't too bad, it is just a bit more cumbersome than I care for and I'd like to make the process slightly more efficient.  I was looking  and noticed this OP has the same question as me. However, the answers posted here didn't work for me (or I don't know how to implement them). I tried placing "pdflatex -job-name=name" both before and after declaring document class, but it didn't seem to help.     Question: Is there a command to easily change an output's filename from within a .tex file to avoid having to navigate to the file and manually changing the name?   If it will help, I can post an MWE, but since my issue isn't dealing with something compiling incorrectly, I won't begin with posting one.

I have a source file called 2011-05-27_Myfilename.tex and I'd like to create a PDF file from it called only Myfilename.pdf.  Can this be configured from within the .tex file itself?  (It seems to be possible with    pdflatex -jobname=Myfilename.tex 2011-05-27_Myfilename.tex   However, as many different files are concerned, It would be easier to have an option like output=Myfilename in the LaTeX source code.)


If a given wrapper doesn't have any method(even no get;set;) that class won't get listed under 'Overall Code Coverage' section in the developer console. Does this mean such Apex wrappers do not impact on the 75% threshold too? In case if it get considered, just for the sake of code coverage we have to add getter and setters utilizing unnecessary additional characters. That doesn't make any sense.

I have written below Wrapper class.  global class BI_VA_AutomationWrapper {      global class BI_VA_AutomationRequest {      webservice String userName;     webservice String emailId;     webservice String buinessUnit;     webservice String orgName;     webservice String country;     webservice String environment;     webservice String myShopNumber;     webservice String BidsId;//for testing     webservice String Type; //for testing  }  global class BI_VA_AutomationResponse {      webservice String responseStatus;     webservice String myShopNumber;     //webservice list<Error> errorMessages;     webservice String  errorMessages;//for testing   } global class BI_VA_Error {      webservice String type;     webservice String message;    }}   And test class is,  @isTest public class BI_VA_AutomationWrapperTestClass  { public static testMethod void unitTest(){      BI_VA_AutomationWrapper.BI_VA_AutomationRequest wrap= new BI_VA_AutomationWrapper.BI_VA_AutomationRequest();        wrap.userName='Test@test.com';     wrap.emailId='Test@test11.com';     wrap.buinessUnit='AH';     wrap.orgName='ORD';     wrap.country='US';     wrap.environment='QA';     wrap.myShopNumber='123456789';     wrap.BidsId='123';     wrap.Type='ResetPassword';              BI_VA_AutomationWrapper.BI_VA_AutomationResponse res= new BI_VA_AutomationWrapper.BI_VA_AutomationResponse();     res.responseStatus = 'Success';     res.myShopNumber = '987654321';     res.errorMessages = 'Test error';      BI_VA_AutomationWrapper.BI_VA_Error error = new BI_VA_AutomationWrapper.BI_VA_Error();     error.type = 'Test';     error.message = 'Test';  }}   Code coverage is 0% only.


Out of the blue today my MacBook Pro starting showing a flashing folder with a question mark during the boot process.  I went into Disk Utility to try and restore or reformat the MacBook, but the hard drive does not even show up and everything else is grayed out.  Here’s a screenshot that shows what I’m talking about. Thanks.

I tried to start up my computer and got a flashing file with a question mark.  So I held down the ⌥-key on boot and brought it into recovery-mode.  After going through the different options I went to the disk utility and all I see is the grayed out SuperDrive and below there is disk0 and Mac OS X Base system.   Leaving disk utility I went to reinstall Mac OS X. After the verification and agreeing the terms, it doesn't show my harddrive.   Did I unmount the harddrive or what could the reason it's not showing up?


In the spirit of test-driven design I want to test whether the tables get properly created in my SQLite3 database. For that purpose I want to list the table names via an SQL query.   I created the tables with:  public static void setupTables(){     try(Statement stmt = con.createStatement()) {         String sql_student = ("CREATE TABLE IF NOT EXISTS " + STUDENT_TABLE + "(\n "                 + ID + " integer PRIMARY KEY,\n "                 + FIRSTNAME + " text,\n "                 + LASTNAME + " text\n"                 + ");");         String sql_teacher = ("CREATE TABLE IF NOT EXISTS " + TEACHER_TABLE + "(\n "                 + ID + " integer PRIMARY KEY,\n "                 + FIRSTNAME + " text,\n "                 + LASTNAME + " text\n"                 + ");");          stmt.execute(sql_student);         stmt.execute(sql_teacher);          stmt.close();      }catch(Exception e){         e.printStackTrace();     } }   What's the query I need for my test? Do I need to be concerned about order, or does the order in which the tables get created gurantee that they will always stored in the same order?

What SQL can be used to list the tables, and the rows within those tables in an SQLite database file - once I have attached it with the ATTACH command on the SQLite 3 command line tool?


When you put water in the freezer you can make Ice Cubes. But does the time taken for these Ice Cubes to form decrease or increase when the water which is used is hotter or colder?

There is this puzzling thing that is called : paradoxically, warm (35°C) water freezes faster than cold (5°C) water.  As a physisist, I've been asked about it several times already. And I have no definite answer to that, apart from the standard: "there are many things that can influence it".  So, does anyone knows about the status or progress on that effect? Any recent reviews, publications or other references?


% print ok ok % sudo print ok sudo: print: command not found  It seems the print are not properly loaded. So what happened and how can I fix it?

$ source /etc/environment   $ sudo source /etc/environment  [sudo] password for t:  sudo: source: command not found   It seems that a different shell than bash is run to execute source /etc/environment and that shell doesn't have source as builtin.   But my and the root's default shells are both bash.  $ echo $SHELL /bin/bash   If sudo indeeds uses a different shell, why is it? I saw , but don't understand in my case.


I'm trying to install Ubuntu onto a 256gb flash drive.   Right now, I've been running the OS from a live session from another usb flash drive. I managed to install Ubuntu-studio onto the 256gb stick, but when I boot into it, all I get is a black screen.   I installed through a virtual way (qemu), then tried installing Ubuntu-Studio through the desktop icon.   I went through both installs the same, partitioning the entire drive as an ext4 filesystem and a / mount point with the same results.   Before I tried to install the OS, I reformatted the usb flash drive and made gpt partition table.   Any help? D  Edit: The solutions in that article (Black/purple screen after you boot Ubuntu for the first time) can't be performed since I couldn't get into GRUB or a UEFI screen. I went with a persistent live session instead which is essentially the same for all practical purposes except for upgrading my distro. My persistent live session performance is much slower than my live session without persistence though. I used 100% of the 256gb as "persistent" when a much smaller amount of memory would suffice for system settings and software. I'll try reformatting and trying again, leaving a NTFS partition with at least half of the sticks memory.

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


Let $K$ be a field and $R=K[\![x^3,x^2y,xy^2,y^3]\!]$ the ring of formal power series. Is  $R$ a Gorenstein ring?  $R$ is Cohen-Macaulay of dimension 2.   So, I have to check if $Ext^2_{K}(K,R)=K.$

Let $K$ be a field and $R=K[|x^3,x^2y,xy^2,y^3|]$ the ring of formal power series. Is  $R$ a Gorenstein ring?  $R$ is Cohen-Macaulay of dimension 2.   So, I have to check if $\operatorname{Ext}^2_{K}(K,R)=K.$ I  need  some  hints  about  that.


I almost have no clue regarding python and scripting, and I was wondering if there is a simple script to create two nodes in the shader editor.  Something like this:    UV map → Image texture  That's it. but every time I try to copy from the info window I get errors in the console, please help!

How can I define the different properties of an Cycles/Eevee material? Such things as glossy, glass, diffuse, RGB-color, emissive via python scripting?


I'm trying to make a list of figures but am having some problems with the captioning.   Some pictures have long names since I explain some things in the caption, but I don't want this to show in the list of figures. How can I change it?   Attached a picture of how it looks right now. I want it only to read "2.6 Proportional control" as an example.

I would like to change the caption in the List of Tables in a way it is different from the caption in the corresponding table. How can I do that? Does there exist a command to do that?


I'm getting these beep codes - (2 short, pause, 4 short, long pause) - repeating.  I couldn't find the meaning of these codes on the internet, the PC model is Omron NSA-CPU01-E.  Does anyone know what they could possibly mean?

Due to the amount of beep codes a PC can give, there are many questions on Super User about beep codes! I'm hoping this post will help to provide a community answer about all (dare I say all?) beep codes, with my fictional question.  When I try to turn my PC on, I hear some beeps. This is not beeping from the HDD or fan, but from the motherboard. Regardless of the number of beeps, what do the beeps mean?


I want to install a package on a computer running Ubuntu Precise.  However, the provider of the package only "supports" Ubuntu up till Lucid. Newer versions are probably supported as well, but they stopped updating the repository. The newest repository available is  deb http://appscale.cs.ucsb.edu/appscale_packages lucid stable  If I try to install the package from that repository I get this error, probably because of version issues:  $ sudo apt-get install appscale-core Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  appscale-core : Depends: sun-java6-jdk but it is not installable                  Depends: libboost-filesystem1.40.0 but it is not installable                  Depends: libboost-serialization1.40.0 but it is not installable                  Depends: libboost-thread1.40.0 but it is not installable                  Depends: libboost-program-options1.40.0 but it is not installable                  Depends: libboost-iostreams1.40.0 but it is not installable                  Depends: libboost-python1.40.0 but it is not installable E: Unable to correct problems, you have held broken packages.   My system is fully updated and upgraded, so I doubt that I indeed have broken packages.  I've been in this situation before, that I had a repository that only existed up to some version lower than the current (LTS) version.  Is there a general way for resolving this?

Recently I have installed an older version of Ubuntu on my old machine. Whenever I try to install any software, I get an error saying it couldn't be found:  $ sudo apt-get install vlc Reading package lists... Done                Building dependency tree        Reading state information... Done     E: Couldn't find package vlc


I am a US citizen but I live in the UK. I have called the Cuban consulate in London and was informed that I am allowed to travel to Cuba, as long as I get the permit.  I worry that due to the Embargo it will bring penalties later on when I enter the US.  Does anybody have any advice on this?

Suppose I am a U.S. citizen with dual citizenship with another country.  Citizens of this second country are allowed to travel to Cuba.  Suppose further that I live and work outside the United States and have a non-U.S. bank account containing funds in a currency other than dollars.  If I travel to Cuba using my passport from this 2nd country and using my non-U.S. financial resources, could I get into trouble upon return to the United States?  When I return, could I list Cuba under "countries visited" on the customs form without fear of repercussions, using the explanation that I traveled on a foreign passport and paid for my trip from foreign resources?  Are U.S./dual citizens subject to the Cuban embargo when traveling on their non-US passport?


After I login ubuntu, as usual, I check upgradable packages by running: sudo apt update. Then the result is:      36 packages can be upgraded. Run 'apt list --upgradable' to see them.   I continue with the command:sudo apt upgrade but I got error:     E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)   E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?   I waited for a few moments and then I rerun the previous command and it told me:     2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   Is it an apt error or there's an update process running on the background?

I get this error when trying to use apt-get:  E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?     How can I fix this?


if $m,n,k$ are any three positive integers prove that $$(m,n)(m,k)(n,k)[m,n,k]^2=[m,n][m,k][n,k](m,n,k)^2$$ where $(a,b)$ denotes gcd of $a$ and $b$, $[a,b]$ denotes lcm of $a$ and $b$. I tried with the formula $(a,b)[a,b]=ab$

I'm trying prove $$\gcd(a,b) \gcd(a,c) \gcd(b,c) \,\text{lcm} (a,b,c)^2=\text{lcm}(a,b)\,\text{lcm}(a,c) \,\text{lcm}(b,c) \gcd(a,b,c)^2$$  It is a part of solution of another problem I try a lot to prove it but I could not be succeed.  I tried using exponent manipulation in prime factorizations but it didn't help me.


I think consensus is that we want StackExchange to be the go-to place for any question anyone may ever have, as long as this question is on-topic for the specific SE domain. People often mention that StackExchange should be the top result in Google for such questions, and that it's okay to ask a question on StackExchange even if that question was already answered elsewhere on the internet.  Meanwhile, we encourage people to vote on questions, partly based on the research effort. If the question clearly lacks research effort (in other words, the answer can be found with a simple Google search), a downvote is warranted.   Isn't this a bit conflicting, though? For instance, I think it is great to have the question  on Stackoverflow. It has over two thousand upvotes, which is great. However, when it was posted (in 2008) there were already numerous good articles about this on the internet, and the question can indicate a lack of research effort. By now, the question (and its answers) are top results in Google whenever you search for remedies against SQL injection.  Am I the only one who thinks that research effort is not a particularly good criterion for upvoting/downvoting a question? As I understand it, we should not tell users to *read the f***ing manual*; we want StackExchange to be the manual.   Can anyone explain me where my logic is wrong?

It seems like many questions by new users are downvoted immediately.  Sometimes there is a comment to the tune of "lacks research", "we're not here to do your homework", or "show us some effort".  Now I wonder, what does it matter how much work someone has done before posting?  If someone can ask a good question in 5 seconds, more power to them.  To illustrate this point, look at how you could "improve" a question to include proof of effort.  You could put in 5 failed code snippets and their in- and output.  This would make for very long questions with a high noise ratio.  Another suggestion is to add "research".  By "research", I suppose most programmers mean "Google".  So this is basically a suggestion to add a list of fruitless Google queries.  That doesn't sound interesting either.  How can "proof of effort" turn a bad question into a good one?


Can I know which "search engine" the visitor used to be on my site?  For example:   If the visitor searched for my website in google, when click on link from google to my website,  i need to know the search engine name, here is "google.com".  The same if searched on yahoo , and click on my site link, i will get yahoo.com as a search engine.    It's possible?

Is it possible to check who is entering your website in PHP. I have a web application ( written in PHP) that should only allow users entering from some particular websites. Is it possible to get the referral websites by examining the _Request object? If yes, how?


I am working in matplotlib and new to this. Can anyone please help me and let me know what "param_dict" does in the below code? def my_plotter(ax, data1, data2, param_dict):     out = ax.plot(data1, data2, **param_dict)     return out

In the following method definitions, what does the * and ** do for param2?  def foo(param1, *param2): def bar(param1, **param2):


I recently learnt the formula $a \sinθ + b \cosθ = R \sin(θ + α)$ at school. How to prove it? Thanks.

I don't understand this. These identities are given in the online notes for MIT's 18.01 calculus class. It's related to taking the sum of two trig functions and transforming them into a single trig function. I can use the formulas to do this, but I am having trouble finding anything on the internet to use a proof for my understanding.  Thanks for any responses!  EDITED (added after the first answer):  Sorry, the identity goes like this:  $A\sin{k(x-c)}=a\sin{kx}+b\cos{kx}$ ,  with the relationships  $a=A\cos{kc}$ , $b=-A\sin{kc}$ , $A=\sqrt{a^2+b^2}$ , and $\tan{kc}=-b/a$


If ($X$,$\Sigma$,$\mu$) is $\sigma$-finite, is $L^p$ space separable with 1$\leq$p<$\infty$?  If it is correct, please tell me a proof.

Let's consider the space $\mathcal{L}^p(X, \Sigma, \mu)$ of all functions $f\colon X \to \mathbb{R}$ (or $\mathbb{C}$) for which: $$ \int\limits_X|f|^p \mu(dx) < \infty. $$ Here $X$ is a metric space, $\Sigma\subset 2^X$ — sigma-algebra on $X$ and $\mu$ — is the measure on $\Sigma$. As usual, functions that are equal almost everywhere considered to be equivalent, so technically we are dealing with classes $$[f]=\{g\in \mathcal{L}^\infty(X,\Sigma, \mu) \colon \mu \{x\in X\colon f(x)\neq g(x)\}=0\}.$$ This space is endowed with integral metric $$\rho_p(f,g)=\left(\int\limits_X|f-g|^p \mu(dx)\right)^{1/p}$$  The statement is that space $\mathcal{L}^p(X, \Sigma, \mu)$ is separable iff $(\Sigma, \rho_\Delta)$ is separable, where $\forall A,B\in\Sigma$ $$\rho_\Delta(A,B)=\mu(A\Delta B)$$ Here, again, we consider $A\in \Sigma$ as a class $[A]=\{A'\in\Sigma\colon \mu(A\Delta A')=0\}$ to have the identity of indiscernibles.  How do one prove the statement?


I am writing a sort of framework for Android. Other developers are able to extend this Framework with their Plugins.  Currently, to add a new Plugin, one needs to   a) write a new class which has to extend class AbstractPlugin (which is written by me) b) For each plugin, my code needs to do some initialization. Thus one also, in one place inside the Framework, needs to increment 1 constant and add a new line of code like this:  ArrayList<AbstractPlugin> plugins = new ArrayList<>[3] // increment this   plugin[0] = new PluginBlah(); plugin[1] = new PluginShowStars(); plugin[2] = new PluginBlurSurface();  // here add a new line initializing plugin[N] with the Plugin you've just written (...)  for(int i=0; i<plugins.size(); i++)   plugin[i].initalize();   The need to do the above leaves a bad taste in my mouth. I am thinking my Framework should be able to self-discover. Can my code somehow discover all classes which extend AbstractPlugin (all of them must belong to the same package like AbstractPlugin) and initialize itself?  EDIT:  I don't feel this is a duplicate of the 2 questions (I have read them both before), because both of them deal with generic Java and give as an accepted answer the 'ServiceLoader' mechanism, which doesn't work in Android.

I want to do something like this:  List<Animal> animals = new ArrayList<Animal>();  for( Class c: list_of_all_classes_available_to_my_app() )    if (c is Animal)       animals.add( new c() );   So, I want to look at all of the classes in my application's universe, and when I find one that descends from Animal, I want to create a new object of that type and add it to the list.  This allows me to add functionality without having to update a list of things.  I can avoid the following:  List<Animal> animals = new ArrayList<Animal>(); animals.add( new Dog() ); animals.add( new Cat() ); animals.add( new Donkey() ); ...   With the above approach, I can simply create a new class that extends Animal and it'll get picked up automatically.  UPDATE: 10/16/2008 9:00 a.m. Pacific Standard Time:  This question has generated a lot of great responses -- thank you.  From the responses and my research, I've found that what I really want to do is just not possible under Java.  There are approaches, such as ddimitrov's ServiceLoader mechanism that can work -- but they are very heavy for what I want, and I believe I simply move the problem from Java code to an external configuration file. Update 5/10/19 (11 years later!) There are now several libraries that can help with this according to @IvanNik's   looks good. Also  from @Luke Hutchison's  looks interesting. There are several more possibilities in the answers as well.  Another way to state what I want: a static function in my Animal class finds and instantiates all classes that inherit from Animal -- without any further configuration/coding.  If I have to configure, I might as well just instantiate them in the Animal class anyway.  I understand that because a Java program is just a loose federation of .class files that that's just the way it is.  Interestingly, it seems this is  in C#.


I am trying to understand a code written by my professor. There's a line in the code that says   a = (b > c) ? c : b;  where a, b, and c are just float variables. This is my first time seeing that expression. I tried to google it but nothing came up. Any explanation or link to some explanation for this is welcomed. Thank you.

I've always wondered how to write the "A ? B : C" syntax in a C++ compatible language.  I think it works something like: (Pseudo code)  If A > B    C = A Else    C = B   Will any veteran C++ programmer please help me out?


I want to buy a gift for my lovely Ph.D. supervisor for Christmas. But as I am a foreigner and we don't celebrate Christmas in our country, I  have no idea. Could somebody please help me?

Is it standard for graduate students to give their advisors gifts around Christmas, like chocolates or bottles of wine?  What about other important people, such as their thesis committee members, or department secretaries?


Why is Xubuntu 17.04 refusing to update my software? My internet is working fine. This is really frustrating. It also doesn't even show update possibility to 17.10. I get a note to check the internet, but the internet service is fine. It's working for everything else.

Recently I have installed an older version of Ubuntu on my old machine. Whenever I try to install any software, I get an error saying it couldn't be found:  $ sudo apt-get install vlc Reading package lists... Done                Building dependency tree        Reading state information... Done     E: Couldn't find package vlc


To protect my personal data against sudden hard drive failure, I basically began mirroring my internal drives to an external hard drive a while ago. I do this regularly with all of my data partitions, since I am unable to cleanly separate my most important data from other things, which may not be essential, but possibly not easy to replace.  Since the space on both drives is still sufficient, I see the benefit in simply copying all data, so that even a complete system failure would leave me with my newest files and system structure still intact on my external drive, which I find very reassuring.  The problem with this method is that:   I can't be sure that the mirrored data is identical to the original files (except if I would do a checksum comparison on all files, which I only would know how to do manually at the moment and which would take a lot of time). Tools to mirror two partitions usually look for changes in the editing date of two files to identify what data must be copied, but are unable to tell if a file has canged on either side because of drive failure in some sectors and may have become corrupted or unreadable.   I would like to keep the ability to make a daily backup within some minutes and without imaging/copying my whole partition every time, but increase the security of my data with a different method than "simply copying" the files.  Is there any program or workflow available on Ubuntu that lets me keep my backup habits and addresses the issues I outlined above?

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here.  While you are encouraged to help maintain its answers, please understand that "big list" questions are not generally allowed on Ask Ubuntu and will be closed per the .   Backup is incredibly important. Obviously there's no best backup tool, but a comparison of the options would be very interesting.   Graphical Interface? Command line? Incremental backups? Automatic backups? Install method: In standard repositories? PPA?


I am writing a chess program. I have a player class and I have a chessboard class, among many other classes. My program was compiling before on xcode and linux.   The compiler keeps saying 'Player has not been declared' for the ChessBoard.h header file, and 'Chessboard has not been declared' for the Player.h  Player.h      #ifndef PLAYER_H     #define PLAYER_H     #include <string>     #include "ChessBoard.h"       using namespace std;      class Player {   ChessBoard.h  #ifndef CHESSBOARD_H #define CHESSBOARD_H   /* ChessBoard object stores a 2D representation of 32 ChessPieces. Checks for win or tie after each move */  #include "Player.h" #include "ChessPiece.h"  //Board size const int SIZE = 64;  class ChessBoard { public:   Both include guards have an #endif and the cpp implementation files contain includes to the header file.  Why am I getting this error message? Thanks

I often find myself in a situation where I am facing multiple compilation/linker errors in a C++ project due to some bad design decisions (made by someone else :) ) which lead to circular dependencies between C++ classes in different header files (can happen also in the same file). But fortunately(?) this doesn't happen often enough for me to remember the solution to this problem for the next time it happens again.  So for the purposes of easy recall in the future I am going to post a representative problem and a solution along with it. Better solutions are of-course welcome.     A.h  class B; class A {     int _val;     B *_b; public:      A(int val)         :_val(val)     {     }      void SetB(B *b)     {         _b = b;         _b->Print(); // COMPILER ERROR: C2027: use of undefined type 'B'     }      void Print()     {         cout<<"Type:A val="<<_val<<endl;     } };       B.h  #include "A.h" class B {     double _val;     A* _a; public:      B(double val)         :_val(val)     {     }      void SetA(A *a)     {         _a = a;         _a->Print();     }      void Print()     {         cout<<"Type:B val="<<_val<<endl;     } };       main.cpp  #include "B.h" #include <iostream>  int main(int argc, char* argv[]) {     A a(10);     B b(3.14);     a.Print();     a.SetB(&b);     b.Print();     b.SetA(&a);     return 0; }


This is what I am getting when I tried installing Latex. Can you please help me fixing these issues $ sudo apt-get install texlive-full Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  gsettings-desktop-schemas : Breaks: mutter (< 3.31.4) but 3.28.4-0ubuntu18.04.2 is to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

I am not sure what caused this error, but here is what the whole error says, and also this is sitting as a notification, and preventing me from updating any software using Update Manager - Please provide some assistance or tell me how to figure out what to do to fix it.  Could not calculate the upgrade  An unresolvable problem occurred while calculating the upgrade.  Please report this bug against the 'update-manager' package and include the following error message: 'E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.'


I would like to implement horizontal dotted lines in the chapters in my TOC , just as it already does for sections:    So I am missing the dotted lines for the LOF, LOT, bibliography and Chapter 1.  My code is as follows:  \documentclass[12pt,a4paper,twoside]{report}  %Seitenlayout \usepackage[top=2.5cm, bottom=2cm, left=2.5cm, right=2.5cm,paper=a4paper]{geometry}  %Deutsche Umlaute \usepackage{ngerman}  %Zitierungen in der richtigen Reihenfolge \usepackage{cite}   %Längenangaben für den Abstand zwischen zwei Absätzen.  \usepackage{parskip}   %Zeilenabstand ändern \usepackage[onehalfspacing]{setspace}   %Farbige Texte etc \usepackage{color}   %Graphiken und Bilder \usepackage{graphicx} \usepackage{subfig} \usepackage{psfrag} \usepackage{wrapfig}  %Tabellenumgebung \usepackage{tabularx} \usepackage{booktabs} %\toprule, \midrule, \bottomrule  %Mathematische Symbole und Zeichen \usepackage{amsmath} \usepackage{amssymb} \usepackage{mathrsfs}  %Algorithm Package \usepackage[ruled,vlined]{algorithm2e}  %Blindtext \usepackage{blindtext}  %Verzeichnisse \usepackage[notindex, nottoc, numbib]{tocbibind}   % = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = % Makro Abstract % = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = \newcommand{\Abstract}{ This is an abstract.\\  \textit{\textbf{Anmerkung:}\\ Der Abstract ist bei Arbeiten, die neben dem deutschen einen englischen Titel haben, verpflichtend.} }   % = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = % Anfang von Dokumententext % = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = \begin{document}  \pagenumbering{Roman}   % = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = % Einbettung des Abstracts % = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = \chapter*{Abstract} \chaptermark{Abstract} \Abstract \cleardoublepage   % = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = % Verzeichnisse % = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = \tableofcontents  \listoffigures  \listoftables  \newpage  % = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = % Beginn des Inhalts % = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = \pagenumbering{arabic}  \chapter{Einleitung} \blindtext  \section{Dies ist ein Unterkapitel}  \blindtext  \section{Tabellen} Hier ist eine Tabelle gegeben. \begin{table}[th] \centering \begin{tabular}{l|c|r} Ort & Temperatur  & Luftfeuchtigkeit  \\ \hline Bochum & $16^\circ \text{C}$ & $60 \%$ \\  M\"unchen  & $19^\circ \text{C}$ & $62 \%$ \\  Berlin  & $14^\circ \text{C}$ & $63 \%$ \\ Frankfurt  & $15^\circ \text{C}$ & $64 \%$ \\   \end{tabular} \caption[Darstellung der Temperatur und der Luftfeuchtigkeit am 22.09.2012]{Darstellung der Temperatur und der Luftfeuchtigkeit am 22.09.2012 an ausgew\"ahlten Orten in Deutschland. Die erste Spalte ist links ausgerichtet, die zweite zentriert und die dritte ist rechts ausgerichtet.}\label{tab:TempUndLuftfeuchtigkeit} \end{table} Tabelle \ref{tab:TempUndLuftfeuchtigkeit} kann mit dem Befehl \verb|\ref{EinEindeutigerName}| einfach referenziert werden.  \section{Abbildungen}  \begin{figure}[th] \centering \subfloat[]{\includegraphics[width = 0.45\textwidth]{./figures/pt1.eps}} \caption{Diese Abbildung zeigt die Sprungantworten eines $\text{PT}_1$ und eines $\text{PT}_2$-Gliedes. } \end{figure}   \section{Literaturverwaltung}  Beispiel: Der Artikel von Bemporad et al.~\cite{Bemporad2002} gibt eine gute \"Ubersicht \"uber explizite Modellpr\"adiktive Regelung.   Jones2006b \cite{Jones2006b}   %Bibliography % \nocite{*} %Wird verwendet um eine Literaturquelle im Verzeichnis erscheinen zu lassen, ohne auf sie im Text zu verweisen.  \bibliographystyle{abbrvdin} \bibliography{Masterarbeit_Bibliothek_CN}    \end{document}   Thank you very much in advance.

When typesetting an article documentclass, the sections appear as bold in the table of contents, with no leading dots. I would like to change these to non-bold, and insert some leading dots. I tried the following, but it seems to be ignored. Any ideas?  % change section headers and page numbers to normal instead of bold font \renewcommand{\cftsecfont}{ \normalfont } \renewcommand{\cftsecpagefont}{% \normalfont } % use leader dots with section headers \renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}


I want to solve the integral $$\large\int\frac{2\sqrt[5]{2x-3}-1}{(2x-3)\sqrt[5]{2x-3}+\sqrt[5]{2x-3}}\mathrm dx$$  I've gone with the varialbe change method using  $$  2x-3=u\ $$ and got  $$ \frac{1}{2}\int \frac{2u^\frac{1}{5}-1}{uu^\frac{1}{5}+u^\frac{1}{5}} du\ $$ then I used shift $$ u=t^5 $$ and got $$ \frac{5}{2}\int\frac{2t^4-t^3}{t^5+1} dt\ $$ This is the part that I'm stuck on. Any kind of advise would be helpfull.

I introduce shift $t^5=2x -3$,but it doesn't help $$\int \frac{2\sqrt[5]{2x-3}-1}{\left(2x-3\right)\sqrt[5]{2x-3}+\sqrt[5]{2x-3}}dx$$


Our image styles are not getting created on one of the Drupal 7 sites in a multi-site installation. They are created for at least one of the other sites that uses the same Drupal 7 core.  Symptoms: Upon uploading an image to a node, the image preview does not get displayed (depending on the browser, a broken image placeholder may display). The image is not created in the file system either. I have verified file system ACLs. Both sites use the same .htaccess.

Currently i am unable to create images that get resized automaticaly according to the different image styles.  This includes the default styles such as thumbnail as well as the custom created styles.  I have checked the "Public file system path" as well as the "Temporary directory" (under Configuration > File system).  Both of the directories exist.  The file permissions are good on the directories (777).  The original file that's uploaded gets created. It's just the scaled images that aren't getting created.  Any help with this problem would be very welcome. If there is already a solution somewhere (which means i searched for the wrong terms), a link to that would be very appreciated.  edit:   I can't find anything in the logfile either, except for messages like :  type : page not found  message: sites/default/files/styles/thumbnail/public/fotoslider/slider_images/testbeeld20130103005.jpg


White wine and red wine have great flavors when added to a dish. But because I'm on medication, I'm not able to use wine (my body would have odd reactions when I consume food cooked in white wine) I wonder what is flavor-wise the closest nonalcoholic substitute for white wine and red wine?  I have looked at  But the answers were not satisfactory. For example, chicken stock has a completely different flavor when substituted for white wine and so does white grape juice. What is [flavor-wise] the closest nonalcoholic substitute for white wine and red wine? Thank you!

If someone cannot or will not use wine for cooking, what would be a good substitute?   Question applies to both red and white wine.


Original question :  To Prove : $(A\cap B)\cup(A\cap \bar{B}) = A$  My Response to it :  We have,   $(A\cap B)\cup(A\cap \bar{B}) = A$  $\Rightarrow (A \cap B) + (A \cap \bar{B}) - (A \cap B \cap A \cap \bar{B})$  $\Rightarrow (A \cap B) + (A \cap \bar {B}) - \emptyset$  $\Rightarrow (A \cap B) + (A \cap \bar {B})$  $\Rightarrow (A \cap B) + A \cap (U-B)$  $\Rightarrow (A \cap B) + (A \cap U) - (A \cap B)$  $\Rightarrow A$  The identity I used above was: $(X \cup Y) = X + Y - (X \cap Y)$  However, my professor says the identity I used is flawed and is wrong thus making my solution wrong too. Please provide your insight on what you think.

Show that if $A$ and $B$ are sets, then $(A\cap B) \cup (A\cap \overline{B})=A$.  So I have to show that $(A\cap B) \cup (A\cap \overline{B})\subseteq A$ and that $A \subseteq(A\cap B) \cup (A\cap \overline{B})$.  Lets begin with the first one:  If $x \in (A \cap B)$ it means $x \in A \wedge x \in B$.  If $x \in (A \cap \overline{B})$ it means $x \in A \wedge x \in \overline{B}$.  And the second one:  If $x \in A$ it means $x \in (A \cap B)$.  But here after I am confused.


We need to find $$\lim_{n\to \infty} \sum_{r=0}^n \frac{2^r}{5^{2^r}+1}$$  I tried finding a closed form for the sum and then plugging in the limit but I couldn't figure out any sort of telescoping or breakdown for this sum so my thoughts turned to the limit itself.   I thought that there was a possibility of converting it into an integral but that didn't work either. There is perhaps a possibility of using the Sandwich theorem but I'm not sure. Any help would be appreciated.

How can we solve the following?:  $$\lim_{N\to \infty}  \sum_{r=1}^N \frac{2^r}{(1+5^{2^r})} $$  The answer according to Wolfram Alpha is $\frac{1}{12}$, but I have no idea how it can be calculated on paper without summing it infinitely (which apparently is what Wolfram Alpha does).


Given three complex numbers $a,b,c$ such that $\lvert a \rvert=\lvert b \rvert=\lvert c \rvert=1$ and $$\frac{a^2}{bc}+\frac{b^2}{ac}+\frac{c^2}{ab}=-1$$  Find which of the following are possible values of $\lvert a+b+c \rvert$  A)0  B)2  C)1.5  D)3  My try:  I assumed $a=e^{ix}$,$b=e^{iy}$, $c=e^{iz}$  Then we have  $$\cos (2x-y-z)+\cos (2y-x-z)+\cos (2z-x-y)=-1$$  $$\sin(2x-y-z)+\sin (2y-x-z)+\sin (2z-x-y)=0$$  Squaring and adding we get  $$3+2(\cos(3x-3y)+\cos(3y-3z)+\cos (3z-3x)=1$$  So  $$\cos(3x-3y)+\cos(3y-3z)+\cos (3z-3x)=-1$$  any clue here?

$ |A |= |B | = |C | = 1 $ ,where A B and C are complex nos  $$ \frac{A^2}{BC}+ \  \frac{B^2}{ \ {CA}} \ +\  \frac{C^2}{ \ {AB}} + 1 = 0$$  Find the possible values of $ |A + B + C |$  Tried substituting cos(theta) + i sin(theta)


I am looking for an example code or tutorial for sending Email through Gmail API. User is able to provide his gmail credentials and authorizing my app to access his compose email option. But from that point I don't know how to send email. I have got the messages and all the details but do not know how to link those with my project currently and for future use. Please read this before posting anything. Please note that using the gmail Host, smtp, port and working with less secure api is not required. As I am already using this for sending the email from single email address. I need the sample code which is using Gmail API to send the email of the account holder after authorizing the application. Note: This is not related to the simple codinging which are linked with smtp,http, post. Any help can be appreciated.

Instead of relying on my host to send an email, I was thinking of sending the email messages using my Gmail account. The emails are personalized emails to the bands I play on my show.   Is it possible to do it?


What is the format for a YouTube URL, to link to a specific time in the video? Something like  https://www.youtube.com/watch?v=Ze68s47-xO4<time code goes here>

If I find a video on YouTube that I want to send to a friend, but I really only care about something at the two minute mark, can I send him a link that will start at two minutes into the video for him?  Is there a specific URL or setting when sending a link to a YouTube video that jumps directly to a point in the timeline?


Missing Hibernate in Power Options on Windows 10  Power Options:   System info:   What could be a problem?  So I can't check this as in below picture:   UPDATE  this helped (in CMD as admin):  powercfg /hibernate on

Windows 8 Professional 32-bit running on Laptop. And the Hibernation option is missing from the Power Options in the System Settings. Even after I enable hidden power features by giving admin privileges.  How can I fix this?    Also the option to enable hibernation is missing from the advanced power plan options.      SOLUTION UPDATE:  Thanks to  I have found that you need to enable hibernation using a command prompt.   Get to the Start menu, type 'CMD' this will begin the search. Press the CTRL+SHIFT+ENTER to start the command prompt with administrative privileges. Type powercfg -h on and press enter


I run in Tomcat, jasper report crashed with PDF, excel still running fine.  JRPdfExporter exporter = new JRPdfExporter(); exporter.setExporterInput(new SimpleExporterInput(jasperPrint)); ByteArrayOutputStream os = new ByteArrayOutputStream(); exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(os)); exporter.exportReport();   And error shot out:  java.lang.NoSuchMethodError: com.lowagie.text.pdf.PdfWriter.setRgbTransparencyBlending(Z)V  net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:480)  net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:379)  net.sf.jasperreports.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:122)  ReportServlet.processRequest(ReportServlet.java:104)  ReportServlet.doGet(ReportServlet.java:142)  javax.servlet.http.HttpServlet.service(HttpServlet.java:690)  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)   I use the following libraries:  - iText-2.1.7.js2.jar  - itext-4.2.0.jar  - itextpdf-5.5.0.jar  - jasperreports-5.6.0.jar  - jasperreports-fonts-5.6.0.jar  - jasperreports-javaflow-5.6.0.jar  Thanks for your help!

I'm getting a NoSuchMethodError error when running my Java program.  What's wrong and how do I fix it?


I have a Macbook Air 128 Gb and its always short on hard disk! Since Photos app came out, I started using it. I did the initial migration of iPhoto to Photos app (don't know which settings i chose). The issue now is : I have 2 photo libraries  Photo library (35Gb) iPhoto migrarted library (27Gb)  I don't think I've 70gb worth of photos in there and when i try to open the migrated library it says already migrated to photos app. All tools like whatsize shows them like different files and even when I copy both in my external hard drive it takes a combined storage of 70Gb. My mac does not have that much data but still only 5 Gb is left.  Now, is it safe to delete iPhoto migrated library, how can I be double sure that no data is lost! I'm in serious need of space.  To make my question unique from  , there user's iPhoto and photos app library were taking combined 35Gb, here they are taking 35+27 = 62Gb! My libraries take individual space, so please don't mix this question with the other one, it doesn't answer my question!  1st one is with photo library and other one is with iPhoto!

I upgraded to Yosemite and migrated my iPhoto library to the new Photos app. I'm happy with Photos and don't plan to go back to iPhoto.  This  makes it clear that the photos don't really exist in two places, but leaves it vague as to where they actually are.  I don't like having an iPhoto Library that my Photos library is dependent on, and I'm bothered by the weird and misleading sizes reported by the Finder.  How can I get rid of the iPhoto Library without damaging my Photos Library?


I just started learning proof by induction in class, but got a problem requiring proof by strong induction.  Here is the problem.     Prove by strong induction: $$\sum_{i=1}^n 2^i = 2^{n+1} - 2$$   I've done the base, showing that the statement holds for $n=1$, $n=2$, and $n=3$. (I won't show the simple math here). For $n=k$, the statement would be $2^{k+1}-2$. But that's where I get stuck, as I'm still trying to grasp the concept of strong induction.  For $n=k+1$, do I do the following and simplify?  $$\sum_{i=1}^{k+1} 2^i = \sum_{i=1}^k 2^i + 2^{(k+1)+1} - 2$$ $$=[2^{k+1}-2]+[2^{k+2}-2]$$ $$=\text{etc}\ldots?$$

Firstly, this is a homework problem so please do not just give an answer away. Hints and suggestions are really all I'm looking for.  I must prove the following using mathematical induction:     For all $n\in\mathbb{Z^+}$, $1+2+2^2+2^3+\cdots+2^n=2^{n+1}-1$.   This is what I have in my proof so far:     Proof: Let $p\left(n\right)$ be $\sum_{j=0}^n 2^j=1+2+2^2+\cdots+2^n=2^{n+1}-1$. Then $P\left(0\right)$ is    \begin{align} \sum\limits_{j=0}^0 2^j=1=2^1-1.\tag{1} \end{align} Hence    $P\left(0\right)$ is true. Next, for some $k\in\mathbb{Z^+}$, assume    $P\left(k\right)$ is true. Then \begin{align}  \sum\limits_{j=0}^{k+1}2^j&=\left(\sum\limits_{j=0}^k  2^j\right)+2^{k+1}\tag{2}\\ &=2^{k+1}-1+2^{k+1}\tag{3} \\ &=2\cdot 2^{k+1}-1\tag{4}\\ &=2^{k+2}-1\tag{5}\\ &=2^{\left(k+1\right)+1}-1.\tag{6} \end{align}   Therefore, $P\left(n\right)$ holds for all $n$.$\;\;\;\;\blacksquare$   Is everything right? My professor went over the methodology in class quite fast (and I had a bit too much coffee that night) and I want to make sure I have it down for tomorrow night's exam.


I'm continually getting this error:  /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found   What I did before was add the Debian experimental repo and update to 2.17. But through a long chain of events, this ended up breaking almost everything on my system, and I had to reinstall. Is there any way to upgrade just this single package, without screwing up apt?

Is it possible to install and use two different glibc versions on the same machine. Where one version is only used to run legacy software, which relies on old glibc binaries?  Is it possible to do that with the aid of the package manager (something like "install this package, and its dependencies, to /opt/old-glibc), instead of managing it dire


I recently installed 12.04. When I try to edit a file with gedit, I can't use the terminal until I close the editing file or I have to open a new terminal. But I think I didn't have this problem with 11.04, however I'm not sure. Is there anyway to avoid this and to use same terminal while editing files.

I use dwm as a window manager on Ubuntu, I like tiled windows and I like them as few as possible. I sometimes need to run an application (let's say it's the pdf viewer mupdf in x11) from the terminal, the application will be launched in a new window but the terminal from which I launched becomes this prompt-less console for that application to log whatever.  I use dmenu to launch applications, but sometimes an application needs arguments (file names) to start. I use uxrvt within x11 managed by dwm.


No matter how silly this requirement is I would like to know your opinion and advices on this topic. Using jasperreport in our system we have requirement to show color instead of an actual value. Is there any chance how to set background color as a reference of value in the cell (e.g. value is #ff0000 which should be set as bg color and value should be hidden)?   Thanks

I'd like to show/hide a column at runtime based on a particular condition. I'm using "Print when expression" to conditionally show/hide this column (and it's header) in my report. When the column is hidden, the space it would have occupied is left blank, which is not particularly attractive.  I would prefer if the extra space was used in a more effective manner, possibilities include:   the width of the report is reduced by the width of the hidden column the extra space is distributed among the remaining columns   In theory, I could achieve the first by setting the width of the column (and header) to 0, but also indicate that the column should resize to fit its contents. But JasperReports does not provide a "resize width to fit contents" option.  Another possibility is to generate reports using the Jasper API instead of defining the report template in XML. But that seems like a lot of effort for such a simple requirement.


I've been trying to find a way to change the name of a windows user on my windows 10 computer. I want to do this because it cut off the last letter of my name. Just say my name is "George", it named the user as "georg". How can I change the name of the user without making a new local user?

I got a Windows 10 machine at work which was used by UserA who is not working any more with us.  To avoid having to go through setups, installations, etc, I want to rename the existing account to UserB so I don't lose any settings and can continue using them but as UserB.  How do I do that properly?


i have 2 queries in same page, one display arabic text properly, but other one not, it display like Ø³ÙŠØ¯Ø© Ø³Ø§Ø¦Ù‚      <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>   this line is included, it works in local host, but not in server

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


How do I prove the above claim, or find a counterexample? Any hints are greatly appreciated

Give either a justification or a counterexample for each of the following statements about real series. $\quad(a)$ If $ka_k\to0$ as $k\to\infty$, then $\sum a_k$ converges. $\quad(b)$ If $\lim\limits_{k\to\infty}\frac{a_{k+1}}{a_k}$ exists and equals $L>1$, then $\sum a_k$ diverges. $\quad(c)$ If $\sum a_k$ converges and $\lim\limits_{k\to\infty}\frac{a_k}{b_k}=1$, then $\sum b_k$ converges.  I think all propositions are false.  But struggling to find counterexamples.  Is there some sort of systematic way of constructing counterexamples for these sorts of series?  Can someone explain their thinking process in giving counter examples for the above?


I am always confused about whether to add "the" or not. Need your help on distinguishing the following sentences. Thanks a lot in advance! a. Variables listed below are selected from the 2018 wave and then checked in the previous waves. b. The variables listed below are selected from the 2018 wave and then checked in the previous waves. Which one is correct? And why? Note: I created a table, so I am referring to all the variables in that table. Also, another sentence needs rephrasing: c. What is the total value of all the financial products your family holds? d. What is the total value of all financial products your family holds? Which one is correct? And why? Note: Here, I am translating a questionnaire, so the question does not have a specific context. Moreover, how to choose between:  all the variables in that table all variables in that table variables in that table the variables in that table  Which of them (1,2,3,4) are interchangeable? And for the phases not interchangeable, what is the difference between them?

I came across people using all the in sentences instead of all.     Select the type of user to view all the users of that type. All the   users of the selected role are displayed.   I usually strike out the after all. Is there any justification that I can give my team on why the seems out of place in the above example? Are there any rules of grammar for or against using the article after all?


I read on Wiki that according to Heegner,  $\mathbb{Z}[\sqrt{-7}]$ is a UFD. But I read in a book that $2$ is an irreducible but not a prime in $\mathbb{Z}[\sqrt{-7}]$ . Doesn't that mean it's not a UFD ? So what is wrong here ?

Is $\mathbb{Z}[\sqrt{-7}]$ a UFD or not? I feel like there should be some easy example showing that it is not, but I can not think of one.


I wanna make an intermitted line to illustrate the long length of a line. something like this:    I'm using circuitikz this is the code so far there is a problem here that it is not inside the box.  \documentclass[10pt, a4paper, twoside, titlepage, openbib]{article}      \usepackage{tikz}         %Tikz is een library die toestaat om tekeningen te maken         \usetikzlibrary{shapes}             %Shapes         \usetikzlibrary{arrows}             %Arrows         \usetikzlibrary{calc}             %Calculation         \usetikzlibrary{decorations}             %Decorations         \usetikzlibrary{backgrounds}             %Backgrounds         \usetikzlibrary{fit}             %         \usetikzlibrary{positioning}             %         \usetikzlibrary{chains}             %     \usepackage[europeanresistors,americaninductors]{circuitikz}     \usepackage{tcolorbox}         %http://mirror.unl.edu/ctan/macros/latex/contrib/tcolorbox/tcolorbox.pdf         \tcbuselibrary{listings}         \tcbuselibrary{theorems}  \begin{document}  %---Image--------------------------------------------------------------------------------------------    \begin{figure*}[ht!] %het blokschema     \centering     \begin{tcolorbox}[colback=white]     \centering     \begin{tikzpicture}[node distance = 0.2cm, auto]         \begin{circuitikz}             \draw                 (1,3) node[spdt,xscale=1, yscale=1,anchor=in] (myspdt1) {}                 (4,3) node[spdt,xscale=-1,yscale=1,anchor=in] (myspdt2) {}                 (8,0)   node[ground, yscale=1]{}                         to[full led]        (8,3)                         to(myspdt2.in)                 (0,0)   node[ground]{}                         to[vsourcesin]      (0,3)                         to(myspdt1.in)                 (0,2) node[right]{$V_{s}(t)$}                 (myspdt1.out 1) -- (myspdt2.out 1)                 (myspdt1.out 2) -- (myspdt2.out 2);         \end{circuitikz}     \end{tikzpicture}     \end{tcolorbox}            \caption{Het eerste probleem}          \label{fig:Het eerste probleem}  \end{figure*} %---Image--------------------------------------------------------------------------------------------  \end{document}

I want a tikzpicture inside a tcolorbox. But for some reason it floats outside the box. How can I center the image correctly?    \documentclass[10pt, a4paper, twoside, titlepage, openbib]{article}      \usepackage{tikz}         %Tikz is een library die toestaat om tekeningen te maken         \usetikzlibrary{shapes}             %Shapes         \usetikzlibrary{arrows}             %Arrows         \usetikzlibrary{calc}             %Calculation         \usetikzlibrary{decorations}             %Decorations         \usetikzlibrary{backgrounds}             %Backgrounds         \usetikzlibrary{fit}             %         \usetikzlibrary{positioning}             %         \usetikzlibrary{chains}             %     \usepackage[europeanresistors,americaninductors]{circuitikz}     \usepackage{tcolorbox}         %http://mirror.unl.edu/ctan/macros/latex/contrib/tcolorbox/tcolorbox.pdf         \tcbuselibrary{listings}         \tcbuselibrary{theorems}  \begin{document}  %---Image--------------------------------------------------------------------------------------------    \begin{figure*}[ht!] %het blokschema     \centering     \begin{tcolorbox}[colback=white]     \begin{tikzpicture}[node distance = 0.2cm, auto]         \begin{circuitikz}             \draw                 (8.5,-1.) node[draw,minimum width=2cm,minimum height=2.4cm] (load) {Load}                     ($(load.west)!0.75!(load.north west)$) coordinate (la)                     ($(load.west)!0.75!(load.south west)$) coordinate (lb)                 (1,3) node[spdt,xscale=1, yscale=1,anchor=in] (myspdt1) {}                 (4,3) node[spdt,xscale=-1,yscale=1,anchor=in] (myspdt2) {}                 (5,0)   node[ground, yscale=1]{}                         to[full led]        (5,3)                         to(myspdt2.in)                 (0,0)   node[ground]{}                         to[vsourcesin]      (0,3)                         to(myspdt1.in)                 (0,2) node[right]{$V_{s}(t)$}                 (myspdt1.out 1) -- (myspdt2.out 1)                 (myspdt1.out 2) -- (myspdt2.out 2);         \end{circuitikz}     \end{tikzpicture}     \end{tcolorbox}            \caption{Het eerste probleem}          \label{fig:Het eerste probleem}  \end{figure*} %---Image--------------------------------------------------------------------------------------------  \end{document}


In the black I evaluated the integral and I got 64/3, now I need to evaluate the same integral with $\color{red}{dydx}$ .in the $\color{blue}{\text{blue}}$ color is my attempt, I don't think that my attempt is correct.     Can someone please tell me what is my mistake in my attempt (in the blue color)?    $$\int_{-2}^{2}\int_{y^2-3}^{5-y^2}dxdy=\frac{64}{3}$$  $$\color{blue}{\int_{-3}^{1}\int_{-\sqrt{x-3}}^{\sqrt{x-3}}dydx+\int_{1}^{5}\int_{-\sqrt{x-5}}^{\sqrt{x-5} }dydx}$$

I evaluated this integarl:     $$\int_{-2}^2\int_{y^2-3}^{5-y^2}dxdy=\boxed{\frac{64}{3}}$$   Now I need to evaluate it with changing the limits,  My attempt:  $$=\int_{-3}^1 \bigg[\int_0^{\sqrt{x+3}}dy\bigg]dx+\int_{1}^5 \bigg[\int_0^{\sqrt{5-x}}dy\bigg]dx$$  $$\int_{-3}^1 \sqrt{x+3}dx+\int_{1}^5 \sqrt{5-x}dx=\boxed{\color{red}{\frac{32}{3}}}$$     Where am I wrong?