Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,156,376 members, 7,829,974 topics. Date: Thursday, 16 May 2024 at 02:23 PM

Megaplaza's Posts

Nairaland Forum / Megaplaza's Profile / Megaplaza's Posts

(1) (2) (3) (4) (of 4 pages)

Programming / Re: How Can I Create An Embedded Database In A Desktop Application by megaplaza(m): 5:51pm On Aug 11, 2011
If you are using H2, then install or unzip d downloaded file, go to the folder where you installed it, get the H2-5.Bleep.jar or something similar thats d driver, add it to the lib folder of ur netbeans or to classpath of ur app depending on the IDE u r using.now click on h2.bat file h2 file dat is a window batch file this will start up a web browser through which u will create your database and also read the H2.pdf documentation file that comes with the installer. Then u will see sample codes or get to this stage 1st then come back. The main thing is that when u finally create the database say mydb.db u can simply connect to it tru ur code using jdbc:h2:mydb then package ur mydb.db file with ur app. Just get the databse working first. When u do and incoporartes it into ur app, ur app starts the db whenever u open ur app.
Programming / Re: Helo House,how Can I Bundle A Database File Into My Desktop Applicatn by megaplaza(m): 10:42am On Aug 06, 2011
@danyl, i don't find java derby user friendly or maybe i wasn't patient enough to learn it. I think it has high learning curve. Why not use H2 database, it's as easy as using mysql and it's well documented. As for login interface, this is how i handle mine. I created login panel, then admin interface panel. I set the frame panel to the FRAME getContentPane then authenticates login, if valid i then remove all panel from the frame's getcontentpane using removeall(), then add the admin interface panel to getcontentpane and uses getcontentpane().validateUI() or so to refresh the user interface to show the admin panel.esh the user interface to show the admin panel.
Programming / Re: Functional Programming For Java Programmer Scala Or Clojure? by megaplaza(m): 3:07pm On Aug 03, 2011
@candylips, i think that led to domain-specific languages? I like dat idea.
Programming / Re: Functional Programming For Java Programmer Scala Or Clojure? by megaplaza(m): 12:52am On Jul 25, 2011
thank, it's nothing
Programming / Re: Functional Programming For Java Programmer Scala Or Clojure? by megaplaza(m): 12:02am On Jul 25, 2011
@omo_to_dun i have personally said that i dont think a language is better than the other, but one should learn to grow. imagine when java came out and a vb programmer didn't care and was comfortable using vb then didn't even upgrade to .net imagine where s/he will be now. all am saying even if you use the best language update urself about current trends even if you are not going to use it for any project. i did c++ and vb.net even c#.net but am yet to use them for any project and i have not lost anything doing that rather i gain. i noticed the importance of this when i started learning java using Intro to java programming by daniel liang, i thought i know and understand java until i used another book, somethings that i thought were part of java were clear to me to be authors way of writing codes, then i was like what will happen when i learn another language. i did  and i gained. as for the Gosling statement check this link
http://www.theserverside.com/news/2240037412/James-Gosling-Says-He-Doesnt-Care-About-Java

, please i am not here to cause trouble thanks. I am and will always be a proud Java programmer.

@fayimora, yeah it's true i have not forgotten that, just that i dont have free time yet. i have done the login and main control panel but i have projects to deliver to clients. i will deliver it once am through.
Programming / Re: Functional Programming For Java Programmer Scala Or Clojure? by megaplaza(m): 10:20pm On Jul 24, 2011
@fayimora, i have been in java since 2005/2006, have you read The Pragmatic Programmer, as a professional you are expected to learn atleast one programming language every year while maintaining your base language. am just trying to learn as much as i can it still doesn't change the fact that am a java programmer. i can learn c#, asp.net, ruby, python, , it changes nothing as long as i am updated in java things. i did enough algorithm and data structure in school, i did BASIC, Pascal, C, C++, Java, VB.net, Lil c# u should know that i think independent of java now when implementing a solution. am also studying design pattern book with smalltalk examples. you die in any profession the moment you cease to grow. that said Java is still my favourite and anytime i have my way, i will use java for a project.

