Restrict Oracle DB Login based on SQL Client being used

We have an application in our organization that is based on Oracle Forms 11g (on Oracle Fusion Middleware/WLS). Users have access to the application through accounts created at the database (i.e. they exist in dba_users). Each user is assigned a specific role based on their area of work and they use the user id to log on to the application. The user may have read/write access to certain functionality in the application and for this their roles have the following permissions-  EXECUTE ANY LIBRARY    SELECT  ANY SEQUENCE    EXECUTE ANY TYPE       EXECUTE ANY PROCEDURE  UPDATE  ANY TABLE       SELECT  ANY TABLE       DELETE  ANY TABLE       EXECUTE ANY INDEXTYPE  INSERT  ANY TABLE     Now we have some users requesting for SQL Client access (i.e. TNS settings) so that they can connect to the DB and perform queries for their research. These business users are ofcourse knowledgeable in SQL but we want to restrict their access based on the type of client they use to log on to the database. Any client other than the application itself, should restrict them to "read only".  Is there a way to achieve this?


Is the convolution of two continuous functions continuous?

The title is the question:  Is it true, that the convolution of two continuous functions is continuous again?


I have a quote in parentheses, and I was wondering whether the comma should go inside the quotation marks or after the closing parenthesis:     Now, with weapons like Laser Lipstick (“gives a whole new meaning to ‘hot pink,’”) he fights crime in drag.   vs     Now, with weapons like Laser Lipstick (“gives a whole new meaning to ‘hot pink’”), he fights crime in drag.   I'm leaning toward the first way, but I just want to know which is more correct.


javascript - adding multidimensional arrays

I have several arrays of arrays... e.g.  var a = [[45, "question1", "answer1"], [22, "question2", "answer2"]]; var b = [[55, "question3", "answer3"], [12, "question4", "answer4"]];   Each array is coming in from a different page  I then wanted to push them together to get  var c = [[45, "question1", "answer1"], [22, "question2", "answer2"], [55, "question3", "answer3"], [12, "question4", "answer4"]];   I did this by   var c = a;  c.push(b);   When I tried to sort this, it comes out all wrong which tells me that the push has done something like  var c = [[45, "question1", "answer1"], [22, "question2", "answer2"]], [[55, "question3", "answer3"], [12, "question4", "answer4"]];   Can someone help, or point me towards the answer? I need to be able to sort on the first element of the array across all of the joined array.


$(1-\zeta_m)$ is a unit in $\mathbb{Z}[\zeta_m]$ if m contains at least two prime factors

We know that for $m=p^r, 1-\zeta_m$ is a prime.Now suppose that m has at least 2 distinct primes appearing in its prime factorization,we need to show that $1-\zeta_m$ is a unit in its ring of integers $\mathcal{O}_{\mathbb{Q}(\zeta_m)}=\mathbb{Z}[\zeta_m]$.  I tried proving that $N_{\mathbb{Q}}^{\mathbb{Q}(\zeta_m)} (1-\zeta_m)=\pm 1$ but got stuck in finding norm of $\zeta_m$. Some hint would be nice.


What is the SO team's workflow for fixing bugs and implementing new features? How could it be improved?

Playing off  a little bit, I'd like to know how the SO team prioritizes and processes requests such as fixing bugs and implementing new features.  It strikes me that the current system is a bit 'loose', where things are fixed or implemented on a whim. This may or may not actually be true, and I'm not saying there's anything inherently wrong with the current system, but at the same time, I think there is room for improvement.  In particular, sometimes there may be hidden or higher motivations for some decisions, which I think should be explained and/or discussed, sometimes in far greater detail than has been exposed in the past. What are these motivations, and how do they relate to the overall vision for the sites? If the community knows more about these motivations, we can collectively solve the problem in a way that meets everyone's needs.  How can we improve the current process to better satisfy both the community and its leaders?


I'm using a Samsung I9000 and I have some annoying apps that came pre installed by the phone vendor, like a music store, a custom web browser and other memory leaking apps.  Those crappy apps can't be uninstalled neither by Manage applications tool, nor by editing the apps tiles in the front menu.  I guess I have to be a root user or something to get rid of those apps, but I don't know how.


Move hdd to other laptop, need Win7 reinstall?

A Thinkpad T61p died (motherboard), I think hdd is ok.   I then mounted the hdd in a Thinkpad R61i; after hardware change warning, it gave BSOD and instantly shut down.   Is it possible to maintain the Windows installation on this disk?  In case how can I best make this happen?   EDIT: I have a full Windows 7 license (not OEM).


I have a laptop that came preinstalled with Windows 8 OEM.  I upgraded to Windows 10 when the free upgrade was available.   I want to die a clean install of the OS to remove all of the bloat ware.  My understanding was that you can do this and be legally licensed because of the original OEM license.    Will this still work for me if I install Windows 10 since it originally came installed with Windows 8?


shows a way of crossing out single cells. Is it possible to cross out a cell that spans multiple rows and/or multiple columns?   Edit: This is not duplicate because I need it to be just crossing it out with one line exactly, whereas that question needs to cross out the cell with an actual cross. I know this might be really simple for some, but it is nearly completely opaque to me (how to change it).


What existing close reason should I use for a question that is "Too Localized"?

I want to vote to close this question:   The reason is because that after seeing the solution to the problem I cannot see any reason why this would be of any help to anyone in the future, including the OP of the question.  I can see that the problem demonstrates the need to ensure you name your properties correctly, but I still feel this is nothing more than a typo on the part of the OP.  So assuming that this question should be closed: What is the new close vote reason to use when a question is too localized?


Is it possible to fail an ability check on purpose?

Here are the general guidelines regarding ability checks:     The GM calls for an ability check when a character or monster attempts an action (other than an attack) that has a chance of failure. When the outcome is uncertain, the dice determine the results.   In some cases, you could want to fail an ability check. If you are climbing a wall an want to drop off, you fail simply because you stop attempting to climb, but in other cases, success and failure are both tied to the actual action and may both have desirable outcomes.  Example 1: Spell scrolls  An evil adversary wants you to cast a spell scroll for him, but you have him figured out and want to destroy his spell scroll instead, seemingly by accident. The rules on spell scrolls read:     If the spell is on your class’s spell list but of a higher level than you can normally cast, you must make an ability check using your spellcasting ability to determine whether you cast it successfully. The DC equals 10 + the spell’s level. On a failed check, the spell disappears from the scroll with no other effect.   A failure means that you successfully destroy the spell scroll.  Example 2: Amulet of the Planes  You are in possesion of the Amulet of the Planes. Your party is being overrun by terrible monsters, and the only way to save your party is to sacrifice yourself by sending yourself and the monsters to another plane of existence.     While wearing this Amulet, you can use an action to name a location that you are familiar with on another plane of existence. Then make a DC 15 Intelligence check. On a successful check, you cast the Plane Shift spell. On a failure, you and each creature and object within 15 feet of you travel to a random destination. Roll a d100. On a 1-60, you travel to a random location on the plane you named. On a 61-100, you travel to a randomly determined plane of existence.   By walking up to the monsters and failing the check, you and the monsters would be sent to another plane of existence.  The question  The rules seem to assume that you always want to succeed when you perform an ability check. Sometimes, however, you could want to fail on purpose. A sensible DM would rule that if you are skilled enough to succeed the check, then you would undoubtly be able to fail it on purpose as well. What does the rules as written say -- if anything -- about this circumstance?  According to RAW, is it possible to attempt an ability check and intentionally fail?


Is there anyway to reduce the font size less than scriptsize in subcaption?

I want to use four picture on one slide, using the subfigure command. I did it, but the font size of the subcption is really big, I'm using scriptsize compared with four subfig. Is the anyway to reduce it less than scriptsize , I found some suggestions  but doesn't help. When I tried using tiny I got the following error:  Package caption Error: tiny undefined. \end{frame}.    How to figure out this.  My code is here:   \documentclass{beamer} \usepackage{beamerthemesplit} \usepackage{tikz} \DeclareGraphicsExtensions{.pdf,.png,.jpg,.eps} \usepackage{epsfig} \usepackage{epstopdf} \usepackage{tcolorbox} \graphicspath{{./figs/}} % for 2nd questoin \usepackage[labelfont=bf,textfont=scriptsize]{caption} \usepackage[labelfont=scriptsize,textfont=scriptsize,singlelinecheck=on]{subcaption} % will apply to all subcaptions % set up labelformat and labelsep for figure \captionsetup[figure]{labelformat=empty, labelsep=none} % set up labelformat and labelsep for subfigure \captionsetup[subfigure]{labelformat=parens, labelsep=none} \renewcommand{\thesubfigure}{\roman{subfigure}} \captionsetup{compatibility=false} \usepackage{anyfontsize}   \begin{document} \begin{frame}{FBL Trajectory Tracking control}  \vspace{-0.3cm} \begin{figure}     \centering     \begin{subfigure}[b]{0.48\textwidth}         \vspace{-0.7\baselineskip}         \includegraphics[width=1.1\textwidth,height=0.385\textheight]{FBLPT1}         %           \vspace{-1.07\baselineskip}         \caption{Joint 1 torque}         \label{fig:FBLPT1}     \end{subfigure}     ~     \begin{subfigure}[b]{0.48\textwidth}         \vspace{-0.7\baselineskip}               \includegraphics[width=1.1\textwidth,height=0.385\textheight]{FBLPT2}         %           \vspace{-1.07\baselineskip}         \caption{Joint 2 torque}         \label{fig:FBLPT2}     \end{subfigure}     %\vspace{-2.07\baselineskip}     \begin{subfigure}[b]{0.48\textwidth}         \vspace{-0.7\baselineskip}         \includegraphics[width=1.1\textwidth,height=0.385\textheight]{FBLPT3}         \caption{Joint 3 torque}         \label{fig:FBLPT3}     \end{subfigure}     ~     \begin{subfigure}[b]{0.48\textwidth}         \vspace{-0.7\baselineskip}               \includegraphics[width=1.1\textwidth,height=0.385\textheight]{FBLPT4}         \caption{Joint 4 torque}         \label{fig:FBLPT4}     \end{subfigure}          \end{figure} \end{frame} \end{document}


May I get a refund for a flight cancelled because of COVID-19?

I had a flight ticket from Madrid (MAD, Spain) to Miami (MIA, US) to fly in March with AirEuropa. I got an email saying the flight was cancelled 13 days and 21 hours before the flight. Am I eligible to get a cash refund? Am I entitled to further compensation?  The flight was cancelled the day after Donald Trump forbade the entrance of non-residents to the US because of COVID-19.  The answer from an AirEuropa agent is no, I am not. They offer a voucher that has to be spent within 2020, which IMO is very limited.  As I understand the EU rules, I can choose to get a refund unless the carrier can prove the cancellation was because of extraordinary circumstances. I guess COVID-19 is extraordinary, but Trump did not forbid flights to the US, but the entrance of some people, so AirEuropa could have flown that day.


Why is sudoers NOPASSWD option not working?

I have a NOPASSWD line in /etc/sudoers (edited with visudo)  gatoatigrado    ALL=(ALL) NOPASSWD: /bin/set-slow-cpufreq   However, the output is,  gatoatigrado@coral:~> sudo -n /bin/set-slow-cpufreq sudo: sorry, a password is required to run sudo   This kind of command works on an OpenSuSE machine, but not on Ubuntu 11.10. What am I doing wrong?  Note: I cannot find any relevant system log messages, e.g. via tail -f /var/log/syslog.  edit  Here is /etc/sudoers.  Defaults    env_reset  # things I've tried copying from an opensuse machine Defaults always_set_home Defaults env_keep = "LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE"  root    ALL=(ALL:ALL) ALL gatoatigrado ALL=NOPASSWD: /bin/set-slow-cpufreq %admin ALL=(ALL) ALL %sudo   ALL=(ALL:ALL) ALL


