What are the numbers before and after the decimal point referred to in mathematics?

Sorry for asking such a basic question - but is there an actual term for the numbers that appear before and after the decimal point?  Example:  25.18  I know the 1 is in the tenths position, the 8 is in the hundredths position. are there singular terms which apply to all of the numbers that appear both before and after the decimal point?  I'm building a billing system, storing dollars and cents as integers (in separate columns), but for other currencies "dollars" and "cents" are not the correct terms = ).  Thanks!


Bending with Curve Modifier doesn't follow curve

I am working on a 3D-printable design and am trying to use Blender to simply "bend" a flat object into the shape I need (basically adding two "rounded" 90-degree bends). I've got: hex_mesh.stl --  This is the flat object is basically a flat sheet with a lattice of hexagons cut out of it (which I designed in FreeCAD).  bend_curve_inner.svg -- This is the shape of that I'd like to bend the hex_mesh.stl into (also designed in FreeCAD).  I've imported the hex_mesh.stl as an Object and the bend_curve_inner.svg as a Curve and then:  Added a "Remesh" modifier to the Hex Mesh to generate enough vertices for the bend to work with. Added a "Curve" modifier to the Hex Mesh to attempt to bend it into the shape prescribed by the Curve. Messed around with the Hex Mesh origin, Deform Axis, and translation/rotation until I got to the result shown below:   This curves correctly around the first bend, but then doesn't follow the straight line or bend around the other portion of the Curve.  Can anyone explain why it's not following the geometry of the Curve?  I've done similar operations before with more complicated curves, but can't figure out why this one isn't working. Please let me know if you need more information, and thanks for any help!


Getting a FileNotFoundException if not running from Eclipse

I made a program using eclipse. I have a referenced library called res, where I load my resources from. I have two folders in res, one if 'maps' the other one is 'tiles'. If I run the program from eclipse, it works how it should. However if I export it into a jar, and run that, I get an exception. I didn't have this problem, until I started to use the files in the 'maps' folder, so I'm guessing I'm not loading it as I should. As far as I know, I should load it as a resource, and that's what I do:  BufferedReader reader = new BufferedReader(new FileReader(this.getClass().getResource(path).getFile()));   (path is just a string, which is always: "/maps/map.txt")  The exception comes from the line above, and this is the exact error:  java.io.FileNotFoundException: file:\C:\TMP\App.jar!\maps\map.txt  (the filename directory name or volume label syntax is incorrect)   What am I doing wrong?


Is space itself expanding or is it just momentum from the Big Bang carrying things apart?

So, we observe that galaxies are moving apart (on average) and the further away from us they are the faster they are moving away from us.  If space was expanding that would explain this.  However, I imagine that if a primordial explosion happened then at some point close to where the explosion happened things would not move much, and they would be moving faster the further away you were from "ground zero".  But if we were not near ground zero there should be some anisotropy in the speeds we observe, is that correct?  There should be a "ground zero" in the "explosion model", right??  However, regardless of the "ground zero" issue, do we (or could we) distinguish between a uniform "explosion" model and the idea that space is expanding?


How to use a variable in a regular expression to replace-all?

I want to replace multiple occurrences of 'text1' with 'text2', in '#area', here is my code that works just fine:  var replaced = $('#area').html().replace(/text1/g, 'text2'); $('#area').html(replaced);   But imagine the 'text1' is a value of an input box, so:  var search = $('#blah').val(); var replaced = $('#area').html().replace(/search/g, 'text2'); <--- HERE IS THE PROBLEM $('#area').html(replaced);   As you can see in the second line, I did /search/g but it's not working, how should I put the search value there?


How do I rename files in sub directories?

Is there any way of batch renaming files in sub directories?  For example:  Rename *.html to *.htm in a folder which has directories and sub directories.


How often is the Golden Ratio actually used in modern design?

The  is the stuff of legend () and is . My question is two-fold, really: Is the Golden Ratio really a good tool used in modern design (defined here as 20th century on forward), and if so, how often is it used outside of the aforementioned known uses?  EDIT: To @e100's first comment, examples of modern use of the Golden Ratio would be a great thing to add here if there any documented or arguably conclusive uses of it.


Creating A Nested Mathematical Sets Inside A Rectangle

I want to make a visual representation of three sets namely S,A and B where A is a subset of B and B is a subset of S. It looks like this:   Basically, one rectangle with two circles inside it. One circle (any color) is inside the other circle (different color than the other circle).


I realise the question of why this sky is blue is considered reasonably often here, one way or another.  You can take that knowledge as given.  What I'm wondering is, given that the spectrum of Rayleigh scattering goes like $\omega^4$, why is the sky not purple, rather than blue?    I think this is a reasonable question because  (or, strictly, violet or indigo) in rainbows, so why not across the whole sky if that's the strongest part of the spectrum?  There are two possible lines of argument I've  and I'm not sure which (if not both) is correct.  Firstly, the Sun's thermal emission peaks in the visible range, so we do actually receive less purple than blue. Secondly, the receptor's in our eye are balanced so that we are most sensitive to (roughly) .  Our eyes are simply less sensitive to the purple light than to the blue.


Unique quadratic subfield of $\mathbb{Q}(\zeta_p)$ is $\mathbb{Q}(\sqrt{p})$ if $p \equiv 1$ $(4)$, and $\mathbb{Q}(\sqrt{-p})$ if $p \equiv 3$ $(4)$

I want to prove the assertion:      The unique quadratic subfield of $\mathbb{Q}(\zeta_p)$ is $\mathbb{Q}(\sqrt{p})$ when $p \equiv 1 \pmod{4}$, respectively $\mathbb{Q}(\sqrt{-p})$ when $p \equiv 3 \pmod{4}$.   My first attempt is this. In $\mathbb{Z}[\zeta_p]$, $1-\zeta_p$ is prime and $$ p = \epsilon^{-1} (1-\zeta_p)^{p-1} $$ where $\epsilon$ is a unit.  Since $p$ is an odd prime, $(p-1)/2$ is an integer and  $$ \sqrt{\epsilon p } = (1-\zeta_p)^{(p-1)/2} $$ makes sense and belongs to $\mathbb{Z}[\zeta_p]$.    How do I deal with the $\epsilon$ under the square root?  I guess the condition on the congruence class of $p$ comes from that.  Is this even the right way to proceed?  Uniqueness is not clear to me either.  I thought about looking at the valuation $v_p$ on $\mathbb{Q}$, extending it to two possible quadratic extensions beneath $\mathbb{Q}(\zeta_p)$, then seeing how those have to extend to common valuations on $\mathbb{Q}(\zeta_p)$, but I didn't see how to make it work.  I would appreciate some help.


Ok, I've noticed alot of people asking this question. But none of the solutions works for me. Keep in mind I have NEVER touched Ubuntu before. I want to try out Ubuntu and get to know it.    Here is my problem.  When I boot up Ubuntu from my USB device the option to install alongside windows 7 is gone.  I have 2 drives in my computer. One 120GB SSD and one 1TB HDD. I want to install Ubuntu on my SSD where Windows 7 already is installed.  I've read about Ubuntus limitations to 4 partitions, I only got 3 (my 1TB included) So it's only 2 partitions on my SSD.  I've reduced my Primary partition on the SSD so Ubuntu can have 10GB. And I've kept those 10GB as "unlocated space". But still it won't detect the partition.    I tried some guys step by step guide, where he used a program named Gdisk. But the terminal in Ubuntu won't recognize the command.   So what should I do now? Any advice?  Please remember that I have no experience with Linux at all, so giving me a lot of advance steps might not help. Just think of me as stupid if that helps :)  Thanks!


Is there a way to rebind "C-h" key in current buffer?

