Saturday, July 23, 2011

New Technologies that can make the Earth into a paradise

Uses 90% less water, little sunlight, little land, applicable to extraterrestrial farming.
http://www.spiegel.de/international/zeitgeist/0,1518,775754,00.html

Ciao

Tuesday, June 21, 2011

A Listing of some of my favorate Startup/Business/Tech Books

A few of my friends from the Business Society at UCM asked what books I have enjoyed. Enjoy the list. If you decide to buy them from Amazon.com-please use my links as I get a referral fee and you get the same price.

Barbarians Led by Bill Gates: Microsoft from the Inside
A great book on Microsoft-it gives a great background on Bill Gates decisions. From how Paul Allen and Bill Gates how to write a Basic interceptor and an emulator for the Altair. To when management changed at Altair and sued Microsoft for the source code rights to Basic-how Bill Gates had to hid under the apartment staircase to avoid being served notice by the officer who eventually taped it to his door. (By the way Apple loaned MS the money because Steve Wonzaick lost the source code for AppleBasic so they licensed Bill's Basic which had the distinction of handling floating points.) To Bill Gates decision to lock half of Microsoft down so the Word and Excel developers could develop on the yet to be released Macintosh OS while the Windows team was being left in the dust-yet it came off that the two teams shared knowledge that was the basis for Apple's later lawsuit. One of the best stories was how Microsoft turned against IBM. Windows was a failure because no one wanted to write applications for the bloated OS-they liked DOS. IBM was pressuring MS to give it up and they agreed to discontinue it in favor of IBM's OS/2 and be regulated to an application developer. However, one lone MS developer got the idea to take advantage of a new feature of Intel's 80386 processors to emulate (set up instances of) DOS on Windows. He worked all weekend with a colleague and demoed it-Microsoft decided to challenge IBM and you know the rest.

In The Plex: How Google Thinks, Works, and Shapes Our Lives
An amazing book on Google insides. Besides Google the book details the evolution of their search algorithm from the simple PageRank to more natural language queries then to universal search. It actually talks about the technical details of the startup (Page actually wasn't much of a programmer and had someone else write PageRank who decided on Python). Additional small tech details was spanning the servers out to multiple machines, having an accessible log system and setting up their own data centers after being left unsatisfied with the poor service of current vendors. You learn quite a bit about Google's data driven culture-how Google used data to decide to drop short tail (my term-catered, large national advertising) in favor of the long tail (small vendors across the nation). In addition to the more human details of Google's entry into China, the Google Book Publisher deal and the Obama administration.
By the way, yes he was told as noted in the book. :-)
Obama CS Question

I will add more later. :-)

Ciao

Friday, June 10, 2011

Big Projects, lets tear down the old toll roads

I just finished reading "In the Plex", a book about Google's mission to disrupt the world and I found it very inspiring. So many entities justify their existence in the world by paving a road and sitting on it for ten, twenty, a hundred years collecting a toll for what they did (more like what the founders did) so long ago. Naturally when hovercars are invented they whine and scream and go to Congress demanding that hovercars be outlawed because it would destroy their business.

I feel inspired but I also feel at cross roads with my Free Software ideology-Sergey Brin had read Telsa's biography-Telsa, like Franklin gave away all his technology but he died in obscurity-Sergey felt that if Telsa had more resources he could carry out his ambitious plans. Google is pumping the billions that they make through advertising into efficient data centers, speech to text translation and self driving cars. (Hint: they drive better then Californians.) Redhat's own CEO gave a insight into why Redhat will never be like Microsoft: for every dollar Redhat makes, it replaces 100 dollars in proprietary software. However Redhat contributions back to GNU, GNOME and Linux allowed Google to scale to the large heights that allowed it's algorithms to work effectively. (A Google employee gave a demonstration at CITRIS on AI. He demonstrated on an accuracy over 'dataset size' graph that a simple, unoptimized algorithm can deliver more accurate results once the dataset as reached a certain size-it followed exponential growth.) I wonder what advanced could be made if Google released their wonderful AI based search engine for the community to develop off of. Do we need to keep a portion of our advances secret to fund the next generation? Is there a way to make obscene profits off of the Free Software movement so we can have the scale, the weight to make change in society?

With that in mind here are some projects that I think society should take on:

