I had a pretty solid profile with a few purchases on my ipod. have since upgraded to android. anyway to transfer my profile?

I've been playing Jetpack Joyride on iOS, and I just got an Android device. Can I move my things, such as money and unlocks, from my iOS device to Android?


I'm trying to mount my 64 GB SDXC card into my computer's internal card reader but I get the following message:  Error mounting /dev/sdd at /media/renato/disk:  Command-line `mount -t "exfat" -o "uhelper=udisks2,nodev,nosuid" "/dev/sdd" "/media/renato/disk"'  exited with non-zero exit status 32: mount: unknown filesystem type 'exfat'   What can I do to make Ubuntu 13.10 64 bit read my SD card so I can download my pictures?

In Ubuntu 13.04 there was an option to use the PPA by Relan in order to get ExFat functionality. Seeing that in Ubuntu this functionality is now available from the repositories without the PPA I tried this but failed to make it work.  So my question is how do I enable exfat support?


I don't understand why I still got error message.  \documentclass{article} \usepackage{braket} \usepackage{mathtools} \everymath{\displaystyle} \begin{document} \title{Quantum Mechanics Homework 3 \& 4} \author{Seng Sopheak} \date{2014} \maketitle [...] \begin{figure} \centering \includegraphics{QM HM 3_2.jpg} \end{figure} [...] \end{document}   This is the error message I always got:  ! Missing $ inserted. <inserted text>                  $ l.346 \includegraphics{QM HM 3_2.jpg}   Could you help me?

With the commands \openout and \write I output text into a file. I want this file to have a name of containing an underscore (eg. name_01.txt), but I'm unable to get the underscore in the filename. My attempt (with \_):   \documentclass{article} \begin{document} \newwrite\tempfile \immediate\openout\tempfile="name\_01.txt" \immediate\write\tempfile{this is interesting} \immediate\closeout\tempfile \end{document}


Let $R$ be a commutative ring with 1 which has exactly 3 ideals$\{0\},J$, and $R$. If $a\in R$ is not a zero divisor then show that $a$ is a unit. My attempt: Suppose that $a$ is not a unit. Then, $R.a=R.a^2$. This implies $R.a-R.a^2=0$ i.e. $Ra(1-Ra)=0$. Since, $a$ is not a unit, then $1-Ra\neq 0$. This implies $Ra=0$. This is a contradiction. Anyone please suggest me mistakes in this proof. This is first time for me do solve these types of problems.

It is known that   Now consider a ring $R$ with exactly three ideals. Take an element $x$ such that $(x)\neq (1)$. For $y\in R$ and $y\notin (x)$, there are two possible cases:   $(y)=(1)$ $(y)\neq(1)$. Then $(y)=(x)$, that is $x=ys=xts$ for some $s,t\in R$. It follows that $$x(1-ts)=0$$ which implies that $x$ is a zero divisor.   However, if there is no such a $y$ of the second case, how to prove $x$ is a zero divisor?


Given  $N\geq30$ i.i.d. $X_n\approx\mathcal{N}(\mu_X,\sigma_X^2)$, and $|\mu_X|\geq10\sigma_X$, $\sigma > 0$, looking for:   accurate closed form distribution approximation of $Y_N=\prod\limits_{1}^{N}{X_n}$ asymptotic (?) approximation of same product    This is a special case $|\mu_X|\geq10\sigma_X$, $\sigma > 0$  of a more .

Given  $N\geq30$ i.i.d. $X_n\approx\mathcal{N}(\mu_X,\sigma_X^2)$,  and $\mu_X \approx 0$, looking for:   accurate closed form distribution approximation of $Y_N=\prod\limits_{1}^{N}{X_n}$ asymptotic (?) approximation of same product    This is a special case $\mu_X \approx 0$ of a more .


See my edit below, this is not totally a duplicate of   My reverse-search function in the CLI is broken and I don't know how to fix it back...  When I hit ctrl+r and search a command I did earlier, find it then press the right arrow key to use it, the output is broken. Here is an example:  # I reverse-searched the word "test" then pressed right arrow yoshiji@x1carbon:~/path/to/git/folder (master) $ch)`test': rake test #                                              ^^^^^^^^^^ weird output #                                                     ^ cursor right there   It also "shifts" my cursor to a different position. If I press enter, the right command is executed (rake test in this case) so it means the text displayed is not the same as what is actually executed.  I know this is most-likely related to my PS1 export in my ~/.bashrc, so here are the last lines of this file:  # Git branch in prompt. git_branch() {   branch=$(__git_ps1 2> /dev/null)   if [ "$branch" = " (master)" ]; then      echo -e "\033[33m${branch}\033[00m" # yellow   elif [ "$branch" = "" ]; then      echo -e "\033[90m (no git)\033[00m" # red   else      echo -e "\033[32m${branch}\033[00m" # green   fi } PS1='\u@\h:\w$(git_branch) \$ '   This is something I wrote to displays the git branch in orange (if master branch) or else in green (or no git in gray).  Do you guys have any idea on what is causing this weird behavior?    Edit: This is a different problem from the  in the way that I am using echo -e "some string" to return a string having color+name of the git branch from the function git_branch(). Using echo -e does not escape the characters \[ and \] (try it yourself in your CLI: echo -e "\[\033[33m\]test").  Ideally, I would like to keep those conditional colors based on the branch's presence & name (gray if no branch, orange if master, else green).

I want my prompt to display:   current (absolute) working directory, colored in green and in a NEW line, the dollar sign and an empty space.   I am using this line in .profile  export PS1='\e[0;32m$(pwd)\n\e[m$ '  So when in e.g. Desktop, my prompt looks like this:    However, sometimes when hitting the up arrow to re-run previous commands, at the start of the prompt a random char sequence appear that does not seem to go away unless I hit enter, e. g.    I have never hit a cd cd Desktop command. The weirdest part is that backspace won't even delete the first one of the two cd commands above!  Any suggestions?


