Stickynotes + Notifica
Moderatore: Staff
Regole del forum
1) Rispettare le idee altrui.
2) Evitare le offese dirette.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.
La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
1) Rispettare le idee altrui.
2) Evitare le offese dirette.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.
La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
Stickynotes + Notifica
<!-- BBCode Quote Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font size=-1>Quote:</font><HR></TD></TR><TR><TD><FONT SIZE=-1><BLOCKQUOTE>
<BR> 20-01-2005 alle ore 23:58, kyakan :
<BR><br>
<BR></BLOCKQUOTE></FONT></TD></TR><TR><TD><HR></TD></TR></TABLE><!-- BBCode Quote End -->
<BR>
<BR>Si... effettivamente la pensavo anch´io cosi´.... <br>
<BR> 20-01-2005 alle ore 23:58, kyakan :
<BR><br>
<BR></BLOCKQUOTE></FONT></TD></TR><TR><TD><HR></TD></TR></TABLE><!-- BBCode Quote End -->
<BR>
<BR>Si... effettivamente la pensavo anch´io cosi´.... <br>
Stickynotes + Notifica
Ho postato ...ma forse c´è capitato qualche carattere strano...
<BR>Praticamente Stickynotes è molto comodo, ma non ha la notifica, cosi ho pensato di implementarlo (senza toccare il codice), specificando la data di scadenza come titolo, mentre un piccolo programmino invocato periodicamente da cron verifica se scade ed eventualmente avverte con un suono.
<BR>Questo è il programma che io ho chiamato stickynotifier.sh posizionato in /etc/cron.hourly/
<BR>
<BR>...
<BR>
<BR>Niente il codice non lo posta... mi dice
<BR>
<BR>Warning: Unknown modifier ´/´ in /web/htdocs/www.slacky.it/home/modules/Splatt_Forums/functions.php on line 646
<BR>
<BR>se qualcuno vuole il programma è un semplice script schell ..
<BR>
<BR><br>
<BR>Praticamente Stickynotes è molto comodo, ma non ha la notifica, cosi ho pensato di implementarlo (senza toccare il codice), specificando la data di scadenza come titolo, mentre un piccolo programmino invocato periodicamente da cron verifica se scade ed eventualmente avverte con un suono.
<BR>Questo è il programma che io ho chiamato stickynotifier.sh posizionato in /etc/cron.hourly/
<BR>
<BR>...
<BR>
<BR>Niente il codice non lo posta... mi dice
<BR>
<BR>Warning: Unknown modifier ´/´ in /web/htdocs/www.slacky.it/home/modules/Splatt_Forums/functions.php on line 646
<BR>
<BR>se qualcuno vuole il programma è un semplice script schell ..
<BR>
<BR><br>
- Loris
- Admin
- Messaggi: 7730
- Iscritto il: lun 31 mar 2003, 0:00
- Nome Cognome: Loris Vincenzi
- Località: Gradisca D'Isonzo
- Contatta:
Stickynotes + Notifica
Per inserire codice puoi usare la funzione quote, al limite me lo mandi per posta, e lo rendo disponibile nell´apposita sezione.<br>
"Ho una testa piuttosto balzana e comunque non sono quello che credete" - Roger Keith Barrett
Stickynotes + Notifica
Si in effeti con quote va.. avevo provato con code ma dava quello strano messaggio..
<BR>Lo posto qui...magari gli date n´occhiata :-]
<BR>
<BR><!-- BBCode Quote Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font size=-1>Quote:</font><HR></TD></TR><TR><TD><FONT SIZE=-1><BLOCKQUOTE>
<BR>#/bin/sh
<BR>#
<BR># Stickynotes Notifier 0.3
<BR># Stickynotes Notifier is a simple program that notify with a sound
<BR># when the current date, specified in title, expire.
<BR>#
<BR># Setting Environmente Variable:
<BR># fsound=.. Audio file for play custom signal (play command).
<BR># forma=... Day format specified in title of message.
<BR># accept=.. Date separation character pipe separated
<BR># (eg. accept="-|/" for 2005/12/12 or
<BR># 2005-12-12 or 2005-12/12 ...but NOT 2005|01|01 !!)
<BR>#
<BR># If is specified YY only (and not YYYY) year is prefixed with 20
<BR># (eg. if in title is specifide 05/01/01 is assumed like 2005/01/01)
<BR>#
<BR># Author Cristian SICILIA (KyaKAN)
<BR>
<BR>
<BR># Setting Variable
<BR>fsound="/mnt/c/Programmi/FlashGet/sounds/done.wav"
<BR>#forma=MMDDYY
<BR>forma=YYYYMMDD
<BR>accept="-|/|."
<BR>#### End Setup
<BR>
<BR>for f in `users | replace " " "
<BR>" | grep -v root | sort -u` ; do
<BR> cat /home/$f/.gnome2/stickynotes_applet | awk \
<BR> -v mo=`date +%s` -v fsound=$fsound -v forma=$forma \
<BR> -v accept=$accept ´{
<BR> if ($0 ~ "note title=") {
<BR> gsub("[ ]*<note title=\"[ ]*","");
<BR> gsub("\".*","");
<BR> gsub(accept," ");
<BR> gsub("YYYY"," "$1" ",forma);
<BR> gsub("YY"," 20"$1" ",forma);
<BR> gsub("MM"," "$2" ",forma);
<BR> gsub("DD"," "$3" ",forma);
<BR> d=mktime(forma " 00 00 00 ");
<BR> if((d-mo)/3600/24 < 0)
<BR> system("play " fsound) ;
<BR> }
<BR> }´
<BR>done
<BR></BLOCKQUOTE></FONT></TD></TR><TR><TD><HR></TD></TR></TABLE><!-- BBCode Quote End --> <br>
<BR>Lo posto qui...magari gli date n´occhiata :-]
<BR>
<BR><!-- BBCode Quote Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font size=-1>Quote:</font><HR></TD></TR><TR><TD><FONT SIZE=-1><BLOCKQUOTE>
<BR>#/bin/sh
<BR>#
<BR># Stickynotes Notifier 0.3
<BR># Stickynotes Notifier is a simple program that notify with a sound
<BR># when the current date, specified in title, expire.
<BR>#
<BR># Setting Environmente Variable:
<BR># fsound=.. Audio file for play custom signal (play command).
<BR># forma=... Day format specified in title of message.
<BR># accept=.. Date separation character pipe separated
<BR># (eg. accept="-|/" for 2005/12/12 or
<BR># 2005-12-12 or 2005-12/12 ...but NOT 2005|01|01 !!)
<BR>#
<BR># If is specified YY only (and not YYYY) year is prefixed with 20
<BR># (eg. if in title is specifide 05/01/01 is assumed like 2005/01/01)
<BR>#
<BR># Author Cristian SICILIA (KyaKAN)
<BR>
<BR>
<BR># Setting Variable
<BR>fsound="/mnt/c/Programmi/FlashGet/sounds/done.wav"
<BR>#forma=MMDDYY
<BR>forma=YYYYMMDD
<BR>accept="-|/|."
<BR>#### End Setup
<BR>
<BR>for f in `users | replace " " "
<BR>" | grep -v root | sort -u` ; do
<BR> cat /home/$f/.gnome2/stickynotes_applet | awk \
<BR> -v mo=`date +%s` -v fsound=$fsound -v forma=$forma \
<BR> -v accept=$accept ´{
<BR> if ($0 ~ "note title=") {
<BR> gsub("[ ]*<note title=\"[ ]*","");
<BR> gsub("\".*","");
<BR> gsub(accept," ");
<BR> gsub("YYYY"," "$1" ",forma);
<BR> gsub("YY"," 20"$1" ",forma);
<BR> gsub("MM"," "$2" ",forma);
<BR> gsub("DD"," "$3" ",forma);
<BR> d=mktime(forma " 00 00 00 ");
<BR> if((d-mo)/3600/24 < 0)
<BR> system("play " fsound) ;
<BR> }
<BR> }´
<BR>done
<BR></BLOCKQUOTE></FONT></TD></TR><TR><TD><HR></TD></TR></TABLE><!-- BBCode Quote End --> <br>