State wide community broadband
http://gigaom.com/2010/08/05/how-to-finance-a-community-broadband-network-when-incumbents-fight-back/

Neurofeedback for criminal rehabilitation
-Alot of people who commit crimes have poor impulse control-NF can help with that alleving prisons of repeat offenders.

Web 2.0 for Governments
-all forms that we fill out should have an easy web 2.0 interface and a manager where we can check on the status on the form. Same with tickets or fines.

Rechargeable Batteries that last FOREVER!
-We need immortal rechargeable batteries if we plan to move to renewable energy. We need to scale them to a certain size to replace coal and natural gas power plants. Utilities will like this even if there is no renewable component-to handle fluctuations in demand that are not predicted, they will bring a natural gas powerplant online or increase output. A coal powerplant takes much longer to increase output but is much cheaper while a natural gas one is much more expensive but faster. Replacing it with a giant battery charged by the surplus wind and solar energy will be very welcome.
http://www.sciencentral.com/articles/view.php3?language=english&type=&article_id=218392803
http://www.doityourself.com/stry/why-a-rechargeable-battery-does-not-last-forever

Ciao

Tuesday, June 7, 2011

Do not Believe what you read about Neurofeedback on the web!!!

I finally put up on adsense on this blog and woe do what I see as my first ads. The're based on the Superforcus Procedure so they link to 3rd rate shops that I never heard that advocate doing Neurofeedback on yourself without providing information-these are horrible. Right now I can't block by keyword, only the domain. I have signed up for a new ad screening process which should allow me to filter them much more easily by next week.

So buying your own neurofeedback machine-you can learn how to hack your own brain, sounds pretty safe right? You read that training T3 or T4 can improve memory so you think you should buy a machine to do that following the procedures.

NO! First, your hooking up a semi-direct line that transmits electricity (in this case from YOUR head TO the machine) to a wall socket. THIS IS VERY BAD IF YOU DO NOT KNOW WHAT YOUR DOING!!!!! Certified machines like from Brainmaster are connected to the wall socket when off that charges a battery. When switched on they draw power from the battery instead of the wall socket to protect your head from being shocked by a power surge. Imagine yourself spazzing out on your own with no one to help you.

Second, most people have never heard of neurofeedback so they may have no idea on how to use it. They just make assumptions based on what they have read in books or on the internet. Like if there feeling sluggish they need more beta for energy. Guess what? The brain is not that simple-yeah I know, you really needed to be told that. Did you know that there is 'low beta' and 'high beta'? Did you also know that Neurofeedback training is very site specific (the region you train on your brain)? If you train high beta on sensory-motor strip (C3, Cz C4) you will go off the wall. Did you also know that neurofeedback is training your brain and in that process you can get migraines, low energy or hyper energy? Did you know that simply adjusting the frequency by 0.5 hrz can make all that go away? As if the neurofeedback provider flipped the headache switch off. Trust me-it's happened to me.

Third, even the most experienced nf providers will admit that nf is more of an art then a science. Every human brain is different and responds to nf in different ways. My brain for example, being autistic likes the frequency very low-sub delta-and it gives me energy. Some brains need it very high to function in the reverse. Other issues can complicate treatment-such as injury to the head. My nf provider told me the story of this one prison guard who was hit to the side of his head with a bag of rocks in a breakout. He became very socially withdrawn after that-becoming a different person. His wife brought him to another nf provider who trained him by the book (canned procedures) and he would become very violent whenever the damaged side of his head was trained. He was brought eventually by his wife to my nf provider who only trained on the other side of his head thinking that the other side must have taken over the damaged sides operations. A year later of training he made such excellent progress that his wife told my nf provider that "you gave me my old husband back".Your working with the lower internals of your brain-whatever quirks that exist in your brain will be exposed by nf and you will discover alot more then you ever knew about yourself (an undiagnosed medical condition, enhanced intelligence, certain problems or cravings all your life going away).

The gotchas are many in nf. What you know about your own brain is (probably) not enough to use nf in a safe manner. What you read about on the internet are canned procedures that make certain assumptions . Every brain is different so if you don't know what your doing you will mess yourself up. This site is all about overcoming the obstacles so you know what your doing. So where do you start?

-

First I would recommend that you actually goto a nf provider. Everyone is required to have medical insurance so there is no excuse for that. The first part of nf training is the hardest-once you get used to how your brain operates being trained then you might be able to do it on your own.