An SE employee has removed a link that added clarity to an answer. This is presumably in response a new . It seems the SE policy, at least if applied to links that add clarity) is at odds with the goals of the community to provide clear and concise answers.  Should we be rolling back all edits that remove links that provide additional clarity to a question/answer? If SE disagrees, then they can lock the posts while the content dispute is settled. They could also issue a warning/suspension, although I am not sure what policy we would be violating for making a post clearer.  [Note that this question pertains to the debacle caused by the alleged slandering of a former moderator by SE (aka what SE in victim blaming refers to as Monica's situation) and therefore if they obey their legal guidance should not be answering.]

Stack Exchange staff will actively remove links to a legal fund campaign from user profiles, posts, and comments, as well as community ads surrounding Monica's situation and reinstatement. Why?  [This post was originally posted by  but ownership was changed with a post-disassociation tool so that the accepted answer would be pinned to the top.]


I'm using windows 7 i installed Ubuntu as second operating system. My windows files are shows in Ubuntu but i cant able to open it,after some weeks my system has crash windows is not booting.  My question is dual operating system with windows and Ubuntu is good? If it is good how to install it correctly?

I need my pre-installed version of Windows 7 (or any other version of Windows), how could I install Ubuntu without erasing it?


I need to run a specific function every second. I have searched for a solution and found :  import threading  def printit():   threading.Timer(5.0, printit).start()   print "Hello, World!"  printit()   It seems to be the code I have been searching for. But after running those lines of code for 20 Minutes I have got following error message:     Exception in thread Thread-1896: Traceback (most recent call last):   File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner   File "/usr/lib/python3.5/threading.py", line 1180, in run File   "/home/pi/scanner/api/brightness.py", line 37, in adjust_brightness   File "/home/pi/scanner/api/brightness.py", line 14, in get_brightness   OSError: [Errno 24] Too many open files   It seems that every time the function is called a new thread starts. Is there a way to stop the previous thread before the new one gets generated? Or are there other solutions where this doesn't happen?

I want to repeatedly execute a function in Python every 60 seconds forever (just like an  in Objective C). This code will run as a daemon and is effectively like calling the python script every minute using a cron, but without requiring that to be set up by the user.  In , the solution appears to effectively just  for x seconds. I don't need such advanced functionality so perhaps something like this would work  while True:     # Code executed here     time.sleep(60)   Are there any foreseeable problems with this code?


I understand the reasons why you cannot delete a question that has answers as the people who posted the answers did so in good faith, but how about being able to disconnect your user account from the question or make the person who asked the question anonymous?  Let's say (as an example) I asked a question on car maintenance that I no longer want to come up when someone does a search on my profile as I am looking for a new job and actively posting on stack overflow so they may think that what I posted on the other site was dumb/stupid/offensive/some other reason?  It would be good if you could make you you user account 'Anon' with a stock icon for just that question. Obviously you will no longer receive notifications about this question but so what? As long as you have accepted an answer it doesn't really matter.

The Creative Commons FAQ      Third, if the licensor does not like how the material has been modified or used, CC licenses require that the licensee remove the attribution information upon request [...]  in 4.0, this also applies to the unmodified work.   How do I remove / dissociate my name from a post, in accordance with this clause?  Also, what are the effects of having my post dissociated from my account?  Finally, how will dissociation requests be handled for posts licensed under earlier versions of the license, which do not require dissociation upon request in all cases?


Is there any way to transpose table? I mean row to column and column to row?   Here is the code.     \documentclass[a4paper]{article} % <-- remove12pt, again too big for your table. \usepackage{amsmath} \usepackage{amssymb} \usepackage{tabularx} \usepackage{comment} \oddsidemargin-16mm \usepackage{graphicx} \usepackage{hyperref} \usepackage[english]{babel} \usepackage{pdflscape} \usepackage{rotating} \newcommand{\specificthanks}[1]{\@fnsymbol{#1}}% Inserts a specific \thanks symbol %\usepackage[left=1.25in, right=1.0in, top=1.25in, bottom=1.0in]{geometry} \usepackage[margin=1cm]{geometry} %<---- your table is larger then your original setting by geometry above \usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables for horizontal lines \newcommand{\piRsquare}{\pi r^2} \begin{document} \baselineskip=22pt \begin{landscape} \begin{tabularx}{1.3\textwidth}{|l|*{10}{X|}}\hline & Low & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & High \\ \hline Fall & Consumer Staples 15.83\% & Healthcare 17.70\% & Utilities 19.48\% & Industrials 23.36\% & Consumer Discretionary 24.04\% & Energy 24.87\% & Telecom 25.50\% & Materials 26.92\% & Financials 28.33\% &Information Technology 34.91\% \\ \hline 2000 & Utilities 14.50\% & Consumer Staples 15.92\%  & 200 & & & & & & &\\\hline  2001& Consumer Staples 16.70\% & Utilities 16.81\% & & & & & & & & \\\hline 2002& Consumer Staples 21.20\% & Utilities 22.49\% & & & & & & & & \\\hline 2031& Consumer Staples 17.49\% & Utilities 18.67\% & & & & & & & &  \\\hline 2004& Consumer Staples 10.04\% & Utilities 10.70\% & & & & & & & &  \\\hline 2005& Consumer Staples 8.73\% & Financials 10.25\% & & & & & & & &  \\\hline 2006& Consumer Staples 9.66\% & Healthcare 11.46\% & & & & & & & &  \\\hline 2007& Healthcare 12.58\% & Consumer Staples 12.77\% & & & & & & & & \\\hline 2008& Consumer Staples 28.83\% & Healthcare 28.84\% & & & & & & & & \\\hline 2009& Healthcare 16.10\% & Consumer Staples 16.64\% & & & & & & & & \\\hline 2010& Healthcare 13.59\% & Consumer Staples 14.53\% & & & & & & & & \\\hline 2011& Consumer Staples 14.21\% & Healthcare 15.89\% & & & & & & & &  \\\hline 2012& Consumer Staples 11.12\% & Healthcare 11.28\% & & & & & & & &  \\\hline \end{tabularx} \end{landscape} \end{document}

I would like to be able to transpose a tabular(x) table like in the following example. It is not necessary to be completely automated, but I don't want to change the data order, which is a painful and stupid. By "not completely automated" I mean that e.g. the headers can be done seperately etc.  Let's see the MWE:  \documentclass{article}  \usepackage{booktabs} \def\Midrule{\midrule[\heavyrulewidth]}  \begin{document}  \centering  \begin{tabular}{*6c}\toprule \bfseries Name & Alice & Bob & Chuck & Dave & Eve\\\Midrule \bfseries Sex & Female & Male & Male & Male & Female\\\midrule \bfseries Age & 18 & 19 & 20 & 21 & 22\\\bottomrule \end{tabular}  \bigskip  Which I want to look like  \bigskip  \begin{tabular}{*3c}\toprule \bfseries Name & \bfseries Sex & \bfseries Age\\\Midrule Alice & Female & 18\\\midrule Bob & Male & 19\\\midrule Chuck & Male & 20\\\midrule Dave & Male & 21\\\midrule Eve & Female & 22\\\bottomrule \end{tabular}   \end{document}     Note: I know that , but I would like to get it without expl3 (mostly because people would might use my code quite often have an old LaTeX installed and I cannot be convincing them to change this).


I don't have any empty DVDs, but I have one with enough free space. It currently has Zorin os 8 installed on it, which is 1.6 gb iso file. I would like to install Ubuntu 14.04 on it as well, so I can install it on Zorin os 8. Is that possible?

What I want is to create a bootable pen drive that shows GRUB menu and I can select any of the several bootable systems from there to install/run. I have several ISO images that I want to install in the USB like Ubuntu, Fedora, System Rescue CD, Windows XP and Windows 7 (The windows versions are optional, mostly am looking for a multi installer for Linux distros, specially Ubuntu version)  The default Startup Disk Creator only works with Linux Images and only 1 at a time (At least for the mean time. If it allows more systems and multiple ISOs it would be awesome)  What method exists that I can use step by step to create a bootable USB Drive with multiple images than can be booted from the USB and selected from GRUB. It must support Windows Images and Linux Images.  Alternatively, is there also a way to have multiple versions of the Ubuntu installation ISO on same USB Drive, such as, when booting from it, I get to choose what Ubuntu version and architecture to install, for example:     BOOT MENU   Ubuntu 12.04 32 Bit   Ubuntu 12.04 64 Bit   Ubuntu 12.10 32 Bit   Ubuntu 12.10 64 Bit   UPDATE: Wanted to add that the English version for the post mentioned by daithib8 is here:


I need to dynamically create a regex to use in match function javascript. How would that be possible?  var p = "*|"; var s = "|*"; "*|1387461375|* hello *|sfa|* *|3135145|* test".match(/"p"(\d{3,})"s"/g)   this would be the right regex:    /\*\|(\d{3,})\|\*/g  even if I add backslashes to p and s it doesn't work. Is it possible?

I would like to create a String.replaceAll() method in JavaScript and I'm thinking that using a regex would be most terse way to do it.  However, I can't figure out how to pass a variable in to a regex.  I can do this already which will replace all the instances of "B" with "A".  "ABABAB".replace(/B/g, "A");   But I want to do something like this:  String.prototype.replaceAll = function(replaceThis, withThis) {     this.replace(/replaceThis/g, withThis); };   But obviously this will only replace the text "replaceThis"...so how do I pass this variable in to my regex string?


I can teach you how to bottle fame, brew glory, even stopper death    -- Chapter 8, The potion master, Harry Potter and the Sorcerer's Stone   This quote give Snape's almost an almighty aura. Do we know at some moment to what he may refer here?  “Brew glory” might refer to “Felix Felicis” but I am clueless for the other two. It is also possible that at this time, JKR did not thought to much abour the means Snape would use to achieve what he said.

‘You are here to learn the subtle science and exact art of potionmaking,’ [Snape] began. He spoke in barely more than a whisper, but they caught every word – like Professor McGonagall, Snape had the gift of keeping a class silent without effort. ‘As there is little foolish wand-waving here, many of you will hardly believe this is magic. I don’t expect you will really understand the beauty of the softly simmering cauldron with its shimmering fumes, the delicate power of liquids that creep through human veins, bewitching the mind, ensnaring the senses ... I can teach you how to bottle fame, brew glory, even stopper death – if you aren’t as big a bunch of dunderheads as I usually have to teach.’¹   Philosopher's Stone - page 102 - Bloomsbury - chapter 8, The Potions Master   Are there any canon potions that actually grant fame or glory, or stopper death? I'm looking for specific canon-based answers from sources such as the Harry Potter books, interviews with J.K. Rowling, or information from Pottermore. Maybe because it's early I'm overlooking the obvious, but offhand I can't think of any canon potions that fit this criteria exactly.   ¹I edited in the entire paragraph that I can teach you how to bottle fame, brew glory, even stopper death comes from for clarity. Hopefully this will be helpful and provide a better context for the comment in question.


I have Ubuntu 18.04.3 LTS on a new Lenovo Ideacentre 510-15ICB with a Realtek RTL8821CE but I cannot get my WiFi working. The error message is -      no network adapter not found   How do I troubleshoot this?

We just bought a Lenovo  (which is supposed to have the Intel 8265 for wireless). This laptop was bought in part because it is certified to run Ubuntu and as such to me at least it would make sense for things to work out of the box... but no such luck.  First, I installed Ubuntu 17.10 and after installation realised Wi-Fi was not working. I also tried Ubuntu 16.04 from a USB drive since that is the version of Ubuntu it is certified for, but no luck there either.  The wireless chip is not detected by lshw (or even lspci by the looks of it), ip link does not show a wireless interface, and the iwlwifi kernel module is not loaded at boot (I can load this myself using modprobe iwlwifi but this does not make Wi-Fi work). I think it is a combined Wi-Fi/Bluetooth chip, and Bluetooth does appear to work (or at least Bluetooth shows up in Gnome and rfkill list).  modinfo iwlwifi | grep 8265 shows me a file ending in -34 is supposedly loaded but only a file ending in -33 (and some other lower numbers) is present in /lib/firmware, if that helps).  I have also installed the Linux 4.14.9 kernel in an attempt to get things to work, but this did not resolve the issue either.  Further information  root@ThinkPad-E570:~# modinfo iwlwifi | grep 8265 firmware:       iwlwifi-8265-34.ucode root@ThinkPad-E570:~# rfkill list all 0: tpacpi_bluetooth_sw: Bluetooth     Soft blocked: no     Hard blocked: no 1: hci0: Bluetooth     Soft blocked: no     Hard blocked: no root@ThinkPad-E570:~# dmesg | grep iwl root@ThinkPad-E570:~# lspci -nnk | grep 0280 -A3 05:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:c821]     Subsystem: Lenovo Device [17aa:c024]   Update  I just noticed that the laptop does not have an Intel wireless chip at all, but in fact has a Realtek one... which means that the  of the shop I bought this laptop at were not accurate... Sigh. Same problem stands, however, just with a crappier wireless chip.


\documentclass{amsart}  \begin{document}  \title{Title 1} \maketitle  Please fill in all details here: \underline{\hspace{50cm}} \\  Thank you  \end{document}   I would like to make the underline several lines long, but as you can see it is running off the page here. (I put in the \\ because I want a line break space between the "detail line" and the "thank you" line)

I want to make a cloze test using LaTeX. My Idea was to use the \phantom command to produce the space:  Some text \underline{\phantom{some text to complete}} some more text.   Now the problem is that \phantom seems to handle "some text to complete" as one word and does not break lines.   \documentclass{minimal}  \begin{document}  Some text \underline{\phantom{some  text to complete some  text to complete some  text to complete some  text to complete some  text to complete some    text to complete some  text to complete}} some more text.  \end{document}


I'm having problem showing JQuery UI themes for my CakePHP application. I placed the theme at app/webroot/lib/jquery.ui/ . Now on my layout I imported the theme using :   echo $html->css('/lib/jquery-ui/theme/ui.all');   I'm usingthe DatePicker widget. On my page, I can see that the my textbox was showing the date picker when focused, but the theme was not applied properly. I can't see the background images. I know that the theme (or css) has been imported since I can see some changes in the DatePicker (fonts, spacings, etc.). I just couldn't see the background images.   I don't know if this has something to do with my problem, but I'm also using YUI.

I've got this pretty simple HTML page with a jQuery datepicker:      <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>     <title>jQuery Datepicker</title>     <link rel="stylesheet" href="../App_Themes/Default/ui.datepicker.css" type="text/css"         media="screen" title="Smoothness" />      <script src="../Shared/Scripts/jquery-1.2.6.min.js" type="text/javascript"></script>      <script src="../Shared/Scripts/jquery-ui-1.5.3.min.js" type="text/javascript"></script>      <script language="javascript" type="text/javascript">         $(document).ready(PageLoad);          function PageLoad() {             $('#textBox').datepicker();         }     </script>  </head> <body>     <input type="text" id="textBox" /> </body> </html>   The datepicker itself seems to work perfectly but I can't apply my theme. Am I missing something really stupid here?  Thanks !!!!


I am trying to list the packages that are essential to install Ruby. For example, on Archlinux: $ pacman -Si ruby Repository      : extra Name            : ruby Version         : 2.7.1-3 Description     : An object-oriented language for quick and easy programming Architecture    : x86_64 URL             : https://www.ruby-lang.org/en/ Licenses        : BSD  custom Groups          : None Provides        : None Depends On      : gdbm  openssl  libffi  libyaml  gmp  zlib  rubygems  ruby-irb Optional Deps   : ruby-docs: Ruby documentation                   tk: for Ruby/TK Conflicts With  : None Replaces        : None Download Size   : 3.30 MiB Installed Size  : 13.34 MiB Packager        : Anatol Pomozov <anatol.pomozov@gmail.com> Build Date      : Sat 22 Aug 2020 03:46:33 IST Validated By    : MD5 Sum  SHA-256 Sum  Signature  In other words, Depends On      : gdbm  openssl  libffi  libyaml  gmp  zlib  rubygems is what I want in Ubuntu. On Ubuntu, I am trying to do this: $ apt-cache show ruby  The output is: Package: ruby Architecture: amd64 Version: 1:2.5.1 Multi-Arch: allowed Priority: optional Section: interpreters Source: ruby-defaults Origin: Ubuntu Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Original-Maintainer: Antonio Terceiro <terceiro@debian.org> Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 37 Provides: irb, rdoc, rubygems Depends: ruby2.5 Suggests: ri, ruby-dev Conflicts: ruby-activesupport-2.3, ruby-activesupport-3.2 Breaks: apt-listbugs (<< 0.1.6), rbenv (<= 0.4.0-1), ruby-debian (<< 0.3.8+b3), ruby-switch (<= 0.1.0) Replaces: irb, rdoc, rubygems Filename: pool/main/r/ruby-defaults/ruby_2.5.1_amd64.deb Size: 5712 MD5sum: 4fbbfcf2431190a889f2430ffd017110 SHA1: 2b56994915b61fe6009613e0b879d9de16699206 SHA256: b01fd79a656f1e36542d1dd1046713ffb2d5f29902e433d06884333fcb151488 Homepage: http://www.ruby-lang.org/ Description-en: Interpreter of object-oriented scripting language Ruby (default version)  Ruby is the interpreted scripting language for quick and easy  object-oriented programming.  It has many features to process text  files and to do system management tasks (as in perl).  It is simple,  straight-forward, and extensible.  .  This package is a dependency package, which depends on Debian's default Ruby  version (currently v2.5). Description-md5: 9b1885fba57cb2974ce14902f85d3e27 Task: kubuntu-desktop, kubuntu-full Supported: 5y  It doesn't list packages like openssl or zlib as dependency. But when I try to purge openssl (this is dangerous, and I just ran the command and pressed the N key to skip removal), it also lists ruby in the removal list. That means Ruby depends on OpenSSL. I have also followed answers like , which lists the packages that depends on ruby, not the packages ruby depends on. If you ask why is that important, the reason is I am writing a guide how to compile Ruby with various optflags (CFLAGS) for performance, mainly for Arch. Then wanted to add Ubuntu as well, and I didn't get a complete dependency list which is required to build Ruby. I can't list the arch packages, because Ubuntu has some different and weird names. Like calling base-devel as build-essential, etc. So what's the way to list packages?

I can reveal package dependencies like this  apt-cache show wget | grep ^Depends   However I would like to also list the dependencies for the dependencies, so the output would be something like this  wget   libc6     libgcc1       gcc-4.9-base   libidn11   libssl1.0.0     debconf   libuuid1     passwd       libpam0g       libselinux1       libsemanage1       libpam-modules       debianutils   zlib1g   This example has a depth of 4 but I would like the actual solution to have full depth.


If I go to e.g.  while logged in at Data.SE, the ##UserId## parameter isn't populated like it usually is. This was originally only happening for some sites, but now it seems to be happening for all of them.

Environment I'm logging in using the OpenID from  and using Chrome 31.0.1650.57 m if that matters. Steps to reproduce: Log in to  and , for example, like: DECLARE @MyUserID INT = ##UserID:int##  SELECT TOP 1     Id AS [Post Link],     Score AS [Score],     CreationDate AS [Creation Date] FROM     Posts WHERE     OwnerUserId = @MyUserID AND     PostTypeId IN (2, 3) ORDER BY     CreationDate DESC  Then press the Run Query button and see if the UserID field is filled with your own user ID like shown in the below screenshot:  Question: Did something changed on the ##UserID## parameter (for example, that it's not supported anymore)?  If so, then there is an outdated  paragraph about it (What's the point of logging in). If not, it is a bug which is there about three days (I've been waiting since I noticed that you were going to do some changes to Data Explorer, but it remains there, hence my question).


I have two version of code. One works and the other doesnot.  Working code is a follows :   int main()     {         int i;         char str[] = "Hello World";         std::cout<<"The string value before memset is : "<<str<<std::endl;         memset (str,'-',6);         std::cout<<"The string value after memset is : "<<str<<std::endl;         return 0;     }   It gives expected output :  The string value before memset is : Hello World The string value after memset is : ------World   Now, I have another version of code in which I want to use the char pointer but this code is not working. I get the following output :  int main() {     char *str;     str = "Hello World";     std::cout<<"The string value before memset is : "<<str<<std::endl;     memset (str,'-',6);     std::cout<<"The string value after memset is : "<<str<<std::endl;     return 0; } The string value before memset is : Hello World Segmentation fault (core dumped)   I just could not figure on what is happening. Could you help me on this?

The following code receives seg fault on line 2:  char *str = "string"; str[0] = 'z';  // could be also written as *str = 'z' printf("%s\n", str);   While this works perfectly well:  char str[] = "string"; str[0] = 'z'; printf("%s\n", str);   Tested with MSVC and GCC.


Could anyone give me a suggestion to start solving this problem?  Proof that $(\mathbb{R}^{3},\times)$ is a Lie algebra that does not have Lie subalgebras of dimension 2.

It is well know that $SO(3)$ is a 3-dimensional Lie group. My question is  $SO(3)$ don't has 2-dimensional Lie subgroups?


I am creating input tag with it's attributes by clicking on list item. Type, name and id are created successfully but it's not generating the class attribute.  var createInput = document.createElement("input");         createInput.type = "text";         createInput.name = text1;             createInput.id = text1;         createInput.class = "abc";

How can I change the class of an HTML element in response to an onclick or any other events using JavaScript?


If I  a  which had no counters on it, thus sending it to the graveyard, triggering the second ability and creating two tokens that are copies of it, do the copies which come into play also get -3/-3 because they're copies and Bile Blight says "until end of turn"?   A friend and I were discussing this and he seemed to think that it wouldn't since the token copies which came into play wouldn't haven been there when Bile Blight resolved, But I'm almost certain they would die since the card says "until end of turn", Bile Blight doesn't specify the creature as having been in control, and the ruling that "The name of a creature token is the same as its creature types, unless the token is a copy of another creature or the effect that created the token specifically gives it a different name."  But you never know, I could be wrong. Anyone have a certain answer?

My opponent casts , which resolves, then he attacks with his creatures.  In my hand, I have a creature card with Flash. If I summon this creature before the declare blockers step, will it be affected by Predatory Rampage's blocking requirement?


I'm trying to set up a custom sword shop on my server with command blocks, and i'm stuck trying to spawn a custom model, data item already renamed/colored.  You can do this: /give @p minecraft:diamond_sword{CustomModelData:1000001}  And you can do this: /give @p minecraft:diamond_sword{display:{Name:'{"text":"Ancient Sword","italic":false,"bold":true,"color":"light_purple"}'}}  Is there a way to combine the two, or chain 2 command blocks to get the same result? I'm not sure if I explained it well enough, but I would really appreciate some help on this. Thank you.

I have two commands I'd like to combine into one, but I'm not sure how to go about combining them. Is this possible?   Here are the commands. They work individually, I just can't seem to get them to work together:  /give @p jukebox 1 0 {CanPlaceOn:["minecraft:melon_block"]}     /give @p jukebox 1 0 {display:{Name:"Box"}}   Can you help me to add one of the commands to the other one?


How to cite a review from the media online using bib.tex? i.e. Shiller (2017). " Economy" Sciences. Jul.21.  Thanks in advance!

I want to cite an online brochure, but there is no author name, it is a brochure of a company. How can I cite  in BibTeX?


In response to possible duplicate question: I am trying to get access to my Google Drive files via the file manager. I am not trying to find and install a Google Drive client. I'm just talking about being able to access my Google Drive files from the files manager. I understand that this means no sharing links and the like.   I'm running the Cinnamon desktop environment on Ubuntu 16.04. I have followed all instructions to install Gnome Control Center and Online Accounts. It appears my Online Accounts has connected to the Unity Control Center, but when I try to run  ~$ gnome-control-center online-accounts   To access my Online Accounts settings, I get these warnings:  ** (gnome-control-center:5834): WARNING **: Ignoring launcher gufw (missing desktop file)  ** (gnome-control-center:5834): WARNING **: Ignoring launcher landscape-client-settings (missing desktop file)  ** (gnome-control-center:5834): WARNING **: Ignoring launcher ubuntuone-installer (missing desktop file)  ** (gnome-control-center:5834): WARNING **: Could not find settings panel "online-accounts"   I have already gone through and installed Gnome Control Center and rebooted. If I use the sudo apt-get to try and install it again, I get:  Reading package lists... Done Building dependency tree        Reading state information... Done gnome-control-center is already the newest version (1:3.18.2-   1ubuntu6). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   I'm rather new to Linux in general, but I've searched high and low and nothing has shown me anything beyond the basic how-to install Gnome Control Center bits. I have no idea why the terminal wouldn't be able to find what it needed. Please let me know if you need any more information about my setup. Like I said, I'm rather new, so I don't know what would be helpful.  EDIT:  I found an answer elsewhere that answered my question. I needed to run the command under the Gnome desktop, I guess? by adding:  sudo XDG_CURRENT_DESKTOP=GNOME gnome-control-center   It worked flawlessly.

I'd like to install a  client for Xubuntu (12.04).  I'm getting non-English Google results, and I didn't find  in the Xubuntu repositories.   Does anyone know of a client that works well for Ubuntu or it's supported derivates (or installation instructions for grive?)


It's closed, but there is probably some daemon waiting for the updates. Why it's even there? And why so much RAM?

I've been running Ubuntu 17.10 for a good while. Starting yesterday (April 9) the process gnome-software started using large amounts of memory. I don't know if it is related to the update that I took that day.  gnome-software grows to use up to 7G of memory (my system has 8G of RAM.)  This expands into eating up swap and root. My root usually runs at 51% of its total disk space and it went up to 96%. System ground to a halt. Had to power off. Only after some automatic disk cleaning (?) did root return to 51% usage on its own.  This happened twice yesterday and it is starting again today.  After running only 1 hour gnome-software is now using (according to system monitor) virtual mem=5.4G, Resident me=4.7G, memory=4.7G    More info:    This is continuing to happen.  The root disk space is being used in at least the file /var/log/syslog.  Over the last few hours it has grown to 4.9G in size.  I have to manually kill the gnome-software process and delete the log file to keep the computer functional.  When gnome-software starts using memory, the CPU jumps up and down  from 100% to 0%.  This can be seen in the system monitor program in the resources tab. I verified this by stopping the gnome-software process and CPU usage goes to almost nothing.  Telling the process to continue show CPU usage jumping all over again.  This CPU usage doesn't show up in "% CPU" on the process page.  Probably due to the refresh interval?    Even more info:    This is the error that repeats over and over in /var/log/syslog when this is happening. syslog was 1.7G when I caught it this time.  Apr 10 20:27:31 rwkeating-XPS-8300 gnome-software[2485]: g_byte_array_remove_range: assertion 'index_ + length <= array->len' failed Apr 10 20:27:31 rwkeating-XPS-8300 gnome-software[2485]: Ignoring unexpected response   I verified this by pausing the gnome-software process while doing a tail on syslog and then un-pausing the gnome-software process only to see the error flooding the log.  So it is caught in this loop.  Don't know what it means ... yet.


I have to update a row in the table if Id is already presents, else insert a new row in the database using Spring Jdbc Template. I tried using MERGE query but since i am operating on a single table, I could not able to pass my insertion parameter values from outside(Merge insert params should come from DB) as shown below.   MERGE INTO TABLENAME INDS USING (SELECT PRIMARY_ID SIC FROM TABLENAME  WHERE PRIMARY_ID = '223456789') E ON (INDS.PRIMARY_ID=E.PRIMARY_ID)  WHEN MATCHED THEN UPDATE SET INDS.ROW_MOD_ID='ManualUpdate', ROW_MOD_TMST=sysdate WHEN NOT MATCHED THEN INSERT  (INDS.PRIMARY_ID, INDS.ROW_CRE_ID, ROW_CRE_TMST) VALUES ('223456789', 'ManualInsert', sysdate);   I am using Oracle DB and worried about the performance. Is there any spring feature to address my problem? Any help is much appreciated.

The UPSERT operation either updates or inserts a row in a table, depending if the table already has a row that matches the data:  if table t has a row exists that has key X:     update t set mystuff... where mykey=X else     insert into t mystuff...   Since Oracle doesn't have a specific UPSERT statement, what's the best way to do this?


I wiped a 2008 imac and installed Lubuntu 18.10. My WiFi network doesn't show up although i have tried many things. It has a Broadcom BCM94321MC WiFi card and Ethernet works fine. when i run rfkill it only shows Bluetooth. I don't know much in terminal so please bear with me. TIA

I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.   What are the steps to install Broadcom wireless drivers for a BCM43xx card?  I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.    lspci -vnn | grep Network showed:   Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b]      iwconfig showed:  lo        no wireless extensions. eth0      no wireless extensions.   NOTE: Answer below is updated every time new information is added and confirmed working.


I want to use .on on dynamically created elements... Although its not working, and yes I am using a selector :)  $(".metadata").on("click", "i.icon-remove", function () {     console.log("what");     $(this).parent(".metadata").slideUp(function () { $(this).remove(); }); });   This works perfectly for existing content, but not for anything thats dynamically created.  Both initial and dynamic content use the exact same creation method so I know their signatures are the same, any ideas?  Here is my HTML as it stands, the first item is present in the HTML, the second is dynamically created
     <input type="text" value="" style="width: 200px;">

     <input type="text" maxlength="100" style="width: 200px;">

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.


