How to remove http://www.dalesearch.com from my PC

I am asking our community to get proven experience of how to remove "dalesearch" AdWare from my PC.  I uninstalled it from applications, reset home page from browser, but it appear again as home page in my browser (FireFox) and there is nothing in add-ons> extensions or plugin, so that please help me if such experience exist.


Grave accent obfuscation XSS Attack can't be escaped in iframes

I have my function here to clean strings called  function clean($str) {   $str = htmlspecialchars(strip_tags(trim(mb_convert_encoding($str, 'UTF-8', 'UTF-8'))), ENT_QUOTES, 'UTF-8'); return $str; }   Right now, I checked the possible XSS attacks, And this one worked ok on <img src"$str"> but when i swapped the the element to <iframe src"$str"> the JS was executed using the following  $attr = clean("javascript:alert(\"RSnake says, 'XSS'\")"); $str = "<iframe src=\"$attr\">";   But for $str = "<img src=\"$attr\">"; it was safe.  How to handle this vulnerability?  What i did was adding extra part for the function which was like this  function clean($str) {   $str = htmlspecialchars(strip_tags(trim(mb_convert_encoding($str, 'UTF-8', 'UTF-8'))), ENT_QUOTES, 'UTF-8'); $str = htmlentities($str, ENT_QUOTES); return $str; }


SQL Server: Get table primary key using sql query

I want to get a particular table's primary key using SQL query for SQL Server database.  In MySQL I am using following query to get table primary key:  SHOW KEYS FROM tablename WHERE Key_name = 'PRIMARY'   What is equivalent of above query for SQL Server ?.  If There is a query that will work for both MySQL and SQL Server then It will be an ideal case.


I am non-binary - recent events have made SE less safe for me (and other members of the LGBTQ community)

I am a member of the network and posting anonymously for my safety.  CW: References to and examples of hate speech  I don't want to put blame anywhere, but unfortunately due to the huge turmoil created by the recent CoC changes, several right-wing websites have started reporting and thus directed attention of far-right groups to this network. I don't want to provide any links, but it's not too difficult to find examples with your favorite web search engine.  Now, while you have the typical gut wrenching hate speech with murder and torture fantasies, there was one particular case where someone posted pseudo-code for automatically going through the member database of SE and finding users who have listed their pronouns in their "about me" section. The pseudo-code then moved those users into a category for torture and extermination. While at this point it's pseudo-code I fear it's not too unlikely to think that someone could put this into a working tool for doxxing LGBTQ users on this platform. It seems that the Neo-Nazis consider the downvotes on the CoC FAQ an affirmation of their views.  I therefore have removed my pronouns from my "about me" section. This is unfortunate. In the past I did feel welcome. The few situations in the past where someone misgendered me have all been resolved quickly and easily, with everyone being friendly, understanding and accepting when I corrected them.  Now I don't dare correct people any more, not because I fear backlash from the particular person in the particular situation, but because literal Neo-Nazis are now watching this platform with horrible intentions.  I have no idea how to fix this, but I guess we can only wait for things to settle down.


Rearrange button order in Suggested Edits review queue

