Random Posts

This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Sunday, 30 August 2015

Downloading and Redirecting From the Same Link

Yesterday, I was asked if it would be easy to make a script that starts a download and then redirects the browser to a different web page.
What I came up with is in two parts: An HTML <meta...> page refresh tag to do the download. And JavaScript to do the redirect.
To implement, simply link to a web page of this type:
<html>
<head>

<meta 
   http-equiv="refresh" 
   content="2; URL=/test.zip">
<!-- 
The number of seconds can be changed to any integer, 
     including zero, by changing the number between 
     the quotation mark and the semi-colon following 
     content=
The URL can be changed to any URL that initiates the 
     downloading process.
-->

</head>
<body>

<p>
Two seconds after the page finishes loading, 
http://www.willmaster.com/test.zip will begin downloading. 
(This is done with the <meta...> tag in the head 
area. See notes in the source code about changing URL 
and timing.)
</p>
<p>
Nine seconds after the page finishes loading, the page 
will redirect to http://www.willmaster.com/ � the 
download may or may not be finished by the time the page 
is redirected. (This is done with the JavaScript located 
below this point in the source code, although it could 
be located pretty much anywhere. See notes in the source 
code about changing URL and timing.)
</p>


<script type="text/javascript" language="JavaScript"><!--

function Redirect() {
// The URL between the quotation marks may be changed.
window.location = "http://www.willmaster.com/";
}

// The timing may be changed by changing the number in the 
//   setTimeout function call parameters. The number represents 
//   thousandths of a second. Therefore, 9000 is 9 seconds.
window.onload = function() { setTimeout("Redirect()",9000); }

//--></script>

</body>
</html>

The above is an entire web page that can be loaded into a browser as is.
Once the above example web page is completely loaded, it waits 2 seconds then initiates a file download. This is caused by the HTML <meta...> page refresh tag in the head area of the web page.
At 9 seconds after the example web page is completely loaded (7 seconds after the download kicks in), the browser window is redirected to another URL. This is caused by some JavaScript.
If the page refresh URL is a 404 or causes a web page or other file to load into the browser window, rather than an automatic download to begin, then the JavaScript redirect won't happen at all.
The page refresh download URL should be to an automatically downloadable file only. That would be a file with an extension like .zip or .exe. If unsure. test. Don't specify files with extension .pdf — some browsers automatically download .pdf files, but others load the PDF document into the current browser window.
The example web page contains some instructions.
Note that the download might or might not be finished by the time the redirect occurs. If not, the download continues even thought the browser window loads a page at a different URL.
The URLs and timing can be changed. See the notes in the example web page.
The download must be initiated before the web page is redirected. The redirection should occur one or more seconds after the download is initiated.
If the redirect happens before the download is initiated, the download won't happen.
Will Bontrager

Auto-resize Iframe when Content Size Changes

Auto-resize Iframe when Content Size Changes

An iframe is a section of a web page where the content of another web page can be published. It's done with an HTML iframe tag.
This article describes how to resize the height of an iframe automatically — whenever the content of the web page being published within the iframe changes. (Resizing the width can be accomplished by substituting each word "height" with "width", maintaining the letter case.)
Of course, it's fairly simple to adjust the height of an iframe when the content first loads. (I'll show you how to do that, too.) But if the content in the iframe changes, the iframe size may need to be adjusted further.
A common use of an iframe is to present a form, so a page reload is unnecessary when the form submits. After the form is submitted, a thank-you page is displayed within the iframe.
The thank-you page generally is a different size, however, and either puts scrollbars into the iframe or leaves a large blank area within the iframe.
Therefore, the iframe size needs to be adjusted.
(There are other reasons that content changes within an iframe. The same principle described in this article can be used for other implementations.)
A caveat: The URL of the page being published within the iframe must be on the same domain as the web page with the iframe tag. Otherwise, the web page with the iframe tag won't be able to determine the size of the content within the iframe. It's subject to the built-in same-origin security restriction.
Here's an example iframe that resizes for the thank-you page after the form button is clicked:
Before describing how to implement the iframe auto-resize for your site, here's the code for the above example. There are 3 files.
File 1: The web page containing the iframe tag needs to contain this code:
<div style="border:2px solid #666; border-radius:11px; padding:20px;">

<iframe id="form-iframe" src="iframe1form.html" style="margin:0; width:100%; height:150px; border:none; overflow:hidden;" scrolling="no" onload="AdjustIframeHeightOnLoad()"></iframe>

<script type="text/javascript">
function AdjustIframeHeightOnLoad() { document.getElementById("form-iframe").style.height = document.getElementById("form-iframe").contentWindow.document.body.scrollHeight + "px"; }
function AdjustIframeHeight(i) { document.getElementById("form-iframe").style.height = parseInt(i) + "px"; }
</script>

</div>

The purpose of the div tag is merely to provide a border with rounded corners for the iframe. At least some browsers don't implement iframe borders with as much versatility as a div tag.
File 2: The web page (iframe1form.html) containing the form:
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>iFrame Resizing Test</title>
</head>
<body style="margin-top:0; text-align:center;">

<h1 style="margin-top:0;">
iFrame Resizing Test
</h1>

<p>
When the form button is clicked, the thank-you page loads.
</p>
<form method="post" action="iframe1th.html">
<input type="submit" value="Click">
</form>

</body>
</html>

File 3: The web page (iframe1th.html) that is the thank-you page:
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>iFrame Test Thank-you Page</title>
</head>
<body style="margin-top:0;">

<div id="page-container">

<h1 style="margin-top:0; text-align:center; letter-spacing:1px;">
Thank You!
</h1>

</div>

<script type="text/javascript">
parent.AdjustIframeHeight(document.getElementById("page-container").scrollHeight);
</script>

</body>
</html>

Put all three files into the same directory on your server. Type the URL of file 1 into your browser. You should see the same functionality as the above example, iFrame Resizing Test.
Here's an overview of how it works:
  1. When the web page with the iframe tag loads, file iframe1form.html (the page with the form) is loaded into the iframe tag.
  2. When the button in file iframe1form.html is clicked, file iframe1th.html (the thank-you page) is loaded into the iframe tag, replacing the page with the form.
  3. When file thank-you page loads into the iframe, it tells the web page with the iframe tag how tall the iframe shall be to contain all of the thank-you page's content.
