There’s no question that smartphones and tablets have become the computers of choice for most users. Android has been the leading smartphone for some time and now Android leads in tablets as well. According to Google, nearly 900 million Android devices have been activated. This presents an incredible opportunity for both individual developers and organizations to create software with a reach and impact beyond anything previously possible. Android development is, of course, very different from the web-based and/or desktop app development most of us have been doing for years. But this difference doesn’t mean we can’t take part in such a great opportunity. People will often point to Android’s use of Java rather than .NET being the biggest challenge in becoming an Android developer. I disagree. If that were the case, environments like Mono that enable the use of C# and .NET libraries on Android would enable us all to immediately become Android developers. But in my experience, developers w
I have been astonished in my life by how few problems are truly unsolvable. I have also noticed that, most of the time, when a problem ends up not being solved it is for one of two reasons: people deny the problem, or they won’t work together on the solution. We have a saying in software development: There are two things you don’t want to know how are made – sausage and software. There are any number of ways to make software. All of them involve programming, of course; it’s the core activity. But there are other jobs to perform, and the bigger the software being developed, the more people you need to perform them. It becomes necessary to organize the people and form work processes. The ways to do that range from loose and chaotic to structured but flexible to ponderous and formal. They all have their strengths and weaknesses; they all can work. I’ve made software in all of these situations. One of my past employers sequestered its programmers in a room to hack code together as fa