There was an earlier suggestion to  to prevent errant clicks.  I would suggest a similar thing (knowing the previous didn't get implemented for close votes) in the Suggested Edits queue.  The current order of buttons there is:  Approve Reject Improve Skip  Already twice today, I managed to mis-click on Approve when intending to Reject.  Having no confirmation or subsequent reason selection to make, my errant approvals were saved.  To remedy this, a better order might be:  Approve Improve Skip Reject   My (over?)thinking here is that:   Approve and Reject are really unlikely to be confused in a wild click A mis-click between Approve & Improve will do no harm if taken to the Improve screen,  and not a huge amount harm if Approved when intending to Improve. Between Improve & Skip an errant Improve can be backed out of  An errant Skip just kicks it down the road... Between Skip & Reject, an errant click on Reject gives can be backed out of on the reject reason An errant click on Skip just kicks your intended rejection down the road to someone else.   To maintain consistency with all the other queues, Skip probably needs to remain the right-most button. This doesn't deviate much from what is above in effectiveness. What's most important is to separate the Approve and Reject actions, approvals have no secondary screen.  Approve Improve Reject Skip


In my regression model of BMR on age (yrs) , gender (1=male, 0=female), height and weight. The regression equation obtained is:  BMR = 1232.059+13.281 weight+3.954 age+192.214 male-3.471 age:gender.  Please interpret the negative coefficient of age:gender interaction. Do the negative coefficient have anything to do with the positive coefficient of age and gender?


Why does the exponential distribution's pdf integrate to 1?

From All of Statistics pg. 29:     EXPONENTIAL DISTRIBUTION. $X$ has an Exponential distribution with paramater $\beta$, denoted by $X \sim \text{Exp}(\beta)$, if      $$ f(x) = \frac{1}{\beta}e^{-x/\beta} \text{s.t. } x > 0 $$      where $\beta > 0$. The exponential distribution is used to model the lifetimes of electronic components and the waiting times between rare events.   But this must mean (in order for the probability density function to make sense) that  $$ 1/\beta \int_{0}^{\infty} e^{-x / \beta} = 1 $$  so that  $$ \int_{0}^{\infty} e^{-x / \beta} = \beta $$  But why is this?


When and where was “portfolio career“ first used?

The expression  meaning:  the fact of having several part-time jobs at once, rather than one full-time job:    A portfolio career is suitable for people who want to have a variety in their work life.   (Cambridge Dictionary) Etymonline has no information about the origin of the above expression, can anyone tell me when and where it was first used?


The following template without the name of the journal and date

How to keep all the features in this template but remove the Elsevier and date at the bottom of pages.  \documentclass[preprint,12pt]{elsarticle} \usepackage[english]{babel}  \usepackage{graphicx} \usepackage{amssymb} \usepackage{cite} \usepackage[superscript]{cite} \usepackage{lineno} \usepackage[colorlinks=true]{hyperref} \usepackage{natbib} \usepackage{footnotebackref}  \begin{document} \begin{frontmatter}  \title{\textbf{what and why}   \begin{abstract} this is abstract \end{abstract}  \begin{keyword} \hspace{-0.5cm} social epistemology, testimony, manipulation, truth, knowledge \end{keyword} \end{frontmatter} \end{document}


I have a direct question  Is there any practical attacks on the AES cryptosystem (128-192-256 keys)


I use the code below for representing three pictures in order as subsections. But, the Figure number is not showing in the caption. Thanks.  \begin{figure}     \centering     \begin{subfigure}[b]{0.3\textwidth}         \includegraphics[width=\textwidth]{Fig1}         \caption{Social Networks}         \label{fig:Social Networks}     \end{subfigure}     ~ %add desired spacing between images, e. g. ~, \quad, \qquad, \hfill etc.        %(or a blank line to force the subfigure onto a new line)     \begin{subfigure}[b]{0.3\textwidth}         \includegraphics[width=\textwidth]{Fig2}         \caption{Energy Networks}         \label{fig:Energy Networks}     \end{subfigure}     ~ %add desired spacing between images, e. g. ~, \quad, \qquad, \hfill etc.      %(or a blank line to force the subfigure onto a new line)     \begin{subfigure}[b]{0.3\textwidth}         \includegraphics[width=\textwidth]{Fig3}         \caption{Internet}         \label{fig:Internet}     \end{subfigure}     \caption{Examples of graph data modelling}     \label{fig:graph modelling} \end{figure}


Show that the sequence $a_1=1$, $a_2=2$, $a_{n+2} = (a_{n+1}+a_n)/2$ converges by showing it is Cauchy.   My work : Need to show that for every $\epsilon \gt 0$ there exist $N$ such that $n,m\ge N \implies  | a_n - a_m|  \lt\epsilon$. $$|a_n-a_m| = \dfrac{1}{2}|(a_{n-1} + a_{n-2}) - ( a_{m-1} + a_{m-2})|$$ I feel triangle inequality might be helpful here, but really not sure how to link it to the $\epsilon$. Appreciate any help...


Terrain based military upgrades - your terrain or the enemies'?

When you upgrade a military unit, e.g. an archer, and you have terrain based bonuses such as "15% attack bonus on rough terrain". If you choose such upgrade, when do you get the bonus, when the enemy is on rough terrain, or when you are on rough terrain? Thanks.


I ask myself this question from a microscopic point. I assume that at our scale it's pretty easy to say that an object is flat or not.    You need to imagine that we are at the top layer of a material. Above there is air and below the tube there is the rest of the material. The tube is just the top layer of the material with radius $\delta$, considered as the radius of a nucleus !    My question is : If we define this material as flat, does it mean that the top layer is perfectly aligned (Fig 1) or can we consider some little error $\varepsilon > 0$ (Fig 2) ? $\varepsilon$ is defined as the difference between the center of 2 nucleus


If in a ring $R$, $x^2=x$ for all $x$ then show that $2x=0$ and $x+y=0$ implies that $x=y$


Debian 9.4-- .profile not read on bash login

The .profile file includes a statement to add the $HOME/bin directory to the PATH (if that bin directory exists). This is not being executed on my bash login.  If I manually load the .profile file   . .profile    then the PATH is set.  On session start, the .bashrc file is read. It includes a statement to read the .bash_aliases file if it exists, and I can see that the aliases are set.   The .profile file includes a statement to read the .bashrc file if it exists so I assume that the bash init should read the .profile where it is now reading the .bashrc.   This isn't happening. Please advise.  Thanks.


I would like to evaluate in a closed form the integral  $$\int_{\mathbb{R}}\frac{\exp(-x^2)}{1+x^2}\,\mathrm{d}x$$  I tried various methods :    integration by parts some changes of variables ($y=x^2$, $x=\tan$) residue calculus (but the factor $\exp(-x^2)$ forbid to send the contour to infinity) developping $\exp(-x^2)$ or $\frac{1}{1+x^2} $ in power series (but in both cases one cannot exchange sum and integral)   Does anyone knows if this integral is known, or how to evaluate it ? At least I would like to find an exact expression.  The reason for me to believe that a closed form exists is that this integral arose in a problem of probability where I expect - if I haven't made any mistake previously - a very simple expression.


Why don't most cameras store filenames based on date and time?

I notice that when taking photos using my camera phone, the file name consists of the date and time. (e.g. 20131101-110015.jpg)  However, most point and shoot and DSLR cameras do not. Their file name is usually in a sequence like DCM0011.jpg  Is there a way that we can set a camera option so that it will create the file with a name that contains the date and time?  With reference to a Point and Shoot Camera Samsung EX1 vs a Camera phone Samsung Galaxy S2


Is there a statement for the median like the central limit theorem for the mean?

According to the Central Limit Theorem (CLT) in statistics, the distribution of the average of randomly sampled n observations tends to follow normal distribution as the sampling size n becomes larger, even when the parent distribution from which the average is calculated is not normal. The distribution of the average of randomly sampled observations has the same mean as the parent distribution and its variance is equal to the variance of the parent divided by the sampling size.  So, my question is, is there a similar CLT-like statement for the distribution of the median of randomly sampled n observations.


Python sqlite can't seem to count bind parameters?

I've got a little module doing some sqlite operations, and python/sqlite can't seem to count the number of arguments it's passing (thinks there's 7 parameters instead of 1)?         sql = 'select * from tbl where stuff = ?'        results = self.dbconn.execute(sql, things)   Output:       File "./DeeTee.py", line 25, in stuff        results = self.dbconn.execute(sql, things)    ProgrammingError: Incorrect number of bindings supplied. The current statement uses 1, and there are 7 supplied.


I have dual boot Ubuntu 14.04 and Win8.1. For some reason (my mistake) I have my home partition (80GB) than swap (4GB) and then 200GB of unallocated space (in that order). I want to use this free space. Can I move swap partition on the end of unallocated space and extend home partition (with-out loss of data)? Or should I just make another partition where the unallocated space is. Does the position of partitions matter or no? (Someone said to me once that swap should be at the end.)


CENTOS, problems to identify why a user is using so much space

I am having disk space issues with my CentOS server, a single user is using up to 1,7tb of data, or it is what the du -sh* /home command is telling. But when you enter the user folder and use the du -hscx * command, it tells you that the user is  in fact using 480gb of space. I simply can't identify what is using the extra 1.3tb of space. Is there anyone here who knows how to deal with this problem?   Thank you very much


I wonder if there's any tool by which I can record my audio/video conversations in Skype or Google Talk!  My Ubuntu version: 12.04 Skype version: 4.2.0.11 Google Talk Plugin: 4.2.1.0 Webcam: Logitech C525  Thanks for the reply.


How to evoke Preview's title bar saving dialogue by shortcut?

Preview shows the currently opened document’s name in its title bar. When hovering over this name, a arrow appears at the right. After a click, there is a dialogue where you can chance the file name, the file tags, the directory and set the file as protected. This is quite handy if you want to add a tag without opening the file's preferences from the Finder view.  How can I open this dialogue using keyboard shortcuts?  Thanks for help.


Why click event for file browse window is not working?

<input> for select images:  <input type="file" class="form-control forminputs files photoimg" multiple name="photoimg[]" placeholder="Choose 3 image files" accept="image/png,image/jpeg" id="photoimg" />    I am trying to select at least 3 images. If it is exceeded 3, then it alerts "please select 3" and again automatically opens file browse window.   Up to alert everything works fine but after that file browse window is not opening.   JS code:  $('#photoimg').change(function() {     var files = this.files.length;     if (files > 3)     {         alert("Please select 3 images only(png/jpg)");         document.getElementById("photoimg").click();     }  });   tried with this.click() and  $('#photoimg').click();.   $('#photoimg').click(function() {      alert("clicked");      });   to test it click event was taken, click event was working but still file browse was not working. Why it is not working?


How do I show battery percentage in GNOME Panel without using any extension?

By default GNOME (and hence Ubuntu 17.10 and later releases) doesn't show battery percentage in the notification area of the Panel. There are  (for example , ,  etc.) which do the job.   Is there a way to attain the goal without using any extension?


cup product in cohomology ring of a suspension

Let $X$ be a CW-complex. Let $\Sigma$ be suspension. Let $R$ be a commutative ring. Is the cup product of  $$ H^*(\Sigma X;R)$$ trivial? How to prove? Where can I find the result?


$\mathop{\lim}\limits_{x\to+\infty} \dfrac{\ln x}{x^\varepsilon}, \varepsilon>0$ without L'Hospital's rule

I got stuck when proving $\ln x = o\left( {{x^\varepsilon }} \right)$ ($\varepsilon>0$).  Any ideas without L'Hospital's rule? $$\mathop{\lim}\limits_{x\to+\infty} \dfrac{\ln x}{x^\varepsilon}, \varepsilon>0$$ Thanks in advance.


How to prevent a script from running simultaneously?

I want to prevent my script running more than once at a time.   My current approach is   create a semaphore file containing the pid of the running process read the file, if my process-id is not in it exit (you never know...) at the end of the processing, delete the file   In order to prevent the process from hanging, I set up a cron job to periodically check the file if its older then the maximum allowed running time and kills the process if it’s still running.  Is there a risk that I'm killing a wrong process?  Is there a better way to perform this as a whole?


How come Sauron wasn't able to detect Sam in the last chapter of The Two Towers? I'm pretty sure he wore it longer than Frodo in Amon Hen, and Frodo was detected in the latter, was he not? Plus, Sam didn't only wear it for several minutes, he wore it in Mordor... is there any reason why Sauron didn't spot him ? Even if there was something happenening elsewhere, didn't he detect the presence of the ring as soon as Frodo put it on while inside Mountain Doom? And this was while a battle was being fought in his front door, so just how the hell did he not detect Sam?


tail -f equivalent for MySQL logging database

It was decided that we should move to using a (MySQL) database for our application logs (it is a Java app using the logback lib). I am hoping to find something like tail -f that I can use with a specific table in that database that will show me new rows as they are added (similar to how tail -f worked on log files).


How to configure the clock date format to ISO 8601 in Unity?

By default, the time in AM/PM style is shown, I would like to have the same that ls gives:  2013-01-09 01:12   That is 24 hours and ISO 8601.  How can I do this?  I am aware of the following question. Maybe that question was too general to be answered:   I tried the following:   I click on the actual clock-display and I get a calendar. In that calendar I read "Time & Date Settings.." - so I click on it: No effect. No nothing. I right-click on the clock-display but I get the same calendar like when left-clicking on it.


How to turn off Wireless power management permanently

In Linux Mint 17.3 / 18 iwconfig says the power management of my wireless card is turned on. I want to turn it off permanently or some workaround on this issue.  sudo iwconfig wlan0 power off works, until I reboot the laptop.  Also, if I randomly check iwconfig, sometimes it's on, despite I did run this command.  I read some articles about making the fix permanent. All of them contained the first step "Go to directory /etc/pm/power.d", which in my case did not exist.  I followed these steps:  sudo mkdir -p /etc/pm/power.d sudo nano /etc/pm/power.d/wireless_power_management_off   I entered these two lines into the file:  #!/bin/bash  /sbin/iwconfig wlan0 power off   And I finished with setting proper user rights:  sudo chmod 700 /etc/pm/power.d/wireless_power_management_off   But after reboot the power management is back on.  iwconfig after manually turning power management off  eth0      no wireless extensions.  wlan0     IEEE 802.11abgn  ESSID:"SSID"             Mode:Managed  Frequency:2.462 GHz  Access Point: 00:00:00:00:00:00              Bit Rate=24 Mb/s   Tx-Power=22 dBm              Retry short limit:7   RTS thr:off   Fragment thr:off           Power Management:off           Link Quality=42/70  Signal level=-68 dBm             Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0           Tx excessive retries:2  Invalid misc:18   Missed beacon:0  lo        no wireless extensions.   I don't think this question applies only to Linux Mint, it is a general issue of particular wireless adapters.


Recently I tried understanding the use of java.math.MathContext but failed to understand properly. Is it used for rounding in java.math.BigDecimal. If yes why does not it round the decimal digits but even mantissa part.  From API docs, I came to know that it follows the standard specified in ANSI X3.274-1996 and ANSI X3.274-1996/AM 1-2000 specifications but I did not get them to read online.  Please let me know if you have any idea on this.


I want to add a crossfade between two videos with ffmpeg

I've tried many different things for this to work. the final thing i tried was     ffmpeg -i BabySeal.mp4 -i Pexels2.mp4 -filter_complex "   [0:a]afade=t=out:st=9:d=2[a0];   [1:a]afade=t=in:st=0:d=2[a1];   aevalsrc=0:d=9[s1];   [s1][a1]concat=n=2:v=0:a=1[ac1];   [a0][ac1]amix[a]" -map [a] -c:a libfdk_aac -ac 2 -b:a 128k output_audio "transition3.mp4"   I don't need there to be audio since the files dont have audio, but im new to ffmpeg and have no idea what anything means.  I've also tried   ffmpeg \ -loop 1 -t 5 -i 1.png \ -loop 1 -t 5 -i 2.png \ -loop 1 -t 5 -i 3.png \ -loop 1 -t 5 -i 4.png \ -loop 1 -t 5 -i 5.png \ -filter_complex \ "[1]format=yuva444p,fade=d=1:t=in:alpha=1,setpts=PTS-STARTPTS+4/TB[f0]; \  [2]format=yuva444p,fade=d=1:t=in:alpha=1,setpts=PTS-STARTPTS+8/TB[f1]; \  [3]format=yuva444p,fade=d=1:t=in:alpha=1,setpts=PTS-STARTPTS+12/TB[f2]; \  [4]format=yuva444p,fade=d=1:t=in:alpha=1,setpts=PTS-STARTPTS+16/TB[f3]; \  [0][f0]overlay[bg1];[bg1][f1]overlay[bg2];[bg2][f2]overlay[bg3]; \  [bg3][f3]overlay,format=yuv420p[v]" -map "[v]" -movflags +faststart out.mp4  I got this from here   is there something wrong with the code that i put in, or maybe am i doing something else wrong. The file names are correct, so could it be that i'm just missing a step?


What is the solution to this problem in which the goal is to find the best strategy

"There are two prisoners and a jailer who wants to kill them, but in an act of magnanimity the jailer tells them: At your side there is a room with a chessboard wherein each square there is a coin placed randomly (heads or tails), I will enter with one of you to the room and I will point out a square, the square of life, the one who enters with me will have to change a single coin of the board. Then we will leave and without speaking or making any gesture, the other prisoner will enter and will have to guess which is the square of life. Now, before entering with the first prisoner, you can agree on a strategy".


Recently update my MBP to Big Sur and I don't recognize the name in terminal

steltz is my username but I have no idea where "Omkars-MBP" came from? I've always owned this computer since it was brand new, so I'm not really sure what to do...but this is weird. Any advice?


I feel like this has been beaten around the bush in a couple other topics, but I am hoping to find something a bit more definitive. I am looking to control a Peltier thermoelectric cooler.  I've got a 24VDC PLC with a couple tools at my disposal:   Analog thermocouple inputs Analog outputs 0-10VDC, 4-20mA, 12 bit Digital outputs 500 mA, 24VDC PID ladder block in PLC software   I would like to use the PID in conjunction with one of the output types to drive the Peltier at full power (12VDC, 5A). I need some way to convert either of these outputs to a 0-12V controllable constant signal (As pointed out in other threads, the Peltier will wear out if cycled/supplied PWM input).  Some thoughts...    PWM controlled buck converter (haven't found one, but maybe I'm searching for the wrong things??, everything I have found is trimmer controlled) w/ 12V power supply Use RC circuit to change PWM to analog (or analog output) and combine with MOSFET to control a 12V power supply DC motor controller to step to required voltage, then RC circuit to smooth   Ideally, I'd love a box that takes 12V 5A in, and a 24V PWM duty cycle dictates the voltage % to an output. It seems like this should exist, but I don't know what to look for.  Also, lest it be too obvious, but unsaid, I am not super experienced with electronics design, nor am I seeking to be an expert. My intention is only to move what I have to move, heat what I have to heat, or in this case, cool what I have to cool. Therefore, I'm not looking to tinker too much, the most direct, robust solution is definitely the best here even if it's not the cheapest.  Thank you all!


Indian National Travel to UK with Irish Visa (visitor, No BIVS)

I am an Indian Citizen traveling to Dublin.  My Irish visa does not have BIVS endorsement as it was issued in a center outside India.  I am flying into Dublin, staying there for a few days and then departing Dublin to London with a 12 hour stopover in London before my connection to Mumbai.  Can I pass border control in London using my Irish Visitor visa (no BIVS endorsed) for my 12 hour layover or do I need to get a UK Visitor Transit visa?


Let $a, b \in \mathbb{R_+}$ such that, $a + b = 1$. Show that $$(a + \frac{1}{a})^2 + (b + \frac{1}{b})^2 \geqslant \frac{25}{2}.$$   This was on a problem set for practising $AM-GM$ and I couldn’t figure out how to approach this. What would be the optimal way to show this?


A week ago I mixed 1 part AP flour 1 parts tap water, keeping it at room temperature (18-24c). I've been discarding a bit and feeding it 1:1 daily. The last few days, the next 4-6 hours after I feed it it double in size, and then it slowly goes down.  Now I want to use it to make some baguettes, the recipe calls for 20% starter. But how do I use the starter? Do I have to use it before or after feeding it? Or should I feed it and wait a few hours before using it?


myTv+ app returns error code 101 when running on Android TV box

I have installed an IP TV app, myTv+ () on my Huawei smartphone and it worked fine. I tried to install it on the Android TV box (MXQ Pro 4K), but it's simply not working, just getting error code 101. It appears when running the app. The install just goes smoothly, but the code appears on the splash screen. I contacted the developer and he said this app is designed only for the smartphone. Is there any way I can force the app to work with the Android TV box?


Limit of sequence in which each term is defined by the average of preceding two terms

We have a sequence of numbers $x_n$ determined by the equality   $$x_n = \frac{x_{n-1} + x_{n-2}}{2}$$  The first and zeroth term are $x_1$ and $x_0$.The following limit must be expressed in terms of $x_0$ and $x_1$ $$\lim_{n\rightarrow\infty} x_n $$  The options are:   A)$\frac{x_0 + 2x_1}{3}$ B)$\frac{2x_0 + 2x_1}{3}$  C)$\frac{2x_0 + 3x_1}{3}$ D)$\frac{2x_0 - 3x_1}{3}$  Since it was a multiple choice exam I plugged $x_0=1$ and $x_1=1$. Which means that all terms of this sequence is $1$,i.e, $$x_n=1, n\in \mathbb{N} $$  From this I concluded that option A was correct.I could not find any way to solve this one hence I resorted to this trick. What is the actual method to find the sequence's limit?


