I am using an early 2011 MacBook Pro with the Mavericks OS. I've researched a similar issue on an  but As far as I know, being in Single User mode won't help my situation.   One of my external drives with all my photos stopped working - it does not mount, even though I see it in Disk Utility. Using DU I tried to verify and repair the disk and got this message:  'Invalid B-tree node size'  Following the advice in this :  I tried to list my drives with the Terminal command  df -hl  The specificied disk was not in the list When I tried the suggested tail command  tail -f /var/log/fsck_hfs.log  I saw the name of the disk as   /dev/rdisk3s2: ** The volume   could not be verified completely.   Following that, I used this command (also suggested in the above link)  sudo fsck_hfs -r -d /dev/disk3s2  Instead of the expected proper outcome, what I received was an error message in Terminal as below:  inancs-MacBook-Pro:~ INCA$ sudo fsck_hfs -r -d /dev/disk3s2 Password: journal_replay(/dev/disk3s2) returned 0 ** /dev/rdisk3s2     Using cacheBlockSize=32K cacheTotalBlock=65536 cacheSize=2097152K.    Executing fsck_hfs (version hfs-226.1.1). ** Checking Journaled HFS Plus volume.    Invalid B-tree node size (3, 0) ** The volume   could not be verified completely.     volume check failed with error 7      volume type is pure HFS+      primary MDB is at block 0 0x00      alternate MDB is at block 0 0x00      primary VHB is at block 2 0x02      alternate VHB is at block 1464477326 0x574a268e      sector size = 512 0x200      VolumeObject flags = 0x07      total sectors for volume = 1464477328 0x574a2690      total sectors for embedded volume = 0 0x00      CheckHFS returned -1317, fsmodified = 0   What are my options? I have Data Rescue but not Disk Warrior (low on budget these days). Is there a possibility to fix the drive?  If not, and if I can rescue my data and put it on a different disk, is it safe to format the current drive and re-add my photos or should i stay away from this disk?
Earlier today my 2009 iMac emitted I/O errors trying to copy files. So I ran disk utility, verify disk to see if anything was amiss. It was. But as it's my startup disk I couldn't repair it, so I tried safe mode. Safe mode worked the very first time, but when I rebooted it shows the progress bar filling up, before halting. Every time I turn it on now, the same progress bar then crash happens. Booting in verbose mode reveals fsck is failing with signal 8.  Using single-user mode, as that's as far as I'm aware the only way I can get any access to the system, I've been running fsck_hfs. However, it always fails. Below is the output from fsck_hfs -d /dev/disk0s2.  ** /dev/rdisk0s2         Using cacheBlockSize=32K cacheTotalBlock=65536 cacheSize=2097152K. ** Root file system    Executing fsck_hfs (version diskdev_cmds-491.6~3). ** Verifying volume when it is mounted with write access. ** Checking Journaled HFT Plus volume. ** Checking extents overflow file. ** Checking catalog file.    Missing thread record (id = 9931104)    Missing thread record (id = 16434146)    Missing thread record (id = 19370458) disk0s2: I/O error hfs_swap_BTNode: offsets 10 and 11 out of order (0x0000, 0x0000)    Invalid node structure (4, 115897) ** The volume Macintosh HD could not be verified completely.         volume check failed with error 7         volume type is pure HFS+         primary MDB is at block 0 0x00         alternate MDB is at block 0 0x00         primary VHB is at block 2 0x02         alternate VHB is at block 1952491198 0x74622d5e         sector size = 512 0x200         VolumeObject flags = 0x07         total sectors for volume = 1952591200 0x74622d60         total sectors for embedded volume = 0 0x00   I absolutely need to be able to boot to use it as an external monitor.
I ajaxly call a route and pass data to it, In my controller, I want to get $_POST['var'] , $_POST['var2'], it seems because of using HttpFoundation in drupal 8, $_POST and $_GET are not exists in old method, How I can access $_POST parameters in custom Controller? Force a browser to load the 'https' edition of a website, not the 'http'? Why linear and logistic regression coefficients cannot be estimated using same method? I read in a machine learning book that parameters of linear regression can be estimated (among other methods) by gradient descent, while parameters of logistic regression are usually estimated by maximum likelihood estimation.  Is it possible to explain to a novice (me) why we need different methods for linear/logistic regression. a.k.a why not MLE for linear regression and why not gradient descent for logistic regression? I have recently created a logo. I have seen an online trend of showing off a logo in a realistic environment, illustrating possible use cases of the logo.  An example of this can be seen here, with the original logo at the bottom and a 3D mockup at the top:    How can I create such a mockup? I would like to search my table having a column of first names and a column of last names.  I currently accept a search term from a field and compare it against both columns, one at a time with       select * from table where first_name like '%$search_term%' or      last_name like '%$search_term%';   This works fine with single word search terms but the result set includes everyone with the name "Larry". But if someone enters a first name then a space, then a last name, I want a narrower search result. I've tried the following without success.         select * from table where first_name like '%$search_term%' or last_name      like '%$search_term%' or concat_ws(' ',first_name,last_name)      like '%$search_term%';   Any advice?  EDIT:  The name I'm testing with is "Larry Smith".  The db stores "Larry" in the "first_name" column, and "Smith" in the "last_name" column.  The data is clean, no extra spaces and the search term is trimmed left and right.  EDIT 2:  I tried Robert Gamble's answer out this morning.  His is very similar to what I was running last night.  I can't explain it, but this morning it works.  The only difference I can think of is that last night I ran the concat function as the third "or" segment of my search query (after looking through first_name and last_name). This morning I ran it as the last segment after looking through the above as well as addresses and business names.    Does running a mysql function at the end of a query work better than in the middle? Database Design Best Practices Evaluate $\int \cos(3x) \sin(2x) \, dx$. Evaluate the indefinite integral    \begin{align} \int \cos(3x) \sin(2x) \, dx \end{align}   Please see my work attempt as my answer below. What is the smallest viable reproducing population, such as in a human population. By viable I mean a population which keeps genetic defects low (enough).  A very strongly related question: what is the expected number of generations a given population can survive? Font corruption: lines through characters I have a problem where a one-pixel high white line is displayed through certain letters of text. Almost always only a single character type is affected at once, and only in one font size (though that size can change over time). Most of the time things are fine, but this happens several times a day. It happens frequently in Firefox, but system dialogs, menus, etc. can also be affected. It's been happening ever since I upgraded to 10.10. Only restarting seems to fix it.  Two examples (in the first, only the larger "r" is corrupted):     Any help would be appreciated, thanks.  Edit: I've since noticed that I can (sometimes) make the fonts appear correctly by zooming in/out all the way and returning to the default in Firefox (one or two steps, then going back, does nothing) seems to make the problem go away temporarily.  Edit 2: I figure it's worth noting that the solution below doesn't fully work for me any longer (I'm now using Ubuntu 11.10). It does significantly reduce the frequency of this problem occurring.  Edit 3: Still around in 12.04. The fix provided by Vanni works perfectly now for me, but apparently doesn't for some.  Edit 4: This seems to be an xorg problem, with Vanni's answer fixing it for many Intel video cards. I've had this occasionally happen with AMD graphics cards in 13.10 and 14.04, but very rarely (only two or three times). Identify a catastrophic sci fi story written before 1980: ruptured spleen, alien moon base, time and space travel, antimatter tool I read a sci fi short story sometime between 1974-1980 but it may have been written long before that.  I believe it was in a paper back anthology of sci fi stories, but I'm not certain.  I think the protagonist is facing the final climactic conflict when we meet him.  Most of the story is memories and flashbacks.  The first flashback is to his childhood.  He and his younger brother are sled riding.  His brother crashes, ruptures his spleen and dies.  He feels responsible and is wracked with guilt.  Much later, as an adult, he is exploring a long-deserted alien base on the moon.  There are unfamiliar artifacts on the base, including a time-travel device/vehicle, and a tool with an anti-matter tip.  It carves neat holes and eliminates matter simply by moving it through matter.  He accidentally drops the tool, which plummets unimpeded to the center of the moon.  He realizes that over time, it will consume and destroy the moon, which will be catastrophic for Earth.  He uses the time-travel device to travel to the moon at an earlier time so that he can prevent himself from dropping the tool.  He makes bigger problems for himself, forcing him to travel back further and further in time.  He travels so far back that he encounters the original alien inhabitants of the base.  Now we are at the present time in the story.  This is his final conflict, he has to escape, travel forward in time and resolve all of the problems he created.  Unfortunately, the alien inhabitants capture him, and the story ends.  Can anyone identify the story and author? Book series where they collect either stones or gems I'm looking for a fantasy book I read about 10 years ago. I don't remember a lot of it, but there are a few things I still know:   The setting was in medieval times. There was no traveling dimensions. I can't recall whether there was magic or not. It wasn't on Earth, but on some invented world. I believe it was a trilogy, with a focus on the son of some nobility. The goal for the characters was to collect a certain number of stones or gems (I believe there were 5 of them), all in certain colours. Every stone has a certain power attached to it. I believe it started out with one or two characters, but the group grew and every character had a certain colour stone at the end. What is important about the gems is that they are unique. It's not part of a bigger magic system, but they are artefacts from somewhere.   There are some minor incidents I can recall vividly:   They build up a fellowship with some stereotypical fantasy builds: an old school fighter, a minstrel, a female archer and probably more. At one point, they mention that if one of the guards in a country falls asleep on duty, he will be kept awake by his garrison/brothers in arms for seven days. At some point the minstrel falls asleep, and the old fighter teaches him how to stay awake. They travel through a forest full of leeches and other insects to reach one of the stones. Also, I seem to recall there was a member of an underground evil organisation among the nobility, who tried to poison someone and were able to do that because they built up an immunity to the poison.   Does anyone has a clue what this series might be?   Suggestions by kind people, but not what I'm looking for, are:   The Seventh Tower Deltora Quest Diadem Westria Sword of Heavens series Apply for a Korean visa in Japan I'm a Vietnamese citizen and currently living in Japan. Can I apply for a South Korea tourist visa at the Korean embassy in Japan, or must I do it at the Korean embassy back in Vietnam? Why is logistic regression a linear classifier? Since we are using the logistic function to transform a linear combination of the input into a non-linear output, how can logistic regression be considered a linear classifier?  Linear regression is just like a neural network without the hidden layer, so why are neural networks considered non-linear classifiers and logistic regression is linear? I want to know which sentence is correct. If i say     Guess, what it is?   or     Guess, what is it?   which one is correct? Let $ \sigma(A)$ be the set of all eigenvalues of $A$. Show that $ \sigma(A) = \sigma\left(A^T\right)$ where $A^T$ is the transpose matrix of $A$. I'm currently working on the following problem for my computer theory class. It goes as follows:     Let $A$ and $B$ be regular expressions. Show then that $A^*B$ is the solution   of $X = AX + B$   Am I supposed to let $X = A^*B$? If so then   $A^*B = A(A^*B) + B$  I can understand that  $A(A^*B)$ could be reduced to $A^*B$ but what happens with the "${}+ B$" part of the expression? I've read up on Kleene algebra and found an axiom that seems relevant in which      $b + ax ≤ x → a^∗b ≤ x$   but I'm not actually sure if it applies. So I have a torus, and I need it to "telescope" open -- kind of like Pacman's death animation, but with a torus instead of a sphere.  I'm very new to 3D modeling/animating so I really have no clue how to tackle this problem.  Any advice to help me get pointed in the right direction would be most appreciated :) Why are my render times 30+ minutes, but other people's are ~3 minutes? Irreducibility check for polynomials not satisfying Eisenstein Criterion. I'm trying to identify a book I read in school, though I can't recall at what grade level; let's say it had to have been published before I graduated high school in 2000. Despite being required reading, it didn't feel much like a classic.  The story took place on Earth, after some catastrophe had caused the air to become poisonous. However, one teenage girl was able to survive because her house was in a valley which was somehow protected from the poisonous winds and was able to sustain its own ecosystem. One day, a man wearing a protective full-body suit and gas mask appears in the valley, and both are rather surprised to find someone else alive. She feeds and shelters the man and shows him how she had come to survive in the valley. Rather abruptly…      the man attempts to rape her, but she overpowers him somehow. She steals his protective suit and starts to leave the valley. He tells her that he had seen birds in a certain direction away from the valley, indicating there might be life there as well, and she leaves.   I believe there was an author's note either at the beginning or end of the book stating that the author had actually died while writing the manuscript, and that their friends or family had finished the book by going off the author's original notes, which I suppose may explain the abruptness of the ending.  In case it wasn't clear from the above, I didn't really like the book. But I'm curious about it regardless.