Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,151,294 members, 7,811,882 topics. Date: Sunday, 28 April 2024 at 10:09 PM

My2cents's Posts

Nairaland Forum / My2cents's Profile / My2cents's Posts

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (of 75 pages)

Webmasters / Test Your Javascript Knowledge (pt 3) by my2cents(m): 4:08pm On Mar 27, 2008
What will be the results of the following alerts, given the code snippet below?

function newClass() {
this.firstName = "Kheme";
lastName = "in Cyprus";
}
var nc = new newClass();
alert(nc.firstName);
alert(nc.lastName);
Webmasters / Re: Website Review, Anyone? by my2cents(m): 2:16pm On Mar 27, 2008
So now that it appears that we have beaten this thread to a pulp, how about we turn our remaining energy to the following threads? wink

https://www.nairaland.com/nigeria/topic-122813.0.html

and

https://www.nairaland.com/nigeria/topic-122722.0.html
Webmasters / Re: Vacancy For A Web Designer by my2cents(m): 2:15pm On Mar 27, 2008
quadrillo,

r u aware that at least 40% of the URLs you have posted are not up and running? Just wondering cos if I were the client and went through the 4 random sites that I just did, all of which came up with "site not found", you would have lost my confidence.

I think it is in order (unless the error is from my end, which I doubt, but you never know) for you to modify your post accordingly.

As always, my 2 cents
Sports / Boxing Match: Godswill Akpabio Vs. Christy Essien-igbokwe by my2cents(m): 10:50am On Mar 27, 2008
Who will win? Why not find out for yourselves wink

http://www.akwaibomnewsonline.com/
Webmasters / Re: Coldfusion Web Applications ! Anybody Out There ? by my2cents(m): 10:46am On Mar 27, 2008
I worked on a CF project in 99/2000 for a company that is no longer in existence, so I can't share a link cry cry cry

As far as experiences go, I must say CF was pretty easy to pick up. I was working with ASP back then and suddenly, a project in another part of the country needed assistance from any available resource. I was available but knew nothing about CF. In fact, I had never heard of it till that time. What was I to do? It's crazy when look back at it - I bought a book, boarded a plane for a 5 hour flight to a place -3 time zones away, read as much of the book as I could, landed at my destination and was fortunate enough that what I was assigned to do was exactly what I had read while on my way there. Aaaah, it was the .com era back then. A CF web app talking to an Oracle DB. A company called "VetMed", basically an online version of a Vet Doctor's office.

Compared to ASP at the time, I found CF much easier to work with and was sad when I had to leave. I had always wished that I got to work on another CF project but never have (and maybe never will) since then.

Oh well, time flies and we move on.
Programming / Re: Help On Php/mysql Queue Process by my2cents(m): 1:54am On Mar 27, 2008
In addition:

If you are really concerned about a race condition then you might want to look at making your DB queries transactional so that when one person is signing up, the DB is "locked" and no one else can write to it until after the first person to "arrive" is done signing up. Thereafter, control is released and the next person in the queue is allowed to sign up.

I don't know what kind of site you are running, not to mention the level of user/DB activity, but if it isn't that high, I would say a transactional DB might b overkill.

As always, my 2 cents.
Webmasters / Re: Test Your Javascript Knowledge (pt 2) by my2cents(m): 8:46pm On Mar 26, 2008
Well prodgal,

Since it wasn't required to post our answers and I have already had private conversations with you, I will say this one na phD levels and not spoil the fun for others grin

I got the answer after 2 tries but must confess that I wasn't able to explain why - typical example of knowing how to code with knowing the "why" behind it.

Thanks for bringing this up man. I hope others follow suit and post similar quizzes as well.
Webmasters / Re: Test Your Javascript Knolwedge. by my2cents(m): 6:47pm On Mar 26, 2008
Very philosophical Kazey cool

Okay, I thought I would get more answers but I guess not. That tells me, we are more of designers in here than developers but I could be wrong. That notwithstanding, I will provide the answer and the explanation as well.

The answer is "3" printed out 3 times (hint: count the number of calls to alert wink)

First and foremost, I noticed I got more YIMs than posts here. To collate all the questions/issues/concerns, I would like to say that the aim of this post wasn't to make anyone feel bad or to intimidate anyone or to say, "that answer sucks!". We are all here to learn. I have always strongly believed that. I was actually hoping for more of a discussion, which does exist but just not from as many people as I expected.

