Summaries

TechieDan
Btn_view_blog
You can subscribe to this blog via RSS Icon_rss
128 Words : Posted 11.20.09

After years of technical appraisal and tutorials, TechieDan.com has now reached another whole new level with the current Page Rank going up to 2. It’s been 2 hard years and finally today it’s a day to celebrate.


Page Rank is by Google and though it might not actually affect your SEO, it’s also a good way to gauge your website unless of course if your blog/website was previously banned by Google, or they just want to ‘unrank’ you.



Cut the long story short, there will be more things upcoming. As for now, it’s just a celebration post. It might be small for some of you, but it sure is a big thing for TechieDan for now.

244 Words : Posted 11.17.09

Have been searching how to do multiple values in Spring.


What is Spring?



There are no complications when displaying only a single id or a value while using spring and form taglib by doing this.


<form:select path=”prospect.wholeSaleId” items=”${List}”
itemLabel=”wholeSaleId” itemValue=”wholeSaleId”>


Now itemLabel would display the wholeSaleId value. The problem now is how to display let’s say wholeSaleId – CustomerName in the itemLabel. One workaround is to use the <c:forEach> core taglib.


<form:select path=”prospect.wholeSaleId”>
<c:forEach items=”${List}” var=”prospect”>
<form:option value=”${prospect.wholeSaleId}”><c:out value=”${prospect.wholeSaleId}”/> – <c:out value=”${prospect.companyName}”/></form:option>
</c:forEach>
</form:select>


Now by doing so, you are now able to display two value. The HTML equivalent of such will now display like this. (Assuming it has only 3 values)


<select name=”wholeSaleId”>
<option value=”wholeSaleIdValue1″>wholeSaleIdValue1 – companyName1</option>
<option value=”wholeSaleIdValue2″>wholeSaleIdValue2 – companyName2</option>
<option value=”wholeSaleIdValue3″>wholeSaleIdValue3 – companyName3</option>
</select>


So there you have it. A workaround for the form tag in Spring Framework.

314 Words : Posted 11.04.09

After being in the limelight as the new source of Java with it’s new improved method of writing the Java language, Java 5 (J2SE 5) has reached it’s EOLS (End Of Life Service) and is now put into the archives page of the Sun Java’s page. Looks like Java 5 is going to phase out after it went into EOLS on the 3rd of November 2009.


Here’s the excerpt taken from Sun Java 5.0 Page.

J2SE 5.0 End of Service Life Notice

J2SE 5.0 reached its End of Service Life (EOSL) on November 3, 2009, which is the date of the final publicly available update of version 5.0 (J2SE 5.0 Update 22).


Customers interested in continuing to receive critical fixes, are encouraged to consider the following options:



  • Migrate to Java SE for Business 1.5 Read More

  • Migrate to the latest Java SE release Read More


For developer needs, all products that have completed the EOL transition period, including the last Java SE release of 1.5, have been moved to the Archive area.



From Java 1.4 to Java 5 was quite a transition. Now since that Java 5 has now gone in EOLS period, what’s in store for the Java developers and researchers out there? It looks like time will tell. JDK 7 is still in beta and currently available for DOWNLOAD. As of date of print, here is the link to download the latest JDK 7 from Sun. Now what will the final JDK 7 be in store for us, time will let us know. So, so long Java 5, you have been around and it’s time for you to go. Looks like those planning to take their SCJP exams now have to catch up on Java 5 concepts and work towards Java 7.

564 Words : Posted 11.04.09

You have already gotten your domain name and I presume that you’re going to start installing Wordpress to start your blog engine. Problem though is after many days of posting so many things online, why not many people are visiting your site. What is wrong? Well, here are few simple steps and few plugins which TechieDan would recommend to use.


In every blog that wants to promote or to tell out something to the world wide web, there must be a meaning. Imagine who is going to know what post you’re writing if let’s say your title is “Apartment with the gang” when actually what you wanted to present was “Dinner at Apartment Restaurant“. Strangers might not even bothered looking at your site. Friends will, if they are part of the gang though. These are what we called search engine friendlies or rather SEO (Search Engine Optimization). But easier said than done.


There is another thing which most bloggers do which is the link to a blog. Imagine this, if techiedan.com links point to a http://techiedan.com/p=123 or http://techiedan.com/2009/09/28/opening-raw-photo-formats-in-photoshop/. Which one would be more meaningful? Yes, the second one would be the most viable choice. Why? It presents itself clearly and in the case you need to get back to the link, you can always check back through history for the link via your browser.


