Microwave chocolatecake

cup = ~200ml

1 cup sugar
2 eggs
1 cup flour
1 cup milk
1/2 cup chocolate power
1/4 cup vegetable/sunflower oil
1 tsp/teaspoon baking powder

at first combine the eggs and the sugar…

700w ~ 5-6min

mug 2min@700W
cup 3-4min@700W

Create a shared disk for VMware ESX guests

To create a shared disk between two or more VMs, login into one of your ESX hosts and create a disk image.

cd /vmfs/volumes/#volume-name#/#vm-name#/;
vmkfstools -d thick -a lsilogic -c 50G shareddisk.vmdk;

Add the new hardrive to the guest(s) and select a new SCSI bus (like SCSI 2:0). VMware create a new SCSI controller. Set SCSI Bus Sharing = Physical or Virtual and have fun :)

Apache Tomcat & logrotate

Some linux distribution are shiped without a config for the catalina.out (Tomcat application server) ;)

$ cat /etc/logrotate.d/tomcat
/var/log/tomcat/base/catalina.out {
	compress
	copytruncate
	create 644 tomcat tomcat
	rotate 30
	size 4M
}

The catalina.out will be rotated after 4 mb and stored for 30 days (/var/log/tomcat/base/catalina.out.1; /var/log/tomcat/base/catalina.out.2.gz and so on)

Linux routing basics

You getting from your ISP a subnet like this 172.30.26.16/28,
and your router has the ip 172.30.26.17 !

You need to enable the ip forwarding in the kernel

sysctl -w net.ipv4.ip_forward=1

And we need to enable proxy arp! This is necessary because your router must answer all arp request for hosts other than itself ;)

sysctl -w net.ipv4.conf.eth0.proxy_arp=1
sysctl -w net.ipv4.conf.eth1.proxy_arp=1

Edit your /etc/sysctl.conf !

net.ipv4.ip_forward = 1
net.ipv4.conf.eth0.proxy_arp = 1
net.ipv4.conf.eth1.proxy_arp = 1

If your router has no external ip on the internal nic, you need to setup routes like

route add -host 172.30.26.20 gw 192.168.10.20 eth1

Ubuntu PHP hardening with Suhosin

Ubuntu includes the php suhosin patches….

Install suhosin extension

aptitude install php5-suhosin

/etc/php5/{apache2,cli,cgi}/php.ini

; suhosin parameters
suhosin.executor.include.max_traversal = 4
suhosin.executor.disable_eval = On
suhosin.executor.disable_emodifier = On
suhosin.mail.protect = 2
suhosin.sql.bailout_on_error = On

Restart apache

service apache2 restart

Sometimes it could be necessary to set suhosin.session.encrypt to off for some login scripts.

Postfix as relayhost with SASL auth

Client configuration (notebook, workstation what ever)

  1. Edit your /etc/postfix/main.cf
  2. # TLS client parameter
    smtp_use_tls = yes
    smtp_enforce_tls = yes
    # for postfix < 2.3
    # smtp_tls_security_level = secure
    smtp_sasl_tls_security_options = $smtp_sasl_security_options
    smtp_tls_CAfile = /etc/ssl/certs/cacert.org.pem
    smtp_tls_loglevel = 0
    [...]
    relayhost = [mx1.example.com]:587
    mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
    inet_interfaces = loopback-only
    [...]
    smtp_sasl_auth_enable = yes
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwords
    smtp_sasl_security_options = noanonymous
    

    Setting [ and ] prevent the client from looking up the MX record for the domain. The port 587 is reserved for email clients. Some ISPs block port 25 ;)

  3. Create your passwordmap – /etc/postfix/sasl_passwords
  4. [mx1.example.net]:587 username:password
  5. Run postmap for /etc/postfix/sasl_passwords
  6. postmap /etc/postfix/sasl_passwords; rm /etc/postfix/sasl_passwords

Server configuration

  1. Nothing if you have already a working mail server. That the user (/etc/postfix/sasl_passwords) must exists on the server is plausible ? Check your smtpd_*_restrictions on the mail server if the client won’t use sasl :)

Lenny Linux rockz…

Watch it !

http://www.youtube.com/watch?v=6gbNZK60Xe4

YouTube – “This video is no longer available due to a copyright claim by Alley Music Corp..” – :(

http://www.google.com/search?q=Java4Ever&hl=en&tbs=vid:1,srcf:H4sIAAAAAAAAAB3IQQ4AEAwF0dvYSNyppREpfoIu3J5092bihR1jSRkjKJbYdv6t5irU-h04DdMbvJPWQKUSsyx_1D2e3mPVGAAAA&prmd=v&source=lnt&sa=X&ei=SkBETOndKs384Aa93PGiDg&ved=0CCIQp

z-push, imap server and *irony* a user-friendly Debian whatever *irony*

If you want to use z-push with your imap server (which requires php5-imap) you must add to following line to you /etc/php5/apache2/conf.d/imap.ini file

# configuration for php IMAP module
extension=imap.so

Why is that not set Debian ?

Nr. 5 lebt…

Nr. 5 lebt !

Nach meinem Absturz vor gut 2 Wochen, konnte ich heute endlich mal wieder fliegen :D  Natürlich mit GPS, sonst hätte ich auch nicht das Foto machen können. Read the rest of this entry »

Mikrokopter / Quadrokopter – Rahmen (und noch mehr)

Quadro was ? Wer keine Idee hat was das überhaupt ist – MK / UAVP oder auch in der Wikipedia (hier garantiere ich nicht, wie lange der Artikel noch da ist ;) )

Da ich beruflich viel unterwegs bin, und abends teilweise zuviel Zeit habe (und das Internet einfach zu klein ist) musste eine Beschäftigung her. Preislich hat mich der MK immer abgeschreckt…aber naja ;) Also fing ich mit dem Rahmen an. Alu-Vierkant 10mm und als Centerplate 2x 100x100x1 aus Hartpapier. Die Centerplate ist auch was geworden, nur leider der Rahmen irgendwie nicht :( Die Bohrungen für die Centerplate liegen leider nicht genau übereinander. Kommt davon wenn man versucht das mit der Hand zu bohren. Der Neubau ist schon in Planung.

Weil ich es als zu einfach empfand, alles bestück zu bestellen, habe ich alle vier Bl-Ctrl selber gebaut – mit Erfolg ! Lediglich ein Atmega8 musste dran glauben ;)

Momentan bastel ich gerade eine Akkuhalterung. Das Problem ist, meine Sternverteiler liegen unten, also einfach Klettband nehmen geht nicht, weil ich gut 1cm überbrücken muss. Morgen mal zum großen C gehen, und schauen was dort alles geht. Zumal mir auch noch Platinen für die KSQ fehlen.

Beim Testen der Bl-Ctrl, war ich beeindruckt von dem Schub, welchen schon ein Motor schafft. Eigentlich kann ich es nicht erwarten endlich die FC 2.0 zukaufen und endlich zu fliegen. Aber noch sind nicht alle Details fertig.

Hat jemand zufällig eine Fräse (Raum Köln bzw. Rügen ?)

[Bilder vom jetzigen Rahmen, mit Motoren und den BL-Ctrls kommen.]