How do I get that $|\int_a^b f| \le \int_a^b |f|$?

The following is a proof from my textbook that shows that $|f|$ is integrable on $[a,b]$ and $|\int_a^b f| \le \int_a^b |f|$, if $f$ is integrable on $[a,b]$.  Let $f$ be integrable on $[a,b]$. Then $|f|$ is integrable on $[a,b]$ and $|\int_a^b f| \le \int_a^b |f|.$ Proof. Since $f$ is integrable on $[a,b]$, there exists $B>0$ such that $|f(x)|\le B$ for all $x \in [a,b]$. Define $g:[-B,B] \rightarrow \mathbb{R}$ by $g(t) = |t|$. Then $g$ is continuous on $[-B,B]$ and $g \circ f = |f|$. It follows that $|f|$ is integrable. To establish the inequality between the integrals, we note that $-|f(x)| \le f(x) \le |f(x)|$ for all $x \in [a,b]$, so that $-\int_a^b |f| \le \int_a^b f \le \int_a^b |f|.$ But then $|\int_a^b f| \le \int_a^b |f|$, as desired.  I wanted to know how we get that $|\int_a^b f| \le \int_a^b |f|$? Does this inequality follow from the triangle inequality?


Adding individual players scores together in minecraft

I am making a paintball mini game and want to add players scores together to get total team scores. How would I go about adding Player X's and Player Y's hit count together to determine their final score?


Testing which trits are set in a binary representation

I have a problem for which I have eight elements that can contain 0, 1, or 2. I can easily represent this in 16 bits, but for SIMD efficiency reasons, I need it to occupy 13 bits (it is not the only thing present in the lane). Fortunately, 2^13==8192, and 3^8==6561, so the states I want can fit. However, here's where things get interesting. Naively, I would just represent these states by counting the ternary numeral states. For example, to represent the tritmask 0t12211012 (I'll use this as an example thoughout), I could just write 0t12211012 = 2*3^0+1*3^1+0*3^2+1*3^3+1*3^4+2*3^5+2*3^6+1*3^7 = 4244 = 0b1000010010100. I have a set of operations I need to support:  Modify trits. This is easy in the default representation. For instance, if I have tritmask 0t12211012 and I wish to place a 2 in the position holding a zero, I can simply add 0t200=18. (Note that the conversion to tritspace is easy, because I only have 8 trits, so I can store the base powers in a register and index it with pshufw). Find all elements set to a particular value. For example, given the tritmask 0t12211012, I want to be able to extract the bitmask for 0, which is 0b00000100, for 1, which is 0b10011010, and for 2, which is 0b01100001. This I have not figured out how to do, and is what I would like assistance with. How can I do this in a small number of operations suitable for x86 SIMD?  Thank you! Edit 11/18/20: To give an example of an approach I consider too slow: we can iteratively find the value mod 3 and divide by 3 to pull trits off the least-significant end of the representation, then assemble the mask that way. C++ snippet: uint32_t trits = <something>; uint8_t mask0 = 0, mask1 = 0, mask2 = 0; for (uint8_t shift = 0; shift < 8; ++shift) {   const uint32_t remainder = trits % 3;   mask0 |= (!remainder) << shift;   mask1 |= (remainder == 1) << shift;   mask2 |= (remainder == 2) << shift;   trits /= 3; }  When actually writing this in a SIMD language, we would use the standard multiply-and-shift trick for division by a constant. But you can see it's linear in the number of trits, and has a lot of ops per iteration. We could code-golf this down a bit, but I think it is fundamentally the wrong approach. It should ideally be possible to do something in parallel for each trit... but I don't see it. Edit 11/20/20: I've made a halfhearted effort to apply  to this problem without success. Maybe an interesting subproblem to solve instead is - is there a short sequence of bitwise ops under the same constraints as above that acts as a 'ternary bitwise AND'? That is, an op that compares two encoded numbers in tritspace and returns a bitmask that is 1 when the corresponding trits are equal and zero otherwise? That would be a primitive from which we could build up the ops needed. We have left and right shift in tritspace (just multiply or divide by 3); and we have +/- a value. So what we are missing is the ability to test if trits are particular values...


Which laptop is most compatible with Linux?

I've always been unlucky with regards to choosing a laptop that I can install Linux on. If it's not the wireless card that's not working out of the box, it's the video card. Also, I'm still not able to hibernate my computer, close the lid and resume where I left off at a later point. I always have to shut down the laptop or leave it on.  Is there a laptop vendor that is considered to have the best trade off between performance and compatibility with Linux? If not, then what should I look for when buying a laptop?


I'm sorry for always asking. I have another problem. I want to change the abstract title "Ringkasan" into "Abstrak" when I'm using [bahasa]{babel}. How to do that?


how can i prove this equation of binomial coefficients?

i dont know $-a$ in this equation really mean, explain it too please $$ \left(\begin{array}{c}a+m-1\\ m\end{array}\right) = (-1)^m \left(\begin{array}{c}-a\\ m\end{array}\right) $$


Can a Malaysian citizen enter the Schengen area a day earlier than their visa-free date?

I'm from Malaysia and I have visa-free entry to the Schengen area for 90 days. On January 1st, my visa-free entry renews. I'm running an Internet start up and am based in Toronto, Ontario, Canada.  I'm planning to enter the Schengen area again on the 31st since I want to celebrate New Year's Eve and my engagement ceremony on that day. My fiance and I aren't married yet but we are getting engaged on the 31st. He is Austrian, so that isn't an issue, but if I enter the Schengen area on the 31st, a day before my Visa free entry date starts, would that be a problem?  I've already applied for my Rot-Weis-ROT CARD so that I can establish my start-up in Austria. It's been 6 weeks since I applied for it in October (2nd or 3rd week) and they probably received my application in November. They have also had a recent election, which has slowed down the process according to my fiance.  Is this possible?


Find the solution of the pde $xu_y-yu_x=u$.

I am trying to find the equation of characteristic curves and solution of the partial differential equation $$x\frac{\partial u}{\partial y}-y\frac{\partial u}{\partial x}=u$$ $u(x,0)=\sin(\frac{\pi}{4}x)$ .   What I did: $$\frac{dx}{-y}=\frac{dy}{x}=\frac{du}{u}$$ with  From first two equalities $$\frac{dx}{-y}=\frac{dy}{x}$$ by solving we get $x^2+y^2=c_1$ for some constant $c_1$. Now I am stuck with the third and rest of the equalities to come up with a suitable manipulation to solve the problem. How can I do this? Any help would be great. Thanks.


QGIS 3.4 - Symbology expression for features that have not been styled by rules

I have a rule based set of expressions for styling a map according to the contents of the 'Layer' field.  e.g if the Layer starts with a 'C'   "Layer" ILIKE 'C%' colours the line red.  Is it possible for me to colour lines which don't fit into any of my pre defined categories ?  i.e I want to have a feature set called 'Other' into which anything that does not fit my pre-defined rules goes.  I suppose it is theoretically possible to have CASE/ else/ or / but this could run into 100s of lines of code.  Is there a way of saying - 'if a feature in the 'Layer' field equals none of the above, then style it like this....?  That is the best way I can think of explaining it.


I am a python newbie and I keep seeing code like:  import numpy as np rng = np.random.RandomState(4)  # generate some random data to train on get_rand = lambda *shape: np.asarray(rng.rand(*shape) > 0.5, dtype='float32')   Is * referring a pointer ? Please help me in understanding what does * do here (I know C so I guess this looks like a pointer, but it can't be).


Is there a method to find the command time ? or a file changed times?

I want to list my host server's history commands time.  I know use the export HISTTIMEFORMAT="[%Y.%m.%d %H:%M:%S]" in /etc/profile I can record the time in history, but if I want to list the command time before configured to /etc/profile.  Is there other method to find the command time? or a file changed times?


Accented characters from db not displaying right after server migration

I'm storing strings in a mysql database, with utf8_general_ci.  I have accented characters, for example in phpmyadmin I have Ã‰ that will become É with a simple mysql select and php print.  But on my new server, after I copied all files and restored a dump with mysql -p < dump.sql, that stays Ã‰ when displayed on the page.  Other strings on the page are displayed normaly, only those comming from mysql have the problem. But I don't understand the cause as the files and database are the same that on my old server.


When using compound words, their mean can still be retained when "de-compounding" them in one of two ways.      The first way: bookstore = store of books   For this compound word, one just adds an "of" in between the two parts of the word which were compounded and the words still retain the original meaning, however, this doesn't apply to all words. And for that there is the second kind of "de-compounding" word.     The second way: racehorse = Horse for racing    For this second way, it wouldn't make sense to say horse of racing because the horse itself isn't made of racing.  What is the name of this kind of distinction and why is there this difference within language?


Understanding better this physical phrase

In field theory, symmetry governs the dynamics by restricting the form of the Lagrangian from which all relevant equations and interactions are derived. An example of symmetry transformations is multiplication of the fields by a complex number. When we make different transformations at different space-time points, we must introduce a new field in order to maintain the symmetry. This new field is called the gauge field and is responsible for the interactions among various particles.   Why is it that: "When we make different transformations at different space-time points, we must introduce a new field in order to maintain the symmetry."?  Can someone please explain this?