A lot of people thought that blogging only deals with what you write should just be enough, most don’t understand how is wordpress running though. Basically there are lots of other things like XML which helps out a lot.



So far so good, the few steps of starting your wordpress experience. How about some plugins to boost your web search.

Google XML Sitemaps Generator
Now your blog is up and ready. What better way to start than to create a sitemap for google to cache your site faster. With this, one’s blog would be able to notify google of new contents. This enables one’s site to be indexed by majority of the search engines.

All in One SEO Pack
Well, this should be the Mother of all SEO packs for the Wordpress. With title naming conventions and friendly links to post title and page titles, this would be the ultimate of handling most of your SEO friendly links. Even META tags, Blog Description is inside this monster of a kind.

Akismet
A must have for all bloggers. Well for the first few days or rather months there would be hardly any traffic but wait till after awhile, your blog will get spam like no one’s business. Definitely a must have for most bloggers on the wordpress engine. At least you’re more least likely to have superb spam comments on your post comments.

These are just a few of the recommended plugins that TechieDan would recommend. It’s good to go for a headstart. There are lots and lots of other plugins available on the world wide web. If you feel that other plugins deserve a note, why not leave a comment and share with the whole TechieDan community right here. What’s more, it’ll help bloggers who are lost to get right back on track.

140 Words : Posted 10.29.09

Windows XP has always been the most convenient of all Windows platform. Suddenly Windows 7 made its debut. Surprisingly those using Windows Vista had trouble adapting to this OS (Operating System) since certain menus appears differently compared to Windows XP. An example is to how to Add/Remove Programs in Windows Vista.


The problem happened when a user was so used to Windows XP, he/she was looking for the Add/Remove Programs in the Control Panel. Somehow the icon is not there? Where has it gone to? Fret not, Microsoft has renamed it’s Add/Remove Programs in Vista as Programs and Features.



Fig 1 : Select Programs and Features



Fig 2 : Uninstall Program (Example Twibble as seen above)


Steps in text listed below


Open Control Panel.


Locate Programs and Features.


Finally choose the program you need to uninstall.

314 Words : Posted 10.28.09

Are you a proud owner of HTC Hero. Did you know that this phone is one of the finest Android Phone up to date! Now did you know that the HTC Hero can function as a USB Modem? Here are some steps you have to take.



Considering the HTC Hero has the ability to act as a USB Modem, now one can online anywhere provided your telco has 3G or you’re trying to connect to a wireless network using your non-wifi capable notebook (who still has it though?). Highly applicable to those wanting to connect using 3G, this setup is imminent.


What are the steps to connect to setup the HERO as a USB Modem?



Before continuing, here are some major steps you need to take and download before continuing. Download HTC Sync software for the HTC Hero from the HTC main site. Install it and ready to go.


Steps


  • Once HTC Sync is installed, on the Hero device.

  • Browse to Settings –> Wireless Controls and enable Mobile Network Sharing.

  • Now connect the Hero to the PC via USB cable. Windows will detect the new hardware automatically and install an “HTC Remote NDIS Network Adapter”

Simple? You can now use your HTC Hero now as a Modem. Trouble is that maybe your Windows can’t locate the drivers specifically to automatically install the HTC Remote NDIS Network Adapter. So in order to save your time to look for the drivers, here are the links to download either the 32 bit or the 64 bit drivers.


HTC Hero 64 Bit Drivers (Vista 64 Bit)
HTC Hero 32 Bit Drivers (Windows XP, Vista 32 Bit)


So this saves a lot of time and finally your HTC Hero is good to go.


Notes: Will add more information about the HTC Hero in the coming future. A new category is now created.

332 Words : Posted 10.27.09

Most of us grew up with “Learn How To Program in C“. Then some of us shifted to JAVA due to the phrase, “Write Once, Run Everywhere“. Now back then, learning to write a loop in those days are considered good programming practice during the C Programming era. TechieDan even has his experiences on C Program and even wrote his own source using the goto method. (goto method is definitely not a good programming practice)


For reference sake, this is how a for loop is written in Java.



No! Not a Rope Loop. A Java Loop


int[] total = {1,2,3,4,5};
int node = 0;

for (int i=0; i <5; i++)
node = total[i];
System.out.println(node);
}

