Responsive

AngularJS looked pretty promising on the first view, but it is complicated to debug and has a steep learning curve. Finally I dropped it for the moment. Then I played around with my own pages and Twitter’s Bottstrap3. Bootstrap is really quite practical and not difficult to understand. I also polished up my knowledge about CSS3, mostly through learning by doing 😉

For the redesign of Muryokoin’s website I also added Boilerplate, which is especially helpful to tighten up security of the webserver. It required also some recoding in the database, which on the end is speeding up the loading of some pages.

I’m still not yet satisfied with the theme of WordPress, so I guess I play a bit around with some other themes until I find one, which I like.

At least all pages are now usable on all devices I tested.

The Karma of AngularJS

Recently I discovered AngularJS. It’s a Java Environment for dynamic webpages and one can do pretty cool stuff with it. Until I was able to do really cool stuff, I needed to remove a couple of obstacles. As easy as it is to debug JavaScript with Safari or Firefox as more tricky it gets with AngularJS code. There’s a nice extension, which allows to view AngularJS objects. It’s called ng-inspector. It installs a little button next to the field for entering urls, but surprise, surprise, one can press it as long as one likes to, nothing happens. After some time DuckDuckGo helped me to figure out that, ng-inspector doesn’t like the file protocol and wants the page to be opened from a web server. If you have configured Apache on your local box for testing that will do the trick. Since MacOS10.7 the WebSharing prefPane disappeared for starting apache, but it’s still all there. So you can either use terminal to start and stop Apache via apachctl or you can install a 3rd Party prefPane. A more simple solution is to just start SimpleHTTPServer via terminal: python -m SimpleHTTPServer 3000, that’s what I did. Actually, if you are not comfortable with using the Terminal, you should stop right else proceed by going to the AngularJS tutorial 🙂 The first real challenge comes with Karma, well not karma in the spiritual sense 😉 Karma is a test runner for unit testing, AngularJS is using then the Jasmine framework for actual testing. On the Mac the first nodeJS has to be installed, because everything else is based on nodeJS. So having installed nodeJS I ran the command npm install karma –save-dev command from the terminal. This basically installs karma, then one needs also to install Jasmine: npm install karma-jasmine –save-dev, now necessary browser support needs to be installed for Chrome: npm install karma-chrome-launcher —save-dev, for Safari: npm install karma-safari-launcher –save-dev and for Firefox: npm install karma-firefox-launcher –save-dev. Now I tried to start karma: ./node_modules/karma/bin/karma start and ended up with errors, like missing package.json file. What karma actually needs first is to run: npm init, this will create the necessary files. But we’re not yet done. Additional Angular-Mocks is needed to make karma run, so I ran npm install angular-mocks, it didn’t do the trick, I expected, So I downloaded the file again from here and saved in a subdirectory called node-modules. Finally the karma.conf.js file needs to be set up and it should look something like this:

module.exports = function (config) {
 config.set({
         // path to the root of the test site, in this case the root is one level up
 basePath: '../',

      //AngularJS is using the jasmine framework for unit-testing
 frameworks: ['jasmine'],

files: [
   //karma loads the files in alphabetical order, so to makle sure angular is loaded first
 'angular.js',
   //make sure the angular-mocks file is loaded next before anything else is loaded
 'node_modules/*.js',
   //all the java files, in our case we would need to load only the file containing our controller
 '*.js',
   //load our unit test file and run it
 'test/unit/*.js',
   // take a look on our html file, in case we change it
    '*.html'
 ],

exclude: [],

reporters: ['progress'],

port: 9876,

colors: true,

logLevel: config.LOG_INFO,

 // this runs the test again, if any of the above files are changed
 autoWatch: true,

  //I like the Safari debugger, so here we go
 browsers: ['Safari'],

singleRun: false,

plugins: [
 '~/node_modules/karma-safari-launcher',
 '~/node_modules/karma-jasmine',
         ]
       })
 }

On the end I installed for convenience also the command line interface for karma: npm install -g karma-cli Now finally I could start running: karma start /[Path/to/folder]/test/karma.conf.js and voila, karma runs the test. Yes 🙂

My data and PRISM