Even I was thrown for a loop here. Well, technically I was correct. I said "3", "2", "1". See, Javascript is very funny with variables and scope. In Javascript, every variable has global scope. Memory is allocated once to a variable and if a call to that variable is made again, it's original value gets overridden by the new value. Counter that with the way it is in other programming languages. This is where namespacing, use of anonymous functions and self-contained, self-executing scripts come in. Also, in javascript, a boolean by default is true. That is why "if(1)" always executes regardless.

The lesson: You have to be very careful with how and where you use your variables. Why? Cos that "i" var for instance that you call somewhere on your page might be interfering with another "i" variable declared in an imported js file. This might even be worse in cases where you are using libraries like scriptaculous, dojo, etc.

So to conclude: The answer is "3", "3" and "3". Thanks for participating in this. I will definitely come up with more of this. Hopefully, I have motivated enough people to come up with a similar exercise.

Thanks once again.
Webmasters / Re: Test Your Javascript Knolwedge. by my2cents(m): 5:22pm On Mar 26, 2008
Pretty interesting guys. Keep it coming cool

I am actually busy working on something so lucky for you all, the time for posting an answer has been extended by at least an hour.

I will definitely keep you all posted. One thing is for sure though - we need to do more of these grin
Webmasters / Test Your Javascript Knolwedge. by my2cents(m): 2:20pm On Mar 26, 2008
This quiz is based on some piece of code I just stumbled upon. You are to do it based on the honor code system (in other words, first solve it on paper, then run it in your favorite browser):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>Untitled</title>
<script>
function testYourKnowledge() {
var i = 1;
if(1) {
i = 2;
if(1) {
i = 3;
alert(i);
}
alert(i);
}
alert(i);
}
</script>
</head>

<body onLoad="testYourKnowledge()"></body>
</html>

Tasks:
1) Run this on paper, and paste your result here
2) Run it in your favorite browser, see if the results you get equal what you posted here. KEEP THE ANSWER TO YOURSELF till the opportuned time.
3) In about 2 hrs, I will post the correct answer
4) Come back here, share your answer and explain why you think the answer you had equals (or doesn't equal) the correct answer.
5) This isn't limited to those in this forum but the "programmers" as well.

(HEY! COME ON! I SEE YOU RUNNING THE CODE ALREADY! BE HONEST - DO IT ON PAPER FIRST! cool)

So what are you waiting for? Enough with the "site reviews". We are developers. Let's put on our developer hats for a change and get our feet wet wink
Education / List Of Fake Nigerian Universities by my2cents(m): 11:20am On Mar 26, 2008
http://www.akwaibomnewsonline.com/downloads/

For more links and news like this, including wacky news from around the world, please visit: http://www.akwaibomnewsonline.com/

Thanks,
Webmasters / Yahoo And Myspace Join With Google by my2cents(m): 11:04am On Mar 26, 2008
Webmasters / Lasu Shuts Down Cybercafes by my2cents(m): 11:03am On Mar 26, 2008
For more on this and other news items, please visit: http://www.akwaibomnewsonline.com

For wacky news from around the world, please visit: http://www.akwaibomnewsonline.com/wacky-news
Webmasters / Re: Bbc Website Have Definitely Done It This Time by my2cents(m): 10:56am On Mar 26, 2008
china was so impressed with the new design and they removed it from their filter block
Interesting.

he bbc site, is just for the homepage, the inside content still shows the old design.
Kazy, Chei! You bad o grin

I just visited the site this morning and noticed that the color scheme has changed. Yesterday is was a gold-ish color. Today it is a hot pink-ish color. I guess they are either experimenting with this or it changes on a daily basis. Anyone else notice a change on their end?
Programming / Re: Interview Questions For Programmer/analyst by my2cents(m): 10:54pm On Mar 25, 2008
1) If I have 5 oranges and I take away 3, how many do I have?

2) How would you design an elevator?

3) What is wrong with this code snippet:
for(i = 0; i < 3; i++) {
array = { 4, 5, 6, 7 };
array.push(5);
}

4) What are the features of OOP?

These are some of the many questions that I remember being asked during the course of my many interviews. Depending on where you live, style of questioning might be different.

good luck!
Romance / Re: For Nigerian Women Only: Are You Feeling Down? Need Advice? by my2cents(m): 8:14pm On Mar 25, 2008
red-blooded, rare male.

Why do you ask? If what a man can do, a woman can do even better, wouldn't it follow that what a woman can do, a man can do half as good? cool