I have this in my init.el:  (global-set-key (kbd "C-h") 'backward-delete-char)   Matlab mode resets my global setting back to "help", and I can't get to use "local-set-key" in the buffer - it doesn't end key sequence when I press C-h, waiting to input of the next character (C-h-).  Is there a way to interactively fix it?


What game's footage is being used in this Jimquisition episode?

I'm trying to figure out which game is being shown about at this timestamp, with the stacked people and the treasure stuff:                                  Any help would be greatly appreciated.


Managing and applying custom updates to multiple identical machines

I work at a library where we have just recently setup 5 kiosk's based on linuxmint.  The hardware is identical.  I actually used DD to make an image after I set the first one up.  My Problem is, I now need to apply more updates to these machines.  I'm making several updates to things like grub, and other system configuration.  As well as a specific users .gconf folder.  Apply such updates as removing keybinding's.  Updating power the power settings. I have ssh access to all of the boxes.  What would be the best way to update these?  I first apply the changes to our experimental machine.  How would you recommend then pushing these updates out to all the other kiosks?    Just discovered   This looks promising. Any other ideas?  Can this be ran as a daemon or will I have to goto each kiosk, login as root, and run puppet?  Running scp and rsync to transfer .gconf and other changes has failed for me.  I have no root user, obviously because of the way ubuntu runs.  So no way to get it to escalate to root for the transfer of modified files.  At least that I know of.


Xresources / Xdefaults: Period or Asterisk?

I've just switched from xfce4-terminal to rxvt-unicode and I've been reading a lot of .Xresources and .Xdefaults files, piecing things together to create my own. My googling skills have left me with a number of unanswered questions; one of which is:  Is there a difference between URxvt.font and URxvt*font?  I have seen a number of variations, for example,  uses a asterisk in one line and periods in another.     URxvt*scrollBar:false URxvt*scrollBar_right: false URxvt.keysym.Shift-Up: command:\033]720;1\007 URxvt.keysym.Shift-Down: command:\033]721;1\007`   Does that mean it doesn't matter or that it matters for some setting and not others? I'm hoping understanding the differences, if there are any, will help with the settings I can't get to work.


I've been having trouble running programs on Ubuntu. I was browsing indie games on a website, and what do you know, they have a Linux version! I downloaded the zip, extracted it to a folder, and went into properties and checked the "Allow executing file as program" box.   Being a Windows user at heart, I double clicked the executable. However, no matter what I do, no window pops up. I tried running from the terminal, too, and it tells me "No such file or directory". Please help!


Why is my eevee viewport render acting like this? also; upon rendering the result is transparent

Lately my viewport render on eevee is fine and shows the textures and everything, but this time, when I open blender even if its 2.83 or 2.9 or 2.91 the problem still the same and gives me gray texture, and upon rendering the result is transparent. I checked my Film settings if i set it to transparent and its not, i don't know how to fix this.  note: when I switch to cycles render everything's fine


Made a mistake and deleted just some of the files in /usr/lib/x86_64-linux-gnu/ how do I restore the files?

I was going some testing and decided to delete some library files in       /usr/lib/x86_64-linux-gnu/   (Horrible idea I know) The side effect of deleting those files is that I am unable to open the gnome or unity control center for Ubuntu.  When I open the control center by running unity-control-center -v  /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37: undefined symbol: sqlite3_errstr Failed to load module: /usr/lib/x86_64-linux-gnu/unity-control-center-1/panels/libinfo.so ** (unity-control-center:9666): DEBUG: Enabling debugging /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.0.so.37: undefined symbol: sqlite3_errstr Failed to load module: /usr/lib/x86_64-linux-gnu/unity-control-center-1/panels/libinfo.so   I have everywhere for this error and tried reinstalling many many diffrent libs but none seem to work. This is different from other questions because the libraries can be restored by installing the right packages Using Ubuntu 16.04.3 LTS


Why does C++ not read the next line of my if-else statement although the prior statement should not be true?

int main()  {  int month, year; cout << "Enter a month (1-12) and year (1-2100): "; cin >> month >> year;   if ((year > 2100 || year < 1) || (month > 12 || month < 1)) {     cout << "Invalid Date"; } else {      if ((month == 2) && (year % 100 == 0 && year % 400 == 0))     {         cout << "This month has 29 days";     }     else if ((month == 2) && (year % 100 != 0) && (year % 4 == 0))     {         cout << "This month has 29 days";     }     else if (month == 2)     {         cout << "This month has 28 days";     }     else if (month == 1, 3, 5, 7, 8, 10, 12)     {         cout << "This month has 31 days";     }     else if (month == 4, 6, 9, 11)     {         cout << "This month has 30 days";     } }   return 0;   }  I am trying to tell the user how many days are in the month that they have entered. The first if and else-if in the nested else is meant to determine whether or not the year the user entered is a leap year, if it is, and the month is 2, then the code will display 29 days. This seems to be working ok.  My problem is when I try to enter the months of 4, 6, 9, 11. aka the months with 30 days. The result i 31 days. It seems to not be reading the last else-if statement, but I don't understand why it wouldn't.


We should make books of our best content!

And that's a good idea!  We have a lot of high quality content here, certainly enough for a small book.   I'm not saying that it necessarily has to be integrated into the main site, but this is just a suggestion if anyone wants to implement it.   Stack Exchange probably could make money selling the physical books though. CC-BY-SA allows selling, as long as you allow others to make copies of your book, and credit the author.  What Wikipedia does is you can custom order any set of articles as a book (it even has a nice set of authors at the end, to satisfy the BY part of CC-BY-SA).  This could even tie into the docs feature.


Intuitive idea of the Lipschitz function

I'm trying to understand intuitively the notion of Lipschitz function.   I can't understand why bounded function doesn't imply Lipschitz function.   I need a counterexample or an intuitive idea to clarify my notion of Lipschitz function.  I need help  Thanks a lot


How can taking a stance against for-profit journals hurt your career?

I will start by saying that I have nothing against any individual or company making a profit out of goods, services or intellectual property they produce. However, I do not like the fact that publishing houses, such as Elsevier (just to name the largest one), make a profit out of the voluntary/non-retributed work of others. By this, I refer to the fact that the core product these journals are selling are scientific articles written by others, based on research funded by others, and with a quality control (peer review) carried out by others with no cost to them. Then, research and academic organizations pay these publishers large amounts of money in the form of subscription fees to gain access to content the community provides for free.  Because of this, I have decided to, whenever possible, I will try to avoid submitting my articles to for-profit publishing houses and will try to rely as much as I can on the journals published by scientific societies. In my field (physics, materials science, chemistry) this is not necessarily a problem, since the APS, AIP, IoP, ACS, RSC, etc. publish a number of reputable journals that can suit my needs. I understand that other authors might not have a choice, or might simply choose to also publish with for-profit houses. This might force me to publish at a venue not of my liking when I coauthor a paper with people interested in sending the collaborative work to such venues. This is not a huge problem for me.  The case of peer review is more complicated, because refusing to review papers sent to me by a for-profit house does not only hurt the publishing house, but also the authors that submitted the paper, who are precisely the community whose interests I am attempting to protect by taking my overall stance against publishing corporations.  By submitting my work only to specific journals I am not actively engaging in any action that could be considered offensive by the for-profit journals and their editors. However, by refusing to review their papers I am directly saying "no" to the editor who sent me the work. I would like to know how I would be hurting my career by "soft boycotting" for-profit journals in the cases a) not submitting there, b) not agreeing to review their papers and c) both.


Automatically move this discussion to chat: Reputation, not yet enough

While commenting I found that a link comes and says Automatically move to this discussion to Chat. But when I clicked on link for chat it shows Reyaz has only 13 reputation, not yet enough to chat.   It is shown in the picture below:        I am asking for a feature where it should check first that does OP has enough rep to chat or not hen only link saying Continue in Chat....


Iterable as a return type - Iterable itself or a subclass?

I'm having trouble understanding getAvailableRooms method. I have methods that I need to fill out, but I don't really understand Iterabl getAvailableRooms method. public interface BookingManager {  public boolean isRoomAvailable(Integer room, LocalDate date);  public void addBooking(String guest, Integer room, LocalDate date);  public Iterabl<Integer> getAvailableRooms(LocalDate date); }  How can Iterable be a return type and how is it used? Is it suppose to return a Iterable object or any of subclasses such as List?


Show that $f^{-1}(A\cup B) = f^{-1}(A)\cup f^{-1}(B)$ but not necessarily   $f^{-1}(A\cap B)=f^{-1}(A)\cap f^{-1}(B)$.  Let $S=A\cup B$  I know that $f^{-1}(S)=\{x:f(x)\in S\}$ assuming that that $f$ is one to one. Is this true $\{x:f(x)\in S\}=\{x:f(x) \in A\}\cup\{x:f(x)\in B\}$?  Why doesn't the intersection work?  Sources : ♦ 2nd Ed, $\;$ P219 9.60(d), $\;$ Mathematical Proofs by Gary Chartrand, ♦ P214, $\;$  Theorem 12.4.#4, $\;$ Book of Proof by Richard Hammack, ♦ P257-258, $\;$ Theorem 5.4.2.#2(b), $\;$ How to Prove It by D Velleman.


Is it possible to use long string in conditional statement only once (without creation additional variable)?

Here is the thing: I'm getting very long hardcoded string and I have to check the length of this string using a conditional statement and if the statement is True, I have to assign that string to variable.  So, I'm going to achieve something like:  variable = 'VERY_LONG_STRING' if len('VERY_LONG_STRING') > 1000 else "TINY_STRING"   Is it even possible?  UPDATE I have to add some explanation - as you can see there is 'VERY_LONG_STRING' two times. And I would like to ask how to use it only once?  UPDATE2 It have to be one-liner.   PS It's for testing purpose only and I have to make it for many times. My script already contain a lot of variables and I'm almost lost in them. So, I would like to avoid some unnecessary use of temporary variables.


I have seen an "EV" (exposure value) scale that's sometimes used to express a camera's exposure settings, or scene brightness. How exactly does this scale work?


Battery Ampere-hour rating vs Battery Amps (not an experienced user)

I have almost no experience whatsoever with the technicals of electronics so this is probably a very easy question for someone who does.  Do you know if a battery with a 200Ah rating can put out 200A for one hour or are there limitations? According to this website's third paragraph (), you can.     For example, an average automotive battery might have a capacity of about 70 amp-hours, specified at a current of 3.5 amps. This means that the amount of time this battery could continuously supply a current of 3.5 amps to a load would be 20 hours (70 amp-hours / 3.5 amps). But let’s suppose that a lower-resistance load were connected to that battery, drawing 70 amps continuously. Our amp-hour equation tells us that the battery should hold out for exactly 1 hour (70 amp-hours / 70 amps), but this might not be true in real life. With higher currents, the battery will dissipate more heat across its internal resistance, which has the effect of altering the chemical reactions taking place within. Chances are, the battery would fully discharge some time before the calculated time of 1 hour under this greater load.   But wouldn't that mean you could hook up a 200Ah battery and ask it to put out 12000A for one minute or 720000A for a second?  That seems very unrealistic, lol.  I'm trying to find the proper kind of off grid battery that can power a microwave through a 3000 watt power inverter.  The microwave needs 1800 watts and the battery needs to be 12 volts so that would mean I need about 150 amps, I'm wondering if a battery with a 200Ah rating could do it?


Is it possible to nagivate Blender viewport like with WASD in a video game?

In video games, flying in the level is typically like this:   W - move forward; S - move backward; A,D - move right/left without turning; Space - jump/ascend;   If I try this in Blender, it does not work (and in general makes some mysterious hard-to-undo changes when I press unknown keys).   Is there any easy mode for navigating the scene using video-game-like controls? Is there even mode video-gamish mode with gravity (towards the center of the closest big object) and clipping (not allowing point of view to become too close to some surfase)?


Hahn Banach Theorem states that given a linear continuous functional $f$ on a subspace $N$ of a normed space $M$, it can be extended to a linear functional $F$ on the whole space $M$ and the norm of the extension is the same as the one of $f$.  Can someone tell me if something is wrong in the following lines:   Fact 1: Every vector space has a basis (use axiom of choice if it is infinite dimensional). Fact 2: A linear map is defined if we give the image of a basis.  Take $\{e_i\}_{i\in I}$ a basis of $M$ extending one of $N$, and define $F(e_i):=f(e_i)$ if $e_i$ is in $N$ and $0$ otherwise. This is clearly an extension of $f$, plus the norm of $F$ is the same as that of $f$ because sup $|F(x)|/||x||$ is $0$ for $x \in M \setminus N$ and $||f||$ if $x \in N$.   In case is correct this seems like a very simple proof of this theorem!


Korea: Visa required to go to the city while in transit in Seoul for a Philippine citizen?

Hi I'm traveling to Uzbekistan and have 12 hours layover in Seoul via Korean Airlines. Do I need a visa to go out of the airport for sightseeing? I'm a Philippine passport holder.


In a recent music video I saw an effect which I found quite awesome. I tried creating it myself in Photoshop but since I'm quite inexperienced with the software I wouldn't know where to start.  What I would like to do  I have a photo of a person taken in front of a greenscreen. I would like to give it a darkish cloudy or foggy background. I would make a silhouette in the front. But I don't want the complete person to be a silhouette. I want the right to light up like a light is falling on it. So that about 15% of the right side of the person is visible.  I don't know how to better explain this but I hope you know what I mean.  Example    I mean something like the above example but with the shadow being a bit larger.


Idempotent endomorphism: show $M=\text{Range}(f) \oplus \text{Range}(\text{id} - f)$

let $f$ be in idempotent endomorphism. Show that $M=\text{Range}(f) \oplus \text{Range}(\text{id} - f)$. I want to show the intersection of both range spaces is $\{0\}$. I currently have let $v \in \text{Range}(f) \cap {\text{Range}(\text{id} - f)}$ $f(v) = \text{id}(v)  - f(v)$ $f(v) = v - f(v)$ and I want to show that $v=0$. But I do not know how to progress. any advice is much appreciated!


Let p ∈ [1,+∞[. Show that f: X → R: x 􏰅→ ∥x∥^p is convex.

I am stuck on this question. Here is what I have so far:  Take any $x_1,x_2 \in \mathbb{R}^n$ and  $λ \in (0,1)$  $$f(λx_1 + (1- λ)x_2) \leq  λf(x_1) + (1- λ)f(x_2)$$  then I would plug the function $||x||^p$ into the above, and I'm not sure where to go from there.


Comment is above one with earlier timestamp

I posted a comment on an answer, and refreshed the page.  I then noticed that someone else had also posted a comment.  His comment had an earlier timestamp, but was below mine.    What happened?  (I'm using the Android app, if that matters.)


tag in itself does not make any sense.  It has no tag wiki, there are 439 questions tagged as blank and just 1 follower.  Should the tag be burniated?


Accelerating particles to speeds infinitesimally close to the speed of light?

I'm in a freshmen level physics class now, so I don't know much, but something I heard today intrigued me. My TA was talking about how at the research facility he worked at, they were able to accelerate some certain particle to "99.99% the speed of light". I said why not 100%, and I didn't quite understand his explanation, but he said it wasn't possible. This confused me. Since the speed of light is a finite number, why can we go so close to its speed but not quite?  Edit: I read all the answers, and I think I'm sort of understanding it. Another silly question though: If we are getting this particle to 99.99% the speed of light by giving it some sort of finite acceleration, and increasing it more and more, why cant we increase it just a little more? Sorry I know this is a silly question. I totally accept the fact we cant reach 100%, but I'm just trying to break it down. If we've gotten so close by giving it larger and larger acceleration every time, why cant we just supply it with more acceleration? And how much of a difference is there between 99.99% the speed of light, and the speed of light? (I'm not really sure if "difference" is a good word to use, but hopefully you get what I'm asking).


Aaron and Billy are working on the same file (abcd.text) on master. Aaron committed the file first. When Billy do git pull, he has a conflict. How can Billy take in the changes from Aaron and still keep his own changes? What is the best way to achieve this?


Is 'clamp' a formally recognized mathematical function?

I was surprised to find the clamp function absent from  and . Is this mainly a concept particular to computer programming? Is it known by another name in mathematics? I'll be editing the Wikipedia shortly to include a reference to this function but I want to make sure I'm not omitting some synonymous terms I'm currently unaware of.  $$   \operatorname{clamp}(x) = \max( a , \min( x , b ) ) \in [a,b] $$


How can I copy multiple line from textarea

I have a code like this below, but when I want to copy the selected text from textarea by using document.execCommand("copy"); it doesn't copy to clipboard I search a lot and none of found solutions worked for me How can I copy the selected text?  Sample Code:   data.forEach(function( single ) {         result += '^' + fontSize + ' ' + single.sno + '\n'; }); var $temp = $("<textarea></textarea>"); $("body").append($temp); $temp.val(result+"").select(); document.execCommand("copy"); $temp.remove(); alert('copied');


What does it mean that particles are the quanta of fields?

I saw the question  but it's a bit advanced for me and probably for some people who will search for this question.  I learned QM but not QFT, but I still hear all the time that "particles are the quanta of fields" and I don't really understand what it means.  Is there a simple explanation for people who know QM but not QFT?


A horizontal line with the same space-filling behaviour as /hfill?

Is there a command or package which would allow me to draw a line in the largest available space in the way that \hfill fills up the remaining space in a line?  i.e., a command to draw a line from the end of the text, wherever it happens to fall, to the right edge of the textwidth (leaving space for any additional text indented to be at the end of the line)?


What does -y mean in an apt-get upgrade command, and where can I find a reference on command flags?

I have seen commands like this:  sudo apt-get upgrade -y    I would like to know the meaning of the -y flag and a reference for Linux command line flags in general.


How can rename Sql Server schema name from Upper case to lower case.  In my SQL Server naming convention, we must use lower case name for Schema instead of upper case.  thanks in advance


I have a freeware app: . It generates an image on the screen. I press Alt+Print screen. I open something like Microsoft Paint, press Ctrl+V and the screen cap of the window of the app appears in Microsoft Paint, but the specific area of the image on which I'm working always comes up black.  I get pretty much the same behavior with GreenShot.  I have never seen an app do this before. The pixels are on the screen. There should be some way of duplicating them. What am I missing?


Reclassifying raster layer with certain colors for value ranges in QGIS?

I'm using QGIS. I want a raster layer with 6 different colors each color representing a certain value range (e.g. -1 to 0 red, 0 to 0.2 orange).  In the layer style menu I can only approximate colors.


awk,sed help needed for addressing density

We are doing a study on livability and quality of life in high-density cities pulling information from sources that, when crunched, can provide an insight into the density ratio of apartments so as to hopefully determine “free space per human” and “concentration per human” in apartment complexes.  In the below example we are looking for the end result of enumerated apartment unit numbers for ONLY the units in parenthesis, all else can be ignored except zipcodes.  The word APT can be removed. The left and right parenthesis can be removed. The main address, for example, below, 7 Dense Road can be removed (we are not interested in precise address). New York NY and zip code should remain as we are studying density by zipcode.  You will notice that there are some entries with just one apartment with no range - it would be good to keep that but not necessary as one unit apartments are generally penthouses or similar which have an abundance of space - we are interested in "how close people live next to one another, what configuration and how many neighbors they have".  So, for example, in the below submitted list of apartment ranges, the end result would be each unit number on its own line:  Our input text file looks like:  7 Dense Road  APT (Range 4A - 4D) NEW YORK NY 10023-5040 7 Dense Road  APT (Range 5A - 5K) NEW YORK NY 10023-5042 7 Dense Road  APT (Range 6A - 6E) NEW YORK NY 10023-5043 7 Dense Road  APT 2A NEW YORK NY 10023-5040 7 Dense Road  APT 2B NEW YORK NY 10023-5040 7 Dense Road  APT 2C NEW YORK NY 10023-5040 7 Dense Road  APT (Range 6F - 6J)   End result needed:  4A NEW YORK NY 10023-5040 4B NEW YORK NY 10023-5040 4C NEW YORK NY 10023-5040 4D NEW YORK NY 10023-5040 5A NEW YORK NY 10023-5042 5B NEW YORK NY 10023-5042 5C NEW YORK NY 10023-5042 5D NEW YORK NY 10023-5042 5E NEW YORK NY 10023-5042 5F NEW YORK NY 10023-5042 5J NEW YORK NY 10023-5042 5K NEW YORK NY 10023-5042 6A NEW YORK NY 10023-5043 6B NEW YORK NY 10023-5043 6C NEW YORK NY 10023-5043 6D NEW YORK NY 10023-5043 6E NEW YORK NY 10023-5043 . . . .


How to work with inside(V) and outside(U) vectors of wordtovec model?

In word to vec module each word has two vectors inside and out side. Or when the word belongs to the context word and when the word belongs to the center word. In the end do we normalize those vectors by adding them up or we just take the inside vectors(Vc)?


How to read multiple lines of text in to one scalar variable in Perl

I think this should be fairy straightforward. I am trying to set the contents of a kml file as a scalar (called $kml). At the moment it only stored the first line of kml. How can I make it ignore line breaks and read in the whole file?  I currently have:   $kml = "Scotland_one_inch_1st.kml";  open INPUT, "$kml"; $content = <INPUT>; close INPUT;   thanks


List of sources can not be read Ubuntu 16.04

I am trying to update my packages put I keep getting an error saying,  E: Malformed entry 52 in list file /etc/apt/sources.list (Component) E: The list of sources could not be read   When I run  sudo nano /etc/apt/sources.list   I get these lines of code on line 52  deb http://cran.rstudio.com/bin/linux/ubuntu xenial    deb http://cran.rstudio.com/bin/linux/ubuntu xenial Anyone have any ideas, I tried to write xenial partner but to no avail. Any help would be very much appreciated. Thanks


I have just looked on MacRumours and found out that Apple have stopped support for installing Windows 7  with BootCamp on the 2015 MacBooks (Air and Pro) (). Since I am going to get the new 12" MacBook I am guessing that too doesn't support Windows 7 using bootcamp.   Since Apple are stopping the drivers for the 2015 models as well, is there still a way to install Windows 7 on the 2015 versions of the MacBook? (I sometimes need Windows 7 on my Mac for college)  Edit  Thank you for the replies.  I ended up getting the MacBook Pro since they didn't have any MacBooks in store. Since I have the MacBook Pro I can now run Windows 7 in a virtual machine (as suggested by you) because I do not have heat and performance issues.


What is a function that allows character vector creation without using quotation marks?

I remember seeing someone using a function that allowed you to create character vectors where the items were each one word strings as follows (I don't know what the function is called so I'm calling it c_special here):  a.random.vector <- c_special(hat, cat, bat)   rather than having to do this:  a.random.vector <- c("hat", "cat", "bat")   It'd be quite useful for me right now as I'm having to manually write out a lot of variable names (~1000) as part of a testing procedure and adding in the quotation marks is not very fun. Does anyone know what the function and package that has this in is or did I dream this up?  Note: I'm sure that this function is highly inefficient but I'm only using it for calling variable names so I'll happily trade that for less typing.   Edit: if I can't track this down I'll probably just use a text macro


What is set-mark in bash and how should I expect it to behave?

It's just mentioned a shortcut for and its usage is supposed to be obvious, but it isn't obvious to me. How do I even tell I "marked" something? Why would I mark something? Does this thing have a scope? Does it ever expire? And do I get a bash warning when/where it did? And above all, cool, I "set mark". What now?  So, what exactly is this mark that I can set and what would I use it for?


Is it true the Michio Kaku has completed a unified field theory started by Einstein by making use of string theory?

This professor has a few documentaries available explaining science to the layman like myself and he showed an equation no longer then a sentence that he says unifies all the know forces and particles in the universe.  How can this be possible?   Maybe I should add a thought or two for clarity.  How was it decided that a "new" force was needed for radioactive decay ?  And finally below:  Then I assume it was shown that that weak force and electromagnetism were actually the same underlying "entity" at some earlier time in our universe. Assuming then that gravity and the strong force along with the electroweak force are unified then wouldn't the theory have to necessarily show that either no other fundamental force can exist or show the total of the ones that can exist?


can a mesh be smooth without creating "holes"

Right now I try to smooth a quite big mesh to the piont you cant realy make out the eges in the final rendering. But every methode I found was just giving no result at all or downsize the singel "mesh tiles" and by that create holes in the mesh. From my understanding i need to enlarge the mesh "resolution" witch i tried with multires BUT the simple setting does nothing at all in my case and the Catmull-Clark setting creates the mentioned holes.    Original object   Catmull multires


GCD questions. How do I determine whether its true or false? (answer is true for both)

1.Let u and v be two positive integers with u/3<v<u/2.Then u mod v = u−2v. 2.Let u and v be two positive integers with u>v and let gcd(u,v) represent the greatest common divisor of u and v. If  u and v are both odd, then gcd(u,v)=gcd(u−v,v) How do I solve these questions? Can you share the steps to these quiz problems? Asked my prof and he says:In general, exercising in some rudimentary basic number theory, e.g. to see how modp behaves, helps. The simplest way is of course just to use the definition of remainder and quotient: For any two positive integers u and v there exist unique non-negative integers q and r such that u=qv+r and 0≤r<v. Just manipulating these q and r alone one can accomplish a lot (personal experience).


What are the benefits of K-fold cross validation compared with grid search with repetitions

Question: How is K-fold cross validation better than an implementation of 'grid-search' with repetitions when tuning hyper-parameters in a model? Context: I am tuning hyperparameters in a model. I have implemented grid search in such a way as to try out different combinations of parameters, repeat each combination multiple times, and then average the results. For each repetition, the training and validation sets are being completely regenerated from scratch (taking the whole set and doing the splitting again). If I now am told to implement K-fold cross validation, how do I know which of these two methods will yield better results (and why)? I understand that k-fold cross validation is meant to decrease the variance that we might see by doing a basic grid-search implementation whereby we just trial each parameter combination only once, but what about when each combination has been repeated? By repeating each combination more than once, have I implemented cross validation incorrectly? Including the repetitions seemed intuitive as the one trial seemed un-reliable. Is a grid-search with k-fold cross validation likely to be better than a grid-search w/ repetitions but no k-fold cv?


Blender Not Recognizing Additional Python Modules

I am fairly new to both Blender and Python. I am running the latest version of Blender to date (2.9.1), shipped with Python (3.7.7) I am trying to install/import some Python modules that facilitate audio processing. These modules : PyAudio and SoundDevice I managed to figure out how to install several of these modules using the terminal commands on my Mac, and they seem to have installed successfully. However, these modules seem to ONLY be installing to my system Python (3.9). As instructed, I have tried changing the terminal directory by going into the Python terminal inside blender, printing the sys.exec_prefix, and copying it into terminal before install:    >>> import sys    >>> sys.exec_prefix    '/Applications/Blender.app/Contents/Resources/2.90/python'   But it seems that the new modules just go into my system Python(3.9) and I can't seem to get anything added into Blender's Python(3.7). Am I missing something?  Are there any comprehensive posts or tutorials about how to add modules specifically to blender's python?  Any help would be appreciated.  (I'd prefer advice and resources specific to Mac as PC directory structures and terminal prompts seem to be different). Thank you.


What is this section called in Google Search?

I want to have something like this for my website:    What is this called?


Current situation around iFrame web and SEO?

I was searching the web around for relevant information about this, but all I could find are incomplete or outdated information.  So consider this: You have your typical business website, but every link to static page point to just one iFrame. So there is no navigation outside of the main page. As far as I know, it is important to have good URL links with good keywords, but since everything is iFrame, there are no urls, outside of w-ww.something.com (no /our-producs or /about-us etc., just one parent page). So does that affect negatively the page ranking? I believe the iFrame content is not indexed at all, isn't it?


Under which assumptions a regression can be interpreted causally?

First, don't panic. Yes, there are many similar question on this site. But I believe none gives a conclusive answer to the question below. Please bear with me.  Consider a data generation process $\text{D}_X(x_1, ... , x_n|\theta)$, where $\text{D}_X(\cdot)$ is a joint density function, with $n$ variables and parameter set $\theta$. It is well known that a regression of the form $x_n = f(x_1, ... , x_{n-1}|\theta)$ is estimating a conditional mean of the joint distribution, namely, $\text{E}(x_n|x_1,...,x_{n-1})$. In the specific case of a linear regression, we have something like $$ x_n = \theta_0 + \theta_1 x_1 + ... + \theta_{n-1}x_{n-1} + \epsilon $$ The question is: under which assumptions of the DGP $\text{D}_X(\cdot)$ can we infer the regression (linear or not) represents a causal relationship? It is well known that experimental data does allow for such interpretation. For what I can read elsewhere, it seems the condition required on the DGP is exogeneity: $$ \text{E}(x_1, ... x_{n-1}|\epsilon) = 0$$ The nature of randomisation involved in experimental data ensures the above is the case. The story goes then to argue why observational data normally fails in achieving such condition, reasons including omitted variable bias, reverse causality, self-selection, measurement errors, and so on. I am however uncertain about this condition. It seems too weak to encompass all potential arguments against regression implying causality. Hence my question above. UPDATE: I am not assuming any causal structure within my DGP. I am assuming that the DGP is complete, in the sense that there must be some causality (an ontological position it could well be debated), and all relevant variables are included. The key is to identify the set of assumptions which ensure me causality goes from certain variables to the other, without assuming from the outset such direction of causality.  Many similar posts on the site spend time mentioning why correlation does not imply causation, without providing hard arguments about when it does. That is the case, for instance, of  very popular post. Additionally, in the  on the site about the topic, the accepted answer gives the very vague answer:  Expose all hidden variables and you have causation.  I do not know how to translate that to my question above. Neither is the second most upvoted answer. And so on. That is why I believe this post does not have an answer elsewhere.


GetHashCode for a class with a list object

I have such a class:  public class Cycle {           public List<int> Edges         {             get;             private set;         }          public override bool Equals(object obj)         {             Cycle cycle = (Cycle)obj;              var list1 = cycle.Edges;             var list2 = Edges;             var same = list1.Except(list2).Count() == 0 &&                        list2.Except(list1).Count() == 0;             return same;          }          public override int GetHashCode()         {          //   return Edges.GetHashCode();         } }    As you can see, if two Edge Lists are the same, then I deem the Cycles as the same.   The issue now is how to implement the GetHashCode()?  I tried Edges.GetHashCode(), but the problem is that two List<Cycle>, with the same Cycle object but different orders, will be deemed different, even though they should be the same.


Create a sql connection string to locate an mdf database

I am currently working in c# application forms. I have created a .mdf database called Student_CB.mdf. Its located with in the solution for the project.  What i am trying to do is create a connection string to it. The string needs to stay localised to the solution as i will be opening the project on other PC's and not just my own PC.  The connection string in the properties states its the following string:  Data Source=(LocalDB)\v11.0;AttachDbFilename="C:\Users\Donald\Documents\Visual Studio 2013\Projects\DesktopApplication\DesktopApplication\Student_CB.mdf";Integrated Security=True    I have tried putting this into an SqlConnection in my c# but its not liking it.  Any help or ideas with where i am going wrong?


How to recover data from dead hard disk (with tic tic noise)?

I have an HP server with a two-year-old 174 GB hard disk. Suddenly, the server cannot boot from hard disk. The drive makes noises (tic tic tic) and the server says the hard drive should be replaced.  I opened the front cover of the server and noticed the red LED of the hard disk is illuminated.  That hard disk holds very important data. Is there any way to recover the data from it?


Deleting duplicate data from table in oracle

I have a table duplicate which shows datas as:  select * from ot.duplicate;     I wanted to delete the duplicate data from the table where I tried:  delete  from (select * from(select * from ot.duplicate a union select * from ot.duplicate b) t1);   But I am getting error:  ORA-01752: cannot delete from view without exactly one key-preserved table


If f is uniformly differentialable on $(a,b)$ then $f'$ is continuous on $(a,b)$?   I just knew the definition   A function $f:(a,b)\to R$ is said to be uniformly differentialable iff f is differntiable on $(a,b)$, and for each $\epsilon>0$ there is $\delta>0$ such that $0<|x-y|<\delta$  and for any $x,y \in (a,b)$ imply that  $\left|\frac{f(x)-f(y)}{x-y}-f'(x)\right|<\epsilon$  Is that this statement is true :  f is uniformly differentialable on $(a,b)$ then $f'$ is continuous on $(a,b)$?


Break down a large folder into multiple subfolders by sequential names

I have a folder with 20000 files in it. I need to split it into subfolders with increasing directory name (dir_1, dir_2....) with each folder having 500 files each in such a way that for example if files are from file_1.png to file_20000, the first folder should contain first 500 files i.e., file_1 to file 500 and immediate folder should contain files in a continued manner i.e, file_501 to file_1000 and so on.


Macbook Pro wont open apps or download content due to Error Code: -50.

My Macbook Pro ran into a problem and reported Error: -50.  I cannot open applications such as Chrome, Word, and others.  I cannot download content or move content to the trash because it says the disk is full, even though it still shows 80Gb of free storage.  The Ram is free and I cannot run ClamXav to see if it is a virus.  Disk Utility verifies the disk but the permissions have all changed and cannot be repaired.  Some permissions errors include "user differs on private/var/at, should be 0 user is 1"as well as various others.  I cant even see/open external drives I connect.  Any idea how to solve this problem?


can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

I just installed appache, MySQL and PHP, suring my installation, I was prompted for a MySQL root user password, but when I start my MySQL, it pops the error, and I just can't seem to find a way around it, most solutions I've read doesn't solve it, moreover, I found out that the /var/run/mysqld path doesn't even exist, my php also needs the socket to connect to my Database.


Can a monstruous character that failed the 24h negative level save lose a monster HD?

Ming the Minotaur Gladiator took it really bad during the "undead night fight" event at the Westgate arena.  He got some negative levels while fighting some vampires. Eeek.  Now 24h later, he made all his saves, except one. He is ....  Can he lose one of his monster HD (instead of a level of fighter, for example)?


Ubuntu 18.04 with RTL8723BE wifi is weak also with changing antenna number

first of all i want to say that i TRIED EVERYTHING I WAS ABLE TO FIND ON INTERNET ( literally every question on forum ubuntu and askubuntu but wifi is still weak  information:   4.15.0-45-generic ( ubuntu fresh install ) hp computer secure boot disable   EDIT : SOLVED INSTALLING UBUNTU 18.10  i've tried to git clone  and install it; select the antenna and check wifi strength ( nothing change )  what else can i do?


I have a alcatel pixi 3 (4.5) 5017x.  I would love ubuntu phone on it,  but that fails me,  I really tried everything,  Please help my,  grt gunter


Is it possible to detect a virus with taskmanager?

If I would have a running virus on my system, would I be able to see the process in taskmanager? I mean, would it be possible for a running virus to circumvent the taskmanager so the process doesn't appear in the tasklist of windows7?  Or in other words. If I really now all the processes in taskmanager to be secure, I also know that my PC is clean?


How can I disable Chrome's incognito mode without rooting Android?

Is there a way to disable Incognito Mode in Chrome without rooting? My phone is running Android Lollipop.


How to install Windows 7 on Ubuntu 12.04 LTS using WINE

I want to install windows 7 home premium on my ubuntu 12.04 LTS. I already have a windows 7 home premium setup .exe, I am using WINE to run it. When I execute it it shows "Windows was unable to create an installation folder error code 0x8007007A".  So I used GParted to create a new partition of size 30 GB and changed the file system to NTFS and selected for boot flag and then I started the setup again, but it made no difference. I dont know what to do next. Please help!


Installing Ubuntu on a portable SSD. What could go wrong?

I have a machine from the company I am working in. I don't have the permission to change anything on it. It's on Windows and it sucks. I am thinking of installing Ubuntu 20.04 LTS on a brand new external SDD. I want to be able to boot from this SSD if it's plugged in and from windows if not. What could go wrong? If the Windows OS is damaged, I may be fired ! An help? I would appreciate a link on how to do it the most safer way. There is tons of tutorials with different approaches. I am lost. PS: the machine is Dell 3351 and the OS is windows 10 PRO.


I don't understand the usage of "either" in this sentence

"I couldn't sleep last night. I bet you guys couldn't either".   Does the second sentence mean "I bet you too, guys"?  Is it correct to use "either" like that or is it just slang?


Calculation of the nth Fibonacci number using HashTableMap

I'm trying to implement the method fibCalc2 for calculation of nth Fibonacci number, but I'm getting the null pointer exception and I don't know how to go further. Is my solution make sense? Any help will be appreciated.  Note: HashTableMap is also implemented by myself, so it is different from the Java's implementation.  Update: NullPointerException on the last line of the code  Here is the code:  private static int callCount2; private static Map<Integer, Long> ansMap = new LLQHashTableMap(10);    public static long fibCalc2(int n) {     if(n == 0 ||n == 1) return n;     if(ansMap.getSize() <= 2){         ansMap.define(0, (long) 0);         ansMap.define(1, (long) 1);     }     long tempVal1, tempVal2;     try {         long temp = ansMap.remove(n);         ansMap.define(n, temp);     } catch (Exception ex){          try {             long temp = ansMap.remove(n-1);             ansMap.define(n, temp);             tempVal1 = ansMap.getValue(n-1);         } catch (Exception ex1){             tempVal1 = fibCalc2(n-1);         }         try {             long temp = ansMap.remove(n-2);             ansMap.define(n, temp);             tempVal2 = ansMap.getValue(n-2);         } catch (Exception ex1){             tempVal2 = fibCalc2(n-2);         }         ansMap.define(n, tempVal1+tempVal2);     }     callCount2++;     return ansMap.getValue(n); }   interface of my Map:  package adt;  import impl.KeyValuePair;  /**  * A generic map  * @param <K>  * @param <V>  */ public interface Map<K, V> {      /**      * Adds a new key-value mapping to the map, which will      * replace a previous key-value mapping that has the      * same key, if it exists      *      * @param key of the key-value pair to be added      * @param value of the key-value pair to be added      */     public void define(K key, V value);      /**      * Returns the value associated with the given key      * in the map, if one exists, or null if the key is       * not in the map      *      * @param key whose value we want to return      * @return value associated with the given key      */     public V getValue(K key);      /**      * Removes the key-value pair from the map that has      * the given key value, and returns the associated value       * if it exists; if the key is not in the map, the map      * remains unchanged, and null is returned      *      * @param key of the key-value pair that we want to remove      * @return value associated with the given key before removal      */     public V remove(K key);      /**      * Removes and returns some key-value pair from the map,       * if the map is not empty; if the map is empty, an       * exception is thrown      *      * @return some key-value pair from the map      * @throws Exception if the map is empty      */     public KeyValuePair<K, V> removeAny() throws Exception;      /**      * @return the number of key-value pairs in the map      */     public int getSize();      /**      * Removes all key-value pairs from the map      */     public void clear();      /**      * @return a String representation of the map      */     @Override     public String toString(); }


so I've been trying to delete a kext file from the Soundflower program. I tried deleting the whole program but it ended up leaving me with just the kext file, and I can't throw it in the bin. I tried redownloading the program and run the uninstall script again but it ended up just deleting the new files and still leaving the old one behind.


If a plane is divided by $n$ lines, then it is possible to color the regions formed with only two colors.

I am self-studying Discrete Mathematics, and there is the following exercise. (in Portuguese)     A plane is divided by many lines. Show that it is possible to color   the regions formed with only two colors so that no two adjacent   regions share the same color.   First of all, I was not able to solve it. Then I did I search on Google, and I've find the following .  4.Show that if n lines are drawn on the plane so that none of them are parallel, and so that no three lines intersect at a point, then the plane is divided by those lines into $\dfrac{n^{2} + n + 2}{2}$ regions.  The next exercise is:   Show that if the same lines as in problem $4$ are drawn on a plane that it is possible to color the regions formed with only two colors so that no two adjacent regions share the same color.   Proof: With zero lines, you can obviously do it; in fact, one color would be sufficient. If you can successfully $2$-color the plane with $k$ lines, when you add the $(k + 1)$st line, swap the colors of all the regions on one side of the line. This will provide a $2$-coloring of the configuration with $k + 1$ lines. (In fact, for this problem, there is no real need to have the lines in general position: some can be parallel, and multiple lines can pass through a point, and the proof will continue to work.)  I did a drawn, and I got convinced, but  I did not understand it. I am feeling stupid, but I was not able to understand the proof without drawing.  I would appreciate your help.


How do I get the coordinates of a mouse click on a canvas element?

What's the simplest way to add a click event handler to a canvas element that will return the x and y coordinates of the click (relative to the canvas element)?  No legacy browser compatibility required, Safari, Opera and Firefox will do.


Is there a command in Linux to know the processor number in which a process is loaded?

Is there any command in Linux to figure out, given a process, which processor the process is running? I am interested in figuring out the CPU busy and CPU idle time of that processor.


Is there a program to mount all of my drives automatically?

Sometimes when I restart my computer, my drives will mount but sometimes they won't (like right now when I'm typing this question out).   Is there an easy way, like a program that can mount them for me? Going in the console, making folders, etc, is NOT what I want. I like how Windows does it where they always mount the drives no matter what.   If there isn't a program how else can I easily mount all drives?


how does one add more more social links and their associated icon/symbol(e.g codeplex, bitbucket) in moderncv.   I tried to include this:       \ifthenelse{\equal{#1}{codeplex}}  {\collectionadd[codeplex]{socials}             {\protect\httplink[#3]{www.codeplex.com/#3}}}     {}%   but nothing seems to work.


Why do we use plural when we say "blow someone's brains out"?

My simplistic thinking is that each person has one brain, so why do we say "blow someone's brains out"?


What is an example of perfect multicollinearity?

What is an example of perfect collinearity in terms of the design matrix $X$?  I would like an example where $\hat \beta =  (X'X)^{-1}X'Y$ can't be estimated because $(X'X)$ is not invertible.


How do I reduce the size of a bloated Git repo by non-interactively squashing all commits except for the most recent ones?

My Git repo has hundreds of gigabytes of data, say, database backups, so I'm trying to remove old, outdated backups, because they're making everything larger and slower. So I naturally need something that's fast; the faster, the better.  How do I squash (or just plain remove) all commits except for the most recent ones, and do so without having to manually squash each one in an ? Specifically, I don't want to have to use  git rebase -i --root   For example, I have these commits:  A .. B .. C ... ... H .. I .. J .. K .. L   What I want is this (squashing everything in between A and H into A):  A .. H .. I .. J .. K .. L   Or even this would work fine:  H .. I .. J .. K .. L   There is an answer on how to , but I want to keep some of the more recent commits. I don't want to  either. (Especially I need to keep the first two commits counting from the top.)  (Edit, several years later. The right answer to this question is to use the right tool for the job. Git is not a very good tool to store backups, no matter how convenient it is. )


Multiple string conditions in an if statement

I'm writing a simple program and in it I need to get a user's input for yes/no (I'm using Scanner, UI, for this) like so:      System.out.println("Do you know the insulation capacity? (y/n) ");     String IC = UI.nextLine();   And that works perfectly fine, but I have trouble in the next section, where I check the string in an if statement:      if(IC == "y" || IC == "Y" || IC == "yes" || IC == "Yes"){ //four options of saying "yes"         System.out.print("What is the insulation capacity? ");         m = UI.nextDouble();     }else if(IC == "n" || IC == "N" || IC == "no" || IC == "No"){ //four options of saying "no"         findM();     }else{         System.out.println("Answer was not clear. Use y, n, yes, or no.");         checkM();     }   When I run the program, the else is always executed, even if IC is Y, y, Yes... etc.  Why is this the case and how do I get this to work?  Thanks,  -Justice


I didn't find any related articles about . There are some related articles but they didn't solve the problem.  I installed Oracle JDK tarball file from Oracle site by following this article . It was very helpful. But still I don't know what I should do in order to uninstall Oracle JDK.


Add Transparent pattern/effects to png image on saving

I need to export a png file with pattern or light effects. I have a tshirt shape with shadow effects on tshirt. The shadow effects has 75% fill and Multiply. If i add a background like color on back layer, it will show me the color of tshirt with shadow effects correctly. After save it in png, and import in new file, when i try to add a background layer on back, the color not is the same ( more lighter ).  How i can export the image with multiply effects or like this ? because i need to use it online on website but with same effects on photoshop.


Sorry for my trivial question but I am curious to know how many \documentclass exist. I use generally, article, standalone, book, report, beamer, but I see in many question also other \documentclass like \documentclass[runningheads]{llncs} or other forms.  I did not find a complete list of all existing \documentclass and what are their function. Is there a complete collection where I can understand the significance and the output?


Get Text of Item in Listbox by Value using jQuery

How do I get the text of an item in Listbox by passing the value of that item. I don't need the selected item, only the one I specified by value.  I use jQuery.


Why is hubble time the age of the universe?

For a universe with a constant expansion rate, i.e. the Hubble constant $H_0$ is a constant, the  Hubble law is $$v=H_0d$$ where $v$ is relative velocity between two galaxies and $d$ is the separation between them. I read that the age of the universe is given by $$\frac{d}{v}={1\over H_0}$$ which is the Hubble time $t_H$. This calculation implies that at all times, the relative velocity between two galaxies is constant. But Hubble's law say that galaxies that are nearer to each other have a smaller relative velocity. So an earlier instant of time, when the two galaxies are nearer to each other, the relative velocity should be smaller. How then can we use a constant relative velocity between two galaxies to calculate the age of the universe?


zoom in slowing down then stopping completely

Zoom in slowing down then stopping not close enough to object. I want to be able to zoom in closer and a lot of the time Blender won't let me. Also I click Alt+M with vertices selected tell it to merge at center and nothing happens.


How do I add a CanDestroy tag into an iron pickaxe that I'm placing on a dispenser?

So basically, I'm trying to make a puzzle map with custom recipes, and I'm trying to make it so when you place a stone pickaxe in the middle of a dispenser, and 3 iron ingots on top of it, it gives you an iron pickaxe that can only destroy concrete. I've been trying a lot of stuff but I don't get how I am gonna get it to work. This is the command I'm using for this.  /blockdata 11 4 3 {CustomName:"Fabricación",Items:[{Slot:4b,id:"minecraft:iron_pickaxe",Count:1b,Damage:0s}],CanDestroy:"minecraft:concrete",id:"minecraft:dispenser",Lock:""}   Also, im on 1.12.2


I need to increase the default java heap size to get OpenNMS Linkd service running smoothly, and fortunately I have 4/5 of my total installed memory free at any given time even when their is maximum load on the server. still java is not performing to it's bast. hence I need to increase the default java heap size.  Can anyone tell me how to do it?  I'm using Ubuntu 12.04 lts & total memory installed is 16 GB out of which generally 2GB to 4GB is used.  I have already checked below questions and they did not help me resolve my issue.        Please feel free to edit or comment for any additional details required.


Jean-Paul Sartre claimed we are totally free. This might lead some people to think they can show no concern for others and do whatever they want. He warned, however, if everything is based on free choice, we are responsible for the consequences of our actions on ourselves and others. How might this responsibility limit our total freedom? Give examples.


On , I was bored and asked for  and the result was (indeterminate). Another two that give the same result are  and .  From what I know, given $x$ being any number, excluding $0$, $\frac{x}{x} = 1$ is true.  So just what, exactly, is $\infty$?


how to match a string in whole array element

I have a array in javascript   var arr = ["12","22","33","42"];    If I search for 1 it should not match because it is not a complete array element.  If I search for 12 it should match because it is a complete array element.   I have searched web for this but found  var match = arr.indexOf('1');   But this does not solve my problem  Anybody can help?


Why is continuity permissible at endpoints but not differentiability?

Admittedly, there are some questions and answers as to why a function defined on a closed interval is not differentiable on the interval's endpoints. But I find no answer as to why, in spite of this, continuity can be defined on an interval's endpoints.  For differentiability, the intuition is that the neighborhood of $x$ that allows $\lim_{x \rightarrow c}\frac{f(x) - f(c)}{x - c} = L\quad$ must (or is this our definition) be populated from both the left ($x < c\;$) and the right ($x > c\;$). Hence, differentiability isn't defined on endpoints of an interval.    Why does such a requirement not exist for continuity?  A function $f$ is continuous at $c$ if $$ \forall \epsilon, \exists \delta, |x - c| < \delta \rightarrow |f(x) - f(c)| < \epsilon$$  Continuity seems not to care whether points appear left or right of $c$ -- just that, if they exist in some chosen neighborhood, they satisfy the condition above.    Here is an example of this "dichotomy"


Automatically changing the angle of a symbol in QGIS?

I am working with an iron age cemetery in QGIS. I marked every grave in a point layer with several columns; amongst others, burial rite (inhumation, cremation etc.). I inserted a second column for the orientation of the inhumations. I categorized the vector symbols according to the burial rite column and created one simple vector symbol for the inhumations, now I would like it to rotate automatically according to the orientation column.  Is that possible using one layer, or do I have to put all the inhumations in a second layer.


Prove that a square-integrable entire function is identically zero

Suppose $f$ is entire and    $$\iint_\mathbb{C}|f(z)|^2dxdy < \infty$$Prove that $f\equiv 0.$   So far I have:  Suppose $f$ is bounded.  Then $f$ is constant by virtue of Liouville and so the conclusion is obvious.  Thus, assume $f$ non-bounded.  Then  $$\Big|\iint_\mathbb{C}f^2(z)dA\Big| \leq \iint_\mathbb{C}|f(z)|^2dxdy < \infty$$ We can parameterize \begin{align*} \iint_\mathbb{C}f^2(z)dA &= \int_0^{\infty}\int_0^{2\pi}f^2(re^{i\theta})\;d\theta\;rdr \\ &= \int_0^{\infty}\int_0^{2\pi}f^2(re^{i\theta})\;ire^{i\theta}[-i\frac{1}{r}e^{-i\theta}]d\theta\;rdr \\ &= \int_0^{\infty}\oint_{C_R}f^2(z)\;[-i\frac{1}{z}]dz\;rdr \\ &= \int_0^{\infty}2\pi r dr\frac{1}{2\pi i}\oint_{C_R}\frac{f^2(z)}{z}dz \\ \\ &= 2\pi f^2(0)\int_0^\infty rdr  \end{align*}  Whence f(0) = 0.  And I have no idea where to go from there.  The "entire" bit seems to suggest Liouville but I have already dealt with the bounded case.  Please advise ...


I want to clear my doubts about RAM speed?

My processor' frequency is 1.7 GHz and i want to add 4 GB RAM to my system.I want to know that RAM  what speed should i buy so that it is compatible with my processor and why ??


Cron job to run python script at reboot does not work

I am new to linux and I read and followed many instructions to run a python script at reboot but non of them worked:  this is the command I want to run:  /usr/bin/python3 /home/am/projects/AMAcc/map.py   I used crontab -e and added   @reboot /usr/bin/python3 /home/am/projects/AMAcc/map.py   I tried sudo crontab -e and added the same command  I even edited /etc/crontab file and added above command.   Tried adding #!/usr/bin/python3 at top of my python code and changing its permissions like: sudo chmod a+x map.py  As documents suggested that all users would be able to run cron jobs if cron.deny file exists but its empty, so I tried creating empty cron.deny files in both /etc/cron.deny and /usr/lib/cron/cron.deny. But still no luck running the cron job.  What am I doing worng?


What is the term for taking it out on someone even though you will be harmed by this too?

When you are so mad at someone that you make a bad decision, even though you will be harmed by it as well, in order to harm that person; is there a good term for this?   For example burning $100 because he owns $20 of it.


apt-get update: Clearsigned file is not valid, got 'NODATA'

I'm getting the following error on running sudo apt-get update :  sudo apt-get update                                                                 Get:1 http://dl.google.com stable InRelease 100% [1 InRelease gpgv 3,435 B] [Connecting to in.archive.ubuntu.com] [ConnectiSplitting up /var/lib/apt/lists/partial/dl.google.com_linux_talkplugin_deb_dists_stable_InReleaseIgn http://dl.google.com stable InRelease                                       E: GPG error: http://dl.google.com stable InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)   I tried:  $ cd /var/lib/apt $ sudo mv lists lists.old $ sudo mkdir -p lists/partial $ sudo apt-get update   But still getting the same error. Never faced this problem before. I was trying to install texlive-full and ran out of space during installation, apt-get install wasn't working then and gave the following output:  E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.   As per the answer here:  I tried:  cd /var/lib/dpkg/updates sudo rm * sudo apt-get update   And then this error occured. Now apt-get install is working fine but update isn't working. What is the solution?


Should the "bounty ending soon" email contain a link to the question?

I have found questions complaining and  that the text should be different when there are no answers, questions objecting to even getting emails when bounties are expiring, complaints about duplicate bounty-related emails, but not this one. The email I just got looks like this:  Reminder: Your Bounty Ended! Your bounty on the question … \ Thanks for putting a bounty on your question. It looks like there are still no answers yet. You should consider improving your question to attract more answers. Could you:  See that \ ? I didn't edit that in, it was there. I think that:  it should end the sentence, from other questions it should be "ends in x hours" there should be a link to the question  But instead there's just a lonely backslash.


C# Iterate through classes calling same function

I have multiple classes, all residing in a distinct namespace. All classes derive from the same base class, all have the same function, accepting the same parameters. I would like to be able to iterate through the classes, calling said function. I know I can get a list of the classes using the following: var validationClasses = Assembly.GetExecutingAssembly().GetTypes() .Where(t => t.Namespace == "Panther.Business.Shipping.Validate") .ToList();  And, of course, I can iterate through each class in validationClasses. But I can’t figure out how to instantiate an instance of each class, and call that function. Any direction greatly appreciated.


How can I find download link of linux softwares?

I want download link of sofwares to download them with a download manager.  Could you please help to find download link of any Linux software?


How to modify windows 10 Keyboard shortcuts?

As a Linux user, I'm a heavy workspace user. Windows 10 has that, but I would still like to switch between them the way I do in Linux, where I use ctrl+alt+right or left to switch between workspaces.  However, for Windows 10 it's rather ctrl+windows+right or left.  How do I modify these Windows 10 shortcuts to those of Linux?


I am facing Please select a file error while trying to upload a plugin. My php.ini settings are like below  upload_max_filesize = 20000 max_file_uploads = 200 max_execution_time = 300 max_input_time = 600 memory_limit = 12800 post_max_size = 8000  My WordPress Version 5.5.3


If $A^2 = I$ (Identity Matrix) then $A = \pm I$

So I'm studying linear algebra and one of the self-study exercises has a set of true or false questions. One of the questions is this:     If $A^2 = I$ (Identity Matrix), then $A = \pm I$ ?   I'm pretty sure it is true but the answer says it's false. How can this be false (maybe it's a typography error in the book)?


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


Why does the exclamation mark `!` sometimes upset bash?

I realize that ! has special significance on the commandline in the context of the commandline history, but aside from that, in a runing script the exclamation mark can sometimes cause a parsing error. I think it has something to do with an event, but I have no idea what an event is or what it does.  Even so, the same command can behave differently in different situations. The last example, below, causes an error; but why, when the same code worked outside of the command substitution? .. using GNU bash   4.1.5    # This works, with or without a space between ! and p   { echo -e "foo\nbar" | sed -nre '/foo/! p'     echo -e "foo\nbar" | sed -nre '/foo/!p'; } # bar # bar  # This works, works when there is a space between ! and p   var="$(echo -e "foo\nbar" | sed -nre '/foo/! p')"; echo "$var" # bar  # This causes an ERROR, with NO space between ! and p   var="$(echo -e "foo\nbar" | sed -nre '/foo/!p')"; echo "$var" # bash: !p': event not found


Moving Stopped Minecarts with Powered Rails

If a minecart is at rest on a deactivated powered rail, simply powering the rail will not make it move.  The minecart must be kickstarted somehow, e.g. by a player pushing it in the desired direction.  I'd like to make a traditional train station, where the carts stop briefly at a platform before speeding away.  However, due to this limitation, the process can not be fully automated.  What are some techniques to start minecarts from a full stop without any direct influence by the player?  If possible, I'd like to avoid sloped rails because they look bad next to a platform.


Suppose I have an Enum like this:   public enum BlaEnum{     BLA1,     BLA2;      private static final String BLA_ONE = "bla one";     private static final String BLA_TWO = "bla two";      public static String getName(BlaEnum bla) {         switch(bla) {             case BLA1: return BLA_ONE;             case BLA2: return BLA_TWO;             default: return null;         }     }      public static BlaEnum getBla(String bla) {         switch(naam) {             case BLA_ONE: return BLA1;             case BLA_TWO: return BLA2;             default: //return new enum value via reflection;         }     } }   How can I, depending on the incoming String, return a new Enum value at runtime? As if there would be an extra value declared:   public enum BlaEnum {     BLA1, BLA2, EXTRA_BLA ... }


I just flagged a few posts that fell under the same reason (NDA related) only to learn from the first flag being declined that SO doesn't enforce NDAs, which I now understand and agree with after reading :  My question then is: Shouldn't there be a way for an user to cancel an issued flag that has not been reviewed yet?


URL should not count towards a comment's character count

It's happened many times that I have to shorten a URL (using bit.ly, etc) or my comment so that it fits the 600 character limit for comments. This is especially annoying when I have a 2-sentence comment with a really large link, causing my comment to be too long.  Does this justify not counting URLs when calculating a comment's character limit and dis/allowing it to be posted?


Convert decimal to integer in Visual TeX IDE

I want to convert decimal number to integer in latex program with Visual Tex IDE. I found this function \pgfmathparse{ceil(2.7)} which requires installing the package pgfmath and pgfkeys. And after conversion I need to add two numbers. I tried using \numexpr (for integers) and \dimexpr (for decimals). But both functions simply concatenate those two values.   I don't know how to install packages in Visual Tex. Could someone suggest me how to install a package in Visual TeX. Or Could someone suggest me if there is any other function in calc package through which I can get ceil.  \documentclass{article}% \usepackage{calc}% \begin{document}% \newcommand{\addnum}[2] {%   \def\numa{#1}   \def\numb{#2}   \def\deca{#3}   \def\decb{#4}   Int Sum is \numexpr\numa+\numb\relax   Dec Sum is \dimexpr\deca+\decb\relax }%% \addnum{10}{20}{30.45}{55.63}% \end{document}%    It gives below output:     Int Sum is 10+20   Dec Sum is 30.45+55.63   This program works in MiKTeX. But I want it to work on Visual Tex IDE. I set the output mode as PDF.


How to inform man about number of columns in non interactive mode?

I'm running man in non interactive mode from bash and I'm displaying the result on the webpage. I have number of character per line calculated on a page, how can I inform the man command about number of characters per line?


Is there a way to check if an object contains certain data?

@EDIT: I want the function to be able to search without me saying what are the variables that it should be searching. For example, I want the same function to search for minimumClients + Location and give me all that contain those values, but if the user only chose pricePerNight + roomsQuantity then it should search on the same list for different variables without me telling it which variables to search.  I do not want to add inside the function ".getLocation().equals(location)", I want to make it so it compares the values passed as an argument that are != from NULL to the objects inside the list.  List<Property> properties = new ArrayList<>(); // Let's say I want to look for properties with the minimumClients = 4; // I would do Property p = new Property(); p.setMinimumClients(4); properties = getPropertyList(p); // That would give me the Property 3  // But if I want to look for properties with pricePerNight = 30 and location = "Portugal" I would: Property p = new Property(); p.setPricePerNight(20); p.setLocation("Portugal); properties = getPropertyList(p); // This would give me the Property 1 using the same function above. I do not want to specify what I am looking for, I want to make it so it knows what I am looking for.   This is what I mean:  I have the following class  public class Property() {     private int minimumClients;     private int maximumClients;     private float pricePerNight;     private String location;     private int roomsQuantity; }   I'll be needing to search for properties, meaning I can either search:   For a location For a price per night For a location and number of rooms For a location, with given number of rooms and a given price For a location and a minimum number of clients   etc.  I'll be having a list of properties in another class called Repository  public class Repository() {     private List<Property> properties; }   What I want to know is: Due to the huge amount of searching possibilities on a property, is there any way I can send an object containing only the information I want to search for, and while iterating through the properties list only return the properties that contain all the object information?  Example:  public class Repository() {     private List<Property> properties; // Assume a constructor exists      // I'll be using a foreach here     // property contains location = "Spain" and roomQuantity = 2     // The rest is null, I want to add to the list properties that are located in spain and contain 2 rooms     public List getPropertiesList(Property property) {         List<Property> newList = new ArrayList<>();          for(Property p : this.properties)         {             // Is there any function I can use here to check if it contains the info I'm searching for, not caring if others are different?             if(p.containsEqualInfo(property))             {                 newList.add(p);             }         }          return newList;     } }   Basically:  I want to search (for example) and return a list of all the properties that are located in Spain and have a number of rooms equal to 2, not caring about the other variables values.  Property1 0 3 30 Portugal 2  Property2 0 3 30 Spain 2  Property3 4 7 120 Spain 2  Property4 0 10 300 Spain 3   If I had the above list inside the repository, once I called the function (getPropertiesList(p), p = the object that only contains spain and 2) the returned list would contain:  Property2 + Property3


26 hr Layover at London Heathrow (Transiting)

My dad is travelling from Cayman Island to London Heathrow on may 6 arriving at terminal 5. He has a lay over for 26 hours and has a next flight going to Qatar, then Qatar to Philippines. I’ve read and research that the airside are not open 24 hrs so no matter what it takes he has step out & find somewhere to stay like hotels nearby the airport. To be able to do it he need to obtain a transit visa right? Can a transit visa be granted in the airport or at border control?


Understanding rationale behind choice of certain mathematical structures in QM

I'm studying about Quantum Information and Quantum Mechanics. Right off the bat it's stated that we deal with vectors and operators in Hilbert space. But then I see the definition of a Hilbert space and several questions pop up in my head: like why do we need a complete vector space? Why should it have an inner product structure? etc. One way to learn could be to not worry about these questions, accept the mathematical structure at face value and methodically follow the consequences of these assumptions. But I'd prefer to understand the rationale behind each and every assumption about the mathematical structure. Specifically,  Why is it not possible to use a weaker set of assumptions? From the physical point of view what's the point of each assumption, etc.  My question is, how do I go about answering the bulleted questions as I learn QM?


How do I remove my Ubuntu partition from Windows 7 and reuse the space?

I am dual-booting Windows 7 and Ubuntu, both installed on separate partitions. I don't need Ubuntu anymore. How can I remove the Ubuntu partition(s) and add the reclaimed space to my Windows 7 partition for saving files in Windows?


Proof that an automorphism of an extension field of $\mathbb Q$ fixes rationals

At  on field automorphisms by Professor Macauley, the proof that an automorphism, $\phi,$ on an extension field $F$ of $\mathbb Q$ fixes the rational numbers, i.e.  $$\phi(q)=q\quad\quad\quad  \forall \; q \in \mathbb Q$$  is given for the number $1,$ asserting that if $\phi(1)=q,$ $q$ can't be $0$ since, if it were,  $$\phi(2)=\phi(1+1)=\phi(1)+\phi(1)=0$$  and $\phi(\dot)$ would not be a bijection.  Likewise, since  $$q=\phi(1)=\phi(1\cdot1)=\phi(1)\cdot\phi(1)=q^2$$  and  $$q=\phi(1)=\phi(1\cdot1\cdot 1)=\phi(1)\cdot\phi(1)\cdot\phi(1)=q^3$$  we have to conclude that $\phi(1)=1.$  This is clear, but the question is      How does this proof generalize to the rest of rational numbers    $$\phi(n)=n;\;n>1,n=\frac{a}{b}; \, a,b\in \mathbb Q?$$


first time install on vertual box, black screen

I had just installed ubuntu on virtual box, booting it first time took me to a black screen, it also has a horizontal text line, although whatever I type nothing happenes


Let $G=\langle a\rangle$ be a cyclic group of order $n$. Show that, for every divisor $d$ of $n$, there exists a subgroup of $G$ whose order is $d$.  This time I have no approach. I haven't found any relation between the divisors of $n$ and the order of the subgroups of $G$. How would approach this?


How do I change "Open with Powershell" to "Open with Command Prompt" when shift-rightclicking in Explorer?

Shift-rightclicking an empty spot in Explorer displays "Open with PowerShell" instead of "Open with Command Prompt" since the  (2017-04). How can I get the old behaviour back where it shows "Open with Command Prompt"?  I tried changing the setting "Show PowerShell instead of Command Prompt when rightclicking the Start Menu or pressing Windows + X" to off, but that didn't change the shift+rightclick menu.


Typing ordered pairs over arrows in a tikz-cd

When I try to type an ordered pair like (x,y) over an arrow in a tikz-cd I get the following error message:  Missing \endcsname inserted.   The code that works looks like this:  \begin{tikzcd}             A\arrow[r, ""]\arrow[d, ""] &   B\arrow[d, ""]\\\             C\arrow[r, ""]              &   D. \end{tikzcd}   The code that doesn't work looks like this  \begin{tikzcd}             A\arrow[r, "(x,y)"]\arrow[d, ""]    &   B\arrow[d, ""]\\\             C\arrow[r, ""]                      &   D. \end{tikzcd}


Ideal/optimum/best pixel dimensions of video to be viewed on iphone

I'm exporting MOVs from Flash, then converting them to mp4 with Handbrake. The video will scale to the screen size, but I would prefer it to scale down, rather than scale up. So, what are the maximum/optimum/best pixel width and height of a MOV/mp4 for iphones? Or, to take it a step back in the process, what are the pixel dimensions I should set for my Flash document (which is then exported to MOV at 1:1)? PS: I know iphone screen sizes have changed with each new iphone, and screen sizes come in . But hopefully in the end there's max X-px x Y-px. (, but no answers)


The first time I open Google Chrome after login, it takes ages to load. When it finally loads I can close it out and it opens normally. What could be causing this, and how can I fix it?


I have a canon 760D. It has a EF-S lens mount. Am I able to use a EF lens with my camera?


Iterating through a string in Python in 8-character chunks

I have very long binary numbers stored in strings. Each 8 characters (i.e. each 8-bit chunk) represent an ASCII character code. To give an example, 0100100001101001 is 2 8-bit numbers (01001000 & 01101001), which are the character codes for 'H' & 'i'. So the whole thing is a binary representation of 'Hi'.  My question is, is there a way to force a for loop iterate through a string in bigger chunks so that I can read 8 letters at a time? In other words, I'd like the for loop to assign 8 characters to my iterator variable per loop iteration instead of 1, so that I can easily determine the character codes represented by the string.  Thanks in advance.


I want to run a regression with 4 to 5 explanatory variables, but I have only 15 observations. Not being able to assume these variables are normally distributed, is there a non-parametric or any other valid regression method?


Is this change of variables correct? double integrals

Define: $ \left(f*g\right)\left(x\right)=\frac{1}{2\pi}\intop_{-\pi}^{\pi}f\left(t\right)g\left(x-t\right)dt $ I want to prove that $ f*\left(g*h\right)=\left(f*g\right)*h $ I havent really learned double integrals so I used some information I found online and Im not sure that I've change variables correctly. here's what I've tried: By definition: $ f*\left(g*h\right)\left(x\right)=\frac{1}{2\pi}\intop_{-\pi}^{\pi}f\left(t\right)\left(g*h\right)\left(x-t\right)dt=\frac{1}{2\pi}\intop_{-\pi}^{\pi}f\left(t\right)\left(\frac{1}{2\pi}\intop_{-\pi}^{\pi}g\left(s\right)h\left(x-t-s\right)ds\right)dt $ $ =\frac{1}{2\pi}\cdot\frac{1}{2\pi}\intop_{-\pi}^{\pi}\intop_{-\pi}^{\pi}f\left(t\right)g\left(s\right)h\left(x-t-s\right)dsdt $ Now change variables : $ s=u-v,t=v $ so $ dsdt=\begin{vmatrix}\frac{\partial s}{\partial u} & \frac{\partial s}{\partial v}\\ \frac{\partial t}{\partial u} & \frac{\partial t}{\partial v} \end{vmatrix}dudv$ Thus $ dsdt=\begin{vmatrix}1 & -1\\ 0 & 1 \end{vmatrix}dudv=dudv $ My problem is with the bounderies of the new integral. Is this correct ? : $ f*\left(g*h\right)\left(x\right)=\frac{1}{2\pi}\cdot\frac{1}{2\pi}\intop_{-\pi}^{\pi}\intop_{v-\pi}^{v+\pi}f\left(v\right)g\left(u-v\right)h\left(x-u\right)dudv $ $ =\frac{1}{2\pi}\intop_{v+\pi}^{v-\pi}\left(\frac{1}{2\pi}\intop_{-\pi}^{\pi}f\left(v\right)g\left(u-v\right)dv\right)h\left(x-u\right)du $ Feels a bit of a lie because Im integrating over the variable $ v $ while v still appear outside of the $ dv $ integral (in the bounderies of the outside intergral ) If its not correct I'll be glad if someon can show me how to change the variables correctly (namely what to do with the bounderies) if its true it will solve that problem because $ (f*g) $ is periodic with period $ 2\pi $ according to former assumptions in this discussion, so if I could treat the $ v $ in the integral as a regular constant, that wouldnt bother me since the length of the segment is $ 2\pi $. Thanks in advance.


What are words that are spelt the same but pronounced differently?

Words like "read", "wind", "live" and "lead" are spelt the same, but have different meanings:     Lead1 (leed):   cause (a person or animal) to go with one by holding them by the hand, a halter, a rope, etc. while moving forward.   --    and     Lead2 (led):   A heavy, comparatively soft, malleable, bluish-grey metal.   --    So what are these words called? And are there any others, beside the 4 I have mentioned?


How to get rid of foam on shaken cocktails

Here's a picture of a Jack Rose I made last night.  It tasted great, but I think the white foam is ugly.  I want it to be clear and jewel-like with no foam.  All my shaken drinks have this foam.  I have not observed similar foam on drinks I order in bars.  What are techniques for avoiding or getting rid of the foam?  Maybe I could scoop it off with a spoon, but I think I would lose too much of the drink that way, and anyway that's not what the bartender does, so I think there must be a better way.    [ The recipe I am using is: four parts homemade applejack; two parts lime juice, one part homemade grenadine, shaken with ice cubes in a metal shaker, then poured into a chilled glass.  The shaker has a perforated top, but I am not otherwise using a strainer. ]


Updating data from external table in real time using QGIS?

I have been trying for a long time to connect a external table data[csv] through Excel (for exmaple) with QGis with the objective to each time i change any data in table(for example data location - coordinates [X ; Y]),this changes occur in QGis real time.  Is there any procedure to get it?.


Change in rotation of a tank-like vehicle

I'm trying to simulate a tank-like/skid-steered vehicle, i.e. both of the wheels (one on each side) have separate velocities, and steering is done by increasing or decreasing the velocity of one of the sides.  For example, If I set the velocity of the left wheel to 5, and the right wheel to 3, it will turn right. What I'd like to know is, given the velocities of the wheels Vl and Vr, and the distance between the wheels D, by how many degrees will the direction the vehicle is pointing in change in one tick?  I've tried looking at , and the links on that question, but haven't come up with anything. All my best guesses have failed.


Is there a way to tell Visual Studio to show certain member values by default while in debug mode?

Certain .NET classes must have some kind of attribute set on either the class or individual members to tell it to show those members' values by default while hovering the mouse over an object in debug mode.  Here's an example:    Out of all the members in Type, only Name and FullName are shown while the object is fully collapsed.  I'd like to do the same for some of my own classes so that I can have an entity's ID and Name members shown by default.  Is there a way I can do this?  Note:  My question pertains to VS 2013, but it would be nice to know how to do this for earlier versions like 2010 or earlier for those using older versions.  I am also using C# 4.0 just in case the method to achieve what I am doing differs between languages and .NET frameworks.


Is the continuity of a vector field enough for the existence of the solution of a differential equation?

I've recently seen the existence-uniqueness theorem for ordinary differential equations from Arnold's book. I understand that the theorem as stated guarantees both existence and uniqueness if the corresponding vector field is continuously differentiable. I've also noticed that in most examples where unique solutions don't exist, the differentiability of the vector field is missing. My question is, will any weaker condition suffice to guarantee only the existence (and not necessarily the uniqueness) of an ODE? Is it for example true that if the vector field is just continuous, a solution exists even if not unique?  I went through , but this doesn't seem to answer my doubts completely.


cron running init.d reload and getting exit code of 2

I am having cron run a shell script which includes this line...  /etc/init.d/nginx reload   but it is giving me an exit code of 2...What can I do to reload nginx from cron successfully?


Is torque independent of choice of the point of rotation?

Is torque or moment of a couple independent of the choice of point of rotation?   Torque is given by $\tau =\vec r\times\vec F$. It depends on $\vec r$, which is the position vector from the axis of rotation to the point where force is applied.


Why Angular velocity is a vector quantity and why it got direction perpendicular to the plane

Because linear velocity is a vector  which I can agree as it's because of the direction of the displacement but in case of angular velocity it's angles covered in certain time but angles got no direction then how come it got any direction  P.S  I came to know it's something of a pseudo vector but didn't understand it so explain it in simple terms.Thanks


What are the most common techniqes for preventing overfitting?

How is this issue dealt with, in practice?


How to change snooze times in Gmail’s new (2018) web interface?

I know you can customize the snooze times by using the Inbox by Gmail app, but what is the way to do this directly in Gmail’s web interface?


Numbered list item 2 appears as 1 in my answer... what is causing it?

I have an answer on SO like this  1. step  Some text  2. step   Problem it looks like this        step         Some text         step      Why is it making 2 appear as 1?  Link   What am I doning wrong here?


Let $n$ be a positive integer which is not divisible by $2$ and $5. $ Prove that there is a multiple of $n$ consisting entirely of ones.   This problem possibly is a duplicate,  and I am using the android app in which I don't know how to find existing questions.   I think this can be solved by using Fermat's Little Theorem.   Any help will be appreciated


I have a valid US B1/B2 visa under my maiden name on a separate passport. I understand that I am allowed to travel for business purposes provided I carry both my passports and my original marriage certificate. My question is what name should my tickets be booked under? My legal (married name) or maiden name?


I have been working with factor and cluster analysis where I found the introduction of Eigenvalue. So, I read about it and I have understood the idea how to find it but still, I am unable to see the application or the meaning(in layman's term) of it. if I will teach this to someone than what should I say? is it the direction of the vector or the transformation of a matrix into vector form. I have read that google search engine use it to show the predicted words. I am not getting how do they do it?  Can somebody please help me into this.


Paraphrasing and quantity of added material in an extended article

If I have an article that was already accepted and presented in a conference, and I would like to present it as an extended article to a journal, I was wondering two things:   How much paraphrasing should I use in my journal article? How much "new" material should be added to the journal article?   I have found some articles in my field of Computer Science in which the quantity of added material from the original article was too scarce; and that the paraphrasing was also mostly nonexistent. It just looked like if they have added some parts only to make it to the journal. Or is it that in an extended article should I put what it was missing from the original one, i.e., limitations of space because of restrictions imposed by the conference regarding article's length.  By the way, I am considering the situation in which I submit to a journal not related to conference in which my article was previously submitted.


shooting night sky photos with nikon d3300

I want to shoot night sky photos.  I have a Nikon D3300 DSLR with 50mm f/1.8D lens. I have a tripod , and a timer cord.  Is my gear good enough to shoot night sky photos?  Is there anything more I need?


Novel, or series of novels, where people take turns living

I cannot remember much about this novel (series of novels?) but: The earth is overpopulated. Everyone has to go into suspended animation, and we all take turns living, I think one quarter of humanity for a day at a time. At the end of the 24 hours, that group goes back into the chambers, and the next group comes out. The groups' realities do not intersect and they experience completely separate lives in different societies.  As you can expect, some people decide to live continuously, in effect living two lives.  So, what's it called?


How can I install XFCE along side Unity?

I would like to be able to install XFCE to run alongside unity so I can choose, upon startup, which DE I use, without breaking any features of either DE.  Following this:      Note: don't install Nautilus in Xubuntu! This will cause system   conflicts.   I don't want to affect ANY of the features in Unity, i.e. I want to be able to use the two interchangeably, so I can't follow some suggestions of just cleaning out all the old stuff as that would mean using Unity would be changed.   Is this possible in 12.04?


Solve $w^2=−15+8i$, where $w$ is complex.   Normally, I would convert this into polar coordinates, but the problem is that is too slow.   What is another alternative?