Travels in Technology!

  • Testing MathJax

    Writing maths works as in LaTeX. Use dollar signs to enclose inline math, e.g. \(x^2\) \(x^2\) $$x^2$$ \(\begin{align}E &= mc^2 \\m &= \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}}\end{align}\) \(\int_{-\infty}^\infty e^{-\pi x^2}\,\mathrm{d}x=1\label{a}\tag{1}\) \ref{a}

  • This is a reasonably complete sample of using MathJax.

    Sample has been taken form here: https://groups.drupal.org/node/1263 MathJax documentation is here: http://docs.mathjax.org/en/latest/ Wonder how much of this works: https://yutsumura.com/mathjax-in-wordpress/ Writing maths works as in LaTeX. Use dollar signs to enclose inline math, e.g. \(x^2\). Examples for paragraph math are \(x^2 \) and \(x^2\) (both variants are equivalent). There is also a display-style inline math environment,…

  • Using drush with drupal

    Using drush has been remarkably simple. I downloaded it as instructed on their site, and it almost works straight away. It was annoying to keep having to tell drush the site to use with the -l flag though, so I have configured it for my needs. I did this by making a .drush directory, and…

  • Getting annoying error with phpMyAdmin

    I upgraded phpMyAdmin from 4.1.2 from 4.2.6. Having done this, I copied in the config.inc.php file and started everything up. Logged in and I get “You should upgrade to MySQL 5.5.0 or later.”. Well yes, I should. But I can’t (the mysql version is attached to the NAS – so i can’t really change that…

  • Configuring GIT

    First up, I found most of my information on this here: Seth Robertson – Git On The Web The one thing that I didn’t realise initially is that you can’t use the gitweb URL to do clones etc.I spent ages trying to do this, until I found Seth’s page. It explains things in a very…

  • Updating Language of postings in Drupal.

    Everything said it was undefined language (very weird). Found  this  post so I ran this update: UPDATE node SET language = ‘en’ WHERE language = ‘und’; And it did exactly what it says on the tin (turned everything set to und to en). Perfect!

  • Linking Drupal to QNAP LDAP

    This was way more simple than I expected. For reference, I have a separate server running my Drupal Installation. The QNAP sits along side it (but not accessible to the web).  I basically just added the LDAP module to the Drupal installation. I also had to install the Entity module for LDAP to use. Then…

  • Time zones, Oracle Agents, Java, and the paths to madness…..

    I was attempting to re-install the Grid Control agents on two RHEL 6 servers today today. They’d had been upgraded from RHEL 5 to 6 and I wanted to see what needed to be done to re-attach them to Grid Control if we didn’t take the existing installation. I was having some issues with it…

  • Using Oracle InstantClient 11g with PHP onto RHEL 5 with SELinux

    This is an example of using the Oracle InstantClient 11g with PHP. Installation InstantClient for PHP This is based on work from the past – but I appeared to have done the following: Installed InstantClient and Pear to manage the php installation. sudo yum install php-pear sudo rpm -ivh oracle-instantclient11.1-basic-11.1.0.7.0-1.i386.rpm sudo rpm -Uvh oracle-instantclient11.1-devel-11.1.0.7.0-1.i386.rpm Update…

  • Oracle eBusiness Submit Job – PL/SQL

    Again, a simple piece of code: This also runs Active User concurrent program: declare  v_request_id number := -1;begin  –fnd_global.apps_initialize(user_id, resp_id, appl_resp_id)  fnd_global.apps_initialize(0, 20420, 1); –So sysadmin using responsibility System Administrator in application System Administration  –v_request_id : fnd_request.submit_request(application short name,concurrent program short name,argument1 =>,  argument2 =>))  v_request_id := fnd_request.submit_request(application=>’FND’,program=>’FNDSCURS’);  commit;  if v_request_id > 0  then    dbms_output.put_line(‘Successfully…