Now, let's talk about implementing a similar system on your website.

Implementing an Auto-resizing Iframe with a Form

Let's get the pages ready last to first — the thank-you page, the form page, then the page with the iframe tag. The reason for doing them in backward order is so the location of a file is known before it needs to be specified.

A. The Thank-you Page

  1. Remove the top margin from the web page.
    For the JavaScript to calculate the height required for the iframe, the top margin of the web page needs to be zero. In the above example code, you'll see the body tag has margin-top:0; inline CSS. Alternatively, removing the top margin from the body tag can be done in a style sheet.
    Only the top margin is required to be removed. But all margins can be removed safely.
    If a top margin remained in place, the iframe's height calculation would be off by the amount of the margin at least in some browsers.
  2. Remove the top margin of the first line of content.
    Similar to the top margin of the page, any top margin in the first line of content will cause the iframe's height calculation by the amount of the margin. A style="margin-top:0;" inline CSS attribute should do the trick. See the h1 tags of the example files.
  3. Put the thank-you page content into a div.
    Example div tag (must have an id value):
    <div id="page-container">
    
    
    The reason for the div tag is for the JavaScript (next item on the list) to be able to calculate the height of the content. So, put the div tag as the first line below the body tag and the closing </div> tag immediately above the closing </body> tag.
  4. Put JavaScript at the bottom of the body content.
    Immediately below the closing </div> tag (see previous step), insert this JavaScript:
    <script type="text/javascript">
    parent.AdjustIframeHeight(document.getElementById("page-container").scrollHeight);
    </script>
    
    
    If the id value of the div (previous list item) isn't "page-container", then "page-container" in the JavaScript needs to be changed accordingly.
    The JavaScript runs immediately after the div is loaded. When it runs, it reports the div's content height to JavaScript located on the web page with the iframe tag — which then adjusts the iframe height.
  5. Upload the thank-you page to your server and make a note of its URL.

B. The Page with the Form

(The first two items on this list are identical to the first two item on the thank-you page list.)
  1. Remove the top margin from the web page.
    For the JavaScript to calculate the height required for the iframe, the top margin of the web page needs to be zero. In the above example code, you'll see the body tag has margin-top:0; inline CSS. Alternatively, removing the top margin from the body tag can be done in a style sheet.
    Only the top margin is required to be removed. But all margins can be removed safely.
    If a top margin remained in place, the iframe's height calculation would be off by the amount of the margin at least in some browsers.
  2. Remove the top margin of the first line of content.
    Similar to the top margin of the page, any top margin in the first line of content will cause the iframe's height calculation by the amount of the margin. A style="margin-top:0;" inline CSS attribute should do the trick. See the h1 tags of the example files.
  3. Specify the URL of the thank-you page as the value for the form's action attribute.
    The thank-you page was uploaded to the server in step A.
  4. Upload the page with the form to your server and make a note of its URL.

C. The Web Page with the Iframe Tag

  1. Insert the iframe tag into the web page.
    Here's an example:
    <iframe id="form-iframe" src="iframe1form.html" style="margin:0; width:100%; height:150px; border:none; overflow:hidden;" scrolling="no" onload="AdjustIframeHeightOnLoad()"></iframe>
    
    
    Change the value of the src attribute to the URL of the page with the form uploaded to the server in step B.
    Both the id and onload attributes are required. The style may be changed as appropriate for your implementation.
    The id value is used in the JavaScript (next list item) and onload attributes runs the JavaScript to adjust the iframe height as soon as the iframe finishes loading.
  2. Insert JavaScript below the iframe.
    Put this JavaScript somewhere below the iframe. It may be down at the end of the page and/or imported from an external file.
    <script type="text/javascript">
    function AdjustIframeHeightOnLoad() { document.getElementById("form-iframe").style.height = document.getElementById("form-iframe").contentWindow.document.body.scrollHeight + "px"; }
    function AdjustIframeHeight(i) { document.getElementById("form-iframe").style.height = parseInt(i) + "px"; }
    </script>
    
    
    The id value of the iframe tag in the previous list item is specified in the JavaScript in three places. If the id value "form-iframe" of the iframe is changed, all three places in the JavaScript must be changed accordingly.
    The function AdjustIframeHeightOnLoad() adjusts the iframe height when the iframe is first loaded. The function AdjustIframeHeight() adjusts the iframe height when called from the JavaScript in the thank-you page.
  3. Upload the page with the iframe tag to your server and make a note of its URL.
To test your installation, type the URL of the page with the iframe tag into your browser.
Once implemented, doing form submissions in an iframe lets the entire submission-to-confirmation process take place without reloading the web page. The iframe is resized as its content changes.
Will Bontrager

Pagination Script and Tutorial for PHP MySQL Programmers Paging Results

By Adams:

Hello fellow php codersHappy This is a pagination script and tutorial created custom for educational purposes. Spread it around to people asking about how to page out database result sets. We are using PHP, MySQL, CSS, and HTML. Very simple and jQuery Ajax could be applied to make the page changing not require refreshing of the page.

This script is accompanied by this in depth VIDEO TUTORIAL:
http://www.developphp.com/view.php?tid=1039

First here is what this script will render in a browser:

Develop PHP browser display window

Total Items: 381

Page 6 of 39            Back   4    5    6    7    8    Next

Alexander

United States of America

PedaDunkPamma

United States of America

lathiful

Indonesia

seyf

Tunisia

John

Canada

mike

United States of America

Kenneth

Norway

Daniel

United States of America

Dave

United States of America

Gorge

United States of America

Page 6 of 39          Back   4    5    6    7    8    Next

Below is the PHP, MySQL, HTML, and CSS code that renders the output above.

You have to put your mysql connection data, and alter the SQL queries(both queries).