Everyday we can read about Prism in the big media. Prism is a data-mining software used by the NSA, the national secret service of the USA.

That something like this will happen in the future could have been expected. Until now we’ve seen technology like that only in SiFi kind of action movies, like 24hours for example.

Many of us thought to be save, our privacy is thought to be a far more higher good than the information interests of security agencies. Everyone who said, hey guys, you’re wrong, was stamped to be neurotic, anxious, way to fearful of big brother government. Now after parts of the truth surfaced, people are upset.

The German government wants the US government to immediately release all informations concerning data-mining of German citizens. Who do they believe they are? Are they serious, that the NSA will give them any more information, then the one could be found in the media? If they really believe that, they are simply naive. Besides that, the German government just passed a law, called „Gesetz zur Neuregelung der Bestandsdatenauskunft“, in English something like „act revising the inventory data information“. This law allows security agencies to break into any data-privacy of a person, even if the person just got a parking ticket. It gives the authorities access to passwords, email accounts, chat protocols.

Everything what is considered in non digital live as private and is protected by special laws.

To listen to your phone conversation or to search your home, authorities need a warrant signed by a judge. In digital live, no warrant is needed, they just get the access. And the funny thing in Germany is, neither Social Democrats nor the Greens opposed this law.

The EC also makes pressure that a law about the retention of telecommunication data is passed in every member state.

So why they are all now that upset about what the NSA is doing? Because the NSA is not storing the data by itself, instead they use Apple, Google, Facebook etc. as free mass-storage places of people’s personal data? Or what?

We all should now by now, that modern governments have no interest in protecting civil rights, their interest is to protect their own power and influence.

Just recently two young German students got denied entrance to the US, because the border authorities accused them of planning illegal actions in the US, as proof the authorities showed the students private chats from Facebook.

Benjamin Franklin once wrote: „They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety.“ He also said: „Freedom of speech is a principal pillar of a free government; when this support is taken away, the constitution of a free society is dissolved, and tyranny is erected on its ruins.“ This is the development we are seeing right now.

In Turkey the media didn’t reported in the beginning about the protests on Taksim Square, later lawyers were arrested and Erdogan, the PM of Turkey declared the protestors to be vandalists etc. In Germany a demonstration against the power of banks was beaten down by police and in the US the police was doing nearly the same before in New York with the occupy movement, which was internally marked as being terrorists by the FBI.

Our societies are loosing their liberty, their freedom for which so many people have fought and died in the past.

The sad thing is, most of the people are not interested. Panem et circensem, bread and games, worked already well at the time of the Roman Empire and it’s still functioning.

If you as reader are interested to protect your privacy at least a little bit, here are some tips:

First some big NOs, don’t do this, don’t…

  • publish anything on social media, like Facebook or Twitter, you don’t want to read in the newspaper
  • chat about personal things with people using Facebook Chat, AIM, Yahoo Chat, Skype or simular
  • pass on personal information through email without encrypting it
  • save or backup personal data on any cloud service, if a software doesn’t give you a choice like Things, drop it
and here is what you can do:

  • use encryption in e-mail, like PGP, GnuPGP or OpenPG
  • use your personal hardware for backup or
  • use point to point encryption on rented server space
  • avoid or minimize the use of personal data
  • treat unencrypted email, like sending a postcard
  • use Jabber also called XMPP for chatting with a server you can trust via SSL/TLS additional an end-to-end encryption can be used with OpenPGP. The encryption is integrated with some clients like Adium for Mac
  • use TOR for brownsing, if you want to sat annonym
  • use https whenever possible
For encrypting their are meanwhile easy to use software packets on the market, professional solutions and open Source software as well.

Here are some links:

Generell: GnuPG, OpenPGP

The TOR project

MacOS (for AppleMail): GnuPG

iOS (iPhone, IPad): oPenGP (not free)

Android: The Guardian Project

For Thunderbird: Enigmail

Windows: GPG4Win

Payed solution from Symantec for example

Point to Point encryption:

Most OSes have that capability built in for the local hard drive, called full disk encryption. Check Point offers a more professional solution for the Mac. There are many solutions on the market, free open source solutions and payed services. The important point is that only you have the key and the control over the key and not the hosting company.

