Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 18 Jun 2019, 13:06
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
cal command alternatives
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 3 [45 Posts]   Goto page: Previous 1, 2, 3
Author Message
mfb

Joined: 22 Mar 2016
Posts: 72

PostPosted: Sat 22 Dec 2018, 05:54    Post subject:  

"If you want to get ahead, get a hat" was still popular advice in London, when I was young. Since Mochi has now acquired one, he may now have answered his own question.

However, amigo might advise a sombrero might be bigger and better and lead to much faster advancement.
anes018.gif
 Description   
 Filesize   37.24 KB
 Viewed   533 Time(s)

anes018.gif

Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 8888
Location: Perth, Western Australia

PostPosted: Sat 22 Dec 2018, 07:01    Post subject:  

tallboy wrote:
Ancient Puppy:
/root/.packages/builtin_files/minixcal
In /root/.jwm-tray:
Code:
<Clock format="%H:%M:%S">minixcal</Clock>

Activate by click on clock.


Ancient!
Yeah, I suppose it does go back a long way.
I am still using it in EasyOS. Yes, click on the clock to run it.

Source:
http://distro.ibiblio.org/easyos/source/oe/pyro/minixcal-1.1.1.tar.bz2

Compile guidance here:
https://github.com/bkauler/oe-qky-src/blob/master/quirky/meta-quirky/recipes-quirky/minixcal/minixcal_1.1.1.bb

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
torm


Joined: 07 Mar 2015
Posts: 180

PostPosted: Sat 22 Dec 2018, 12:58    Post subject:  

@MochiMoppel
... and v1.23.1 is NOT OK, please see the note about tahr versions on previous page.


@mcb
It may sound a bit off-topic, but for more complex command-line calendars
with more features try:

- pal_0.4.3-8
- gcal_3.6.3-3
- calcurse_3.1.4-2
- when_1.1.31-3
- wyrd_1.4.4-1

.. can be installed from Puppy Package Manager.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1842
Location: Japan

PostPosted: Sun 23 Dec 2018, 09:33    Post subject:  

torm wrote:
@MochiMoppel
... and v1.23.1 is NOT OK, please see the note about tahr versions on previous page.

...and I wrote that busybox v1.21.0 looks OK to me. On the previous page you compared Tahr versions, suggesting that Tahr makes the difference. You didn't mention that they use different busybox versions, which I only know now after having dowloaded Tahr6.0.6.

I agree that Tahr6.0.6 with its busybox v1.23.1 is not OK but Tahr6.0.6 shows no bugs when using Tahr6.0.5's busybox v1.21.0 instead. So this clearly seems to be a problem with this particular busybox version and can easily be "fixed" by reverting to the older version.

Still you should deem yourself lucky. Busybox cal can get even worse. With v1.21.0 and locale ja_JP I get no weekday labels at all. This is particularly strange as the Kanji character for "Month" is correctly displayed in the first line. The Kanji character for "Monday" is the same but cal can't display it. None of the numerous other calendar apps have problems with the labels.
cal_locale_ja_JP.png
 Description   
 Filesize   6.21 KB
 Viewed   373 Time(s)

cal_locale_ja_JP.png

Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 1367
Location: Oslo, Norway

PostPosted: Mon 24 Dec 2018, 14:40    Post subject:  

Barry wrote:
Ancient!
Yeah, I suppose it does go back a long way.
I am still using it in EasyOS. Yes, click on the clock to run it.


It seems it has always been there, and I would find a Puppy without it, incomplete! Shocked I use it, very often several times every day, and in the best of 'nix traditions, it only does exactly what it should do! Very Happy

_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
rufwoof


Joined: 24 Feb 2014
Posts: 3158

PostPosted: Mon 24 Dec 2018, 18:59    Post subject:  

torm wrote:
calcurse_3.1.4-2
.. can be installed from Puppy Package Manager.

I run/use calcurse 4.3 and like it a lot. The only thing I run X for is to run a browser (no window decorations, no tray ...etc., browser maximised, where both X and browser run under restricted userid). cli/textual is very quick, especially if you use tmux and set up a tput based menu system. From X I ctrl-alt-F4 to switch to console, 'l' to mount a ext (Linux) partition where my calendar resides, 'c' to start calcurse in a new tmux window. Calcurse uses a simple text file, so easily edited, or shared across devices (ssh in and attach to the tmux session). I prefer keeping my diary/calendar/events/tasks local rather than utilising a online alternative.

_________________
( ͡° ͜ʖ ͡°) :wq
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1842
Location: Japan

PostPosted: Sat 05 Jan 2019, 03:11    Post subject:  

tallboy wrote:
/root/.packages/builtin_files/minixcal
In /root/.jwm-tray:
Code:
<Clock format="%H:%M:%S">minixcal</Clock>