Learn HTML
<?php
// Adam's Custom PHP MySQL Pagination Tutorial and Script
// You have to put your mysql connection data and alter the SQL queries(both queries)
// This script is in tutorial form and is accompanied by the following video:
// http://www.youtube.com/watch?v=K8xYGnEOXYc

mysql_connect("DB_Host_Here","DB_Username_Here","DB_Password_Here") or die (mysql_error());
mysql_select_db("DB_Name_Here") or die (mysql_error());
//////////////  QUERY THE MEMBER DATA INITIALLY LIKE YOU NORMALLY WOULD
$sql = mysql_query("SELECT id, firstname, country FROM myTable ORDER BY id ASC");
//////////////////////////////////// Adam's Pagination Logic ////////////////////////////////////////////////////////////////////////
$nr = mysql_num_rows($sql); // Get total of Num rows from the database query
if (isset($_GET['pn'])) { // Get pn from URL vars if it is present
    $pn = preg_replace('#[^0-9]#i', '', $_GET['pn']); // filter everything but numbers for security(new)
    //$pn = ereg_replace("[^0-9]", "", $_GET['pn']); // filter everything but numbers for security(deprecated)
} else { // If the pn URL variable is not present force it to be value of page number 1
    $pn = 1;
}
//This is where we set how many database items to show on each page
$itemsPerPage = 10;
// Get the value of the last page in the pagination result set
$lastPage = ceil($nr / $itemsPerPage);
// Be sure URL variable $pn(page number) is no lower than page 1 and no higher than $lastpage
if ($pn < 1) { // If it is less than 1
    $pn = 1; // force if to be 1
} else if ($pn > $lastPage) { // if it is greater than $lastpage
    $pn = $lastPage; // force it to be $lastpage's value
}
// This creates the numbers to click in between the next and back buttons
// This section is explained well in the video that accompanies this script

$centerPages = "";
$sub1 = $pn - 1;
$sub2 = $pn - 2;
$add1 = $pn + 1;
$add2 = $pn + 2;
if ($pn == 1) {
    $centerPages .= '&nbsp; <span class="pagNumActive">' . $pn . '</span> &nbsp;';
    $centerPages .= '&nbsp; <a href="' . $_SERVER['PHP_SELF'] . '?pn=' . $add1 . '">' . $add1 . '</a> &nbsp;';
} else if ($pn == $lastPage) {
    $centerPages .= '&nbsp; <a href="' . $_SERVER['PHP_SELF'] . '?pn=' . $sub1 . '">' . $sub1 . '</a> &nbsp;';
    $centerPages .= '&nbsp; <span class="pagNumActive">' . $pn . '</span> &nbsp;';
} else if ($pn > 2 && $pn < ($lastPage - 1)) {
    $centerPages .= '&nbsp; <a href="' . $_SERVER['PHP_SELF'] . '?pn=' . $sub2 . '">' . $sub2 . '</a> &nbsp;';
    $centerPages .= '&nbsp; <a href="' . $_SERVER['PHP_SELF'] . '?pn=' . $sub1 . '">' . $sub1 . '</a> &nbsp;';
    $centerPages .= '&nbsp; <span class="pagNumActive">' . $pn . '</span> &nbsp;';
    $centerPages .= '&nbsp; <a href="' . $_SERVER['PHP_SELF'] . '?pn=' . $add1 . '">' . $add1 . '</a> &nbsp;';
    $centerPages .= '&nbsp; <a href="' . $_SERVER['PHP_SELF'] . '?pn=' . $add2 . '">' . $add2 . '</a> &nbsp;';
} else if ($pn > 1 && $pn < $lastPage) {
    $centerPages .= '&nbsp; <a href="' . $_SERVER['PHP_SELF'] . '?pn=' . $sub1 . '">' . $sub1 . '</a> &nbsp;';
    $centerPages .= '&nbsp; <span class="pagNumActive">' . $pn . '</span> &nbsp;';
    $centerPages .= '&nbsp; <a href="' . $_SERVER['PHP_SELF'] . '?pn=' . $add1 . '">' . $add1 . '</a> &nbsp;';
}
// This line sets the "LIMIT" range... the 2 values we place to choose a range of rows from database in our query
$limit = 'LIMIT ' .($pn - 1) * $itemsPerPage .',' .$itemsPerPage;
// Now we are going to run the same query as above but this time add $limit onto the end of the SQL syntax
// $sql2 is what we will use to fuel our while loop statement below
$sql2 = mysql_query("SELECT id, firstname, country FROM myTable ORDER BY id ASC $limit");
//////////////////////////////// END Adam's Pagination Logic ////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////// Adam's Pagination Display Setup /////////////////////////////////////////////////////////////////////

$paginationDisplay = ""; // Initialize the pagination output variable
// This code runs only if the last page variable is ot equal to 1, if it is only 1 page we require no paginated links to display
if ($lastPage != "1"){
    // This shows the user what page they are on, and the total number of pages
    $paginationDisplay .= 'Page <strong>' . $pn . '</strong> of ' . $lastPage. '
&nbsp;  &nbsp;  &nbsp; ';
    // If we are not on page 1 we can place the Back button
    if ($pn != 1) {
        $previous = $pn - 1;
        $paginationDisplay .=  '&nbsp;  <a href="' . $_SERVER['PHP_SELF'] . '?pn=' . $previous . '"> Back</a> ';
    }
    // Lay in the clickable numbers display here between the Back and Next links
    $paginationDisplay .= '<span class="paginationNumbers">' . $centerPages . '</span>';
    // If we are not on the very last page we can place the Next button
    if ($pn != $lastPage) {
        $nextPage = $pn + 1;
        $paginationDisplay .=  '&nbsp;  <a href="' . $_SERVER['PHP_SELF'] . '?pn=' . $nextPage . '"> Next</a> ';
    }
}
///////////////////////////////////// END Adam's Pagination Display Setup ///////////////////////////////////////////////////////////////////////////
// Build the Output Section Here

$outputList = '';
while($row = mysql_fetch_array($sql2)){

    $id = $row["id"];
    $firstname = $row["firstname"];
    $country = $row["country"];

    $outputList .= '<h1>' . $firstname . '</h1><h2>' . $country . ' </h2><hr />';
   
} // close while loop

