₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,222 members, 8,449,224 topics. Date: Tuesday, 21 July 2026 at 01:11 PM

Toggle theme

Fayimora's Posts

Nairaland ForumFayimora's ProfileFayimora's Posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 (of 42 pages)

ProgrammingRe: Ruby Programmers And Programming by Fayimora(m): 12:41pm On Nov 30, 2011
True dhml. There are different features RoR brings to life but every programmer uses it for one reason or the other. For me its because I like LOVE Ruby and MVC.
ProgrammingRe: Letter From The Moderator - Please Read by Fayimora(op): 9:27pm On Nov 29, 2011
Seun:
Fayimora is doing a great job here, and I appreciate it very much. More grease to your elbows man!
thanks
ProgrammingRe: Ruby Programmers And Programming by Fayimora(m): 9:05pm On Nov 29, 2011
HAhahahaha naaa was just wondering what you heard about Ruby/Rails thats now making you join us cheesy remember our funny argument?? on YIM. . .
ProgrammingRe: Ruby Programmers And Programming by Fayimora(m): 7:00pm On Nov 29, 2011
Hmmmmm
ProgrammingRe: Ruby Programmers And Programming by Fayimora(m): 12:03am On Nov 29, 2011
Those books are quite old tho, Try Beginning Ruby by Peter Cooper. I have both pdf and epub if anyone needs it,
ProgrammingRe: I Have Decided To Become A Programmer/app Developer And I Need Some Guide by Fayimora(m): 11:29am On Nov 28, 2011
Sorry @OP am late, I see nothing wrong with what you are doing. In as much as I HATE C#, dere is nufin wrong with it. Stackoverflow was built and is still running on the .NET framework. Java is a good one as you can use frameworks like GWT or Spring for enterprise applications. Also, you get to easily write android apps.

I can flood your system with resources, just mail me saying what you need and I wud help you out.

Wish ya good luck.
ProgrammingRe: [problem] Write A Program In C++ That Finds The Hcf Of 2 Numbers Without Using A Recursive Function by Fayimora(m): 10:33am On Nov 27, 2011
Who said so? For me, the recursive algorithm even work faster(maybe a negligible time difference). You should never use iteration over recursion or vice versa because someone said it is faster. How about you give it a go? Try it out and learn to use the appropriate thing for the job. You can write almost anything both iteratively and recursively but you must have noticed that recursive solutions are always elegant.

With that been said, am not saying you should fill up an array recursively. Now that would be stupid. You must have read the article ekt_bear posted, if you havent then go read it and if you have then you should understand the algorithm enough to implement it in ANY language either iteratively or recursively.
ProgrammingRe: . by Fayimora(m): 1:05am On Nov 27, 2011
hahah Easy fellas
ProgrammingRe: General Strategies For Converting Legacy Code? by Fayimora(m): 1:03am On Nov 27, 2011
To be HONEST I would re-write the whole application. I hate that word 'legacy'.
ProgrammingRe: I Need To Learn Algorithms by Fayimora(m): 10:05pm On Nov 22, 2011
Lol am not saying Knuth's book is not the thing. Who da F**k am i to even say that. WHat am trying to say is that its not a book i would advice anyone to start with, It still requires some stuffs i cant explain. Again, there are softer resources on MIT OCW that anyone can use to start off with before grabbing Concrete Mathematics. It might look like it would take longer but try it and see.

Anyways guys we are supposed to be helping a beginner. Probably best to take this to another thread. Just a thought cause the thread is kinda off topic and am supposed to be the l ast person breaking the rules.
ProgrammingRe: I Need To Learn Algorithms by Fayimora(m): 8:35pm On Nov 22, 2011
I still hold my grounds. EVERY CS student MUST have a good background in discrete mathematics. MIght not be the case elsewhere but at least it's the case here in the UK. I currently take a very rigorous(f**kin crazy ) algorithms and data structures module as part of my course. Every student that hasn't gone through discrete mathematics is finding it super difficult.

Kobojunkie:
Where do you think those resources from MIT OCW come from? Thin air?  undecided
Huh? There is a particular book written specially for MIT students. That's what am referring to. Just like ekt and omo said, the main mathematics is for researchers or the theory based guys but discrete maths is for every computer science student. Have heard the likes of google's Steve, Mathew Huntbach, Eric Lehman, Peter Mcowan say this over and over.

As a matter of fact, if you come into the uk to do CS, your discrete maths skills would be tested. I have helped a lot of ma friends from Nigeria prepare for that test and trust me it's all discrete maths.

