Getting “this class is not key value coding-compliant for the key backGroundView.'” when adding view from xib to scrollview

Getting error while adding subView

add ScrollView is for creating scrollview

  func addScrollView() {     self.scrollView.frame = CGRect(x: 0, y: 150, width: self.view.bounds.size.width, height: height)     self.scrollView.contentSize = CGSize(width: height * 3, height: self.view.bounds.size.width)     scrollView.isPagingEnabled = true     scrollView.backgroundColor = .orange     self.view.addSubview(scrollView)      var y = CGFloat(0.0)      for i in 0..<24 {         let customView = self.createCustomView(index: i)         customView.frame = CGRect(x: 0, y: y, width: 320, height: 200)         self.scrollView.addSubview(customView)          y += height     } } 

Here create custom view function is used to add custom subviews according to loop

func createCustomView(index: Int) -> UIView {      let eventView: EventView = Bundle.main.loadNibNamed("EventView", owner: self, options: nil)![0] as! EventView      if index == 0{         eventView.backgroundColor =     }      if index == 1{         eventView.backgroundColor =     }      return eventView } 

Modern Communication site, discussion board, adding rating impossible?

If you turn on the site feature of Team sites you get to have the full stack of apps, however adding a discussion board there is no ‘rating settings’ in the settings and even if you go there by editing the url (_layouts/RatingsSettings.aspx) it gives you an error message. Any clue why this is not permitted?

Adding menu of entity referenced links on a content-type page

I have this problem:

I created content type named “DramaVoice” and “dramavoice” role. An user with this role can edit his own Dramavoice page, adding some demos and articles.

I used entity reference for two fields, “demos” and “articles”. Actually owner of pages can click on “edit” link and modify the page. I want add a menu that displays some links, such as “Add new demo”, “add new article” that owner can click when reaches his page and is logged in, without click on “edit” link to perform these actions.

So, I need to know how to build URLS of entity reference links, if it is possible, or an other way that allows me to create these links.

I need also to put a “Contatt username” link for users that visit the page and want to contact the owner, but for this action maybe I can use “user/[author-uid]/contact”, for example.

Can someone help me?

Adding sata disk w/o controller to IBM X3400 M3

We have IBM X3400 M3 with SAS controller and and two disk with raid 1. We need extra space without protection. I try to add standart SATA disk to server. It has two SATA port on mainboard. When I connect SATA disk, it can’t boot from SAS controller, try to boot from sata. I can’t find any option in boot order for SAS controller. I try to adding SAS controller as boot device in bios but no solution.

I try to another option: buying PCIE 2.0 1x sata controller (IO-PCE9215-4I). This card hasn’t got rom, only working in operation system. Amber light on near PCIE slot. I try to disable rom boot option and legacy mode for PCIE slot but no solution. System auto restart while detecting booteable adapter step.

I can’t find detail about third party PCI Express sata controller or any PCI Express card working or not with IBM server.

I will making plan to test with PCI sata controller.

Is there any way to adding sata disk to this server without new IBM sas/sata controller?

How to delete a folder from Document library that is generated on adding an attachment to a list item in SharePoint using PowerShell

There is a document library named “RequestDocuments”. When I add an attachment to a list item, that corresponding file (for example abc.txt with the item ID as 112) is getting created in the following path “RequestDocuments/2018/112/abc.txt”. There is a year folder automatically getting created under the Documnet library. Under this year folder, another folder corresponding to the item ID is created. The attachment is getting stored under this item Id folder. I want a powershell script to delete these attachments and the corresponding item ID folder.

JAVA_HOME is not set correctly after adding and appending to PATH

Ubuntu 14.04 LTS Bash version 4.3.11(1)-release

I’ve added $ JAVA_HOME to ~/.profile (and .bash_profile) like this:

# # This is the default standard .profile provided to sh users. # They are expected to edit it to meet their own needs. # # The commands in this file are executed when an sh user first # logs in. # # $  Revision: 1.10 $   #  # Set the interrupt character to Ctrl-c and do clean backspacing. if [ -t 0 ] then         stty intr '^C' echoe fi  # Set the TERM environment variable eval `tset -s -Q`  # Set the default X server. if [ $  {DISPLAY:-setdisplay} = setdisplay ] then     if [ $  {REMOTEHOST:-islocal} != islocal ]     then         DISPLAY=$  {REMOTEHOST}:0     else         DISPLAY=:0     fi     export DISPLAY fi   # List files in columns if standard out is a terminal. ls()    { if [ -t ]; then /bin/ls -C $  *; else /bin/ls $  *; fi }  export JAVA_HOME=$  (/usr/bin/java) export PATH=$  JAVA_HOME/jre/bin:$  PATH 

But still typing echo $ JAVA_HOME yields:

XXX:~$   echo $  JAVA_HOME JAVA_HOME /usr/local/lib/jdk-8u25/