I went through several posts, but nothing has helped me to see wifi networks on Ubuntu 14.04 LTS.   The wifi LED is on, I have installed B43 driver as well as installer and nothing. I have the same problem with Wifi as    So I tried:  sudo apt-get purge --remove bcmwl-kernel-source sudo apt-get install linux-firmware-nonfree   These were ok, and I tried   sudo modprobe b43   Then terminal stopped. What should I do?  $ lspci  00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD/ATI] RC410 Host Bridge (rev 01) 00:01.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RC4xx/RS4xx PCI Bridge [int gfx] 00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RC4xx/RS4xx PCI Express Port 1 00:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RC4xx/RS4xx PCI Express Port 2 00:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RC4xx/RS4xx PCI Express Port 3 00:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RC4xx/RS4xx PCI Express Port 4 00:12.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB600 Non-Raid-5 SATA 00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB600 USB (OHCI0) 00:13.1 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB600 USB (OHCI1) 00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB600 USB (OHCI2) 00:13.3 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB600 USB (OHCI3) 00:13.4 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB600 USB (OHCI4) 00:13.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB600 USB Controller (EHCI) 00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 13) 00:14.1 IDE interface: Advanced Micro Devices, Inc. [AMD/ATI] SB600 IDE 00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) 00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB600 PCI to LPC Bridge 00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge 01:05.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RC410M [Mobility Radeon Xpress 200M] 02:00.0 Network controller: Broadcom Corporation BCM4311 802.11b/g WLAN (rev 01) 06:00.0 Ethernet controller: Qualcomm Atheros Attansic L2 Fast Ethernet (rev a0)     $ sudo lshw -c network *-network                       description: Network controller        product: BCM4311 802.11b/g WLAN        vendor: Broadcom Corporation        physical id: 0        bus info: pci@0000:02:00.0        version: 01        width: 32 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list        configuration: driver=wl latency=0        resources: irq:16 memory:fa9fc000-fa9fffff   *-network        description: Ethernet interface        product: Attansic L2 Fast Ethernet        vendor: Qualcomm Atheros        physical id: 0        bus info: pci@0000:06:00.0        logical name: eth0        version: a0        serial: 00:1e:8c:51:f0:ec        capacity: 100Mbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress vpd bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=atl2 driverversion=2.2.3 firmware=L2 latency=0 link=no multicast=yes port=twisted pair        resources: irq:40 memory:feac0000-feafffff memory:feaa0000-feabffff   *-network        description: Ethernet interface        physical id: 1        logical name: usb0        serial: 02:f9:06:66:bc:00        capabilities: ethernet physical        configuration: broadcast=yes driver=rndis_host driverversion=22-Aug-2005 firmware=RNDIS device ip=192.168.42.29 link=yes multicast=yes


I'm trying to understand at a fundamental level what is the difference in C/C++ between a pointer to an int and a pointer to a char. Consider the following: #include <iostream>  int main() {      int n = 4;     int* pn = &n;      std::cout << pn << std::endl;      char c = 't';     char* pc = &c;      std::cout << pc << std::endl;      return 0; }  The output is: 004FFC38 t╠╠╠╠╠╠╠╠8ⁿO  Why does the int pointer return an address as expected but the char pointer returns the actual character followed by seemingly junk values? After searching I was unable to locate a direct answer to this one.


I need help with blender. I got a minecraft intro template, and there is a skin on it I want to change. The only way to change it like how everyone does is go to the replace image on the picture file. But it isn't an option. For example, when I click on that image icon where you can select Save as image, Copy image, New image, and all that stuff, it's not an option. I mean it's still there but grayed out. Can anyone help me please?


Get value of local variable from called method without return

In Java, is it possible for a calling method to get the value of a local variable inside the called method without returning it?  See below in C, where I can use pointers to change the value of the local variable of the fun function.  #include <stdio.h>  int main(void) {      int* a;     a = malloc(sizeof(int));     *a = 10;      printf("before calling, value == %d\n",*a);     fun(a);     printf("after calling, value == %d",*a);      return 0; }  int fun(int* myInt) {     *myInt = 100; }   Can I do something similar in Java. I did try, but wasn't able to.  public class InMemory {      public static void main(String[] args) {         int a = 10;          System.out.println("before calling ..."+a);         fun(a);         System.out.println("after calling ..."+a);     }      static void fun(int newa)     {         newa = 100;     } }


How to model a uncontinuously screw like in picture

This is not a continuously screw.   Thank you for your great help. Can someone tell me how to create this style of screw?


I have a folder in ~ called work that contains all my work. Usually when I start an instance of Terminal I type cd work. I would like to avoid this because it's very repetitive. I tried putting cd work in my .bashrc but I realized that I don't always want to cd work - for instance, when I Open Terminal here or when I open a Terminal in VSCode (which should open my Terminal in the current project directory, not work). My idea is having the Terminal type out cd work whenever I open it, but not actually execute the command. If I really need to cd work, all I have to do is hit Return. However, if I don't want to do that, I can just Ctrl+C. Is doing this possible?


European travelling to Caribbean Islands through USA

I have read that under ESTA europeans can be in the USA for up to 90 days, and we need to have a return flight to prove our way out before the time ends. I've read that if I travel to Mexico, Canada or Caribbean Islands, the ESTA period is still counting and I need to have a visa for one of those countries if I decide to stay longer. Based on this , I'm not sure if having a flight to a Caribbean Island will count as leaving the USA, and therefore do I need a flight to leave the Caribbean Islands too?


In the below XPath, the index [1] is changing every time. Can we handle this?  //button[contains(text(),'Action')][1]   HTML:  <button aria-expanded="false" aria-haspopup="true" class="dropdown-toggle component--button btn--reset" data-toggle="dropdown" type="button"> <span aria-hidden="true" class="icon component--icon icon-angle-down"> </span> Action</button>


How to set height of container to 100% and show nav bar?

Having a terrible time trying to get react to render my page correctly  I have this  ReactDOM.render(     <React.StrictMode>         <Provider store={store}>             <Router />         </Provider>     </React.StrictMode>,     document.getElementById('root'), )   in my index.html I have  html, body, #root, #root>div {   height: 100%;   overflow: hidden; }   inside router I have              <>                 <GlobalStyle />                 <Nav/>                 <div>                     <Router>                         <Route component={Home} path="/" />                     </Router>                 </div>             </>   I want to display my nav on the top and then the components underneath to take up the rest of the screen space but NOT overflow and render a scroll. but whatever I try and do anything I cant seem to display both  I've tried adding a fixed height to the nav bar. height: 100px !important which works well for the navbar but then the rest of the content is about 60% of the page and there is an annoying div called. <div tabindex="-1" style="outline: none"> which doesn't appear in my code anywhere. I think an accessibility thing? but when I set that to 100% and my container div below it to 100%, then it seems to work. however I cant set that to be 100% in my code so I'm left confused  I also assumed the code I set in the html would cascade down, so I'm confused why it's not cascading to this div? I wonder if setting the navbar is causing this?  anyway, all I want is a page that takes up the whole screen. but also renders a nav bar for 100px or so  any ideas?


I am trying to do some chrome console coding to implement a calendar in javascript, but I am facing a very basic problem.     a = new Date(2017, 9, 9); // Mon Oct 09 2017 00:00:00 GMT+0530 (IST) b = new Date(2017, 9, 9); // Mon Oct 09 2017 00:00:00 GMT+0530 (IST) console.log(a == b);     But they are not equating:  a == b  false   It has to be some stupid mistake I am making but can't seem to find out, Any help please??


Proof that $x^n+\frac{1}{x^n}\in \mathbb Z$ by complete induction

$x\in \mathbb R\;\;$ such that $\;\;x+\frac{1}{x} \in \mathbb Z.$   Prove by induction: $$x+\frac{1}{x} \in \mathbb Z\implies x^n+\frac{1}{x^n} \in \mathbb Z, \;\;\;\forall n\in \mathbb N$$  I used the $complete/strong$ induction.  The base $n=1$ is already in the statement.  Assumption: Let $P(n)\ldots,\;x^n+\frac{1}{x^n} \in \mathbb Z$ be true, as well as $$P(1), P(2),...P(n-2),P(n-1).$$ Step:$\;P(n+1)$ is true.  $x+\frac{1}{x} \in \mathbb Z\;\wedge x^n+\frac{1}{x^n} \in \mathbb Z\implies \Big(x+\frac{1}{x}\Big)\Big(x^n+\frac{1}{x^n}\Big)\in \mathbb Z$   $x^{n+1}+\frac{1}{x^{n-1}}+x^{n-1}+\frac{1}{x^{n+1}}=\underbrace{\Big(x^{n-1}+\frac{1}{x^{n-1}}\Big)}_{\in\mathbb Z}+\Big(x^{n+1}+\frac{1}{x^{n+1}}\Big)$  $x^{n+1}+\frac{1}{x^{n+1}}=\Big(x+\frac{1}{x}\Big)\Big(x^n+\frac{1}{x^n}\Big)-{\Big(x^{n-1}+\frac{1}{x^{n-1}}\Big)}\in\mathbb Z$


Prove that if $G$ is a group with $(ab)^{2}=a^{2}b^{2}$ for all $a,b\in G$, then $G$ is abelian.   I am not sure how to prove this. This is my work so far:  Proof so far: $G$ is abelian iff $ab=ba$. If $(ab)^{2}=a^{2}b^{2}$ for all $a,b\in G$, then $(ae)^{2}=a^{2}e^{2}=a^{2}$ or $a=a$ for all $a\in G$.     I am not sure whether I am approaching this correctly at this point, since it looks a little silly to me. If this is the right way, I am not sure how to continue.


python sort file path based on created time

I have python array with filepath in it, I need to sort the files path based on created date. Is there any inbuilt functionality exist for it.   files = ["/path1/filename.text", "/path2/filename.text", "/path2/filename.text"]


How did Harry get his hair cut at Hogwarts?

In the first book, it's mentioned several times that Harry's hair grows quickly. I don't remember he exact quote, but I remember something like 'he must have gotten more haircuts than all the other boys in his class combined,' and Uncle Vernon mentioning that he needs a haircut every couple weeks.  Where does he get it cut at Hogwarts? For that matter, where do any of the student at Hogwarts get their haircuts?  Here's the quote from The Deathly Hallows that shows that Harry's hair grows long when it's not cut:     His face was huge, shiny, and pink, every feature distorted by Hermione's jinx. His black hair reached his shoulders and there was a dark shadow around his jaw.-Harry Potter and The Deathly Hallows, chapter 23: Malfoy Manor


Past perfect tense vs present perfect tense usage

David got a message telling him that he has/had won the prize.   Here which is to be used ? Has or had ?


Maximal ideal in the ring of continuous functions

Let $R$ be the ring of continuous functions $\mathbb{R}\rightarrow\mathbb{R}$ with the usual operations and $I$ the subset of functions $f$ with $f(x_0)=0$ for some $x_0\in\mathbb{R}$.  It's easy to see that $I$ is a prime ideal but I can't see how to show that is maximal and what is the quotient $R/I$.


If a measure is semifinite, then there are sets of arbitrarily large but finite measure

I am trying to solve following exercise from Folland,     If $\mu$ is a semifinite measure and $\mu(E) = \infty$, for any $C > 0$, $\exists$ $F \subset E$ with $C < \mu(F) < \infty$.   It seems to follow from definition of semifinite measures, which you can find , but I couldn't prove it.