I got an exercise on implementing a javafx-application of Minesweeper to do. I took an excerpt of the code in order to isolate the problem. In the code i read-in an Array of objects of type javafx.scene.control.Button. In another class i read out this array. Like in every javafx Application the whole is brought together in an Application-class. Compiling works. I get a nullPointerException when i run the Programm. That is my problem here. Probably the Array doesn't contain any objects. By the way i use separated classes because the exercise consists in the model-view-controller Designpattern.  import javafx.scene.control.Button;  public class GameButton extends Button {     public static GameButton[][] buttons = new GameButton[3][4];     public GameButton() {       for (int x = 0; x < buttons.length; x++) {          for (int y = 0; y < buttons[x].length; y++) {             buttons[x][y] = new GameButton();   //Read in the array          }       }    } }     import javafx.scene.layout.GridPane;  public class View extends GridPane {    public View() {        for (int x = 0; x<GameButton.buttons.length; x++) {          for (int y = 0; y<GameButton.buttons[x].length; y++) {             this.add(GameButton.buttons[x][y], x, y);// Read out the array          }       }    } }     import javafx.application.Application; import javafx.stage.Stage; import javafx.scene.Scene;  public class Main extends Application {     public void start(Stage stage) {       View view = new View();       Scene scene = new Scene(view);       stage.setTitle("Minesweeper");       stage.setScene(scene);       stage.show();    }     public static void main(String[] args) {       launch(args);    } }

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 got my first visa as Schengen business visa for Germany for two weeks with multiple entries. Using this visa, what are all countries I can visit near by Hamburg?   I'm travelling on next week, please suggest some countries and places to visit for this Feb month. This is my first visa and am not aware about this visa much. So please provide inputs