Is this Yoga?

Last Saturday I went to an event announced as Yoga Seminar. As the advertising was all in Japanese – and my Japanese is still pretty crappy, I didn’t bother really reading it. So all I knew was, where the seminar will take place and what time it’ll start.

First surprise was, when I came there 10 minutes before, there was no one, the room was locked, quietness. Some minutes later 2 people appeared, who also wanted to attend the event. Hmmm.

So bit by bit some more people came, the room was opened and someone announced, the seminar will start half an hour later – OK….

In the room no one had a yoga mat, besides me, no one came in typical yoga cloth or would change his cloth. Then three guys came in, a tripod was built up. I slowly got the impression being on the wrong spot.

After some time one of them started talking, started talking about the chaotic energy field around people, painting funny graphics on the white board. My Japanese is not yet so sufficient that I could entirely follow what the guy said, so I went. All I wanted to do was Yoga Asana, to get some new input for my own teaching, especially with Japanese people, but obviously this was not part of the program. So I went.

I went down to Bon On Sha, a coffee bar in Koyasan, run by Takeshi a friend of mine. during a coffee, he translated the whole paper about the seminar for me and as it turned out, I got it all wrong. The teacher says, he can manipulate the energy field of people to become healthy by certain breathing techniques. I decided to go back and give it another shot to see what’s really going on.

When I came back the lecture was finished. People where sitting in groups and holding hands palm to palm each other without touching.

The teacher just became free and as his pamphlet stated that he learnt that in India, I assumed that he speaks English, so I went to him.

Oh, assumptions are evil, I was wrong, he didn’t. He immediately called for help, but the English of the guy he called was worse than my Japanese 😀

He was asking me to do Ujai breathing, the victorious pranayama, in a way I’m not familiar with. Ujai breath is usually done by closing Mulha bandha, the root lock and Jalandhara bandha, the throat lock. Breathing in and out is done though the nose and one can hear a sound while breathing. What he told me was different. He didn’t say anything about bandhas, but to breath through the mouth into the chakras from down to top and then keeping the air for a short time, like Kumbak. While I was breathing the way he desired me to do, he started to rotate his left index and middle fingers over my hand, causing a whirl in the energy field over my right palm, his right hand was gliding over my arm without touching it, like trying to figure out my energy field. After some time he went over my back and on the end he told me, my energy field is very nice, without any blockages. I was wondering, because I know this is not true.

Later he told me that this way of breathing comes from Qigong and that he learnt all these things from an Indian and a Taiwanese teacher in Kobe. He then send me to the guy, who tried to translate and he tried to apply the same techniques, like his teacher.

On the white board was a drawing showing the chakras in the body with number next to each chakra, starting with 5 at Muladhara and finishing with 20.000-30.000 next to the Sahasrara, the crown chakra. I was asking the guy who did the lecture about this and he told me, that every chakra has an energy load which starts with very low energy at the bottom and ends with a extreme high energy charge at the top. When I said, my understanding of the chakra system is different, he insisted that it is like that. Didn’t made any sense to continue this conversation.

On the end the whole group went to Miyasan, Koyasans excellent Izakaya, a place to enjoy food and drink.

To be honest this seminar left me with more questions than it gave me answers. I still doubt, he can really change or even manipulate the energy system of a person consciously. We all do constantly manipulate energy around us usually in an unconscious way. I experienced that acupuncture and acupressure can manipulate the energy system of a person to help someone to heal. I believe that this manipulation is temporary and only I by myself can change my energy system to the better or the worse. I also believe one can use the entry points of the energy system to do a lot of harm for example by targeting kyushus, vital points, with martial arts techniques the same way as these points can be used to heal with acupuncture or acupressure.

I clearly would state that this was not a Yoga seminar, but something different. I’m still unsure, if the guy is really able to do something to you, or if he’s just swimming on the „esoteric healing wave“. Personally I didn’t experience anything special there nor I think this is really helpful, it might be for someone else.

Comments? Anyone?

The Cloud

Happy new year everybody 🙂

Today I kicked my getting things done app in the trash.

