recentpopularlog in

therobyouknow : update   63

8 - How can we get Block Bundle Type for block in code? - Drupal Answers
use \Drupal\block_content\BlockContentInterface;


/**
* Implements HOOK_preprocess_block().
*
* @param $variables
*/
function mymodule_preprocess_block(&$variables) {
$content = $variables['elements']['content'];
if (isset($content['#block_content']) && $content['#block_content'] instanceof BlockContentInterface) {

if ($content['#block_content']->bundle() == 'xxx') {
// ...
}

}
}
8  drupal8  drupal  web  dev  cms  computing  module  theme  block  update  refresh  force  cache  disable  twig  specific  howto  question  answer  problem  solution  time  computed  generated  calculated 
march 2019 by therobyouknow
Composer: It’s All About the Lock File
Install or Update?

People often get confused as to whether they should install or update. Once you start to think about them as acting upon the lock file instead of the dependencies, things become much easier to think about.

Running composer install will:
- Check if a composer.lock exists
- If not, perform a composer update to create one
- If composer.lock exists, install the specified versions from the lock file

Running composer update will:
- Check composer.json
- Determine the latest versions to install based on your version specs
- Install the latest versions
- Update composer.lock to reflect the latest versions installed
php  composer  cli  deployment  computing  web  dev  install  update  composer.lock  composer.json  lock  exact  recommended  dependencies  dependency 
april 2017 by therobyouknow
How To Always Run Programs As Administrator In Windows 7
If you want to keep Java up-to-date without annoying pop up - it will still ask to let the install take place.
howto  settings  microsoft  windows  windows7  computing  privileges  admin  sysadmin  security  patch  update  java  jucheck.exe 
october 2012 by therobyouknow
sql - How does one concatenate database values into a string? - Stack Overflow
Useful for marking which bugzilla bugs have migrated to JIRA.

UPDATE `bugs` SET short_desc = CONCAT('BUG', bug_id, ': ', short_desc ) WHERE product_id = 3 OR product_id = 9

UPDATE `bugs` SET short_desc = CONCAT( short_desc, ' [JIRA]' ) WHERE product_id = 3 OR product_id = 9
concatenate  database  string  within  variable  query  append  prepend  join  combine  link  value  prefix  suffix  field  update  insert  computing  mysql  howto  work 
december 2011 by therobyouknow
Yet another blog: How to install MySql in CentOS 5.3 from shell or webmin
Cure for error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'. This works for setting up mysql properly on CentOS
linux  mysql  php  centos  solution  error  connect  server  sock  socket  problem  solved  howto  computing  database  sql  setup  configuration  command  tip  install  re-install  remove  upgrade  update  computer 
july 2010 by therobyouknow
Nokia Firmware / Software Unbranding
download nokia service suite 1.0.38.15 from b-freaks own website to be sure that your device will be seen
cellphone  code  firmware  flash  hack  mobile  n95  nokia  phone  product  software  symbian  update  upgrade  branding  flashing  debrand  5500  howto  unbrand  unbranding  debranding  operator  generic  simfree  standard  feature  electronics  application  download  free 
june 2010 by therobyouknow
How to obtain the latest Windows XP service pack
Main page starting point for going about installing the service packs for Microsoft Windows XP.
download  computer  windows  microsoft  service  it  update  xp  pack  servicepack  servicepack3  servicepack2  sp2  sp3  latest  procedure  howto  advice  setup  general  windowsupdate  upgrade  computing  maintenance 
november 2009 by therobyouknow
Download details: Update for Windows XP Service Pack 2 (KB884020)
Minor patch that fixes " Programs that connect to IP addresses in the loopback address range may not work as expected and you may receive an error message indicating you cannot establish a connection. After you install this item, you may have to restart your computer."
windows  microsoft  xp  fix  update  networking  network  patch  routing  troubleshooting  sp2  servicepack  servicepack2  computng  software  upgrade  maintenance 
november 2009 by therobyouknow
Download details: Windows XP Service Pack 2 for IT Professionals and Developers
Download complete Windows Service Pack 2 without the need to go through Windows Update. Speeds up upgrade of several PCs as this download can be run on each, as opposed to running Windows Update on each PC. Also means that, once downloaded, network connection to fetch the update is not needed.
software  download  windows  network  microsoft  install  sysadmin  update  xp  windowsxp  servicepack  sp2  computing  maintenance  service  pack 
november 2009 by therobyouknow
Download details: Windows XP Service Pack 3 Network Installation Package for IT Professionals and Developers
Download complete Windows Service Pack 3 without the need to go through Windows Update. Speeds up upgrade of several PCs as this download can be run on each, as opposed to running Windows Update on each PC. Also means that, once downloaded, network connection to fetch the update is not needed.
software  download  windows  network  microsoft  service  pack  windowsxp  sysadmin  update  installation  xp  servicepack  sp3  computing  maintenance 
november 2009 by therobyouknow
Print an array one element per line, with line numbering - Perl Circus - Perl Tricks, Tips And Traps.
in a foreach (@array), $_ *refers* to the element being looked at in an iteration. writing to $_ modifies the element in the original array - update in-place. This enables efficiency if passing the array around for stages of processing, rather than working with copies - and also ensures that the original data is updated (if that's what is required)
programming  tutorial  perl  inspiration  array  $_  in-place  inplace  update  within  loop  foreach  reference  efficiency  efficient  howto  computing  work  language  tip  iterate  alias  element  modify  original 
september 2009 by therobyouknow
mv - Linux command, to rename or move files | UbuntuHQ
mv -u may avoid the problem (but -u is not available in some Unix distros like SCO, only only seems to appear in gnu/linux)

mv /usr/lib/cgi-bin/prog/prog/lib /usr/lib/cgi-bin/prog/prog/prog.cgi /usr/lib/cgi-bin/prog
mv: cannot move `/usr/lib/cgi-bin/prog/prog/lib' to a subdirectory of itself, `/usr/lib/cgi-bin/prog/li
b'
mv  -u  command  line  linux  move  file  operating  system  option  update  computing  work  howto  debian  mandrake  ubuntu  gnu  utility  core  standard  directory  folder 
september 2009 by therobyouknow
Talend community forum / Debugger not working - PadWalker and Perl installation issue - www.talendforge.org
This method for updating your ActivePerl installation with PadWalker actually works
- make sure you have a connection to the internet
- open a DOS box
- type: ppm install PadWalker
- the system will install the relevant file(s)
programming  computing  perl  language  software  install  package  manager  ppm  activestate  update  library  howto  command  line  console  windows  dos  padwalker  variable  inspect  debug  eclipse  epic  solution  ide 
january 2009 by therobyouknow

Copy this bookmark:





to read