?>
<html>
<head>
<title>Adam's Pagination</title>

<style type="text/css">
<!--

.pagNumActive {
    color: #000;
    border:#060 1px solid; background-color: #D2FFD2; padding-left:3px; padding-right:3px;
}
.paginationNumbers a:link {
    color: #000;
    text-decoration: none;
    border:#999 1px solid; background-color:#F0F0F0; padding-left:3px; padding-right:3px;
}
.paginationNumbers a:visited {
    color: #000;
    text-decoration: none;
    border:#999 1px solid; background-color:#F0F0F0; padding-left:3px; padding-right:3px;
}
.paginationNumbers a:hover {
    color: #000;
    text-decoration: none;
    border:#060 1px solid; background-color: #D2FFD2; padding-left:3px; padding-right:3px;
}
.paginationNumbers a:active {
    color: #000;
    text-decoration: none;
    border:#999 1px solid; background-color:#F0F0F0; padding-left:3px; padding-right:3px;
}
-->
</style>

</head>
<body>
   <div style="margin-left:64px; margin-right:64px;">
     <h2>Total Items: <?php echo $nr; ?></h2>
   </div>
      <div style="margin-left:58px; margin-right:58px; padding:6px; background-color:#FFF; border:#999 1px solid;"><?php echo $paginationDisplay; ?></div>
      <div style="margin-left:64px; margin-right:64px;"><?php print "$outputList"; ?></div>
      <div style="margin-left:58px; margin-right:58px; padding:6px; background-color:#FFF; border:#999 1px solid;"><?php echo $paginationDisplay; ?></div>
</body>
</html>

Graphic Pics, See What They Did To Car Thieves In PH

They were caught trying to steal a Venza outside FCMB Rumumasi in Portharcourt. More photos:
 

Meet the Nigerian Murder Suspect who Prefers to Live his Life in Prison (Photo)


Cross Rivers State Police command has arrested a suspected serial killer, Cyril Ojang Etim, 25, who had been wanted by the police over series of
unexplained deaths in the state.
He was picked by detectives attached to the state Criminal Investigation Department days after he allegedly beheaded one Ubong Asuquo who
caught him stealing N4000 from his house at old Netim, Akamkpa Local Government Area of Cross River State.
In the course of investigation, it was discovered that he was also responsible for the death of his ex-lover, Esther. He admitted to have killed her when he discovered that Esther, who was two months
pregnant, had an abortion. On his arrest, the state Commissioner of Police, Mr. Henry Fadairo told Saturday Sun that he had received several reports of the activities of Etim
especially from relatives of victims that were either raped or murdered.
He explained that the manhunt was intensified when it was confirmed that the suspect beheaded his colleague, one Ubong Asuquo.
    “When the news of his arrest broke, several persons came forward alleging that he either raped or stole from them.” Investigation also revealed that sometime in 2012, the suspect was caught trying to strangulate one of his victims. Not aware that he had become a serial rapist and a killer, the community flogged and asked him to go home
    and sin no more.
    “Also in 2013, he confessed to have killed his lover because she had an abortion. He was arrested then and charged to court. He was later released by a chief judge in 2014, when his name was submitted as those who appeared to have repented,” CP Fadairo said.
The police boss further said that unrepentant Etim continued in his former trade of robbery.
    “On February 27, 2015, he visited the house of the late Asuquo and stole his N4000.
    Unfortunately for him, Asuquo caught him red handed and chased him with a cutlass. Both ended up in the bush and Etim over powered him, picked up the cutlass and beheaded Asuquo. A passerby who witnessed the incident
    rushed to the nearest police station and reported the matter,” Fadairo added.
At the police station, Etim told Saturday Sun that he believes that he was under a spell.
    “I do not know what could be wrong with me. I normally recover my senses as soon as I have committed a crime. It all started in 2010 after my 20th birthday. I discovered that my love for women increased. I do not
    have money but I wanted to have sex. If any woman tries to resist me, I will force her to have sex with me.“I have been caught severally but because I have an innocent face, people will blame the women for seducing me. Unfortunately, in 2013, my lover Esther told me that she was
    pregnant. I was already dreaming that I will become a father at a young age when she came back a week later and told me that she had an abortion. I was devastated and out of anger, beat her to death,” he said.
    On realising his mistake, Etim handed himself over to the police.
    “I was arrested and charged to court.
    Honestly, I had repented from my sins and gave my life to Christ. I was well behaved, that is why the prison authority submitted my name to the Chief Judge. She was the one who approved my release.
    “When I was finally released in 2014, the devil took over my life again. I went back to the same crime. I was very broke and since I knew the late Asuquo, I decided to sneak into his house and get some money. The
    first time I stole N3000 and was not caught.
    I went back three days later and was about to collect the N4000 that I saw in one of his drawers when he saw me. He shouted and picked his cutlass. I ran as fast as I could but he came after me. I knew that he would kill me, that was why I fought back. I had no
    choice but to kill him. I never knew that someone saw us.
    “I am willing to go to prison because it
    appears that I am stable inside there. I know that I have committed a lot of atrocities but I am begging the families of my victims to forgive me because I want to make heaven”,
    Etim pleaded.

Former Pres. Jonathan’s body guards posted out of the Presidential Villa


After months of not knowing their fate, the Department of State Services personnel who served as Body Guards to President Goodluck Jonathan have been posted out of the Villa to various state commands.
Reliable sources at the Presidential Villa said that the signal for the posting of the over 150 body guards who had remained redundant following the directive by the ADC to President Buhari that they should leave the presidential villa came
yesterday.
It would be recalled that following the swearing in of President Buhari, personnel of the Department of State Services who had traditionally served as Body Guards to the president were ordered to leave the Villa on the
instructions of the ADC to the president.
According to the source while a few of the DSS personnel were posted to the headquarters of the DSS, most of them were posted to various state commands of the service. The source said:
    “Almost all of our personnel who were body guards in the villa have been transferred out of the state House. A new crop of body guards who were trained for the purpose have taken over. They will take over from the soldiers who were initially drafted to man the various beats hitherto occupied by the DSS personnel.