Getting things done is a book and Method by David Allen. The method originally works with paper and boxes and helps you to get organized and things out of one mind to free the mind for being creative instead of storing stuff there and having to think on that, what’s still not yet done.

Naturally a lot of applications have grown around this idea. Quite some time I decided to use Things from Culture Code. There is a desktop and a iPhone application which were synchronizing over the local network. The user interface of the application is neat and clean and I liked it a lot. I was pretty happy with it.

So what made me trash it?

Culture code decided to update Things to Things 2.0 and with that update they introduced synchronization over their own cloud service and announced very proud how many users are already having an account there. Theres nothing wrong with that, but they also decided to drop local synchronization. So if I want to use the new version, I’d be forced to use their cloud service, a server I have no control of and leave there all my to do lists including all the personal or business information, which I might have noted in one or the other task of my to-do list.

I’m amazed actually, how many people blindly trust a company and leave their personal data on the companies server. Didn’t we all learn meanwhile, that google scans the mails of their gmail service to place proper advertising to the user? So why should we trust a software company, especially when they just abandon the local service, so if I want to continue using the software, I’m forced to use their cloud service.

It becomes even more interesting, if one knows that Culture Code is a German company and the German Ministry of inner affairs is currently working on some laws to give security service access to data in the cloud, meaning forcing providers to open their servers for police or other security services to access these data, preferable without any consultation of a judge. The Patriot Act of the US does this already.

Upps, you didn’t know that? You synchronize your iPhone via the Apple’s Cloud Service, store your documents on amazon’s cloud service. You think it’s all well protected by your personal password and login data. If you run your own server, you know that you have access to everything and anything stored on that machine, so has the industries.

Of course you can encrypt your data with an point to point encryption, which will make it harder for anybody to look into it and only government services or big companies will have the computing power to crack your encryption. Well and what happens, when government and industries work together? It already does as I learnt recently by an article published by the Guardian. A peaceful protest movement against the power of the banks was marked as terrorist activity by the FBI.

You might think, you don’t do anything illegal, so why should you care. We’ve seen over the past couple of years, how quickly innocent people can get into the focus of law enforcement authorities or the industries. The result is often scary. And well, we all have something to protect and be it only our privacy.

Well, I didn’t give up, organizing my to-do and getting things done in a organized way, I’m just using a different software from the omnigroup, a well know Apple development company. Omni Focus offers different ways of synchronizing the desktop and iPhone app. One of them is via Bonjour and the local network another one works via WebDAV or a file server.

These days I just learned, you can set up your own clod services with OwnCloud. OwnCloud is a software-suit based on php and a SQL-server, which can be set up on nearly any Operating-System, all you need is access to a server. This probably works also with dynamic ip addresses and a service, like dynDNS. So now I’m thinking to setup this on my server here.

So, you don’t believe me? Then check this out: http://www.zdnet.com/blog/igeneration/microsoft-admits-patriot-act-can-access-eu-based-cloud-data/11225

New Dinj Online

While I was on Shikoku, I was asked to run the Dinj mailing list.  Dinj stands for German speaking people living or interested in Japan. It was maintained for over 15 years by Michael Engel and the community has expressed their deepest gratefulness for doing so.

The first job was of course the get mailman, the list server software up and running with virtual domains – see the last post. After that Michael transferred the domain to me and now everything is done 🙂 The list is up and running now. One can subscribe here.

The next plan is to add more content to the website and mayeb adding a Wiki later.

Mailman on SnowLeopard Server

Snow Leopard Server (Mac OS 10.6.x) is until now the most solid server-system from Apple I had up and running. It comes with apache, postfix, dovecot and mailman preinstalled. All the software is well know open source software, but some things were changed by Apple. So the best is to leave the mailman installation as it was shipped by Apple.

Mountain Lion has mailman not preinstalled, so you need to do everything by yourself, like on any other Linux System.

Running mailman on SL Server with virtual domains is not supported by the Apple’s ServerAdmin, so one has to set up things by oneself. This is what I did to get things up and running:

1. I activated mailman in ServerAdmin and created one mailing list, called mailman, this will do the basic setup for Apache and mailman.

2. I edited /private/etc/postfix/main.cf and added:

virtual_alias_maps = hash:/private/var/mailman/data/virtual-mailman