Here’s a little tip if your Android app makes use of location based services but doesn’t require them. We were getting a few emails from users that the app wasn’t available in Google Play on their devices. Most of the devices were more obscure tablets and low-end phones that didn’t have GPS functionality. It seemed to be related to the fact that our app uses GPS and/or network location in order to geotag posts. This is not a required feature so we had this line in our AndroidManifest.xml file: <uses-feature android:name="android.hardware.location" android:required="false" /> Turns out this was not good enough, as you need to be a bit more detailed about what your app is using but is not required: <uses-feature android:name="android.hardware.location" android:required="false" /> <uses-feature android:name="android.hardware.location.gps" android:required="false" /> <uses-feature andro
Introduction: In this post I will explain how to use single event handler for click event of multiple Button controls in Windows Forms and ASP.NET using C# and VB.NET Description: Event handling in Windows Forms Create a new Windows Forms application and four buttons on the form, “btnAdd”, “btnSubtract”, “btnMultiply” and “btnDivide”. Write following event handler in the code behind of form C#: private void btn_Click(object sender, EventArgs e) { Button btn = (Button)sender; switch (btn.Name) { case "btnAdd": // Performs add break; case "btnSubtract": // Performs subtract break; case "btnMultiply": // Performs multiply break; case "btnDivide": // Performs divide break; } } VB.NET: Protected Sub btn_Click(ByVal sender As Object, ByVal e As EventArgs) Handles _ btnSubtract.Click, btnMultiply.Click, btnDivide.Click, btnAdd.Click Dim btn As Button = sender Select Case btn.Name Case ("btnAdd")
Daily Program for 5/24/2013: Today we will not be continuing with back tracking algorithms, because I realized that we need to add a new pseudo-mathematical function to our collective tool-kits in order to find unique solutions to the N-Queens problem (foreshadowing: that will be tomorrow’s program). Anyway, we will need to have a procedure for rotating a matrix by a multiple of 90 degrees. What this means is that we will take a matrix like: < <1, 2> <3, 4> > and transform is into < <3, 1> <4, 2> > after rotating it 90 degrees one time. In addition to the ability to rotate the matrix by 90 degrees one time we will be defining a function to take an integer as the number of rotations in order to provide a nice API for our rotation algorithm. I know that this isn’t exactly the most exciting program, but it is necessary if we want to construct unique solutions to common combinatoric problems. Problem Statement for Rotating a Matrix Define a c
Problem Statement Installation programs often run several tasks, one after another. Each task is assigned an integer, the expected execution time of this task. During the installation, a progress bar shows the user what percentage of the installation time has elapsed. In this problem, the bar will be represented by a string containing exactly 20 characters. If X% of the installation has been completed, then the leftmost X% of these characters should be a ‘#’, while the remaining characters should be ‘.’. If necessary, round down the number of ‘#’ characters to the nearest integer less than or equal to the actual value (see example 0). The bar starts at 0% and is only updated each time a task finishes execution. Create a class ProgressBar containing the method showProgress which takes a int[] taskTimes, the expected execution time for each task in the order they are run, and an int tasksCompleted, the number of these tasks that have been completed. Th
I thought i’d let you guys know that since I did HTML and CSS I have moved onto PHP and a little bit of Javascript and have a lot of ideas for sites to make. I am beginning work on one at the moment and I will post updates and share some insight into them. Bye.
How would I know? I have spent in excess of 30,000 hours developing and maintaining programs of all shapes and sizes. The largest being a Java program with more than 5 million lines of code. I know it was mostly code because of the refusal by most to create any comments at all. This code used a database with something like 1000 tables that over time became an mish mash of duplicate fields with different names inherited from at least 3 generations of a what started as a single program that also integrated with at least 3 others, and took a 2 year trip around the world to India. The smallest program is perhaps a subversion hook written in Perl. The first was a few lines of basic nearly 30 years ago on the trusty Commodore 64. After a while one becomes a little bemused by the whole situation. Does it really take a 200 – 300 page book to describe an agile development process? Not including tools, nor the effort required to convince even one other person to give it a go? This then is
Sometimes i need to dump a memory buffer so i rolled this. Use at your own risk #define HEXDUMP(buf, len) \ { \ int _i = 0, _j = 0; \ char _text[16+1]; \ unsigned char* _buffer = (char*)buf; \ printf("[%p : %d bytes]\n", buf, len); \ while (_i < len) \ { \ printf("%05x | ", _i); \ memset(_text, 0, 16+1); \ for (_j = 0; _j < 16; _j++) \ { \ if (_j == 8) printf(" |"); \ if (_i < len) \ { \ printf(" %02X", _buffer[_i]); \ _text[_j] = (_buffer[_i] < 0x20) ? '.' : _buffer[_i]; \ } \ else \ { \ printf(" __"); \ } \ _i++; \ } \ printf(" | %s\n", _text); \ } \ } Using this macro you would get something similar to the following: [0x61876b0 : 220 bytes] 00000 | 20 00 20 00 93 7D 00 30 | 00 30 06 74 20 00 20 00 | . .�}.0.0.t . . 00010 | 20 00 20 00 20 00 20 00 | 20 00 20 00 20 00 20 00 | . . . . . . . . 00020 | 6F 52 44 89 06 74 20 00 | 20 00 20 00 20 00 20 00 | oRD�.t . . . . . 00030 | 20 00 20 00 20 00 20 00 | 20 00 D1 79 7
Sharp 900-Watt 0.9 Cubic Foot Convection Microwaves If you’re want to buy the Sharp 900-Watt 0.9 Cubic Foot Convection Microwaves at lower price. We’re so confident you’ll find the cheap price, discount prices, free shipping for Sharp 900-Watt 0.9 Cubic Foot Convection Microwaves here. This site is where to buy online for Sharp 900-Watt 0.9 Cubic Foot Convection Microwaves best price or special promotion discount. You can read Sharp 900-Watt 0.9 Cubic Foot Convection Microwaves description & customer reviews and check prices before you buy with easy. >> Click For See Product Details & Image << Description of Sharp 900-Watt 0.9 Cubic Foot Convection Microwaves Sharp 900-Watt 09 Cubic Foot | Product Features 900-watt convection microwave with browning and crisping capabilities Easy-to-clean, 0.9-cubic-foot, stainless-steel interior with light 2-line, 12-digit interactive display; 11 power levels; 35 automatic settings Measures 23.5 x 22.8 x 15.1 inch