If your minixcal is in /root/.packages you are probably running the""real" thing, but the line in /root/.jwm-tray doesn't mean much.
In my puppy minixcal is just a wrapper script for igucal, a minixcal derivate created by forum member Iguleder (he used the same word "ancient" when he complained about minixcal). Main difference is that igucal is not hardcoded to lauch osmo, instead it runs /usr/local/bin/defaultcalendar, therefore the button on top reads "Personal organizer" and not "Launch Osmo Calendar".

Still another fake minixcal in Dpup Strech. Here minixcal is a script launching yad --calendar, probably the simplest of many ways to launch the GTK calendar widget.
Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 1367
Location: Oslo, Norway

PostPosted: Sat 05 Jan 2019, 12:16    Post subject:  

MochiMoppel, my memory is not good enough to remember the details, but I think that minixcal was not part of the clock in the tray in my remastered Lucid. I had an older dPup where I used Minixcal, so I found a text somewhere about how to add it to the tray clock, using the .jwm-tray file.
I have Osmo installed, but I don't use it. I prefer the old tcl/tk-based Ical calender, so I'll convert to Igucal, thank you for mentioning it. Very Happy

I have minixcal in /usr/X11R7/bin/

My /root/.jwm-tray:
Code:
<JWM>
   <Tray autohide="false" insert="right" x="0" y="-1" border="1" width="0" height="28" layer="above" layout="horizontal" halign="left" valign="bottom" >
      <!-- Additional TrayButton attribute: label -->
      <TrayButton label="Menu" icon="mini-dog.xpm">root:3</TrayButton>
      <TrayButton popup="Show Desktop" icon="mini-desktop.xpm">showdesktop</TrayButton>
      <TrayButton popup="Screenshot" icon="shot.png">exec:shot1</TrayButton>
      <TrayButton popup="NoteCase" icon="notecase16.xpm">exec:notecase</TrayButton>
      <TrayButton popup="pFind" icon="find.png">exec:pfind</TrayButton>
       
      <!-- Additional Pager attributes; width, height -->
      <Pager/>
      <!-- Additional TaskList attribute: maxwidth -->
      <TaskList maxwidth="200"/>
      <Dock/>
      <!-- Additional Swallow attribute: height -->
      <Swallow name="xload" width="32">
xload -nolabel -fg red -hl white -bg "gray45"
      </Swallow>
      <Clock format="%H:%M:%S">minixcal</Clock>
   </Tray>
</JWM>


I tried to click the clock with minixcal removed from the code. Nothing happened at all, so it does the job when it is included in the code.

_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14190
Location: Gatineau (Qc), Canada

PostPosted: Thu 10 Jan 2019, 00:42    Post subject:  

Not that it's important, but %H:%M:%S can be summarized as %R.
_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
some1

Joined: 17 Jan 2013
Posts: 99

PostPosted: Thu 10 Jan 2019, 01:43    Post subject:  

musher0 wrote:

Not that it's important, but %H:%M:%S can be summarized as %R.

Question
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1842
Location: Japan

PostPosted: Thu 10 Jan 2019, 02:16    Post subject:  

musher0 wrote:
Not that it's important, but %H:%M:%S can be summarized as %R.
Not that it's important, but you probably meant %T
Back to top
View user's profile Send private message 
some1

Joined: 17 Jan 2013
Posts: 99

PostPosted: Thu 10 Jan 2019, 02:46    Post subject:  

MochiiMoppel wrote:

musher0 wrote:

Not that it's important, but %H:%M:%S can be summarized as %R.

Not that it's important, but you probably meant %T


Not that it is important ,but to please the locals , you probably meant %X.
Back to top
View user's profile Send private message 
some1

Joined: 17 Jan 2013
Posts: 99

PostPosted: Thu 10 Jan 2019, 03:00    Post subject:  

Of some importance:
http://man7.org/linux/man-pages/man1/date.1.html
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1842
Location: Japan

PostPosted: Thu 10 Jan 2019, 05:24    Post subject:  

some1 wrote:
Not that it is important ,but to please the locals , you probably meant %X.
That wouldn't be the same as %H:%M:%S , so I honestly,wholeheartedly,really,truly meant what I wrote: %T Wink
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 14190
Location: Gatineau (Qc), Canada

PostPosted: Thu 10 Jan 2019, 06:59    Post subject:  

Seconds are useless in a general non scientific human context, hence %R. Wink
Plus date's seconds update calls upon the kernel 60 times a minute, which
can be a concern on old boxes.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 3 [45 Posts]   Goto page: Previous 1, 2, 3
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0987s ][ Queries: 13 (0.0172s) ][ GZIP on ]