Questions tagged [head]

DO NOT USE as this is an ambigous tag. It might refer to HTML

element, UNIX command, HTTP HEAD method. Instead use [html] for questions about html, [http-head] for questions about the HTTP HEAD method, [unix-head] for question about the UNIX head command.

The <head> element is a container for all the head elements.

The element must include a title for the document, and can include scripts, styles, meta information, and more.

The following elements can go inside the element:

<title> (this element is required in the head section)
<style>
<base>
<link>
<meta>
<script>
<noscript>

head is also a unix command which displays the first lines of a file. It's counterpart which displays the last lines is tail ().

Example: head -n 10 file will output first 10 lines of file.


Related

807 questions
14
votes
8 answers

Reversing a List in Prolog

I have finished a homework assignment for my programming class. I was supposed to create a Prolog program that reverses a list. I, however, am having trouble understanding why exactly it works. %1. reverse a…
Jared
  • 391
  • 2
  • 6
  • 14
14
votes
1 answer

How to customize h:head when using ui:composition template?

I am using JSF to render an HTML page. I design the page like it :
le2tbomi
  • 165
  • 1
  • 1
  • 8
13
votes
1 answer

Best practice for handling HTTP HEAD request with Django on App Engine

I'm receiving HEAD requests in my application, and wondering on the best way to handle them. Options are: convert them to GETs, process GET normally, then: strip the body (though I'm not sure how - response.content = '' doesn't seem to do it. it…
Paul Biggar
  • 27,579
  • 21
  • 99
  • 152
12
votes
1 answer

One or more resources has the target of 'head' but not 'head' component has been defined within the view

I created a JSF page with PrimeFaces components. The project runs fine, but the PrimeFaces UI look and feel is completely missing. I'm only noticing below message in server log: One or more resources has the target of 'head' but not 'head'…
James Forland
  • 155
  • 1
  • 1
  • 6
11
votes
1 answer

What are 'base' and 'head' repo in GitHub web UI?

GitHub's UI is fairly unintuitive and poorly thought-out, so here's a problem and a question: What is the "head" repo? What is the "base" repo? I do not know which one is being copied from. The words "base" and "head" mean the same thing. The "head"…
Ryan
  • 1,486
  • 4
  • 18
  • 28
11
votes
4 answers

Jenkins Multi-Branch job fails for some branches

I have a Jenkins Multi branch job that checks out and builds code from GitLab. Until recently it was working without issue but now some (but not all) branches from the good master fail to build. Master always builds without issue. When I branch…
AlRal
  • 216
  • 3
  • 10
11
votes
1 answer

What is the difference between `script` and `link as="script"` tags?

Additionally to the standard method of loading scripts: I have seen people do this: Is there any difference? Note: There's a similar What's the difference between using…
leonheess
  • 16,068
  • 14
  • 77
  • 112
11
votes
7 answers

Explanation of code (linked list C)

This is not my code. I took this code off this website: http://www.macs.hw.ac.uk/~rjp/Coursewww/Cwww/linklist.html I am using for reference material on how to build a linked list. I'm a little confused on what is going on. Can someone please…
ShadyBears
  • 3,955
  • 13
  • 44
  • 66
10
votes
2 answers

Python HTTP HEAD - dealing with redirects properly?

I can use urllib2 to make HEAD requests like so: import urllib2 request = urllib2.Request('http://example.com') request.get_method = lambda: 'HEAD' urllib2.urlopen(request) The problem is that it appears that when this follows redirects, it uses…
Krenair
  • 570
  • 5
  • 21
10
votes
7 answers

Warning: next-head-count is missing

I'm using a custom _document.js from Next documentation. In result, I keep getting a warning message printed out to the console. I've tried to restart my server and emptied my browser's cache. My _document.js is inside a "pages" folder as it should…
Michal K
  • 213
  • 2
  • 3
  • 10
10
votes
3 answers

head, tail and backward read by lines of a text file

How to implement somethig like the 'head' and 'tail' commands in python and backward read by lines of a text file?
user739650
  • 103
  • 1
  • 1
  • 4
10
votes
7 answers

Head node in linked lists

I have problems with understanding what is the nature of the first node, or the so called head, in a linked list data structure. A linked list consists of nodes, and each node contains some data and a link to another node in the list. But is the…
user42155
  • 48,965
  • 27
  • 59
  • 60
10
votes
2 answers

Algorithm to count people in a crowd

We need to count the number of people in a crowd and we have used the opencv_traincascade but it detects many things. What could be the other approach we can use?
user2940240
  • 159
  • 1
  • 2
  • 10
9
votes
1 answer

Why is blazor HeadOutlet rendering after the App

I'm using a HeadOutlet on a server side pre-rendered net6.0 app to set some header tags such as meta description but the server renders the app first and then the headers which makes search engines ignore it. @page "/" @namespace…
user3713080
  • 399
  • 4
  • 17
9
votes
3 answers

HEAD request receives "403 forbidden" while GET "200 ok"?

after several months having the site disappear from search results in every major search engine, I finally found out a possible reason. I used WebBug to investigate server header. See the difference if the request is HEAD or GET. HEAD Sent…
mjsarfatti
  • 1,725
  • 1
  • 15
  • 22
1 2
3
53 54