@omo_to_dun: Gosling said himself that he doesn't care about java anymore that he cares about JVM and its ecosystem which include scala, clojure, groovy, , have you heard about domain specific lanaguages. it the new paradigm that is taking over.
Programming / Re: Functional Programming For Java Programmer Scala Or Clojure? by megaplaza(m): 10:06am On Jul 23, 2011
am just trying to learn as much as i can, i develop web apps and desktop apps, i use PHP, CSS, Javascript, Sql, Java, i can develope android app and even BB app too. Am palnning to venture into Java EE, python, ruby, clojure, scala, , But one at a time, so what do you call a good php programmer that is an average java programmer and have done some stuffs in both language? It's ur call.
Programming / Re: Capitalise First Letter Of Words In A String by megaplaza(m): 6:30pm On Jul 22, 2011
what i meant by using in-built function is using a funtion that wwhen you use it on string, it will perform wwhat this code does e.g 'i aM DOne'.strToUpperCaseFirstWord(); then this will output 'I Am Done'. I don't know of any such function and am saying you should use it if it exist that will lead you to write the block of code above. For instance in php strtolower(str) or so changes the whole str letters to lower case, strtoupper(str) changes the whole string to upper case. Then php has a functions ucwords(str) that will capitalise all first letter of the words in string. The is the desire function i want your codee to perform and am sayin if there is a java equivalent of ucwords() pls dont use it rather use tolower() and toUpper() tom implement your own ucwords(). Hope this explains it, remember am not trying to show my prowess, i happened to need that to capitalise every word in a string in my program and i noticed that java doesn't have such function, so after coming up with this i decided to share it here. case, strtoupper(str) changes the whole string to upper case. Then php has a functions ucwords(str) that will capitalise all first letter of the words in string. The is the desire function i want your codee to perform and am sayin if there is a java equivalent of ucwords() pls dont use it rather use tolower() and toUpper() tom implement your own ucwords(). Hope this explains it, remember am not trying to show my prowess, i happened to need that to capitalise every word in a string in my program and i noticed that java doesn't have such function, so after coming up with this i decided to share it here.
Programming / Re: Functional Programming For Java Programmer Scala Or Clojure? by megaplaza(m): 1:58am On Jul 22, 2011
@fayimora, you are on point, am not frustrated just kinda wondering how people cope with knowing these languages and yet good in them. some times you see vets in the field sound as if you don't know these langs you wont make your mark. i have alreayd downloaded scala and clojure compilers and ebooks but i will only read them at my spare time. i am only interested in scala and clojure cos you can use their codes in java and vice versa. you can even use java swings inside scala. else i have decided Java and PHP, i can only expand on branches which scala and clojure fit into.
Programming / Functional Programming For Java Programmer Scala Or Clojure? by megaplaza(m): 12:51am On Jul 22, 2011
i have come to notice that functional programming language are finding their way back into mainstream programming. then i found out that java easily integrate with these two functional languages Scala and Clojure. now my questions are:

1. is learning a functional programming language worth it>
2. what are the areas where it can be applied?


besides, i heard it's good to know different kinds of programming langs such as imperative to functional to scripting. i already know java, php, am thinking of learning python or ruby and now scala or clojure and am yet to master java ecosystem or design patterns. i think programming is complicated and highly demanding.
Programming / Re: Capitalise First Letter Of Words In A String by megaplaza(m): 12:34am On Jul 22, 2011
thanks for the comment, necessity is the mother of invention, i have a need for this in an application that am developing, i wanted to make sure that data stored on the db are capitalised and , i could find a function in java that does this right away for you. so , but i did a lot of research online though. so credit to those authors.
Programming / Capitalise First Letter Of Words In A String by megaplaza(m): 9:57pm On Jul 21, 2011
please write a program that will take a string, convert all the letters to lower case then capitalise the first letter of each word in the string. you program should be similar to the function of ucword() in php. i expect the program t be written in java or other programming language. please don't use any inbuilt function that handles such task. here is a sample of my solution

for instance if you have a string "i aM iNNocent, Please leave ME ALONE", your program should output "I Am Innocent, Please Leave Me Alone"

package javaapplication17;

