After drag & dropping by accident a .xpm file on the top bar, the right-hand side is now totally missing (see attached example of missing pieces) :(  How can I get this back, please? Update: It seems I am using gnome (flashback) Metacity (and no I don't want to switch to Unity just in case somebody's asking :) Update2: Running dconf reset -f /org/gnome/gnome-panel/ solved my problem!

I think my gnome-panel is messed up because I alt+right click it and nothing pops up.  I'm on 12.04, classic gnome desktop.  so I used locate and found gnome-panel in .gconf somewhere, how do I clear just gnome-panel's settings so that I can add things to my panel again?   edit:  matt: ~/.gconf $ find|grep -iw panel ./desktop/ibus/panel ./desktop/ibus/panel/%gconf.xml ./apps/gnome-settings/gnome-panel ./apps/gnome-settings/gnome-panel/%gconf.xml


Currently, when viewing an edit where MathJax is edited, the rendered output side-by-side diff breaks the MathJax rendering. This is particularly annoying when reviewing edits, as the actual result after editing is unavailable.  Of course, it would be best to change the diff view to not break edited MathJax, but a perhaps easier improvement would be to simply show the rendered output without the diff, as then the MathJax will be rendered correctly (if the edit placed the MathJax delimiters correctly. In fact, this is one of the hardest things to check right now!)  This is a pretty old issue and my suggestions are nothing new:        But this might be a simple improvement that would make (community) moderating easier.

In a suggested edit I just reviewed, about a third of the MathJax renders properly, but the rest doesn't. Note that the delimiters on puzzling are \$, so that doesn't escape it.    Related:  Don't render MathJax when viewing source:   Render MathJax when viewing rendered output:


Prove that in $2m + 3$ distinct integers picked from $4m + 3$ integers between $-(2m + 1)$ and $2m + 1$, there'll always be three distinct integers $x$, $y$ and $z$ such that $x + y + z = 0$ ($m \in \mathbb Z^+$).   This problem is adapted from a recent competition. Because of obvious reasons, I decided to alter the problem a little bit. It is certainly not avoided that mistakes will happen. I apologise for that.  Assume that $x < y < z$ and $y = 0$, this case can easily be solved.  But I can't solve the case where $x < y < 0 < z$ or $x < 0 < y < z$. The problem then becomes     $a$ and $m$ are integers such that $0 \ne |a| \le |2m + 1|$. Prove that there'll always two distinct integers $p$ and $q$ such that $-1 < \dfrac{p}{a}, \dfrac{q}{a} \le 0$ and $p + q = -a$.

Prove that for any set of $2n+3$ integers from the interval $[-2n-1,2n+1]$ there is a triple $(x,y,z)$ such that $x+y+z=0$.    Example  : Choose $5$ number from $\{-3,-2,-1,0,1,2,3\}$ there are $x,y,z$ with $x+y+z=0$.


Simple question, really...   Builtin?  What happens when you run: builtin?  The return type from echo $? is 0.  Which means that the command has most likely run successfully.   So, what does running builtin accomplish?

man echo works. but out of curiosity, does echo have something similar to a --help flag/parameter?


How I can rotate unwrap, exactly, for example some menu or box to enter for example 90 degrees ?. This is possible?.  Sorry for my English I hope you can understand me.  I leave a picture hope it will help me understand.    Blender version : 2.72

I keep running into a problem: How can I rotate an UV island by exactly 90 or 180 degrees? The same applies for scaling it to double in size, etc.


What happens when plane exceeds the speed of sound? and What is the interpretation of the conical shape that appears behind the plane?

Apparently this phenomenon has nothing to do with jets breaking the sound barrier and has something to do with the  as described on Wikipedia. But, the Wikipedia article isn't very detailed and it doesn't explain why the cone arises.  Is there a reason why a "cone", of all the possible shapes, forms around the jets?


I am using Dell inspiron 3558, after opening the laptop, when I put password in the login screen the same screen appears after two or three seconds. Please tell me what should I do.

My Ubuntu is stuck in a login loop when trying to enter my desktop. When I login, the screen gets black and soon after that the login screen comes back.   I've read that the problem might be caused by an error depending on the graphics, here's my graphics card: ATI Radeon 7670M


In Linear regression, we have $\textbf{$\theta$} = \textbf{$\left (X^TX\right )^{-1} X^T y$}$.   In Ridge regression, we have $\textbf{$\theta$} = \textbf{$\left ( \lambda I+ X^TX\right )^{-1} X^T y$}$.  I learnt somewhere that while $\textbf{$X^TX$}$ is not guaranteed to be invertible, $\textbf{$\lambda I + X^TX$}$ is guaranteed to be invertible.  Is this true? If so, why?

How to prove a general matrix invertible given by as below?  How to prove that $A^TA+I$ is always invertible for $\forall A \in \mathbb{R}^{n\times n}$?


When one writes a noun after a dependent clause, should that noun be preceded by an "a" or an "an". "That was an, to be quite clear, extremely clever idea." Or: "That was a, to be quite clear, extremely clever idea."

When a/an precedes a parenthetical aside (sometimes seen in informal/conversational writing), should the vowel rule depend on the first word in parentheses, or the next word in the "regular" flow of the sentence?     I need a (memorable) idiom (preceding an m word; use a)   or     I need an (memorable) idiom (preceding an i word; use an)


I've got Ubuntu 18.4 and windows 10.   I'm trying to share a folder on a second HDD in my Linux machine. I've successfully shared folders and files from my main HDD with no issues but as soon as I try to share anything from my second HDD windows either doesn't detect anything or asks me for the username and password ( which I've followed some tutorials on how to set those in terminal).  I'd like to refrain from using my main HDD for data storage if possible. Tips on what extra steps may be needed to get the second HDD to share would be appreciated.  ****Edit**** I've tried both solutions and both solutions have only worked for a short time. After watching one of my movies the second wouldn't play ( no restart on either PC). I'm not sure what to do as following the steps each time doesn't seem to work a second time. This has become very frustrating...  -Cheers

I wanna transfer some files from this PC with Ubuntu to a PC with Windows 7 I don't care how to do it (ftp, samba or whatever) I wanna know the steps, I searched a lot but I can't find anything that works. Thank you.


I want to enter an image in the Stack Overflow platform. I have an image on my C drive which I want to add in my question. How can I add this image?

Sometimes I need to upload, embed, or display inline an image in a question or answer. How can I do that?


I am trying to clone whole Ubuntu system(server) to another. It can be done via backing up hard disk. But, Can it possible to make iso for making a clone to make bootable usb?

I have Ubuntu 14.04 installed on my laptop. Can I clone the entire system with apps, settings, etc on a USB 3 pendrive, and then boot from that on other computers as a portable Ubuntu installation to take around with me?  I am trying a function that Timeshift has that's called "Clone the current system on another device". I've selected the pendrive as the target device. Timeshift was talking about this being bootable. But is it going to bootable on only this laptop, or on any system? For example, on an Intel Mac, or a Windows computer without the grub bootloader? Is that Timeshift function what I am looking for, or do I have to do something else?  Edit: The Timeshift clone failed to boot on the first system I tested it on. (A Dell Hackintosh that usually boots from USB just fine.)


I am studying Git and Github Here's my procedures  I made a repository called "repoA" to github  Also I made my local folder call "folderB"  Then I connect each other using git clone https://github.com/user/repoA.git    But the result was: folderB/repoA/.git What I actually want: folderB/.git Are there any ways to fix this problem?

Executing the command git clone git@github.com:whatever creates a directory in my current folder named whatever, and drops the contents of the Git repository into that folder:  /httpdocs/whatever/public   My problem is that I need the contents of the Git repository cloned into my current directory so that they appear in the proper location for the web server:  /httpdocs/public   I know how to move the files after I've cloned the repository, but this seems to break Git, and I'd like to be able to update just by calling git pull. How can I do this?


tl;dr:  redirects to an "http:" URL instead of an "https:" URL.  Long version:  First, the stuff that works:   The following URL works over HTTPS: https://stackoverflow.com/questions/24669940/java-8-missing-required-capability-require-capability-osgi-ee-filter-osg/24673359 If I change the protocol to "http:", it also works (over unencrypted HTTP).  This is fine. If I right click and "copy URL" on one of the answers' "share" links, I get an HTTPS URL if I'm on HTTPS and an HTTP URL if I'm on HTTP.  This is fine.   The stuff that seems wrong:   If I click on the "share" link (instead of right-clicking and doing "copy URL") a box pops up that gives me an HTTP URL even if I'm currently browsing over HTTPS.  Not a huge issue, but it's strange. If I follow the HTTPS URL provided by the "share" link (/a/...), I get redirected to the /questions/... URL but the protocol is HTTP instead of HTTPS.  This is the thing that I'm most concerned about.   This occurs with any /q/ or /a/ link.

Here's something I noticed while testing a client-side fix for .  If you follow a permalink / shortcut URL with an https: protocol, like:      you'll get redirected to:      even though, in fact, the https: version of the target URL would work just fine.  This rather frustrates any attempts to fix such links in post text to use HTTPS.  The same happens with other similar shortcuts too.  For example:      redirects to:      However, other non-permalink redirects do retain the correct protocol.  For example:      correctly redirects to:      It seems this is because those redirects are actually using relative URLs in the Location: header, which, while , does seem to work in most modern browsers.  Presumably, the permalink redirects could be changed to work the same way.


I am trying to understand the basics of model theory. Before getting too deeply into it, I would like to know how it is even possible to construct a model, i.e. a structure that satisfies axioms of a given set theory, e.g. ZFC. If I understand correctly, you will need a set theory to construct such a structure. Can a set theory be used to construct a model of itself? Or do you need some kind of meta-set theory to do that?

What exactly serves as the meta theory in the study of set theory (for example in Kunen's text). It seems to involve a certain amount of number theory and a certain concept of what it means to be finite.   Also: We usually use $\bigcup_{\alpha\in{ON}}R_{\alpha}$ as our set theortic universe $V$ (in the sense we believe that all sets we are interested in live there) where $R_{0}=\emptyset$, $R_{\alpha+1}= \mathcal{P}(R_{\alpha})$ and $R_{\alpha}=\bigcup_{\beta<\alpha}R_{\beta}$ when $\alpha$ is a limit ordinal. The study of independence results then seem to be based on relatavizing notions with this $V$ as our set theoretic universe. It seems that it is implicitly assumed that the $\omega$ in $V$ has no non-standard elemements (in the sense that there is no $n>a$ in $\omega$ where $a$ is obtained be repeatedly applying the successor operation to $0$.) Is this true and can it be formalized or is it something that is taken for granted?   e.g. If the above were true then $ZFC\vdash{\neg{Con(\ulcorner{ZFC}\urcorner)}}$ would imply that $ZFC$ is inconsistent since we may look at the $ZFC$ axioms $\phi_{1},...,\phi_{n}\vdash\neg{Con\ulcorner{ZFC}\urcorner}$, then look at a ctm these axioms (which exists by reflection and downward Lowenheim Skolem) and recover the proof of the contradiction.


I am using a key to log in to the machines and I have over 1000 machines to login. The issue is when I use the key to log in it's asking me for ECDSA key fingerprint is SHA256:kfhfhfhfuuisiinnthhthucyFJxjfDJdjdkdmcj. ECDSA key fingerprint is MD5:bg:dd:kk:2l:84:. Are you sure you want to continue connecting (yes/no)?  I was using the -o StrictHostKeyChecking=no option but then it asked for the password. Is there any way I can skip this ECDSA fingerprint and yes/no question and directly login to the machine?

We are attempting to speed up the installation of oracle nodes for RAC installation. this requires that we get ssh installed and configured so that it doesn't prompt for a password.  The problem is: On first usage, we are prompted for  RSA key fingerprint is 96:a9:23:5c:cc:d1:0a:d4:70:22:93:e9:9e:1e:74:2f. Are you sure you want to continue connecting (yes/no)? yes   Is there a way to avoid that or are we doomed to connect at least once on every server from every server manually?


I am using a Compaq Presario C700. Before upgrading from Ubuntu 12.10 everything was fine, but since I switched to Ubuntu 13.04, I can't shutdown my system in any way. The only thing I could do is hold the power button until it shuts down on its own.  I have tried using the terminal to shutdown, but it's no use. When I click on the shutdown button on the title bar, there is no option for shutdown. The only thing I could see is Lock Screen and Log Out. What should I do?

I have looked all over the Internet trying to find a fix, but I can't seem to find one. I have a custom built PC running an AMD processor, Nvidia graphics, 16GB of ram and a 1TB HDD for Ubuntu. I am not trying to dual boot, I just have Ubuntu 13.04 on the hard drive nothing else.  Every time I press 'Shutdown' or 'Restart', it goes through its normal shutting down thing; but, after that, there is just a black screen and nothing more. Nothing happens, it's just black. The only way for me to turn off Ubuntu at the moment is to press shutdown, wait for the screen to go dark, and then force shutdown it by pressing the physical shutdown button on the PC.  Could someone please tell me what is wrong and how I can get Ubuntu to work correctly? (Never had this problem when I was dual booting on my old HDD.)  P.S. I am able to log out.  After running Sudo shutdown it gave me an error this is the error:  'Modem-manger[5062]: Could not get the system bus. Make sure the message bus daemon is running! Message: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory modem-manger[5078]:  ModeUbuntu 13.04rsion 0.6.0.0) starting... modem-manger[5078]: Could not get. . . . m bus. Make sure the message [FAIL] e   * Will now switch to single-user modenect to socket /var/run/dbus/system_bus_so root@mauritz-ubuntu:~# irectory'  And then just a ton of OK checking's, To me it seems like much of the text that it is displaying is overlapping on other text, so thats why it seems really weird.  Second error (running sudo shutdown as root): "sudo shutdown now *Disabling power management... [OK] Saned disabled; edit /etc/default/saned Speech-dispatcher disabled; edit /etc/default/speech-dispatcher  * Asking all remaining processes to terminate... [OK]  * Killing all remaining processes... [FAIL]  * Will now switch to singel-user mode"


I am following the instructions here to upgrade Ubuntu from 17.10 to 18.04. But when I run update-manager -d I get errors:     No protocol specified Unable to init server: Could not connect:   Connection refused No protocol specified Unable to init server: Could   not connect: Connection refused No protocol specified Unable to init   server: Could not connect: Connection refused      (update-manager:7789): Gtk-WARNING **: cannot open display: :0

I installed Ubuntu 17.10. Now I am having trouble with gksu:  $ gksu -dg synaptic No ask_pass set, using default! xauth: /tmp/libgksu-HgUjgQ/.Xauthority STARTUP_ID: gksu/synaptic/8760-0-alex-XPS-15-9530_TIME4974977 cmd[0]: /usr/bin/sudo cmd[1]: -H cmd[2]: -S cmd[3]: -p cmd[4]: GNOME_SUDO_PASS cmd[5]: -u cmd[6]: root cmd[7]: -- cmd[8]: synaptic buffer: -GNOME_SUDO_PASS- brute force GNOME_SUDO_PASS ended... Yeah, we're in... Unable to init server: Could not connect: Connection refused (synaptic:8767): Gtk-WARNING **: cannot open display: :1 xauth: /tmp/libgksu-HgUjgQ/.Xauthority xauth_env: (null) dir: /tmp/libgksu-HgUjgQ   If I don't use -g, the password dialog is disabled. So looks like a problem with creating a tty for root.  Any advice?


like the title says, i want to see if its even possible to create a hyperlink with a pre-defined string of a url but the page be whatever the text in the sell is. example:  say the A1 cell has TEST TEXT i would like to say, google it. create a hyperlink like it is below but the text of A1 be replaced in the A1 part of the url...  -to-  TEXT  im not familiar with excel so please be kind lol

After years of not wanting Word and Excel to automatically turn things into hyperlinks, the one time I want them to they refuse.  I have a list of strings in Excel which I am concatenating with a string to create a URL, I would like the resulting URL to be a clickable hyperlink but Excel won't play ball. Is this possible?


I've got a brand new laptop with a 128GB SSD drive. I read that aligning the partitions to match the Erase Block Size of the SSD is important. I followed William Scott's guide  and my partitions ended up being:  $ sudo fdisk -lu /dev/sda  Disk /dev/sda: 128.0 GB, 128035676100 bytes 32 heads, 32 sectors/track, 244208 cylinders, total 250069680 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00037bd2     Device Boot       Start        End     Blocks   Id  System /dev/sda1   *         1024     206847     102912   83  Linux /dev/sda2           206848   16985087    8389120   82  Linux swap / Solaris /dev/sda3         16985088  250068991  116541952   83  Linux   Then I installed Ubuntu Natty and specified the partitions manually so that /dev/sda1 became the /boot partition formatted with ext2, /dev/sda2 the swap and /dev/sda3 the / formatted with ext4. After the installation the thing didn't boot, and I ended up in the grub-rescue console which doesn't make any sense to me. It's giving me:  error: invalid arch independent ELF magic. grub rescue>   Have I done some mistakes during my installation? How do I solve the issue with grub-recovery?

I am stuck with a rather irritating problem I ran into after installing 11.10 on my macbook pro 5,5.  I did a clean install efi booting into the setup using the desktop cd. Upon the first reboot I was presented with the "invalid arch independent ELF magic" and grubs rescue console.  I have read  but the solution is no solution for me since installing grub via live cd only means installing the mbr version and I can't seem to find any manual on how to install grub-efi while booted into the live cd.  So my question is: How can I either edit the grubx64.efi file in my EFI Partition, reinstall grub-efi with a live CD / DVD or use grub rescue commands to fix this issue?


Is there a word or an expression to denote such a person?

I have to describe someone with a quality that he can read the story behind the numbers or data given to him. I didn't want to use Analyst. let me know if there is another word for it


The mobile aware functionality of Stack Exchange has steadily improved over the years and it’s mainly a joy to use. However, when my fat thumbs stumble onto the main HNQ landing page (stackexchange.com), I’m presented with the desktop version of the site which forces me to squint and pinch my way through the navigation path to find something useable on my phone. Is there a plan to make HNQ more mobile-friendly (or at least easier to get out of)?

If you hear about Stack Exchange from a random person, and you’re thinking     Oh I want to go check out this nifty site kids these days like   you probably will open up your phone’s browser and look up stack exchange. However, the top link is, logically, to . No problem here, right?  Wrong. On my iPhone 7, this is what it looks like:    This is the first page a user will see if they look up Stack Exchange. While it’s a different question how well the homepage works on desktop, it’s a very bad first impression on mobile, especially compared to the lovely responsive design seen on the most frequently viewed pages.  This page is desperately asking for a responsive design, or at least a mobile version.


I'm using Blender 2.79. I've looked at a number of possible answers on this, but none seem to help solve the problem. I'm getting these weird black specs in renders when using blender render. I've checked for Z-fighting or duplicate geometry but there is none. These are extremely simple, low poly models that have been duplicated and only use one basic color as it's material. There are only two unique models here, and the rest are just simple rotated duplicates of each-other.    I have been able to get the issue be less noticeable by changing world -> gather: from raytrace to approximate. However I would like to know what's going on so that I can keep the setting on raytrace. As you can see below the same two trees have an odd speckled look to it, which doesn't make sense because there is just a basic color as it's material/texture. This does not show up using cycles render. (Again, I do want to use blender render, so looking for a fix)

I was following  on creating a watch and noticed that when I rendered the watch, some pieces were messed up.  I'm new to 3D modeling and I've just learned Blender, I can't explain it well, so here's a picture:    Other examples:     I don't know if it's a problem with my World texture, the object, or the object's texture/material, so I can't even guess how to fix it. What causes this? Is it possible to fix it?


In later versions of C#, there is the concept of , such as this:  static int CalculateBMI(int weight, int height) {     return (weight * 703) / (height * height); } . . . var a = CalculateBMI(weight:100, height:60);   Does such a concept exist in C++, and if so, how is it used?  Researched thus far: Kernighan & Ritche, "C Programming Language" 2nd ed (okay, I know it's C, but still a good starting point)   SO search

I've looked at both the  and the . What advantages does each one have over the other? Is there a good reason to always choose one over the other, or might each of them be better than the other in some situations (and if so, what situations)?


After filling out my online form I had to change the date of my travel to UK, what can I do?

I have successfully applied and made payment for UK visa around 26th February. Intended date of travel I wrote on the form was 4th April which I wanted to change to mid-May but just could not because once the form is committed one can't change it. To no avail I also tried contacted the visa office and the British High Commission. Now my appointment date is 8th April, can I make a requisition for changing the date as I will not be able to travel before mid may and I would not want to risk if they issue me a visa for three months from my intended date of travel then I may not be able to make proper use of my visa and travel at all..


Sorry if this has been asked before and has some ranting in it, but I'm beginning to feel fed off by robo-approvers.   This week happened at least ten times to me: I carefully reviewed an edit on a long or contrived post and then decided to reject the edit for various reasons (usually "too minor" or "invalid edit"). When I clicked on the "reject" button the dreaded red box appeared, telling me that the edit had already been approved! The annoying thing is that, while we may have different thresholds for what is "too minor", blatantly invalid edits passing reviews are really a bad thing (did you ever see an edit with a "fixed gramar" comment and lots of unresolved spelling and grammar errors – even in the edited parts – being approved!?!).  The problem for SO is evident, but the problem for me as a reviewer is that I wasted at least 5 minutes on a review checking for wrong changes, missed editing opportunities (i.e. the editor didn't correct all spelling mistakes, etc.) coherence in overall formatting, etc. Multiply by ten and this week I wasted almost an hour for absolutely nothing, so I find it ever less rewarding to do exhaustive, high quality, reviews.   Moreover this is slowly turning me into a robo-rejecter: if I spot even the slightest hint of a problem in an edit, I feel the urge to click on reject for fear that some robo-approver enters into play. And this, again, is bad for SO because I risk of rejecting an edit which could have been good if examined in detail, or could have been easily improved. Net result: me doing a bad thing and the editor wasting his effort – quality editing loses, robo-approvers and lousy editors win!  The easy solution for my personal case is clear: stop doing reviews and let the robo-approvers lead the field. Of course the problem is for SO overall quality: robo-approved edits means more user gaining rep by only doing bad edits, and these users will probably become robo-approvers as well when they gain the privilege: even if in good faith, they never learned how to judge whether an edit is good, so they will likely be approving the same things they were allowed to do in their past.   I think some sort of short-term locking should be implemented. For example remove from the review queue a post that's being reviewed. If the reviewer doesn't make a call in reasonable time (10 minutes?), put the post on the queue again. Of course this would slow down the reviewing process, but this doesn't appear to be a problem, except for the close vote queue. Another mechanism could be to disable all buttons (except "skip") – or only the "approve" button – until some time has passed, and the time should be proportional to both the post length and the amount of changes (how can we trust a reviewer pressing "approve" after only a couple of seconds when he is faced with a 100 line post which has been heavily edited?!?).  Mine is not a clear-cut proposal, so I didn't tag it as a feature request. Devs or long term users know better what mechanisms could/should be implemented.   My point is that if there are many reviewers sharing my feeling on this, then some mechanism should be implemented!

A worryingly high number of bad suggested edits get accepted. For example:             (These are just examples of a few common patterns. The  exists too.)  What can we do to educate reviewers to do a better job?  This is an open question, not a feature request, because I don't have a good answer. Some possibilities:   Provide a way to notify the reviewers (“hey, check that proposed tag wikis aren't plagiarised”). Make the workflow for approval as long as the workflow for rejection, so that people don't blindly approve just because it's less work. (I don't know if some reviewers tend to do that.)


He was there.   In this sentence is ' there ' an adverb?  I get very confused when I have to identify parts of speech.  Any help would be appreciated.

What part of speech does here have in the following sentence?     I am here.   I say that in that sentence, here must be an adverb because:    It modifies the verb am by describing where I am. Am is a “being” verb in this instance, not a “linking” verb.   My friend contends that here is a noun because the word here is, in this instance, defined as this place, which in Merriam-Webster is the definition for the noun here.


I have my main Activity in which I have a few Buttons. One of them is supposed to open the Camera. To make it cleaner I am using View.onClick(), so I will just have the Button on the main Activity and the rest will be managed by another other class (Camactivity).  In my main Activity :    Button btnrep = (Button)findViewById(R.id.button3);   btnrep.setOnClickListener(new Camactivity(this));   and in my   public class Camactivity extends Activity implements View.OnClickListener      private File imageFile;     private Context appContext;      public MainActivity_1(Context context)     {         appContext = context;     }       @Override     public void onClick(View view) {                  Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);//use intent and pass in mediastore                 //mediastore is a databases where image and video are stores and link                  imageFile = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES), "BreedingGround.bmp");         /*link to a directory - pass in directory where you want to save the pictures and names of the file*/                   Uri tempuri = Uri.fromFile(imageFile);//Convert imageFile to a Uri                 intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, tempuri);//location where u want the image file to be save after taking photo                 intent.putExtra(android.provider.MediaStore.EXTRA_VIDEO_QUALITY, 1);//quality of out image, 1 means high quality image                   startActivityForResult(intent, 0);//Request code 0 to identify who send the request      }   However I am getting a null pointer error at startActivityForResult(intent, 0);   FATAL EXCEPTION: main Process: com.example.mohit.softeng, PID: 22075   java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.pm.PackageManager android.content.Context.getPackageManager()' on a null object reference       at android.content.ContextWrapper.getPackageManager(ContextWrapper.java:97)       at com.example.mohit.softeng.MainActivity_1.onClick(MainActivity_1.java:60)       at android.view.View.performClick(View.java:5697)       at android.widget.TextView.performClick(TextView.java:10826)       at android.view.View$PerformClick.run(View.java:22526)       at android.os.Handler.handleCallback(Handler.java:739)       at android.os.Handler.dispatchMessage(Handler.java:95)       at android.os.Looper.loop(Looper.java:158)       at android.app.ActivityThread.main(ActivityThread.java:7225)       at java.lang.reflect.Method.invoke(Native Method)       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

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?


I need to calculate no of possible substrings containing "00" as a substring. I know the length of the binary string.  Eg: for a string of length 4, possible substrings are: 0000 0001 0010 0011 0100 1000 1001 1100  I just need the number of possible combinations, not enumerate all of them.

This is an unsolved question in my textbook (so full answers are ok too). We are asked to count the number of binary numbers of length 15, beginning with '1', that have a total of ten 1s, five 0s, and two consecutive zeros.  My thoughts are, we can begin by ordering the 10 1s: $1 1 1 1 1 1 1 1 1 1$. The answer is the number of ways to put the 0s between them, which is like the number of integer solutions to $x_1+x_2+...+x_{10}=5$ with at least one $x_i>=2$. However, I don't know how to count that...  Thanks for your help.


I am developing a new web application and was wondering if I should have people pick their usernames and login with their usernames or should I have them login via their email addresses.  Which option provides a better user experience and why?

What is the best solution for an app : Email or username field?  I like email because:   it's unique user will easily remember it's personal (which can be a disadvantage sometimes; Multiple users on the same account)   Unfortunately we usually have to type more letters to login (write the name + @domain.com)


I want to repeat a node multiple times, but displaced each time, something like:  However, in my case, the top node is a fitted node, that contains some other nodes. I do not know the size of the fitted node. So I dont know how big to make the nodes underneath. The nodes underneath should be blank, nothing drawn in them (unlike my example above). How can I create nodes that are the exact same size as the top fitted node? By the way, the code to produce the pictured example was: \begin{tikzpicture} \foreach \i in {1,2,3} {   \pgfmathsetmacro\exx{\i * 0.2};   \pgfmathsetmacro\exy{\i * 0.2};   \node [block, xshift=\exx cm, yshift=\exy cm] (inner_example) {This is some text}; } \end{tikzpicture}  (but in my actual case, I don't want to just repeat the drawing in each of the lower nodes, since it is a complicated picture, and seems wasteful to do so.)

In a software diagram, I'd like to be able to represent multiple instances of an object by two rectangles with one of them slightly shifted. I recently learned about the pic style so I'm using it with two nodes to achieve what I want.  The following example does work, but I'd like to know if I can do the same without using the fill=white. My hack kind of assumes the entire picture background is white and that may not always hold. I'd like to be able to crop the unwanted picture part out.  \documentclass[crop,border=3pt]{standalone}  \usepackage{pgf,tikz} \usetikzlibrary{positioning}  \begin{document} \begin{tikzpicture}[     every node/.style={font=\sffamily\small},     block/.style={         rectangle, draw, align=center, minimum width=2cm,         minimum height=1.4cm, font=\sffamily\small     },     multinode/.pic={         \node [block] at (0.1,0.1) {};         \node [block, \tikzpictextoptions, fill=white] at (0,0) {\tikzpictext};% <-- FILL WHITE     } ]     \node [block] (STG) at (2,5) {single\\instance};     \pic [pic text={multi\\instance}] at (5,5) {multinode}; \end{tikzpicture} \end{document}   The following images show first one version with the fill white hack, and then one version without it.


I would like to create a user that only has access to one folder and nothing else whatsoever.  I have already created a user but he has access to other parts of the system according to corresponding file settings. I don't want him to have that, I want him only to have access to one folder and nothing else. Everything else should preferably be just invisible to him.  Is it possible to create such a user,and if so, how do I go about doing that?  p.s. Removing 'other' privileges of other users home directory goes a bit of the way towards this end. But this limited user still has access to all the base directories like /etc and such. And he can still see other users home directory, even though he cant access them.

Is there a simple way to restrict an SCP/SFTP user to a directory? All methods that I've come across require me to set a chroot jail up by copying binaries, but I don't think that should be necessary.


So I had some issues with my microphone not working for some time, and I tried something , and now i can;t hear anything either. There is no sound bar at the top right of the screen. when i try to do "alsamixer" in the terminal it tells me "cannot open mixer: No such file or directory". it did that before all sound broke too though.

After a bit of messing around including doing this:  sudo add-apt-repository ppa:ubuntu-audio-dev/ppa; sudo apt-get update;sudo apt-get dist-upgrade  sudo apt-get install pavucontrol linux-sound-base alsa-base alsa-utils gdm ubuntu-desktop linux-image-`uname -r` libasound2   sudo apt-get -y --reinstall install linux-sound-base alsa-base alsa-utils gdm ubuntu-desktop linux-image-  uname -r   libasound2; killall pulseaudio; rm -r ~/.pulse*; sudo usermod -aG   cat /etc/group | grep -e '^pulse:' -e '^audio:' -e '^pulse-access:' -e '^pulse-rt:' -e '^video:' | awk -F: '{print $1}' | tr '\n' ',' | sed 's:,$::g'  whoami   no sound works anymore. The sound controller that is normally in the top right of the screen is now also gone.


Laptop Model: Dell Inspiron 15 5000 Series  My laptop boots to a black screen every time after I install it; other desktops install AOK from the same LiveUSB of Ubuntu 18.04.3. Error message as follows:  [  0.162116  ] mce: [Hardware Error]: CPU 0: Machine Check: 0 Bank 6: ee20000000 [  0.162119  ] mce: [Hardware Error]: TSC 0 ADDR fef1ce80 MISC 43880014086 [  0.162123  ] mce: [Hardware Error]: PROCESSOR 0:806e9 TIME 1568714001 SOCKET 0 [  0.162126  ] mce: [Hardware Error]: CPU 0: Machine Check: 0 Bank 7: ee20000000 [  0.162128  ] mce: [Hardware Error]: TSC 0 ADDR fef1ce40 MISC 7880014086 [  0.162131  ] mce: [Hardware Error]: PROCESSOR 0:806e9 TIME 1568714001 SOCKET 0 APIC 0 microcode b4 [  8.034500  ] tpm_crb MSFT0101:00: [Firmware Bug]: ACPI region does not cover the entire command/response buffer. [mem 0xfed4000-0xfed4087f flags 0x200] vs fed40080 f80 [  8.034593  ] tpm_crb MSFT0101:00: [Firmware Bug]: ACPI region does not cover the entire commend/response buffer. [mem 0xfed4000-0xfed4087f flags 0x200] vs fed40080 f80 [  8.082407  ] Couldn't get size: 0x800000000000000e

I can't boot Ubuntu 17.10  [    7.872529] tmp_crb MFST0101:00: [Firmware Bug]: ACPI region does not cover the entire command/response buffer. [mem 0xfed40000-0xfed4087f flags 0x200] vs fed40080 f80   There are two lines like that.  What should I do?


I have the interpretation simplistically that you can make this by taking two pictures of high dynamic range picture and low dynamic range picture, and then merging. This way the HDR-picture should be invertible to the original picture.  I am interested in how these two pictures are or can be manipulated before the merge. I have an intuition that there are some linear filters. I want no tonemapping, since it is highly non-linear.  What can these filters be?

I want to return my original picture from an HDR-picture which I made with Adobe Photoshop CS6. Does an inverse function exist to do this?  The HDR technique takes two pictures where there is more light in one picture and then makes one picture from these two, I think.  Is there any way to return the exact original picture from the HDR picture?  If so, I am interested in the mathematical characteristics of this technique.


I'm recently learning about differentiation and I have no idea why its important. All I know is that has something to do with rate of change and acceleration over time? I understand how but I'm really struggling to understand why we do it, it doesn't make sense! Can someone give a real life example of how and why differentiation is important

Can any one explain me what is the use of derivatives in real life. When and where we use derivative, i know it can be used to find rate of change but why?. My logic was in  real life most of the things we do are not linear functions and derivatives helps to make a real life functions into linear.  eg converting parabola into a linear function $x^{2}\rightarrow 2x$  but then i find this; derivation of $\sin{x}\rightarrow \cos{x}$  why we cant use $\sin{x}$ itself to solve the equation. whats the purpose of using its derivative $\cos{x}$. Please forgive me if i have asked a stupid questions, i want to improve my fundamentals in calculus.


There are vector logos for five of the sites: .  I was wondering if there were also vector logos for the other sites that are available for download? (I am looking, in particular, for Mathematics, but ideally I'd like them all!)  Edit: Thanks to IBUG's answer, I've gotten a few of them and can share these few logos in SVG and PDF format - .  Unfortunately I don't know any programming and this takes me a bit of work. Hopefully someone else who knows better can easily get them all and share all of them with everybody.

I'm looking for an imprint/logo/whatever to use in order to link to online profiles in a site I'm working on.  I noticed that  has a  with a white background while the   doesn't.  Would it be too much to ask to have a page devoted to imprints (in various forms, PNG, vector, etc) or at least strip the background off of the others?


my code keeps skipping the if statement for a dice toss game. I think it has to do with the conditions  unsure as to how I should put the words in the parenthesis by the if statement.   I need it to tell me if it matches the guess of high/low      System.out.println("How many points would you like to wager?");      Scanner keyboard = new Scanner(System.in);     int userWager = keyboard.nextInt();      while (userWager > totalPoints){         System.out.println("You have wagered " + userWager + " points, but only have " + totalPoints);         System.out.println("Please try another amount.");         userWager = keyboard.nextInt();     }      System.out.println("Please input LOW if you think it is between 2 and 5 or HIGH for a number between 9 and 12.");     String userGuess = keyboard.nextLine();     userGuess = keyboard.nextLine();      int roll1 = (int) (Math.random() * (6 - 1) + 1);     int roll2 = (int) (Math.random() * (6 - 1) + 1);     int diceRoll = roll1 + roll2;      int pointsEarned = 0;      if (userGuess == "HIGH") {          if ((diceRoll >= 9) && (diceRoll <= 12)) {             pointsEarned = userWager * 2;             System.out.println("The dice equalled " + diceRoll);             System.out.println("Congratulations! You win " + pointsEarned);             totalPoints = calculatePoints(pointsEarned, totalPoints);          } else if ((diceRoll >= 2) && (diceRoll <= 5)) {             pointsEarned = -userWager;             System.out.println("The dice equalled " + diceRoll);             System.out.println("Sorry! You lost " + userWager);             totalPoints = calculatePoints(pointsEarned, totalPoints);         }     } else if(userGuess=="LOW"){          if ((diceRoll>=9) && (diceRoll<=12)){             pointsEarned=userWager*2;             System.out.println("The dice equalled "+diceRoll);             System.out.println("Congratulations! You win "+pointsEarned);             totalPoints = calculatePoints(pointsEarned, totalPoints);         } else if((diceRoll>=2) && (diceRoll<=5)) {             pointsEarned = -userWager;             System.out.println("The dice equalled " + diceRoll);             System.out.println("Sorry! You lost " + userWager);             totalPoints = calculatePoints(pointsEarned, totalPoints);         }     }else{         System.out.println("The dice equalled " + diceRoll);         System.out.println("You did not win or lose any points.");     }

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


I found a lot of problems of bijections like $[0,1) \rightarrow[0, \infty)$. But I don't find ant of these:     $$\text{Is it possible to make a bijection  } [0,1] \rightarrow[0, \infty)? \text{ If yes, find at least one bijection.} $$   Can anyone help?  My work: I found one function: $f(x)=\frac{1}{\left( x-\frac{1}{2} \right) ^2}-4$. What about $f(x)=\frac{1}{\left( x-1 \right) ^2}-1$?

How to define a bijection between $(0,1)$ and $(0,1]$?   Or any other open and closed intervals?   If the intervals are both open like $(-1,2)\text{ and }(-5,4)$ I do a cheap trick (don't know if that's how you're supposed to do it): I make a function $f : (-1, 2)\rightarrow (-5, 4)$ of the form $f(x)=mx+b$ by \begin{align*} -5 = f(-1) &= m(-1)+b \\ 4 = f(2) &= m(2) + b \end{align*} Solving for $m$ and $b$ I find $m=3\text{ and }b=-2$ so then $f(x)=3x-2.$  Then I show that $f$ is a bijection by showing that it is injective and surjective.


I've been flashing ROMs but I don't really see the difference between them. I'm on KitKat 4.4.2 for the Nexus 4.

What is the difference between AOSP and AOKP? Are they related to Stock ROM?


I have put this code in my application, I want the window to hide when control + Q is clicked, why does this not work?          private void Form1_KeyDown(object sender, KeyEventArgs e)     {         if (e.Control && e.KeyCode == Keys.Q)         {             this.Hide();         }     }

I'm looking for a best way to implement common Windows keyboard shortcuts (for example Ctrl+F, Ctrl+N) in my  application in C#.  The application has a main form which hosts many child forms (one at a time). When a user hits Ctrl+F, I'd like to show a custom search form. The search form would depend on the current open child form in the application.  I was thinking of using something like this in the ChildForm_KeyDown event:     if (e.KeyCode == Keys.F && Control.ModifierKeys == Keys.Control)         // Show search form   But this doesn't work. The event doesn't even fire when you press a key. What is the solution?


I have some html  and want to scrape some data from it.  The HTML is structured in the following way
Text

       label	       data

       label	       data

       label	       data

Text

       label	       data

       label	       data

       label	       data

Text
   I need to be able to scrape the Text value located in the span where class="someOtherClass" (I've already implemented this portion)  I then need to be able to scrape the table directly below the div. Since the "parent" div doesn't actually contain the table, I'm having some issues implementing this.

I'm looking for a library/method to parse an html file with more html specific features than generic xml parsing libraries.


Yesterday I received an email from Salesforce that . In the required actions, the article said:        If you don’t have an existing self-managed certificate, create one.    Update the API Client Certificate with your new certificate.      So, I created a 'Self-Signed Certificate' and updated it as the 'API Client Certificate'. Is that all needed? Has anyone else done this? I'm assuming the 'Self-Signed Certificate' is qualified as the Self-Managed certificate. Our org doesn't have Single Sign-On or Outbound Messages. It uses Ajax Proxy, getContent() and getContentAsPDF().

I just received an email informing that the default Salesforce client certificate (proxy.salesforce.com) will retire on August 7, 2017 at 09:30 a.m. PDT (16:30 UTC).  They say customers using the following features may be impacted:   Single Sign-On using Service Provider (SP)-Initiated SAML Delegated authentication Workflow automated messaging AJAX proxy PageReference.getContent() Apex call PageReference.getContentAsPDF() Apex call   As an administrator and developer who has an app that uses getContentAsPDF calling a page within the organization (getting the pdf of a visualforce rendered as PDF), should I be concerned about the highlighted feature?


Can we supply 2A DC current at 5V in the pair of ethernet CAT 5e cable?

Having a bit of trouble finding the right information on google, and I'm worried I might fry some cables so I thought it best to ask some far more knowledgable than myself.  I want to connect 2 or more devices, giving them 5V/2A plus networking between them.  I figured to do so with the least amount of cables, Passive POE would be a good choice. The distance isn't far, probably maximum 20ft, as each device will be somewhere in a car, connected in to the boot/trunk area.  I'm looking at splitters and injectors, from what I've read its not as simple as just injecting 5v and it'll work? I have to worry about loss and also heat.  So my questions are, what is the best way to get 5V with max 2A current to the destinations? Do I need to send higher voltage to ensure it doesn't drop below 5, then use a regulator to ensure 5V? If I do that, the power will also be higher therefore more heat, is that ok?  Studying Wikipedia page I've read "Category 5 cable uses 24 AWG conductors, which can safely carry 360 mA at 50 V according to the latest TIA ruling"  50v * 0.36a = 18W, so if I were to send 9v * 2a = 18W. Then I could use a regulator to drop the ~9V(allowing for loss) down to 5V. Does that sound reasonable?  Many thanks


Recently, I migrated a joomla 2.5 site with K2 from a shared host to a dedicated web server with 1 GB of RAM and 8 CPU cores. My problem is now that the website loading is very slow, much slower than on the busy shared server!  Time to first byte is 7 to 10 seconds! But this is only the case for joomla pages. If I put a static page, or even a dynamic page which loads phpinfo for example, it loads in a little fraction of a second.  What I have on the home page is intro of 15 newest articles in the main section plus tag cloud, 15 most read item titles and things like this in modules. I tried to reduce this numbers to just 1 and then the website loads in just 2-3 seconds. It seems the load time increases gradually with number of items being loaded, either in the main section or in the modules. So I guess there is something wrong with MySQL server configuration? I have MySQL 5.5.42 and database type in joomla configuration is mysqli, the same as what I had on the shared hosting.  The mysql server and website are on the same VPS and I am using localhost in joomla configuration. Could anybody advice on this please?

This is a  about capacity planning for web sites. Related:      What are some recommended tools and methods of capacity planning for web sites and web-applications? Please feel free to describe different tools and techniques for different web-servers, frameworks, etc., as well as best-practices that apply to web servers in general.


On Page 11 of Second edition of Concrete Mathematics, it reads as  The induction step has two parts, depending on whether $l$ is even or odd. If $m > 0$ and $2^m + l= 2n$, then $l$ is even and  $J(2^m +l) = 2J(2^{m-1} +l/2)-1 = 2(2l/2+1)-1 = 2l+1$  by (1.8)   Here I didn't get how $2J(2^{m-1} +l/2)-1 $ is reduced to $2(2l/2+1)-1$  Please Help.

I've been going through  and have a question on the inductive proof for the . Recurrent relation:  $J(1) = 1$ $J(2n) = 2J(n) - 1$ $J(2n+1) = 2J(n) + 1$  Closed form hypothesis:  $J(2^m + l) = 2l + 1$, for $m \ge 0$ and $0\le l<2^m$  Inductive Proof (for the even case):  $J(1)=1$ $J(2^m+l)= 2J(2^{m-1}+l/2)-1=2(2l/2+1)-1=2l+1$  How do the authors get from $2J(2^{m-1}+l/2)-1$ to $2(2l/2+1)-1$?


Is there a way to setup the Stack Exchange engine to run on an intranet for a corporation?  The idea being that users can go to the site, submit a question and have it routed appropriately by moderation.  This way non-technical users can go to the site, post up a question. And then IT can route the question to software, customer service, helpdesk, etc. Each division being its own specific site.  If possible, how feasible is it? Does it require a lot of setup/maintenance? Are there fees involved? Can it be re-skinned?

Is the Stack Exchange engine that powers Stack Overflow available to download or install internally for an enterprise or company?  I think Stack Exchange's engine is very great and could be very cool to use for internal enterprise patterns and practices, like the engine of Wikipedia.


Our company´s main owner (telecon group) wants us to deploy anti-DDoS mechanisms, such as Arbor Pravail, which is a great idea.  Although... I have a question... If our main ISP Backbone provider have no anti-DDoS mechanism, means that there is no point we get the Arbor Pravail?  An DDoS attack can make damage uniquely the destination IP or to the whole network that the DDoS packets go through?  Regards,

This is a  about DoS and DDoS mitigation.   I found a massive traffic spike on a website that I host today; I am getting thousands of connections a second and I see I'm using all 100Mbps of my available bandwidth.  Nobody can access my site because all the requests time out, and I can't even log into the server because SSH times out too!  This has happened a couple times before, and each time it's lasted a couple hours and gone away on its own.  Occasionally, my website has another distinct but related problem: my server's load average (which is usually around .25) rockets up to 20 or more and nobody can access my site just the same as the other case.  It also goes away after a few hours.  Restarting my server doesn't help; what can I do to make my site accessible again, and what is happening?  Relatedly, I found once that for a day or two, every time I started my service, it got a connection from a particular IP address and then crashed.  As soon as I started it up again, this happened again and it crashed again.  How is that similar, and what can I do about it?


I am using the Time Manager plugin in QGIS and the data points from the CSV shapefile with animation to display the data points for a month at a time, is there a way that I can have the data points remain on the map and not disappear - So it's like the data points are building into a sort of heat map   Instead of showing the (month) data points and then disappearing and the showing the next (month) of data points and so on

I use time manager for a polygon layers with dates and it works. I would like to see the cummulative addition of my polygons. So I have 4 periods I want the poylgons from 1900-1950 to be added to the new ones in 1950-2000 etc in the next time step. How can I perform that or does another open source tool exist for that?


I'm trying to force RGB mode in macOS to fix the picture quality of my external monitor. I had to do this when I got my MacBook 16". Now, after installing Big Sur, the problem reappears. The instructions I've followed are:  Run: csrutil disable  in recovery mode in order to disable rootless mode.  Run the following patch: patch-edid.rb  and then do the following: sudo mkdir /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-472 sudo cp DisplayProductID-361 /System/Library/Displays/Contents/Resources/Overrides/DisplayVendorID-472    but Terminal returns this error: 'read-only' file system I tried the following: mount -o remount /  But Terminal fails with this error: mount: / failed with 64

After updating to big sur, I can no longer mount the root as writable (even with SIP disabled): sudo mount -uw / mount_apfs: volume could not be mounted: Permission denied mount: / failed with 66  How can I fix this?


My program must produce files from some given data. I'm dealing with PDFs and Excel documents. How do I allow the user to set the directory where the files will be saved? I'm not referring to SaveFileDialog where the user must choose the directory every time.  I want the files to automatically be saved to the directory previously specified by the user. Something to this effect:    Most immediate solution I can think of is to store the directory in a file and read it every time a file is to be saved.  I also read about , but is it relevant to my case?

I have a .NET 2.0 Windows Forms application. Where is the best place the store user settings (considering Windows guidelines)?  Some people pointed to Application.LocalUserAppDataPath. However, that creates a folder structure like:     C:\Documents and Settings\user_name\Local Settings\Application   Data\company_name\product_name\product_version\   If I release version 1 of my application and store an XML file there, then release version 2, that would change to a different folder, right? I'd prefer to have a single folder, per user, to store settings, regardless of the application version.


I am using biblatex 3.0 (current with the TeX Live 2015 pretest) and hope to hove APA citations and a bibliography. Instead, the relevant lines shown below in LuaLaTeX generate a PDF with no bibliography printed and boldfaced BibTeX labels standing in for any citation. What am I doing wrong here?  % !BIB TS-program = biber % !BIB program = biber \documentclass[11pt,english]{article} \usepackage[utf8]{inputenc} \usepackage{fontspec} \usepackage{polyglossia} \setmainlanguage{english} \usepackage[style=apa,backend=biber]{biblatex} \addbibresource{myfile.bib} \begin{document} \textcite{label} \printbibliography \end{document}

I've browsed the forums and found a number of posts that have addressed this issue, but none of the solutions seem to work for me. I have the following script that I just copied from the bibtex home page to get familiar with it. Instead of the citation number I get a question mark. I compile using Latex+Bibtex+Latex+Latex+PDFLatex+ViewPDF just as has been previously suggested and the problem persists.   \documentclass[11pt]{article} \usepackage{cite}  \begin{document}  \title{My Article} \author{Nobody Jr.} \date{Today} \maketitle  Blablabla said Nobody ~\cite{Nobody06}.  \bibliography{mybib} \bibliographystyle{plain} \end{document}   My bibliography (Bib.bbl)  @misc{ Nobody06, author = "Nobody Jr", title = "My Article", year = "2006" }    Looking at previous posts one thing that is concerning is that my .bbl looks empty as shown below. Further, I don't have a .blg  \begin{thebibliography}{}  \end{thebibliography}


I have a code which in the end prints me a char array, but with the toString() method, so from what I understand, it prints the array converted to String. Well, when I do so I get these similar outputs: [C@75b84c92 , [C@6bc7c054 ...  private void statistics() { char[] stats = null; contador = 0;         if(contador < 5){         stats = "INSUFICIENT".toCharArray();         }         if(contador == 5){             stats = "SUFICIENT".toCharArray();         }         if(contador == 6){             stats = "NORMAL".toCharArray();         }         if(contador > 6 && contador < 9){             stats = "NOTABLE".toCharArray();         }         if(contador == 9){             stats = "EXCEL·LENT".toCharArray();         }         if(contador == 10){             stats = "FORA DE SÈRIE".toCharArray();         }          System.out.println("La puntuació obtinguda per tant: " + stats);     }   While expecting the program to print me those conditional arrays, I get memory locations (or that is what I think they are).

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


Is it advisable to defragment my hard disk before using WUBI? Is there any other precautions that I should  take before using WUBI ? My os is windows XP-32 bit.

Is it might help? Is there something else that whould make it better?


I'm trying to plot a generalized pareto distribution with fixed initial values "scale" and "shape" to a random sequence of numbers. When I produce the plot with scale=1 and shape=1, I get the density on the y-axis with limits (0,1). If I produce the plot with different parameters (like the ones below), on the y-axis I get density values between (0,2), which obviously don't make sense.   x <- seq(from = 0, to = 5, by = 0.01) plot(dgpd(x, scale=0.639, shape=-0.255), type="l",xaxt="n",  las=1, ylab="Density", xlab="Exceedances") axis(1, at=seq(0, 500, by=100), labels = seq(0, 5, by=1))   (the third line was my way to rename the x-axis, it shouldn't matter for my question.)  Could someone replicate this and tell me whether they also get the weird limits? You know how I can fix this? Thanks!  PS: Sorry for the inconvenience, I only thought that there was a problem with MY specifications since for some parameters I had the interval [0,1] and for others [0,2]. Erroneously enough, I was asking what was wrong with my parameters rather than with the density plot and values. But I get it, it's a question that has been asked before, so it's been flagged as duplicate. Moreover, this being my first experience with stackexchange, I can only learn from it. Good day to you all, lads!

On the , there is this line:      $p(\mathrm{height}|\mathrm{male}) = 1.5789$ (A probability distribution over 1 is OK. It is the area under the bell curve that is equal to 1.)    How can a value $>1$ be OK? I thought all probability values were expressed in the range $0 \leq p \leq 1$. Furthermore, given that it is possible to have such a value, how is that value obtained in the example shown on the page?


In coordinates and in a finite-dimensional space, how would I prove that given any singular $n$x$n$ matrix $A$, any $\epsilon\gt0$ and any matrix norm $||.||$, there is an invertible $n$x$n$ matrix $B$ such that $||A-B|| \lt \epsilon$ ?  Is it worthwhile to consider   $spectrum(A)=\{\lambda | A-\lambda I$ is singular$\}$  ?

I am trying to find a Banach space $X$ (Infinite dimensional Space) and a singular operator $A\in \mathcal L(X)  $ such that for some $\epsilon \gt 0, $ there is no bounded linear operator $B$ with bounded linear inverse and such that $||A-B||\lt\epsilon $ ?  Making some attempt I thought of letting $X = \ell^2({\mathbb C}) $ where ${X}$ are sequences in $\mathbb C$ that are square summable and uses the linear shift operator $$A\in \mathcal L(X)$$ given by $A(x_1, x_2,...) = (x_2, x_3,...) $


What is the best way for me to protect my valuables on my upcoming trip to Europe? I will not have the luxury of staying in Hotels all of the time, and will be backpacking a lot of the time. I have both a large rucksack, as well as a fanny pack. Is there a certain spot that is best to put my items?  My valuables consist of:    My Wallet with ID/Cash/Passport etc... My Camera (Point & Click, not a DSLR.) My SmartPhone (Fairly Large, 6" Screen.)   So, besides shoving them in the bottom of one of my bags, is there a better option?  Note: What about pickpockets?

While wearing a backpack, what are common/known ways how someone might steal things out of your backpack (or even the whole backpack altogether)?   Which backpack security features can protect against which theft method?  {I’m asking only about features integrated in backpacks, not additional security products (like  or ).}


Consider a  unit square  $OABC$ where,$O\equiv (0,0),A \equiv (1,0),B \equiv (1,1), C \equiv ()$.If  two point $P_1$  and  $ P_2$is chosen randomly and uniformly  in or on the square.how do we find the expected value of  angle $\angle P_1OP_2$? My Attempt:- If $(X_1,Y_1)$  and   $(X_2,Y_2)$ are the coordinates of the point chosen , Then ezch of the  x and y coordiantes follows  a uniform distribution in $(0,1)$  .If $\theta $ be the angle $\angle P_1OP_2$ ,then $$ cos( \theta) =\frac{x_1x_2+y_1y_2}{\sqrt{{(x_1^2+y_1^2)}{(x_2^2+y_2^2)}}}$$. The goal ,then , is to find the pdf of  $\theta$.Thanks for any responses/hints in advance

Consider two randomly chosen vectors $(a,b)$ and $(c,d)$ within the unit square, where $a, b, c,$ and $d$ are chosen uniformly from $[0,1]$. What is the expected angle between the vectors? Here's what I have so far. The angle between any two positive vectors $<a,b>$ and $<c, d>$ is $\arccos{\frac{ac + bd}{\sqrt{(a^2 + b^2)(c^2 + d^2)}}}$. We just need to find the average value of this function over $a, b, c,d$ in range $[0,1]$. This is equivalent to the quadrupal integral $$\iiiint_V \arccos{\frac{ac + bd}{\sqrt{(a^2 + b^2)(c^2 + d^2)}}} \,da\,db\,dc\,dd$$. I can't find any way to compute this. I entered this into Mathematica and it wasn't able to output even a decimal approximation. I tried all the usual substitions to reduce this into a double integral but none of them worked. Converting to polar coordinates didn't work out nicely either. For one, the bounds become harder to work with and the jacobian is pretty nasty, so converting doesn't seem like it would help me. Probably the difficult part is working with the $\arccos$ function. I have no idea how to deal with it. Is it possible that there is an analytic solution to this integral? Even if someone found a numerical approximation, it would help me out.


Whenever I scroll through 'newest questions' some of the questions highlighted in blue, for example:    Why is this?

What are watched tags and ignored tags? How do they work? What are tag subscriptions? What are interesting tags? On Stack Overflow, the content of the main page question list appears to be influenced by watched and ignored tags. How does that work?   For more information, see "" in the .


I recently used the GPSlogger app and created KML files from my routes. I haven't been able to successfully convert them to shape files.   Does anyone know a good downloadable program that converts file types?

My users are sending me point data that were digitized using Google Earth. How can I convert their KML to a shapefile and vice versa?


A web rule is that the same URL shouldn't provide different contents, even the same thing in different languages. To do so, the locale should be in the URL. However, some websites ignore that rule, Youtube for instance. So I'd like to understand a few things about that:  Are there consequences if we ignore that rule for translation? (like SEO wise) What does Youtube do to avoid these consequences?  To give a context, I don't really want to use different URLs, I'd rather use the header Accept-language header, or a user setting if it exists.  I'm using Symfony.

When I set up a site in multiple languages, how should I set up my URLs for search engines and usability?  Let's say my site is www.example.com, and I'm translating into French and Spanish. What is best for usability and SEO?  Directory option:  http://www.example.com/sample.html http://www.example.com/fr/sample.html http://www.example.com/es/sample.html   Subdomain option:  http://www.example.com/sample.html http://fr.example.com/sample.html http://es.example.com/sample.html   Filename option:  http://www.example.com/sample.html http://www.example.com/sample.fr.html http://www.example.com/sample.es.html   Accept-Language header:  Or should I simply parse the  header and generate content server-side to suit that header?  Is there another way to do this? If the different language versions don't have different urls, what do I do about the search engines?    UPDATE 2011-12-06  Google has new recommendations for meta tags for explicitly pointing to other language content: .  UPDATE 2012-05-25  Related but not precisely:   UPDATE 2013-06-12  includes discussion of several URL schemes directly relevant to the question.


I'm running: MySQL Software version: 5.5.25 - Source distribution  I have a table like this:  Region | City ----------------- quebec | montreal _________________ quebec | montréal   The cities are written "montreal" and "montréal" with a french accent.  When I do 'select distinct City from table where Region="quebec"' it returns only  montreal   How do I get it to return both versions of montreal (with and without é)?   montreal montréal   In other words how do I get sql to return both french and english spelling of the same word?

I have a MySQL table with utf8 general ci collation. In the table, I can see two entries:  abad abád  I am using a query that looks like this:  SELECT *  FROM `words` WHERE `word` = 'abád'   The query result gives both words:  abad abád  Is there a way to indicate that I only want MySQL to find the accented word? I want the query to only return    abád    I have also tried this query:  SELECT *  FROM `words` WHERE BINARY `word` = 'abád'   It gives me no results. Thank you for the help.


I have seen this behavior when I try adding double values where one of the value is a negative double, the order in which I add these values apparently does matter. Here's my test      double val1 = -0.06, val2 = 0.04, val3 = 0.02;     double resOrder1 = val1 + val2 + val3;     double resOrder2 = val2 + val3 + val1;     Console.WriteLine(resOrder1); //3.46944695195361E-18     Console.WriteLine(resOrder2); //0   Am I missing some key principle here? Moreover, how do I make sure I get true for if(resOrder1 == 0){} regardless the addition order. And no I don't want to change the data type to decimal.

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I have produced two tables that when ran from the same LaTeX file are positioned on the same page, one under the other. However, when the two tables are called upon by using \input they appear on two seperate pages.  Here is a MWE (with the pacakges used in my paper) that produces the problem:  \documentclass[11pt,a4paper]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage[stable]{footmisc} \usepackage{mathpazo} \usepackage{amsmath} \usepackage{graphicx} \usepackage{xcolor} \usepackage{microtype} \usepackage[authoryear, round]{natbib} \usepackage[colorinlistoftodos]{todonotes} \usepackage{setspace} \usepackage[colorlinks=true, citecolor=red]{hyperref} \usepackage{mdframed} \usepackage{rotating} \usepackage{lscape, longtable} \newcommand\iid{i.i.d.} \newcommand\pN{\mathcal{N}}  \begin{document} \include{Results_Tables/tablea} \include{Results_Tables/tableb} \end{document}   Whereas using this amended MWE would produce the desired output, where both tables are within one tex file:  \documentclass[11pt,a4paper]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage[stable]{footmisc} \usepackage{mathpazo} \usepackage{amsmath} \usepackage{graphicx} \usepackage{xcolor} \usepackage{microtype} \usepackage[authoryear, round]{natbib} \usepackage[colorinlistoftodos]{todonotes} \usepackage{setspace} \usepackage[colorlinks=true, citecolor=red]{hyperref} \usepackage{mdframed} \usepackage{rotating} \usepackage{lscape, longtable} \newcommand\iid{i.i.d.} \newcommand\pN{\mathcal{N}}  \begin{document} \include{Results_Tables/tablea_and_b} \end{document}

There are two different commands to incorporate another file into the source of some document, \input and \include. When should I use one or the other? What are the differences between them? Are there more things like them to be aware of?


I had this script working before when it was just an inline script on a WordPress page. But now I load it from function.php.  This works fine for my other JavaScript scripts, but .click or .on won't work on this script...  $( "td.event-test" ).on("click",   function() {     $("p").empty();     $(".event-title").empty();     $(".event-title2").empty();     $("
EVENT #01
").appendTo(".event-title");     $("
Here is information for event!
").appendTo(".event-info");     $("
more info for event
").appendTo(".more-event-info");     $("
LINK TO EVENT SITE
").appendTo(".event-link");     $("a").attr("href", "events");   } );   It won't work, and the .click version won't work either:  $( "td.event-test" ).click(   function() {     $("p").empty();     $(".event-title").empty();     $(".event-title2").empty();     $("
EVENT #01
").appendTo(".event-title");     $("
Here is information for event!
").appendTo(".event-info");     $("
more info for event
").appendTo(".more-event-info");     $("
LINK TO EVENT SITE
").appendTo(".event-link");     $("a").attr("href", "events");   } );   It loads the script as I can see console.log printing "test" string from the first line of the JavaScript script.

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.


This is my first question. So please go easy on me if possible.   I can't understand the difference between 'for' and 'over' in terms of time.  For example, What is this difference: 'The birth rate has been increasing over ten years', and 'The birth rate has been increasing for ten years'.  If I can give you another example, what is the difference between 'for centuries' and 'over centuries'.  Maybe this is a very easy question but I can't find out the difference. Please help me.

I have a simple question.     over centuries / for centuries   what is the difference?  Thank you.


I forgot the password to my ssh. I am planning to remove the files (id_rsa, id_rsa.pub and known_hosts) in the directory and starting from scratch. I haven't been using ssh since the whole heartbleed thing and I've cleared out the stuff in the keys before but I think I did it wrong.   My question is how do I recreate the files properly and set up ssh to stop asking me for passwords when I'm connecting to git or other things?

How do I set up SSH so I don't have to type my password when connecting to a host?


Firstly, this may seem like a repetitive post. But please help me clear my doubt. It's based on my particular use case.  I am making a website where images will be available on web, but they can also be saved by users and printed. So I was wondering how much DPI should I choose.  I decided to google it out. But I am super confused right now, because I am getting completely different answers to this question.  Use Case:   Adobe photoshop file (.psd) High resolution photograph 1000 px by 1000 px Saved as .jpg Upload to website as well (file size not an issue) Photo can be saved via website and printed   There are 2 different websites I found giving me different answers.  Website 1: 300 DPI  Print - 72 DPI < 300 DPI  Source:   "Print: 300dpi is standard, sometimes 150 is acceptable but never lower, you may go higher for some situations."  With examples of 300dpi and 72dpi.  Website 2: 72 DPI  Web - 72 DPI = 300 DPI Print - 72 DPI > 300 DPI  Source:   This author shows an example of how 72 DPI and 300 DPI look when printed. And guess what, the 72 DPI image looks bigger. How???  Please search for: "Remember the three images I showed you above with different DPI values that look exactly the same on the web? Here’s what they’d look like printed:"  Sorry, but I don't understand what is going on here. Someone please care to explain?? Thanks in advance!  PS. Researching about this confused me even more. Haha. 😱😁

I often see statements in discussions about web displayed image quality that go something like this: "I only upload pictures at 72 dpi and 1200 pixels on the long edge, so if someone copies and prints the image it won't look as good as if it were 300 dpi."  What? Have I missed something here?  Does an image edited and saved/exported with 1200x800 pixels at 300 ppi look any different online than the same image saved/exported with 1200x800 pixels at 72 ppi? Other than the metadata regarding ppi, is there any difference in the two images at all? If so, what is the difference? If I tell my printer to print the images at 4R (4X6 inches) will there be any difference at all in how the printer creates a print from the 1200x800 @ 300 dpi image versus the 1200x800 @ 72 dpi image?


I have tried making scallops at home from the super market..They have so much water retained they never seem to be able to be seared correctly.. How do you correct for this problem..

This is partly a continuation of  question, since that one was already closed, but my question is about a specific problem encountered the last time I cooked scallops.  I got the pan up to a reasonable temperature and put the scallops in, and as they were cooking, TONS of water came out of the scallops and filled the pan.  I poured it out, continued cooking, and more water came out.  Several iterations later, I thought they were done, but they were still very raw inside, so we ended up tossing the batch (it definitely wasn't sushi grade).  Where did all the liquid come from, and is there any way to avoid that the next time?


I want to change my icons on Ubuntu to another set of icons. Maybe Mac OS icons. Is there any way that I can change icons entirely, or just desktop environment (choose between them in login).

I've downloaded some nice themes, icon packages, and pointers from sites like gnome-look.  Now, what do I do to use this theme? Do I have to save it in /usr/share/themes?


I have a document in which I use landscape environment but I also have many pages in vertical orientation. I want to do two things:  -change numbering style from 1 2 3 to S1 S2 S3 for all pages  -for pages in landscape mode, change the position of page number so that it is not perpendicular to the text but parallel as on a regular page

Objective  How to change the heading of landscaped pages from    to    ?  Minimal Code  \documentclass{book} \usepackage[a5paper,hmargin=3cm,vmargin=5cm]{geometry} \usepackage{lscape,lipsum}  \begin{document} \chapter{One} \lipsum[1]  \section{One One} \lipsum[2]  \newgeometry{hmargin=5cm,vmargin=3cm}  \begin{landscape} \lipsum[3-5] \end{landscape}  \restoregeometry \lipsum[6]  \end{document}   Edit 1 (my real scenario layout)  In my real scenario, the left-right margins should not be occupied by headings.


So let's say I have a website hosted in Yahoo Small Business with the domain name of 'website.com' as well as emails associated with the domain name, for instance 'email@website.com'.  How would I move the domain name 'website.com' to a different host such as Bluehost, while still retaining the email services at Yahoo Small Business?

I'm helping out a friend manage his website. Said friend has a domain, website.com, which I am transferring from his old host (OLD) to his new host (NEW), but OLD does not provide email services (or, at least, not intuitively). As a result, he wants both:   To host the website at NEW To use the email servers at OLD so he can continue using the email accounts he set up there.   The move from OLD to NEW has taken place, and I have updated the DNS records so they no longer point at ns1.old.com, and now point instead at ns1.new.com, and so on.  But having searched around a bit for the solution to the email aspect, I'm a little uncertain. I've updated the MX record at NEW to point back to ns1.OLD.com, but emails are still failing - and I'm sure the reason for this is obvious, but I'm not quite grasping what I need to do here.  As I understand it, the process ought to be as follows:   Mail sent to account@website.com website.com routes the mail to the host at NEW NEW then uses the new MX record to rout it to the servers at OLD Hey presto, the email should appear in the email inbox at account@website.com at OLD.   But this isn't happening. I get a 550 error telling me to turn on SMTP authentication, which I've read is a sure sign that I've got the MX configuration wrong. Any assistance on this would be really greatly appreciated.  tl;dr: Friend wants to move site hosting to NEW, but keep email hosting at OLD - I don't know what to do with MX and nameservers and so on to make this happen.


Description of problem:  I am using Dual boot OS having Windows 10 as primary OS and Ubuntu 16.04 as secondary OS in Dell Vostro 15 3568 laptop.  In Ubuntu,Clicking the right-click area on the touchpad produces a left-click (it is a clickpad, and the entire touchpad is clickable) but  it is working fine in Windows 10.  Steps to Reproduce: 1. Click on the right click area on the touchpad in Ubuntu.  Actual results: Left click, eg. follows the link in browser.  Expected results: Right click, eg. opens a context menu.  Additional info:  xinput --list actually shows two touchpad devices - SynPS/2 Synaptics TouchPad and a "DELL0794:00 06CB:7F13": $ xinput --list ⎡ Virtual core pointer                      id=2    [master pointer  (3)] ⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)] ⎜   ↳ DELL0794:00 06CB:7F13                     id=11   [slave  pointer  (2)] ⎜   ↳ SynPS/2 Synaptics TouchPad                id=14   [slave  pointer  (2)] ⎣ Virtual core keyboard                     id=3    [master keyboard (2)]   ...

I'm using Dell Vostro 3568 model, recently installed ubuntu 17.04. My touch-pad left and right click working same way.   If left radio button selected in my settings( All Settings->Mouse & Touchpad->General->Primary button) then left and right click behaving like left click always no matter even I clicked left or right.  If right radio button selected in my settings( All Settings->Mouse & Touchpad->General->Primary button) then left and right click behaving like Right click always no matter even I clicked left or right.  Can some one help me to get this fixed, please?? Thanks in advance.


first off: I am aware of  I want to open the "Ubuntu Software" I do have it installed, because I can see and open it from my menu-bar  I want to open it with the Terminal, because when I try to install "Dropbox" from Ubuntu Software, it just closes automatically. And now I want to see, if it works when I start it from the terminal. I've tried all of these: :~$ software-center software-center: command not found  :~$ gnome-software Command 'gnome-software' not found, but can be installed with: sudo apt install gnome-software  :~$ ubuntu-software ubuntu-software: command not found  what else could I try? I am using Ubuntu 20.04.2 LTS on 64-bit, with GNOME Version 3.36.8

If i click on Ubuntu Software, it doesn't open. I have a fresh install of Ubuntu 20.04. I tried try to upgrade all packages, but it doesn't fix this problem.  If I try to run killall software-center there is no process with this name, and software-center returns command not found. If I try to reinstall it with apt I have these results:  $ sudo apt-get --purge --reinstall install software-center Reading package lists... Done Building dependency tree        Reading state information... Done Package oracle-java8-installer is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'software-center' has no installation candidate


The 3rd ability of  is   -7: Search your library for any number of Elf creature cards and put them onto the battlefield. Then shuffle your library.   So the question is do the Elf creature cards put into the battlefield as a result of this ability suffer from summoning sickness?

Note: this is intended to be a canonical question about summoning sickness.  "Summoning sickness", broadly, is the rule that stops you from attacking or paying {T} costs with a creature that you just played. But how exactly does it work? How does it interact with other rules and effects?  For example, if I'm trying to figure out how a creature is affected:   Does the status matter (tapped/untapped, face down/face up, etc.)? What if it came into play, but I didn't cast it? What if it's a token? What if it was on the battlefield when my turn started, but it wasn't a creature? What if it stops being a creature? What if it's a creature and also another card type? What if it's a double-faced card that just transformed? What if it changes control? What if it's a copy of another creature? Which of the creature's activated abilities can I use? Are any of its other abilities affected? Can I tap the creature to pay a cost that is not a {T} cost?   (These examples are primarily taken from questions about summoning sickness that have already been asked on the site)


Following  tutorial I have compiled a Hello World! ARM binary from C source using gcc. I want to run this program on my unrooted Android phone but I can't figure out an easy way to do it.  What I've tried:   Copying hello to /sdcard and trying to run it from there. This doesn't work because the internal storage is mounted with the noexec flag. Copying hello to /data/local/ using cp hello /data/local/ or cat hello > /data/local/hello as . This also doesn't work and I get a "permission denied" error. Installing a terminal emulator program such as  and using the Termux app to copy hello from /sdcard/hello to /data/data/com.termux/files/home, running chmod +x hello and then running ./hello from the Termux home directory within the Termux app. This works but is not a feasible solution.   Is there a better/easier way to run native ELF executables on an unrooted Android phone directly through ADB and doesn't involve installing any apps?

I need a specific command line tool and I have made a C program in my Linux shell. I have compiled the program with an ARM cross-compiler. I have then moved the program into the Android file system and tried to run it.  The output is permission denied.  What do I have to do, in order to run my own compiled programs in Android file system?


I have a blog, and sometimes I'd like to show my readers something specific about computers.  I've seen a lot of screen recording software, but all seem to save as video files.  Do any save as an animated GIF? I know how to transform a small video into a .gif, but I believe that I could make a smaller file if the .gif was created directly.  I'd like to be able to make something like this (from Codinghorror's ""):

I need a way to record my Windows desktop and save it as an animated GIF file. Here's an example:    I need GIF animations so that they can run from a web page without requiring any plugins.  I want to record and save directly as a GIF.  How can I create a GIF screencast?


I starting learning Sweave today, and I am having difficulty positioning my figures correctly. I am finding that when I use the figure environment, the position of the figure doesn't correspond to its position in the document. Here is a minimal example of a .Rnw file showing with this problem:  %figure appears after both text A and text B \documentclass[12pt]{article}  \begin{document} \SweaveOpts{concordance=TRUE} Text A \begin{figure} \begin{center} <<fig=TRUE, echo=FALSE>>= hist(rnorm(100)) @ \end{center} \caption{histogram} \label{fig:hist} \end{figure}  Text B \end{document}   In this example, text A and text B both appear after the figure, which is not what I would expect. Surprisingly, if I don't use the figure environment, the figure is positioned correctly:  %figure appears between text A and text B  \documentclass[12pt]{article}  \begin{document} \SweaveOpts{concordance=TRUE} Text A \begin{center} <<fig=TRUE, echo=FALSE>>= hist(rnorm(100)) @ \end{center} \end{document}   Any ideas?

How to influence the position of float environments like figure and table in LaTeX?   This is a general question and should collect useful answers for all users. I hope we can use this as a reference


W-3m W-2.5m Resolution-300 dpi how to create booth wallpaper in this size I have already try but show me screch disk are full and I have already change screch disk then my all disk are full.   please give me answare and solve my problem

For wall-sized graphics and large banners (e.g. 3m × 5m), what is an acceptable PPI for print? As I understand it 300 ppi is the typical for 'small' artworks (esp. for clean text resolution). However, for small artworks, the audience usually engages at a much closer distance. Therefore, in the interests of keeping a bitmap file down to a reasonable size, can you get away with a much-reduced PPI for a large format/banner print?


When I try to install a package in terminal it shows something like:  $ sudo apt-get vlc  N: Ignoring file '20auto-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension  E: Invalid operation vlc   How can I solve it?

I am very fresh in Linux. I tried to use the sudo apt-get command to install both wget and curl utilities. To do that I ran at the following CLI commands:  sudo apt-get curl sudo apt-get wget   Both inputs give the error Invalid operation; No further information is given.  I tried to do man invalid || man Invalid, but there seem to be no entries for these terms.  Google search yielded zero results for "sudo apt-get wget" + "invalid operation".  For curl problem I did found  but I would humbly prefer having an expert's take on this before trying it (as I really need wget as well and want to understand the root of the problem).


I would like to temporarily turn my screen gray, to estimate how certain images would appear if printed with a black-and-white printer.  I think xcalib could do it but I don't know how.  Does anyone know how to get the desired effect?  For instance, to view inverted colors, I run xcalib -invert -alter to toggle the effect and it works great.  Is there a similar way to get a grayscale screen?

I would like to see everything on my computer screen in grayscale (like say the kindle screen). How do I do this?


Dropbox, PushBullet, Thunderbird and a dozen other apps create notifications. Is it possible to log these in a Unix-like way?  I dislike the tiny messages popping up for a few seconds and then disappearing without a trace.  Basically, I want to be able to grep a file which contains a line for each notification.

The helpful companion to the OSX notifications center  per default logs all received notifications. You can define how big the log may get or disable logging in the application.  Since the latest update Growl offers to forward all notifications to the OS X Notification Center.  Does OS X log Notifications Center messages as well? If yes, where can I find them?  Why I am asking this:  OS X  in a SQLite 3.x database. I want to know if something similar happens with notifications as well. This could be a privacy issue when thinking of private messages or e-mails if too much information is stored.


I am asked to calculate $\displaystyle \lim_{n\rightarrow\infty} \int_n^{n+1}\frac{\sin x} x \, dx$.  Before letting the $\lim$ to confuse me I used integration by parts, but it didn't get me far.  Any hint?

Find $\lim_{n\to \infty} \int_n^{n+1} {\sin x \over x}  dx$   I thought about defining $\space F(x) = \int_0^x {\sin t \over t}  dt \space$ and then the limit is $\space \lim_{n\to \infty} (F(n+1) - F(n))$, so the answer is 0? It doesn't seem ok


I've making some research about RSA, and see that it is working with products of two prime numbers and difficulty of factorization... But why we can't make assumptions of primes like this way...  Here is a example, 27221 is product of two three digit primes, so we can think last digits of primes can be  ab1  cd1  or  ab9  cd9  or  ab3  cd7  or  ab7  cd3  So it seems to me thinking like this and going backwards for every digit of products with computer power could work. What is problem of my logic?

I was thinking about why factorizing RSA numbers is so hard. When humans perform any kind of maths manually, they often employ various 'tricks' that get them closer to the answer. Some are based on mathematical facts, others are just instinctive approximations (such as square roots).  Don't such 'tricks' exist for factorization of a product of 2 large primes. For example, the first thing to do would be to figure out the possible last digits of the answer. We stick to decimal numbers, but a computer could do this in a number system of any base (even 999). Based on previous numbers, can an algorithm be written to 'predict' the factorization based on the individual digits in various number systems.


According to , both pump up the version to 10.12.2, both have exactly the same changelog:   macOS Sierra 10.12.2  macOS Sierra 10.12.2    The only difference I was able to see was the file size (1.94 GB vs. 2.05 GB).  AppStore seems to mention only the "standard" update, not "combo".    Can somebody explain what are the differences? Thank you.

What is a combo update and how is it different from a normal update?


I have these employee cards I am making for a responsive website (Will be represented as a cat in my fiddle). I have a button that will be in the bottom right of every card. I currently have a working example of what I want using absolute, but I quickly noticed that when the container gets smaller the button overlaps the text.   I am looking to see if anyone knows of an alternative way to get what I want without using absolute(for the reason above) and without using flex(I require older browser support)  Here is the fiddle:   I'll add the code here so people can see in this post:    .kittywrapper {  display: inline-block;  padding: 1em;  text-align: left;  border: 1px solid;  border-color: #e3e3e3;  width: 90%;  position: relative; }  .imagecontainer {  float: left;         height: 100%;         width: auto; }  .imagecontainer img {  height: auto;  width: auto;  max-width: 100%;  max-height: 200px;  object-fit: contain; }  .kittycontainer {  padding-left: 2%;         overflow: hidden;         width: auto; }  .kittytitle {  display: block;         font-weight: 700; }  .kittytext {  }  .buttoncontainer {  position: absolute;  bottom: 0;  right: 0;  margin: 2%; }  .pettext {  float: left; }  .button {  float: right; }

           Smelly Cat

           Smelly Cat, Smelly Cat           What are they feeding you?           Smelly Cat, Smelly Cat           It's not your fault            They won't take you to the vet           You're obviously not their favorite pet           Smelly Cat, Smelly Cat           It's not your fault            You may not be a bed of roses           You're not friend to those with noses           I'll miss you before we're done           Or the world will smell as one            Smelly Cat, Smelly Cat           What are they feeding you?           Smelly Cat, Smelly Cat           It's not your fault            Oh are we done?            One, two, what's that smell?            Smelly Cat, Smelly Cat           What are they feeding you?           Smelly Cat, Smelly Cat           You're getting fat            I think that I'm gonna be sick           It's your ears, and nose and pick           Part of it, tempt me            One, two, what's that smell?            All the dogs in the neighborhood           Are saying this for your own good           What, you're fat, so you can't run           No fun, I bet, No fun            Smelly Cat, Smelly Cat           Porno makes you eat like that           I saw you in the shopping mall            Smelly Cat           It's not your fault           Smelly Cat           It's not your fault           Smelly Cat, Smelly Cat           It's not your fault           We know what was in your food           They say it might affect your mood           You smell like something dead           You smell like something dead           You smell like something dead           You smell like something dead           One, two, what's that smell?           Yeah, that's not the song

           Pet the kitty!
         <button type="button" class="button">Pet</button>

Given the following HTML:

     Copyright Foo web designs

    I would like #copyright to stick to the bottom of #container. Can I achieve this without using absolute positioning?


I have the same question as , but then with JetBrains Intellij IDEA 13.

Is there a shortcut key to bring up the call hierarchy of a method inline with the code, in the quick menu format, rather than bringing up the call hierarchy panel?


I'm using QGIS and SpatiaLite. Is it possible to store date and time in a field "datetime" for every entry automatically - maybe with some python code? Already existing datetime should not be updated.

I am trying to do field data collection using QGIS.  One of the features that I regard as necessary for data management is timestamps.  For example, a timestamp can indicate that an inspection record has been updated.    I have figured out how to add triggers using Spatialite to add a timestamp on update, however the timestamp is added when the edited records are saved and not when the identify dialog box is closed.  This means that timestamps can be out by many minutes.  One solution would be to force the updated record to be saved by using a custom form with an OK button (Can do the form with Qt-Designer but don't know how to add the save command to the button yet.)  However my preferred solution would be to take a timestamp for new records, when the point or line is created.  The reason for this is if I am surveying a road, I can stand on the road, collect the point and them move to the side to complete data collection.    I have been unable to work out how to get Spatialite to run a trigger that puts in the start of feature editing.  Perhaps this is also something that needs to be done by code in a custom form.  Is there an On-dirty event or signal in QGIS that indicates when someone starts editing a record and that can be used to capture the time?  Could I also ask what the Python code (and what to hook it to) that would put such a timestamp in the timestamp field.  AndrewM