RSS

Life is easier with QR Codes

You are welcome once again to today’s information session. I will start by asking if you have a smart phone?
If your answer to my question is yes it is most likely that you have never used it to scan a QR Code.

What is a QR Code(QRC)?

QRC stands for Quick Response Code and in simple terms It is a way of encoding information such as website links or web systems
so that other devices such as smartphones can gain easy access to the system. You still do not understand? Okay, i will give an example.
Let us assume you run a business that has a  website and you want your clients to be able to visit you website through their smartphones; there are two ways i can think of right now of achieving such:

1. Giving them the link to your website(by mouth, on paper and through SMS/email) and then they copy and paste that on
the browser application on their smartphones (mozilla firefox, internet explorer and several others) to be able to view your website.

2. Giving them a thank you note that has printed on it a QR Code.

Despite the fact that many may be used to the first method, I definitely see the second as a faster, easier and a more professional option. First is because it will enable you direct the client at every point in time to what you exactly want them to see on your website. In this case if you want them to respond to a question, they do not need to click a question button by the side when they get to the site, the code takes them straight to the question or the item you want them to see at that particular point in time.

How do i read a QR Code?

You can read a QRC using the following simple steps:

1. Download and install a QR code reader from the respective app store.
For android smartphones you should be familiar with an image like the one shown below.

2. When the QRC reader is launched, place your phone camera against any QR Code be it on your computer or on paper and your phone will automatically read and interpret the code.

Do you want to grow your business by using this technology? Would you like to have it as a free version or you do not mind paying? Get your your comment and feedback across.

 
Leave a comment

Posted by on August 4, 2014 in Android

 

Tags: , , , , , ,

unsupported major.minor version

Yet another time to look into the resolution of another uncommon type of error encountered in the java world, the ‘unsupported major.minor version’ error. This error majorly occurs during run-time when the java version that was used to compile a java code into a class is different from the java version being used at run-time.

The solution as has been described in this post is to check for the version of the java being used at run-time and make use of the same java version when recompiling your java code (i used the netbeans IDE). Lets take an example of the error message in this way:

unsupported major.minor version 51.0

This message is simply saying the the java version needed is 1.5 and this is contrary to the version found in your application.

How do we resolve the error using the netbeans IDE.

1. Make sure the project is selected in netbeans and then press the ‘F11′ key, it should give you a box as shown below.

netbeans f11

2. Click on Project Properties in the above box, it should give you the box below

netbeans jdk change

3. Change the Source/Binary format (right at the lower part) to the one required and click the ‘ok’ button to save your changes, here I have changed it to version 1.5 as specified in the error. The warning message below should be ignored:

warning: [options] bootstrap class path not set in conjunction with -source 1.6

1 warning

4.You can then recompile and go run your application again.

 
Leave a comment

Posted by on August 18, 2013 in Java

 

Tags: , , , , , , , , , , ,

Life Lessons and morals: 5 stories from the Yoruba language and culture

Life Lessons and morals: 5 stories from the Yoruba language and culture.

 
Leave a comment

Posted by on September 21, 2012 in Life Lessons

 

Tags: , , , , , , , , , , , , , , , , ,

Seven Lessons from the Land of Oz

Seven Lessons from the Land of Oz.

 
Leave a comment

Posted by on September 2, 2012 in Office motivation

 

Tags: , , , , , ,

adetunjiadegbite:

All ladies and maybe guys too that will soon clock 18.

Originally posted on adebayoadegbite:

Happy birthday to you (2x)

Happy Birthday to you Deola

HappyBirthday to you

We wish you many happy returns of the day

Long life and Prosperity

