₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,276 members, 8,449,535 topics. Date: Tuesday, 21 July 2026 at 11:38 PM

Toggle theme

Danyl's Posts

Nairaland ForumDanyl's ProfileDanyl's Posts

1 2 3 4 5 6 7 8 ... 28 29 30 31 32 33 34 35 36 (of 44 pages)

ProgrammingRe: Which One's D Most Effective: Map,hashmap,lists by Danyl(op): 8:24pm On Feb 21, 2013
@javanian, tnx 4ur contributions. I think with an ArrayList u cn delete an element at a specified position bt with a/an string or any oda primitive array, not that i know of... Wat i intended to do wit d datastructure is to add the answers with the question serial no/index in the datastructure for a final review...getting d final score of users can also be accessed frm dat.
ProgrammingRe: Which One's D Most Effective: Map,hashmap,lists by Danyl(op): 3:26pm On Feb 21, 2013
Javanian: I think you are just playing around with these data structures. A map and a list have different uses, each has its strength and weakness. It all depends on what you are trying to acheive. If the size of the data is known, then a list is even an overkill. You could have just used a simple array. Maps are mostly used when you want to store data in a key-value system. It could be a hash map, TreeMap a dictionary e.t.c. I don't know if there is a data structure that would efficiently help you in what you are trying to acheive but to find duplicates in your data structure you can search through it for duplicates before inserting. I suggest you use something like a binary search which would run in O(logN) time (i think) but its way better than looping through it which would run in O(N) time at best case. But for effieciency you would have to sort the data with preferably a quick sort or anyother type of sort before searching.


I think there is a data structure like a set(Set, HashSet and linkedHashSet) that doesn't allow duplicates. I once used it, you can go with this if you are looking for an easy way out but am not too sure of the efficiency...Hope this helps...
thanks 4dat piece,actually am building a kinda Q & A engine and arrays wönt handle d problem,der will b times wen i might want to remove an element frm d storage,dats not possible with array, List should do it but I'm looking 4 a datastructure dat stores using a key-value mapping that is y i used Maps in d first plc. Searching for key value pairs workd on it, but when trying to print the all d stored key-value entries only one record ws returned,so am trying 2figure a way out.
ProgrammingWhich One's D Most Effective: Map,hashmap,lists by Danyl(op): 7:44am On Feb 21, 2013
Gudmornin NLders,am having some issues with a program that requires storing selected values into a datastructure. I used the Map interface- Map answerMap=new HashMap(); since the Map interface cannot be instantiated. When i wanted to get the key-value pairs stored in d map, only one element was stored. What could b problem. I tot of using a HashMap<Integer, String> aMap = new HashMap<Integer, String>() to handle d problem perhaps that'll solve. When i usd List, it worked bt it allows duplicate entries which I don't want..how best can i go abt dis. I don't duplicate entries in the datastructure. Thanks.
Christianity EtcRe: Fellow Christians: What Is Happening To Us? by Danyl(m): 8:01am On Feb 18, 2013
This is an interesting topic,however to add a few comment...the bible sed: woe to the inhabitants of the earth for satan has been released into the world,i can tel u that satan is the god of this world not God,no wonder even d saints are been deceivd. Jesus Christ has predicted this beforehand-if so possible even the elect shall be deceived. The truth of d matter is dat God wants prosperity for His 'children', y did God blessd Abraham so much dat he had enof to bequeath to his descendants, y did God blessd Isaac Jacob n David wt abundance..they al av one thing in common,dy knw the God dey r serving... Isaiah sed those who Knw their God shal do exploit. In reverse, dos who do not knw der God shal b xploited,dats y even d pastors r goin d wrong way of the devil,many pastors r divorcing der wives, fornicatn and all sorts of things...dy are being enticed n exploited by d god of ds world. The kingdom of God we are told to seek 4 was likend to a mustard seed by Jesus in one of His parables, he also likened d WORD of God to a mustard seed,d kingdom is not only in word bt in d demonstratn of God's power to us..if u seek His word and put it into practice, u r seeking 4 His kingship and His kingdom to b established in ur affairs by so doing u'll kip walking in the Spirit n u won't fulfill d dictates of d flesh... God r blessn good and dependable christians who knws the God dey serve...if u walk longer with God,God'll kip on testing u,as u pass d challenge u move up in maturity....if u r not matured in Christ u'll kip on struggling 4d things of ds world. Y did Jesus Christ became poor so u myt b rich thru His poverty,we av lost d very essence of d death n ressurectn of Christ dats y d devil is changing our focus...ds days I pray may God open our eyes 2c where we r going.
WebmastersRe: How To Make The Mobile Version Of A Website. by Danyl(op): 8:21pm On Feb 17, 2013
hammedkola: If you are using a dreamweaver, just change the doc type from XHTML 1.0 transitional to XHTML mobile 1.0...
do I have to create that subdomain or changing to XHTML mobile will automatically redirect everyone who access the www.abcxyz.com to html://m.abcxyz.com.
WebmastersHow To Make The Mobile Version Of A Website. by Danyl(op): 5:41pm On Feb 17, 2013
Hello fellow NLders, i want to ask that how can i develop the mobile version of my website such that when accessing it, they'll be redirected to a url with the ff format: http://m.abcxyz.com, so also what considerations needs to be taken in order to make site faster and well displayed for those accessing the site. Thanks
WebmastersRe: How Do I Create A Comment Box. Like What You Have On Blogs? by Danyl(m): 4:36pm On Feb 05, 2013
[quote author=Raylight_1]need d codea[/quote]you may use yii framework,its quite simple to implement,or better still try to learn PHP, or use facebook comment box API, it'll also serve u.
WebmastersRe: How Do I Create A Comment Box. Like What You Have On Blogs? by Danyl(m): 4:35pm On Feb 05, 2013
[quote author=Raylight_1]need d codea[/quote]you may use yii framework,its quite simple to implement,or better still try to learn PHP, or use facebook commen box API, it'll also serve u.
ProgrammingRe: Is This What Big IT Firms Do? Please Help Me Out Nairaland Programmers by Danyl(m): 4:01pm On Feb 05, 2013
surveycash: x-pat cannot threaten them with a lawsuit because I am sure he does not have the legal backing for it. What makes the idea his? Nothing. No evidence to show.