The above would then display the result as shown below.


1
2
3
4
5


For the non-programmies, these seem like Greek to them. For programmies, these are just simple FOR LOOP methods. The above was written in reference before Java 5 has broke into this era. Now what if the start of Java 5 has brought upon a new era just like how Autoboxing was introduced in Java 5. Here’s the newly enhanced loop which would also display the same result as above where we call it the FOR EACH LOOP.

int[] total = {1,2,3,4,5};
for (int i : total) {
System.out.println(i);
}

Oh my what happened to the code? Why is Java 5 that simple? Not only does this help one to code easier, the length to type out a FOR LOOP has now been cut short with this new method of writing one. What it does is pretty simple. In lame man’s term, it’s For each value in total I will pass them to variable ‘i’ to print.


Conclusion


Java 5 really does wonders to programmers of the technology in this new era. Of course SCJP exam takers should now know about this.

238 Words : Posted 10.23.09

Time to help a few people. For those not in the technical side, modifying a template of a blog would be quite a hassle. Think about writing a new one instead. That’ll be a superbly pain in the ass.


Though fear no more. On the world wide web, there are lots and lots of templates ready to be downloaded and used. For those using blogger.com or blogspot.com templates, there are two variance which is the old html and the widgetized.


So how to upload a new template downloaded from the web?



Steps are pretty simple. Click the Browse and after finding the xml template. Click upload and you’re ready to go. If there are any questions regarding this help, why not post it here. Comments welcome.


Additional Notes


It looks like some bloggers could not get the desired screen as above and instead have this screen.



Now this is what I meant by the old screen. The options aren’t the same like it was mentioned on the first picture above. Is there something wrong with blogger?


Solution


To solve this and to have the same screen with the first screen, just click on Customize Design. Then this screen will appear.



Click to Upgrade Your Template and finally, you are now in a new template which support widgets. Say goodbye to old style html templates. It’s now all HTML.

273 Words : Posted 10.21.09

Good news to Firefox browser users. Firefox 3.6 will be out some time in November 2009. Using Firefox really helps one to debug and with all the additional plugins and add-ons one can get, Firefox 3.6 is going to be a blast. Developers would love it, Web surfers would love it (if it uses even lesser memory). Though one critical news is that web surfers, please please update your Firefox with the newest Java Update. That’s because starting with Firefox 3.6, Java-based applications will NOT work unless one is running Java version 6 Update 10 or newer.



Of course if you decided to not to install it, there’s no harm done. It just won’t display. Though, why not just get the updated Java version and be hassle free. Here are some steps to follow.



  • Update your Java before updating to Firefox 3.6 and later versions. By updating your Java to the latest version, you will also enable support for the new Java plug-in. This plug-in not only runs Java applications faster in your web browser, but it also adds some cool new features, such as the ability to click and drag certain Java applications from inside your web browser to your desktop!
    OR

  • Stay with your current version of Firefox (3.5 or older). Newer versions of Java will still work with versions of Firefox older than 3.6.


This news is in reference to Sun Java’s website taken HERE. Of course if you don’t know what version you’re using, check it by going to THIS SITE.

246 Words : Posted 10.20.09

WampServer has been a very good tool to do your own localized php programming. So happens though, TechieDan has been experimenting with Wordpress offline to design templates. Though there was an error when setting it up with permalinks that displays the title.


Tech Talk : A reason to display your wordpress in the specified URL is so that it would be SEO friendly. Users and readers would be able to search for your post and even robots from the world wide web would be able to detect the URL easily with relative keywords.


Here was the proposed link to be done locally.


http://localhost/2009/09/29/permalinks-set-for-localhost/



By doing so, the link should work only to return a 404 error. Opps.. Looks like the location doesn’t exist. You tried looking about in the wordpress settings to see what has been done wrong. Then only to find that the solution lies in the php wampserver itself.



If you have WampServer installed. Open your httpd.conf file under Apache selection.Now do the following.


Locate the line below in the httpd.conf file.


#LoadModule rewrite_module modules/mod_rewrite.so


After doing so, uncomment the line stated by removing the ‘#’ symbol from it. It should now appear like this.


LoadModule rewrite_module modules/mod_rewrite.so


These are so far the most basic required to get your wordpress to function properly on a WampServer. This guide was written in reference to a deeper reference I got from Lancelhoff.