Перейти до основного вмісту

Публікації

want to automatically format your code - asytyle

astyle can automatically update your code with desired style. Documentation. my astyle is this options="--style=k/r --pad-header --pad-paren-in --add-brackets --align-pointer=type --indent=spaces" find . -iname "*.cpp" -or -iname "*.h" | xargs astyle $options.

Sending mails from linux shell

You need to have ssmtp and mutt installed. /etc/ssmtp/ssmtp.conf root=sasha@e-mail.ua mailhub=smtp.gmail.com:587 rewriteDomain= hostname=sasha@e-mail.ua UseSTARTTLS=YES AuthUser=sashao@e-mail.ua AuthPass=somepass FromLineOverride=YES /etc/ssmtp/revaliases root:sasha@e-mail.ua:smtp.gmail.com:587 oomel:sasha@e-mail.ua:smtp.gmail.com:587 #localusername:username@gmail.com:smtp.gmail.com:587 ~/.muttrc set sendmail = /usr/sbin/ssmtp unset record Done! Now send mails like this: echo "m body of email" | mutt -s "subject of email" sashao@bigmir.net -a /home/oomel/softserve.gif

IPC idea

Is SOAP considered a viable comms method for local processes as an > alternative to D-BUS, DCOP, etc? I am worried that it's just to slow and > if I commit to using it that in the future I will realise it doesn't scale > up. How can we answer that when we don't know how fast you need it to be? KDE tried using CORBA for IPC, and that was too slow. SOAP is much slower than CORBA (at least with good ORBs). But whether it's too slow or not is impossible to say. If you're worried, apply a strategy pattern with a factory class and make it easy for you to switch to another IPC layer later.

Github.org creating repo problem

If you are having error: " Permission to <repo_1> denied to <repo_2>. " Add to ~/.ss/config file: Host github.com      Hostname github.com #     IdentityFile ~/.ssh/id_dsa      User git      Port 22      TCPKeepAlive yes      IdentitiesOnly yes