Finding a good nf provider is a different story. Here are questions to ask your provider.First your provider should have several years of experience (or practice under someone who does). Second your provider should actually do the training themselves-this sounds obvious but quite a few just follow the canned procedures and tell a clerk to train you at this frequency for this long-despite my earlier claim that headaches and other problems can come up that can be solved by shifting the frequency by 0.5hrz. (In my opinion practices like this should be banned-many brains often need to be trained at different frequencies for little things like the weather.). Third if you can't see crediation that the provider has accomplished some sort of class or they say no to any of the past two questions-leave.

If you can't find a good provider or you want to know more because it is your brain (and it can be messed up if the provider is an idiot). You can go to these sites to learn more.

To find a provider (of eeg based neurofeedback, there are other types such as heg)
http://eeginfo.com
Brainmaster's youtube site, contains training videos from operating the equipment to the science behind nf.
http://www.youtube.com/user/brainmastereeg
A intro guide to setting up a neurofeedback practice. ISBN: 978-0393704501
Getting Started with Neurofeedback
A more academic overview, covering many different technologies and treatment procedures for bipolar disorder, anxiety, autism and others. ISBN: 978-0123745347
Introduction to Quantitative EEG and Neurofeedback, Second Edition: Advanced Theory and Applications

Ciao

Monday, May 30, 2011

Superfocus Procedure

Okay, alot of my friends have been curious about this. Basically throughout all my life I always been feeling somewhat drained of energy. Around summer 2010 my low energy got to a point where I became so disappointed in myself that I was ready to drop out of school. I have big dreams yet I never had the energy to accomplish them. I thought I had ADHD with my Autism Aspergers-the tester I went to told me I did not have it. She suggested Neurofeedback-we did T3-T4 and it didn't feel like much of an effect. Next week we did T3-T4 and T4-Fp2 and I had my first encounter of superfocus-a state of enhanced energy and performance. Long story short the sf back then made my highly impulsive and I could not sleep as well as other side effects. T3-Fp1 took away the impulsiveness, T4-P4 improved math abilities.

After a while I noticed the frequency I trained at tend to stay between 0.3-0.4. My whole brain seemed to be unique in this regard that it likes the frequency very low. I setup biannual beat generation program called SBaGEN to procedure beats at 0.35 the average-my brain reentered sf within an hour.

If you use this procedure there is no guarantee you will get this, even if you have autism since each case of autism differs for each person-what stimulates your brain may be at a different frequency. The problem is if stimulate it-my initial sf was very dangerous-I was very impulsive and said and perhaps did things that I did not mean to do-I could only sleep for 3 hours at a time and had to take plenty of melatonin tablets even for that. There could be other side effects-before the beat generator while using neurofeedback-the day after I would enter a period of either depression or panic, it would last 52 hours from my training then I would enter sf. Those panic attacks went away after training C4 and be replaced by something I will not say, that which was eliminated by training T4-C4. T3-P3 training would make my panic attacks last all the time and made my sf last for only a few hours-training T3-T5 (and later with T4-T6 after) restored it. In summary, even if you find your frequency your sf may be useless without neurofeedback to train your mind-specifically T3-Fp1 and T4-P4. That is my experience, I give no warranty to the usefulness of this information and I feel it would apply to my brain with it's unique case of Autism and it might be dangerous to others without training with neurofeedback. I place this information on this blog in hopes that this technique could be refined into a science by others.

Setup
Download SBaGEN from here
http://uazu.net/sbagen/
Copy this text portion into a file with a name ending in .sbg
-Wo output.wav
ts1: 300+0.35/100
0:00 ts1

Write out the file to a .wav (read the instructions to SBaGEN-I will not give help).

Entering Superfocus
I play the file usually with vlc on Windows 7. VLC runs at 50% and the Windows volume control is set at 44%. Place the computer at equal distances from the left and the right walls (best to play it in a square room). This is important as the file should be loud enough for both ears to feel like there getting the same beat. I DO NOT use headphones, I always hear a distinct ringing in my left ear-not sure if it's just me but I tried swapping the ear buds, same thing. The point of this is to be entranced-that is you stare off into space like a zombie while the music is playing.

Play the file and try to keep your mind clear, to be entranced by the music for 24 minutes.