If you come in as an undergrad, a fresh one I mean, you would have to go through a foundation course where half the modules you would take are discrete maths based, just a few extra stuff like trig and calculus.
ProgrammingRe: I Need To Learn Algorithms by Fayimora(m): 7:02pm On Nov 22, 2011
Lol I know,, I meant almost impossible, It's better to do some lighter discrete maths. Ou can get resources from MIT OCW,
ProgrammingRe: I Need To Learn Algorithms by Fayimora(m): 11:02am On Nov 22, 2011
Concrete mathematics would take timeee. also, you cant use that book alone.lol Its got some crazy stuff. I would post a list of topics any CS student should get familiar with later on. I've got a lecture now so ciaoo
ProgrammingLetter From The Moderator - Please Read by Fayimora(op): 2:26am On Nov 22, 2011
Hey guys,
As some of you must have noticed, I do not come here(NairaLand) as often as I used to during the summer. This is because I am currently faced with multiple projects(academic, personal and paid) with close deadlines. However, this has not stopped me from visiting this forum. I try my best to check it out every now and then.

I have just cleaned up this thread(at least for the main time) and would like to employ you guys to help me out on this. Because I am unable to visit this forum regularly, it has become really difficult to clean up. I have to spend hours trying to read threads and clean them up, delete useless threads and so on. Am sure you guys must have been irritated with all those bullshit. To speed up the clean up, it would be nice if you guys can make use of the "report to moderator" link. That way I dont have to read threads and spend minutes deciding. I can just focus on the ones causing trouble.

You do not have to do it if you dont want to. However, we would all enjoy a spam free forum if we all use that link anytime we see "an out of place" thread or post.

Thanks a lot
Fayimora
ProgrammingRe: Hottest Programming Certification by Fayimora(m): 2:06am On Nov 22, 2011
Sorry just a quick question. Do you need a bloody certification before you work in Nigeria? No offence to the OP, just want to know
ProgrammingRe: What Topics To Cover In Java To Be A Guru? by Fayimora(m): 4:41am On Nov 18, 2011
Charles Leiserson said in one of his lectures few years ago at MIT and i quote:

To be a world class programmer, program everyday for 10yrs , [few seconds of silence], or program everyday for 2years and take an algorithms and data structures class
But note as naija_swag said, you have to start from the basics. wink
ProgrammingRe: Trivial Quiz? by Fayimora(m): 4:38am On Nov 18, 2011
bakenda:
Yeah. You may want to try it out with +1
Guess thers no point again, ma solution is more or less the same with @omo's python solution
ProgrammingRe: Trivial Quiz? by Fayimora(m): 3:28pm On Nov 16, 2011
I Dont understand that condition, Does that apply to me??, Do you mean it has to be +1 always?
ProgrammingRe: Retrieving Text From Data File. by Fayimora(m): 1:46pm On Nov 16, 2011
Anytime
ProgrammingRe: Trivial Quiz? by Fayimora(m): 1:25pm On Nov 16, 2011
With Java
class Bakenda
{
public static void main(String[] param)
{
int x=1;
while(x<50){
System.out.println( x );
x+=2;
}
}
}

or with Ruby

(1. .50).step(2) { |n| puts n}

Remove the space between the dots. .
ProgrammingRe: Pls Able Programmers, Help! by Fayimora(m): 8:51pm On Nov 15, 2011
NOt a fan of anything thats windows centric. I dont mind doing it for you for free if and only if you provide a specification but would advice you try it out yourself first. Afterall you said you can program
ProgrammingRe: Female Programmers Stand Up And Be Counted by Fayimora(m): 8:48pm On Nov 15, 2011
Ace26:
@Fayimora,

Really? Why haven't you introduced them to this forum? Are they good programmers or computer scientist(if there's anything like that)? Which?

I personally have met just, let me count them, none!
They are computer scientists and good programmers. Errr we dont really have time for forums here in the UK. Too much work! Am only here because am the moderator and I kinda enjoy helping people.
ProgrammingRe: I Need To Learn Algorithms by Fayimora(m): 5:17pm On Nov 14, 2011
Don't forget that you MUST be good in maths to understand that book. It is a prerequisite. Spend the next few months working on that
WebmastersRe: Money Blogging by Fayimora(m): 4:44pm On Nov 14, 2011
Wrong section, moving you to the webmasters section. . . .
ProgrammingRe: Retrieving Text From Data File. by Fayimora(m): 4:41pm On Nov 14, 2011
Well split it with .
ProgrammingRe: Female Programmers Stand Up And Be Counted by Fayimora(m): 11:27am On Nov 14, 2011
For some reasons NL doesn't hav female programmers/computer scientists. I have quite a lot of female friends that very good computer scientists.
ProgrammingRe: Retrieving Text From Data File. by Fayimora(m): 11:19am On Nov 14, 2011
I don't think i ununderstand wat you want to do. What As are you talk about?
ProgrammingRe: Retrieving Text From Data File. by Fayimora(m): 10:34pm On Nov 13, 2011
Yes your delimiter would now be '~', however if you noticed I used the wildcard '+'. It just means 1 or more. So it takes care of a situation where you have more than 1 '~'. FOr instance '23~24~~27'. Let me know if you have any problems.
WebmastersRe: Help Me Install And Joomla by Fayimora(m): 10:30pm On Nov 13, 2011
Moving you to the right section. . . .
ProgrammingRe: Retrieving Text From Data File. by Fayimora(m): 2:51pm On Nov 13, 2011
Ok cool so use what i have written above. As long as you know the format of the file, the extension doesn't stop you from accessing it like any other file.However, you would add some extra bits . . . .
Remember that values[1] = options;