this is the actual question       Often poetic meters of some fixed beat length (per line) have some   rhythmic pattern composed of light and heavy syllables from the   source language (for example, English or Sanskrit). It is common to   treat the light syllable to measure as being 1 beat in length, while a   heavy syllable to measure as 2 beats.   In such a framework, given a fixed beat length of n, write a program   that can compute the total number of patterns involving light and/or   heavy syllables?   As an example, a line with a fixed beat length of 5 can be composed   of a pattern that is light-light-heavy-light (1+1+2+1=5),   or heavy-light-heavy (2+1+2=5), or any one of the other six possible   patterns.   Now I know this is a programming question but I realise that it is actually a fibonacci recursive relation where  $f(N) = f(N-1) + f(N-2)$  My only problem is that I can't seem to prove it


Where was this photo taken? Windows 10 photo lock screen

This photo popped upon my screen today, and I would actually really like to travel to this location one day. Does anyone know where it was taken?


Exporting only certain columns to CSV file in ArcGIS for Desktop?

I've written a python script using arcpy which outputs a polygon feature class into a File Geodatabase.  I have added a function to export the attributes to a separate CSV file.  I am using the code which I have found in  which works perfectly.  However, that code exports every column in the feature class.  I only want to export the fields that do not have the following names: OBJECTID, Shape, or Shape_Length.  My CSV file generates successfully, and it correctly does not include the OBJECTID or Shape_Length fields.  However, the Shape field is written to the file.  An example value that is written to that field is:  <geoprocessing describe geometry object object at 0x28CB90A0>   I have added a line to print the field names as it iterates through them and surprisingly, Shape is not printed.  It's as if ArcGIS is hiding it or gives it a different name.  The code for my function is below:  def exportToTable():     """          Exports the final outputs to a CSV File.     """      # Create path to CSV File (note the varialbe outputPath is declared elsewhere).     CSVFile = outputPath+'\\FinalOutput.csv'     arcpy.AddMessage("Created CSV File: %s" %CSVFile)      # Get all fields in FinalOutput feature class and remove unwanted fields.     fields = arcpy.ListFields('FinalOutput')     for field in fields:         arcpy.AddMessage("Field.name is:"+field.name) #not printing 'Shape' field name         if field.name in (['OBJECTID', 'Shape', 'Shape_Length']):             fields.remove(field)      i = 1     f=open(CSVFile, 'w')     for field in fields:         #--write the wanted field names to the output file         if i < len(fields):             f.write('%s,' % field.name)             i += 1         else:             f.write('%s\n' % field.name)      # Use a search cursor to iterate through the rows of the table and write them to the CSV file.     rows = arcpy.SearchCursor('FinalOutput')     for row in rows:         i = 1         for field in fields:             if i < len(fields):                 f.write('%s,' % row.getValue(field.name))                 i += 1             else:                 f.write('%s\n' % row.getValue(field.name))     del rows     f.close()   Does anyone know what's going on here?    I modified my code to follow the advice of @sgrieve and it was still writing the Shape field.  If I add a line to print the field names as it iterates through them, it lists all the fields except the Shape field, yet it still writes to the CSV.  It also added the X and Y coordinates of the polygon as two new columns and the columns no longer aligned with the column names.  I've modified the line where @sgrieve declares the fields to be the following:   fields = [f.name for f in arcpy.ListFields('FinalCadastre') if f.type <> 'Geometry']   The new code works fine, but I'm still unsure what the problem was.  Does anyone know what was going on?  What's the deal with the Shape field?


UI annoyances in the suggested edit review on Stack Overflow

On Stack Overflow, suggested edits need two reviewers. So when you're the first reviewer to give your opinion (approve or reject) or if you're the second but vote the other way than the first reviewer, the edit stays in the queue. This has two annoying consequences when you're going through the  (5k only):   If you cast the deciding vote, the entry for this edit disappears from the list (it's moved to a header line at the top of the list). Otherwise the edit remains in place. This is annoying because it means the position of the next entry on the screen depends on something that shouldn't be relevant (whether you just cast the deciding vote). It's especially annoying because the entry can take a couple of seconds to disappear when it does, which has led me to click on the wrong row a couple of times, when the next edit was an obvious accept or reject. If you revisit the list and one of the edits you voted on still hasn't been decided, the entry appears again (with no buttons). Why show me the entry again? There's nothing I can do about it any more.   Here's the behavior I'd like:   An edit never disappears from the list as long as I don't reload the page. If I reload the page, edits I've already voted on don't appear.   Alternatively:   When I've voted on an edit, it disappears to the collapsed list at the beginning, and stays there even if I reload the page. The disappearance should be instantaneous, with no fading.   Either way, please make the behavior on voting consistent whether my vote was the deciding one or not. And if the page is changed when I click on a vote button, the change should be instantaneous.  But please don't let that deter you from reviewing a few suggested edits on Stack Overflow.  and review one page (30 suggestions). We get 500–800 suggestions on a typical day. If 2% of the eligible ~5000 people do one page every day and vote on half the suggestions they see, we're good.


My ext4 file system actually contains 2/3 as much as df/tune2fs says it does. Why?

I have a 45-ish-gig virtual drive connected to a VM as my root partition.   root@alang-web:~# df -h Filesystem        Size  Used Avail Use% Mounted on udev              2.0G     0  2.0G   0% /dev tmpfs             396M  5.6M  390M   2% /run /dev/sda1          46G   41G  2.3G  95% / tmpfs             2.0G     0  2.0G   0% /dev/shm tmpfs             5.0M     0  5.0M   0% /run/lock tmpfs             2.0G     0  2.0G   0% /sys/fs/cgroup /dev/sdb1         148G   15G  126G  11% /mnt/data cgmfs             100K     0  100K   0% /run/cgmanager/fs alang-web-backup  621G  256G  366G  42% /media/sf_alang-web-backup tmpfs             396M     0  396M   0% /run/user/1000   As you can see, it reports 41 gigs of 46 gigs used.  And then there's this:  root@alang-web:~# du -shx / 27G /   And this:  root@alang-web:~# tune2fs -l /dev/sda1 tune2fs 1.42.13 (17-May-2015) ... Block count:              12058624 Reserved block count:     602931 Free blocks:              1209455 ...   And going to init 1 and running a fsck -f / reports no errors of any kind.  Where the heck is that 41G - 27G = 14G of space that is supposedly being used but is not visible to du? It can't be doubly-hard-linked files, that would cause du to be HIGHER than df (and anyway I don't know what would be doing that). It can't be unlinked files that are still in use, I have rebooted multiple times and the numbers simply don't change much. Also there's this:  COMMAND    PID     USER   FD   TYPE DEVICE SIZE/OFF NLINK    NODE NAME php-fpm7.  992     root    3u   REG    8,1        0     0 1837559 /tmp/.ZendSem.dSWbfL (deleted) mysqld    1020    mysql    4u   REG    8,1        0     0 1837551 /tmp/ibybXrs3 (deleted) mysqld    1020    mysql    5u   REG    8,1        0     0 1837623 /tmp/ibVK2BUX (deleted) mysqld    1020    mysql    6u   REG    8,1        0     0 1837628 /tmp/ibavDMmS (deleted) mysqld    1020    mysql    7u   REG    8,1        0     0 1837629 /tmp/ib5MSHjH (deleted) mysqld    1020    mysql   11u   REG    8,1        0     0 1837631 /tmp/ibf8ZvTB (deleted) php-fpm7. 1067 www-data    3u   REG    8,1        0     0 1837559 /tmp/.ZendSem.dSWbfL (deleted) php-fpm7. 1068 www-data    3u   REG    8,1        0     0 1837559 /tmp/.ZendSem.dSWbfL (deleted) apache2   1088     root   40u   REG    8,1        0     0 1837632 /tmp/.ZendSem.3m0mZe (deleted) apache2   1091 www-data   40u   REG    8,1        0     0 1837632 /tmp/.ZendSem.3m0mZe (deleted) apache2   1092 www-data   40u   REG    8,1        0     0 1837632 /tmp/.ZendSem.3m0mZe (deleted) apache2   1093 www-data   40u   REG    8,1        0     0 1837632 /tmp/.ZendSem.3m0mZe (deleted) apache2   1094 www-data   40u   REG    8,1        0     0 1837632 /tmp/.ZendSem.3m0mZe (deleted) apache2   1095 www-data   40u   REG    8,1        0     0 1837632 /tmp/.ZendSem.3m0mZe (deleted) apache2   1275 www-data   40u   REG    8,1        0     0 1837632 /tmp/.ZendSem.3m0mZe (deleted) apache2   1277 www-data   40u   REG    8,1        0     0 1837632 /tmp/.ZendSem.3m0mZe (deleted) apache2   1278 www-data   40u   REG    8,1        0     0 1837632 /tmp/.ZendSem.3m0mZe (deleted)   Those are all the unlinked files that it lists for that file system currently. I don't know how big those are (perhaps the size is inaccurate for files that are unlinked, or perhaps those really are size-0 files that are being used for semaphores or something of the sort.) However, it seems kind of unlikely that they're 14 gigs.  Is there some subtlety of ext4 that I don't know about? I freely admit to being more familiar with ext3 and HFS+. Is this somehow sharing space with some other partition or something like that, and the command line tool df hasn't kept up with modern times? Is the drive just broken in a way fsck can't even detect, let alone fix?  Just to preempt one other suggestion:  root@alang-web:~# cat > /tmp/blar adsf root@alang-web:~# du -sh /tmp/* 4.0K    /tmp/blar root@alang-web:~#    So no, du does not report actual file sizes, it reports the size on disk including padding out to the next largest block size.


How can I make a list of symbols when I am using \documentclass[a4paper,11pt]{memoir} with input-files?  Here is my main file:  \documentclass[a4paper,11pt]{memoir}  % Include all settings \input{setup} \begin{document}  %\input{titlePage} %\input{hip} %\frontmatter   %\input{abstract} %\input{resume} %\input{preface} %\input{Acknowledgments} %\printnomenclature  %\cleardoublepage %\tableofcontents* %\cleardoublepage %\listoffigures* %\cleardoublepage %\listoftables* \makenomenclature \printnomenclature[6em] \input{Symb}  %\mainmatter    %\input{chapter01} \input{chapter02} %\input{chapter03} %\input{chapter04} %\input{chapter05} %\input{chapter06}  %\input{thebib}  %\appendix %\appendixpage   %\input{appendix01} %\input{appendix02} %\input{appendix03} %\input{appendix04} %\input{appendix05}   %\backmatter %\bibliography{mybib} %\bibliographystyle{unsrt}  \end{document}   And the List of symbols file:  \chapter*{List of Symbols and Abbreviations}  $a$ $N$ $A$ $\sigma$ $m$  \nomenclature{$a$}{The number of angels per unit area}% \nomenclature{$N$}{The number of angels per needle point}% \nomenclature{$A$}{The area of the needle point}% \nomenclature{$\sigma$}{The total mass of angels per unit area}% \nomenclature{$m$}{The mass of one angel}   and here is the setups:  \usepackage[T1]{fontenc} \usepackage[ansinew]{inputenc} \usepackage[danish, english]{babel} \usepackage{graphicx} \usepackage{microtype} \usepackage{lmodern} \usepackage{lipsum} \usepackage[intoc]{nomencl} % Nomenclature package \usepackage{color} \usepackage{times} \usepackage{textcomp} \usepackage{hyperref} \usepackage{textpos} \usepackage{tikz} \usepackage{pgfplots} \usepackage{ifthen} %\usepackage{mathtools} \usepackage{ragged2e,array,booktabs} \usepackage{nomencl} \makeheadrule{headings}{\textwidth}{1pt}   Do you know what I should do?