That phase of transition is over” the source said.
About 250 personnel of the DSS are expected to take over the job of protecting the president from the military personnel.
It was gathered that the reason why they were replaced was sue to the bitter experience during the sallah prayers when president Buhari was
almost mobbed by enthusiastic Nigerians who overwhelmed the military men that were supposed to protect him.
President Buhari himself confessed that but for God’s protection, he would have been mobbed by the crowd that thronged the Eid prayer
ground.
Vanguard

Saturday, 29 August 2015

How to Troubleshoot Firefox

Many problems with Firefox are caused by faulty extensions or themes, incorrect settings, or corrupt files. If Firefox does not work properly (or not at all), don't panic! This step-by-step guide will help you troubleshoot problems with Firefox.
Ad

Method 1 of 7: Restart Firefox

  1. Troubleshoot Firefox Step 1 Version 3.jpg
    1
    Open the "File" menu, or Firefox Menu then select "Quit Firefox" (do not use the close button on the upper-right corner of the window). If Firefox continues to work improperly, repeat this step and restart your computer.
    Ad
    Ad

Method 2 of 7: Clear Firefox Cache

  1. Troubleshoot Firefox Step 2 Version 3.jpg
    1
    Many problems with loading web pages can be resolved by clearing Firefox's cookies and cache. Open the "Tools" menu, then select "Clear Private Data". Select the following items, then click "Clear Private Data Now":
    • Download History
    • Cache
    • Cookies
    Ad

Method 3 of 7: Use Firefox's Safe Mode

  1. Troubleshoot Firefox Step 3 Version 2.jpg
    1
    Sometimes add-ons for Firefox (extensions or themes) can cause problems. Safe Mode runs Firefox with your add-ons disabled. Follow these steps to start Safe Mode:
  2. Troubleshoot Firefox Step 4 Version 3.jpg
    2
    Make sure Firefox is closed (open the "File" menu, then select "Exit")
  3. Troubleshoot Firefox Step 5 Version 3.jpg
    3
    Click the Start button, open the All Programs list, and navigate to the Mozilla Firefox folder. Select "Mozilla Firefox (Safe Mode)".
  4. Troubleshoot Firefox Step 6 Version 3.jpg
    4
    When the Safe Mode dialog box appears, click "Continue in Safe Mode"
  5. Troubleshoot Firefox Step 7 Version 3.jpg
    5
    If the problem does not occur in Safe Mode, and extension or theme is likely the cause. Read the Troubleshooting Extensions and Themes article on the Firefox Support website for more information.
    Ad

Method 4 of 7: Reset Firefox Preferences

Incorrect settings can cause problems. You can restore Firefox's default settings by following these steps:
  1. Troubleshoot Firefox Step 8 Version 2.jpg
    1
    Close down Firefox completely (open the "File" menu, then select "Exit")
  2. Troubleshoot Firefox Step 9 Version 2.jpg
    2
    Click the Start button, open the All Programs list, and navigate to the Mozilla Firefox folder. Select "Mozilla Firefox (Safe Mode)".
  3. Troubleshoot Firefox Step 10 Version 2.jpg
    3
    When the Safe Mode dialog box appears, put a check mark by "Reset all user preferences to Firefox defaults" and "Reset toolbars and controls"
  4. Troubleshoot Firefox Step 11 Version 2.jpg
    4
    Click "Make Changes and Restart"
    Ad

Method 5 of 7: Troubleshoot Plugins

Sometimes plugins for Firefox (such as Adobe Reader, Flash, Java, QuickTime, RealPlayer, and Windows Media Player) can cause problems. Safe Mode does not disable plugins, but they can be disabled while Firefox is running.
  1. Troubleshoot Firefox Step 12 Version 3.jpg
    1
    Open the Add-ons Window by clicking the "Tools" menu and selecting "Add-ons"
  2. Troubleshoot Firefox Step 13 Version 3.jpg
    2
    Click on the Plugins icon at the top of the Add-ons window
  3. Troubleshoot Firefox Step 14 Version 3.jpg
    3
    Disable each plugin one-by-one until the problem goes away. You do not have to restart Firefox each time.
  4. Troubleshoot Firefox Step 15 Version 3.jpg
    4
    If you encounter a plugin that is causing problems, you may need to update or reinstall it. If the problem continues, you can leave the plugin disabled.
    Ad

Method 6 of 7: Create a New Profile

A corrupt profile can cause various problems with Firefox. You can try to make a new profile test whether that solves the problem, and if so, copy your data (bookmarks, saved passwords, etc.) to the new profile.
  1. Troubleshoot Firefox Step 16 Version 3.jpg
    1
  2. Troubleshoot Firefox Step 17 Version 3.jpg
    2
  3. Troubleshoot Firefox Step 18 Version 3.jpg
    3
    Select the newly created profile and click "Start Firefox"
  4. Troubleshoot Firefox Step 19 Version 3.jpg
    4
    If the problem goes away, you can recover your important data. To avoid recreating the problem, only recover important files such as your bookmarks and saved passwords.
    Ad

Method 7 of 7: Reinstall Firefox

If creating a new profile does not solve the problem, you will need to reinstall Firefox.
  1. Troubleshoot Firefox Step 20 Version 2.jpg
    1
    Make sure Firefox is closed (open the "File" menu, then select "Exit")
  2. Troubleshoot Firefox Step 21 Version 3.jpg
    2
    Download the latest version of Firefox from mozilla.com
  3. Troubleshoot Firefox Step 22 Version 3.jpg
    3
    Back up your important data if you wish to do so
  4. Troubleshoot Firefox Step 23 Version 3.jpg
    4
    Uninstall Firefox using the Add/Remove Programs utility in the Windows Control Panel
  5. Troubleshoot Firefox Step 24 Version 3.jpg
    5
    Delete the "Mozilla Firefox" folder located in the Windows "Program Files" folder
  6. Troubleshoot Firefox Step 25 Version 3.jpg
    6
    Delete the Firefox profile folder
  7. Troubleshoot Firefox Step 26 Version 3.jpg
    7
    Run the Firefox installation program
  8. Troubleshoot Firefox Step 27 Version 2.jpg
    8
    When Firefox is started for the first time, the "Import Settings and Data" wizard will appear and a new profile will be created
  9. Troubleshoot Firefox Step 28 Version 2.jpg
    9
    Recover your important data if you chose to do so
  10. Troubleshoot Firefox Step 29.jpg
    10
    Reinstall your extensions and themes

