Musings about software development, agile methodologies, random thoughts, etc.       Bookmark and Share
Friday, March 05, 2010 - This blog has moved

This blog is now located at http://msquaredwebsvc.blogspot.com/.
You will be automatically redirected in 10 seconds, or you may click here.

For feed subscribers, please update your feed subscriptions to
http://www.msquaredweb.com/musings/marksmusings.xml.
posted by Mark McFadden @ 8:15 PM   0 comments
0 Comments:
<< Home
 
Sunday, February 14, 2010 - Every Garage or Computer--an Industrial Player
This month's Wired magazine has an interesting article, In the Next Industrial Revolution, Atoms Are the New Bits. In this piece the magazine's editor Chris Anderson discusses how with the availability of free or affordable software tools and outsourcing, a home garage or wannabe inventor has the potential to be a viable industrial manufacturer. Good stuff!

posted by Mark McFadden @ 10:04 PM   0 comments
0 Comments:
<< Home
 
Wednesday, February 03, 2010 - Dynamic Java String Array
A business needed to split data elements in the display to it's customers via a report. Since the data was returned from the Java Data Access Object layer as a String array, the quickest way was to detect an existing data item and then insert what the business wanted to display in the report for that data item.

Here is an example of what I did to dynamically insert items into a Java String array:

public class DynamicStringArray {
public static void main(String[] args){
String[] originalArray = {"a","b","d"};

System.out.println("----- Original String Array ----");
for(int i = 0; originalArray.length > i; i++){
System.out.println(originalArray[i]);
}

//create a fixed-size ArrayList from the String array.
ArrayList oldList = new ArrayList(Arrays.asList(originalArray));
//create an ArrayList to hold the inserted items.
ArrayList newList = new ArrayList();

//assume no "b" in the array
boolean hasB = false;

//check if the array has a "b"
for(int i = 0; originalArray.length > i; i++){
if(originalArray[i].equalsIgnoreCase("b")){
hasB = true;//we have a "b" Houston
}
}

if(hasB){//the array has a "b"
for(int i = 0; oldList.size() > i; i++){
if(oldList.get(i) == "b"){//found "b"
newList.add(i,"newB");//replace "b" with "NewB"
newList.add(i + 1,"c");//add "c"
}else{//not "b"
newList.add(oldList.get(i));
}
}
}

//create new String array
String[] newArray = new String[newList.size()];
newList.toArray(newArray);
//pass new String array to old String array
originalArray = newArray;

System.out.println("----- Updated String Array -----");
for(int i = 0; originalArray.length > i; i++){
System.out.println(originalArray[i]);
}

}
}

The above code results in the following:
posted by Mark McFadden @ 6:25 PM   0 comments
0 Comments:
<< Home
 
Sunday, January 03, 2010 - Security Management - Better to be loved or feared?
Recently I created a fictional case study that discussed management styles when dealing with internal security threats.

Click here to read and then let me know your thoughts.
posted by Mark McFadden @ 6:46 PM   0 comments
0 Comments:
<< Home
 
Friday, September 25, 2009 - 5 exabytes in the last 2 days. We better get busy!
Eric Schmidt, Google CEO, at a talk given at a forum jointly hosted by Google and the Pittsburgh Technology Council, stated that the amount of data generated from the birth of humanity to the year 2003 was 5 exabytes (point 8:30 of the talk). The date of the presentation was September 23, 2009. Schmidt, then stated that given the connectivity we now have the amount of data generated the last 2 days was equal to these 5 exabytes. What!!!???!??!?! An exabyte is one quintillion bytes. Just within the last year could you buy a 1 to 4 terabyte hard drive. An exabyte is 1,048,576 terabytes or 1,073,741,824 gigabytes, i.e a lot of data!

OK. We may have generated that amount of data the last few days. And do not misunderstand me. I realize there is intelligence in that data. And yes, let it instruct and assist us. But my thinking is that the 5 exabytes in the last several thousand years is of much better quality and substance that the 5 exabytes in the last 2 days, right? If not, then the quality and substance is hidden therein and let us get busy and mine it out!
posted by Mark McFadden @ 9:14 PM   0 comments
0 Comments:
<< Home
 
Wednesday, August 19, 2009 - Digital Utopia--Free?
Was considering purchasing the Kindle version of the new book by Chris Anderson, Free: The Future of a Radical Price and looked for reviews (An ironic note is that I fully understood that I would have to pay for the digital version of the book). In my search of reviews, I did find the "free" review by Malcolm Gladwell at The New Yorker.

Gladwell discusses that Lewis Strauss, the former head of the Atomic Energy Commission, famously predicted in the mid-nineteen-fifties, due to the advent of nuclear energy, that “our children will enjoy in their homes electrical energy too cheap to meter.” Gladwell then states, "It is pointless to wonder what would have happened if Strauss’s prediction had come true while rushing past the reasons that it could not have come true."

Strauss appeared not to consider the cost of the infrastructure of energy distribution. In a similar way, with the phenomenum of YouTube, "A recent report by Credit Suisse estimates that YouTube’s bandwidth costs in 2009 will be three hundred and sixty million dollars."

Time will tell but the Achilles' heel, at least for now, that I see for a Digital Utopia of "Free" is the "cost" of distribution. Bandwidth, batteries, e-readers all cost money.
posted by Mark McFadden @ 1:29 PM   0 comments
0 Comments:
<< Home
 
Monday, August 03, 2009 - @Erlanger911 offers a nice twitter service for Erlanger, KY residents
@Erlanger911 offers a nice twitter service for Erlanger, KY residents in that it provides traffic and emergency service based tweets.

Posted via email from m2web's posterous

posted by Mark McFadden @ 12:50 PM   0 comments
0 Comments:
<< Home
 

My Photo
Name: Mark McFadden
Location: Erlanger, Kentucky

I am a software developer that lives in Northern Kentucky with my wonderful wife.


This work is licensed under a Creative Commons Attribution 3.0 United States License. Creative Commons License

Site Feed

Previous Posts

Archives