/**
*
* @author Benedine
*/
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        String str = "yOu Are TYY ode, iQWW iThaNks";

            String words = str.toLowerCase();

        StringBuilder upperCasedWords = new StringBuilder(words.length());

        String[] word = words.split("\\s"wink;
        for(int i=0,l=word.length;i<l;++i) {

            if(i>0) upperCasedWords.append(" "wink;
                upperCasedWords.append(Character.toUpperCase(word[i].charAt(0))).append(word[i].substring(1));

        }


        System.out.println(upperCasedWords.toString());
    }

}
Programming / Re: Helo House,how Can I Bundle A Database File Into My Desktop Applicatn by megaplaza(m): 8:54pm On Jul 12, 2011
why not post the code here. Since i ddropped my mail here i started getting scam mails.
Programming / Re: Helo House,how Can I Bundle A Database File Into My Desktop Applicatn by megaplaza(m): 2:40pm On Jul 12, 2011
it depends on the language you are using but what you need is an embedded database system. If you are using java you can use sqlite, H2, or java derby database. I recommend H2, easy to learn and use.
Programming / Re: Defend Your Programming Language by megaplaza(m): 9:50am On Jul 03, 2011
why is that all we do here is argue and argue and argue, no programming language is better than the other in my own opinion, just like natural languages like english, french, spanish, e.t.c, it depends on the user, some people might find english easy, others french. Some languages might be suitable for certain task while you have to work around to use it for some tasks. That said, am a Java guy and php guy abouut to learn python. I support open source languages.
Programming / How To Write A Great Software by megaplaza(m): 12:14am On Jun 25, 2011
What is  a great software?
A great software is a software that:
• Satisfies customers’ needs and demands i.e does what it is expected to do correctly.
• Is well-designed and well-coded and
• Is easy to maintain, reuse and extend.
A software that works correctly is not enough, it should be well designed and coded so that it can be easy to maintain, reuse (eliminates code duplication) and extend(add new features with little or no change). Such software should be open to extension but closed to modification and designed using proven Design Patterns and Object-Oriented Designs.
NB: Make it work then make it better, focus on meeting the customer’s demands first, once your software works look for any duplicate code and eliminate it using OOP techniques. Now, you have a working OOP software that does what the customer wants, it’s time to apply pattern designs and principles to ensure that you code is ready for reuse, extension and maintainance in the future.
Programming / Re: Iphone Development by megaplaza(m): 6:31pm On Jun 15, 2011
@fayimora, can u please post update on how to set up IPHONE sdk development environment that wont cost money. Because, i got discouraged by that dev net , Fee. Same as BB app signing fee. So am into android. Still working on the android mini-payroll, just that i have some web project am doin now. But i have gone far with the android mini-payroll. Thanks for recommending it.
Programming / Re: Beginners - Learn Android Programming by megaplaza(m): 5:28pm On May 26, 2011
thanks,
Programming / Re: Beginners - Learn Android Programming by megaplaza(m): 10:24am On May 26, 2011
fayimora, ok, thanks will keep in touch as i progress. Though u don't neef, i want the app to be useful and relevant not just an aapp for learning and exploring android.
Programming / Re: Beginners - Learn Android Programming by megaplaza(m): 9:41am On May 26, 2011
fayimora, i am already collecting data on for the requiremenr specification but i have a problem, i noticed that tax issues and net pay calculations varies from one state to another, will it apply to a particular state or region? if no, how do you i make the payment calculation generic as in which formula shld i use, also will the calculation be based on hours worked, weekly, monthly or willl it support all. Am askinng cause i need to build something that shlld be relevant to what you need it for. Thanks.
Megaplaza
Programming / Re: Beginners - Learn Android Programming by megaplaza(m): 2:04am On May 26, 2011
fayimora, am in. Will communicate with you and update you. Thanks for the opportunity.
Programming / Re: Beginners - Learn Android Programming by megaplaza(m): 9:33pm On May 25, 2011
i set up android development platform some days back. Now, i need a project that will help me explore the android world. I only know the basics aand have done small apss like investment calculator, tip calculator and i have enough eebooks for reference. I need an idea on aa project that i shld do. Thanks.
Programming / Re: Programming Projects (individual) by megaplaza(m): 5:46pm On Apr 24, 2011
am interested
Software/Programmer Market / Re: Php Programmer Needed urgently by megaplaza(m): 8:16pm On Apr 23, 2011
i can help, call me
Webmasters / Re: Help Me With Css by megaplaza(m): 4:35pm On Feb 05, 2011
try using percent in specify width x height, for instance instead of say 40cm as width use say 20% as width, if you are using dreamweaver, switch measurement to percentage or use percentage to specify ur measure men. This mean that if 800x600, 20% will be 160pixel width, on 1200x840, it will be 240pixel. So use percentage.
Programming / Re: Web Service Using Java Or C# by megaplaza(m): 3:44pm On Feb 02, 2011
are u a java programmer, i have developed web ssservice b4 but with netbeans IDE. I think this may help
download.oracle.com/javaee/5/tutorial/doc/bnayl.html
Programming / Re: Android Developers 1 by megaplaza(m): 12:46pm On Feb 01, 2011
just search for 'android ebooks' on www.4shared.com thats where i got mine from
Programming / Re: Android Developers 1 by megaplaza(m): 7:05pm On Jan 31, 2011
am fine, i have found a way of installing the sdk offline. Though i still need to download the sdk abt 80 mb. So am yet to get fast speed internet that can support that.
Programming / Programming Platform Advice Needed In Terms Of Most Rewarding by megaplaza(m): 12:43pm On Jan 29, 2011
I have fairly good knowledge of programming in Java, i also use PHP. But now am thinking of learning the following
Desktop prog; Java, C++.net, Vb.net, C#.net

Web prog: PHP, ASP.net and J2EE

Mobile prog:J2me, android, BB (which all use Java)

RIA rich internet app using JavaFx

Web designing; CSS, XHTML, AJAX,Javascript.

I already have fair knwoeldge of all these but only good in J2se n PHP. Now i wan to go deep in these prog langs. Shld i reduce the list, i need experts and professional to advice me on the path to follow.r
Programming / Re: Android Developers 1 by megaplaza(m): 7:47am On Jan 27, 2011
please can you show me the steps you took to setup the android sdk on netbeans. I installed the nbandroid plugin successful. What is left for me is to download android sdk, which due to internet speed is a problem.
Programming / Re: Android Developers 1 by megaplaza(m): 9:21pm On Jan 26, 2011
me too, i ve been reading android devpt ebook but am yet to setup the android sdk in my netbeans. I need to download the sdk. How far have u gone with android devpt.

(1) (2) (3) (4) (of 4 pages)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 52
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.