Friday, 28 August 2015

Two TV journalists shot dead during live TV report in US


Two TV journalists shot dead during live TV report in US

virginia shooting Two television journalists were shot and killed in Virginia on Wednesday morning while conducting a live television interview, their station, WDBJ7 said.
During the live broadcast, shots and the reporter’s screams could be heard, and the camera fell to the ground.The incident occurred during a live broadcast in Bedford County, when shots could be heard, sending the reporter and her source screaming and ducking for cover. The station said that journalists Alison Parker and Adam Ward died in the incident.
Media reports said Parker and Ward were filming a feature segment for the morning news programme at Bridgewater Plaza, a shopping and recreation plaza.
“We do not know the motive, we do not know who the killer is,” Jeff Marks, the station’s General Manager, said on air.

In Spain, Entire Villages Are Up For Sale — And They’re Going Cheap

In Spain Entire Villages Are Up For Sale — And They're Going Cheap A jolly trombone player prances through a crowd of revelers in Cantalejo, a small town about 1 1/2 hours’ drive north of Madrid. But the hubbub is deceiving — because hardly anyone actually lives here. People come one week a year to party in the villages of their ancestors. During the other 51 weeks, towns like this are
deserted. “There was a time when this place was growing! But not anymore. This pueblo is dying,” says Felix Sacristan, who’s 55 and unemployed, living in his late grandfather’s house. “The only ones left are the elderly. There are lots of abandoned homes.”
Like much of Spain’s central meseta table plateau, this land is dusty and the climate is severe. People joke it’s like nine months of winter and three months of fiery hell.
“This land used to be for cereals, but it’s difficult to grow anything else,” Sacristan says. “And who wants to be a farmer these days now, anyway?”
In northern Europe, the Industrial Revolution pulled people to big cities centuries ago. But in Spain, that migration happened much later — in the mid-20th century. The first wave occurred after the Spanish Civil War in the late 1930s; the second, after Spain’s military dictatorship ended in the late 1970s.
Now there’s been a third exodus, amid the recent economic crisis. But it’s not just on Spain’s harsh central plans. Even villages in the country’s most fertile northwest region, Galicia, are being depopulated. The lush Galician landscape once supported Spain’s highest population density, and half of all Spanish villages — some 3,500 hamlets — are located there.
Now nearly half of these villages are abandoned.
Enter Mark Adkinson, a British-born real estate agent who scours the countryside for abandoned properties, and tries to match them up with foreign buyers.
“Some of the places I’m finding have been empty for 50 or 60 years,” Adkinson says. “And my job is to try to find the descendants.”
He drives around Galicia, dropping off leaflets at boarded-up old homes, asking owners if they’d like to sell. Adkinson unfurls a map annotated with hundreds of abandoned villages as he takes NPR on a visit to one of them.
Down a track about a mile long, he arrives at the village of O Penso — which has “100 acres of land, a total of six houses, two barns and a big cattle barn that’ll hold 70 cattle,” he says.
The village, near Ortigueira, comes with free well water and a bakery with a stone hearth. Six miles away, green cliffs drop off onto white sand beaches — and some of Europe’s best surfing.
The biggest of the village houses has hardwood floors and five bedrooms overlooking an orchard with peaches, figs, walnuts, apples and pears. At the bottom of the valley, there’s a little river full of trout.
The asking price for the whole village: About $230,000 — negotiable. Smaller villages with less fertile land go for tens of thousands. Adkinson has one house for sale for $5,600.
Prospective buyers include British retirees, Adkinson says, and an Indian who has expressed interest in converting the hamlet into a yoga retreat center.
“There’s also an American who already lives in Spain and wants to set up an English school here,” he says. “I’ve got lots of buyers who want to go back to nature — and let’s face it, there’s nothing more natural than this.”
O Penso’s last resident died a decade ago — leaving the village uninhabited for the first time in perhaps 500 years.
In the surrounding area, “When you talk to the old people, tears come into their eyes,” Adkinson says. “They say, ‘Oh, there were a lot of kids, this place was alive!’ They’d like to see these places picked up and turned around. They don’t want them to die.”
But many local Spaniards just don’t want to live in villages anymore. They migrate to bigger cities for jobs, education, access to public transit and health care.
Back out on the paved road, at a tiny café, Maria Benedicta Fernandez meets with fellow retirees and reads the morning newspapers. She was among the last to leave the picturesque stone village where she was born. Only the four walls — no roof — remain of her ancestral family home. She prefers now to live in a rented apartment in a bigger town nearby, with a medical center.
“Everyone else left, too, or they’ve died, and the local school closed,” Fernandez says. “There aren’t enough children anymore.”
Galicia’s birth rate is 1.1 offspring per fertile woman — one of the lowest rates in all of Europe. The region is on track to lose a third of its population in the next 35 years.
Desperate times call for desperate measures, says Avelino Luis de Francisco Martinez, the mayor of Cortegada, a rural town in southern Galicia. An abandoned hamlet that’s part of his town isn’t for sale. He’s giving it away.
“For free! Someone just has to promise to renovate the 12 ruined houses,” he says. “They’re beautiful — bucolic! Next to a river and an 18th century royal procession path.”
The challenge? “We just need to find someone to live here in this century,” he says.

Mother and daughter splash out £56,000 on surgery to look like Katie Price

