Unable to create new site using (hugo) Academic theme - hugo

I am new to blogdown and working my way through the fabulous resource to guide me. Unfortunately, I am unable to use the academic theme in hugo. To create a new site I have:
Created a new (empty) project in a brand new working directory.
Installed blogdown and hugo, as recommended
Tried to create a new site by running the following:
blogdown::new_site(theme = "gcushen/hugo-academic")
Unfortunately, I then encounter the following errors:
Error: Unable to find theme Directory: C:\Users\myusername\Documents\MyBlog\themes\academic
Error: Unable to find theme Directory: C:\Users\myusername\Documents\MyBlog\themes\academic
Error: Unable to find theme Directory: C:\Users\myusername\Documents\MyBlog\themes\academic
I also encounter the following:
Error in shell(cmd, mustWork = TRUE, intern = intern) :
'"C:\Users\myusername\AppData\Roaming\Hugo\hugo.exe" convert toYAML --unsafe' execution failed with error code 65535
Where am I going wrong? I also tried to use the guide on installing/ creating via RStudio but encountered the same issue. I am new to blogdown so would appreciate any assistance.
Thank you!
sessionInfo()
R version 3.5.2 (2018-12-20)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
locale:
[1] LC_COLLATE=English_Australia.1252 LC_CTYPE=English_Australia.1252 LC_MONETARY=English_Australia.1252 LC_NUMERIC=C
[5] LC_TIME=English_Australia.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] Rcpp_0.12.17 bookdown_0.9 later_0.7.3 digest_0.6.15 rprojroot_1.3-2 R6_2.2.2 backports_1.1.2 magrittr_1.5 evaluate_0.10.1
[10] blogdown_0.10 stringi_1.1.7 promises_1.0.1 rstudioapi_0.7 rmarkdown_1.10 tools_3.5.2 stringr_1.3.1 httpuv_1.4.4.2 xfun_0.4
[19] compiler_3.5.2 htmltools_0.3.6 knitr_1.20

This is due to a breaking change in the hugo-academic theme. I have fixed it in blogdown a few hours earlier. Please try the development version:
remotes::install_github('rstudio/blogdown')
Restart R and create a new site with this theme again.

Related

How can I install cakephp2 in 2022?

can anyone tell me how can I install cakephp 2 in 2022 I tried many ways to install it I also have its zip file which I extract it and when I tried to run it it shows.
Fatal Error
Error: Cannot use 'String' as class name as it is reserved
File: E:\xampp\htdocs\cakephp2.3\lib\Cake\Utility\String.php
Line: 27
Notice: If you want to customize this error message, create app\View\Errors\fatal_error.ctp
CakePHP 2 needs php5
since Version 2.8 you can use php70
php71 is possible but you need to install mcrypt seperatly.
Its possible to run a CakePHP 2.8 on php72 with some core hacks. But i wouldn't recommend this.
I got my answer we can download its zip file from github and copy its file in htdocs folder and run it without an issue. By the way I downloaded cakephp 2.10. and it is also running in xampp with php version 8. If in your system it is not running then try to use xampp with php version 7.

Unreal Engine 4.24: Plugin 'AndroidPermission' failed to load because module 'AndroidPermission' could not found

I am preparing a project about self-driving vehicles and I will work on the Carla simulator. I am using Ubuntu 18.04 LTS and installed Unreal Engine version 4.24. I've done the steps in the Carla document one by one, but when running the UE4Editor, I get the AndroidPermission not found error. Even though I disabled this on the uplugin file of it, still the same problem persists. How can I solve this problem? Please help me.
Are you trying to run the Unreal Editor? Or are you calling make launch to start CARLA?
In the first case, set "EnabledByDefault": false and "Installed": true in /Engine/Plugins/Runtime/AndroidPermission/AndroidPermission.uplugin. I assume that the Installed attribute is set to False on your end.
In the second case, try to start CARLA in Visual Studio Code by selecting the launch configuration CarlaUE4Editor(Development). For this you need to open the workspace inside /Unreal/CarlaUE4/CarlaUE4.code-workspace.
You also need to set "EnabledByDefault": false on /Engine/Plugins/Online/Android/OnlineSubsystemGooglePlay/OnlineSubsystemGooglePlay.uplugin because the plugin OnlineSubsystemGooglePlay requires AndroidPermission.

Can Fody and its plugins be used with .NET Core (3.0)?