How feasible is it to travel from Singapore all the way to London only by Train

I am wondering how feasible (apart from the economic point of view) it is to travel from Singapore to London by train and having to change to other means of transport as minimum as possible.  As far as I know, these are the possible itinerary   Board the Orient & Express Train from Singapore to Bangkok Bangkok to Vietnam (Hanoi or Ho Chi Min City) ??? is any direct rain service connecting these two cities? From Hanoi (Vietnam) all the way to Beijing (China) requires a change at Dong Dang station. Once in China, there are many possibilities to go to Europe by Train using the famous Transsiberian. From Moscow, options are abundant. One could go directly to London or make a few stopover in German, Paris or other European city.   How feasible is it to travel by train from Singapore to London by train (at least in terms of safety and reliability).


Custom Styling radio-buttons and check-boxes

I am trying to customize my checkbox and radio buttons. is what I have come up so far:     I want to know if this is clickable enough? Is there any rulebook to consider while designing user controls?


Remove the shortcut of an application that was installed using Wine from the Unity Dash

How do I remove an application shortcut from the Unity Dash (not from the Unity Launcher)?  My specific issue is I tried to install a game using Wine a while ago. I then uninstalled the game, then uninstalled Wine. Today I found that shortcuts to the game (and other related content that came with it) remain when I push Super and type the game name. (Wine is not visible though.)


Recovering data from partially formatted external HDD

I had a 1 TB western digital external hard disk filled with data. Mistaking it for another USB drive, my friend right clicked and went ahead with formatting. Within around five seconds after the formatting began, I cancelled the process and removed the USB connection. I re inserted the hard disk afterwards, only to see that drive is not assigned any letter by PC, and it asks to be formatted, if I try to open. I tried accessing with Linux also, but to no avail. whats is my best way ahead to recover the data? how much of the data might have got formatted? Is there any way I could access the data that haven't been formatted from the disk, and then go for recovering the remaining formatted data, instead of going for recovery of the entire 1 TB using some tool?


Remove DOM Element from iFrame using Javascript

I have a dynamic webpage that includes an iFrame where external html code is included. Now I need to dynamically remove an element from this iFrame's body.  Firebug gives me the following XPath Entry for the Element.  /html/body/div[2]/div[2]/ol/table/tbody/tr/td/a/img   My question now is how can I transform this into a DOM Element Structure to create Javascript which will remove the element? Or is there any other way to remove this image?  [EDIT]  The source of the iFrame is created by another webserver. We generate it there because of load sharing.


On the evaluation of $\sum \limits_{n=2}^{\infty} \frac{(-1)^n}{n \log n}$

I have tried to evaluate the series $\sum \limits_{n=2}^{\infty} \frac{(-1)^n}{n \log n}$. I get that it converges to $\frac{1}{2}$ but there must be a flaw in my reason since then result I get does not match that of Wolfram's Alpha.   Let me show you my work.  One good way to begin with is to recall the known Fourier series   \begin{equation} \sum_{n=1}^{\infty} \frac{\cos nx}{n^s} =\frac{1}{2} \bigg({\rm Li}_s  \left ( e^{-ix} \right ) + {\rm Li}_s \left ( e^{ix} \right ) \bigg) \end{equation}  where ${\rm Li}_s$ is the polylogarithm of order $s$. Hence  \begin{equation} \sum_{n=2}^{\infty} \frac{\cos nx}{n^s} = - \cos x + \frac{1}{2} \bigg({\rm Li}_s  \left ( e^{-ix} \right ) + {\rm Li}_s \left ( e^{ix} \right ) \bigg) \end{equation}  We differentiate with respect to $s$ , hence  \begin{equation} \sum_{n=2}^{\infty} \frac{\cos nx}{n^s \log n} =  \frac{e^{ix}}{2} {\rm Li}_{s-1} \left ( e^{-ix} \right ) + \frac{e^{-ix}}{2} {\rm Li}_{s-1} \left ( e^{ix} \right ) \end{equation}  For $x=\pi$ and $s=1$ we have that $\displaystyle \sum_{n=2}^{\infty} \frac{(-1)^n}{n \log n} = \frac{1}{2}$.  Where have I gone wrong?


I cite elements from my bibfile using \citet{key}. The reference appears as "Name1, and Name2 (year)" in text where year is a link leading to the bibliography. Now, I want to cite two papers from the same authors from different years. Instead of     Model XYZ is analyzed by Name1, and Name2 (2019) and Name1, and Name2 (2020).   I'd prefer to have something like     Model XYZ is analyzed by Name1, and Name2 (2019, 2020).   Of course, now 2019 should be a link to the 2019 paper in the bibliography and 2020 a link to the 2020 paper in the bibliography. Any ideas of I could adjust the \citet command?    I use biblatex as follows.  \usepackage[style=ext-authoryear,              sorting=nyt,             backend=biber,              natbib=true,                          uniquename = false,              uniquelist = false,             firstinits=false,              hyperref=true,             dashed=false,             backref=false,              maxbibnames=99,              maxcitenames=3,             isbn=false,              doi=false]{biblatex}


Why are formal and standoffish synonyms?

I recently saw the synonyms for Formal on Google and was wondering why standoffish is apart of it? Because being formal is being polite, while standoffish is unfriendly. What makes these two words synonyms oh and also here is a picture


Example of a Hash function which is second pre-image resistant but not collision resistant

We know that a collision resistant hash function is also second pre-image resistant. But the converse is not necessarily true. I am looking for the example of a hash function which is second pre-image resistant but not collision resistant. Please help.


There should be one login for every site on Stack Exchange. I have to login each time I go to a different site, for instance from  to  (ELL).  For example, on Google's websites if a user logs in on one site, say Gmail, then if he goes to Google+ or YouTube, he does not need to enter his credentials again to log in.  But here we have to give credentials each time on a different site.  I request a similar feature, for the ease of users.  I get the cookie thing that if you have already logged in then you don't need to log in again when you come back to the site.  But what I want is that on each site where the user is registered, say Stack Overflow, Meta Stack Overflow and English Language & Usage, he should be able to use them all in flow once he is logged in anyone of them.


SQL Server 2008 R2 Express edition limitation

I have website running on SQL Server 2008 R2 Standard edition and on new server we are provided with SQL Server 2008 R2 Express edition. I am sure that there are certain limitations like    maximum of 10GB of DB size per database Utilization of 1 process only Use of 1 GB Internal memory only.   I would like to is there any limitation on maximum number of concurrent connection in Express edition and how slow it can be when it comes to performance.


Possible Duplicate:          Which of the following is more correct? Or is there another form I'm missing?     We drove to the movies in one of my buddy's car.   We drove to the theater in one of my buddies' cars.   We drove to the theater in one of my buddies' car.   I suppose the fundamental question is: does this phrasing suggest "one of [the collection of cars owned by my buddies]" or "the car owned by [one of my buddies]"?


"on", "at", "in" as preposition of location

I have found the following usage of "on", "at" and "in" on the internet. Is there any other exception and/or rule for that?  Preposition of Place Use in for  Enclosed place: in a room / in a building / in the garden / in a box / in a car / in a taxi / in a helicopter / in a boat / in a lift (elevator) Water: in the water / in the sea / in a river Line & Queue: in a row / in a line / in a queue Countries: in France / in the US / in Iran Cities: In Paris / in New York / in Tehran  Exceptions: in the newspaper / in the sky / in the bed / in the street (= in the middle of the street, standing on it. e.g. Watch out! There is a tire in the road) Use at for  general Places: at the bus-stop / at the door / at the cinema / at the end of the street (for address. e.g. I live at 21st street) Point: at the top (bottom) of the page / at the back (front) of the class / at the corner / at the door / at the entrance / at the front desk  Exceptions: at home / at work / at school / at university / at college / at the top / at the bottom / at the side / at reception Use on for  Surfaces: on the ceiling / on the wall / on the 2nd floor / on the table / on the menu / on a bicycle / on a motorbike / on a horse / on an elephant Small Islands: on Maui Directions: on the left / on the right / straight on the main street  Exceptions: on a bus / on a train / on a plane / on a ship / on the radio / on television / on the way / on the internet / on Facebook / on my weblog / on the street (e.g. Ikea have a big new store on Oxford Street) No Preposition  home / downstairs / downtown / inside / outside / upstairs / uptown  She went upstairs / He comes home / They both are outside


I need to find $63^{63^{63}} \bmod 100$.  This is what I've got so far:  Since $\gcd(63,100)=1$ we can use Euler's theorem. We have $\phi (100)=40$ so $63^{40} \equiv 1 \mod 100$  Again $\gcd(16,100)=1$ and $\phi (40)=16$, that is $63^{16} \equiv 1 \mod 40$ Using this I got that $63^{63} \equiv 7 \mod 40 $ which led me to $63^{63^{63}} \equiv 63^7 \mod 100$ I'm stuck here and don't know what to do next, what could I do now?


How can native English speakers read an unknown word correctly?

I have learned English for many years, and from the first day I began to learn it I know the dictionary is necessary for the study.  One of the important aspects is that English words, unlike German and Spanish, usually can not be read correctly without phonetics.  But recently, I talked with some native speakers and they told me they can read any word directly and rightly even though they never learned it before.  I just want to know how they can do that -- there is no ordinarily acceptable method to read an English word?


I want to type the Indian Rupee Symbol. So I went to System Settings >> Keyboard Layout and clicked on the Options button. Under the Adding Currency signs to keys sections, I checked the Rupee on 4 option.    Later when I opened the Layout Chart of the Keyboard there was Rupee sign in the 4 key but I do not know how to type the symbol. What combination of the keys will type the Rupee symbol on the screen?


How is t-statistic calculated for coefficients in linear regression?

After fitting a linear model, in it's summary we can observe coefficients estimates end some statistics about them: Coefficients:              Estimate Std. Error t value Pr(>|t|)     (Intercept)   1.85600    0.25078   7.401 9.85e-12 *** Sepal.Width   0.65084    0.06665   9.765  < 2e-16 *** Petal.Length  0.70913    0.05672  12.502  < 2e-16 *** Petal.Width  -0.55648    0.12755  -4.363 2.41e-05 ***  I learned that t value is Estimate / Std. Error. However, the formula for one-sample t-value is: $t=\frac{\bar{x}-μ}{s_\bar{x}}$ $s_\bar{x}$ is the Std. Error which means that $\bar{x}-μ$ must be the Estimate. This is where I got lost. To my understanding the Estimate is the fraction in which given variable contributes to the output. How is it equal to the difference between sample mean and expected mean? What is the expected mean in this case anyway?


Unable to delete USB Drive partitions (Block size error)

