Thursday, October 29, 2015

How to resize a Ubuntu partition


This How To covers the following scenario:
GParted is showing that I have the following partitions

PartitionFile SystemSize
/dev/sda1ext492.09 GiB
/dev/sda2extended7.90 GiB
/dev/sda5linux-swap7.90 GiB
unallocatedunallocated107.91 GiB

My goal is to use the whole unallocated partition
  1. Add a device to the machine with the Ubuntu "burned" on it ( http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-windows )
  2. Reboot the machine
  3. Click Try Ubuntu
  4. Press ALT + T
  5. Type the following command:

    sudo gparted

  6. Highlight the swap partition /dev/sda5
  7. In the menu, click Partition
  8. Click Swapoff
  9. Highlight the swap partition /dev/sda5
  10. In the menu, click Partition
  11. Click Delete
  12. Highlight the extended partition /dev/sda2
  13. In the menu, click Partition
  14. Click Delete
  15. Highlight the partition that you want to resize /dev/sda1
  16. In the menu, click Partition
  17. Click Resize/Move
  18. In Resize/Move /dev/sda1 window, expand the size to 100 GiB
  19. Click Resize/Move
  20. In the menu, click Partition
  21. Click New
  22. In Create new Partition window, change Create as to Extended Partition
  23. Click Add
  24. Highlight unallocated
  25. In the menu, click Partition
  26. Click New
  27. In Create new Partition window, change Create as to Logical Partition
  28. Change File System to linux-swap
  29. Click Add
  30. In the menu, click Edit
  31. Click Apply All Operations
  32. In Apply operations to device window, click Apply
  33. Click Close

Saturday, October 17, 2015

How to connect to the SDL Tridion 2011 core services client?

var binding = new WSHttpBinding {
     TransactionFlow = true,
     MaxReceivedMessageSize = 83886080,
     ReaderQuotas = { MaxStringContentLength = 83886080 },
     OpenTimeout = TimeSpan.FromMinutes(5),
     ReceiveTimeout = TimeSpan.FromMinutes(5),
     CloseTimeout = TimeSpan.FromMinutes(5),
     SendTimeout = TimeSpan.FromMinutes(5)
};

var address = new EndpointAddress("http://{domain}/webservices/CoreService2011.svc/wsHttp");

SessionAwareCoreServiceClient client = new SessionAwareCoreServiceClient(binding, address);

{domain} is the domain where the CMS Administration GUI is installed

Example: 

List all publications of where luizcgjr.blogspot.com is the domain that hosts the CMS Administration GUI

var  binding = new WSHttpBinding {
     TransactionFlow = true,
     MaxReceivedMessageSize = 83886080,
     ReaderQuotas = { MaxStringContentLength = 83886080 },
     OpenTimeout = TimeSpan.FromMinutes(5),    
     ReceiveTimeout = TimeSpan.FromMinutes(5),    
     CloseTimeout = TimeSpan.FromMinutes(5),    
     SendTimeout = TimeSpan.FromMinutes(5)
};

var address = new EndpointAddress("http://luizcgjr.blogspot.com/webservices/CoreService2011.svc/wsHttp");

using (SessionAwareCoreServiceClient client = new SessionAwareCoreServiceClient(binding, address)) {
     var publications = _client.GetSystemWideList(new PublicationsFilterData());    

     foreach (var publication in publications) {
          Console.WriteLine(publication.Title);
     }
}

How the item types in Tridion are organized?


  1. Publication
    1. Folder
      1. Folder
      2. Schema
      3. Component
      4. ComponentTemplate
      5. PageTemplate
      6. TargetGroup
      7. TemplateBuildingBlock
      8. VirtualFolder
    2. Structure Group
      1. StructureGroup
      2. Page
    3. Category
      1. Category
      2. Keyword