In case, if I get a multiple-entry Schengen visa in one of the embassies in Ukraine, Kyiv - should my first trip be to the country which issued the visa?  Any there any requirements of this sort? Does this condition vary depending on embassy which issued the visa?  What are the possible consequences on not visiting that country first? Does it somehow depend on country where the embassy is (i.e. non-Schengen and not EU members)?


The past, present and future tenses quite well represent what they are supposed to mean or be. But what's "perfect" about the perfect tense?  I am not asking for the usage of the perfect tense. I just need to know why they are called so.  Thank you.

Why is 'present perfect' present if it happened in the past? And why is it 'perfect'?


I want to print answers separately after the end of the the questions in exam document class. Guide me.   Which is/are the neighbouring countries of India? A. Nepal  B. USA  C. Thailand  D. China Who introduced mid-meal scheme in Tamil Nadu? A. Kamarajar  B. M.G.Ramachandran  C. C.N.Annadurai  D. Thandai Periyar   Solution: 1. (A, D) Hint: Thailand and USA are not neighbouing countries 2. (A) Hint: Kalvikanthiranda Kamarajar.

I'm using the exam class, and I want to add answers. Right now the solutions are printet after the question, but before the next question. Ideally they would be presented at the end of a serie of questions. I'd like either   the numeric or very simple one-line answers to questions (something like a new \begin{numans} ... \end{numans} environment), or  the entire solution as it is now with the solution environment,    at the end of the document. Any ideas?   An MWE:  \documentclass[a4paper]{exam} \usepackage[utf8]{inputenc} \printanswers  \begin{document}  \begin{questions} \addpoints \question This is the first question \begin{solution}     This is the solution to question one.  \end{solution}  \addpoints \question This is the second question \begin{solution}     This is the solution to questino two.  \end{solution} \end{questions}  \end{document}   Edit: the solution in Erik's suggestion is possible, but I would like to be able to stick to my already exam classed documents.


I am suresh from riyadh, sAUDI ARABIA last week i bought Samsung-Galaxy-S-DUOS-GT-S7562 mobile ..    i am facing a problem for Tamil font not supporting in facebook and tamil news.. Please help me..

Please excuse the length of this question. I need to explain all this to help others and to avoid helpful contributors to provide answer without asking clarifications.  My requirement in one line: "to enable an Android phone to display Tamil characters properly".  Elaboration: Tamil, like any other Indian language has complex character rendering system. Unlike English or other Latin based script, it has glyph (what you see in screen) composed of more than one character.  Android does not have ability to render such complex scripts (with exceptions). My aim is to know how I can provide such an ability to an Android phone or tablet.  Little background that I gathered so far: To display a glyph in screen, Android first needs a suitable font file.  Android device has a folder /system/fonts which has few of them.  The most interesting file in that folder is the DroidSansFallback.ttf.  As the name suggests, when Android's system fails to find a character in system fonts (that could be DroidSans.ttf or DroidSans-Bold.ttf etc) it falls back to search it in DroidSansFallback.ttf.  By replacing a suitable font file from PC (Latha.ttf or Lohit-Tamil.ttf - these are fonts for Tamil) and DroidSansFallback.ttf will enable to display Tamil characters in the device. It is not so easy to replace and it involves rooting the device and mounting the system as writable.   In spite of those troubles, even if the DroidSansFallback.ttf is replaced, the Tamil characters that are displayed are not rendered properly.  The Tamil character "தி" is a conjunct of two characters and instead of getting displayed as "தி", it will be displayed as "த ி" without space in between. Though this is enough to read short messages, it cannot be used to read books etc.  From Android 4.0 on wards, Tamil and other few languages are supported through browser as said in Android 4.x API overview as seen below.  Support for Indic fonts (Devanagari, Bengali, and Tamil, including the complex character support needed for combining glyphs) in WebView and the built-in Browser   The words to notice is "in WebView and the built-in Browser", which means that Tamil characters will be rendered perfectly if it is rendered as HTML content and will not be rendered otherwise.  Opera and other few browsers did this even before Android 4.0 by substituting image instead of character.  I noticed that in few devices that target Indian market (ex: LG Optimus One, most of Samsung phones and tablets) are able to display Tamil properly both in browser and even in places out of browser like in contacts, text messages, file names etc.  To my surprise they do this even in Android 2.3 onwards.  I also noticed that the same model targeting non-Indian country running same version of Android does not support Tamil character display.  This made me to investigate further and reached a conclusion that Android (as other Linux based OS) depends on a font rendering engine to display such complex characters.  The two engines that I came across are Skia and Harfbuzz. I noticed LG uses skia and Samsung uses Harfbuzz libraries in their devices to bring this ability.  I came across many websites suggesting to replaces these libraries and fonts. It did not work and results in freezing.  Fortunately I backed up using clockworkmod and hence I restored my phone.  Though I had explained this with Tamil, this is applicable for most of the Indian languages.  Here comes my question (if you are still reading;) ) Now, far sure it is clear that a TTF file should be present to provide characters and an appropriate libraries (libskia.so or libharfbuzz.so) are required to render them correctly.  Does any one know how these manufacturers are able to provide the ability? I am even ready to build my own ROM from AOSP (Android Open Source Project).


Why i have this error?     You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '22:59:45,5.122.42.79,logged in to BanTools)' at line 1 [1064]   @$log = "1"; $act = "logged in to BanTools"; $a = "Ramin";  if($log == "1" ) {  $visit = Array( 'username'     => $a, 'ctime'         => date("Y-m-d H:i:s"), 'ip_address'   => $_SERVER['REMOTE_ADDR'], 'action'       => $act );  $sql = "INSERT into act_log (".join(',', array_keys($visit)).") VALUES (".join(',', array_values($visit)).") ";  $db->sql_query($sql);   $db->sql_close(); }

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