I have been unable to format/delete the partitions on my Sandisk Cruzer Force 32 GB USB Drive. I get the following error when deleting any of the partitions on it.  `Error deleting partition /dev/sdd2: Command-line `parted --script "/dev/sdd" "rm 2"' exited with non-zero exit status 1: Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes. (udisks-error-quark, 0)   Is there any way I can completely format all of my drive and turn it into one large partition? I haven't found a solution to this particular error here yet, so I thought I'd actually ASK for once


403(b) and ROTH IRA contribution and rollover

My current employee offers a 403(b) with a Roth option. I also have a Roth IRA.  The Roth IRA has a lower annual contribution limit than the 403(b).  I have some questions regarding contributions.   Should I stop contributing to my Roth IRA since I can contribute more to my 403(b)? When I leave my current organization, and I rollover my 403(b) to my Roth IRA, is there a limit? Can I rollover everything? If I can rollover everything, and I contribute to my 403(b) more than what the Roth IRA allows, does this mean that I would be able to make up a bit for contributing to my Roth IRA late (in my 30s)?   I don't get any employer matching I wouldn't mind investing in both products or any combination thereof


How do I check if two logical expressions are equivalent?

For example:     Is (A ∨ B ∨ C) ∧ (D ∨ E ∨ F) the same as   (A ∧ D) ∨ (A ∧ E) ∨ (A ∧ F) ∨ (B ∧ D) ∨ (B ∧ E) ∨ ( B ∧ F) ∨ (C ∧ D) ∨ (C ∧ E) ∨ (C ∧ F)?   How would I check equivalence in general?


Can I use this  on my chain until I can get some Finish Line lube?


Why is the matrix multiplication defined as it is?

Matrix multiplication is defined as:     Let $A$ be a $n \times m$ matrix and $B$ a $m\times p$ matrix, the product $AB$ is defined as a matrix of size $n\times p$ such that $(AB)_i,_j = \sum\limits_{k=1}^mA_i,_kB_k,_j$.   For what good reason did mathematicians define it like this?


How do I resize the main partition of my newly created ubuntu server 14.04

I am new to ubuntu server and still pretty mystified by all the scripts and such.  I have been reading different things available on the web and have successfully created my server and have several folders that I am able to write to using my windows computers.  The problem is, when I was following one of the tutorials to start, I created a partition of 20gb to use for the OS.  I have a 2tb disk and now I am out of space, even though I have another 1.8tb available.  I used the lvm option when I loaded the system and was lead to believe I could expand the partition easily.  The problem is, I don't know how and I can't seem to find an example that seems to fit my situation. Any help would be greatly appreciated.  I am using ubuntu server 14.04


Does someone knows if it exists some ppa packages source for the newest Ubuntu version 19.10 i had problem with that when i upgraded from Ubuntu 19.04 to 19.10 i didn't work?


windows defender 32bit does not stop working

I have windows 10 pro 64bit on my HP pavilion15 laptop. recently some minutes after system boots up, windows defender user interface 32bit starts working and takes more than 30% of CPU and does not stop. when I open file location it is at C:\Users\myName\AppData\Roaming\Adobe\Windows Defender\MSASCui.exe. I can kill the task but mainly I want to know why does this happen and how to fix this? I have not installed any Adobe product last month this issue occurs last 2 days.


sachin@sachin-Lenovo-G550:~$ java -version java version “1.7.0_21″ OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-1ubuntu1) OpenJDK Server VM (build 23.7-b01, mixed mode)   When I ran the above command this showed that Java is installed in my system, but when I am going to compile any Java program it gives the following error message:  sachin@sachin-Lenovo-G550:~/programs$ javac abc.java The program ‘javac’ can be found in the following packages: * default-jdk * ecj * gcj-4.6-jdk * gcj-4.7-jdk * openjdk-7-jdk * openjdk-6-jdk Try: sudo apt-get install   Please tell me how to get rid of it and run my Java program.


Is the "Final Release" a "Development Release"?

Update  appear to have been updated recently (as of writing this the last update appears to have taken place on 3rd of June) to include the following statement:  The -d switch is necessary to upgrade from Ubuntu 18.04 LTS as upgrades have not yet been enabled and will only be enabled after the first point release of 20.04 LTS.  Also note that .  TLDR (as of 15 Aug 2020):   is the canonical tracking document for the first Focal Fossa point-release (20.04.1). It’s a live document. The Ubuntu release team will be updating it as we work on releasing 20.04.1. […] Upgrades from 18.04 to 20.04.1 are still disabled as we are working through a few upgrade blockers   Edit The answers (so far) do not answer the question. The question is pretty simple. Ubuntu.com points to a "FinalRelease", which turns out to be a "Development Release", see evidence below. I'm not asking how and when to upgrade. I'm pointing out what seems to me to be an apparent inconcistency (in semantics, linguistics, logic) in the way Ubuntu names or labels its releases. From an answer to the question I'd except someone to pick up and acknowledge this inconsistency. An answer could start with a "Yes, ..." or a "No, ...", for starters. (Moreover, a good answer could distinguish between the release being in dev stage and/or the upgrade process (e.g. from LTS to LTS) being in dev stage, if appropriate.) This question, as I see it, is not a duplicate. Futher, I think it is a question which deserves a non-patronizing answer. Thanks.   indicates that today (23rd April 2020) the new Ubuntu 20.04 LTS is to be released.  See "condensed screenshot" here:  Indeed, it seems that that's what happened, see  and :  However, when following the instructions to upgrade (from 18.04 LTS to 20.04 LTS) found  and elsewhere (edit: actually , too!), even prior to the July point release, I'm a bit confused to see that the instruction is to use update-manager -d which also points to the "Development Release" (see screenshot below) rather than the "FinalRelease" (see screenshot and link above). Is the "Final Release" (which I'm after) the/a "Development Release"? Why isn't it called something like "Production Release" or "Final Release"? When will it no longer be referred to as "Development Release"? In July? I'm confused :(


I cant type in the terminal , what is the problem?

I can't type the password in the terminal, can you help me?


I just installed Ubuntu 13.10, but the wireless is not working and no wireless networks are showing:   Command: iwconfig Outputs:  eth0 no wireless extensions.  eth1 IEEE 802.11abg EEID:off/any      Mode:Managed Access Point: Not-Associated Tx-Power-19 dBm      Retry long limit:7 RTS thr:off Fragment thr:off      Power Management:off  lo   no wireless extensions.   The lspci -nn | grep 0280  Outputs:  02:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11bgn Wireless Network Adapter [14e4:4727] (rev 01)   Command lsmod | grep -e b43 -e brcm -e wl Outputs:  wl          4207474         0 lib802011   14352           2 wl,lib80211_crypt_tkit cfg80211    479757          1 wl   The following commands: sudo -i apt-get purge bcmwl-kernel-source echo "blacklist b43" >>  /etc/modprobe.d/blacklist.conf exit  Output is:     youssef@YoussefSiblini:~$ sudo -i [sudo] password for youssef:  root@YoussefSiblini:~# apt-get purge bcmwl-kernel-source Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package bcmwl-kernel-source root@YoussefSiblini:~# echo "blacklist b43" >> /etc/modprobe.d/blacklist.conf root@YoussefSiblini:~# ^C root@YoussefSiblini:~#   The out put of: lsmod | grep -e brcm -e wl  and rfkill list all  youssef@YoussefSiblini:~$ lsmod | grep -e brcm -e wl brcmsmac              562767  0  cordic                 12574  1 brcmsmac brcmutil               15618  1 brcmsmac mac80211              596969  1 brcmsmac cfg80211              479757  2 brcmsmac,mac80211 bcma                   46670  2 brcmsmac youssef@YoussefSiblini:~$ rfkill list all 0: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no 1: hci0: Bluetooth     Soft blocked: no     Hard blocked: no   Many thanks in advance.  Youssef


I am working on a web site that will start off with hundreds of thousands of images in it to hopefully hundreds of millions.  Most of the images won't exceed 300K in physical size.  What is the best way to store these in PostgreSQL?  One thing I know for sure is that the system will be using schemas, partitions, and tablespaces to manage storage.


WIN Task Scheduler - Wait before shutdown

I have a laptop which performs a task scheduled by Windows task scheduler every 30 min. It is running in the background in the "hidden" mode. It takes about 2-3 min for task to finish. If I then prompt to shutdown or hibernate while the task is running, is it possible to make it so that Windows waits before the task's full completion?


What is the difference between Totipotent cells and Pluripotent cells?

I read the Wikipedia article about Cell Potency       Totipotency is the ability of a single cell to divide and produce all of the differentiated cells in an organism.   while pluripotency means     a stem cell that has the potential to differentiate into any of the three germ layers: endoderm, mesoderm, or ectoderm.   I don't quite understand the difference, then, between a totipotent and a pluripotent cell.


Book recommendation on the history of PDE/ODE?

I would like to know something like what's the first PDE etc.   Could you recommend book on the history of PDE/ODE?  thanks.


Sometime my iPhone shows half of a black screen, which comes from the top and happens after touching the home button.  Does anyone has an idea what this is and how to reproduce it ?


The TOS and footer refer to different CC BY-SA license versions

As , the  links to version 4, but the footer and  to version 3. The TOS should I think say the version number in the text as well, rather than only in the link.  In addition, the preferred abbreviation is "CC BY-SA", not "CC-BY-SA".


Prove the following inequality using ${AM \geq GM}$

Show that ${(n!)^2>n^n}$.  I am trying to use the ${AM \geq GM}$ inequality but I am not getting what I should get. Please help! Thank you!! :))


Can I install and run Ubuntu on Celeron j3455 processor?

I'm getting a budget laptop, and I want to make sure it would run ubuntu 20.4 fine. I know the minimum requirement is 2gh dual-core, but I never had experience with this processor before. here are more specs of the laptop: 256 SSD 1080p CPU: Intel celeron_j3455 quad-core CPU frequency: 1.5GHz up to 2.3Ghz Memory: LPDDR3 6GB Thank you! Edit: Usage purpose mainly browser, Spotify, videos, "heaviest" thing would be nodejs for school.


What means :: on the front of a function call

I have this code:  1. bool MyClass::open() { 2.   int fd = ::open("file.txt",flags); 3. }   Does the "::" from the line 2 before calling open means something?


Warning when available RAM approaches zero

This is a follow-up to : ulimit and cgroups are not user friendly, and besides, wouldn't work with applications that spawn separate processes, such as Chrome/Chromium for each new (group of) tabs.  The simple and effective solution, used by Windows 7 actually, is to warn the user that the OS is running low on memory. This simple warning pop-up has prevented me from having any low-memory-caused system freeze in Windows, while I kept running into them on Ubuntu distros that I was testing live (where the RAM-mounted disk would eat up 2GB alone).  So, is there some way to automatically warn the user that the available RAM is nearing zero, without the user having to keep an eye on some memory monitoring gadget? Surely  could be configured to do that?


lost splatoon 2 gamecard... if I buy a new gamecard, is my data saved on the switch? or will I have to restart?

My gamecard has been missing for quite some time, and from the announcement of splatoon 3 ive wanted to play it more than ever, but I cannot find this card. i've gotten very far in the game though - if I buy a replacement gamecard, will i be able to pick up where I left off using game data from the switch or is this not possible?


Is acid-marinated raw chicken still safe after several days?

I marinated chicken five days ago in lemon juice, seasoned salt, and garlic powder, is it still safe to cook in the oven?


Unique pair of positive integers $(p,n)$ satisfying $p^3-p=n^7-n^3$ where $p$ is prime