To all idea owners, learn from this. Get your idea patented before selling it even to your friend. Go to Nigeria Copywright Commission. It's just N6,000. To save yourself the stress, you can a hire a lawyer to that for you. I am presently in the process of patenting an idea.
if i may ask, is that patenting going to be within a local context? Say in Nigeria only, while ur ideas could be used somewhere else outside Naija
BusinessRe: A Thread For Entrepreneurship In Nigeria by Danyl(m): 2:05pm On Feb 05, 2013
222Martins: Just as God opened the eyes of Elisha's servant to see the chariots of fire, i just wish God can open the eyes of many to see the opportunities in Nigeria. Countries such as China, South Africa, U.S.A, U.k, etc are scrambling to invest in Nigeria,.....while our youths are scheming on ways to run abroad for greener pastures. We need a change of mindset. I made my first $10,000 in Nigeria,......and i will make my first $1,000,000,000 in Nigeria. May God help us all....
can i get to know u sir? Am Ayodeji Olabiyi...how did u start ur enterprise and what challenges did u met with when securing ur start up capital and how did u overcome it all?
Olabiyi007@gmail.com
TravelStudying Medicine In Spain by Danyl(op): 11:40pm On Jan 30, 2013
Helo, great NLders, how standard can it be to study medicine in Spain. Just want to see ur perspectives and comparisons between Spain and other European countries in terms of tuition fees,standard of education n standard of living.
TravelRe: E-passport Renewal/extension by Danyl(m): 11:13pm On Jan 30, 2013
born2begreat: I have my e-passport issued in 2010 and it was lost to fire accident last year. I learnt that to get a new e-passport for lost or stolen i will have to be in Abuja. Now someone confused me today that i can have it done here in Lagos at 35k and the issuing date and passport number will different from the lost one. i dont know if anyone hav an idea about dis. And if its true that i will b going to Abuja, how much is it going to cost? how long is it going to take? coz i can only have 2 days off from my work anything beyond that 2days is sack. Pls i need your help friends...Am lost in confusion
@justwise, am interested in d answer to ds question.
2ndly, apart from the above quote, what if i want to effect a change in my surname on my e-passport, though it still has 2years to its expiration date, and how much can it cost me to effect those changes. I heard it cn only be done in Abuja, pls whats ur view on this. Thank you
ProgrammingRe: How Can I Add A Time Stamp To My Gui by Danyl(op): 7:12am On Jan 30, 2013
@shimao, the problem's solved. Thanks
@xterra2, it's bn solved
ProgrammingRe: How Can I Add A Time Stamp To My Gui by Danyl(op): 9:52am On Jan 24, 2013
Thanks shimao,i'll luk into d second option,n return 2gv an update.
ProgrammingHow Can I Add A Time Stamp To My Gui by Danyl(op): 7:34pm On Jan 23, 2013
Good day gr8 programmers,i want to add a time stamp that updates itself every seconds on my GUI,actually its an applictn that nids users to perform a task within a specified time limit. I want it to be smthn like ds Time: 00:00:00, the first set of zeros is the hour, next minute and nxt seconds, while d seconds start countn,it gets to 60, the minute increments every 60 seconds. I understand ds is a threadn issue n I've tried implementing the runnable interfc bt its not working as intended...am working ds desktop on netbeans so my codes may not luk gud but if any1 can help a simple code snippet will be enough. Thank you
BusinessRe: Where Are Those Viable Online/internet Biz? by Danyl(m): 10:11am On Jan 22, 2013
maxibrainz: You can start with fiverr or betonmarket, the are very good online business that pay well
what is this betonmarket really is it related to forex in any way...
BusinessRe: How To Set Up A Mini Kerosene Depot And Make Money by Danyl(m): 9:54am On Jan 22, 2013
sunbbo: We are in to suppling of kerosene(dpk) and diesel(ago) at any quantity to any part of nigeria. You can reach us on 08059205086, 08107769153 or you can do a mail to us @ talk2sunbo4u@yahoo.com
How much is your supplies now, we once talked about this through my email at olabiyi007@gmail.com
ProgrammingRe: How Can Do This On A Java Derby Resultset by Danyl(op): 9:43am On Jan 22, 2013
ledafaze: Guy,

