Tuesday, August 2, 2022

How to start numbering your pages on (for example) page 3

 https://kib.ki.se/en/write-cite/tips-microsoft-word/how-start-page-numbering-example-page-3



In more formal texts, such as theses and dissertations, it is common that page numbers only start with the introduction or background. In other words, the pages that include your title, abstract and table of contents are usually not numbered. 

This step-to-step guide describes how to start numbering your pages on, for instance, page 3. Note that exactly where you begin numbering your pages depends on your specific text and which layout is required.

The guide is made for the latest version of MS Word, both for PC and Mac.

1. Start by clicking on ¶ to show the section break.

Page numbering engelska screen shot

2. Put the cursor after the text on the page that should be the last page without a page number, for example, the table of contents.

3. Click on the Layout tab. Select Breaks → Sections Breaks → Next Page.

Page numbering screenshot

4. Put the cursor on the page where the page numbering should start (that is, section two in the document).

5. Click on the Insert tab and Page Number. Select position and style for pagination.

Page numbering screen shot

6. Click on the bottom of the page to activate the Header & Footer menu. Deactivate Link to Previous and check that Different First Page is unchecked.

Page numbering screen shot

7. To ensure your pages begin with 1, go to the Insert tab → Page Number. Select Format Page Numbers... → Page numbering → Start at and add 1.

Page numbering screen shot

8. Manually delete the page numbers on the first pages of section 1 by double-clicking on them and then deleting them.

9. That's it, you're finished. Well done!

Tuesday, July 5, 2022

Code - Total Page Views

 http://5kweb.blogspot.com/2015/09/total-page-views_15.html

Code - Total Page Views

Total Pageviews

60084

Pageviews Code
<div class="widget Stats" id="Stats1">
<h2>Total Pageviews</h2>
<div class="widget-content">
<div id="Stats1_content">
<span class="counter-wrapper graph-counter-wrapper" id="Stats1_totalCount">
<span class="digit stage-0">
<strong>6</strong>
<span class="blind-plate">
</span>
</span><span class="digit stage-0">
<strong>0</strong>
<span class="blind-plate">
</span>
</span>
<span class="digit stage-0">
<strong>0</strong>
<span class="blind-plate">
</span>
</span>
<span class="digit stage-0">
<strong>8</strong>
<span class="blind-plate">
</span>
</span>
<span class="digit stage-0">
<strong>4</strong>
<span class="blind-plate">
</span>
</span>
</span>
<div class="clear"></div>
<div class="clear"></div>
</div>
</div>
</div>
<br />
<br />

Friday, June 24, 2022

How to Install any USB Driver Manually

 



Download and extract the USB driver on the computer.

  1. Open Device Manager (devmgmt.msc) and Click on the Computer Name > Action Menu > Add Legacy Hardware.
  2. Click on the Next button.
  3. Select the Install the hardware that I manually Select from a list checkbox and Click on the Next button.
  4. Again, Click on the Next button.
  5. Click on the Have Disk > Browse > Locate the .inf file (found in the extracted driver folder) and Click on Open Button.
  6. Click on the Finish button to complete the installation.

Tuesday, June 7, 2022

FolderLock.bat

FolderLock.bat


@ECHO OFF

if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK

if NOT EXIST Private goto MDPrivate

:CONFIRM

echo Are you sure to lock this folder? (Y/N)

set/p "cho=>"

if %cho%==Y goto LOCK

if %cho%==y goto LOCK

if %cho%==n goto END

if %cho%==N goto END

echo Invalid choice.

goto CONFIRM

:LOCK

ren Private "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"

attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"

echo Folder locked

goto End

:UNLOCK

echo Enter password to Unlock Your Secure Folder

set/p "pass=>"

if NOT %pass%== %sital% goto FAIL

attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"

ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Private

echo Folder Unlocked successfully

goto End

:FAIL

echo Invalid password

goto end

:MDPrivate

md Private

echo Private created successfully

goto End

:End

Sunday, May 15, 2022

javascript download image from url

https://www.edureka.co/community/85782/how-do-i-add-a-delay-in-a-javascript-loop#:~:text=The%20setTimeout()%20function%20is,in%20succession%20without%20any%20delay.



var i = 15;                  //  set your counter to 1

function myLoop() {         //  create a loop function

  setTimeout(function() {   //  call a 3s setTimeout when the loop is called

    console.log('hello');   //  your code here

    i++;                    //  increment the counter

    

function download(source){

const fileName = source.split('/').pop();

var el = document.createElement("a");

el.setAttribute("href", source);

el.setAttribute("download", fileName);

document.body.appendChild(el);

el.click();

el.remove();

}

if (i < 150) {           //  if the counter < 10, call the loop function

      

  myLoop();             //  ..  again which will trigger another 

var url='https://asmitapublication.com/wp-content/uploads/real3d-flipbook/flipbook_256/';

var file= i +'.jpg'

let source = url + file;

console.log(`${source}`); 

download(source);

    }                       //  ..  setTimeout()

  }, 500)

}


myLoop();

The setTimeout() function is non-blocking and will return immediately. Therefore your loop will iterate very quickly and it will initiate 3-second timeout triggers one after the other in quick succession. That is why your first alerts pops up after 3 seconds, and all the rest follow in succession without any delay.

You may want to use something like this instead:

var i = 1;                  //  set your counter to 1

function myLoop() {         //  create a loop function
  setTimeout(function() {   //  call a 3s setTimeout when the loop is called
    console.log('hello');   //  your code here
    i++;                    //  increment the counter
    if (i < 10) {           //  if the counter < 10, call the loop function
      myLoop();             //  ..  again which will trigger another 
    }                       //  ..  setTimeout()
  }, 3000)
}

myLoop();                   //  start the loop

Hope it work!!
Thank you!


https://stackoverflow.com/questions/17527713/force-browser-to-download-image-files-on-click


 var link = document.createElement('a');

link.href = 'https://asmitapublication.com/wp-content/uploads/real3d-flipbook/flipbook_256/11.jpg';

link.download = 'Download.jpg';

document.body.appendChild(link);

link.click();

document.body.removeChild(link);




function download(source){

const fileName = source.split('/').pop();

var el = document.createElement("a");

el.setAttribute("href", source);

el.setAttribute("download", fileName);

document.body.appendChild(el);

el.click();

el.remove();

}



https://www.codegrepper.com/code-examples/javascript/javascript+download+image+from+url


download image from url javascript
javascript by Hiren Reshamwala on Sep 27 2021 Donate Comment
0
nodejs download image from url
javascript by ROCKY6         on Jun 22 2020 Donate Comment
1
javascript download image
javascript by Undefined         on Apr 28 2021 Donate Comment
-1
upload file from url javascript
javascript by Fine Fowl on Sep 12 2020 Comment
0