Q. Find all pairs $(p,n)$ of positive integers where $p$ is prime and $p^3-p=n^7-n^3$.   Rewriting the given equation as $p(p+1)(p-1)=n^3(n^2+1)(n+1)(n-1)$, we see that $p$ must divide one of the factors $n,n+1,n-1,n^2+1$ on the $\text{r.h.s}$.   Now, the $\text{l.h.s}$ is an increasing function of $p$ for $p\ge1$. This implies that for any given $n\ge1$, there is exactly one real $p$ for which $\text{l.h.s}=\text{r.h.s}$. For $p=n^2$, we get $\text{l.h.s}=n^6-n^2<n^7-n^3=\text{r.h.s}.$ This means that either $p>n^2$ or $p<n^2$ must hold.  Assuming $p>n^2$, it follows that the prime $p$ cannot divide any of $n,n+1,n-1$. So $p$ must divide $n^2+1$ and hence $p=n^2+1\quad (\because p>n^2)$.  Substituting the value of $p$ in the given equation we get, $n^2+2=n^3-n\implies n^3-n^2-n=2$. As the factor $n$ on the $\text{l.h.s}$ must divide $2$, the above equation has a unique integer solution $n=2$.  Finally, we get $(5,2)$ as the solution to the given equation.      But how do I conclude this is the only solution possible? Also, why does'nt $p<n^2$ (the case which I ignored) hold? As a bonus question, I would like to ask for any alternative/elegant solution (possibly using congruence relations) to the problem.


No question marked answered when bounty expired

I had this question:    All 3 responses were rated at 1 when the bounty expired. Nothing got selected as the "best answer", and I can't even manually select an answer.


Prove for any ideal $J$, $\operatorname{rad} J$ is an ideal of $A$, if $J$ is ideal of $A$.

Let $A$ be a ring, and let $J$, $K$ be ideals of $A$. The radical of $J$ is the set $$\operatorname{rad}J=\{a \in A:a^n \in J  \text{ for some }  n \in \mathbb{Z}\}.$$ Prove for any ideal $J$, $\operatorname{rad}J$ is an ideal of $A$.   I know that I will start the proof supposing that $a^n \in J$ and $b^m \in J$, and will work to show $(a+b)^{m+n} \in J.$ How would I go about this? and how do I use this to prove the ideal?


Why is tension in a rope the same at every point?

So, I had this lecture where it was explained that if the pulley is friction-less, then the tension on any point of the rope is going to be same.  I can understand the friction-less part, as pulley is not applying any resistive forces that change the magnitude of the tension force.  But even then, how can the force of tension be same at any point on the rope?


How do I find out what version of Linux I'm running?

Is there a way to determine what version (distribution & kernel version, I suppose) of Linux is running (from the command-line), that works on any Linux system?


Single word to express "over-eagerness" in a negative sense

I would like to use the sentence     He was 'over-eager' to implement his plan, leading to failure.   I am looking for a single word which expresses over-eagerness in a negative sense.  TIA


How to display, hear, and control an Android device using PC?

I used Mobizen. However, only the screen shows up. The sound doesn't come from my PC. Also I do not think I can control my Android device from my PC.  Any way to do that?  I want to connect via Wi-fi. Mobizen seems to be web based which means information would go through Internet first before showing up on my PC.


Potential difference between two assymetrically charged plates

What is the potential diff between two plates of charges $q_1$ and $q_2$ ($q_1$ $>$ $q_2$)? I know the equation is $V = \frac{q_1-q_2}{2C}$ where $C$ is the capacitance of the system but how has this equation been derived?   I apologize if this is a duplicate question. Google searches with different search terms didn't yield any answers.


In English, how do we use the polite form of address to somebody?

In French (my mother language), in order to be polite, we use "vous" (the second person of plurial) when we talk to another person who deserves respect (a boss, a teacher, etc.) and "tu" for a close friend, a child, etc.). How do we do the same  thing in English since there is only "you" for second person of singular and of plurial?


At the end of the season, what decides tiebreakers in the NHL?

If at the end of an NHL seasons if 2 teams tie in points, who gets the higher seed? What break ties? And if that thing is tied too, what further breaks the tie? And what would a perfect tie be?


Grammatical rules pertaining to 'number shifts'

Thanks everybody for your enthusiasm for my previous questions. Now I have an additional question pertaining to a particular section of English grammar: "number shifts"  For example:   The problem with this plan is all of the permits we could have to file before starting the project.   It is obvious that neither the word "is" or "are" is consistent with the noun each of them refers to. Therefore, how can I solve this dilemma? After a moment of thinking the solution, I got exhausted; therefore, I decided to get rid of this kind of confusion by changing the whole sentence into a somewhat new one:   Filling all of the permits required by this plans will probably delay the project.   However, I was still not satisfied with my attempt. So, can somebody give me some advice on how to tackle this kind of situation? Should I change the form of the sentence without changing its meaning or is there a correct way using the word "is" or "are"? If I needed to adhere to the latter approach, what would I essentially do to avoid the mismatch between "noun" and "verb"? Once again, thanks for any help!  Best regards


Zeros of analytic function of several real variables

Suppose $f$ is a non-constant analytic function on $R^n$, what can we say about its zeros set $Z(f)=\{x\in R^n|f(x)=0\}$? Does $Z(f)$ have measure 0? Is it true that $Z(f)$ is union of manifolds of dimension less than $n$?


How can I morph an image to appear "flat" when wrapped on a bottle?

I want to create an image, say of an eye, and morph it so that when I print it it may not look clear/correct, but when I wrap it around a bottle and observe it at it's center point, it takes the shape of the eye again. I believe it's a similar affect to anamorphosis art done but when I search on that all I get is anamorphic art via a mirror image, so it's depending on reflective surfaces on the cylinder and that's not what I'm after, but simply an image that's only clear from a given angle.  I think it may be necessary to slice the image up and then distort each piece, but I'm not sure of how. I can do this in Photoshop so if there's a filter, that will be helpful. Thanks in advance for any assistance.


Should I buy one of the starter sets, or the core books?

I am a new d&d player, who has some research into d&d. I have decided to try it out, but I don't know which one to buy. (I'm deciding to become a dm for the sake of the new players) Should I get the essentials kit, starters set, or the core books and a free campaign?


After many hours of searching I still haven't found a solution to the following problem. In my game I make use of an abstract factory which generates objects. I'm trying to pass a function made in this factory, which generates bullets, to enemy. For this I tried using a function pointer which points to factory->getBullet() and passing it with the constructor of enemy. It failed :)  #include "Factory.h" int main()  {     Factory* f = new Factory();     f->getEnemy(&f->getBullet);     return 0; }   Factory.h  #include "Enemy.h"; #include "Bullet.h"; class Factory { public:     Factory();     virtual ~Factory();     Enemy* getEnemy(Bullet* (*getBulletPtr)(int));     Bullet* getBullet(int damage); };   Factory.cpp  #include "Factory.h" Factory::Factory() {} Factory::~Factory() {}  Enemy* Factory::getEnemy(Bullet* (*getBulletPtr)(int)) {return new Enemy(getBulletPtr);}  Bullet* Factory::getBullet(int damage) {return new Bullet(damage);}   Enemy.h  #include "Bullet.h" class Enemy {     private:         Bullet* (*getBullet)(int) = NULL;     public:         Enemy(Bullet* (*getBulletPtr)(int));         virtual ~Enemy(); };   Enemy.cpp  #include "Enemy.h" Enemy::Enemy(Bullet* (*getBulletPtr)(int)) {     getBullet = getBulletPtr;     getBullet(10); }  Enemy::~Enemy() {}   Bullet.h  #include <iostream> using namespace std;  class Bullet { public:     Bullet(int damage);     virtual ~Bullet(); };   Bullet.cpp  #include "Bullet.h" Bullet::Bullet(int damage) {     cout << "This is a bullet: Damage:"<< damage << endl; }  Bullet::~Bullet() {}   When I try to run this code I get the following error:  ISO C++ forbids taking the address of a bound member function to form a pointer to member function.  Say '&Factory::getBullet' [-fpermissive]   When I change   f->getEnemy(&f->getBullet);   to   f->getEnemy(&Factory::getBullet);   I get the following error:  no matching function for call to 'Factory::getEnemy(Bullet* (Factory::*)(int))'   How can I pass factory->getBullet function to my enemies.  Any help would be appreciated!


Not sure if there is a better communication mechanism for asking this question. Ubuntu 12 is EOL April 2017. Do corporations have any option to extend support on 12?  Thanks


How to increase the length of a legend box in PGFPlots

If I have a legend using PGFPlots too long near the right margin of the document I can not see part of it. How can I insert a line break inside the legend, or adjust the length? (The legend is on the outside of the graph). For example:  \addlegendentry{$\text{IntegralNumérica1 }=\text{ ResuelveEDO}(x+y^2,\;0,\;0\;2\;0.1)}     Is there any way to do something like this?:  \addlegendentry{$\text{IntegralNumérica1 }=$ \\ $\text{ ResuelveEDO}(x+y^2,\;0,\;0\;2\;0.1)$}   I tried adding legend style={line width=2.8pt} in the axis environment but produces error.  Any help? Thanks!  EDIT: MWE:  \documentclass[11pt]{article} \usepackage[spanish]{babel} \usepackage[utf8]{inputenc} \usepackage{amssymb} \usepackage{amsmath} \usepackage{pgfplots} \usetikzlibrary{arrows.meta, patterns} \pgfplotsset{compat=1.8} \pgfplotsset{   Cus/.style={         axis equal image,         axis lines = center,         xlabel = $x$,         ylabel = $y$,         view={0}{90},     } }  \begin{document}  \begin{tikzpicture}[scale=0.75]     \begin{axis}[         Cus,         xmin=-4.1, xmax=4.1,         ymin=-5.1, ymax=4.1,         xtick={-4,-2,...,4}, ytick={-6,-4,...,4},         samples=20,         legend pos=outer north east         ]         \addplot[very thick,red] {x^2};         \addlegendentry{$\text{BlablablablablablablablablablablaBlablablablablablablablablablablaBlablablablablablablablablablabla}$}     \end{axis} \end{tikzpicture}  \end{document}     EDIT 2: I forgot to mention that I have more than one legend.


I'm trying to rollback a particular edit on  but for some reason am unable to rollback the edit. I'm getting the below error message when trying to rollback.    I'm trying to rollback from  because that particular edit actually breaks the code comment. Not sure why am unable to roll it back. Can anybody throw some light on this?


Exporting time series of multiple polygons to .csv without using ui.Chart.image.seriesByRegion command

Following the example provided in the GE tutorial  (see below), how can I export the data to a .csv without using the ui.Chart.image.seriesByRegion?   // Define a FeatureCollection: regions of the American West. var regions = ee.FeatureCollection([   ee.Feature(    // San Francisco.     ee.Geometry.Rectangle(-122.45, 37.74, -122.4, 37.8), {label: 'City'}),   ee.Feature(  // Tahoe National Forest.     ee.Geometry.Rectangle(-121, 39.4, -120.8, 39.8), {label: 'Forest'}),   ee.Feature(  // Black Rock Desert.     ee.Geometry.Rectangle(-119.15, 40.8, -119, 41), {label: 'Desert'}) ]);  // Load Landsat 8 brightness temperature data for 1 year. var temps2013 = ee.ImageCollection('LANDSAT/LC8_L1T_32DAY_TOA')     .filterDate('2012-12-25', '2013-12-25')     .select('B11');  // Create a time series chart. var tempTimeSeries = ui.Chart.image.seriesByRegion(     temps2013, regions, ee.Reducer.mean(), 'B11', 200, 'system:time_start', 'label')         .setChartType('ScatterChart')         .setOptions({           title: 'Temperature over time in regions of the American West',           vAxis: {title: 'Temperature (Kelvin)'},           lineWidth: 1,           pointSize: 4,           series: {             0: {color: 'FF0000'}, // urban             1: {color: '00FF00'}, // forest             2: {color: '0000FF'}  // desert }});  // Display. print(tempTimeSeries);


