Vagrant Issues on Mac

If you are running into problems with Vagrant. This is probably your scenario.

macOS High Sierra (version 10.13.6)

Vagrant 2.1.2

VirtualBox 5.2.16

You will type in “vagrant up”

and get this error:

Bringing machine ‘default’ up with ‘virtualbox’ provider…

==> default: Clearing any previously set network interfaces…

There was an error while executing `VBoxManage`, a CLI used by Vagrant

for controlling VirtualBox. The command and stderr is shown below.

Command: [“hostonlyif”, “create”]

Stderr: 0%…

Progress state: NS_ERROR_FAILURE

VBoxManage: error: Failed to create the host-only adapter

VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory

VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface

VBoxManage: error: Context: “RTEXITCODE handleCreate(HandlerArg *)” at line 94 of file VBoxManageHostonly.cpp

You will start searching the web for this error and you will find out that you need to restart VirtualBox with the following command

sudo /Library/Application\ Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh restart

Once you run that command you will receive another error:

Loading VBoxDrv.kext

/Library/Application Support/VirtualBox/VBoxDrv.kext failed to load – (libkern/kext) system policy prevents loading; check the system/kernel logs for errors or try kextutil(8).

Error: Failed to load /Library/Application Support/VirtualBox/VBoxDrv.kext

Loading VBoxUSB.kext

/Library/Application Support/VirtualBox/VBoxUSB.kext failed to load – (libkern/kext) system policy prevents loading; check the system/kernel logs for errors or try kextutil(8).

Error: Failed to load /Library/Application Support/VirtualBox/VBoxUSB.kext

Loading VBoxNetFlt.kext

/Library/Application Support/VirtualBox/VBoxNetFlt.kext failed to load – (libkern/kext) system policy prevents loading; check the system/kernel logs for errors or try kextutil(8).

Error: Failed to load /Library/Application Support/VirtualBox/VBoxNetFlt.kext

Loading VBoxNetAdp.kext

/Library/Application Support/VirtualBox/VBoxNetAdp.kext failed to load – (libkern/kext) system policy prevents loading; check the system/kernel logs for errors or try kextutil(8).

Error: Failed to load /Library/Application Support/VirtualBox/VBoxNetAdp.kext

(kernel) Kext org.virtualbox.kext.VBoxNetAdp not found for unload request.

Failed to unload org.virtualbox.kext.VBoxNetAdp – (libkern/kext) not found.

(kernel) Kext org.virtualbox.kext.VBoxNetFlt not found for unload request.

Failed to unload org.virtualbox.kext.VBoxNetFlt – (libkern/kext) not found.

(kernel) Kext org.virtualbox.kext.VBoxUSB not found for unload request.

Failed to unload org.virtualbox.kext.VBoxUSB – (libkern/kext) not found.

(kernel) Kext org.virtualbox.kext.VBoxDrv not found for unload request.

Failed to unload org.virtualbox.kext.VBoxDrv – (libkern/kext) not found.

Fatal error: VirtualBox

I have spent two days trying to figure out the problem:

All I had to do is go to System Preferences > Security & Privacy.

Oracle will be blocked, you will need to click allow.

And then go ahead and run “vagrant up” again.

 

 

Advertisements

Sitecore: Create your first rendering component

We are going to be creating a rendering component. It will be a very simple component, you will have an idea how everything works, and then you will go ahead and create something more complex.

First things first is the checklist:

  1. Create a physical file in the path inetpub\wwwroot\tonySample\Website\xsl. 
  2. Create an item in Content Editor Tree in the Layouts\Renderings.
  3. And then you can insert wherever you like.

So lets begin:

Create an XSLT file, name it something that will be familiar to you, we will use an example and call it (component_tony.xslt).

sitecore_sample_rendering_component_tony

Next we will add some code to the XSLT file:

sitecore_sample_rendering_component_code

sitecore.component/component_tony.xslt – Get the raw code here

Now save it and lets go to the Sitecore.

Create a Rendering Component, name it whatever you wish, as you can see below I named my component Tony Rendering Component.

sitecore_content_tree_layouts_sample_rendering_component

In the Data section of your component item. Go ahead make the following changes:

sitecore_sample_rendering_component_data

Now if you insert this component somewhere on the page, it will show you the content that is included in the XSLT file.

Enjoy! Hope this helps. If there is any questions, please do not hesitate to ask.

Angular 2: Typescript Configuration File tsconfig.json

tsconfig.json file indicates that the folder is the root of a TypeScript project.

Most browsers understand ECMAScript 5 (ES5). Also we need to generate Map files, that will assist us with debugging. For compiling purposes and to have decorators run properly in our application we need to set (“emitDecoratorMetadata”: true) and (“experimentalDecorators”: true). Exclude option tells TypeScript not to compile the specific files. So now lets look at the code:

Continue reading Angular 2: Typescript Configuration File tsconfig.json