Sha, it's not my site. A fellow Nigerian woman like you owns it and I like what she is doing.

Hopefully, she will see you there. If not, at least tell your friends wink
Romance / For Nigerian Women Only: Are You Feeling Down? Need Advice? by my2cents(m): 8:11pm On Mar 25, 2008
Join the ever growing discussion list at http://www.nigerianwomenworld.com/

you won't regret it
Webmasters / Bbc Website Have Definitely Done It This Time by my2cents(m): 7:29pm On Mar 25, 2008
So, after a long while, I decide to visit the BBC website. I notice that the bland design has been replaced with something much better and so I proceed to scan the home page with my eyes in zig-zag formation. My eye suddenly stumbles upon what I will call the masterpiece of the year - check the top right.

Maybe there are other sites that have implemented a flash clock, but I have never seen one myself. The thing is tight, compact and the seconds hand movement is smooooth and its based on the client's time as opposed to the server's kiss

http://www.bbc.co.uk/

What do you all think?
Webmasters / Re: Java, The Ultimate Programming Language by my2cents(m): 7:25pm On Mar 25, 2008
1) go for what is "hot" in your place of residence. Why? Cos you will get a job quicker. In the realm of web dev in Naija, I would say that would be PHP

2) After that, like a kung-fu master, have a second side language, so that if #1 flops, you have back-up. I am thinking Java/JSP here.
Webmasters / Re: Worst Website In Nigeria, Found? by my2cents(m): 4:50pm On Mar 25, 2008
abhosts:
I guess I won't be running for President soon given your ability to dig up dirt from the past tongue

Yes, there is a difference b/w constructive criticism (CC) and public ridicule (PR).

Let us look at this post for example:

1) The poster points out a site that in his opinion is bad
2) He backs it up with what is wrong with the site
3) Most importantly, he provides a solution to the problems

I believe I do same with the Union news site and the other one I posted.

Compare and contrast to the SEO link above. With your permission I would like to help you with this:

1) I say something
2) Others say I am wrong
3) I investigate
4) I acknowledge
5) Igwe comes with personal attack (I wouldn't call it PR as quite frankly, no one knows me and probably will never know me. For all we know, I could be some sort of ghost cool)
6) I attack back

So yes, there is a difference. BIG difference b/w CC and PR. In this case here, if I were the owner of those sites, I see where I could learn from what is being said. In the SEO case, all I see is hate after the first 4 or so posts.
Education / Researchers Create Protein Map Of Human Spit; 1,116 Unique Proteins Found: by my2cents(m): 4:30pm On Mar 25, 2008
For this, and other wacky news from around the world, check out:

http://www.akwaibomnewsonline.com/wacky-news/
Webmasters / Re: Help! Help! Help! Somebody Help Me I Need Help ! Please by my2cents(m): 3:54pm On Mar 25, 2008
u need to create one cool

Open notepad (or your favorite text editor/WYSIWYG), create a file, put any text in it for starters, save it as index.php (assuming your host supports php) and c if that shows up.
Webmasters / Re: Help! Help! Help! Somebody Help Me I Need Help ! Please by my2cents(m): 3:47pm On Mar 25, 2008
do you have an index(.html, .htm, .php or whatever extension you are using) file? That might be the problem. What I see now is the standard placeholder that shows up once a url is registered.

Try the above and get back to us.
Webmasters / Re: Urgent! Inhouse Webmasters Needed: by my2cents(m): 2:13pm On Mar 25, 2008
mutiu,

Na only 2 u c? He has posted the same crap on at least 20 threads I am subscribed to. The last time I did something similar, Seun sent me a warning email. Let's hope ken has gotten the same email.

It's very annoying to say the least.
Webmasters / Re: Is Windows Frontpage Good For Designing Official Websites. by my2cents(m): 11:35am On Mar 25, 2008
mba nu smartsoft cool

I drive a hummer and you drive a tokunbor "end of discussion". Both na car, but both na "same ni"? I don't think so man.

Odikwa necessary to point out the difference biko tongue

All Web Editors can be used to create a site but they have their levels. Some have something the other lacks. Some have the power to do what others can't. Why u think say DW dey very popular as opposed to say, FP?