Post ur code so we can help debug... That is the way it is done... got ithuh

Post the code where u think the problem is coming from... how you did d parsing and sorts of

rgds
the problem has been solved thank you.
RomanceRe: Wearing Engagement Ring Before Marriage: How Long? by Danyl(m): 10:51am On Jan 17, 2013
chacha3: u are so on point
Obinrinnnnn, so many women are in the relationship for the money....
ProgrammingRe: Mtn Api For Selling Mobile Applications That Is Of Nigerian Origin by Danyl(op): 10:10pm On Jan 10, 2013
Thanks@dasmog+ 4dat piece,i'll go over it...
ProgrammingRe: How Do I Launch Java by Danyl(m): 7:38pm On Jan 09, 2013
Do u intend to run java sdk or Jvm like an executable...i guess so but that isn't possible may be u shud reword ur question...
ProgrammingHow Copy Strings From Stringerbuilder To...a String Array by Danyl(op): 2:28pm On Jan 09, 2013
Helo house, How can one copy Strings from Stringerbuilder objects into a string array in order to loop through the array elements without raising any synchronization issues on the StringerBuilder object. E.g

StringBuilder builder=new StringBuilder();


StringTokenizer element=new StringTokenizer(builder.toString());

int count=element.countToken();

//new string array to copy d string tokens frm d StringBuilder

String[] string=new String[count];
ProgrammingRe: Mtn Api For Selling Mobile Applications That Is Of Nigerian Origin by Danyl(op): 2:18pm On Jan 09, 2013
[quote author=dansmog++]but how does gameloft do it? There are some of there games that are for trial, and after the trial, you can buy the game with credit on your phone (NGN:100). Even when you go to mtnonlineplay.com you buy game with your phone if there is credit. And this is not limited to MTN only.[/quote]may be one have to research more on that...there must be an api they are using to get users download their apps while paying @d same time or may be once dey subscribe by sending it through short code Sms,they av a timed download link
ProgrammingHow Can Do This On A Java Derby Resultset by Danyl(op): 12:00pm On Jan 09, 2013
hello house, I've been on this project for sometime now, i have this problem with my database driven software which am designing using java. when i retrieve the fields from the resultset, i store all the data in a ArrayList object which i later on copied into a stringBuilder for a persistence, because i have used a List but everytime i try to iterate through all the retrieved rows i only get a null value after the first row or second row has been given, now i have everything in the StringBuffer object but i want to use a String array, to store all the string in the string buffer so i can iterate through the elements and scroll through them on a JLabel, but its not dynamic enough, but i dont want to use a fileIO system to do this pls how can i go about this. the program works well if i use an arbitrary String array but with the StringBuilder object its not dynamic, how can i go abt it. thanks.
FamilyRe: My Husband Spits On My Face During Quarrels by Danyl(m): 2:53pm On Dec 31, 2012
U may try this and see if it works:
stop talking n back off wheneva he's coming wt his uncontrollable anger n leave d house... U may stay away 4sometime, when he realized how useful u r he'll start a search program 4u,n u'll see that in adverts of course. If he doesn't do that then he's not worth u... Just divorce him jejeli b4 it escalated into somethn else
EducationRe: Direct Entry Candidates 2013/2014. Let Us Meet Here by Danyl(m): 3:50pm On Dec 30, 2012
Akby: Yeah u must have a minimum of upper credit pass in your ND and also it must be one sitting O'levels... Faculty of medicals in UI accept only one sitting! If u meet up this requirements u are simply good to go
what about medicine...in UI. And if u have a 2.2 in botany n u want to do medicine thru DE. What r d chances of such
EducationRe: Oau Direct Entry Candidate 2012 Let Us Meet Here by Danyl(m): 7:45am On Dec 27, 2012
Is there anyone goin for DE into medicine i hav some questions:
does OAU accept botany 2.2 grade into medicine..

1 2 3 4 5 6 7 8 ... 28 29 30 31 32 33 34 35 36 (of 44 pages)