₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,324,996 members, 8,419,859 topics. Date: Thursday, 04 June 2026 at 03:49 AM

Toggle theme

Delomos's Posts

Nairaland ForumDelomos's ProfileDelomos's Posts

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

ProgrammingRe: The Door-Goat-Car Logic Problem by delomos(op): 2:23am On Apr 04, 2012
Aha .... All I need now is a solid bowl of Eba and palm wine + @ekt_bear's analysis and I'm all set.

@ekt_bear, will this same be true of a "being" blind to the emotional attachment of being wrong on choice 1?

Say, there are 1 billion doors, 1st wrong, 2nd wrong, 3rd wrong... does following a [1-(1/n)] progression make sense (again assume the door chooser doesn't have the human factor e.g a computer) ?
ProgrammingRe: The Door-Goat-Car Logic Problem by delomos(op): 12:56am On Apr 04, 2012
okeyxyz: I don't need all the facts and variables, but i do need your POV to understand what I'm dealing with. this is what @codeaddict has managed to elicit from you, thus half of the problem is solved already.
My apologies, I did misunderstand your point. As @ekt_bear stated, yes, it's the Monty Hall problem and it's terribly easy to get the problem wrong (Almost like dating a chic who "says" she's a virgin) -- and again, as @ekt_bear stated, I agree that it's easier to solve the problem when one thinks of 1 billion doors instead of three (actually that's why I added story 2, the problem has just one day)

In light of @ekt_bear's exposition, @ekt_bear and @okeyxyz how do you approach it?

How do you approach it if this where a computational problem?

P.S It will be exciting! to read people thought on how this problem relates to a girl "saying" she's a virgin
Tech JobsRe: Ajax Loader by delomos(m): 7:25pm On Apr 03, 2012
If you're looking for a full scale solution, you might want to look here: http://woork..com/2007/10/login-using-ajax-and-php.html

But if you looking for the concept to integrate into something you've already built... Stack Overflow style//

drop jQ in your page (http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js)
assuming the page that's processing your login is: login.php

//calling the jQ on ready function
(function($) {
//now the ajax method of jQ is called...

$.ajax({
url: "login.php",
beforeSend: function() { $("#loadingsmiley.append("<img src="http://logd.tw.rpi.edu/files/loading.gif"></img>") /** this is where you do the loading thing assuming you're loading it into a div with ID of "loading"*/
success: function(data, xhr){
// do your xhr checks...if(xhr.success){
$("loading"wink.html(data);
}

});

}(jQuery));


Generally, the idea is that simple with jQuery.
ProgrammingRe: The Door-Goat-Car Logic Problem by delomos(op): 6:51pm On Apr 03, 2012
okeyxyz: OK, i see where you are coming from, the clarification has finally been made. which takes us back to my earlier objection that the question itself is faulty because of ambiguity, and as a programmer\computer scientist you know that computing(unlike mathematics) does not tolerate ambiguity, it's a sure recipe for errors. good try though smiley
I think you have it the other way around, scientist are faced with ambiguities, then they try to "make it fit", hence does who can properly deal with ambiguity get a hang of things better. In fact, abstracts drive the industry (trying to continually model things to the uncertainty of the real whole); after all the field of [Computing] Combinatorial is largely based on understanding ambiguity or making them -- but I digress.

How can the question be faulty? Think of it as a problem being solved, you never have all the "facts" or "variables" when you're presented with a problem -- it's you're job as the solver to see the gaps and place them. Again think of Occam's Razor and put this question in that context -- [?]
ProgrammingRe: Microsoft Access by delomos(m): 3:02pm On Apr 03, 2012
First off, don't ask to ask, just ask your question.

And: "I have pre-designed databases for various fuctions that i want to sell." what exactly does this mean?
ProgrammingRe: The Door-Goat-Car Logic Problem by delomos(op): 2:54pm On Apr 03, 2012
@codeaddict
codeaddict: working from this story, switching doors will be unfavourable only if he chose a car at first. The probability of this occurring is 1/500, therefore switching will be more favourable because the probability is 499/500 [1-(1/500)].

Does the person opening the door open the first 498 doors or the 498th door?
the first 498th door through to 498th -- very excellent catching the difference, you've already nailed it but more will be appreciated.

@okeyxyz: read the previous analysis of @codeaddict, even if you don't agree with the conclusion (which in my opinion has a higher confidence level than yours), there's somethign to be learned from the approach.

@jetsetgo: usually I will ignore this but people like you are why Nigeria is lacking innovation, if you're too lazy to think, go like peoples picture on facebook, or follow celebrities on twitters; if that doesn't do you, go and troll lackadaisicals like you on notjustok.com.

When you can understand a single post here: http://cstheory.stackexchange.com/ come back and let's talk.

I like you advise, yes I do have a girlfriend who you can't match a quarter of her wit and I'm also a music hobbyist (I play about 5 instruments bro) -- computing feeds me and it's my life. Now you -- go get a life.
Nairaland GeneralRe: Is This An Error? Nl Is Showing Different Color by delomos(m): 1:04pm On Apr 01, 2012
doncigalo: Im also seeing dis, guess hes trying a new color scheme .. I dont know why he doesnt announce before carrying out his tests or changes huh
Very bizzare! I almost thought my screen had a problem, this color combination is hurtful to the eyes!
ProgrammingRe: Mini Web Application Coding Challenge For Programmers by delomos(m): 4:54am On Apr 01, 2012
Neither do I... question is, Is Alpha Five a framework of XBasic
ProgrammingRe: The Door-Goat-Car Logic Problem by delomos(op): 3:30am On Apr 01, 2012
Fayimora: Lol its really not that obvious!!!
So get back to the drawing board and let's see how you'd re-think it.... or expand on this...
ProgrammingRe: Mini Web Application Coding Challenge For Programmers by delomos(m): 3:29am On Apr 01, 2012
abbyode: I still maintain that Alpha five is a web framework and a full IDE just like the way Visual Studio is.
It is more than just a RAD or a code generator.
I can relate it with ZEND for php but much more powerful.

...........
I don't really understand how you think this is more powerful than Zend, the framework, the IDE or the Company?

The Whitepaper was clearly written by a marketer, I strongly doubt a developer will make this statement:

"Alpha Five Version 11 is a new major release of the InfoWorld #1 rated rapid
application development tool that lets you build powerful & secure AJAX
business database applications for the web and mobile devices significantly
faster than with products like visual studio, J2EE, and PHP "

This is absolutely comparing Apples to Mangos to Bananas and you are making the same mistake too. A5 is a software product with an integrated IDE, it is not a framework in the way they (or you compare it to VS).

Zend Studio and Visual Studio are IDE (development Environment) for languages, C#, HTML, CSS, PHP, ... The question is not if it's closed or Open (legacy C# is not open source), the question is, is it a programming framework off a language.

.NET is a framework off C# / Visual Basic
Zend framework or Symfony is a framework off PHP
Ruby on Rails is a framework off Ruby,
Is Alpha Five a framework of XBasic .. before you answer, you might want to read this: http://wiki.alphasoftware.com/Xbasic+is+the+Brains+of+Alpha+Five
ProgrammingRe: Mini Web Application Coding Challenge For Programmers by delomos(m): 1:14am On Apr 01, 2012
abbyode: Did you also notice the below in the original post?

- Write the application in any programming language or web framework of your choice (except maybe PHP?)
Perhaps seeing what a web framework is might enlighten and seeing how it differs from AW: http://en.wikipedia.org/wiki/Web_application_framework
ProgrammingRe: The Door-Goat-Car Logic Problem by delomos(op): 1:07am On Apr 01, 2012
@Fayimora
Fayimora: Bayes Theorem!?!?!
Slowly drawing to a truism, expatiate on how Bayes would attack this... (or come to a conclusion with higher than average error bar)

@lordZOUGA
lordZOUGA: ....I meant that if the contents behind the door is not shuffled(not modified at runtime) then anytime he recants [/b]his choice, #1=> [b]the probability that his next choice will hold the car increases... #2=> but if it is being shuffled, it doesn't matter if he recants or not, the probability remains the same. if the game moderator knows the position of the car then its not being modified -> a closed system.
I'm assuming "recants" means "change"?

Remove the "shuffling" -- per the story, there is no chance of shuffling (the person opening the door only knows what's behind the door not having any action on it).
ProgrammingRe: In Search Of "that" Software Development Methodology by delomos(op): 9:06pm On Mar 31, 2012
And this is a super interesting read (titled: "Agile is a Sham"wink:


thats SCRUM and TDD and all the rest; it is all those new ways of managing development projects and being super-productive and modern and buzzword-compliant; all the sprints, scrums, playing cards crass commercial nonsense.

The management pitch is that by getting programmers to follow some process rote you will get good, predictable results out.

See, the thing is, the success of the coding-part of a project is dependent on the calibre of the engineers doing that coding and not the process they follow.

The success of the non-coding part of a project is dependent on the calibre of your sales/management and how they interact with the customer. If you are trying to prescribe some rigid process, however lean, in order to make that interaction effective, then you have a customer interface problem and process isn’t going to help it....continue reading here
> http://williamedwardscoder.tumblr.com/post/20054342100/agile-is-a-sham
ProgrammingRe: Mini Web Application Coding Challenge For Programmers by delomos(m): 8:55pm On Mar 31, 2012
abbyode: Alpha five might be unpopular but it has been in existence for over 2 decades.
The new version allows you to write complex web and desktop applications FASTER and[b] without writing a single line of code[/b].
Alpha five is not an open source IDE but its underline programming language is XBasic.
You can read more of it on www.alphasoftware.com .


Okay cool, you could just try to upload your Excel to the web. Then you will appreciate what they mean by a web application.
Tread softly partner, perhaps you didn't read the title of this thread: "Mini Web Application Coding Challenge For Programmers" writing your own code is implied -- this is not a challenge of how can use a piece of software faster.

Again, I repeat, it's not a valid entry in this context -- it's not fair to those honestly trying to solve the problem.
ProgrammingRe: The Door-Goat-Car Logic Problem by delomos(op): 8:49pm On Mar 31, 2012
@lordZOUGA:
lordZOUGA: in both cases... he should close the door and make another choice...
That in facts creates a new problem of an infinite loop, again, don't forget the fact that the person opening the door knows which door has the car -- re-work the rationale

lordZOUGA: I'd say that this (to me) reminds me more of the uncertainty principle in quantum mechanics where it is said that objects can exist simultaneously in a given number of states(constraints) until forced by an external body to choose a stable state(saying it loosely).
You're thinking of Schrödinger's cat, this isn't exactly the case


lordZOUGA: So before any door is opened, what is behind the door is a car and a goat.
This is only true for the person wanting to win the car, again, the other person knows what's precisely behind every door.

@codeaddict
codeaddict: Yeah, i believe so-mathematically.
How would you rationale this mathematically. Given that (in Story 1) , Pr(guess 1) = 1/3 ?
ProgrammingRe: Introducing Flash Into VB6.0 by delomos(m): 4:10am On Mar 31, 2012
damsoft: Hey Guys..Am a VB6.0 Programmer...How can i add flash into my projects...Pls Help..
Don't. It's more pain than it's worth. What are you trying to do?
ProgrammingRe: The Door-Goat-Car Logic Problem by delomos(op): 4:07am On Mar 31, 2012
@codeaddict: Nice thinking... Does the same apply to Story 2?
ProgrammingRe: The Door-Goat-Car Logic Problem by delomos(op): 11:36am On Mar 30, 2012
@okeyxyz: see the pattern in Story 1 & Story 2, ' that the previous choice\door which turns out to be wrong is put back into the pool of choices\doors", why isn't it taken out?
ProgrammingThe Door-Goat-Car Logic Problem by delomos(op): 4:01am On Mar 30, 2012
I ran into this probability issue yesterday and it's quite interesting, I'd like to read some take on it:

Story 1:
There are three doors in front of you, one has a car, and the other two have goats behind them. You been promised you will win the car behind one of the doors if you can can guess the correct door with the car behind it.

The person opening the door to reveal your choice knows which of the doors has the car. You made your guess.

The person opens the door, there is a goat behind it, he then asked: "will you want to guess again or stick to your original choice before I open the next door?" What will be your response and what's the rationale?

Story 2:
Now there are five hundred doors all with goats expect one with a car, every thing remains the same (mostly that the person opening the door know which has the car behind is), after opening the 498th door, he asked if you will like to change your mind mind or stick with your original choice. What's your choice/rationale?

*extra points for those who know what area of computer science this conundrum applies
ProgrammingRe: Mini Web Application Coding Challenge For Programmers by delomos(m): 1:28pm On Mar 29, 2012
@abbyode & @seun: this really isn't a valid entry anymore than MS Excel is...
Nairaland GeneralRe: Please Which Site Is Hosting Nairaland? by delomos(m): 5:05am On Mar 29, 2012
Seun: That's actually just DNS information, but information about our host is easy to find, too.
True, yup, a 'traceroute' will do, but that's up to the OP to do the rest of the work, that's a starting point.
ProgrammingRe: Mini Web Application Coding Challenge For Programmers by delomos(m): 5:02am On Mar 29, 2012
Seun: @abbyode: It's quite interesting. How did you write that?
Alpha Five >> https://www.alphasoftware.com/products/v10/

@abbyode, yea?
Nairaland GeneralRe: Please Which Site Is Hosting Nairaland? by delomos(m): 4:55am On Mar 29, 2012
It's not exactly private information ...anyone can look it up, as I did, see attached

ProgrammingJQuery & Friends:.. Q/A by delomos(op):
I saw this post => https://www.nairaland.com/309149/complete-javascript-programming-tutorial from awhile ago, and was quite good intentioned and it seemed things feel out; for those who have question respective to that post ( or set of posts), we can share ideas here, will start things off with a quick intro to JQuery, CSS, HTML, HTML5, CSS3 (refered to JQuery and friends henceforth), and some jargons everyone is speaking to day and why a 9ja boy cares:

There are generally two parts to website development these days: the front-end (what you're seeing, this round corners, text, etc) and back-end (what makes things run) -- JQuery and friends mostly care about the front-end. I would just dive into the meat of things, if you want more details, ask.

What's this HTML5? Nothing fancy, it's still regular HTML with more "stuff" , and an HTML5 app is a web page that acts like a desktop application usually with the help of javascript.
Where then does JQuery fit? JQuery is a small javascript 'program' that helps make it easier to do interesting things with HTML. Enough talk, this is a super, super basic Ajax/HTML5 app, it really does nothing it explains the point, so, let's redesign the header of nairaland and make the search box auto-populate when you click a link to search ( I advice you don't use IE to see the HTML5ish)

(you can preview the finished stuff here: http://jsfiddle.net/delomos/rfRfY/6/embedded/result/ and the code is here, I make notes below: http://jsfiddle.net/delomos/rfRfY/6/) ---


(the HTML)
---------------
<!DOCTYPE>
<html>
<head>
<title>WebDev for NairaLand </title>
</head>

<body>
<div id="header">
<h1>NairaLand Forum ::. programming</h1>
<ul>
<li>Welcome <a href="#">dele.o:</a></li>
<li><a href="#">Edit Profile</a></li>
<li><a href="#">Friends</a></li>
<li><a href="#">Updated Topics</a></li>
<li><a href="#">Logout</a></li>
</ul>

<form action="#">
<input type="text" placeholder="that Lagos Boy for life...." data-bind="value: lagos"/> <--- an HTML5 stuff
<input type="submit" value="wetin u need?"/>
</form>
</div>

</body>
</html>​

(the CSS)
--------------------
#header {
margin: 0 auto;
width: 500px;
background: #f0f0eb;
padding: 10px;
border: 1px solid #000;

-webkit-border-radius: 12px; <-----CSS3 stuff, rounded corners and shadow
-moz-border-radius: 12px;
border-radius: 12px;
-moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box;

-webkit-box-shadow: 0px 0px 7px 0px #000;
-moz-box-shadow: 0px 0px 7px 0px #000;
box-shadow: 0px 0px 7px 0px #000;


}

#header h1 {
font-size: 1.9em;
font-variant: small-caps;
margin-bottom: 3px;
}

#header ul {
margin-bottom: 5px;
}

#header ul li {
display: inline;
margin-right: 10px;
}

#header ul li a {
text-decoration: none;
color: #769776;
}

#header ul li a:hover, ul li a:active {
text-decoration: underline;
}

#header input[type=text]{ <--- more CSS3 stuff
width: 250px;
border-right: 0;
border-left: 0;
border-top: 0;
border-bottom: 2px dotted #000;
background: #f0f0eb;

}

#header input[type=submit]{
margin-top:5px;
border: 1px solid #000;
padding: 2px
}


(the JavaScript/JQuery)
------------------------

$("#header ul li:eq(0)"wink.click(function(e){ <---- attach to that HTML stuff, #heder ul li:eq(2) -- the second li in the DOM
e.preventDefault(); <---- don't let it go to a link
$(this).hide('slow').delay(500).show('slow'); <---- now attach this jQuery 'stuff' to that HTML 'stuff'
$("#header input[type=text]"wink.val($("#header ul li:eq(0)"wink.text()); <----- update the search field
});

$("#header ul li:eq(1)"wink.click(function(e){
e.preventDefault();
$(this).hide('slow').delay(500).show('slow');
$("#header input[type=text]"wink.val($("#header ul li:eq(1)"wink.text());
});


$("#header ul li:eq(2)"wink.click(function(e){
e.preventDefault();
$(this).hide('slow').delay(500).show('slow');
$("#header input[type=text]"wink.val($("#header ul li:eq(2)"wink.text());
});




I didn't finish the code, play with the code @ http://jsfiddle.net/delomos/rfRfY/6/ -- let's Q/A
ProgrammingRe: How Will You Approach This Problem, Logic Needed? by delomos(m): 6:33am On Mar 28, 2012
Depending on the kind of data that is being pulled/pushed -- generally I'd think of a local map-cache (the GMail model)

-- create a pointer of the DB records on a local map (generally this prevents user's from banging the DB all the time), this "validates" its states with the "master" DB, remember, it's just a pointer, so it's relatively cheap.
-- fetch the most recent change 'on-demand' [asynchronously?] (and that kinda solves "having to wait"wink

Actually, I think there is a name for this kind of thing: "publish/subscribe" (but again, it depends on the kind of data we're talking about here)
ProgrammingRe: Perl, Python, Ruby, PHP, Which Is The Best For Web Design And Development? by delomos(m): 6:16am On Mar 28, 2012
@OP: In this day and age, if you're absolutely new to web development, the first question you probably should be asking is what you want to achieve eventually -- if you just want to do it for fun, sure PHP will get you up and running; it's easy to learn but quite hard to do serious stuff with it.

The best thing is, instead of learning bits and pieces, pick up a language (say PHP) and learn a popular framework around it (generally, you learn backwards). Say you pick Drupal, or Wordpress, you can learn how to develop plugins for them or template, which would require you to learn enough PHP to do that or enough CSS/HTML/JS.... Learning from scratch these days is just a pain, learn enough to start with and learn as you go, don't get bugged down with archaic language features.

Some sites that can get you rolling:
http://net.tutsplus.com/
http://learncodethehardway.org/
http://ruby.railstutorial.org/

To name a few.

8figure: I prefer vim cos that's what i use on linus, and I now run linux instance on windows pc, moreover switching to new editor cos I can't seem to figure out how to make it work on my linus instance is not a good idea at all.

So am still waiting ekt_bear
You might like this, http://www.jetbrains.com/ruby/ if you're not a hardcore linux'er, VIM or EMac for Rails dev isn't that productive.
ProgrammingRe: Becoming A Hacker With No Formal Knowledge Of It by delomos(m): 2:10pm On Mar 11, 2012
not a problem: me (at) delewrit.es (dot) com
ProgrammingRe: Becoming A Hacker With No Formal Knowledge Of It by delomos(m): 5:51pm On Mar 10, 2012
I would interpret your "hacker" to mean "programmer", this article will give you an insight: http://www.wikihow.com/Become-a-Programmer

Then you and follow-up with a more detailed question.
ProgrammingRe: In Search Of "that" Software Development Methodology by delomos(op): 3:37pm On Mar 10, 2012
Ghenghis:
I think we're getting to common ground now,
In addition, will I really trust this company with doing any web development for me? I highlighted some serious issue on their on site but in honesty, they're probably still "planning" to get them fixed.

ProgrammingRe: A Way Forward For The Field Of Computer Science In Nigeria by delomos(m): 12:53am On Mar 10, 2012
greenmouse:
,

Read my interview with Vanguard newspapers: http://www.vanguardngr.com/2011/11/ict-skill-acquisition-key-to-career-breakthrough-victor-nwadinobi/.
** Applauds***
ProgrammingRe: In Search Of "that" Software Development Methodology by delomos(op): 12:50am On Mar 10, 2012
Ghenghis:
Hmm, I also know loads of professors. They're great but be careful not to misquote them. I also came across many methodologies during MSc. in the UK (An i believe my lecturers where also profs. , at least i hope).

Read more about water fall, do a little research and draw your own conclusions.
If i were to tell you some stories I've heard about COBOL(in 2012), from some senior engineers in the US, for instance you wont believe it. Always talking about Cobol copy book etc. like all the fortune 500s where using it. Ironically he only recently heard of PHP.

My point: Everyone has their own experiences. You can't simply take someones word for it, no matter how distinguished!
Couldn't agree more!

Let me had mine: and I did mine in the US and there is this particular professor who is really great (had him for Data St/Alg 1 & 2 and Soft. Eng. Arch.) and gets money for grant from some company for research (WHICH really biases is research but that's another story), he swears by Java (and for disclosure, he actually co-authored a book on the language) and thought us that, well, I learnt a few things about Java from him, but his indoctrination is another story -- learn to learn.
ProgrammingRe: In Search Of "that" Software Development Methodology by delomos(op): 9:14pm On Mar 09, 2012
candylips:
I like it though. i use lean practices like kanban, cadence, WIP  and they seem to work to some extent
^^ Never really encountered this in the real world, can you share your experience with it (why do you like it, how is it better than the status quo)?

csharpjava:
, I know professors who say waterfall is used for complex software projects both in commerce and industry. Well if you say you disagree with these professors, then you should know that these professors gets millions from orgainisations to carry out researches for them to implement, so for this reason I have to believe some of the things the say.
^^^ No offense but often Professors live in their heads,

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