Tuesday, 1 October 2013

Repairing CentOS files permission

Repairing CentOS files permission

I've screwed my CentOS 6 server. I've ran chmod on a few symlinks and
changed permissions important file such those in /bin and all commands
even clear says Permission Denied. Now It is unable to boot.
How do I restore permissions?

Find $f'(0)$ for $f(x)=?iso-8859-1?Q?=3D?=(2x+1)^3(3x+3)^2$. – math.stackexchange.com

Find $f'(0)$ for $f(x)=(2x+1)^3(3x+3)^2$. – math.stackexchange.com

Find $f'(0)$ for $f(x)=(2x+1)^3(3x+3)^2$. Do I use the chain rule for each
or do I use the derivative product rule first Please Help!!!

Monday, 30 September 2013

is my working correct? Vector equations and planes.

is my working correct? Vector equations and planes.

Is my working correct with regards to the following question? Any feedback
is appreciated.
Question: Find a vector equation for the plane that passes through the
points $A(1, 1,a),B(2, 0,−1)$ and $C(−2, 1,−1)$. If a
has the value $−1$, what can you say about the plane?
Is my working correct?
Vector $BA = <-1 , 1, 1+a>$ and vector $CA=<3, 0, 1+a>$
A normal vector to the plane $ABC$ is the vector product
$$n=BA x CA =<1+a, 4(1+a), - 3> $$
A vector equation for the plane is
$$r.n = (2,0,-1).(1+a, 4(1+a), -3) =5+2a$$
If $a=-1$ the plane has equation $r.(0,0,-3) = 3$
which has Cartesian equation $z=-1$ and this is a plane parallel to the
$x-y$ plane.

Derivatives and tangent to the line of a curve

Derivatives and tangent to the line of a curve

Find the equations of all tangent lines to the curve y=x/(x+1) that
intersect the point (1,2). Note that the point (1,2) does not lie on the
curve. Please simplify your final answer as much as possible.
This is what I have done so far. I don't know if it is correct.
1/(x+1)= -x-2/(x-1) [cross-multiplied] to get, x-1=-x^2 -3x -2
I made it equal to zero to get a quadratic equation of x^2 + 4x + 1 = 0 to
solve for x I got x = -2 +- root 3
I dont know what to do next.

php preg_match_all get string between two same element

php preg_match_all get string between two same element

please, i want to get every string between two same element (only strong,
not between strong and /strong).
Example string:
<strong>NAME1</strong><br />Some text, some text<br />
<strong>NAME2</strong><br />Some text2, some text2<br />
<strong>NAME3</strong><br />Some text3, some text3<br />
I try this one:
preg_match_all("'<strong>(.*?)<strong>'si", $text, $match);
but result is:
<strong>NAME1</strong><br />Some text, some text<br /><strong>
<strong>NAME3</strong><br />Some text3, some text3<br />
,,NAME2" with ,,some text2" missing, why?
Thank's a lot, Regards, Lukas

center bootstraps nav items

center bootstraps nav items

I add a new class to ul and try to style it with margin: 0 auto and
text-align: center but doesn't work..
<section class="navbar navbar-default">
<ul class="nav navbar-nav">
<li class="active"><a href="index.php">Home</a></li>
<li><a href="venue.php">Venue</a></li>
<li><a href="schedule.php">Schedule</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle"
data-toggle="dropdown">Artists <span
class="caret"></span></a>
<ul class="dropdown-menu" role="menu"
aria-labelledby="dropdownMenu">
<li><a href="artists.php" tabindex="-1">All
Artists</a></li>
<li class="divider"></li>
<li><a href="#" tabindex="-1">1st</a></li>
<li><a href="#" tabindex="-1">2nd</a></li>
<li><a href="#" tabindex="-1">3rd</a></li>
</ul>
</li>
<li><a href="Register.php">Register</a></li>
</ul>
</section>

Sunday, 29 September 2013

jQuery Waypoint: FadeIn - FadeOut effect on scroll

jQuery Waypoint: FadeIn - FadeOut effect on scroll

I'm trying to create a fadeIn and fadeOut effect with elements on scroll.
I'm told this can be done with WayPoint. I've tried a variety of things,
but nothing seems to work, no fade in, no fade out, and no errors in the
console. Here is what I'm currently using:
<script type='text/javascript'>
$(window).load(function(){
$("#top-section").waypoint(function(){
$(this).fadeIn('slow');
},{
offset: 'bottom-in-view'
});
$(this).fadeOut('slow');
},{
offset: 'top-in-view'
});
});
</script>