Verifying proof for the following power set.

I am unsure if my proof for this is correct. Need verification, please!  QUESTION: Show that the condition A = B is not a necessary one for $P(A) \cup P(B) = P(A \cup B)$ by finding examples of sets A and B such that $P(A) \cup P(B) = P(A \cup B)$ but $A \ne B.$  SOLUTION: Let A = {1,2} , B={1}  $P(A)$ = {{1},{2},{1,2}, $\varnothing$}  $P(B)$ = {$\varnothing$ , {1}}  $P(A)\cup P(B)$ = {$\varnothing$ , {1}, {2}, {1,2}}  $A \cup B$ = {1,2}  $P(A\cup B)$ = {$\varnothing$, {1}, {2}, {1,2}}.   Thus, $P(A\cup B)$ = $P(A) \cup P(B).$ However, $A \ne B$.


receive string from input and convert it to javascript object

I want to receive my javascript object such as   { "user": { "active": true,  "dob": '1988-09-11', "group": 14, "department: "business"" } }   from input using a node package such as readline-sync and store it as an object to be able to access to the values seperately using their keys. The readline-sync stores my input as an string I tried to convert it to javascript object using   let obj= JSON.parse(JSON.stringify(stringObj));   but still it is string.  Is it possible to receive a string from the input and convert it object?


I installed latest Ubuntu 14 64 bit  kindly suggest me an anti-virus to install compatible with Ubuntu 14  please also explain the steps to install it


How can I restrict program access to other users?

I'm setting up a new user account, and I want to allow access to only certain programs for just that account. How would I go around doing that?


is there any theory about why life evolved to have DNA with 4 different bases and not 6 or other number like in organisms created with artificial DNA?

If organisms can carry DNA with 6 bases which supposedly stores increased genetic information, why living organisms evolved to have DNA made of 4 bases and not 6 or other number? is there any theory about this, were the chemical process to reach those 2 additional bases much more complex or something?


How to make Unity desktop webapp (not Touch)

I want to make an Ubuntu desktop app that will display my website, kind of like the Amazon app that comes in the default installation.  I am not trying to make an app for Ubuntu Touch, nor setting up my website so it will have Unity integration when users visit it with Mozilla Firefox.   I want mine to be just like the Amazon app. It will have an icon, and won't let users navigate away from my site. (If people click a link on my site to say, facebook.com, I don't want it to let them go there.)  Is there an easy way to make one of these?


I skimmed the PHB, but I didn't find any information on "retraining" or any ways to "undo" character advancement. Is retraining (especially of classes and class features) available in any of the core books? How does it work? I'm curious about the possibility of retraining a standard Paladin into a full-on Oathbreaker.


I am writing a cross platform program. I want this one program to run under both Windows and Linux, so I have two different code segments for the two platforms. If the OS is Windows, I want the first code segment to run; if it's Linux, then I want the second code segment to run.  So I wrote the following code, but it gets an error while building both on Windows and on Linux. What should I do to solve it?  #ifdef __unix__                    /* __unix__ is usually defined by compilers targeting Unix systems */      #define OS_Windows 0     #include <unistd.h>     #include <stdlib.h>     #include <stdio.h>     #include <string.h>  #elif defined(_WIN32) || defined(WIN32)     /* _Win32 is usually defined by compilers targeting 32 or   64 bit Windows systems */      #define OS_Windows 1     #include <windows.h>     #include <stdio.h>     #include <tchar.h>     #define DIV 1048576     #define WIDTH 7  #endif  int main(int argc, char *argv[]) {     if(OS_Windows)     {         MEMORYSTATUSEX statex;         statex.dwLength = sizeof (statex);         GlobalMemoryStatusEx (&statex);          _tprintf (TEXT("There is  %*ld %% of memory in use.\n"),                     WIDTH, statex.dwMemoryLoad);      }      else if(!OS_Windows) // if OS is unix      {         char cmd[30];         int flag = 0;         FILE *fp;         char line[130];         int memTotal, memFree, memUsed;          flag=0;         memcpy (cmd,"\0",30);         sprintf(cmd,"free -t -m|grep Total");         fp = popen(cmd, "r");         while ( fgets( line, sizeof line, fp))         {             flag++;             sscanf(line,"%*s %d %d %d",&TotalMem, &TotalUsed, &TotalFree);         }         pclose(fp);          if(flag)             printf("TotalMem:%d -- TotalUsed:%d -- TotalFree:%d\n",TotalMem,TotalUsed,TotalFree);         else             printf("not found\n");      }      return 0; }


Prove that $\sqrt{n} > \ln n$ for all $n \in \mathbb{N}$.  I need to use this fact for one of the proofs that I am working on. However, I am having trouble proving this. I tried induction but don't really know how to do it. Can someone help me with this?


Weird Behaviour of Bulk ContentDocumentLinkTrigger in Test Context

I know that ContentDocumentLink triggers are not  by Salesforce. I was expecting that behavior and was writing test classes accordingly.   It looks like, ContentDocumentLinkTrigger doesn't respect the custom settings values inserted in the test context and uses the default value for that field.  Minimum Viable Code to Reproduce:  Hierarchical Custom Setting:  Name : OrgSettings__c  Field : Enable_CDL_Count__c type=checkbox default= false   Trigger:  trigger ContentDocumentLinkTrigger on ContentDocumentLink (after insert) {     switch on Trigger.operationType {        when  AFTER_INSERT{            ContentDocumentLinkTriggerHandler.handleAfterInsert(Trigger.new);         }      }   Trigger Handler:  public  class ContentDocumentLinkTriggerHandler {      @TestVisible     private static Integer count =0;      public static void handleAfterInsert(List<ContentDocumentLink> linkList) {         //         System.debug('Settings Value'+OrgSettings__c.getOrgDefaults().Enable_CDL_Count__c);         if(OrgSettings__c.getOrgDefaults().Enable_CDL_Count__c){              count ++;           }       }    } }   And Finally Test Class:  @isTest public class ContentDocumentLinkTriggerHandlerTest {      @istest     static void testBulkFileUploadWithCustomSetting(){          //Setup Dat        Account acc = new Account(Name='Dummy Account');       insert acc;        //creating 200 content version       List<ContentVersion> cvListToBeInserted = new List<ContentVersion>();        for(Integer i=0; i<200; i++){           ContentVersion contentVersionInsert = new ContentVersion(                 Title = 'Test',                 PathOnClient = 'Test.jpg',                 VersionData = Blob.valueOf('Test Content Data'),                 IsMajorVersion = true             );         cvListToBeInserted.add(contentVersionInsert);          }          insert cvListToBeInserted;          List<ContentVersion> insertedContentVersionList = [SELECT Id, Title, ContentDocumentId FROM ContentVersion WHERE Id IN : cvListToBeInserted ];           //Creating corresponding contentDocumentLink         List<ContentDocumentLink> cvlinkListToBeInserted = new List<ContentDocumentLink>();         for(ContentVersion contentVersionSelect : insertedContentVersionList){              ContentDocumentLink contentlink = new ContentDocumentLink();             contentlink.ShareType = 'V';             contentlink.LinkedEntityId = acc.Id;              contentlink.ContentDocumentId = contentVersionSelect.ContentDocumentId;             contentlink.Visibility = 'AllUsers';                         cvlinkListToBeInserted.add(contentlink);         }          System.assertEquals(0, ContentDocumentLinkTriggerHandler.count);         OrgSettings__c orgs = OrgSettings__c.getOrgDefaults();         orgs.Enable_CDL_Count__c = true ;          upsert orgs;          test.startTest();         insert cvlinkListToBeInserted;         test.stopTest();            System.assertEquals(200, ContentDocumentLinkTriggerHandler.count);          //Assert Fails System.AssertException: Assertion Failed: Expected: 200, Actual: 1      } }   As you can see,I am upserting the Org default for custom settings as true and I am incrementing count variable to count how many time handler was called. Also, I added a switch to test that behavior using same Hierarchical custom settings(OrgSettings__c).   When I ran the test class, it fails at assert. So apparently count value is 1 , which is just weird. On adding system.debug in my handler I found  OrgSettings__c.getOrgDefaults().Enable_CDL_Count__c is false 199 times and is true 1(last record) time and hence the assert failed.  This is super weird, and I don't have any explanation for it. Can someone shed some light why this is happening?


Find all instances of a word and replace with HTML

I'm trying to find all instances of the word "eNews" on a page and replace it with;   eNews    I found a few other answers on here but they were all directed towards looking in specific classes. I tried using the all elements selector to find the word but the replace I've written just replaces the entire page:  $('*:contains("enews")').each(function () {     $(this).html('eNews') });   Here is a fiddle of the sort of page set up with the word spread about the page:


If I have a 20 inch frame what is the biggest size tire I could put on it? I was just wondering  if anyone knew before I go try it.


Thumbnails for Image Files on Desktop won't load

I have a dozen or so image files on my iMac's desktop.  Most of the time, after booting up my computer, it displays a thumbnail of each image (as it should).  But sometimes, the thumbnails won't show up (see screenshot below).    It appears to happen randomly.  I estimate that it happens about 20% of the time.  Why is this, and how can I prevent it from happening?  I am running OS X 10.9.4.  Thanks.


We are going to establish a company in order to commercialize a stuttering treatment/therapy program.  The treatment/therapy is really effective and backed by a lot of scientific research.  In our recent discussions, some disagreement has come up whether to market it as the "XYZ stuttering treatment" or the "XYZ stuttering therapy".  On one hand, calling our product the "XYZ stuttering treatment" might be advantageous, because in all the research literature it is referred to as such.  On the other hand, calling it the "XYZ stuttering therapy" could be better, because all the competition markets/offers their programs as "therapies", and having the term "therapy" appears to be more serious and seems to imply effectiveness. Also, the word "therapy" appears to be more international, which could help if we offer the program abroad.  I'm not a native speaker though, so I wanted to hear your opinion and feedback.  What's really the difference between "treatment" and "therapy"?  Would you rather recommend calling it the  "XYZ stuttering treatment" or the "XYZ stuttering therapy"? Why?


Trying to find post-apocalypse short story with survivors on ship finding murder ashore

Trying to find short story about post-disaster survivors coming ashore from boats in ocean to find everybody dead from (if I remember) inter-generational mass slaughter. Think they find apartment with corpses of adults versus teenagers. They return to ships (rafts?) Thanks.


Is every electromagnetic radiation considered "light"?

Somebody mentioned on Freenode chatroom for physics that All  are delivered in form of Photons not just light.   Is it true? Does that mean if we get a THF electrical oscillator to emit the frequencies that are visible to the eye, do we see light coming out of the circuit?


