Equivalent of C++ cin.tie() for C stdio?
Rerouting stdin and stdout from C
How can a regression be significant yet all predictors be non-significant? My multiple regression analysis model has a statistically significant F value however all beta values are statistically non-significant.   All the regression assumptions are met. No multicollinearity was found. Correlations among all predictors are all less than 0.60.   What else might be the cause of the insignificant predictors? Schengen Visa Refusal: Justification for the purpose and conditions of the intended stay was not provided When I finished Normal Mode at around Level 30 and went back to the  (still at Normal mode), I found that all enemies there are now very easy to kill, meaning they didn't level up (or hit a level cap).  When I went to  as a Level 36 character in True Vault Hunter Mode, I noticed that the enemies are the same level as me.  What factors determine enemy levels?   Specifically, I would like to know:       Are enemies affected by what level a character accepted a mission?      Or is it what level a character is when they first entered an area?      How does Normal Mode, True Vault Hunter mode, and the Ultimate True Vault Hunter Mode affect enemy levels?     Are there enemies that will scale to the player level, as the player levels up? Any enemy leveling differences specific to the DLC areas?         EDIT:   There is now  that explains how this works generally: "In playthrough 1, outside of the DLC, there's no such thing as scaling. Enemy levels are determined solely by the area they're in and your mission." Can anyone expound on that, and comment or provide an answer on what are the specific enemy levels on specific areas and/or missions?    states that "enemies do not actually "scale", or at least from what we know of..." and lists specifics for enemy levels on certain areas in the game (sans DLC areas). Can anyone expound on that and/or add specifics for enemy levels in the DLC missions or areas in TVHM (PT 2.0) and/or UTVHM? The  update has just been released, can anyone provide info about enemy levels on that mode, including the DLC areas or missions? How many integers between $1$ and $10^4$ contain exactly one $8$ and one $9$? I have this problem: How many integers between $1$ and $10^4$ contain exactly one $8$ and one $9$?, but i dont know if $18, 19, 28, 29...$ serve, else it could be $8$ y $9 = 2$ numbers, help please. How do I set Windows to boot as the default in the boot loader? How do I set the bootloader so that in my dualboot with Windows 7/Ubuntu 11.04, Windows start up as standard instead of Ubuntu? i have a table like this  +--------+------------+-----------+ | id     | volume     | price     | +--------+------------+-----------+ |      1 | 1.0000     |  14250.00 | |      2 | 0.2500     |  14251.10 | |      3 | 0.2500     |  14250.00 | |      4 | 0.0050     |  14200.00 | |      5 | 0.5000     |  14255.01 | +--------+------------+-----------+   Simply if volume 1.7500, how to select like bellow by ordering(highest price)  +--------+------------+-----------+ | id     | volume     | price     | +--------+------------+-----------+ |      5 | 0.5000     |  14255.01 | |      2 | 0.2500     |  14251.10 | |      1 | 1.0000     |  14250.00 | +--------+------------+-----------+   And if volume 1.5000 it also select the least amounts of records needed to calculate to the input volume  +--------+------------+-----------+ | id     | volume     | price     | +--------+------------+-----------+ |      5 | 0.5000     |  14255.01 | |      1 | 1.0000     |  14250.00 | +--------+------------+-----------+   some guys say i cant do this with sql Can I just fit a cassette with more gears with the same derailleur? I've got a Boardman Road Sport which I use for commuting and doing reasonable length rides during the week etc. I have Shimano Claris as my rear derailleur and so is some of my groupset. I would like to upgrade my cassette to an either 9 or 10 speed to give me a greater variety of gears. To do this do I need to change my rear derailleur from 8 speed to Shimano 105 or something similar? Or can I just change my cassette? Do I also need to change my shifters as well? Touchpad not recognized on Asus N550JK - TP500L (FocalTech) I'm installing a new laptop and the touchpad is not fully recognized. Specifically, two finger scrolling does not work.  extract from /proc/bus/input/devices  I: Bus=0011 Vendor=0002 Product=0001 Version=0000 N: Name="PS/2 FocalTech FocalTech Touchpad in mouse emulation mode" P: Phys=isa0060/serio1/input0 S: Sysfs=/devices/platform/i8042/serio1/input/input5 U: Uniq= H: Handlers=mouse0 event4 B: PROP=1 B: EV=7 B: KEY=30000 0 0 0 0 B: REL=3   Also, xinput list gives me:  ⎡ Virtual core pointer  id=2    [master pointer  (3)] ⎜   ↳ Virtual core XTEST pointer id=4   [slave  pointer  (2)] ⎜   ↳ ELAN Touchscreen id=10    [slave  pointer  (2)] ⎜   ↳ PS/2 FocalTech FocalTech Touchpad in mouse emulation mode id=14   [slave pointer  (2)] ⎣ Virtual core keyboard                     id=3    [master keyboard (2)]     ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]     ↳ Power Button                              id=6    [slave  keyboard (3)]     ↳ Video Bus                                 id=7    [slave  keyboard (3)]     ↳ Video Bus                                 id=8    [slave  keyboard (3)]     ↳ Sleep Button                              id=9    [slave  keyboard (3)]     ↳ USB2.0 HD UVC WebCam                      id=11   [slave  keyboard (3)]     ↳ Asus WMI hotkeys                          id=12   [slave  keyboard (3)]     ↳ AT Translated Set 2 keyboard              id=13   [slave  keyboard (3)]   And finally, synclient tells me there is no synaptics driver active:     Couldn't find synaptics properties. No synaptics driver loaded?   So, it seems the touchpad is not recognized as a synaptics touchpad. It works, but not the synaptics specific parts.  It's in mouse emulation mode (no idea what it means). And it works together with other pointing devices, especially the touchscreen (I can confirm this works).  I have tried adding i8042.nomux=1 to the kernel parameters, but it didn't change anything... Any hint ? I have the following data structure (a list of lists)  [  ['4', '21', '1', '14', '2008-10-24 15:42:58'],   ['3', '22', '4', '2somename', '2008-10-24 15:22:03'],   ['5', '21', '3', '19', '2008-10-24 15:45:45'],   ['6', '21', '1', '1somename', '2008-10-24 15:45:49'],   ['7', '22', '3', '2somename', '2008-10-24 15:45:51'] ]   I would like to be able to   Use a function to reorder the list so that I can group by each item in the list. For example I'd like to be able to group by the second column (so that all the 21's are together)  Use a function to only display certain values from each inner list. For example i'd like to reduce this list to only contain the 4th field value of '2somename'    so the list would look like this   [      ['3', '22', '4', '2somename', '2008-10-24 15:22:03'],       ['7', '22', '3', '2somename', '2008-10-24 15:45:51'] ] Is there offside when the ball deflects off an opponent? I was refereeing a 10 year old's junior game today and this situation happened. The home team's defender attempted to  pass from their own half to their forward who was in an offside position beyond the halfway line.  I was going to blow the whistle but the ball deflected off an away defender and then went to the originally offside attacker who put the ball wide.  I viewed this as onside at the time because the ball struck the away team player, however now I think it was offside because at the time of pass, the home player was offside.  Is this offside or not? Get lists of dependent picklist options in Apex Bash history search, partial + up-arrow I have searched, but not found anything on this. I am looking for a functionality in bash, using a terminal.  Way back when, I had a user on a debian system, and a friend set me up with a convenient history search feature (I believe I used tcsh then), where I would type the beginning of a previous command, hit up-arrow, and it would do a search, based on the partial string.  E.g. if my history is:  ./script.pl ./script.pl arg1 cat output cat output | grep yada   And I type ., and press up-arrow, it would show me: ./script.pl arg1. Press it again and it would show ./script.pl, etc.  Very much like it would perform a grep on .bash_history. Is there a way to get this functionality? First, I'd like to apologize for the awkwardly-phrased title.   Instead of trying to explain the structure I'm thinking of, I'd like to give some context and then an example or two. I've used and seen this construction used conversationally, and if my memory and intuition serve, conversationally only. I'm curious to know if there is a formal term for it.  Ex 1  "If you don't like what I'm offering, the door is that way."  A purely logical interpretation would make little sense with this example. In this context, the inference is that the speaker is indicating to whomever he is speaking that they should leave, which suggests that there might be an elision, e.g.  "If you don't like what I'm offering, ... [then you may leave. T]...he door is that way."  Ex 2  "If you're hungry, I have food."  This is a similar context. The implication is that the speaker will offer food to whom she is speaking if they are hungry. A (strictly) logical interpretation would, again, make little sense (if you are hungry, then I have food doesn't convey any intent to provide it, nor does it make sense; the speaker always has food, she just will offer it if her guest is hungry).  I recognize that this might be too specific to have a term associated with it. I'm just curious to know what it is if it does exist. Screen brightness isn't taking effect on a Lenovo Z570 My Lenovo Z570 has two GPU's, nVidia and Intell. Brightness control has no effect what so ever over the screen brightness, and because I've had some major issues in the past when I was trying to fiddle with nVidia drivers and settings, and I wanna be cautious now. I haven't find similar questions referring 14.04 LTS with similar configuration as mine.   I've read that it could be fixed by adding/changing content in xorg.conf but when I run  sudo gedit /etc/X11/xorg.conf   the file comes out to be absolutely empty. What do I need to do, what do I need to add to it and not get my laptop screwed with a black screen again? Lazy evaluation in C++ C++ does not have native support for lazy evaluation (as Haskell does).  I'm wondering if it is possible to implement lazy evaluation in C++ in a reasonable manner. If yes, how would you do it?  EDIT: I like Konrad Rudolph's answer.  I'm wondering if it's possible to implement it in a more generic fashion, for example by using a parametrized class lazy that essentially works for T the way matrix_add works for matrix.  Any operation on T would return lazy instead. The only problem is to store the arguments and operation code inside lazy itself. Can anyone see how to improve this? What pressure should I run my Road Bike tyres at? There's a question for mountain bike tyres but I can't seem to find anything on here for road bikes. At the moment I'm running at around 90psi. Is that too much? too little?  Also, am I more likely to get punctures running at higher pressure?  I seem to be getting a lot lately. Why can't I cd to a quoted tilde ('~')? Writing my first script so I'm sure this is a basic question, but can someone please explain to me why I can:  cd ~ cd bin cd ~/bin cd 'bin'   But not  cd '~' cd '~/bin'   I need to cd to a directory path with a space in one of the directory names, so I need the quotes (it's Windows Program Files under wine). I can get around it with two cd commands, but why can't I put ~ in quotes?  If I type cd '~' (or cd "~") I get:  bash: cd: ~: No such file or directory Fastest way to convert string to integer in PHP Gamma Distribution out of sum of exponential random variables I have a sequence $T_1,T_2,\ldots$ of independent exponential random variables with paramter $\lambda$. I take the sum $S=\sum_{i=1}^n T_i$ and now I would like to calculate the probability density function.  Well, I know that $P(T_i&gt;t)=e^{-\lambda t}$ and therefore $f_{T_i}(t)=\lambda e^{-\lambda t}$ so I need to find $P(T_1+\cdots+T_n&gt;t)$ and take the derivative. But I cannot expand the probability term, you have any ideas? A set with a finite integral of measure zero? Prove, or give a counter example: Let $\mu$ be a finite positive borel measure on $\mathbb{R}$. Then $\int (x-y)^{-2} d \mu (y) = \infty $ almost everywhere on $\mu$ (for the selection of x's).  This is a question I had in an exam, and the answer is supposed to be presented in less than 30 words, so there must be something quite simple I'm missing.