Doubt regarding divisibility of the expression: $1^{101}+2^{101} \cdot \cdot \cdot +2016^{101}$

In an interesting contest question I recently encountered, I chanced upon a question I couldn't solve.    $$\sum^{2016}_{i=1}i^{101}$$ is divisible by: (a)2014 (b)2015 (c)2016 (d)2017    How would I go about solving this question in a no-nonsense fashion?


print a random number * n times (all different numbers)

so I want an output like this 5, 7, 23, 15, 6, 3  all random in one line Matrix I know I could do from random import randrange for i in range(5):     print(f' {randrange(50)}')  the problem with this they will not be in one line. so I tried this print(f' {randrange(100)}' * 5) but the output show similar numbers like this 27, 27, 27, 27, 27 any solution?


Do gravitational lenses work on gravitational waves? Could we get an Einstein cross of gravity?


match first column of file a with paragraphs of file b

I have 2 files. The first, fileA looks like  TCONS_00000066  XLOC_000030     -       u       q1:XLOC_000030|TCONS_00000066|0|0.000000|0.000000|0.000000|0.000000|- TCONS_00000130  XLOC_000057     -       u       q1:XLOC_000057|TCONS_00000130|0|0.000000|0.000000|0.000000|0.000000|- TCONS_00000395  XLOC_000206     -       u       q1:XLOC_000204|TCONS_00000393|0|0.000000|0.000000|0.000000|0.000000|-   FileB looks like:  >TCONS_00000001 gene=XLOC_000001 AGATGAGCTGGTGGGGATGCTCTAAGAGAACGAGAGAAGCACAGAGCAGATAAACCACACCCACAGGCAC CACCGTCCTTGTTGGTAATGAAGAAGACGAGACGACGACTTCCCCACTAGGAAACACGACGGAGGCGGAG ATGATCGACGGCGGAGAGAGCTACAGAAACATCGATGCCTCCTGTCCAATCCCCCCATCCCATTCGGTAG TTGGATTGAAGACTACCGAATAAGAGAAGCAGGCAGGCAGACAAACCCTTGAACCAAGGAGTCCTCGCTG AGGAAGCTTTGGATCCACGACGCAGCTATGGCCTCCCCGCCCACCAGGCCGCCAGCCACAACCAGCTGAC TAGGTCGCATGCATCATCAGATTTCAATCTCCCTTCGTTCCCTGTCCCTAATCCAATACCAATAGGGAGC AATCAGCTGCTCCTCGACGGCGAGGGAGATGTCGTCGGCCGCGGGCCAAGACAACGGAGATACCGCTGGG GACTACATCAAGTGGATGTGCGGCGCCGGTGGCCGTGCGGGCGGCGCCATGGCCAACCTCCAGCGCGGCG TTGGCTCCCTCGTCCGTGACATTGGCGACCCCTGCCTCAACCCATCCCCCGTTAAGGGGAGCAAAATGCT CAAACCGGAAAAATGGCACACATGTTTTGATAATGATGGAAAGGTCATAGGTTTCCGTAAAGCCCTAAAA TTCATTGTCTTAGGGGGTGTGGATCCCACTATTCGAGCTGAAGTTTGGGAATTTCTTCTTGGCTGCTATG CCTTGAGTAGTACCTCAGAGTATAGGAGGAAACTAAGAGCTGTTAGAAGGGAAAAATATCAAATTTTAGT TAGACAGTGCCAGAGCATGCACCCAAGCATTGGTACAGGTGAGCTTGCTTACGCTGTTGGATCAAAGCTA   Now, fileA contains selected transcript numbers in the first column and fileB contains sequences of all transcripts. I want to scan fileB for the first column of fileA and print the trailing sequences of matching transcripts along with the transcript number.


now I have a question about the MacTex, I have a cls file, and according to other post, I have put it in the path ~/Library/texmf/tex/latax and sudo texhash it, but when I try to use \documentclass of my cls in texshop, and compile, it will report error like the cls is not found, anyone has any ideas of it? Thank you very much!


Reproduction of Word Report Template in LaTeX

I am trying to reproduce a word report template in LaTeX to speed up my report writing.  I have some basic LaTeX skill, but I am having trouble producing the blue page border as shown in the picture.  I also don't know how to create the header information with the page border and the Title inside the blue box.  I assume that the package TikZ can be used to draw the page border, and fancyheader for the header information but how to use the packages together is causing me confusion.    I have attached an image of the basic word document I am trying to reproduce. Note all information shown is to be repeated on every page.  Any help and direction is appreciated.


Is there an inverse function which will return an HDR picture to its original?

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


$U(n)$ and $V(n)$ are sequences. $U(n)> 0$  and   $V(n) >0$ such that: ${V(n+1)\over V(n)}≤ {U(n+1)\over U(n)}$.   Prove that:   If $\,\,\lim\limits_{n\to\infty} V(n)= +\infty\,\,$ then $\,\,\lim\limits_{n\to\infty}  U(n) = +\infty$ If $\,\,\lim\limits_{n\to\infty} U(n) = 0 \,\, $  then  $\,\,\lim\limits_{n\to\infty} V(n) = 0$   Can anyone help ?


In a triangle $\angle A = 2\angle B$ iff $a^2 = b(b+c)$

Prove that in a triangle $ABC$, $\angle A = \angle 2B$, if and only if:  $$a^2 = b(b+c)$$  where $a, b, c$ are the sides opposite to $A, B, C$ respectively.   I attacked the problem using the Law of Sines, and tried to prove that if $\angle A$ was indeed equal to $2\angle B$ then the above equation would hold true. Then we can prove the converse of this to complete the proof.   From the Law of Sines,   $$a = 2R\sin A = 2R\sin (2B) = 4R\sin B\cos B$$  $$b = 2R\sin B$$  $$c = 2R\sin C = 2R\sin(180 - 3B) = 2R\sin(3B) = 2R(\sin B\cos(2B) + \sin(2B)\cos B)$$  $$=2R(\sin B(1 - 2\sin^2 B) +2\sin B\cos^2 B) = 2R(\sin B -2\sin^3 B + 2\sin B(1 - \sin^2B))$$  $$=\boxed{2R(3\sin B - 4\sin^3 B)}$$  Now,   $$\implies b(b+c) = 2R\sin B[2R\sin B + 2R(3\sin B - 4\sin^3 B)]$$  $$=4R^2\sin^2 B(1 + 3 - 4\sin^2 B)$$  $$=16R^2\sin^2 B\cos^2 B = a^2$$  Now, to prove the converse:  $$c = 2R\sin C = 2R\sin (180 - (A + B)) = 2R\sin(A+B) = 2R\sin A\cos B + 2R\sin B\cos A$$  $$a^2 = b(b+c)$$  $$\implies 4R^2\sin^2 A = 2R\sin B(2R\sin B + 2R\sin A\cos B + 2R\sin B\cos) $$  $$ = 4R^2\sin B(\sin B + \sin A\cos B + \sin B\cos A)$$  I have no idea how to proceed from here. I tried replacing $\sin A$ with $\sqrt{1 - \cos^2 B}$, but that doesn't yield any useful results.


Output of dmesg:  In the dmesg, there is the below error:  ACPI Warning: \_SB_.PCI0.RP01.PXSX._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)   which seems like BIOS or something related error.  How do I fix this? Is there any case to be related to this bug?   (I had filed this bug and am just using a new OS on the same machine.  Other details:   ~  lsb_release -a No LSB modules are available. Distributor ID: neon Description:    KDE neon User Edition 5.8 Release:        16.04 Codename:       xenial  ~  uname -a Linux neon 4.4.0-45-generic #66-Ubuntu SMP Wed Oct 19 14:12:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux


Gmail sends bulk messages sent by postfix to spam - spf, rDNS are set up (headers inside)

here are the headers of the blocked messages (actual domain replaced with domain.com, ip address with n.n.n.n and gmail account name with person.account):  Delivered-To: person.name@gmail.com Received: by 10.216.89.137 with SMTP id c9cs247685wef;         Tue, 6 Dec 2011 16:06:37 -0800 (PST) Received: by 10.224.199.134 with SMTP id es6mr14447757qab.2.1323216395590;         Tue, 06 Dec 2011 16:06:35 -0800 (PST) Return-Path: <notifications@domain.com> Received: from mail.domain.com (domain.com. [n.n.n.n])         by mx.google.com with ESMTP id b16si7471407qcv.131.2011.12.06.16.06.35;         Tue, 06 Dec 2011 16:06:35 -0800 (PST) Received-SPF: pass (google.com: domain of notifications@domain.com designates n.n.n.n as permitted sender) client-ip=n.n.n.n; Authentication-Results: mx.google.com; spf=pass (google.com: domain of notifications@domain.com designates n.n.n.n as permitted sender) smtp.mail=notifications@domain.com Received: by mail.domain.com (Postfix, from userid 5001)   id 26ADE381E3; Tue,  6 Dec 2011 19:06:35 -0500 (EST) Received: from domain.com (domain.com [127.0.0.1])   by mail.domain.com (Postfix) with ESMTP id 0148638030   for <person.name@gmail.com>; Tue,  6 Dec 2011 19:06:31 -0500 (EST) Date: Tue, 06 Dec 2011 19:06:31 -0500 From: DomainApp <notifications@domain.com> Reply-To: notifications@domain.com To: person.name@gmail.com Message-ID: <4edeae07e069c_7cc1413de46597b2@domain.com> Subject: Roman Snitko says hi Mime-Version: 1.0 Content-Type: text/plain;  charset=UTF-8 Content-Transfer-Encoding: 7bit X-No-Spam: True Precedence: bulk List-Unsubscribe: notifications@domain.com   Messages go to Spam folder on various gmail accounts, so it's not a coincidence.  I followed all gmail guides on sending bulk emails from here . I also checked my ip-address here  and it's NOT on the blacklists.  Thus I have two questions:   What may be the possible reason for the messages to go to Spam folder? Is there any way to contact Google and ask them what causes this?   Update: I have set up openDKIM on my server, everything works, gmail message headers say that dkim=pass, which means everything is set up correctly. Messages still end up in Spam folder.


UK Visa Refusal due to no family members in home country

Me and my wife planning to visit UK as tourist. My UK tourist visa refusal letter give some valid observations, which I am going to address in second attempt. However, one observation, I hard to find out suitable answer, is that " You have not shown from the supporting documents you have any family members living in Pakistan or other countries and therefore consider you have very little way of ties to provide you with enough incentive to leave the UK on completion of your proposed visit". Now, my family situation is such that I have two daughters, both married and living with their husbands. My only son is doing his studies in UK. So, in application at the filed "Evidence of family members remaining in your home country whilst you travel" , I had no other choice except to write NIL. So, is there any suggestion, how to address this observation.


Installing Ubuntu Desktop 14.04.1 from scratch, onto a 128GB SSD drive, I got three partitions by the installer's autonomic decision. I have not configured partitions myself during the installation nor have I opted for LVM.  The partitions are:   Bootable partition 86GB Ext4 (/dev/sda1)   Extended partition 34GB (/dev/sda2)  Swap partition 34 GB Swap (/dev/sda5)   Can I later remove the second partition and add its space to either the first or third ones? how disruptive would that operation be?


Calculate the relative path of a file in java

here is the link to the question.i have created directories and files that are required. I may have not understood the question properly but so far i have tried my best. Could try to read and understand the question and give a hint to solve the same.


Will Compressing an Entire USB Flash Drive Actually Increase Performance?

As we know, USB flash drives are generally . USB 3 has significantly increased the rates data transfers, but it's still much slower than even traditional mechanical HDDs - and many people still do not own the hardware to benefit from the new revision.  Also, compression/decompression slows down opening and saving files, but I would imagine that this is only true for I/O on an HDD/SSD/SSHD where the transfer rates are faster than the rates of a USB drive.  Is anyone aware of any performance tests that shows potential benefits from compressing an entire USB flash drive (particularly USB 2.0)? I would imagine that a computer's processor can decompress a file much faster than the USB can read an uncompressed file - so the larger the compression is on a USB - the less time it would take to read while the much faster processor can decompress a file quickly.  I would like to add a side note that I do not want to consider highly compressed media such as .jpg or encoded video where there will be little to no benefit from further compression. I am mostly talking about compression that would be in the range of 10%+ savings in disk space.


Creating spf record for a multidomain email server

I have a email server (iRedmail on Ubuntu) where I host my personal domain, and several other domains. Despite the fact that non of the domains spam, somehow, MXtoolbox tells me my server is on the Spamhaus ZEN blacklist. This server is a VERY low traffic mailhost, the only domain that actually "sends" any quantity of email from the server is my personal domain, with me and my wife having our email accounts there. The remainder of the domains hosted are one small local startup non-profit that has one email address hosted for incoming email (currently ONLY incoming), another is a domain for a small business some friends and I are trying to start, and another is my ebay business. Anyway enough background.. I'm trying to tighten up the server, MXToolbox already shows its ok as to "open-relay".. But since everywhere I look, says doing an spf record on the dns host is a good thing, I'm trying to set one up. What I'm seriously UNclear about, is how I add the other domains that this server is supposed to send/receive mail for in the spf record (I'm trying to use the spf wizard at www.spfwizard.net)..  Do I need an spf record on each domain referring to my personal domain (which is the domain the server "lives" in). I have successfully (according to the MXToolbox spf record checker) added a spf record to my personal domain as follows   frandin.org.  IN TXT "v=spf1 mx a ip4:23.94.39.114/32 ?all"   I guess my main question is do I need an spf record in each domain?