On the matter of "self" in "myself", "himself", etc.  Myself seems to be formed from the possessive (my)and "self".  That appears at first blush to be a single word that is formed from the "self that belongs to me".  Himself seems to be formed from the objective (him) and "self".  That appears to be a single word from the plain "him" and an extra word that indicates a kind of reflexive.  Italian and Spanish use that form by using the word for "same" (stesso, mismo).    Herself is the same as himself, but you can't tell, since the masculine object and possessive pronouns are different (him, his) but feminine are the same (her).  But, in the case of the second person, we use the possessive again -- yourself. (The self that belongs to you.)  Now, the hobgoblin of this particular small mind would like to get the history of how this happened. You see, in MY acquired language, to say "He did it by hisself is dialect and WRONG", yet it seems perfectly reasonable to regularize the whole scheme into something coherent.  I have read "meself", but only when regional dialect is in play.  It sounds wrong to me, but it would regularize the scheme.  I'd like to get a handle on this, because we have the neuter "they" coming up, when he/she is inappropriate.  In my fantasy grammar, I'd say   In the convent: Let everyone do as she wants.    In the monastery: Let everyone do as he wants.    In the public place of indeterminate gender: Let everyone do as they wants.    (Get it?  Third person singular.  "They" works fine, since the conjugation defines the singular/plural issue.)    I like my little scheme for the neuter "they", but if I start mixing that with "self", it's going to get sorely non-standard, but at least it's unambiguous.  I LOVE clarity, and will be willing to sacrifice some conventions to make it happen, but it will be weird.  If I have to mix in a "self" to that, my speech will become incomprehensible, so I tread slowly.  Any thoughts on the matter?


How do I forward/NAT all traffic to one interface/IP to a remote IP?

I have one "server A" that has multiple IPs attached to it, like so:  eth0:0 1.1.1.1 eth0:1 1.1.1.2 eth0:2 1.1.1.3   I have another "server B" that also has multiple IPs attached to it, like so:  eth0:0 2.2.2.1 eth0:1 2.2.2.2 eth0:2 2.2.2.3   Now, I want to setup iptables on "Server A" to forward/NAT all incomming traffic on "eth0:2" to IP 2.2.2.3 on "Server B".  I have verified that "Server A" is able to "talk" to "Server B" on IP 2.2.2.3. Ping and telnet to open ports works just fine and I have the forward-flag turned on (net.ipv4.ip_forward=1)  I have tried multiple different ways, DNAT, SNAT, MASQUERADE etc, but I cannot get anything to work.  This line works fine if I try to forward traffic between IPs on the SAME server:  iptables -t nat -A PREROUTING -d 1.1.1.3 -j DNAT --to-destination 1.1.1.2   But if I switch out the "1.1.1.2" for "2.2.2.3", it does not work.  I assume that I need a second iptable rule to solve it. I have tried with the following POSTROUTING rules without any luck (not at the same time):  iptables -t nat -A POSTROUTING -d 2.2.2.3 -j MASQUERADE iptables -t nat -A POSTROUTING -d 2.2.2.3 -j SNAT --to 1.1.1.3 iptables -t nat -A POSTROUTING -j MASQUERADE   What am I missing?  EDIT 1:  I finally got it to work by using the following:  net.bridge.bridge-nf-call-iptables=0  iptables -t nat -A PREROUTING -d 1.1.1.3 -j DNAT --to-destination 2.2.2.3 iptables -t nat -A POSTROUTING -d 2.2.2.3 -j SNAT --to 1.1.1.3   However, now another problem appeared. All logs etc on server 2.2.2.3 shows that ALL traffic now comes from 1.1.1.3, like apache logs, mail logs etc. I assume this is the nature of NAT.   However, when I do standard port forwarding on my home-router to my laptop that is running apache, I see the original "requester IP" in the logs. So, how does the router do this? And how can I do the same on my server setup?  Bottom line, I want to forward all traffic from Server A (1.1.1.3) to Server B (2.2.2.3), BUT I also want to be able to see where the traffic came from on Server B (2.2.2.3), i.e the apache logs should show the original IP of the requester.  I assume I should use some other way than NAT to make this happen, and it should be possible, as even my simple home-router is able to do this.  One extra thing, the IPs attached to Server A and Server B is LOCKED to each respective server. Thus, Server A is NOT able to send out traffic FROM IP 2.2.2.3. It is locked by my provider in the router.


The problem that I am running into is that 'data' variable is not being set whenever I try to read in the json object. I only get an empty set. Below I have the code and the outputs.   import json  data = []  def add(name, amt):   data.append({"ticker": name, "amount": amt})  def write():   with open('portfolio.json', 'w') as file:     json.dump(data, file)  def load():   with open('portfolio.json', 'r') as file:      data = json.load(file)  def main():   choice = input("Do you want to add vals? (y/n): ")   if choice == 'y':         add('btc', 43.2)     add('xrp', 256.5)     add('xmr', 655.3)     print(data)     write()    if choice == 'n':     load()     print(data)  main()   Output 1:  Do you want to add vals? (y/n): y [{'ticker': 'btc', 'amount': 43.2}, {'ticker': 'xrp', 'amount': 256.5}, {'ticker': 'xmr', 'amount': 655.3}] Press any key to continue . . .   So now the file 'portfolio.json' contains the json object with all of the data, correct? So, now when I try to read that in, this is what I get:  Output 2:  Do you want to add vals? (y/n): n [] Press any key to continue . . .   As you can see, the data variable is just an empty set, and it is not taking in the data. However, if I were to go inside the load function and print out the data variable, I would get my value.


fundamental theorem of arithmetic word problem

Hi here is the question I have in hand:     There are $1000$ empty baskets lined up in a row. A monkey walks by, and puts a banana in each basket, because this is a word problem,   and that is what a monkey would do in this situation. There is an unlimited supply of bananas. A second monkey walks by, and removes   a banana from every other basket, starting with the second basket. I may not have mentioned there are also $1000$ monkeys. Monkey $\#3$   walks by. Starting with the third basket, and visiting every third basket thereafter, this monkey removes a banana from any basket   that contains a banana, and places a banana into any basket that needs one. (Monkeys don't think in terms of, "this basket is empty",   they just think "this basket needs a banana".) Anyway, the fourth monkey goes by, doing the same thing to every fourth basket. This   continues all afternoon until all $1000$ monkeys have walked by the $1000$ baskets. How many bananas are in baskets?   So, to my understanding this clearly has something to do with prime factorization. My thought process is,   If we take   $$1000 = 2^3 \cdot 5^3,$$  we can obtain using divisor function and multiplication principle  $$d(1000)=(3+1)(3+1)=4\cdot 4=16,$$  telling us that there are $16$ divisors of $1000$.   My problem is, how do I account for "every fourth basket" and so on? How do I conclude that there are $x$ number of bananas left? A little lost as to how I proceed in this case.


So I have been hosting my own Minecraft server for me and some friends for a while and everything has been working fine for the longest time. However, in the past week I have been having a problem. The problem is that no one can connect to the server and when someone tries to it says "io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection timed out: no further information"  The server is 1.12.2  Things I have tried are: Restarting Minecraft Restarting Computer Uninstalling and Reinstalling Mincraft Uninstalling and Reinstalling Java Altering Firewall Restarting Internet I've messed with my port  There are no mods only 3 plugins ClearLag SetHome WorldEdit They are all up to date. Please someone help me, my Mojang support ticket didn't help.


Determine all entire functions which are injective. This is it.  Now, I know all entire functions that are injective take a specific form under certain conditions, but the formulation seems a bit weird for me. I would appreciate if someone could help what the author's idea is with this.


I have a sample json like this: {     "userStory" : {"name":"US41235", "referenceNumber":"xx", "projectName":"yy"},      "warnings": [] }}  Tried the below code in Apex.  if(!resJSON.endsWith('}')){                 resJSON =  response.getBody();   }  Map<String,Object> resObj = (Map<String, Object>)JSON.deserializeUntyped(resJSON);  Object tempMap = new Map<String,Object>() ;          tempMap = String.valueOf(resObj.get('userStory'));  //--- Getting an error while executing the below 2 lines. String x = String.valueOf(tempMap.get('name'));                      System.debug(' x' + x );  The error I get is :  19:34:33:862 USER_DEBUG [489]|DEBUG|EEEE==Invalid conversion from runtime type String to Map<String,ANY>  My requirmenet here is to get the name, referenceNumber , projectName. Any help is apprecaited.


How do I solve the error "Segmentation fault (core dumped)"

#include <stdio.h> #include <string.h>  void space_to_tab(char *string) {     char str [strlen(string)];     int size = 0;     while(string[size] != '\0'){         if(string[size] == ' ')             str[size] = '\t';         else             str[size] = string[size];         size++;     }     *string = *str;  }  int main() {     char *str = "aa b";     printf("%s\n", str);     space_to_tab(str);     printf("%s\n", str); }   I just started with C programming and I want to switch the spaces in a string with tabs and I get the error "Segmentation fault (core dumped)".  I belive the error is in "*string = *str;" but I dont know how to change the pointer of one string to the other.


Can I make a folder inside a repo the repo?

I messed up when I created my original repo. Instead of making the project folder the repo I made it parent folder the project. So it looks like this: Repo:  The actual project unrelated stuff more unrelated stuff  Is there a way to make the actual project the repo, without destroying all the history of the files if I'll try to move it/delete the other stuff?


Does homomorphic encryption hide the algorithm itself?

The question is rather simple, but finding resources and answers quite tricky. Homomorphic encryption should enable us to compute over encrypted data. What if the algorithm for computing should be kept in secret as well? Given we have a functioning homomorphic encryption in place, is the algorithm which is applied to the input data also secure? Is it possible for an intruder to understand how the data is computed and learn about the algorithm, given the intruder has access to the program which does the computation? Update I tried to ask about circuit privacy or protection with this question. Luckily and unfortunately I learned about this term only by asking this question, which was misleading a bit. So the question should have been: Does FHE offer circuit privacy? With this term I found some papers which answer my question.


Is it possible to browse a chatroom under invisible mode?

E.g.  I know that I can browse the chat when I'm not logged on. But what if I am logged on and want to spare the inconvenience of logging off/multiple browsers?


Limit as a sum with binomial coefficients

$$A = \lim_{n\to\infty} \left(\binom{n}{0}\binom{n}{1}\binom{n}{2}\dots\binom{n}{n}\right)^{1/n(n+1)}$$ We need to find the value of $A$.  My attempt: I tried taking log both the sides and went from there. $$ \ln A = \lim_{n\to\infty} \bigg(\frac1{n(n+1)} \bigg[(n+1) \ln n! - 2 \sum_{k=0}^n(n-k+1) \ln k )\bigg]\bigg)$$ I don't know how to proceed from here. Also, can we some how utilize gamma function in this question since we will be dealing with factorials?


Theorem: If $f$ is finitely differentiable at $c$, then $f$ is also continuous at $c$.  But according to the definition, for a function to be differentiable at $c$, it need not even be defined at $c$, just that it should have a finite value in the vicinity of $c$.    My question: If function is not defined at $c$, how can it be continuous at $c$?  For example, say we have a straight horizontal line function which is broken at $x=1$, the function is defined at all the points except $x=1$, it has a finite value at all the points except $x=1$, since it is having a value in the nearby region of $x=1$ we say that it is differentiable at $x=1$ but can we say that it is continuous at $x=1$?