12 A mother allowed her daughter to leave school and become a stripper at the age of 17 so she could pay for more than £56,000 of plastic surgery for them both.
Georgina Clarke, 38, and her daughter Kayla Morris, 20, from Rugby, have had multiple operations in a bid to look more like model Katie Price – all funded by
Miss Morris.
Ms Clarke, who claims to be ‘addicted’ to Botox, says she is happy for her daughter to strip to fund the surgeries and was also supportive when she picked up a 50-something sugar daddy at 18.’When Kayla told me that she wanted a boob job and plastic surgery, I was glad because I wanted her to be that kind of person,’ explains the 38-year-old.’I’m so lucky to have a daughter like Kayla who pays for my treatments. I don’t mind her having a sugar daddy or stripping to pay for our cosmetic work because we’re living the dream.
‘I’m really proud of her.’
Currently, the pair spend £5,000 a year on tanning beds and have had lip injections, botox, cheek fillers, semi-permanent make-up, tooth whitening and hair extensions.
Despite having already spent more than £50,000, the pair plan to have a boob job apiece later this year, along with buttock implants, a nose job, further lip injections, veneers and a designer vagina for Ms Clarke.
‘My mum is my best friend,’ says Miss Morris. ‘I love treating her to plastic surgery and getting closer to our dream of looking more like Katie Price. I love the way we look now.’When we walk down down the street, everyone looks at us and comments on our huge lips but they’re not big enough for us.
‘Plastic surgery is a way of bonding for us as mum and daughter. We want to have bigger boobs, bigger bums and look even more like Barbies.’
Their devotion to plastic surgery might be a big part of their lives now, but, says mother-of-four Ms Clarke, that hasn’t always been the case.
‘I had four kids to look after so I was just focused on being a normal mum,’ says Ms Clarke, whose other children are Amber, 19, Keisha, 13, and Romeo, six.
‘I didn’t care about my looks and I didn’t wear make-up. I had mousy brown hair, which I just put up into a pony tail. I was quite shy and I felt like I wasn’t anything special.
‘Being a mother came first and I didn’t bother with my appearance. I fell into a rut where my looks were the least of my priorities.’
But when she spotted a picture of Katie Price posing topless on Page 3, her life – and approach to looking good – changed forever.
‘The minute I opened the paper and saw Jordan on Page 3, I instantly liked her,’ she says. ‘She just stood out. ‘I loved her look – she was just perfect. Everything about her appealed to me.
‘I was so used to being a dowdy mum but something about Katie Price stirred something in me. I was scared to admit it but when I looked at her picture, I thought maybe I could be glamorous too.
‘I started buying all the magazines so I could read about her life and I began watching her television show every week. I was mad over Jordan.’
Growing up, Miss Morris was a tomboy who showed no interest in her appearance either. But when she started watching Katie Price’s reality show with her mother, everything changed for her too.
As a kid, I wasn’t very girly,’ explains Miss Morris. ‘I wore baggy shirts and loved playing football. But when I was about 10, I started watching Jordan’s television series with my mum and I became obsessed with her too.’We used to wait all week until her show was on. Mum and I would make sure the rest of the family were quiet so we could watch it on the sofa together.
‘We loved Jordan so much that we would sometimes watch an episode again on repeat. Then we would chat about Katie Price and her life for hours afterwards.
‘We read all of Katie Price’s books too and bought tickets to see her at the Birmingham Clothes show. Mum even got the same pink ribbon ankle tattoo as her.
‘There was just something about Jordan that drew me to her. She was so straight-talking and successful. She also really cared about her family too.
‘Most of all, I loved her over-the-top look. I loved her lips, her hair, her massive boobs, her nails, everything about her.’
By the age of 11, Miss Morris had become so devoted to the glamour model, she told her mother she wanted a breast operation just like Jordan’s the second she turned 18. ‘I was so pleased when Kayla told me she wanted a boob job,’ remembers Ms Clarke. ‘I encouraged her to get one.
‘I love the way Katie Price looks, she’s a good role model. I wanted us to look more like her and I was proud that Kayla was so determined to make our dreams come true.’
The pair decided to pursue their dreams of looking like the 37-year-old model together, initially funded by Ms Clarke.
‘I started giving pocket money to Kayla every so often so she could get her nails and fake eyelashes done,’ she says. ‘For Kayla’s 14th birthday, I surprised her with hair extensions. She was thrilled.’
‘I also started learning about other cosmetic treatments that were available,’ adds Miss Morris. ‘I’d talk to my mum about how I wanted veneers, a nose job and lip injections.
‘We wanted to get it done together. My mum was always so supportive, she’s the most brilliant mum ever to my brother and sisters.
‘My mum has always treated me and my siblings so well and I wanted to be the one to make her dreams come true. But I wasn’t sure how I was going to pay for all of it.’
Eventually, Miss Morris left college aged 17 after studying for a year because ‘I wanted to get closer to my dream of getting plastic surgery’.Keen to make money speedily, she landed a job as a stripper at a Birmingham lap dancing club and began making up to £1,300 a week – most of which went into a savings account.
A few months before she turned 18, Miss Morris found another source of income in the shape of a man in his 50s who was willing to lavish money on her in exchange for ‘companionship’.
‘One night when I was working at the strip club, I started talking to a married guy in his late fifties who wanted to be my sugar daddy and pay for my upkeep,’ she says.
‘We swapped numbers and chatted for a while. I told him about the surgery that I wanted and we came to an arrangement where he paid me £800 per week.
‘I was thrilled although I was scared to tell my mum about my sugar daddy. But when I told her about him and explained how the money would go towards our cosmetic work, she was pleased for me.’
Ms Clarke adds: ‘I didn’t mind that Kayla had a sugar daddy. I was a little bit worried at first but I trust her, she has her head screwed on.
‘I knew it made Kayla happy and she insisted we use it to get plastic surgery together. It’s what we had always dreamed of since she was a kid. Kayla is so generous.’
The first purchase that Miss Morris made with her sugar daddy funds were Botox and lip fillers for her and her mother at a cost of £900 for both.
‘As soon as I received the money from my sugar daddy, I paid for my mum’s Botox and lip fillers first,’ she says.
‘I was so happy that I could treat my mum to this cosmetic treatment after we’d talked about it for all those years.
‘She was so thrilled after she got her lips done and so I got mine done immediately after.’
Then in February 2013, Miss Morris had a £5,000 breast enlargement operation that took her from an already ample 32E to a 32G.
Since then, the pair have had a further 15 rounds of 1.5ml lip injections – spending £300 a time – so they can emulate Katie Price’s plump lips.
Ms Clarke has also had three sets of cheek fillers and over 18 Botox sessions. On top of that, both regularly have tooth whitening treatments, semi-permanent make-up and have hair extensions.
The twosome regularly undergo teeth whitening, semi-permanent make-up as well as eyelash and hair extensions.
The pair also look set to become a trio with Miss Morris saying she would be happy to fund surgery for her younger sister Amber too.’I love treating my mum so if my sister asked for a boob job, I would pay for it,’ she says. ‘My sister has mentioned getting a boob job once. I’d rather she get plastic surgery than go clubbing and drinking.’
Both are currently single, although Miss Morris says she is on the lookout for a new sugar daddy after the previous one ended the arrangement after his wife found out.
The pair, who are planning more surgery later this year, have also been hit with criticism due to their looks but say the brickbats will not put them off.
‘Sometimes men stick their lips out mockingly when they walk past us but it doesn’t bother us because we know our lips are big and that’s the way we’ve always wanted them,’ says Miss Morris.
‘A few people have told us we should be worried about what consequences plastic surgery and sunbeds could have on our health.
‘But I’ve never had any complications besides my lip fillers building up. And you’re more likely to get cancer from smoking than sunbeds anyway.’
Ms Clarke adds: ‘Kayla and I are a double act, we do everything together and that includes plastic surgery.
‘We like looking the same. We even buy the same clothes as each other. Kayla and I can’t wait for our double boob-jobs later this year and we want bigger bums and bigger lips too.
‘I want them to be massive. I’m so lucky to have a daughter like Kayla who pays for my surgery. She’s made all my dreams come true.’
Her daughter adds: ‘We look the way we want to look now. We’re closer to looking like Katie Price than ever before but not as close as we’d like. There’s still more work to do.’

