Fayimora's Posts
Nairaland Forum › Fayimora's Profile › Fayimora's Posts
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 (of 42 pages)
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 |
Seun:thanks |
HAhahahaha naaa was just wondering what you heard about Ruby/Rails thats now making you join us remember our funny argument?? on YIM. . . |
Hmmmmm |
Those books are quite old tho, Try Beginning Ruby by Peter Cooper. I have both pdf and epub if anyone needs it, |
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. |
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. |
hahah Easy fellas |
To be HONEST I would re-write the whole application. I hate that word 'legacy'. |
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. |
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: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. |
Lol I know,, I meant almost impossible, It's better to do some lighter discrete maths. Ou can get resources from MIT OCW, |
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 |
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 |
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 |
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 classBut note as naija_swag said, you have to start from the basics. ![]() |
bakenda:Guess thers no point again, ma solution is more or less the same with @omo's python solution |
I Dont understand that condition, Does that apply to me??, Do you mean it has to be +1 always? |
Anytime |
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
Remove the space between the dots. . |
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 |
Ace26: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. |
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 |
Wrong section, moving you to the webmasters section. . . . |
Well split it with . |
For some reasons NL doesn't hav female programmers/computer scientists. I have quite a lot of female friends that very good computer scientists. |
I don't think i ununderstand wat you want to do. What As are you talk about? |
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. |
Moving you to the right section. . . . |
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! |
Danyl: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]} |
remember our funny argument?? on YIM. . .