As the title says, I'm having trouble getting Fody, and the plugin Fody.PropertyChanged, to work in .NET Core 3.0, or any .NET Core version. Reading the issues on the respective GitHub pages doesn't answer my question, nor am I able to find any relevant answers.
Once installed I cannot run my WPF project anymore and I am given the following error:
The target process exited without raising a CoreCLR started event.
Ensure that the target process is configured to use .NET Core.
This may be expected if the target process did not run on .NET Core.
The program '[21820] CalculationToolsApp.exe' has exited with code -2147450749 (0x80008083).
Any suggestions?
EDIT: I found out that I (maybe) cant use "Fody.Costura" with "Fody.PropertyChanged" like this in the FodyWeavers.xml file:
<Weavers>
<PropertyChanged />
<Costura />
</Weavers>
Which shouldn't be a problem because with .NET Core I can create a single file application anyway. Removing the Costura reference from the FodyWeavers.xml solved my problem!
It should work. Fody is compatible with .NET Standard.
Create a new WPF app using the WPF App (.NET Core) template in Visual Studio 2019 or using the dotnet new wpf command
Install the Fody and PropertyChanged.Fody NuGet packages
Add a file named "FodyWeavers.xml" with the following contents to the project:
<Weavers>
<PropertyChanged />
</Weavers>
Build
If you then decompile the assembly using a decompiler such as for example dotPeek, you should see the injected code as expected, e.g.:
public string GivenNames
{
// Method get_GivenNames with token 06000009
get
{
return this.<GivenNames>k__BackingField;
}
// Method set_GivenNames with token 0600000A
set
{
if (string.Equals(this.<GivenNames>k__BackingField, value, StringComparison.Ordinal))
return;
this.<GivenNames>k__BackingField = value;
this.<>OnPropertyChanged(<>PropertyChangedEventArgs.FullName);
this.<>OnPropertyChanged(<>PropertyChangedEventArgs.GivenNames);
}
}
Costura didnt work in wpf with .net core 3.1 for me either.
In .net core 3.1 you can use this instead:
Build -> publish -> create profile -> Edit "Configuration"
Target Runtime = win-x64 (or what ever target system you want, but NOT "portable")
expand "File Publish Options"
check: Produce single file
save
When you now choose build -> publish -> publish button it will create the single file.
It seems to be that they stopped the costura project because of the "Single-file executables" feature of .net core. Though this feature is still behind costura because you have to set a target runtime.
https://github.com/Fody/Costura/issues/442
In dotnet core 3 there are two new features
Single-file executables
Assembly linking
With these features included in the dotnet tool set, the value
proposition of Costura is greatly diminished. With that in mind I
think long term Costura should cease to be used as people transition
over.
Please comment with any input.
Plan:
disable issues
PR will still be accepted but only for bug fixes
add note to readme
add note to nuget description
write a warning in
update for .NET 5:
for .NET 5 and the current visual studio version 16.10.2 the wizard changed. I could not get this to work with the wizard anymore though i checked the options for single file etc.. But using the console worked: tools -> command line -> developer command prompt -> enter this:
dotnet publish -r win-x64 --self-contained true -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true
.NET 5 not compiling to single file executables

installing latest Realm (0.102.0) fails for Swift in Xcode environment

update: May 20--I just tried Realm 0.103.0 and received the same error when running a Cocoa OS X app using Realm.
I'm trying to install the latest Realm Database (0.102.0) to use with Xcode 7.3 I'm upgrading from Realm 0.98.
I receive the following runtime error:
dyld: Library not loaded: #rpath/libswiftIOKit.dylib
Referenced from: /Users/user/Library/Developer/Xcode/DerivedData/demo-timelines-eepbldhwvcbcmhhjqauxknfhzofv/Build/Products/Debug/demo-timelines.app/Contents/Frameworks/RealmSwift.framework/Versions/A/RealmSwift
Reason: image not found
I decided to start with a fresh Xcode 7.3 project, but I get the same error. What I have so far:
New Cocoa App (for OS X 10.11.4) (using Swift language with a Storyboard)
Downloaded Realm database for Swift (Realm version 0.102.0)
Dragged framework files from OS X->swift 2.2 to the binaries section
Updated the path to the framework (in Build Settings)
Added a single line to the ViewController "import RealmSwift"
I get the same error when attempting to do the fresh install. I've done several Realm Database updates without incident.
Suggestions?
I read this post (github.com/realm/realm-cocoa/issues/3619), so I decided to upgrade Xcode from 7.3 to 7.3.1 I'm surprised that it didn't automatically update . . . Anyway, the upgrade fixed my Realm (0.103.2)/Swift2.2 (on OS X) problem. –

Javascript error on new install of 7.0.1.0.2

I've had a good look around and can't see anyone else with the same issue.
I've downloaded the latest install for DNN (via this page https://dotnetnuke.codeplex.com/relea...) and tried to run it as a new install (via visual studio development web server) but the site crashes on the second page of the wizard, I get a javascript error "Invalid character" in the jquery library and nothing happens are that.
Using the VS javascript debugger I can see in the call stack that the error seems to stem from some javascript used to update the progress bar found on the installation page, the line in question is...
var result = jQuery.parseJSON(status);
If I let the code run from here I get a further error of "Unable to get property 'progress' of undefined or null reference" in the same block of javascript code a few lines down...
if (result.progress < $("#progressbar").progressbar('value')) return;
Details of my installation;
Running on Windows 7 64 bit (have also tried a Windows 7 32 bit but get same error).
Using VS 2010
Installing to new (blank) database on MS SQL server 2008
Using a SQL user for authentication
Have tried the suggestion of "unblocking" the zip file before downloading
Given the NETWORKSERVICE user full control over the DNN website folder
I've tried the installation with IE 10 & the latest version of Chrome (30.0.1)
In addition to trying to run the installation using the wizard I also found that you can disable the wizard via this web.config setting;
Running with this I am able to successfully install DNN but when redirecting from the basic wizard page to the DNN site I get an object not set to an instance of an object error on this line...
if (PortalSettings.ActiveTab.PageHeadText != Null.NullString && !Globals.IsAdminControl())
... of the default.aspx code behind
I had a play with DNN 6 last year and didn't have any issues installing so to confirm that was still the case I downloaded the last release of DNN 6 (version 6.0.2.09 from here https://dotnetnuke.codeplex.com/relea...) and was again able to install that version without any problems at all using the same SQL server and running through VS 2010.
Any help would be appreciated.
Thanks,
I was having the same problem and switching the pipeline mode for the application pool to "Integrated" fixed the issue on PortalSettings comming on null on this line:
if (PortalSettings.ActiveTab.PageHeadText != Null.NullString && !Globals.IsAdminControl())

Resources