Heartbroken girl, 12, hanged herself after losing her mother to breast cancer

1
A 12-year-old schoolgirl whose mother died of breast cancer killed herself after posting self-harm pictures on Instagram, an inquest has heard.
Isabel Ann Richardson, from Norwich, was struggling with feelings she was ‘worthless’ and ’empty’ after losing her mother Karina to the disease in 2010.

But despite speaking to a school nurse at Hewett School, she was overcome by her sadness and on May 12, discovered hanging in her bedroom by her father.
Earlier that evening, Isabel’s father Stephen Richardson was called by her brother about distressing images she had posted online.
Entering her bedroom to check on her, he found her hanging and she was rushed to hospital. She died six days later.
The inquest at Norfolk Coroner’s Court heard Isabel had told her father about the self harming five weeks prior to her death.
After he was informed, the two began speaking to a school nurse and were referred to bereavement service Nelson’s Journey. Isabel was also due to speak to a youth service counsellor the day after she was found dead.
The inquest heard Mr Richardson said his daughter told him she had stopped hurting herself and he thought she was a lot happier since the meetings.
However, he added: ‘I was aware of her self harm, but I never thought for a second she would do anything like take her own life.
‘I will always think I could have done more.’
Coroner Jacqueline Lake recorded a narrative verdict – saying it wasn’t clear if Isabel had intended to take her life.
She said: ‘Although she hanged herself, this could have been a cry for help.’

how to fix a bad video file .mkv

Meteorite Project is DivFix++ like program but for Matroska/MKV files.
It can repair your corrupted MKV video files to make it compatible with your player.
Also you can preview Matroska files those are already in download.




Support This Project
Please support world the first & only Matroska repair tool.

Donation List
  • Elad Avron, Israel
  • George Nill, U.S.A.
  • chelanxar, Australia
  • Jan Bagge, Denmark*
  • Jan Rais, Czech Republic
  • merlin2021, U.S.A.
  • E. Douglas Jensen, ?
  • David Riehl, Germany
  • Ismaël BELATACHE, Germany
  • Nun2Small Computer Services & Web Design, Canada
  • TEN, Germany
  • Jonathan Burmester, Germany
  • Luke Clancy, Ireland
  • Norm Bolser, ?
  • Jan Janssen, Germany
  • Robert McKnight, Australia
  • Daniel Smith, ?
  • Milan Jaroš, ?
  • Andrej Schmitt,Germany

  • * He don't know what donation is and try to rule me with $5 donation.
    I return this persons money to make him shut up but he is not! :) Pity...



    Events

    • Please help to spread Meteorite for resuming development.
    • Project has a domain now. Easy to remember www.mkvrepair.com
    • After 2 years, I released bugfix version v0.11 Beta on 13/5/2011 that fixes "Nothing doing bug"
    • At some of windows systems (suspected on Win7), meteorite has "Nothing doing bug"
    • There is a lots of but at program. If you found one, please fill a from at tracker for make next version debugged!
    • Birthday Gift: Meteorite Source Code Released, Binaries Ahead!
    • Today 04 Dec 2009, is my Birthday! Happy birthday to me.
    • I make a new Icon for project.
    • Meteorite v0.09 Beta infected DivFix++ binaries ready( for testers. )
    • Meteorite Code Prototype fixed first MKV/Matroska stream successfuly, 19 Jun 2009.


    an0ther Pr0jects:
    wxHexEditor helps me in this project for Matroska format researching and debugging.
    SamyGO Samsung TV's firmware hack and research project.
    DivFix++ AVI Repair & Preview tool.
    I made them. Just try.


    Goto download page


    High Definition Video

       Why I made this program? Because I cannot watch files which are currently on download from p2p networks like emule,torrent.
    Also, new videos, specially in HD, high definition videos are in MKV format generally.
    You needed to fix them before watch. But unfortunatelly there was no program could fix matroska files.
    So I make this tool, just for myself than released source and binary on my birthday...
    You can repair your half downloaded MKV / Matroska videos or broken movies with it too.


    About Author: Author's Home Site