You should enter it in one hour and should feel the full effects an hour or two after that.

Exiting Superfocus
I need to exit superfocus to sleep. I use relaxing rhythms biofeedback software and system to do that. I play the breathing tree exercise first on my left hand. Then again on my right hand. Then I play the boat exercise on my right hand then again on my left hand. I do not know why but it is important that you practice equally on both hands or the sf may not work the next day
Healing Rhythms from the Wild Divine Project (This may be the bundle back that includes Relaxing Rhythms, or it may not-I may no guarantees.)
http://www.amazon.com/Healing-Wild-Divine-Project-Biofeedback/dp/B000HKI21W/ref=sr_1_1?s=hpc&ie=UTF8&qid=1306454975&sr=1-1.

Update:
Good news. I found that playing 3.0 for 24 minutes terminates the superfocus and also leaves more relaxed, more engaged and in a better mood then the biofeedback machine. I now use the 3.5 to enter sf and 3.0 to exit. Unlike 3.5 which requires specific placement and to be played out loud this can be listened to on headphones.

I still recommend the biofeedback system as it is how I first learned to enter sf on my own-I gained that ability after the Japan tsunami and lost after the next training session, gaining an incredible headache and having alot of my training reversed. Those with Aspergers are recommended by the book "An Introduction to Neurofeedback and it's applications" to use neurofeedback and biofeedback together to train themselves away from ruminating patterns.

Ciao

Sunday, May 29, 2011

Thursday, May 26, 2011

Android Run Down

The documentation for Android is horrible. These sites can get past many of the documentation blockers.

-Problems with Eclipse

If you get a 'foo' error when you run a vm like
invalid command-line parameter: Files.
Hint: use '@foo' to launch a virtual device named 'foo'.
please use -help for more information
goto this

http://www.wallpaperama.com/forums/_wlxpee.html
-
If ctrl space items don't show up goto Window->Preferences->Java dropdown->Editor dropdown->Content Assist->Advanced Select the items that don't show up.
-
If you refactor the id of an xml element. Not only will the eclipse plugin not change the name, the syntax checker will not throw an error regardless if an element with that name still exists.
-
For programmatically changing XML interfaces you have to use setContentView(xmlfile) then you change the elements. A nice side effect is that two xml layout files can have the same ids for elements.

-Speeding up Eclipse (increasing memory heapsize)
http://wiki.eclipse.org/FAQ_How_do_I_increase_the_heap_size_available_to_Eclipse%3F
I find adding these commands helpful:
-vmargs -Xmx512M

-Using highlighting to spot syntax errors

-Resizing the Emulator Screen
Starting with Android 1.6 the Android emulator switched to a bigger startup screen which doesn't fit on my laptop computer. Switch to HVGA for a smaller screen.

-Speeding up the emulator (with pictures)
http://stackoverflow.com/questions/1554099/slow-android-emulator
I personally have had good results with: vm.heapsize 512, hw.ramSize 512, HVGA, and snapshot with Android 2.3.3. (Still takes a long time to startup but with snapshot startups are somewhat fast, closes are slow but increasing the heapsize minimizes that time. This is important as I keep accidently closing the emulator or sometimes eclipse has problems talking with the emulator and both need to be restarted.)

-Comprehensive ListView Examples
http://www.vogella.de/articles/AndroidListView/article.html

-How to use SQLite in Android (hint you need _id and the table android_metadata)
http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/

-How to use cursors in Android
http://www.higherpass.com/Android/Tutorials/Accessing-Data-With-Android-Cursors/3/

-How to use simplecursoradapter in Android (alot of sites do not give good documentation on the fields)
http://www.higherpass.com/Android/Tutorials/Creating-Lists-Using-The-Android-Listactivity/3/

-Making good looking UIs and other Android topics walkthrough
http://marakana.com/techtv/android_bootcamp_screencast_series.html

-Using a viewlist or spinner programmatically.


-Using the canvas for animations (games or special visual effects)
Here

Android Java docs (there are some classes not talked about in the public android docs)
http://www.androidjavadoc.com/2.3/index.html

Quick Notes
Use sp for text and dp for everything else. Sp scales with the user font size. (Pragmatic Programmer)
Ctrl+F11 or 7 or 9 (on keypad) will switch the phone between horizontal and vertical modes.

Ciao