No, this is not about virtualbox running on windows 10. This is about running ubuntu directly under windows 10 as a powershell. Yes, that's right. You run linux commands on windows filesystems and other stuffs you would expect.
So let's get started. First, you need to be registered under Windows Insider Program. If you are already registered, you can skip ahead to installing Windows Subsystem for Linux.
Please be warned, programmes under Windows Insider Program are not declared stable yet. It may cause your system to crash. Take caution when you register for Windows Insider Program.
The Ubuntu version in the Windows Store is only 14.04 at the time of writing. The current latest distribution version from Canonical is 16.04. Expect that the version of Ubuntu from Windows Store to be of much earlier versions.
Go to Windows Settings -> Update &s; Security
Select Advanced options
Let's Get Started.
Register your account for Windows Insider Program, or switch to an account that is already registered with Windows Insider Program.
You will be directed to Windows Insider Program Webpage. Let's Get Started. If it prompts you to login, proceed to login with the acount associated with your windows account.
You will be greeted warmly by Microsoft as an insider
Go back to Windows Settings -> Update &s; Security -> Advanced options. Let's get started with the insider program. You will be warned that you will be getting pre-released programmes that may cause instability in your computer. It's not too late to turn back now.
You are given one more warning before confirming that you want to install pre-released programmes on your computer. The only way to remove pre-released programmes completely is to reinstall Windows 10. There is no turning back after this.
So you decided to be part of the Windows Insider Program? Welcome to the edge of the knife, tip of the spear. You will need to restart your computer and it will take quite a while for Windows to reboot. Meantime, grab a cup of coffee.
You must first enable Developer mode.
Next, go to your control page and select Programs and Features.
Let's Turn Windows features on.
The feature you need to turn on is Windows Subsystem for Linux(Beta). As the beta implies, it's not a complete product yet. Proceed with caution. Select OK and it will install this feature on your computer.
Next, open up PowerShell in administrator mode. Not to be confused with CMD. Powershell is more feature-rich and meant to replace CMD. More information can be found here.
Enter the following commands in Powershell
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
bash
You will be asked if you want to continue to install Ubuntu. Type 'y' to proceed with installation.
You will also be asked to enter a username and a password. This can be different from your Windows Login username and password.
That's it! You have successfully installed Ubuntu on Windows 10.
Now, how about removing it?
This time round, open CMD in administrator mode and type the following commands:
lxrun /uninstall
Your ubuntu home folder will not be removed though. If you want to remove the home folder too, type the following instead:
lxrun /uninstall /full
To reinstall Ubuntu, type the following:
lxrun /install
I have added cloudflare to my site. It was such a simple process of setting up a cloudflare account, telling cloudflare my url, and going to my Domain Nameserver to point to cloudflare servers. So easy.
More importantly, I hope nothing goes wrong with my set up. So far, everything seems to be in working order.
First time Docker user here. So far with whatever I've read, it seems it's a very useful tool to use. Especially if there is a need to run multiple applications in an environment. That way, I shouldn't need to worry about conflicts between applications. So far, my way of isolating applications is by using Virtual Machines, running independent OS. It's not too efficient, but it works. Maintanence is quite a hassle, but I'm quite used to it. I'm going to give Docker a try and see how it will benefit me.
Here's a tutorial on how I installed Docker on Ubuntu 16.04.
All commands are running on root. If you're not running on root, be sure to add sudo to every command.
I'm assuming that you are working on a fresh copy of ubuntu 64bit installation. It's a good practise to ensure that you update all your apps before proceeding.
apt-get update
apt-get dist-upgrade
This part of the tutorial is taken directly off their documentation.
We need to add their repository to get the latest docker stuff.
apt-get install apt-transport-https ca-certificates
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
Now we add their source.
nano /etc/apt/sources.list.d/docker.list
If there is any thing written in it, remove all of it. I doubt there is any, as it's a new ubuntu installation. Then add the following line and save:
deb https://apt.dockerproject.org/repo ubuntu-xenial main
Time to get the docker application.
apt-get update
apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual
apt-get install docker-engine
service docker start
Let's give the docker a try and see if it works:
docker run hello-world
You should get something like the following:
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
c04b14da8d14: Pull complete
Digest: sha256:0256e8a36e2070f7bf2d0b0763dbabdd67798512411de4cdcf9431a1feb60fd9
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker Hub account:
https://hub.docker.com
For more examples and ideas, visit:
https://docs.docker.com/engine/userguide/
Congratulations. Have fun and tell me about your experience.
I have resumed my Machine Learning learning. Yea, bad pun! After writing a long blog post previously on the Origins Debate and many other things I need to do, I'm starting to write machine learning codes. Honestly, I'm still absolutely clueless about the concept of Machine learning and its terminology.
What's shape?
What's convolution?
What's weight?
Questions and more questions.
I'm following the tutorial at tensorflow tutorials for Experts. Ironic, I'm no expert.
Here's the codes I've written so far.
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets('MNIST_data', one_hot=True)
import tensorflow as tf
sess = tf.InteractiveSession()
x = tf.placeholder(tf.float32, shape=[None, 784])
y_ = tf.placeholder(tf.float32, shape=[None, 10])
W = tf.Variable(tf.zeros([784,10]))
b = tf.Variable(tf.zeros([10]))
sess.run(tf.initialize_all_variables())
y = tf.nn.softmax(tf.matmul(x,W) + b)
cross_entropy = tf.reduce_mean(-tf.reduce_sum(y_ * tf.log(y), reduction_indices=[1]))
train_step = tf.train.GradientDescentOptimizer(0.5).minimize(cross_entropy)
for i in range(1000):
batch = mnist.train.next_batch(50)
train_step.run(feed_dict={x: batch[0], y_: batch[1]})
correct_prediction = tf.equal(tf.argmax(y,1), tf.argmax(y_,1))
accuracy = tf.reduce_mean(tf.cast(correct_prediction, tf.float32))
print(accuracy.eval(feed_dict={x: mnist.test.images, y_:mnist.test.labels}))
def weight_variable(shape):
initial = tf.truncated_normal(shape, stddev=0.1)
return tf.Variable(initial)
def bias_variable(shape):
initial = tf.constant(0.1, shape=shape)
return tf.Variable(initial)
def conv2d(x, W):
return tf.nn.conv2d(x, W, strides=[1,1,1,1], padding='SAME')
def max_pool_2x2(x):
return tf.nn.max_pool(x, ksize=[1, 2, 2, 1], strides=[1, 2, 2, 1], padding='SAME')
W_convl = weight_variable([5, 5, 1, 32])
b_convl = bias_variable([32])
x_image = tf.reshape(x, [-1,28,28,1])
h_convl = tf.nn.relu(conv2d(x_image, W_convl) + b_convl)
h_pooll = max_pool_2x2(h_convl)
W_conv2 = weight_variable([5, 5, 32, 64])
b_conv2 = bias_variable([64])
h_conv2 = tf.nn.relu(conv2d(h_pooll, W_conv2) + b_conv2)
h_pool2 = max_pool_2x2(h_conv2)
W_fcl = weight_variable([7 * 7 * 64, 1024])
b_fcl = bias_variable([1024])
h_pool2_flat = tf.reshape(h_pool2, [-1, 7 * 7 * 64])
h_fcl = tf.nn.relu(tf.matmul(h_pool2_flat, W_fcl) + b_fcl)
keep_prob = tf.placeholder(tf.float32)
h_fcl_drop = tf.nn.dropout(h_fcl, keep_prob)
W_fc2 = weight_variable([1024, 10])
b_fc2 = bias_variable([10])
y_conv = tf.nn.softmax(tf.matmul(h_fcl_drop, W_fc2) + b_fc2)
cross_entropy = tf.reduce_mean(-tf.reduce_sum(y_ * tf.log(y_conv), reduction_indices=[1]))
train_step = tf.train.AdamOptimizer(1e-4).minimize(cross_entropy)
correct_prediction = tf.equal(tf.argmax(y_conv, 1), tf.argmax(y_, 1))
accuracy = tf.reduce_mean(tf.cast(correct_prediction, tf.float32))
sess.run(tf.initialize_all_variables())
for i in range(20000):
batch = mnist.train.next_batch(50)
if i%100 == 0:
train_accuracy = accuracy.eval(feed_dict={x:batch[0], y_: batch[1], keep_prob: 1.0})
print("step %d, training accuracy %g"%(i, train_accuracy))
train_step.run(feed_dict={x: batch[0], y_: batch[1], keep_prob: 0.5})
print("test accuracy %g"%accuracy.eval(feed_dict={x: mnist.test.images, y_: mnist.test.labels, keep_prob: 1.0}))
I don't even know if I'm doing it correctly.
The debate between Bill Nye and Ken Ham is arguably the most well-known debate on Creationistic and Naturalistic origins. Held at Creation Museum in Petersburg, Kentucky, the 2 gentlemen debates on the question, "Is Creation A Viable Model of Origins in today's modern scientific era?" live on the internet.
I'm going to look into detail of their debate with a critical eye, while being as unbiased as I can while looking at evidence. I'm a creationist and an atheist-turn-christian. A transcript of their debate can be found here at youngearth.org. I have no affiliation with Answers In Genesis. My opinions are solely mine.
As Ken Ham starts first, he asserts that science is grossly misrepresented, that scientist cannot be a creationist. Then he goes on to highlight 2 other creationist who have contributed greatly to science, Stuart Burgess and Dr. Raymond Damadian.
He highlights next that many schools in the USA teaches naturalism in science textbooks. And that because it doesn't differentiate observational science and historical science, all information are presented as facts when historical science is man's idea about the past.
So far, so good. I can relate much of what has been mentioned by Ken Ham. Growing up in Singapore, I was, at one time, forced by my own conviction to never follow fairy tales. Thus all of creation stories were, to me, a fairy tale. I delved deep into science, from books on dinosaurs to astronomy. I was very fascinated by these stories. I thought our origins were well-explained and I could take proud that I have such knowledge. It's only when I'm much older did I realise that these man-made stories were "man-made". They hold no more credibility than the stories of the bible.
Next up was Bill Nye's opening statement. Interestingly, he highlighted a TV show and made relevance to the rest of his view. He asserts that science does not differentiate between observation and historical science, as what Ken Ham mentioned about textbooks in schools. And that CSI drama series, and real world crime scene investigation, also does not make such distinct difference. So I decided to do up a little digging.
I looked up the internet and found this webpage that simplifies the details of how crime investigation is conduct and by who. Based on what I quote from the page, here's what I understood:
Nope, I don't see Bill's point. Real world CSI clearly identifies that there is a phase where you collect present evidence and use it to reconstruct the past. The differentiation exists. As Ken Ham puts it, there is observational science and historical science.
Then Bill goes on speak on the Global Flood and Noah's Ark, asking us if it's reasonable to believe? But didn't elaborate on why it is or it is not. Perhaps time constraints. Granted.
Bill also mentions about the grand canyon and relating it to the global flood. He posed a question for the audience, why didn't the animals swim up? So I decided to look around the internet again and let science answer it. The grand canyon was formed rapidly, that's why the animals didn't have the time to swim up.
So far, in my opinion, Bill's opening isn't much of a convincer. But he invites everyone to look at the evidence he will present. So alright, I'm going to sit up and listen.
Ken Ham proceeds to elaborate on his opening statement, highlighting these:
So far, I am able to relate most of it. While Ken presents much on the differences in worldviews and the unfair treatment of scientist who are creationist, Bill Nye proceeds to present some evidence that suggest an old Earth of millions of years.
Bill highlighted these:
True to his word, Bill showed 11 evidence that claims old earth. 3 others were a challenge to Noah's credibility, and 1 was on Kentucky's governance, which either has no relations to the debate or he's trying to imply that Ken Ham has prevented an important form of heart treatment in the state. He also didn't address Ken's point and his defense on his opening statement, that there is no distinguishment observational science and historical science. In fact, most the evidences he points to, are present observations, then used to predict the past.
As curiousity get the better of me, I decided to look for some answers:
As we can tell, both of these speakers spoke with very different objective. Ken Ham, right from the start till thus far, has been speaking out on the differences in worldview. He consistently highlights that evidence is not a tell-all, but subject to interpretation based on worldviews. Thus in his presentation, doesn't elaborate much on evidence, but on interpretations. He also goes on the highlight the unfair biased treatment of creation scientist by the media.
Bill on the other hand, goes on the highlight a lot on evidence, which much has been refuted. His only credible evidence so far, is the light travel problem. On several occasions, he made several misstatements which is unexpected from the executive director of the Planetary Society, and "the Science Guy".
So here comes the rebuttal, which is a punching session of words. Let's take a look at some of the main points and how they rebutted each other. Note: This is not a transcript of their conversation, but a rephrase of their conversation for better context and readability.
I am very critical of Bill in this segment. His failure to address Ken's rebuttal properly quite be due to him being more of a science communicator, not so much of a debater. Still, the merits of the rebuttal doesn't seem to be much weight in most sense, especially when it comes to theology, and using his personal experience as an evidence. I could be judging wrongly, but some mentions seem personal. Ken seem objective for most part, highlight evidence of scientific flaws. He did answer a few theological matters.
Ken here, starts of with a very honest answer, he doesn't know why God made the stars move away. Then he goes on to an evangelistic approach to show the glory of God. Bill responds by highlight the satisfaction of knowing that God created it and not progressing to know why. By just this context alone, Bill makes sense. He then challenges back by asking Ken to predict something based on creation model.
Bill gives an absolute honest answer here. He doesn't know, and he wants to find out. Ken, on the other hand, responds immediately with creation worldview. His responds imply that he doesn't believe in the big bang and everything in the world was created in 6 days. Thus, everything, including intelligence, comes from God. In some sense, Ken's responds still validates Bill's previous statement, that he is just satisfied knowing God created, and not delving further.
Ken highlights the important point that it's not the majority that is the judge of truth. After all, the majority has gotten wrong. It is due to discovery, as mentioned by Bill, that the scientific community changes. Bill is agreeing with Ken's responds to the question. And even more so when Bill mentions about increasing complexity of life because of the sun. There is no observable science to observe how a single cell transit to multi-cell. And he doesn't mention about negative entropy.
As usual, honest to himself, Bill declares he doesn't know. But he goes on to talk about the joy of discovery and ask the audience to find the answer. That's as good as throwing back the question back. Hardly a satisfactory answer to me. To be fair, I'm not too satisfied with Ken's either. His reply, again, emphasizes on his worldview. Highlighting that conciousness comes from God. It still somewhat validates Bill's claim, that he is just satisfied knowing God created, and not delving further. But the next part is interesting. He does make a point that the joy of discovery is only meaningful in the context of what's after death.
Without context, Ken's answer would seem like a stubborn faith when he mentioned that no one can convince him that the word of God is not true. Here, we can tell his really stumbling over. Next he spends some time telling Bill of what are the things that will change, and what won't. Bill, true to his core, challenges again the need for evidence to change his worldview. His challenge to Ken about predictions from his model seems invalid, as Ken already highlighted some creationist scientist who made discoveries and inventions during the presentation.
Ken has already proven during the rebuttal that radiometric measurements is not accurate. He makes it a point again during the response to Bill's answer. There's also an erroneous statement that Lord Kelvin calculated 100 000 years old sun, which is actually 30 000 000 years old instead. Bill challenges Ken on the skulls that formed the modern human, which if I were Bill, I would already know that the skull issue has been addressed implicitly by the inaccurate dating methods and the interpretation of evidence. But of course, let's find evidence. I searched around looking for transitional fossils and the most famous case came up, Lucy. This famous fossil has been critiqued that it is not definite proof of missing link. It's not even near complete to start with. When Dr. Johanson was asked how he was sure the knee found 2 Kilometres from Lucy away belonged to Lucy, he replied anatomical similiarity. But dogs and bears are anatomically similiar, yet we don't have dog/bear transitional fossils. Point in, the skulls presented by Bill Nye is not a definitive indicator of human transitional fossils.
Ken addresses this segment well, using the rate of continental drift as an example of observational science and historical science. We can observe the rate of change today, but to assume it has always been the same in the past, is historical science. Bill explains some continental drift examples that I don't quite catch his point. Even more strangely, what has clocks with slight difference in timings among each other got to do with the question?
Ken's observational science approach to the answer and Bill's answer with a intriguing statement. Why is it an irony that green plants reflect green light? Observational science can prove to you the physics of how light works. Why is it a mystery? Bill, are you even serious? But aside from me being critic, I love this humourous segment the most.
Bill explains well on the 2nd law of thermodynamics and how everything eventually becomes heat. But Ken counters on something very logical. Life doesn't come from energy. To give a grossly simplified example, the reason why you and I are alive is because of oxygen. Yes, plants give oxygen because of energy from the sun, but the energy is converted because of existing life, existing intelligence. That oxygen gives life to other animals, and thus we consume meat and vegetables, which also gives us life. Energy alone doesn't give life. Ken is also right that the entire universe is running down, towards heat death.
Ken avoids answering this question by explaining that there is no such possibility. In the way he presented, he is right. I can't say for sure if avoiding the question is the right thing to do. Bill makes an excellent point that even if there is a disbelief of a certain matter, should be just stop pursuing that knowledge or should we still attempt to find the obvious? This question is much more philosophical than it is science. By now, I'm tired of hearing Bill repeating that we can measure the age of the Earth through obvervance when Ken has repeatedly shown that all dating methods are potentially inaccurate.
His answer may be subtle, but it's a definite no. What I see here proves Ken's point, that Bill's starting point is naturalism. That's his religion. That question is directed specific to Bill, so referencing others don't really answer the question. Of course, another personal attack on Ken. Ken emphasises again the obversational science and inventions are not the same as historical science and origins.
Bill already admits he's not a theologian, so he is validating that his counter argument just doesn't make sense. Ken didn't mention that he will take the Bible and interpret the way he likes it. He is interpreting it according to context. I'm sure Bill wouldn't read a science-fiction book and take it as literal real world events.
Bill asserts that evolution adds complexity. I believe this is in response to Ken's counter argument that energy does not create life, which implicitly means Bill is agreeing with Ken. But evolution doesn't add new information. For example, mating different dog breeds doesn't increase DNA of dogs, but simply a different mixture of genes based on existing genes, creating new breeds. Ken's response is very appropriate when he challenged Bill to show an example of new information arising from what was previously not there.
I believe the answer is already address when Ken highlights the scientist, who are creationist, making an impact in the world through discoveries and inventions. Bill is still insistent that on the creation model does not have predictive quality.
The right germs has shown up many times in the past, such as the yellow fever. There is still no cure for this disease. But how did we humans defeat this terrible disease? Through other physical means like isolation and vacination. That is because of intelligence. Ken gives an excellent example of how no new information is risen, despite that there is evolution.
Ken takes this final opportunity repeat again the predictions that was made with the creation model, such as the origin of marriage, the origin of language, that kinds will reproduce after its kinds, and so on. He proceeds to seek the truth through the Bible, which, in context, is the eye witness account of creation. Bill makes his point that his religion is naturalism when he mentions that people are a product of the universe. History has shown that we have abandoned many old ideas before, such as abandoning geocentric idea for heliocentric. We should be prepared to abandon ideas if science and society is to progress and if we truely embrace science. His political statement is irrelevant.
In my honest opinion, I see that Ken has put up a very strong compelling case for his stance that observational science is not the same as historical science. Other matters that has been highlighted are that creationist are also scientist, and that the media has falsely portrayed creationist as non-academic people. I disagree at how some questions were answered by Ken, as without context, audience would have certainly misinterpreted it.
I find Bill sometimes in denial. Ken has repeatedly shown predictions made with the creation model. Ken has shown that creationist can move technology forward. Bill just denies it.
I hesitate to believe that Bill would change his belief because of evidence. His stance on naturalism is firm. He would use his worldview to find an explanation on historical science, which cannot be observed.
Bill gets personal at several times by making many ideas, specifically Ken's ideas. I find that's not appropriate. We should judge base on the merits of the case, not on the person.
I get the impression part of Bill's objective is to shame anybody who attempts to take Creationistic ideas seriously. Attempting to introduce politics by getting voters to vote creationism out seems like the Galileo controversy, where Galileo was judged by the geocentric majority for suggesting heliocentric view.
While Bill is true to his word, that he will present evidences to support his idea of naturalism, almost all of his evidences are not grounded in certainty. I have shown many examples of evidences refuting his claim. Only few still remains without a satisfactory answer.
I hesitate to declare Ken as the winner, because I don't see this as a competition. This is presentation of 2 men, passionately presenting their ideas forward. There is no absolute right or wrong in this debate. Many claims brought forward should still be subject to overturn as we grasp better understanding in science.
That said, as you can judge from my analysis of this debate, I lean more towards Ken's argument.
Greetings Earthlings , Shurn the Awesomer is here to give you an awesome time.
This little site is a record of my life, opinions, and views. I'm mainly writing about Technology & Gadgets, Busting Creationist Myths, and other philosophical stuff.
This site is done using CakePHP.
With this uptime, how much more can I be proud of to showcase to the world? This uptime monitoring is brought to you by StatusCake since 13th May 2017.
I will always check for copyright usage before using any materials on my site. Whenever due, credit shall be given.
However, if you notice that I may have infringed on any copyright material. Please do not hesitate to contact me. All works of every artist deserves to be honoured and respected.