Showing posts with label time. Show all posts
Showing posts with label time. Show all posts

Tuesday, October 11, 2022

speed up oh my zsh launch

Slow Start Up

The first time I launch terminal (which I rarely do) it takes about 10 seconds to finish loading.  Way longer than it should but I didn't bother fixing it.

 

What Really Happened

Still slow, adding the two lines to .zshrc did not fix it. Commented them out.

Added:

export NVM_LAZY=1


Will not fix for now.

 

 

Fix

Launch your Terminal app.  I used the nano editor in Terminal. 

Edit .zshrc

 

nano .zshrc

then copy and paste, the lines below to the end of your .zshrc file

# configure node version manager
export NVM_DIR=~/.nvm [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" --no-use 
# This loads nvm
alias node='unalias node ; unalias npm ; nvm use default ; node $@'
alias npm='unalias node ; unalias npm ; nvm use default ; npm $@'
 

Info

 

 

 




Wednesday, November 10, 2021

Julia emacs support and DateTime

Date Time

 

using Dates

import dates


Julia mode for Emacs

https://github.com/JuliaEditorSupport/julia-emacs


Doom Emacs

https://github.com/doomemacs/doomemacs

Monday, March 22, 2010

Joomla how to change article time stamp in JA Purity II template

Because Joomla does not support Daylight Savings Time or any Timezone that adjusts for Summer and Winter time etc. I wound up first specifying another Timezone just to get the correct time displayed. Then I realized that would be wrong too.

So I wanted to delete the time from the article date/time stamp so I did this:


Edit the following files:

htdocs/templates/ja_purity_ii/html/com_content/
frontpage/default_item.php
section/blog_item.php
category/blog_item.php
article/default.php

I replaced
LC2 with LC3 and vooop no more incorrect time, just the date.




article->created, JText::_('DATE_FORMAT_LC3')) ?>