you probably already have a file for virtual aliases so you just can add it:

virtual_alias_maps = hash:/etc/postfix/virtual
hash:/private/var/mailman/data/virtual-mailman

3. I edited: /private/etc/postfix/master.cf and uncommented these lines:

mailman   unix  –       n       n       –       –       pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}

4. I edited /usr/share/mailman/Mailman/mm_cfg.py and added this:

VIRTUAL_HOSTS.clear()
add_virtualhost(‘lists.virtual.com’, ‘virtual.com’)
POSTFIX_STYLE_VIRTUAL_DOMAINS = [‘virtual.com’]

this domain of course also has to be in /private/etc/postfix/virtual_domains, which is created by ServerAdmin

4. restart postfix and mailman via terminal:

sudo postfix reload

sudo  /usr/share/mailman/bin/mailmanctl restart

5.  go to your browser and point it to:

lists.virtual.com/mailman/create

6.  run sudo  /usr/share/mailman/bin/genaliases

and your list should be working.

Two things, you can’t have 2 lists with the same name on different domains and the list name can’t be equal to a short name in your OpenDirectory db.

For Q&A there’s a mailman wiki:

http://wiki.list.org/

and for more tricky question you can subscribe to the mailman mailing list here: http://mail.python.org/mailman/listinfo/mailman-users

Have fun and enjoy 🙂

 

After is Before

I’m back, back in Koyasan, back home. It’s been a long time, more than tow month I was on th road, walking from one place to the next one, uphill, downhill, on roads, through woods, along rivers and creeks. It has been a time for being with myself out in constant changing environment and now I’m back.

The last days

It was quite easy, no big climbs anymore, no steep ways downhill, just walking. After I arrived at Ōkuboji (#88), I decided to close the circel and go back to Ryōzenji (#1) to tell thank you to my friend Kinoshita San. She was very busy, so I decided to take a day off, hoping she’ll have more time the next day, but she didn’t. Anyway there wee also 3 friends there from Naruto and one of them has done Tokudo at Muryokoin 2 years ago. Together we visited the Namaste Guesthouse in Naruto and I stayed at thier place over night. I also used the opportunity to wash my cloth the last time during this journey.

The next day it became really hot and I walked to Tokushima to catch the ferry for Wakayama. I had to wait a while, time for eating and resting a bit. The ferry takes roughly 2 hours to Wakayama, so I still had a bit time to walk a little more. The heat continued the next 2 days, actually it’s still hot even up here in Koyasan. The last evening before goign up to koyasan, I went to a local place to eat something. First the guy told me he has only beer, nothing to eat, on the end I got Kani (Crab) and Sushis. I had a nice talk with people there, on the end I additional received 1000¥, the last osettai during this journey.

All the sudden, surprinsgly I was standing in front of Diamon, the big gate. I expected a lot of stairs – I remembered it wrong. It was easy the last part. Of course I was sweating, everything was wet 😀

Yesterday I still went to Okunoin, today back at he temple for morning ceremony and coffee later.

What’s next?

Well good question. I plan to write a book about this journey, but also need to make some money now. So first I’ll start to clean out the place here a bit and get reorganized. Still a lot of things, which were cooking up are not yet in place and still need some more reflection.

All in all it was worth the effort, it changed my view a bit I think, the way I think about different things and hopefully also the way how I deal with people.

I received so much friendliness during this journey, uncondtionally, just like that and I’m most greatful for that. I also was often thinking on my teachers, on Habukawa and Hashimoto Sensei specially and I want to say I big thank you to everyone, who directly or indirectly supported hepled me to make this possible.

Done

Murphies Law

Walking, weather report says, partly cloudy. It starts dripping, I put the rainsheet over the backpack, continue to walk. Dripping slowly becomes rain. I think it’ll stop soon. Passing by a coffee bar, which is the only place to sit in around. It has its day off. Slowly rain starts streaming, wind comes up, shoes get wet, finally a shrine along the road with a small place under a roof. I put my rain gear on. Keeping on walking. Rain decreases, stops. 15 minutes walking, clouds move, sunshine, still having wet shoes 😀

20120722-160716.jpg