I am trying to prove the following identity using a a combinatorial argument: $$\dbinom{n+r+1}{r}=\sum_{k=0}^{r}\dbinom{n+k}{k}$$

Given the identity  $$\sum_{i=0}^{n} \binom{k-1+i}{k-1} = \binom{n+k}{k}$$  Need to give a combinatorial proof   a) in terms of subsets  b) by interpreting the parts in terms of compositions of integers  I should not use induction or any other ways...  Please help.


"Whose birthday do you think IS IT?"    or "Whose birthday do you think IT IS?"   I know that for questions the verb to be goes in front of the personal pronoun, however, why I have this strong feeling 2 is the correct one? Maybe both?

Which one is correct? Leaning towards first one but I am unsure because a more basic version would be "How good is it?"


I know elliptic functions are examples of Doubly periodic function. Does triply periodic function exist? If yes, is there any method to construct this type of function. Can we extend this to n -periodic functions?  It is just my approach. I don't know whether it is right or not. Please explain.

A univariate function $f$ is periodic with period $p_1,\ldots,p_k$ if   $$f(z) = f(z + \sum_{i=1}^k n_i \cdot p_i)$$   for all complex $z$ and integers $n_i$. Elliptic function is an example of doubly periodic function.  that a triply periodic univariate function cannot exist, but why? Can't we follow the construction of elliptic functions that uses Schwarz-Christoffel formula to map upper-plane onto a triangle, and use the reflection principle to create a lattice which corresponds to three periods?     Which step fails to hold when we mimic the construction of an elliptic function to create a triply period meromorphic univariate function?   Sorry if the question is stupid. I do not have an access to the original proof that a triply periodic function cannot exist, either. So references are welcome!


We recently moved our Drupal sites to a Linode server. One of those sites has a lot of users filling forms.  The previous server sent, with no problem, all form registrations to an email address, this is not the case for our new Linode server. Some user registrations never get delivered to the appropriated inboxes.  Do we need to install a mail server (sendmail, postfix) to get the PHP mail function running smoothly as in the previous server?  If yes, a great link to get us started would be appreciated.  If no, what should we do to get the mail function working correctly?

This is a  about how to handle email sent from your server being misclassified as spam.  For additional information you may find these similar questions helpful:                    Sometimes I want to send newsletters to my customers. The problem is, that some of the emails get caught as spam messages. Mostly by Outlook at the client (even in my own Outlook 2007).  Now I want to know what should be done to create "good" emails. I know about reverse lookup etc., but (for example), what about a unsubscribe link with an unique ID?  Does that increase a spam rating?


Hi my question is that does base64_encode does unique data every time we run the script?  Below is the code.      <?php     $id = 1;     echo base64_encode($id);     ?>   If it does not provide the unique data every time then what is the point in encoding the string and passing in url. Does that make url safe??

I've heard people talking about "base 64 encoding" here and there.  What is it used for?