HIP! HIP!! HOORAAAY!!!

                 It is appropriate that this piece commemorating your eighteenth birthday starts with the Birthday song popularly known and sung all over the world. Well first of all I have to beg your apologies that I did not write this earlier, well I’m really sorry but then since you are eighteen until next year , I believe I’m still in order. Birthdays as you know, are times to get mushy, and touchy feely, and fall over each other to say how wonderful you have been. But as the wise saying goes “ti omo eni ba daa ka wi, Akuku ni fi se aya” (there is nothing wrong is saying that one’s daughter(or sister in your case) is beautiful,it’s not…

View original 2,193 more words

 
Leave a comment

Posted by on August 1, 2012 in Uncategorized

 

Installing and Deploying a war file in tomcat

1. Download apache-tomcat-7.0.28 or the latest version from :

http://tomcat.apache.org/download

2. Place the downloaded zip file in any location and uzip it, in my case I placed it in the location shown below.
C:\Utilities\apache-tomcat-7.0.28
3. Navigate to the bin folder as shown below
C:\Utilities\apache-tomcat-7.0.28\bin
4. Launch the startup.bat file (for windows) and you should get a screen as shown below:

Tomcat startup screen

5. From the browser, input the url:
localhost:8080

A screen like this should appear:

Tomcat Manager
6. To deploy a .war file, click the Manager App button as shown by the arrow above but you would need to set up a username and password for the manager.
7a. To set the username and password for the manager, navigate to tomcat-users file as shown in the link below:
C:\Utilities\apache-tomcat-7.0.28\conf\tomcat-users

b.Paste the line below where you have a commented list of user tags. You can also uncomment the tags:
<role rolename=”manager-gui”/>
<user username=”tomcat” password=”s3cret” roles=”manager-gui”/>
Here is a full content of the role tags aspect of tomcat-users.xml
<role rolename=”tomcat”/>
<role rolename=”role1″/>
<user username=”tomcat” password=”tomcat” roles=”tomcat”/>
<user username=”both” password=”tomcat” roles=”tomcat,role1″/>
<user username=”role1″ password=”tomcat” roles=”role1″/>
<role rolename=”manager-gui”/>
<user username=”tomcat” password=”s3cret” roles=”manager-gui”/>

8. Restart Tomcat and input the link below in the browser:
localhost:8080

9. Click on the ‘Choose file’ Button This would manage the upload of your war file

Deploying war file
10. To deploy a war file, click the Choose file button as shown above. This will prompt you to upload the war file you want to deploy.

11. Click the deploy button
Your war file will be deployed and can be referenced from the browser using:
localhost:8080/warfilename

Deployment

Your comments and observations will be highly appreciated.

 

 
1 Comment

Posted by on June 26, 2012 in Java

 

Tags: , , , , , , , , , , , ,

Spring Error

In an event you encounter an error as below in the development of a spring application with STS; you can find the solution as stated.

Error:

Exception in thread “main” org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 14 in XML document from class path resource [META-INF/spring/app-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException: The prefix “p” for attribute “p:messageProvider-ref” associated with an element type “bean” is not bound.
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions
(XmlBeanDefinitionReader.java:396)
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
(XmlBeanDefinitionReader.java:334)
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
(XmlBeanDefinitionReader.java:302)
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
(AbstractBeanDefinitionReader.java:143)
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
(AbstractBeanDefinitionReader.java:178)
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
(AbstractBeanDefinitionReader.java:149)
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
(AbstractBeanDefinitionReader.java:212)
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions
(AbstractXmlApplicationContext.java:126)
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions
(AbstractXmlApplicationContext.ja va:92)
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory
(AbstractRefreshableApplicationContext.java:130)
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory
(AbstractApplicationContext.java:467)
org.springframework.context.support.AbstractApplicationContext.refresh
(AbstractApplicationContext.java:397)
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
com.apress.prospring3.ch2.HelloWorldSpringDI.main(HelloWorldSpringDI.java:15)
Caused by: org.xml.sax.SAXParseException: The prefix “p” for attribute “p:messageProvider-ref” associated with an element type “bean” is not bound.
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError
(ErrorHandlerWrapper.java:174)
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError
(XMLErrorReporter.java:388)
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError
(XMLErrorReporter.java:318)
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement
(XMLNSDocumentScannerImpl.java:334)
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next
(XMLDocumentFragmentScannerImpl.java:2755)
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next
(XMLDocumentScannerImpl.java:648)
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next
(XMLNSDocumentScannerImpl.java:140)
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument
(XMLDocumentFragmentScannerImpl.java:511)
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:235)
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)
… 14 more

Solution:
To resolve this problem, the line below would have to be included in the xml schema definition in the first few lines of your xml file (in my case app-context.xml)
xmlns:p=”http://www.springframework.org/schema/p&#8221;

so i have the first 5 lines of my xml file to be this:
<?xml version=”1.0″ encoding=”UTF-8″?>
<beans xmlns=”http://www.springframework.org/schema/beans&#8221;
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221;
xmlns:p=”http://www.springframework.org/schema/p&#8221;
xmlns:context=”http://www.springframework.org/schema/context&#8221;

*This works fine.

 
2 Comments

Posted by on June 24, 2012 in Java, Office motivation

 

Tags: , , , , , , , , , , , , , , , , , ,

 
Follow

Get every new post delivered to your Inbox.