Why does a year 0001 appear on my blogdown / hugo blog? - hugo

On my blog, I get a year 0001 that has a single empty post from January 1. I thought it was because I had a .bib file in /content/post, so I added "\\.bib$" to ignoreFiles in config.toml. It didn't help -- can anyone?

I had the same problem. After changing all source files from *.md to *.Rmd it worked fine.

For me the cause of this error (year set to 0001-01-01) was a different dash char. ‑ instead of -
print(ord('‑')) # 8209
print(ord('-')) # 45
Never thought it could be the case.

Related

Scorecard absolute comparison with % symbol

I am trying to make a comparison between two different dates in the GDS and present that information in a scorecard.
I have done this in the past with no problem, but this time I want to do an absolute comparison. Although I checked the box to make it an absolute comparison, the information appears with a % sign after it. I would like to see a "p.p." after it or nothing at all.
How can I achieve this result?
You can find below an image of what is happening.
Thanks in advance!
UPDATE:
I solved the issue by aligning all the elements of that scorecard to the right and adding a text box in front of the % sign. It is not perfect, but it works.
Not the answer you're looking for, but I don't think this is currently possible. I had to add a disclaimer below the scorecards to indicate the comparison values are absolute (despite the percentages). Not ideal, but at least it shows the info

Google Sheets search and select from Database

i'm trying to make a advanced search but i'm stuck at all. I tried it with =SVERWEIS and also with INDEX but failed.
I hope the doc explains enough what I wanna try to do but failed at all. My knowlege isn't that bad but here I need help. Would be nice if someone could help me with this.
https://docs.google.com/spreadsheets/d/1BGFzntBg-YHcRHM0qChFg9yoLahoOTUehoV3_9DY9PU/edit?usp=sharing
This is the doc and can be edited.
Thanks for your time reading my bad english post. :)
https://prnt.sc/t7c85l
use:
=ARRAYFORMULA(VLOOKUP(A3:A; D:H; MATCH(B2; D2:H2; 0); 0))
spreadsheet demo
You can write formula as given below -
=if($B$2=E2;E5;0) + if($B$2=F2;F5;0) +if($B$2=G2;G5;0)+if($B$2=H2;H5;0).
Copy this formula in B5 cell in your sheet and try to change the filter from B2 cell.
You can extend this formula for 400 fields.

Unable to get date xAxis working with unix timestamp

I am having some trouble understanding the Anychart axis documentation.
Using this example https://jsfiddle.net/gvb29tc2/2/ i have some data points i want to plot using the unix date stamp for x-axis.
[
1497786600, // <- ID
'Sun Jun 18 2017 19:53:35 GMT+0800 (SGT)', // <- date
1497786815630, // <- unix date
...
]
I select it using x: new Date([2]), but i cant get it to display. Just outputs a single vertical line. Also, i wanted the major tick on 5min and minor on 2min. Can't get that working either.
Since all i am trying is a simple line chart, i think i'm missing something stupid. Can someone explain where i'm going wrong please ?
You shouldn't use any functions in mapping settings.
Right way is
x:[2]
After that you can work with mapped value as timestamp
https://jsfiddle.net/gvb29tc2/4/

After adding snippit of code to default/setting.php bombarded by header warnings

I'm quite aware this question has been asked before multiple times, but I have no idea how to deal with this in my specfic situation. All I did was modify the default/settings.php file in order for the toolbar drawer in drupal to support more shortcuts.
I inserted the following code in the bottom of the document:
/**
* Changing Max Shortcut Slots
*
* The shortcut module supports a total of seven shortcuts slots. To change
* the quantity of supported enabled shortcuts the 'shortcut_max_slots' must be
* modified accordingly.
*
* #see https://www.drupal.org/documentation/modules/shortcut
*/
$conf['shortcut_max_slots'] = 11;
Well I got it to work, which is good, but I'm assaulted by a barrage of warnings, each one stating the following:
Warning: Cannot modify header information - headers already sent by (output started at /home/adamdcco/public_html/hadarc.com/cms/sites/default/settings.php:1) in drupal_send_headers() (line 1221 of /home/adamdcco/public_html/hadarc.com/cms/includes/bootstrap.inc).
I'm lost, I looked into the bootstrap file and navigated to the specficed line and, unfortunately no lightbulb. Sorry I'm new :), but I did search around, before being utterly overwhelmed
Any and all help is appreciated :P
Well than looks like we're good :)
I searched around some more and came across this question/answer
How to fix "Headers already sent" error in PHP , in a nutshell it's the same question, amazing answer, so yeah just in case anyone cared the code I inputted:
$conf['shortcut_max_slots'] = 11;
should of had quotes around the eleven, and any extra spaces in the beginning and in the end of the file had to be removed. Live and Learn :)

HtmlPurifier AutoParagraph + Html.Allowed

please help me understand what I'm doing wrong. I'm trying to use HtmlPurifier with a Html.Allowed whitelist, but the results are just messed up.
Here is an example of Html.Allowed disabled – everything works as expected. Now I set a whitelist containing all used tags (span, p, ul, li) and HtmlPurifier throws warnings and returns an unexpected result, see here.
I have spent hours trying to find my mistake. Any help is much appreciated!
David
It's a bug. If you add 'div' to your Allowed list, you will have the desired effect.
It has been fixed in:
commit 0680832d41d4d5377ea3ea8d8c10fd574d2deb7e
Author: Edward Z. Yang
Date: Tue May 21 17:19:59 2013 -0700
Use info_parent_def to get parent information, since it may not be present in info array.
Signed-off-by: Edward Z. Yang

Resources