i have a php script having some inputs and applied mysqli_real_escape_string() function to filter ..which are shown below       $owner      = mysqli_real_escape_string($conn,$_POST['owner']);     $purpose     = mysqli_real_escape_string($conn,$_POST['purpose']);     $type        = mysqli_real_escape_string($conn,$_POST['type']);     $city        = mysqli_real_escape_string($conn,$_POST['city']);     $location    = mysqli_real_escape_string($conn,$_POST['location']);     $description = mysqli_real_escape_string($conn,$_POST['description']);     $price       = floatval($_POST['price']);     $land_area   = floatval($_POST['area']);     $bedrooms    = intval($_POST['bedrooms']);     $bathrooms   = intval($_POST['bathrooms']);     $expire      = mysqli_real_escape_string($conn,$_POST['expire']);   and below is the insert query  $query = "INSERT INTO add_property SET owner='".$owner."',purpose='".$purpose."', property_type='".$type."',city='".$city."',location='".$location."',description='".$description."',price='".$price."',land_area='".$land_area."',bedrooms='".$bedrooms."',bathrooms='".$bathrooms."',property_expire='".$expire."',image_url='".$targetfile."'"; $result = mysqli_query($conn,$query) or die(mysqli_error());   Problem it converts the string and add a slach if (  ' )etc if found like for 'abc it converts it to \'abc but not saved to database ... it saved to DB as is like ..'abc

Im using smarty and mysql_real_escape_string() for user input, and when I insert some code with ' or " , and lookup in phpmyadmin it shows without backslashes.  When I get record from DB i doesn't have backslashes also. But when I just pass escaped string without inserting into the db it is backslashed.  Shouldn't it add slashes, insert with them and then I would  strip them when i would output? Or am I missing something?


I have a client who is accessing my website through a proxy and is getting different results then the clients we are accessing my site directly.  I want to replicate their system, how can I set up a proxy server locally to replicate their issue?

I am trying to see if I can have a specific Hosts file that only a Proxy Server application on my machine will use while the remainder of the machine uses the normal proxy server.  For example, I want to take (and this is JUST AN EXAMPLE) www.cnn.com and map it to 127.0.0.1. However, I only want this to happen when connected to a proxy server application running on my machine.  Then I would configure Firefox to use the Proxy Server while IE doesn't use the Proxy server.  Could I use something like Fiddler, Charles, or some other Proxy/Debugger and have only that application use a custom Hosts file?  Why? This allows me to compare the live web site with what I have developed locally. Trust me, I need the host name mapping for a reason. I'm using HTML from the live site with local CSS changes. I need to compare those CSS changes to what is in Production environment.


I am going through the ISLR book (by Hastie, et al.). In the chapter on model validation, the author suggests that we build the final model on the full data instead of the training data only. The way I always understood the process is that we build the model on training set, validate it with test set and finalize the model. If we use the full data to build the model then what is the point of anything that we did before that step? Thank you!

TL:DR: Is it ever a good idea to train an ML model on all the data available before shipping it to production? Put another way, is it ever ok to train on all data available and not check if the model overfits, or get a final read of the expected performance of the model?    Say I have a family of models parametrized by $\alpha$. I can do a search (e.g. a grid search) on $\alpha$ by, for example, running k-fold cross-validation for each candidate.   The point of using cross-validation for choosing $\alpha$ is that I can check if a learned model $\beta_i$ for that particular $\alpha_i$ had e.g. overfit, by testing it on the "unseen data" in each CV iteration (a validation set). After iterating through all $\alpha_i$'s, I could then choose a model $\beta_{\alpha^*}$ learned for the parameters $\alpha^*$ that seemed to do best on the grid search, e.g. on average across all folds.  Now, say that after model selection I would like to use all the the data that I have available in an attempt to ship the best possible model in production.  For this, I could use the parameters $\alpha^*$ that I chose via grid search with cross-validation, and then, after training the model on the full ($F$) dataset, I would a get a single new learned model $\beta^{F}_{\alpha^*}$   The problem is that, if I use my entire dataset for training,  I can't reliably check if this new learned model $\beta^{F}_{\alpha^*}$ overfits or how it may perform on unseen data. So is this at all good practice? What is a good way to think about this problem?


My system is overheating frequently, and sometimes it shuts down, so I think I have to install the AMD/Intel Hybrid drivers to fix this problem... My laptop is  and I am running Xubuntu 16.04 amd64 (I made a zero installation today).  02:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Thames [Radeon HD 7550M/7570M/7650M] [1002:6841] (prog-if 00 [VGA controller])   This is what I have tried:   Installing drivers with sudo apt-get install fglrx fglrx-amdcccle fglrx-dev -- didn't work. Installing drivers with .deb packages from  -- didn't work. Following the instructions here and here -- didn't work.   Now I am trying to install the drivers manually, as described  and in  using  that I have downloaded from AMD Website.  When I try to run the .run file as root, this error message appears:  ERROR: Please install the required pre-requisites before proceeding with AMD Catalyst installation. Please check file usr/share/ati/fglrx-install.log for more details   I have checked the /usr/share/ati/fglrx-install.log and the content is:  NOTE: If your system has logged the missing packages required for installation, install them in the order as per the log file to resolve package-dependency issues.  fglrx installation requires that the system has kernel headers.  /lib/modules/4.4.0-22-generic/build/include/linux/version.h cannot be found on this system. Install kernel headers using the command apt-get install linux-headers-4.4.0-22-generic.   So I ran sudo apt-get install linux-headers-4.4.0-22-generic and:  Reading package lists... Done Building dependency tree        Reading state information... Done linux-headers-4.4.0-22-generic is already the newest version (4.4.0-22.39). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I have 14.04.5/16.04 or newer and an AMD GPU. I'm not getting the performance I want, and some programs say they need things like OpenCL.  I've heard about fglrx, but if I try to install it on my machine, it breaks and I have no GUI.  Is there anything I can do to get my AMD card working to its full potential?


I created a live USB from the Ubuntu 16 AMD64 iso using Startup Disk Creator.  But every time I try to boot from the USB, it shows the error   vesamenu.c32: not a COM32R image.    I have an HP pavilion g6 with an Intel i3 64 bit processor. What do I do? Is ubuntu 16 not compatible with my laptop version?

After installing 11.10 on my Dell Studo 15 (Model 1557) laptop, it started to overheat. Recently it even shutdown twice saying that critical temperature has reached even when I was just idling (not even a single program was open except for Firefox). After learning that it is a problem with 3.0.0 kernel I decided to roll back to 10.04 LTS. I have downloaded the most recent   from ubuntu.com and created a live USB using startup disk creator in 11.10.  But when I am trying to boot from USB I am getting the following error  vesamenu.c32: not a COM32R image   I have installed ubuntu from usb stick a couple of dozen times before this and I think it is not a problem with my hardware. Please tell me what to do.


I have tried very hard to manipulate this limit, but can't seem to find what the answer is. Can someone give me an explanation to what the limit would be.  $$\lim_{n\rightarrow \infty} e^{-n}\cdot \sum_{i=1}^n \frac {n^i}{i!} $$

I'm supposed to calculate: $$\lim_{n\to\infty} e^{-n} \sum_{k=0}^{n} \frac{n^k}{k!}$$ By using WolframAlpha, I might guess that the limit is $\frac{1}{2}$, which is a pretty interesting and nice result. I wonder in which ways we may approach it.


I can't from find this answer I tried whole day please help

What is the simplest way to find out the area of a triangle if the coordinates of the three vertices are given in $x$-$y$ plane?   One approach is to find the length of each side from the coordinates given and then apply . Is this the best way possible?   Is it possible to compare the area of triangles with their coordinates provided without actually calculating side lengths?


If I'm not mistaken, a total of 14 Valar, not including Melkor, are named in The Silmarillion.  Are these the only Valar, or are there others who are not named/mentioned?    Bonus question:  As I understand it, all the Ainur were either Valar or Maiar, and any Ainur who isn't a Vala is a Maia, and vice versa (the special case of Melkor notwithstanding).  Is this correct?

This is my understanding:   Before Ilúvatar created , he created the Ainur, who were with him in his . At Eä’s creation, some of the Ainur chose to enter the world and be bound to it. Of the Ainur who entered Eä, the fifteen most powerful were called the Valar (or ). The others were called Maiar. The Valar and Maiar cannot leave Eä until the end of the world. I don’t know whether they gave up any other powers.   From the Ainulindalë, about the Valar being more powerful than the Maiar:     And the Valar drew unto them many companions, some less, some well nigh as great as themselves.   Later in the Ainulindalë, emphasis mine:     Thus it came to pass that of the Ainur some abode still with Ilúvatar beyond the confines of the World; but others, and among them many of the greatest and most fair, took the leave of Ilúvatar and descended into it. But this condition Ilúvatar made, or it is the necessity of their love, that their power should thenceforward be contained and bounded in the World, to be within it for ever, until it is complete, so that they are its life and it is theirs. And therefore they are named the Valar, the Powers of the World.   The passage above only mentions the Valar, but I am under the impression that it applies to the Maiar too.  Do we know anything about the Ainur who chose not to enter Eä at its creation?   Do they have a name, other than “the Ainur who remained in the Timeless Halls”? Are they able to enter and leave Eä now that it’s created? Could any of these Ainur be more powerful than the Valar? Were the Valar the most powerful of all Ainur, or only of those who chose to be bound to Eä? The passage about says that many of the greatest Ainur entered Eä, but it seems like a few of the absolute greatest could have stayed behind.


I'm new to coding and python. I've taken an intro comp sci class but I still feel out of my depth when trying to understand most code so please forgive me if this question seems poorly placed.   I'm taking an algorithms class on Edx, which has an automatic grader. Starter code is provided for each problem and contains a section like the one below. This section is particularly difficult for me to understand.   I believe what will be fed into the function I write is a list that will look like this [1:2,4:6,7:10], but I'm not really sure.   I'm hoping someone could help me understand this code, so I can design a function around the data.   if __name__ == '__main__':     input = sys.stdin.read()     data = list(map(int, input.split()))     n = data[0]     m = data[1]     starts = data[2:2 * n + 2:2]     ends   = data[3:2 * n + 2:2]     points = data[2 * n + 2:]     #use fast_count_segments     cnt = naive_count_segments(starts, ends, points)     for x in cnt:         print(x, end=' ')   Further, I don't really understand how to test this code on my own computer so that I can figure it out on my own. Any help would be much appreaciated. Thanks in advance.

I need a good explanation (references are a plus) on Python's slice notation.   To me, this notation needs a bit of picking up.   It looks extremely powerful, but I haven't quite got my head around it.


I accidentally started a backup from /dev/sda3 my root partition that is formatted as ext4 to my backup hard drive dev/sdb2 which was formatted as NTFS. I did this using the dd command:  dd if=dev/sda3 of=/dev/sdb2   When I recognized the mistake I canceled the command, but now when I run lsblk -f it lists the backup hard drive as ext4.   I am also not unable to mount the disk. I receive this error:  mount: /media/HD: wrong fs type, bad option, bad superblock on /dev/sdb2,  missing codepage or helper program, or other error.   Is there anyway to rescue any of the files on the hard drive that may not have been overwritten?

I was messing around with my new hard drive, which only contains some personal files, and to check its write speed, I typed: sudo dd if=/dev/zero of=/dev/sda, /dev/sda/ being the new 2 TB connected to my Raspberry Pi.  Hopefully, I cancelled the command and only 11 MB have been written. Now disk content can't show up, and now parted tell me that the partition tree is like this:  |--- unallocated 8.00 MB |--- unknown 1.82 TB |--- unallocated 9.08 MB   Before, it was like this:  |--- ext4 1.82 TB   I don't know if dd did overwrite the first 11 MB of the disk, which means that the partition table have been totally overwritten, or random bits of the hard drive have been overwritten.  Now the hard drive is connected to my Xubuntu 14.04 laptop as /dev/sdb. I've tried gpart which is still running, and also testdisk without success.  Knowing that the whole disk was ext4 and that sector size was 4096, is it possible to recover the partition table without re-formating and make me able to access my files again (even if some have been corrupted/deleted)? Or the only solution I have is to use a file recovery tool, which would be tiresome because of the amount of data to copy stored on this drive?


I am using  module but I want to change the taxonomy path from  taxonomy/term/tid to subject/term title.

I am trying to make a taxonomy menu using the with a custom path for the taxonomy terms. Instead of /taxonomy/term/tid I want /proj/!tid (or ultimately /proj/!term-name but I'll settle for what I can get). I have the taxonomy menu working fine when I leave the "menu path type" setting to default, which leaves it as /taxonomy/term/tid. Whenever I try to use the "vocabulary path" option though, the menu terms all disappear. I've tried to follow the instructions in the .  I have a view with Taxonomy: Term ID (with depth) and Taxonomy: Term ID depth modifier arguments and a page display with the path set to proj/%. I've tried additionally making a url alias at proj and proj/% but that didn't seem to make any difference. But basically whenever I set the menu path type to "vocabulary path" ("custom path" in the documentation), the menu items all disappear. The terms are still there, and I can navigate to /proj/%, but there are no menu items.  Any help with how to have a custom path for the vocabulary while keeping the menu items would be greatly appreciated.


What is a good way to remember the essential angles from the unit circle? For instance $$\cos\left(\frac{\pi}{4}\right)=\frac{\sqrt{2}}{2} \text{ and } \sin\left(\frac{\pi}{4}\right)=\frac{\sqrt{2}}{2}$$

Is there any way to easily memorize these? Such as $\sin \frac{\pi}{6} = 1/2$. Any help needed!!!


Using ArcGIS API for JavaScript 3.22 and having two given Points as  var pt1 = new Point(-106.61, 35.1107, new SpatialReference({ wkid: 4326 })); var pt2 = new Point(-108.61, 35.1107, new SpatialReference({ wkid: 4326 }));   can you please let me know how I can calculate the distance from pt1 to pt2?  var map;     require([              "esri/map",              "esri/geometry/Point",              "esri/SpatialReference",              "esri/geometry/webMercatorUtils",              "dojo/domReady!"  ], function(Map, Point, SpatialReference, webMercatorUtils) {   map = new Map("map", {        basemap: "topo",        center: [-106.61, 35.1107],        zoom: 8  });  var geometryService = new esri.tasks.GeometryService("https://utility.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer");   var pt1 = new Point(-106.61, 35.1107, new SpatialReference({wkid: 4326 }));  var pt2 = new Point(-108.61, 35.1107, new SpatialReference({wkid: 4326 }));  });

The function  should calculate distances between two points.  When I am trying to calculate distance between points having 100 meters between them  p1=new esri.geometry.Point(3997030.6690969253, 7444299.320646087, new esri.SpatialReference({ wkid: 102113 })); Object p2=new esri.geometry.Point(3996951.455397143, 7444142.154020177, new esri.SpatialReference({ wkid: 102113 })); Object esri.geometry.getLength(p1, p2) 176.00045037719127   I am getting 176 which is wrong. Projection is Web Mercator (WKID 102113).    @Krystian found that getLength uses just Pythagoras theorem to calculate length. So it gives length in projection meters. How to obtain distance in real meters?


I'm playing a game that is using JavaScript to get system time, and I need the best time in the game I can get, I tried Cheat Engine but, as I said game uses JavaScript, so it is of no help to me. I tried SleederXP, but it didn't help either. I have Ubuntu installed so I tried libfaketime but I didn't know how to use it on Firefox. So is there a way to slow system time on Windows, for example that 5seconds real time is shown as 1sec?

Obviously I'm talking about time in terms of the PC clock rather than real time.  We were testing an application we've developed at work by setting the clock forward and back to simulate different scenarios and I started thinking how useful it would be if you could adjust the rate(?) of the system clock with finer control. So you could make a minute pass in a second or a day pass in 30 seconds and watch how the program you're developing copes with changes in date and time.  Is there any such software available?   I'd be interested to hear if anyone knows of any software or hardware which can let you do some or all of the above.


I have simple application. I have an arraylist and this list includes websites. I have an error when I click the button. The error is ;  A first chance exception of type 'System.InvalidOperationException' occurred in System.Windows.Forms.dll Additional information: Cross-thread operation not valid: Control 'listBox2' accessed from a thread other than the thread it was created on. If there is a handler for this exception, the program may be safely continued.  Codes are below:     private void button2_Click(object sender, EventArgs e) {         for (int i = 0; i < sitelist.Count; i++) {             Thread thread = new Thread(getStatus);             thread.Start((string)sitelist[i]);         }     }     private void getStatus(Object obj) {         listBox2.Items.Add("1");     }  When I wrote the code like:     private void getStatus(Object obj) {          MessageBox.Show((string)obj);     }  it works. Why it shows error when I use listbox ? Sincerely. Ömer.

I have a scenario. (Windows Forms, C#, .NET)   There is a main form which hosts some user control. The user control does some heavy data operation, such that if I directly call the UserControl_Load method the UI become nonresponsive for the duration for load method execution. To overcome this I load data on different thread (trying to change existing code as little as I can)   I used a background worker thread which will be loading the data and when done will notify the application that it has done its work.   Now came a real problem. All the UI (main form and its child usercontrols) was created on the primary main thread. In the LOAD method of the usercontrol I'm fetching data based on the values of some control (like textbox) on userControl.    The pseudocode would look like this:  CODE 1  UserContrl1_LoadDataMethod() {     if (textbox1.text == "MyName") // This gives exception     {         //Load data corresponding to "MyName".         //Populate a globale variable List<string> which will be binded to grid at some later stage.     } }   The Exception it gave was     Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on.   To know more about this I did some googling and a suggestion came up like using the following code  CODE 2  UserContrl1_LoadDataMethod() {     if (InvokeRequired) // Line #1     {         this.Invoke(new MethodInvoker(UserContrl1_LoadDataMethod));         return;     }      if (textbox1.text == "MyName") // Now it wont give an exception     {     //Load data correspondin to "MyName"         //Populate a globale variable List<string> which will be binded to grid at some later stage     } }   BUT BUT BUT... it seems I'm back to square one. The Application again  become nonresponsive. It seems to be due to the execution of line #1 if condition. The loading task is again done by the parent thread and not the third that I spawned.  I don't know whether I perceived this right or wrong. I'm new to threading.  How do I resolve this and also what is the effect of execution of Line#1 if block?  The situation is this: I want to load data into a global variable based on the value of a control. I don't want to change the value of a control from the child thread. I'm not going to do it ever from a child thread.   So only accessing the value so that the corresponding data can be fetched from the database.


why do i get two heads with this code? how can i get rid of that one at the end?  \documentclass[a4paper,10pt]{article} \usepackage[latin1]{inputenc} \usepackage{tikz}  \begin{document} \begin{tikzpicture}   [     important line/.style={thick,shorten <=4pt,->}   ]     \draw[important line] (8.5,1.5) coordinate (A)  edge node[above,sloped] {\tiny text}  (7,2.7)         coordinate (B) node[] {};  \end{tikzpicture} \end{document}

When I draw an edge between two nodes with anchors and globally set option [->], I get an additional arrow tip symbol at the beginning of the last edge in the path. For example in  \documentclass{article} \usepackage{tikz}  \begin{document} \begin{tikzpicture}     \node (A) at (0,0) {$A$};     \node (B) at (1,0) {$B$};      \draw[->] (A.north east) edge (B.north west);      \draw (A.south east) edge[->] (B.south west); \end{tikzpicture} \end{document}   the first \draw command produces incorrect output, while the second produces correct output:    Am I doing something wrong, or is this a bug in TikZ?


Consider this:  The meeting has been postponed.  How would the above example be said in AE or BE if the word "postponed" were to be replaced by its antonym?

According to ,  Prepone is an Indian English word which means "to move to an earlier time", used as an antonym to "postpone". For example:      "The publication date has been preponed from July to June".   Interestingly, it also mentions that the word is largely unheard outside the subcontinent.  So, my question is, what word or phrase do the natives outside Indian English speaking ones use to imply the same thing ? Is it simply "moved" or something else?


I tryed to install Skype and then this  Website works fine,I rebooted but it still does not work I also imported their certificate.Is there anything I can do?  Here's the poignant part of the error:  Err https://download.01.org/gfx/ubuntu/14.04/main/ trusty/main libdrm2 i386 2.4.56-1   Failed to connect to download.01.org port 443: Mreža je izvan dosega Err https://download.01.org/gfx/ubuntu/14.04/main/ trusty/main libdrm-intel1 i386 2.4.56-1   Failed to connect to download.01.org port 443: Mreža je izvan dosega E: Failed to fetch https://download.01.org/gfx/ubuntu/14.04/main/pool/main/libd/libdrm/libdrm2_2.4.56-1_i386.deb  Failed to connect to download.01.org port 443: Mreža je izvan dosega

So I had intel-Linux-graphics-installer on my computer  but lately when I   sudo apt-get update   I get the following error  Err https://download.01.org trusty/main amd64 Packages                          server certificate verification failed.  CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none   Tried reinstalling intel-linux-graphics-installer but nothing happend. And various solutions found here on askubuntu.com on certificates problems but didnt end up anywhere.  Any ideas on how to get that CRLfile? Also is this problem on my side or on the servers side?


Pretty much what the title says. DES was suspected of having one, but I couldn't imagine what it could possibly look like if only the NSA knew how to use it. Dual_EC_DRBG's backdoor is asymmetric, but it's not a cipher. Could one have a kletographic symmetric key cipher?

How can you put a backdoor into an encryption algorithm? Are there any techniques that can be used to reduce the time it takes to break a key?  I am looking for practical examples encryption schemes that have backdoors, because they were designed to or new techniques exposed them. It is my understanding that you can use a lack of entropy and diffusion in block ciphers which will reduce the necessary time that it takes to break a key. This is especially true with s-boxes, which can be designed to not increase the strength of the key. As for one-way algorithms, using none-primes can make it easier to reverse keys. What are other decisions that can be made to make a broken encryption algorithm?   The goal is find examples that can be used for encryption pedagogy, by collecting a sample of weak ciphers to practice on.


I would like in insert a picture in latex with a file contains latin1 characters, however i get an error  \documentclass{article}  \usepackage{graphicx} %package to manage images \graphicspath{ {./images/} }  \begin{document}  \includegraphics[width=1\textwidth,height=6cm]{images/Côte d'Ivoire_Pillar.eps}   \end{document}

This question has been asked a lot, but for reason I cannot get it to work. I'd like to include a .eps image in my document - I am using pdflatex in TeXMaker. Below is the input (I am providing the whole preamble incase there is some interference.   \documentclass[11pt]{article} \usepackage{times} \usepackage{graphicx} \usepackage{epstopdf} %converting to PDF \usepackage{amssymb} \usepackage{amsmath} \usepackage{mathtools} \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} \usepackage[parfill]{parskip} \setcounter{secnumdepth}{5} %how deep sections are numbers \usepackage{float} \usepackage[font={sf,footnotesize},labelfont=bf, justification=justified, singlelinecheck=off]{caption} \usepackage[font=footnotesize]{subcaption} \usepackage[scaled]{helvet}  \usepackage{titlesec}  \usepackage[T1]{fontenc} \usepackage[export]{adjustbox} %for large figures \usepackage{upgreek} \usepackage{microtype} \usepackage{setspace} \singlespacing \usepackage[defaultlines=4,all]{nowidow}  \includegraphics[scale=1]{/../model_1_2.eps}    The error I get is:      ! Package pdftex.def Error: File `/model_1_2-eps-converted-to.pdf' not   found.See the pdftex.def package documentation for explanation.Type H    for immediate help.... .../../model_1_2.eps}   I hope someone can help.


I've installed System Load Indicator and set 'autostart' in preferences. For some reason it doesn't load at starting system.  How to find out the name/command of this application and then I can add it to "Startup  Applications Preferences"? Thanks.

How can I make an application automatically start when I have logged in?


This is My Query in Linq   VAR x = FROM n IN _db.tbl_maint_activity_material_details             JOIN availablity IN _db.tbl_maint_item_availability ON n.mamd_lotno equals availablity.mia_lot_no && n. ////   Here im not able to countine my Code Please Help me  This is My SQL query  SELECT * FROM   tbl_maint_activity_material_details AS _material        JOIN tbl_maint_item_availability AS availablity             ON  _material.mamd_maint_item_id = availablity.mia_maint_item_id             AND _material.mamd_lotno = availablity.mia_lot_no WHERE  _material.mamd_status = 24

I need to do a LINQ2DataSet query that does a join on more than one field (as  var result = from x in entity join y in entity2         on x.field1 = y.field1  and            x.field2 = y.field2   I have yet found a suitable solution (I can add the extra constraints to a where clause, but this is far from a suitable solution, or use  solution, but that assumes an equijoin).  Is it possible in LINQ to join on multiple fields in a single join?  EDIT  var result = from x in entity              join y in entity2              on new { x.field1, x.field2 } equals new { y.field1, y.field2 }   is the solution I referenced as assuming an equijoin above.  Further EDIT  To answer criticism that my original example was an equijoin, I do acknowledge that, My current requirement is for an equijoin and I have already employed the solution I referenced above.  I am, however, trying to understand what possibilities and best practices I have / should employ with LINQ. I am going to need to do a Date range query join with a table ID soon, and was just pre-empting that issue, It looks like I shall have to add the date range in the where clause.  Thanks, as always, for all suggestions and comments given


Is there any book on analytical mechanics that covers all the materials in-depth as in Goldstein but in a more organized way?

I'm taking a course on  and  Dynamics, and I would like to find a good book/resource with lots of practice questions and answers on either or both topics.  So far at my university library, I have found many books on both subjects, but not ones with good practice questions and answers. I have Schuam's outline of Lagrangian Dynamics, but didn't really find a lot of practice questions.  Any suggestions would be greatly appreciated!


Does Q play games with other species, or is it just humans (and possibly the Calamarain)? Why didn't Q torture the humans (as far as we know) as he did the Calamarain?

I was surprised to be reminded that while Q appeared many times on The Next Generation and Voyager, he also appeared in one Deep Space 9 episode "Q-less".  Obviously, this is pretty lucky that he happens to have interacted with exactly the three crews we have TV shows about.  We know he interacted in the past with the El-Aurians (Guinan), the Borg, and any number of single-reference species.    But the obvious ones I can think of are throwaway references or backstory.  Are there any canon references to Q interacting in a more concrete way, in contemporary times with a major race (from our point of view) such as a Federation member, another Federation ship, the Klingons, Romulans, Ferengi, etc?


How can I break a wood block in Adventure mode?

I know that I can make certain blocks only placeable on a specified block, but what is the command to give an item that can only BREAK certain blocks?


I am developing a SharePoint 2013 hosted app. I would like to use in my app the color of the style site. How can I retrieve the information of the style used by the site using JS? Thanks,Nk

I am building a Sharepoint 2013 App in Javascript / HTML / CSS and I want to implement / inherit the color / class / css used by the theme.  How do I do this?  I want to ensure consistency through usage of the same colors.  Thanks in advance!


According to my understanding, and my calculator, cos(90 degrees) equals 0. In my code, I have a function that allows me to type in degrees whenever I need to:  function deg(i) {     return i*Math.PI/180; }   Although, when calling Math.cos(deg(90)); the output I receive is 6.123233995736766e-17.  Why could such a thing possibly happen?  (Please excuse me for my bad English)

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


The company I work for is investigating creating a new product which will be a web application used within hospitals. I am attempting to get concrete numbers on how many hospitals (or percentage of hospitals) are running various OS and browsers (i.e. what % is still using IE6, vs IE7). In general I'm surprised I haven't found anything which grouped browser usage by industry, is anyone familiar with a resource like that?

Am wondering if somewhere there is a list of industry "minimums" for browser support. My company release two "portals" over the past 6 months and did very little to support IE8 users, who at this time, according to my G Analytics makes up about 14% of all IE visitors. Amazingly enough IE7 is 25%...  Figured support for IE7 was out the window already, but figured 14% was significant enough to warrant some support.  Any arguments to support my side of wanting to support IE8?  Any arguments to NOT support IE8?


Simple question that I couldn't find an answer to online, I created a GUI class that extends JFrame and in the constructor I create the Frame using "setSize(10,10);" and so on, however, many online examples use "this.setSize(10,10);" so my question is; is there any difference at all in the following:  setSize(10,10); this.setSize(10,10);

what about using "this" with methods in Java? Is it optional or there are situations when one needs to use it obligatory?  The only situation I have encountered is when in the class you invoke a method within a method. But it is optional. Here is a silly example just to show what I mean:  public class Test {      String s;      private String hey() {         return s;     }      public String getS(){         String sm = this.hey();         // here I could just write hey(); without this         return sm;     } }


I'm getting this error:  OS X could not be installed on your computer An error occurred while extracting files from the package "Essentials.pkg". Quit the installer to restart your computer and try again.  Every time I restart, it installs until "19 minutes" are left and gives me the exact same error. I have no idea what to do because apparently no one else is having this problem.

The Mac OS X 10.10 (Yosemite) installer fails to extract any files onto my drive:  OS X could not be installed on your computer An error occurred while extracting files from the package "Essentials.pkg". Quit the installer to restart your computer and try again.  However, I have reinstalled Mac OS X 10.9.5 (Mavericks) just fine, which leads me to believe there’s something wonky going on with the installer. Judging by the comments on , it seems like this error might be occurring with people who have installed SSDs in their old MacBooks. I have a mid-2010 MacBook with a 512GB SSD in the main hard drive slot and a secondary 250GB HDD in the DVD drive bay. I also have installed 16GB of RAM in this laptop. So far all of the new hardware has worked fine for the past 6 months so I doubt my issues are due to faulty hardware. I am trying to perform the install on a freshly formatted partition. Here is the . Here’s  from when I was trying to upgrade the OS instead of using a freshly formatted partition.


I am studying the series and parallel combinations of capacitors and resistors. I do know that voltage is divided in series whereas it's the same for all circuit components in parallel combination and the vice versa for current, I just want to know the logic behind it. I have read other posts about it, but I don't quite understand them so I'd just like a summarized, to the main point answer. Any help would be appreciated.

Voltage is defined as Joules/Coulomb. Thus the energy that each electrons carries is higher the higher the voltage translating in higher kinetic energy or higher current. If an electron moves through a resistor with high resistance it should lose more kinetic energy by bumping into other atoms giving up thermal energy. However in a parallel circuit the voltage drop remains always the same at every resistor no matter what the resistance is. I just cannot figure out why.


OK, see : (10K only)        The time of deletion of the answer is exactly the time of deletion of the question. The answer was deleted by its author once but then undeleted so by the time the question got deleted, the answer was there visible to all and undeleted. It can be seen in the :        It should show just "deleted 22 hours ago", just like on :        What made me find that bug is , I was about to reply "Sure, you deleted it yourself" then noticed the oddity.

I have deleted a  (the link is for 10k users on Drupal Answers), and one of the answer is shown as deleted by the owner, which is not what happened, as I deleted the question, and (indirectly) all the answers.    There was also a pending undelete vote it was not present before I deleted the question; when I voted to undelete it the answer was effectively undeleted. (The answer is now shown as deleted, for those who can see the question I am referring.) Still, I don't understand how there could be an undelete vote, when the answer was not deleted, before I deleted the question.  When I deleted the question, Dave Reid was reported to be seen 18 hours before I deleted it. He could have not deleted his own answer in the same moment I was deleting the question.  Update  Looking at  (the link is for 10k users on Drupal Answers), I notice the following.    What happened is that effectively the author of the answer deleted the answer, but then undeleted it. When I deleted the question, the system remembered the undelete vote casted from the author, but it didn't remember that vote already had effect; in fact, when I undeleted the answer, the answer is said to be undeleted from the author, and from me (third entry in the screenshot), when it was just me to undelete it because the user logged in 18 hours before I deleted the question.


I'm trying to make an ebook, on windows 7 sp1, with both italian and cyrillic (and chinese in future). Minimum example with LuaTeX, Version 1.12.0 (MiKTeX 20.11): \documentclass[12pt,a4paper,openright,oneside]{book} \usepackage{fontspec} \setmainfont{Dejavu Serif} \setmonofont{Courier New} % \begin{document} aeeiou  \'a\'e\'i\'o\'u  àèéìòù  пожалуйста \end{document}   Compiling with lualatex.exe works fine:  but it does not with: C:\PATH>tex4ebook.exe -l .\file.tex "html5,charset=utf-8" " -cunihtf -utf8" that gives:  The problem is already there in the html file. I have also tried the command without the options, i.e. C:\PATH>tex4ebook.exe -l .\file.tex. The same apply with pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.11), C:\PATH>tex4ebook.exe .\file.tex and: ... \usepackage[T2A,T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[russian,italian]{babel} ... \foreignlanguage{russian}{пожалуйста}  This example misses the cyrillic hen compiled with lualatex, but does not solve the accents problem either:  Thanks a lot.

I'm trying TeX4ebook on the following minimal LaTeX file: \documentclass{article}  \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{csquotes}  \title{Título} \author{Autor} \date{Fecha}  \begin{document}  \maketitle  \textquote{¡Hola, mundo!} áéíóúÁÉÍÓÚüÜñÑ.  \end{document}  Accented characters appear in the epub file as á´aé´eí´ıó´oú´uÁ´AÉ´EÍ´IÓ´OÚ´UüÜñ˜nÑ˜N. Umlauts are fine.  Following the suggestions , I'm calling tex4ebook with the following options: tex4ebook -t tex4ebook-test-spanish.tex "html5,charset=utf-8" " -cunihtf -utf8"  All messages from tex4ebook seem to be fine: [STATUS]  tex4ebook: Conversion started [STATUS]  tex4ebook: Input file: tex4ebook-test-spanish.tex HTML Tidy for Linux version 5.6.0 [STATUS]  tex4ebook: Conversion finished  I'm using the TeXLive version that comes packaged with Ubuntu 20.04.


For example,  \documentclass{article}  \usepackage{graphicx}  \begin{document} % left \includegraphics[trim={5cm 0 0 0},clip]{example-image-a} % right \includegraphics[trim={0 0 5cm 0},clip]{example-image-a} \end{document}   This trims the figure, with the appropriate side,  Suppose I want crop the figure in a specific shape like circle, oval, star, how to do that? for example, like in the following.

I have a rectangular image that I can not change.  I'd like to clip the image with a bezier path so I get one that is rectangular at the top and the sides but has a curve at the bottom, preferable without using additional packages.


Is there any way to undo the sudo within the script? like..  sudo ./script.sh   commands 1,2,3,4,5 with sudo rights  commands 6,7,8,9 without sudo rights

I am writing a script (actually a combination of scripts and makefile) that installs external dependencies: some apt-get commands, some git cloning, building, installing, adding users to groups, ...  Some of the operations in these scripts require superuser permissions, some don't.   Until now I have run the entire make process with sudo, but it has some drawbacks:   git repos I clone get root as owner, which means I can't modify them afterwards without sudo or chown the scripts that add users to groups don't know which user to add since whoami returns root   What is the best way of running as superuser only the commands that require it? Ideally the process would still require me to enter my sudo password, but only once at the very beginning of the install process. It would then forget it at the very end, but keep it all the time until then (it can take several hours).  The solutions I have found online include:   sudo -v at the begninning of the script, but if I understand correctly this times out. My script could be running for a couple of hours running the script with sudo, but the commands that do not need superuser with sudo -u $(logname) <command>. This is what I do now, but it feels like it should be the other way around.   Ideally, I would like my script to:   ask for superuser credentials run normal commands as the logged in user run sudo commands with the credentials entered at step 1 sudo -k to close the superuser session


I'm new to Kotlin, and I'm trying to create an authentication short application. My application doesn't have any errors, but when I want to start the application it crashes.  The console debug system shows the following error:  java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference     at com.menu.a9dli3.ui.modifyFragment.ModifyFragment.onCreate(ModifyFragment.kt:24)     The Kotlin view fragment code is here:  package com.menu.myapp.ui.modifyFragment import android.os.Bundle import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import android.widget.Toast import androidx.fragment.app.Fragment import androidx.lifecycle.ViewModelProviders import com.menu.a9dli3.R import kotlinx.android.synthetic.main.register_activity.*  class ModifyFragment: Fragment() {      private lateinit var modifyviewmodel: ModifyViewModel      override fun onCreate(savedInstanceState: Bundle?) {         super.onCreate(savedInstanceState)         setOncreate(R.layout.fragment_modify_profile)         login_id.setOnClickListener {              val email = email_id.text.toString()             val password = password_id.text.toString()              Log.d("Login", "Attempt login with email/pw: $email/$password")         }          register_page_id.setOnClickListener {             performRegister()         }     }      private fun performRegister() {         val email = email_id.text.toString()         val password = password_id.text.toString()          if (email.isEmpty() || password.isEmpty()) {             Toast.makeText(context, "Please enter text in email/pw", Toast.LENGTH_SHORT ).show()             return         }         Log.d("MainActivity", "Email is: $email")         Log.d("MainActivity", "Password: $password")     }      override fun onCreateView(         inflater: LayoutInflater,         container: ViewGroup?,         savedInstanceState: Bundle?     ): View? {         modifyviewmodel =             ViewModelProviders.of(this).get(ModifyViewModel::class.java)         val root = inflater.inflate(R.layout.fragment_modify_profile, container, false)         val templatemode: TextView = root.findViewById(R.id.text_slidemodify)         modifyviewmodel.text.observe(this, androidx.lifecycle.Observer { templatemode.text = it })         return root     } }   Please, I want some explanation and not just a solution.

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?


Last December I lost 100 reputations on Music Stack Exchange as one of my answers were marked as "rude or abusive" by 6 users.  However, the graph did not lose 100 reputations.  What's the reason?

I have notice two issues with the reputation graph: 1: This user has a higher score on the graph than in reality I happened to notice  where the user's graph reputation does not match their actual reputation.  The person in question was hit by a -100 penalty for an offensive answer a while back, but the graph doesn't reflect that.  I thought it just didn't update when I noticed this at the time, but the person has since gained and lost reputation and at all times the graph was +100 of their actual reputation.  It seems, based on Shadow Wizard's comment that this is because the reputation change is non-public. OK, fair enough... , which was marked as , noticed a similar phenomenon for placed DVs.  This prompted me to examine graphs more carefully.  It seems that this hidden -1 has been updated, as I checked several users and did not find any others that had lower actual reputation than graph reputation, so .  (Since the number of DVs placed is public, I can be reasonable sure that these users have placed -1 rep DVs, although strictly speaking they could be 100% question DVs.) 2: Some users have a lower score on the graph than in reality I did, however, find many users where the graph says their reputation is much lower than it actually is.  Perhaps that is from deleted downvotes turning into hidden +1s, but those should be balanced by hidden -1s, so its not clear what happened.  Seems there is some error in the logic - maybe the -1s do affect the graph now as per the , but the corresponding +1s don't?  Whatever the case, I can't imagine it is intentional. Edit: I went back to find some examples today & didn't find any.  I think the issue has been resolved - either it was a caching issue or a change was made to the code after this post.