Categories
T24 Temenos

Getting Company IDs from Temenos T24

Today I got a question how the COMPANY ID can be listed in R14.

The solution was easy:

ENQ %COMPANY

Cheers,

Categories
Temenos

How to know COB is running on T24 from browser?

The simple answer is use

ENQ AGENT.STATUS CURRENT.SERVICE EQ COB

after login.

If you get the error within

INVALID FUNCTION FOR END.OF.DAY

it means the same.

Cheers,

Categories
Windows

Change Password without CTRL + ALT + DEL on a Microsoft Windows Remote Desktop

Mr. Gates,

Why there is no other option to change a password in Windows except pressing CTRL + ALT + DEL?

We are using site to site VPN so we have to logon to VM via RDP and from that VM we can jump to the other company’s VM. Even when pressing CTRL + ALT + END it send the command to the first VM so how to change password on the second VM?

The solution is to use On-screen keyboard on the second VM. Funny isn’t it? Start menu type osk. Press CTRL + ALT and click DEL on the On-screen keyboard.

Cheers,

Categories
LMS Moodle

Moodle – .vtt Captions do not Work with Internet Explorer

Another thing that works in every other browser but does not work in Internet Explorer.

So my solution is to set the MIME type for the .vtt files. This can be done under the Site administration / Server / File types (Moodle >= 2.9). Click on “Add a new file type” button. Set Extension to vtt, set MIME type to text/vtt then click “Save changes”.

You have to re-upload your .vtt files to have the changes take effect.

Cheers.

Related link:
https://docs.moodle.org/29/en/Working_with_files#Site_administration_settings

Categories
Microsoft Office Word

Microsoft Office Word: How to Renumber Captions?

I thought it has to be harder than this, but fortunately Word can be forced to renumber the Captions. How? Simply. Try to print the document and it will automatically renumbers the captions.

Cheers.

 

Categories
LMS Moodle

Moodle plugin: Aardvark theme – Anchor Offset to Adjust for Fixed Header

I have using Aardvark theme for many years (thanks Shaun).

With my latest Aardvark theme deployment I had a problem that the fixed header was relative big (160 pixel) and when using hash tag links in the courses the content of the anchors was covered by the header. I needed to offset the anchors for fix this.

After digging the net I have found Chris Coyier post titled Hash Tag Links That Don’t Headbutt The Browser Window. Using the fancier clean HTML method I have added the following CSS code at the / Site administration / Appearance / Themes / Aardvark page / Custom CSS textarea:

.section:before {margin-top: -60px; height: 60px; visibility: hidden; content: " "; display: block;} /*section offset*/
.breadcrumb-button {position: relative;} /*fix for the breadcrumb button*/

Now it is under testing, but in this short time it worked well.

Related links:
https://moodle.org/plugins/view.php?plugin=theme_aardvark
https://css-tricks.com/hash-tag-links-padding/

Categories
MAC

MAC OS X – Renaming Multiply Filenames to Lowercase in a Directory

You will need the Terminal for this operation.
Open Terminal and navigate to the directory using the cd command where you want to change the case of the files.
Then run the following command:

for FILE in `ls -A1 *`; do FILENAME=`echo ${FILE} | sed 's/ /\\ /g'`; echo mv ${FILENAME} `echo ${FILENAME} | tr [A-Z] [a-z]`; done

If the output looks good remove the echo string before the mv command.

Please note that this command will fail on file names containing space characters.

 

Categories
Moodle

Another Moodle report – List of users in a course with enrolment and access info

A report was needed by my client to list participants in a course with access info, so those who did not access the course can be warned to perform the mandatory quiz before closing it.

SELECT
 u.firstname,
 u.lastname,
 u.idnumber,
 c.shortname,
 IF(ue.status = 0, 'Active', 'Suspended') as status,
 e.enrol,
 FROM_UNIXTIME(ue.timecreated, '%m/%d/%Y %h:%i:%s %p') as enrollment_date,
 IF(ue.timestart = 0, 'No End Date',FROM_UNIXTIME(ue.timestart, '%m/%d/%Y %h:%i:%s %p')) as start_enrollment_date,
 IF(ue.timeend = 0, 'No End Date',FROM_UNIXTIME(ue.timeend, '%m/%d/%Y %h:%i:%s %p')) as end_enrollment_date,
 COALESCE((
 SELECT
 FROM_UNIXTIME(la.timeaccess,'%m/%d/%Y %h:%i:%s %p')
 FROM
 mdl_user_lastaccess as la
 WHERE
 u.id = la.userid
 AND
 c.id = la.courseid
 ), 'Never Accessed') as last_access,
 COALESCE((
 SELECT
 r.name
 FROM 
 mdl_role_assignments AS ra,
 mdl_context AS ctx,
 mdl_role as r
 WHERE 
 ctx.instanceid = c.id
 AND
 ra.contextid = ctx.id
 AND
 ra.userid = u.id
 AND
 r.id = ra.roleid
 AND
 (
 e.id = ra.itemid
 OR
 ra.itemid = 0
 )
 LIMIT
 1
 ), 'No Role Assigned') as role,
 (
 SELECT
 c2.shortname
 FROM
 mdl_course as c2
 WHERE
 e.customint1 = c2.id
 ) as child_course
FROM
 mdl_user_enrolments as ue,
 mdl_enrol as e,
 mdl_course as c,
 mdl_user as u
WHERE
 ue.userid = u.id
 AND
 ue.enrolid = e.id
 AND
 e.courseid = c.id
 AND
 c.id = 4
ORDER BY
 u.lastname,
 u.firstname,
 c.startdate DESC,
 c.shortname

Thanks for James Henestofel.
https://moodle.org/mod/forum/discuss.php?d=255646

Categories
Moodle

Moodle – Filepicker not working in 2.7.1+ on HTTPS

As a request to our client we changed to HTTPS on our server for their Moodle 2.7.1+ instance. I configured the site, but after the change the file picker stopped working.

I have found that Chrome console shows the following:

Failed to load resource: the server responded with a status of 404 (Not Found) https://c328740.ssl.cf1.rackcdn.com/mathjax/2.3-latest/MathJax.js?delayStartupUntil=configured
Uncaught ReferenceError: MathJax is not defined yui_combo.php?m/1408696391/core/event/event-debug.js&m/1408696391/filter_mathjaxloader/loader/loade…:151

It was definitely true. I tried the link with HTTP and it was fine.

So my solution was to delete the equation from the Toolbar config at Site administration / Plugins / Text editors / Atto HTML editor / Atto toolbar settings.

Categories
MAC

MAC OS X – SSH LC_CTYPE Warning

Using terminal ssh to my Linux servers I have always got the following error:

 warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

Commenting the following line from /etc/ssh_config file on my Mac was the solution for me:

#   SendEnv LANG LC_*

Note: do not forget to use sudo when editing with in terminal like:

$sudo nano /etc/ssh_config