Show citations in text when clicking on element in bibliography

so my wish would be to be shown all the times I cited an element in the bibliography in the text. So the vice versa operation of clicking onto a particular citation and being directed to the bibliography (this works in my code already). I'd like to click on an element in the latter however and then be directed to all the places where I cited this source in my text. I am using biblatex in texmaker with miktex. Is this somehow possible? Any help is very much appreciated.


I'm trying to blur a portion of a video using FFmpeg (specifically to blur a face).  I have been trying to use a combination of timeline editing and the various bluring filters, but I cannot find a way to blur only a section of the video.  I'm hoping for something like:  -vf boxblur=enable='between(t,10,100)':width=20:height=20:x=400:y=200   Where width/height is size of blurred box and x/y are location of blurred box.  Is something like this possible?


How to measure distance between object and mobile phone using camera?

I am trying to determine the distance between object being photographed and the mobile camera which is capturing the photo. The only device that is used is mobile phone, can we get depth or distance value from sensors?


How much storage does Ubuntu use? I have Windows 10 right now which is using 17 Gigs. I want more storage space and I'm considering Ubuntu.


Let $\rho: G \to GL_n(\mathbb{C})$ be an irreducible representation, and $g\in Z(G)$. Show $\rho(g)$ is a scalar multiple of the identity matrix $I$.   I think I have it, here is my solution:  Since $\rho(g) \in Hom_G(\mathbb{C}, \mathbb{C})$ and $\rho$ is irreducible, consider a nonzero eigenvalue of $\rho(g)$, say $\lambda$, we have $\rho(g) -\lambda $ is a zero map by Schur's lemma, as the map contains a non-trivial kernel (i.e. the eigenvectors associated to $\lambda$ are in the kernel).  But I didn't use the condition that  $g\in Z(G)$, so are there something wrong with my solution?


I've lost my wife using wait command in the woods how can i find her?

I married the huntress woman(companions) and we were going somewhere and I told her to wait and then I forgot to get her and now I have no clue where to find her.  I looked at the companions place, my houses I have 4 and no where to be found   its on x-box 360


how to define hardware and network requirement for future software system

my team is starting to work on creating functional and technical requirements for big software. As a part of this assignment we are asked to provide well grounded hardware requirements.  I have no idea where to start and how to do it, have you ever seen methodology or any practice that can provide such requirements? how should we decide and state that we need this or that processor? actually the system will work on any modern hardware. please tell me about your experience


Does Maxwell's Equations on Magnetic Field holds good in year 2020?

Does "Maxwell's equations" on "Magnetic Field" still hold good in year 2020?  Till now no parameters are changed or corrected?   Why does speed of Magnetism always relate to Speed of Electromagnetic Waves?


I'm new to solving functional equations and found the following functional equation from a collection of functional equations. Find all functions $f: \mathbb{Q}\to \mathbb{R}$ for $$f(x+y)=f(x)f(y)-f(xy)+1$$ for all $x,y\in \mathbb{Q}$. By substituting $x,y\to 0$, we get $$f(0)=f(0)^2-f(0)+1$$ $$f(0)^2-2f(0)+1=0$$ $$f(0)=1$$ And then doing the substitution $x\to 1,\ y\to -1$, we get $$f(0)=f(1)f(-1)-f(-1)+1$$ $$f(1)f(-1)-f(-1)=0$$ $$f(-1)(f(1)-1)=0$$ $$f(-1)=0\vee f(1)=1$$ So, no we have three possible cases to consider and I have no idea on how to proceed on any of them. I would appreciate any hints before giving the full solution as in the best case that's all I need right now.


Can someone help me with this algebraic inequality?

I found this inequality on twitter and I can't seem to prove the statement.  Prove that for $a,b,c > 0$ that   $$ \frac{a+b+c}{2} \geq \frac{ab}{a+b} + \frac{ac}{a+c} + \frac{bc}{b+c} $$  After an hour (and a crick in my neck) I've only been able to turn it into   $$ a^3(b+c)+b^3(a+c)+c^3(a+b)-2abc(a+b+c) \geq 0 $$  and I'm not even sure if that's much better.


Using Mapbox Studio (aka Tilemill 2) to create a self-hosted map

What would be the neccessary prerequisites to run a map/tile-server (serving raster tiles) using an exported vector source and tm2z-styleset?   Has anyone set up a working environment for that?  Is  a possible package for such a case?


Show that the sequence $\sqrt{2}, \ \sqrt{2+\sqrt{2}}, \ \sqrt{2+\sqrt{2+\sqrt{2+}}}...$ converges and find its limit.

Setting $a_n=\sqrt{2+\sqrt{2+\sqrt{2+}}}\ $ I get that $$a_{n+1}=\sqrt{2+a_n} \quad \quad a_1=\sqrt{2}.$$ Clearly all numbers in the sequence are positive and we see that $a_n<a_{n+1} \ \forall \ n$ which implies that the sequence is strictly increasing. To show that it's convergent, I need to show that it's bounded above.  We can use the help-function $f(x)=\sqrt{2+x}$ such that $a_{n+1}=f(a_n).$ But since $$f'(x)=\frac{1}{2\sqrt{2+x}}=0\Leftrightarrow\text{no real solutions,}$$  $f(x)$ never flattens out or decreases, so it can't be convergent?


I am making a centered table but want the headings in the far left column to be left-aligned instead of centred.  Preamble:   \documentclass[11pt]{article} \usepackage{indentfirst} \usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry} \usepackage{amsfonts} \usepackage{amsmath} \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption}  Table code: \begin{table}[ht] \caption{Regression standard errors} % title of Table \centering % used for centering table \begin{tabular}{c c c c c} % centered columns (4 columns) \hline\hline %inserts double horizontal lines Confidence Interval & N=10 & N=30  & N=100 & N=500 \\ [0.5ex] % inserts table  %heading \hline % inserts single horizontal line Asymptotic & \% & \% & \% & \% \\ Efron & \% & \% & \% & \% \\ Hall & \% & \% & \% & \%   \\ Percentile-t & \% & \% & \% & \% \\ Symmetric percentile-t & \% & \% & \% & \% \\ [1ex] % [1ex] adds vertical space \hline %inserts single line \end{tabular} \label{table:nonlin} % is used to refer this table in the text \end{table}


misconception about prototypal inheritance JS

could you please help me to solve this misconception about prototypal inheritance in JavaScript    function Animal(name) {     this.name = name; }   Animal.prototype.speak = function() {     console.log("My name is " + this.name); };  Animal.sayMoo = function(){ console.log("Mooooo!"); };  var animal = new Animal('Monty');  animal.speak(); // My name is Monty animal.sayMoo; // undefined     as far as  I know any instance of an object has all it properties, and in this example animal (instance of Animal) only has what inside the constructor "this.name" and the method "speek()" but not "sayMoo" because I did not use ( Animal.protoype.sayMoo = ...   I think maybe animal or any instance only inherit what is inside the Animal.prototype  is that the right answer? if yes, why animal inherits what inside the constructor ? maybe all properties inside the constructor go automatically to the prototype, so it can be inherited by any instance?  I wish i Solve this


I've been wondering, what is the general form for the integral of $\sin(\cos x)$? I tried integrating it myself and couldn't, tried with Wolfram Alpha and it couldn't either. If you think about it conceptually, it should have a general form as it's graph if just like sin and cos, which both have general forms. If it doesn't have a general form, I'd like to know why. Thanks!


In Ubuntu which tool we use for disk-defragment?

Can Ubuntu have any disk-defragment tools, like Microsoft Windows.   Or any other tools equivalent for it?  I read:


In season 8 episode 1, Arya asks Gendry to forge her a dragonglass weapon (which we can see drawn).  What is the purpose of this weapon?


Does string theory provide quantitative experimental predictions?

Possible Duplicate:          We carefully observe things, observe patterns and then build theories that predict.   String theory is frequently criticized for not providing quantitative experimental prediction.   What are the problems that prevent this theory from producing quantitative experimental predictions?   Is there no experiment suggested by string theorists to verify validity of their theory?  Is the problem mathematical? (or it just requires many dimensional equipments...just kidding).  I am not criticizing the theory because to do that I should understand it first, but I haven't studied it. I just want to know.


What causes matter to initially rotate/spin/orbit? All I can find is the statement that in space particles of dust/gas/matter contract into a spinning disk due to gravity (to form stars, solar systems, galaxies etc.), with no explanation as to why the spin began. I see a lot about the conservation of angular momentum, but these discussions all presume that the 'spin' already exists. What caused the spin in the first place? Shouldn’t gravity simply attract particles of dust, gas or matter together along a straight path till they collide, as a magnet does to a paper clip? The magnet does not make the paper clip revolve around it, and if I fall off of a building, I don’t spin around the earth. I fall in a straight path till I collide with the earth. What am I missing?


Is there a way to emulate a Windows CMD in Linux. What i need is full functionality as if I use the real CMD running in Windows. I want to be able to practice tutorials about WIN CMD, using my Linux PC.  Searching the Internet didn't help a lot.  Thanks for your help :-)  Edit:  Thank you for all your answers. I really appreciated your time spending. I mostly wanted to practice WMIC commandline using my main computer running under Ubuntu. I tried most of the solutions proposed but what worked better was virtualBox ;-)


