Combining the meta description and Open Graph Protocol description into one tag

Yes, you can combine them. To test it, I made the simple HTML page below, uploaded it to a server, then ran the page through Facebook’s URL Linter. It reported no warnings related to the description tag (only about the missing og:image tag) and correctly read the description. <!doctype html> <html> <head> <meta name=”description” property=”og:description” … Read more

Export table to file with column headers (column names) using the bcp utility and SQL Server 2008

This method automatically outputs column names with your row data using BCP. The script writes one file for the column headers (read from INFORMATION_SCHEMA.COLUMNS table) then appends another file with the table data. The final output is combined into TableData.csv which has the headers and row data. Just replace the environment variables at the top … Read more

How to change site title, site header and index title in Django Admin?

As of Django 1.7 you don’t need to override templates. You can now implement site_header, site_title, and index_title attributes on a custom AdminSite in order to easily change the admin site’s page title and header text. Create an AdminSite subclass and hook your instance into your URLconf: admin.py: from django.contrib.admin import AdminSite from django.utils.translation import … Read more

Authorization bearer token Angular 5

I suggest to use HttpInterceptor for setting default HTTP headers on outgoing requests rather than adding an additional HTTP header to each call. HTTP Client – Setting default headers @ angular.io In your example you can do the following: import { Http, Headers, Response } from ‘@angular/http’; getLoggedInUser(auth_token): Observable<any> { const headers = new Headers({ … Read more