Where I reside, if you go over 100 job applications, you will never see FP being mentioned. Never. You are more likely to see, "must know how to hand code" than "must know how to use DW or any other WYSIWYG". In fact, I have an MCP certification in FP (from 2001 - probably expired I know, so don't go there tongue) but when I discovered that putting it on my CV actually hurt my chances of getting a job (because it implies you don't know what is going on behind the scenes), I removed it from my CV. Now, you won't even find the card in my wallet grin I personally prefer getting your hands dirty and using a text editor as you learn more that way, but that's just my preference.

FP can be used to design "official" websites (whatever that means), the same way DW can be used to develop a crappy site. From a commercial/corporate standpoint though, you probably don't want to use FP.
Webmasters / Re: Worst Website In Nigeria, Found? by my2cents(m): 11:24am On Mar 25, 2008
abhosts, with all due respect:

Pointing out bad websites isn't anything bad. For one, Cactus could have been wrong, in which case it would be our job to prove him wrong. I don't eat amala but that doesn't mean that I can't judge b/w 2 (or more) separate plates at a competition, based on what I see. I don't have to taste the amala to say I like it (or not).

If you read the post again (which I just have, just in case I missed something), he is bashing with a cause by stating what is wrong - broken links, outdated posts, etc. The way I (and perhaps others) see it, especially if others agree, is "this is what people don't expect from a website. Next time I do a similar site, I will make sure mine isn't like this".

Cactus doesn't have to submit a portfolio to prove his worth. I didn't have a site for at least a year but was still posting reviews and pointing out the errors in others ways. Do you know if, like me, he works for a web dev shop that develops sites for clients which means that though he doesn't have sites he has created for himself, he has worked on sites at a larger, corporate level?

So, I am wondering, if you say so about cactus, what will you say about this site? tongue

http://unionnewsng.com/index.aspx -

1) The color combo sucks for a newspaper
2) The last time the site was updated (based on date on top left) was June 2006
3) The categories don't reflect that of other news sites out there
4) They are not abiding by their mission statement (whose layout is inconsistent with the rest of the site, by the way): http://unionnewsng.com/theStory.aspx

Do I need to present my "credentials" to justify my observations above? In other words, if I were say, a mechanic who just wanted to get the daily news before heading out to work, must I present a portfolio of cars I have worked on to justify saying the site sucks?

Conclusion:
I don't think there is anything wrong with pointing out things wrong with a site, especially, if you state what those issues are. In the end, we take note and are the better for it.

As always, my 2 cents.
Webmasters / Re: Php Script Review Please/abeg/anyone?! by my2cents(m): 7:02pm On Mar 24, 2008
webdezzi, it shdnt matter. Again, you can control that via CSS. Take a random sampling of sites I have done. Look at pages with a lot of text and note the use of P tags. All you have to do is hv a generic css call like so (called style resetting):

p { margin: 0;}

Then, assign an id to the P tags you will use (or class if you will use a lot of them) like so (for example):

p.content { margin: 5px 0; }

Please note that certain tags don't work well/behave consistently with padding (the distance b/w an element and its container) but do better across browsers with margins (the distance b/w neighboring elements).

It's all in the box model. If you understand that, then as I said, you have nothing to worry about. Each browser has its difference, yes. But you don't have to make your P tags 10px in IE and 7px in FF just to make the site a carbon copy of itself across the board. Differences are allowed. The main thing is consistency.

Just give it a try. If you need help, if I have time, I don't mind lending a hand. For starters, give me a site you have done and let me show you how it could be implemented.

I bet once you grasp it, you won't use tables/BRs again (or if you do, very sparingly) wink
Webmasters / Re: Worst Website In Nigeria, Found? by my2cents(m): 6:40pm On Mar 24, 2008
One way that has worked for me is to charge higher. From experience, those who I charged the cheapest are the hardest to deal with of them all. They are the ones always fussing over pixels, crossing Ts and dotting Is, as well as sending me myriads of content to continuously upload to their site, lol.
Webmasters / Re: Website Review, Anyone? by my2cents(m): 6:37pm On Mar 24, 2008
I(n) M(y) H(umble) O(pinion)
Webmasters / Re: Website Review, Anyone? by my2cents(m): 4:09pm On Mar 24, 2008
If only everyone on this forum (including myself at times) were like danteweb, the world would be a better place. kiss

It's all about being the bigger man, recognizing where one might have erred and moving, without prompting, to acknowledge that he has indeed erred. To push the envelop a bit further, IMHO, an even bigger man would apologize, even when they are not wrong, in the interest of peace and harmony.

So, is there anything more to say about utalbuilding.com? wink

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (of 75 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. 57
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.