Say I have a cube on a plane:    How do I make the ground transparent but also keeping the shadow that the cube passes? I want a solid shadow, not a transparent shadow as other answers detail. Like this:    I need the answer in blender cycles.


Does a grease spell affect where the caster is standing, or the caster in general when cast on itself? I've read of some rules about AOE spells not affecting the point of origin or something... but would like to know RAW


Can a Facebook user know who views their profile/pics?

I want to know whether there is a way to tell who views my Timeline/Profile/pics on Facebook if we aren't friends.  Is there an app or a log or something?


firwalld on VPS without nf_conntrack kernel module

I'm running a VPS of a german provider and want to switch from Ubuntu to CentOS. There I tried to install firewalld (was not preinstalled), but it always fails with the error  ERROR: Failed to load nf_conntrack module: modprobe: ERROR: could not find module by name='nf_conntrack' modprobe: ERROR: could not insert 'nf_conntrack': Function not implemented modprobe: ERROR: Error running install command for nf_conntrack modprobe: ERROR: could not insert 'nf_conntrack': Operation not permitted   Obviously the nf_conntrack kernel module was not found. Since this is a VPS, I cannot tinker with the kernel modules. On the support site of my provider I found a list of available kernel modules, for example:  ip_conntrack_netbios_ns ipt_conntrack    ip_conntrack    ip_conntrack_ftp    ip_conntrack_irc   Since nf_conntrack is not listed here, does that mean, that I cannot use firewalld? Is it possible to run it without this module?  I guess I could use iptables, if I wanted to (it seems to run correctly). But as I have more experience with firewalld, I would like to stick with it.    CentOS Linux release 7.7.1908 (Core)  uname -a: Linux xxxxxx.xxxxxxxx.xxx 3.10.0-042stab140.1 #1 SMP Thu Aug 15 13:32:22 MSK 2019 x86_64 x86_64 x86_64 GNU/Linux


I need a copy of the default /etc/apt/sources.list

I upgraded to the RC some time ago and the sources.list is sort of screwed up, meaning I'm getting a lot of 404's when updating. Could someone please post an original sources.list for Maverick?


$\lim_{x\rightarrow \infty}[f(x+1)-f(x)]=\alpha$ then $\lim_{x\rightarrow\infty} \frac{f(x)}{x}=\alpha$

Here is what I want to prove.     If $f:(0, \infty) \rightarrow \mathbb{R}$ is continuous and $\displaystyle \lim_{x\rightarrow \infty}[f(x+1)-f(x)]=\alpha$, show that $$\lim_{x\rightarrow\infty} \frac{f(x)}{x}=\alpha$$   Here's what I've tried. I used the $\epsilon-\delta$ definition of limit to convert the given statement to $|f(x+1)-f(x)| < \epsilon$ for large enough $x$, but I don't have any clue on how to proceed.   How do I manipulate this to get something of the form with $f(x)/x$ ?  Any help is greatly appreciated. Thanks in advance!  Note. I've simplified the problem by setting $g(x) = f(x)-\alpha x$, so it is enough to show the problem only for $\alpha = 0$.


I was trying out a sample program to understand about the generic swap function.  /* A simple generic swap function */  #include<stdio.h> #include<string.h>  void swap(void* xp,void* yp,int size){         //void temp = *xp; // we cant declare a variable as void , as we need to konw to de-reference as its not specifying any size info         // Hence used the smallest type info - char         char buffer[size];         memcpy(buffer,xp,size);         memcpy(xp,yp,size);         memcpy(yp,buffer,size); }  int main(){         int a = 10;         int b = 20;         double d=1.34;         double e=2.34;         char* s = "Hello";         char* t = "World";         printf("\n a : %s b : %s \n",s,t);         swap(s,t,sizeof(char*));         printf("\n a : %s b : %s \n",s,t);         return 0; }   I got a segmentation fault when I ran the above program with the function call as swap(s,t,sizeof(char*)). But if I run it with swap(&s,&t,sizeof(char*)), I don't get any segmentation fault.  gdb o/p:  Breakpoint 2, swap (xp=0x4007ac, yp=0x4007b2, size=8) at swap_generic1.c:5 5   void swap(void* xp,void* yp,int size){ (gdb) s 8       char buffer[size]; (gdb) s 9       memcpy(buffer,xp,size); (gdb) s 10      memcpy(xp,yp,size); (gdb) s  Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7b64fe4 in ?? () from /lib/x86_64-linux-gnu/libc.so.6   what might be the cause of the problem. Is that when passed as s and t, the argument is assigned with the address of the strings "Hello" and "World" respectively, and the pointer increments goes sto some other location to fetch the values.


Answer showing "deleted by owner" when in fact it wasn't (well, not really)

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


Short story where TV audiences vote on the plot points of live serials

I would have read this in an anthology in the 1980s, but the book was borrowed from an older cousin, so it's probably from the 1970s or earlier.  I don't really remember anything about the book itself, or even what other stories were in it.  The viewpoint character is a youngish TV producer; his uncle is an executive at the same company.  They produce TV shows where the audience can vote on the outcome of the heroes' actions at various points.  Things along the lines of "Will Steve escape from his manacles before Mr. Bad Guy returns?!  Or will he be fed to the fire ants?!"  (Not an actual quote.)  We are shown that being an actor on these shows is extremely brutal.  Medical technology allows healing from most damage that would have been fatal, and having a live show respond to audience whims makes special effects difficult.  It's easier to just give the actors real bullets and then patch up the ones who get shot.  The protagonist meets with an older actor who has been acting for a number of years.  (Not a lot of years, maybe 5 at most.)  He is a barely functioning alcoholic, no longer able to properly act, and has been reduced to basically dying "humorously" -- a clown who gets maimed on a daily basis.  He wants to quit, but he's still under contract.  He pleads with the main character to get him out of it, there's no way he can survive another year of this, but the contract is iron-clad.  He meets a young, aspiring actress who is being considered for a spot on the show.  She is fairly naive, and really excited to be in the running.  He falls in love with her; she likes him, but her heart is really on being an actress.  She is offered a contract to join the show, and after failing to convince her not to sign up, the protagonist re-writes it so she can get out of the contract if she really wants to.  She goes off to meet with the executives, they wine and dine her, and she comes back excited to have signed up, except they have convinced her to sign the original contract, with no exit provisions.  His uncle comes to talk to him after about not messing with the business.  The actress starts off on a high, really loving the show.  Her only complaint is the jealousy she's getting from an older actress on the show, but the old actress disappears after a while.  But then the pressure starts to get to her; she's no longer as fresh and exciting, so the audience starts voting more often for things to happen to her.  She starts to suffer from stress and anxiety.  She comes back to the main character, asking him to help her.  Then one day she complains to him that they've hired a new young actress.  I believe she uses the line "Her talents are in her tits," to disparage her.  (She seems to lack self-awareness.)  His older actor friend finally escapes his contract by getting himself killed.  It is reported to the main character that he tried to choke a lion with his head, and he couldn't be revived.  The final scene of the story has the main character at home, watching TV.  He's watching the show the actress is on, and just before a break the audience is asked if the hero will rescue her, or if she will be tortured.  His fingers hover over the voting button and he thinks he has plenty of time.  (This question was prompted by  that I believe has the same answer.)


Why do most mtb forks place the arch in front of the stanchions?

Similarly to the pictured below RS Pike, most fork manufacturers place the ark in front of the stanchions. This has proven to be a terrible solution when riding in muddy (or actually anything different than asphalt) conditions:   on each rotation, the tire grabs some mud, dust, sand the first (and only) thing, standing in the way of the accumulated muck, is the fork brace the brace scrapes the mud the mud accumulates on the conveniently located flat areas behind the brace the stanchions work to push the contaminants into the bushings and seals the mud builds up indefinitely, instead of just falling to the ground   Why not place the ark to the rear of the stanchions, like  do?


Combinatorial proof for coefficient identity

I'm trying to make a combinatorial proof for the following identity:  ${n \choose m}{m \choose k}={n-k \choose m-k}{n \choose k}$  From what I understand, the left side of the equation reduces to:  ${n \choose k}$  However, I'm not entirely sure why it reduces to this. Can anyone explain why it reduces to n choose k? What's a good way to think about this identity so I can make my own combinatorial proof?


How to evaluate: $\lim_{n\to\infty} \left(\frac{1^n+2^n+3^n+\cdots+n^n}{n^n}\right)\,?$

Let $$L=\lim_{n\to\infty} \frac{1^n+2^n+\cdots+n^n}{n^n}.$$ If we write: $$L=\lim_{n\to\infty}\left[\left(\frac1n\right)^n+\left(\frac2n\right)^n+\cdots+\left(\frac nn\right)^n\right].$$ Then this doesn't help due to the fact that as $n\to\infty,$ each of the individual terms $\left(\frac1n\right)^n, \left(\frac2n\right)^n,\ldots$ is of the form $0^{\infty}$ or equivalently $0×\infty$ excet for the last term $\left(\frac nn\right)^n=1^n=1.$ But later I realized that if we write: \begin{align} L&=\lim_{n\to\infty} \frac{n^n+(n-1)^n+(n-2)^n+\cdots+1^n}{n^n}\\\\ &=\lim_{n\to\infty} \left[1+\left(1-\frac1n\right)^n+\left(1-\frac2n\right)^n+\cdots+\left(\frac1n\right)^n\right]\\\\ &=1+e^{-1}+e^{-2}+\cdots,\text{ as }n\to\infty\text{ so number of terms is surely infinite}\\\\ &=\frac1{1-e^{-1}}\\\\ &\color{red}{=\frac{e}{e-1}.} \end{align} I don't know the exact answer. Tried Wolfram Alpha but it says that the input is wrong. I'm confused now. Is my approach correct? If yes, is there any other way to show the same.. Please help! Thanks in advance.


A potential supervisor didn't respond to my email. It's been a week, does this mean he's not interested?

A week ago I contacted a potential supervisor with shared interests. He answered back on the same day, positively reflecting his will to cooperate and support my application. I replied to him on the second day with a draft of the aimed project. It has been a week since that email and there has been no answer or reply. Should I assume that he is no longer interested?! Or should I wait a bit longer?!


I'm in a conversation and I don't really want to leave because the people there keep adding me back so it's just whatever. But I would like to mute the conversation or something like I do on Facebook so I won't take notifications or anything from there unless I press on the group and see what's going on. Because for now I have my Skype having a new notifications every half a second.  Any solutions to that?


What does it mean that a resistor has value of 56E?

I found on one schematic that has resistor with value 56E.  I don't know what does that mean.  Can you give me some information, please.


Is there evidence for the Emperor's opinion on Vader's casual killing of the Imperial brass?

Obviously, Emperor Palpatine isn't likely to send Darth Vader on sensitivity training for his casual killing of several Imperial military leaders, and he is deeply feared himself (see Moff Jerjerrod's reaction to his planned appearance on the Second Death Star). But in the novelisations, or anywhere else, is there any evidence of his opinion?   Does he approve? Does he scowl at the murder of his most experienced tactical officers? Does he even know?