I'm using Ubuntu 14.x, and recently attempting to create files failed with some kind of disk is full message.  I had more than 2gb spaces and that's not possible, but I heard that it can causes if inode is full.  I'm not skilled linux user, so I don't get it how to remove them. First what I do was typing this above command as root to see how many inodes were used:  $ df -i -h Filesystem     Inodes IUsed IFree IUse% Mounted on udev             248K   414  248K    1% /dev tmpfs            250K   467  250K    1% /run /dev/xvda1       512K  512K     0  100% /   Yeah, it's 100%. Then I found the command that shows how much inodes were used in current system:  #  for i in /*; do echo $i; find $i |wc -l; done   It prints this:  /bin 172 /boot 353 /dev 416 /etc 1971 /home 21808 /lib 17720 /proc 43272 /sys 36453 /tmp 5134 /usr 423458 /var 10117 ...   So I deleted some files in /home/dev, and I got some free inodes back, but not much:  Filesystem     Inodes IUsed IFree IUse% Mounted on /dev/xvda1       512K  464K   49K   91% /   Besides, when I re-install the files that I needed, it takes inodes again, so this actually not solved.  I saw that /usr directory takes almost of inodes: 423458, but I don't know which files can I remove that doesn't affect other system or programs.  How do I find "unnessecary" inodes to delete? Any advice will very appreciate it.


When to apply logarithmic transformation to a variable?

My question is in which cases you should think about transforming your variable into a logarithmic one? My dependent variable in the number of patents a long a period of years and one of my explanatory is "R&D BUDGET" (research and development) . Whan im doing a regression i get a low values of R squared and Adj. R squared , and the intuition is that more budget will increase the number of patents . Is this kind of case i should consider transforming my explanatory variable into a logarithmic? Thank you in advance, Nitzan


On webmail every user gets error "ERROR: Message not sent. Server replied: 354" while sending mails.   But mails are sent properly and reaches properly.  Can you tell me where is problem, and why it is occurred?  UPDATE: I found in some resources that this is not an error but standard information message. On the other side, it's annoying. Can you tell me if it is a true, and if it is how can I avoid it?


Auto generate map from natural earth data with QGIS or other utility

I'm looking at natural earth data to generate each country and save it as a png. What I'm using is: 10m_populated_places, 10m_admin_0_countries and 10m_land.   The populates places is the first layer, then the countries and then the land. For each of the countries I want to:  1) Filter populated places to FEATURECLA = 'capital' & ADM0NAME = country  2) Filter countries to ADMIN = country  3) Set the said country in the middle of the screen and save it as an image. For this I need to zoom in but leave some space around the country.   I'm a complete beginner, what is the easiest way to accomplish this with QGIS or some other GIS software?


Allow users to put their e-mail in posts?

Should I edit out the (thankfully obsfucated) e-mail address from this ?  Is this something we should allow on the site going forward?  I don't care about the "thank you" or "hello", but this might lead to an answer being sent by e-mail, which would mean it wouldn't be peer reviewed (for what that's worth), and the answer would be lost to the community.


I want the java plugin to work in Firefox and so I want to be clear on something. It appears that the default JRE (OpenJDK) that one gets from doing  sudo apt install default-jre   will not work, and so it is useless.  One needs either icedtea-8-plugin:i386 or oracle-java8-installer.  Is this right?  Previous answers to questions about this just say install icedtea, but do not explain why?  I am asking specifically if this is because openjdk cannot be made to work in Firefox.  And I am wondering why in the world that would be?  Strikes me as absolutely crazy.


Can I use a valid visa in a cancelled passport?

I lost my passport, filed a First Information Report with the police, and applied for new passport. It will arrive in 5 days, but I found the passport I reported as lost. I visited the local Seva Kendra passport office to tell them I found my passport and they put passport is cancelled and visa if any remains valid seal on it. Can I travel on the same visa by carrying both passports?


Is there a converter that will convert LaTeX to HTML? I have tried several services but the LaTeX diagrams and some of the maths came out weird.  I actually converted the Latex to PDF without a problem. Then I used  to convert from PDF to HTML. The square root signs did not appear properly and some of the Cartesian coordinate plane diagrams had nothing on them except the grid.   \documentclass[12pt,a4paper]{report} \usepackage{amssymb} \usepackage{amsthm} \usepackage{amsmath} \usepackage{pstricks,pst-plot} \usepackage{pst-eucl} \addtolength{\hoffset}{0.2cm} \addtolength{\textwidth}{1.1cm} \addtolength{\textheight}{1.0cm} \addtolength{\voffset}{-0.7cm} \linespread{1.3} \begin{document}  If $x$ is non-positive then $x \leq -\sqrt{\frac{1}{2}}$     $\hspace{30 mm} $     (6)\\  (4) and (6) tell us that\\  (4)  $-1 \leq x \leq 0$  \\  (6)  If $x$ is non-positive then $x \leq -\sqrt{\frac{1}{2}}$\\  Therefore $-1 \leq x \leq -\sqrt{\frac{1}{2}}$\\  \vspace{50 mm}  \begin{align*} \psgrid[unit=2cm](0,0)(-2,-2)(2,2) \pnode(-1.8,.87){b}\uput[50](b){b} \pnode(-1.8,1.8){a}\uput[50](a){a} \psset{linecolor=green} \psline[linewidth=1pt](-1.8, 0)(-1.8,4) \psset{linecolor=green} \psline[linewidth=1pt](-1.8, 0)(-1.8,-4) \psset{linecolor=blue} \psellipticarc(0,0)(2,2){0}{180} \psset{linecolor=red} \psline[linewidth=1pt,linestyle=dashed,dash=2pt](-2,2)(-1.41,1.41) \psset{linecolor=red} \psline[linewidth=1pt](-1.41,1.41) \psset{linecolor=red} \psline[linewidth=1pt]{->}(4,-4) \psset{linecolor=red} \psline[linewidth=1pt]{->}(-2,2)(-4,4) \end{align*}  \end{document}   PDF output:    PDF->HTML output:


Space problem with Sandisk 32 GB flash drive

When I try to copy an 8 GB video file (.mov) from the Files -> Downloads directory to a Sandisk jumpdrive with 31 GB of free space on it (after emptying all trash), the copy stops at about 4 GB and eventually times out with the error message      Error splicing file: File too large.   Not sure if this a driver problem or something else. Any suggested solutions would be appreciated.


I need to install WoeUSB to create a USB stick to install Windows, so I added the repository using:   sudo add-apt-repository ppa:nilarimogard/webupd8  sudo apt update   and everything is fine until this point. when i run sudo apt install woeusb I got this error:  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  woeusb : Depends: p7zip-full but it is not installable           Depends: libwxbase3.0-0v5 (>= 3.0.4+dfsg) but it is not installable           Depends: libwxgtk3.0-0v5 (>= 3.0.4+dfsg) but it is not installable E: Unable to correct problems, you have held broken packages.   I honestly don't know what to do, i looked online and found nothing, can you help me?


Focus of lens dropoff from center to ends

I have come across a couple lens manufacturers that mention that when a lens is focused such that the center of the FOV is well focused, the extreme ends of the FOV will be slightly defocused.   What is the reason for this? I was of the opinion that lenses are focused for a certain distance and if the entire FOV is filled with a target at that distance, it would be equally well focused all over.  Thank you.     edit: after going through some more I came across the page where they measure resolution of lens. It seems like they focus at the center (which reduces the resolution at the sides since it is in relative defocus). And then they turn back the focus some so that it defocus the center a bit for larger gains in focus at the ends. Is this common practice?     edit: for instance, this is an excerpt from  on Edmund Optics     This also can cause issues depending on whether the system is only focused in the center of the FOV or across the entire FOV; because of the resolution varying based on location, it can be difficult to determine when the entire FOV is in best focus. Some lenses obtain very high resolution in the center of the FOV, but very low resolution in the corners when the lens and camera system is focused on the center of the image. A slight defocusing of the lens can balance the resolution across the field, although usually to the detriment of the center resolution.


Auto select input field when toggle is actioned

I have a search bar that only displayed when the toggle button is clicked. The code I am using to do this is:  $("a.search-toggle").click(function(){     $(".search-bar").slideToggle(200);     $(this).toggleClass("open"); });   Now I am trying to find a way to auto select the input[type="search"] field when this toggle is actioned. Currently the user has to click the toggle button, then click the search field which isn't very user friendly.  Note  I am not looking for this to occur on page load, only once toggle has been activated.


I'm trying to cast a list of byte to a list of ints.   My List of bytes only contains one value 11.  tmpMarketRights = AllMarketRights.Cast<int>().ToList();   11 should be able to be casted to an INT does anyone know why this cast is invalid, and the shortest way to cast a list of bytes to a list of int?


Why am I getting a NullPointerException for this loop?

I'm writing a for loop to iterate through the array and find the index of the employee with the social security number of 123456789. Why do I keep getting a NullPointerException?   .getSocSecNum() returns a String  empnew[21] = Empthe1; String temp = "123456789" for(int i = 0; i < empnew.length - 1; i++){ if(empnew[i].getSocSecNum().compareTo(temp) == 0){ System.out.println("the location of the employee is " + i);         }     }   I want it to output "the location of the employee is 21" but all I get is a NullPointerException


PGFPlots: calculate linear regression of part of the plot

I'm trying to calculate the young modulus of a certain material using it's load-deflection curve. For such, I need to get the slope of the linear part of the curve (just the beginning). But my files contain the whole data, so I tried to remove the rest of the data by restricting the domain as shown in , didn't work. Then I came upon this one: .  I thought it would solve my problem but the answer is kind of incomplete, as it only tells how to ignore the beginning of the data which is the opposite of what I want. I also saw a question on how to mod the file but there must be an easier way I'm not seeing.  Here's a MWE (with the domain restricted)      \usepackage{pgfplots}     \usepackage{pgfplotstable}     \pgfplotsset{compat=1.12, legend pos=north west, legend style={draw=none}}  \begin{tikzpicture}     \begin{axis}[xlabel=Deformação (mm),ylabel=Força (N), ymin=0, width=\textwidth, height=\textwidth, scaled ticks=false, ytick={0,10000,20000,30000,40000,50000}]     \addplot +[restrict x to domain=7:14] [no markers, red, thick] table [x=Deformacao, y=Forca, col sep=semicolon]{cp2.csv};     \addplot +[restrict x to domain=7:14] [no markers, black, dashed] table [y={create col/linear regression={y=Forca}}, col sep=semicolon]{cp2.csv};     \addlegendentry{CP2}     \addlegendentry{E=$\pgfmathprintnumber{\pgfplotstableregressiona}$(N/mm)}     \end{axis} \end{tikzpicture}   This is the result:    Here's the complete data (no domain restriction)    And if it's of interest this is the


Calculate velocity when mass hit the Sun

Suppose no planet exist in the solar system, only the sun.  Then place a mass at a distance $r$ from the sun.  At what velocity does the mass 'hit' the sun?  Suppose both mass and sun are points in space and movements happen in a line. I know the relativistic consequences of this, just simplify things a bit...  My question rises from calculating the integral $v = a(t)dt$.  I know the acceleration by Newton's law, given by $G\frac{M}{r^2}$, but it depend on the distance and I'm not integrating over distance, but over time.  In the end, $G*M$ are constant, hence I am getting integral of $\frac{1}{r^2} dt$, and I'm stuck.  I'm not looking for answers involving mechanical conservation of energy, simply answers involving this integration method.   Also, how much time does this mass take to hit the sun?  I wrote out the integral of $\int G\frac{M}{r^2}t, dt$, but cannot go further with my actual knowledge.