However, 'options' also contain something else that you need to split up,  Try writing just a line of code that gives you an array of options, so if you have

String [] options;
options[0] = 23;
options[1]  = 22;
options[2] = 32;
options[3] = 40;

and then you can use your values there.
The previous code i wrote would be of help,  Try it out!
ProgrammingRe: Retrieving Text From Data File. by Fayimora(m): 11:49pm On Nov 12, 2011
Danyl:
Using Java,am trying to retrieve the lines of text and display them one after the other on a GUI.
Its arranged according to the format below
query:options:correct-response-to-query
Well displaying them I shall leave for you to handle. Lets work through the format of the file.
You have a query  and then option separated by :
You the have : and then another string 'correct response to query'

Just to be sure, an example would be:
SELECT * FROM 'blog_posts' WHERE`ID`=45:LIMIT 0,30:Yes the posts exists

Am i correct? If No then pls provide an example. The reason why I want an example is because the easiest and most reasonable way to tackle this is with a regular expression. I can provide that for you.

Another way would be to use the split function in the String class.

The way it works is, you take a String and split with a delimiter. The result of the split gets stored in an array.

For instance:
String line = [color=#FF0000]"[/color][color=#FF0000]q[/color][color=#FF0000]u[/color][color=#FF0000]e[/color][color=#FF0000]r[/color][color=#FF0000]y[/color][color=#FF0000]:[/color][color=#FF0000]o[/color][color=#FF0000]p[/color][color=#FF0000]t[/color][color=#FF0000]i[/color][color=#FF0000]o[/color][color=#FF0000]n[/color][color=#FF0000]s[/color][color=#FF0000]:[/color][color=#FF0000]c[/color][color=#FF0000]o[/color][color=#FF0000]r[/color][color=#FF0000]r[/color][color=#FF0000]e[/color][color=#FF0000]c[/color][color=#FF0000]t[/color][color=#FF0000]-[/color][color=#FF0000]r[/color][color=#FF0000]e[/color][color=#FF0000]s[/color][color=#FF0000]p[/color][color=#FF0000]o[/color][color=#FF0000]n[/color][color=#FF0000]s[/color][color=#FF0000]e[/color][color=#FF0000]-[/color][color=#FF0000]t[/color][color=#FF0000]o[/color][color=#FF0000]-[/color][color=#FF0000]q[/color][color=#FF0000]u[/color][color=#FF0000]e[/color][color=#FF0000]r[/color][color=#FF0000]y[/color][color=#FF0000]"[/color];
String[] values = line.split([color=#FF0000]"[/color][color=#FF0000]:[/color][color=#FF0000]+[/color][color=#FF0000]"[/color]);

Here are the elements of values:
values[[color=#FF0000]0[/color]] = query
values[[color=#FF0000]1[/color]] = options
values[[color=#FF0000]2[/color]] = correct-response-to-query


Note that I assume you know how to read from a file. If you cant then this would be of help.
Scanner reader = [color=#FF9D00]new[/color]  Scanner([color=#FF9D00]new[/color] FileReader([color=#FF0000]"[/color][color=#FF0000]f[/color][color=#FF0000]i[/color][color=#FF0000]l[/color][color=#FF0000]e[/color][color=#FF0000]n[/color][color=#FF0000]a[/color][color=#FF0000]m[/color][color=#FF0000]e[/color][color=#FF0000].[/color][color=#FF0000]d[/color][color=#FF0000]b[/color][color=#FF0000]"[/color])); [color=#0000EE]//open the file and get ready to read it.
[/color]while(reader.hasNextLine()){ [color=#0000EE]//loop while you still have a line in the file.
[/color]     String line = reader.nextLine(); [color=#0000EE]//read in a line into the string
[/color]   
    [color=#0000EE]// process each line here
[/color]}

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 (of 42 pages)