I’ve a fairly new mobile phone and it is no surprise it is powered by Android (the only other choice of OS would have been iOS – between them they have 99% of the market). The phone is great. Android is great….but perhaps a little too great for my liking.
Having used the Maps and enabled location I would later visit somewhere only to be prompted later with questions of “Did I go into X pub” ? “What did I think of Y place”? and “Is Z your place of work”?
This started to overstep my personal boundary of what I was after. So, knowing my Google account was separate to the actual phone, I removed the account to see what I could still do. The answer is actually quite limited. For starters I can still use Google maps to navigate point-to-point, I can still search the www, I can ring and text people.
But the contact names have all been lost – calls are just numbers which makes things awkward. Also the To-Do-List doesn’t work. What does annoy me is that the basic Android does not allow a simple phone-book as standard. Saving contacts prompts me now if I want to save them to my Yahoo account.
A friend said that I should just download a third-party phone-book app. Trouble there is that the PlayStore doesn’t work either without a Google Account. I’ll have to try out the AMazon store or one of the other free app repos.
What I’d really like to do is write my own using Android Studio, add some encryption, add some notes etc. When I manage that I’ll post the results here 🙂
If you don’t understand pointers in C/C++ can I suggest running up a text editor+gcc or Visual Studio and just typing some code in. Play around with the code and see what you get. Try making a character pointer instead….e.g. the following code might make things easier to understand.
// Test_Pointers_1.cpp : main project file.
// This simple test program explores the basics of pointers in C++
// Pointers can cause a lot of confusion when learning C and C++ therefore
// I encourage you to change the code around until you understand it fully
// by: Rodders
// created: 17th March 2016
using namespace System;
using namespace std;
int myVariable1 = 25;
int myVariable2 = 44;
Console::WriteLine(L"A Simple Program to Demonstrate Pointers in C++\n\n");
cout << "The value held by myVariable1 is: " << myVariable1 << " which is held in
location: " << &myVariable1 << endl;
cout << "The value held by myVariable2 is : " << myVariable2 << " which is held in
location: " << &myVariable2 << endl;
myPointer = &myVariable1;
cout << "myPointer is now set to look at myVariable1" << endl;
ValueHeld = *myPointer;
cout << "And it points to a memory location that holds the value: " << ValueHeld << endl;
cout << "Where my pointer is: " << myPointer << endl;
ValueHeld = *myPointer;
cout << "\nIncrementing the pointer makes it point to a memory location that holds the value: " << ValueHeld << endl;
cout << "Where my pointer is now: " << myPointer << endl;
cout << "\nTherefore the compiler knew it had to add on 4 bytes to get the next integer pointer even though the code was myPointer++";
cout << "\nPress return to exit";
A Simple Program to Demonstrate Pointers in C++
The value held by myVariable1 is: 25 which is held in location: 0018EE44
The value held by myVariable2 is : 44 which is held in location: 0018EE48
myPointer is now set to look at myVariable1
And it points to a memory location that holds the value: 25
Where my pointer is: 0018EE44
Incrementing the pointer makes it point to a memory location that holds the value: 44
Where my pointer is now: 0018EE48
Therefore the compiler knew it had to add on 4 bytes to get the next integer pointer
even though the code was myPointer++
Press return to exit
My prefered tool of choice for statistical analysis was always Microsoft Office Excel. This was because from the very start you can dump your data into a spreadsheet, graph it and then perhaps work out what to do….where are the gaps, the extremes, the clustering? Whilst this is a quick approach there always seems to be something missing and later the analysis gets clunky as it hasn’t been thought through.
I then heard about R…a grown up statistical analysis environment. Right from the very start you are forced to consider the format of the data you have and how you are going to handle it. This makes you think about what variables and dataframes will be required to hold and manipulate that data….I think this forms a much better start to any analysis. Further down the processes it is easier to manipulate the data to what you require. In Excel there are always lots of ‘filler’ coumns that contain intermediate calculations because the user will find them too difficult to invoke in a single cell call. This naturally prompts some of use to explore VBA – this can produce some very good results but it is time consuming and likely to contain many bugs initially.
I highly recommend you try out R.see R Homesite
I took a 4 week course through Coursera.org and think of that as a good introduction.
The environment is command line and interpreted so you can either type small snippets of commands in directly or opt for writing a larger R file.
Playing with stats in R can build up a very good understanding of the basics – make a vector of random numbers (you choose the distribution) and plot them out. Play with the calling parameters and watch the graph change.
try a vector of 1000 values, mean of 0 and standard deviation of 1:
The Pi is connected to my home router (and as it’s behind that firewall will only serve the devices logged onto my own router). It has an ethernet lead to the router and a 5v USB power adapter. All control is via Secure Shell (SSH) and the command line from my windows PC (which is running PuTTY) so no need for an extra monitor, keyboard or mouse. The Pi only consumes a few Watts of electricity.
I installed Apache2 and the PHP package for Apache using the sudo apt-get command. I can now nagivate to the installed directory on my Pi (/var/www/html) and write some HTML or PHP code to see what is possible. Two great learning sites are www.w3schools.com and http://htmldog.com/.
The examples from those sites can be selected, copied and pasted into the text editor on the Raspberry Pi using a right click…..I use Nano text editor.
It really is as simple as that !
Then just work thought those examples trying out forms and other dynamic content.
Next I plan to install MySQL on the Pi so I can save the information from the client/browser and act on it at a later date.
sudo apt-get update
sudo apt-get install apache2 -y
sudo apt-get install php5 libapache2-mod-php5 -y
With heavy rain forecast in UK today it sounds like a good excuse to not do any gardening or house DIY (I don’t to be going back and forth to the shed to get tools and materials ! ).
The morning has been taken up experimenting with this new WordPress site and I can say I’m very impressed with it – it’s the startup options so completely free of charge.
Soon I’ll have some lunch and then what?
I think I’ll have a good look at a new programming language I have heard of called Haskell. I’ll have a play around with it and see what it is capable of. If I find anything interesting to others I’ll be sure to blog you.
Update: I actually got sidetracked and set my Raspberry Pi as a server on my home network.