Overview of how to build an “Actions/Activity” feature like the one in trello, where all actions are displayed in a last in time descending order

If I wanted to build a feature into my app as the one in trello where the latest actions of the team are displayed in a list order in descending (time). How would you design such a system to track actions?

enter image description here

Load category, but only with limited data to build a Breadcrumb

Based on the helper catalog there is a function that returns a path for the breadcrumb to be displayed in Magento when viewing a Product.

I want to enhance this method to return the full path of the categories back to me.

Current implementation:

  ...           if ($  this->getProduct()) {                 $  path['product'] = array('label'=>$  this->getProduct()->getName());             }         $  this->_categoryPath = $  path; 

Here I want to append a process that load the categories of the product via getCategoryIds(), which is available trough the getProduct() method.

I’d like to load a conditional collection, that only loads the respective ID of the categories but only the following data:

  • url
  • name
  • title
  • my_custom_eav_param

I assume something like:

        if ($  product = $  this->getProduct()) {             $  cats = $  product->getCategoryIds();             foreach ($  cats as $  category_id) {                 $  attributesToSelect = [''];                 $  _cat = Mage::getModel('catalog/category')                     ->getCollection()                     ->addAttributeToSelect('*')                     ->addAttributeToFilter(['name', 'id', 'url', 'description'])                     ->load()                     ->getSelect()->__toString();                 var_dump($  _cat); die;             }             $  path['product'] = array('label'=>$  this->getProduct()->getName());         }          $  this->_categoryPath = $  path; 

but this does not work. How can I specify what entities are loaded in order to keep load to DB as low as possible for this requests? To load the whole category all the time is a lot of traffic, or can it be ignored completely?

What’s the closest RAW build possible to the Grey Mouser in 5e? [on hold]

I am of course referring to the legendary figure of Fritz Lieber’s Lankhmar series (one of the things Gary Gygax said was his inspiration to invent D&D).

I am assuming this character is so off-the-hook awesome that I cannot see any way to make him using strictly RAW, but what’s the closest we can get?

Some things to keep in mind:

  • His acrobatics, stealth and persuasion are incredible (especially acrobatics)
  • His swordsmanship is fantastic, in a finesse-sort-of-way (rapier?), and when combined with a successful acrobatic move he can hit almost anything
  • He is devastating with a sling, e.g. can knock someone out or do great damage (a thing which seems outside the RAW in 5e)
  • He has a custom-made bodysuit that enhances stealth, and he is very hard to hit in melee (almost un-hittable!) despite that he has no armor or shield beyond this
  • He has some low-level arcane spellcasting abilities
  • While he is not immune to being charmed, he is fairly resistant to it

There may be other features I am overlooking from Lieber’s material, but those are the high points. What’s the closest you could come in RAW?