I am trying to get something similar to \listoftheorems but for tcbtheorems; ideally a list for each specific type of tcbtheorem in case I need to list another type later. There is probably a simple command out there, but I could not find it. And how do I modify the code so that the title of the tcolorbox is listed as well:  List of Questions:   Question 1.1: some question Question 1.2: some other question   I tried adapting the code from  and from  but I could not even make the theorems become part of the list, so I just got an empty list.  \documentclass[a4paper,11pt]{book}  \usepackage{lipsum} \usepackage{amsmath,amssymb} \usepackage[most]{tcolorbox}     \tcbuselibrary{theorems}  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage{lmodern}  \tcbset{     thmbox/.style={         enhanced,         breakable,         sharp corners=all,         fonttitle=\bfseries\normalsize,         fontupper=\normalsize\itshape,         top=0mm,         bottom=0mm,         right=0mm,         colback=white,         colframe=white,         colbacktitle=white,         coltitle=black,         attach boxed title to top left,         boxed title style={empty, size=minimal, bottom=1.5mm},         overlay unbroken ={             \draw (title.south west)--(title.south east);             \draw ([xshift=3.5mm]frame.north west)|-%                   (frame.south east)--(frame.north east);},         overlay first={             \draw (title.south west)--(title.south east);              \draw ([xshift=3.5mm]frame.north west)--  ([xshift=3.5mm]frame.south west);             \draw (frame.north east)--(frame.south east);},         overlay middle={             \draw ([xshift=3.5mm]frame.north west)--([xshift=3.5mm]frame.south west);             \draw (frame.north east)--(frame.south east);},         overlay last={             \draw ([xshift=3.5mm]frame.north west)|-%                   (frame.south east)--(frame.north east);},     }, }  \newtcbtheorem[number within=section]{questionbox}{Question}{thmbox}{qst}  \begin{document} \tcblistof[\section*]{qst}{List of Questions}  \chapter{foo}  \section{bla}  \begin{questionbox}{some question}{} the answer goes here \end{questionbox}  \begin{questionbox}{some other question}{} the answer goes here \end{questionbox}  \end{document}


Hi I want to render something similar to this image. The below image should be my starting point.I used a UV sphere and I tried freestyle rendering but it is not showing the edges like below.


In the help docs it just says     Community wiki posts have been donated to the community in hopes that   others will edit them to keep them up to date, to add useful   information, and generally improve their quality.   When editing to improve a tag wiki what is the recommended scope?  What information should be included to create what would be considered a high quality, complete tag wiki?  I've edited several tag wiki's and while browsing through them have found a variety of styles..   A full length wiki with information on the subjects background, origin, history, etc.. (e.g. encyclopedic.. Wikipedia style)  Only information that people may find useful in answering questions.. common questions and their answers & reference information. Only information that would educate on how to intelligently discuss the subject or present  question regarding the subject.   I enjoy writing about a subject.  It helps me learn.  So I am tempted to go on and on and expand on every aspect of a subject if I start writing.  But too much information could be bloat and make it difficult to be useful if people are only referencing them for answers rather than a broader education of the subject.


a recommended style guide for sustainable referencing in large documents

I am beginning to write more and more reports which are ever growing in size, typically about 60-100 pages, containing multiple sections, appendices, etc. However, I am finding my current system/style for labeling my figures, sections, etc., is not ideal and isn't scaling that well. Soon I will be writing my PhD thesis and want to ensure that the style I decide to use will scale well and I won't regret it or try to change it further down the line.   Currently my referencing style is something along the lines of:  \documentclass{article} \begin{document} \section{Introduction} \label{sec:introduction} \subsection{Referencing} \label{subsec:referencing} \subsubsection{Too many nested references} \label{subsubsec:too_many_nested_references} Some equations, figures, tables, pseudo code, code implementations, referenced by: %\label{eqt:equation_scaling} %\label{fig:growth_in_labels} %\label{tab:results_of_scaling} %\label{algo:producing_labels} %\label{code:python:producing_labels} \appendix \section{Alternatives} \label{app:sec:alternatives} Here we list some alternatives to appending \verb|app:| to everything. \end{document}   With this approach I frequently find I would like a labeling syntax which has a bit more detail than the minimal \label{environment:brief_description}, but would benefit from something along the lines of \label{topic/section:environment:brief_description}. However, I am fearful of trying to include section info in the labels in the event I try to move things or re-structure the document during editing. (Often I will move a proof or discussion from one section to another).  If anybody has experience with this style of issue, or has recommended guides that address this then that would be much appreciated.


Considering that in higher levels, cantrips deal more damage than L2 spells (especially if you dip 2 levels of Warlock, with EB + Hex + Agonizing Blast), I'm wondering whether it's more efficient for an (MC) Sorcerer to use L2 Slots to power Quickened (EB) cantrips.  The Quickened Spell metamagic option says:     When you cast a spell that has a casting time of 1 action, you can spend 2 sorcery points to change the casting time to 1 bonus action for this casting.   The idea would be to Quicken EB a few times (or in a big fight, until you run out of SP), and at the end of the fight (or during, if needed), convert L2 slots to more SP. Since you keep these until a long rest, you can basically stock up in SP in between fights.  Can a sorcerer use the Quickened Spell metamagic option to cast cantrips?


Hypergeometric distribution question solving

Consider $N$ items, and $N_1$ "hot items". We then select items, without replacement, until we got $n$ "hot items" ( $1\le n \le N_1 $, $n$ being a constant). Let $X$ be a random variable which represents the number of trials needed( to get the $n$ "hot items"). I need to calculate the Mean and the Variance of the variable.  So far i got this:   $$P[X=k] =\frac{ {N_1 \choose n}{N-N_1 \choose k-n}  }{N \choose k}$$ So, the minimum extractions would be $n$ ( when i select all of the "hot items") and the maximum extractions would be $N-N_1+n$ ( i select all of the "non-hot-items" and then the $n$ "hot-items"). Kind of a hypergeometric distribution. I said kind of because it's not exactly the hypergeometric distribution. Random variable X represents the number of getting n "hot items" where n is constant, not k= 1,2... But when i need to calculate the Mean of $X$, i got:  $$E[X]=\sum_{k=n}^{N-N_1+n} {k\frac{ {N_1 \choose n}{N-N_1 \choose k-n}  }{N \choose k}}$$  where I kinda get lost to it. Any idea how to solve this or i'm wrong on this?


How do I move a world save onto my minecraft server?

I want to play an adventure map with my friends but want to do it over my server so we don't need to use "Lan". How would I move the map into my server from my desktop?


Irreducible elements in  $\mathbb{Z}[\sqrt{-2}]$ and is it a Euclidean domain?

First of all I am new to this topic, algebraic number theory, so I only know a decent (not great) amount of abstract algebra.     The question I have is that, given the imaginary quadratic field $\mathbb{Z}[\sqrt{-2}]$, I want to find;   (1) all irreducible elements of it,   (2) show that it is a Euclidean domain, and   (3) show that for an odd prime number $p,\; \exists \;x,y\; \in \mathbb{Z}$ s.t. $p = x^2+2y^2$ iff $p=1,3(\textrm{mod}\; 8)$.    I have been reading and have books but there are some things I am not getting.  (a) My attempt at finding the units (I read that there are only ${}^{\pm}1$ for this integral domain (ID));  A unit is an element with an inverse, so for an element $p_1 \in \mathbb{Z}[\sqrt{-2}]$, there is another element $p_1'$ s.t. $p_1\,p_1' = p_1'\,p_1 = 1$ (it is integral domain, not just domain).  Let $p_1 := a+b\sqrt{-2}$ and $p_1':=x+y\sqrt{-2}$ and so $p_1\,p_1' = 1$ becomes $(a+b\sqrt{-2})(x+y\sqrt{-2}) = 1  = 1+0\sqrt{-2}$ and into the two equations, $1=ax-2by$ and $0=ay+bx$. Solving these leads to $x=\frac{a}{a^2+2b^2}$, $y=\frac{-b}{a^2+2b^2}$ and $p_1'=\frac{a}{a^2+2b^2} + \left( \frac{-b}{a^2+2b^2} \right)\sqrt{-2}$, which can only belong to $\mathbb{Z}$ if $b=0,\;a={}^{\pm}1$.   Is there a better way of determing the units of an ID?  I read that the units, $\epsilon$, of a quadratic ID of the general form $R[\sqrt{d}]$, where $d$ was square-free, were determined by $Norm(\epsilon) = {}^{\pm}1$ Is this general ? Is this for any $d$ that is square-free (though I see little difference between $d=d$ and $d=z*d$, as $z\in \mathbb{Z}$) ?  (1) I know, procedurally, how to do this for a given element, but I do not know of a better way to do it in general. Here is my attempt:  I read that: An element $p$ of an ID is irreducible in R if it satisfies: (i) $p \neq 0$ and $p$ is not a unit, (ii) if $p=ab$ in R, then $a$ or $b$ is a unit in R.  (maybe because I know the units in this ID I can say that all other non-zero elements are irreducible ? )  So if $p = ab$, with $a = m+n\sqrt{-2}$, then using the as-of-yet-unproved-homomorphism-norm-map, $N(ab) = N(a)\,N(b)$, $N(p=x+y\sqrt{-2}) = x^2+2y^2 = N(a)\,N(b) = (m^2+2n^2)\,N(b)$. Now if I had a specific element, to determine if it was irreducible, I could then determine what values of $N(a)$ and $N(b)$ were valid so that their product equaled $N(p) = N(x+y\sqrt{-2})$, which this latter term would be an integer ($N: \mathbb{Z}[\sqrt{-2}] \mapsto \mathbb{Z}$).  The latter two questions I haven't got far with either but am wanting to get this initial question(s) understood first.  Thanks all for your time reading my rather lengthy question!


Why does Captain America's Shield make noise?

If the shield doesn't vibrate, how could it produce sound? This would necessitate something vibrating to move the air.  The only thing that I can think of that is plausible, is that vibranium is able to quickly dampen vibrations, and isn't just immune to them. This would then allow it to produce sounds.


Relative velocity of two objects travelling at $c$ (or near $c$)

If two bodies are travelling at speed $0.9 \, c$ in opposite directions, what will be the speed of one, as observed by another? Newtonian mechanics won't apply at such speeds. As such, how will we calculate the actual speed? The speeds can obviously not cross $c$. How to intuitively understand this?


I'm currently trying to automate some Video editing with ffmpeg. I have some videos with the AR of 9:16 and some with 16:9, and also different resolutions, problem is that ffmpeg stretches the 9:16, so it fits into 16:9 (1920/1080). What I want to achieve is that the Video still has its original "form". Examples are attached below. My current commandline: ffmpeg -f concat -i fl.txt -vcodec libx264 -s 1920x1080 -r 60 -strict experimental output.mp4  Thanks for helping! Strub3l e.g.


Script access to tangent and bitangent, per face: how?

Suppose you have a mesh; you go into Edit mode,  set Transform Orientation to Normal,  show 3D manipulator widget, Pivot Point = Active Element, face select mode, and then you select any one face: immediately you will see a blue arrow representing the face normal, and also a red and a green arrow representing the face's tangent and bitangent.  What is the most straightforward way to refer  to said tangent and bitangent vectors from a Python script? The API documentation confuses me with loops and uv's, yet, clearly, Blender assigns a tangent and bitangent to each face without hesitation!


How to show that if two integral domains are isomorphic, then their corresponding field of quotients are isomorphic?

If two integral domains $D$ and $D'$ are isomorphic show that their corresponding field of quotients (fractions) $Q(D)$ and $Q(D')$ are isomorphic.