DonSegmond's Posts
Nairaland Forum › DonSegmond's Profile › DonSegmond's Posts
1 2 3 4 5 6 7 8 9 (of 9 pages)
Why would you want to ship a car part to US for repair? Why not buy a replacement part? By the time you spend money shipping it and shipping it back, you might as well have bought a new part. With that said, what part are you trying to repair? It may be worth it for you to buy a repair manual for your car and the tool kits then buy the little parts to fix the main part, then show the mechanic the repair manual and work with him to fix it yourself. |
delomos:You don't need OOP to use a templating library. I'm not an OOP nuts, I've been programming for almost 20yrs. Before the world went OOP crazy. I started out with Basic, C and assembly language. I've never been a fan of OOP, It's just in the last year that I've noticed that for really huge project it's worth knowing. Sure, you can create a million lines of code straight up procedural style, but boy will you wish to have done it with OOP. The only reason not to embrace OOP is due to the expensive runtime cost, but few people actually write code so time critical today. For very small codes, experiments, no need for OOP. But with that said, PHP template doesn't need to be OOP involved at all. It simply boils down to separating data and code. And the OP sounds like he has his code and data mixed up. |
You need to look at your HTTP access log and see what error it spits out when someone tries to access the site. Using that error, you can troubleshoot. |
oduasolja:You should be ashamed of yourself for making such a sweeping generalization "these igbos", who are "these igbos" that you talk about? The few people that you hear making noise? For everyone of these noise makers, there are ten thousand more who are not talking. Don't generalize a whole bunch of people easily. We that said, don't lack empathy either for what they are going through. If a bunch of yoruba people where getting killed someone, you would hurt. But you know what? You shouldn't hurt because they are yoruba. You should hurt because they are human and no human deserves to be robbed of their life. You should hurt because that is unjust. You can rob a man of his man, and pay him back later, but once you rob someone of his life, you can never undo it. You also rob his or her parents, sisters, brothers, friends, the community and society of the person. There are many citizens of Nigerians who have been robbed of their lives over the years, from all tribes. We must fight for human life, it is the number one human right. However, just because you feel that the things that are going on doesn't affect you, doesn't mean you should turn a blind eye to it. If we are to be one nigeria, then it is right, fair and just for all to unit. What that means is that if someone is doing wrong, others should speak also speak out against the wrong doer. With that said, I leave you this famous statement about the inactivity of German intellectuals following the Nazi rise to power, First they came for the communists, and I didn't speak out because I wasn't a communist. Then they came for the trade unionists, and I didn't speak out because I wasn't a trade unionist. Then they came for the Jews, and I didn't speak out because I wasn't a Jew. Then they came for me and there was no one left to speak out for me. |
Lest we forget, our people use to practice in cannibalism, less than 150yrs ago. For all of you throwing up. You would too if you found yourself in different times or desperate situations. LOL, but I'm getting off topic, these guys are not cannibals. I've enclosed a letter someone wrote the Thai embassy and their reply explaining the situation. --------------------------------------------------------------------------------------- Hello friends This is Thandokwakhe Sibiya from South Africa. I saw these images and was so disgusted that I decided to write to the Thailand Embassy here in South Africa to demand explaination for what was happening in those pictures. Here is a formal response from one of their Counsellors: --------------------------------------------------------------------------------------- From: Kudatara Nagaviroj [mailto:kudatara@hotmail.com] Sent: 14 February 2011 03:58 PM To: josine@thaiembassy.co.za; tgsibiya@googlemail.com Subject: RE: Thai Cannibalism Dear Mr. Sibiya, First of all, please accept my apologies for intruding your privacy. My name is Kudatara Nagaviroj, Counsellor from the Royal Thai Embassy in Pretoria. I have received a query from you regarding the file called "Metlholo" that has been circulated around and causing fears. The file contains photos of a group of people dissected a corspe in an open field. For your perusal, I would like to send herewith the facts regarding the abovementioned photos as follows: 1) The photos were taken on 13 March 2009 at a cemetary in a southwestern province of Thailand (Prachaub Khiri Khan Province) 2) For people who practice Buddhism in Thailand, there are two religious rituals to honour the deceased. First is to cremate the body. Second is to bury the body. 3) For Buddhists in Thailand, the bury of the deceased is not as widely-practiced as the cremation. The deceased (who are Buddhist) is normally buried when he/she has no relative or the relatives does not have enough financial means to pay for the cremation. 4) Cemetaries in rural provinces Thailand oftentimes ran out of space as a result of too many deceased bodies being buried in limited amount of land. So the Buddhists in Thailand practice a religious tradition called "Lang Pa Cha", which means "the cleaning and tidying of the cemetary", where volunteers will dig up the bodies of the deceased unclaimed by any relative and cremate them to honour their spirits in accordance with the Buddhist religious rites. Such ritual is considered to be a good deed and a merit-making process. 5) At every "Lang Pa Cha" religious rituals, a large number of unclaimed bodies are always found (in the case of the photos taken, 64 unclaimed deceased bodies were found). To cremate the whole body will take a long time. So only the bones of the unclaimed bodies are cremated -- thus the reason for the dissection of the flesh from the bodies as you have seen in the photos. 6) The volunteers in this ritual are mostly the medical staff or emergency response crew who are the first unit to arrive at the accident scenes to save lives (easily identifiable by their blue / white uniforms and id cards). That is why they are used to seeing a deceased body and looked nonchalant in the photos. 7) According to Buddhist tradition, the volunteers who will be allowed to participate in this religious ritual must be strictly on vegetarian diet in order to clean their mind both before and after the ritual. The images of the vounteers cooking and having their lunch are just normal vegetarian lunch and have no connection to the deceased body or the dissected flesh. 9) The circulation of the images is thus an ill-intended attempt that meant to mislead the public into believing that one race of human will commit genocide or inhuman act against another and thus create fear and hatred. 10) The deceased body shown in the photos is of a Thai make with dark complexion (which had been even darker after his death) -- not an African male. I hope this email provides you with a factual information regarding this ill-intended document and photos. I responded to the same enquiry to a large group of Sasol employees. They do understand the fact of the matter and we have now become very good friends. I also do hope that you will give Thailand a chance to show you how beautiful, friendly and diverse the country is. The Embassy will be running a series of activities, festivals and competitions throughout the whole year to enhance the reputation of Thailand in being the World's Best and Unbeatable Value Destination. Please participate if you are interested. Best regards, Kudatara Nagaviroj (Don) Counsellor, The Royal Thai Embassy, Pretoria +27 82 709 7854 |
No. Scanner is a hardware device that is connected to the user's machine. PHP runs on the server side, PHP can't access device on the user's machine. To read a scanner, you need code that can run on the user's machine and will have access to the device. To access a device on any PC you need low level access. Such as assembly or C. then a library might be built for higher level languages such as Python, VB, Java, etc. |
Learning a programming language is not the same as programming. You have to learn how to solve problems (data structures & algorithms) |
Start learning HTML, then CSS, afterwards Javascript then PHP. |
Read up on MVC Start with code igniter first, it's very lightweight, then explore a more extensive frame work like symfony or zend. |
Whatever you are doing, you are doing wrong. Stop and look up how to use a template class. |
Python, PHP & Javascript. |
A programmer should marry the best partner for them. |
Fayimora, I see that you are in the UK. The cost of doing business is much less for you than for someone in Naija. It might not be much for you to buy a virtual server or dedicated server, but for someone in Naija, it does add up. I feel that those in Naija should stick to something like PHP as they can set up a LAMP like platform on their personal computers and develop and test without the need for internet until they are ready to deploy. It's also true that one can also set up a RoR or Django on their personal computer if they decide to run Linux. The truth tho is that when you are working on code, it's best to work on something that you are more likely to get help if you run into road blocks and for programmers in Naija that's PHP. PHP was once ugly, but I don't feel it's ugly anymore. Believe me when I say I know the feeling of how you think it's ugly. 10+yrs ago, I felt like that, and I was all about Python. I still love my Python, but there's so much that's going on with PHP that one must have it in their toolbox. it's easy to work with PHP, but it's not easy to be a great PHP programmer and this is true with all languages. If you learn OOP, and you learn to work with classes, there are lots of great PHP frameworks that can let you write very clean code. MVC is still very much alive, there are beautiful PHP applications out there. Can you say Facebook? Not to mention the countless CMS, and libraries out there. To the original poster. Rest assured, there are those of us here building and deploying software. Our clients are not here, thus the reason you are not hearing much about us. ![]() |
Don't buy a script next time before you have a programmer. He might know of an open source solution that you can use for free hence saving you some more money. It does sound like something that will take a few hours of work or at most a day of work, just to give you a guideline of what it should cost and how much to spend. Best of luck. |
My sister. You don't hate Nigeria, you are just sad, very hurt and experiencing the feeling of helplessness. I can assure you that you are not alone, there are plenty of us who feel the same. I also want to remind you that even tho you feel that you are just one person and can't have an impact, that you can really have an impact. We can all have impacts. The first step is to believe. If you don't believe, then why should anyone else believe? You must believe that there's a better tomorrow, and that it must start today and not tomorrow. Begin by being the change that you wish to see in our country. Don't be a hypocrite, don't lament about how terrible things are then ask for bribe. Be the positive change that you desire so that when others interact with you, they can't help but be touched and improve their ways too. Stay strong. Nigerian go survive. |
Don't listen to Mr Uwazuruike. He's just another old man hoping to exploit a fragile situation for his own glory. Plenty of old men can't wait to send young men who haven't even started their lives to die. Those who fail to study history will repeat it's failures over and over again. You might be young, but you are not stupid. None of us must be a pawn in this chess game that they are trying to play. Rest assured my brothers, we are facing tiring times, but it's no cause for war. Look all over Africa and see how war has destroyed lots of nations. If you have heard about how bad Biafra was, imagine such a damage a hundred folds over. This will happen because there is sufficient and excess weapons in the world today just waiting to be used and to destroy all that has been built. It is far easier to destroy than to rebuild. All those pretty buildings and infrastructures in the south will be destroyed. For what? What will the Igbos destroy in the North? huts? cattle? Okay, human lives? If this war is to go cleanse the Hausa people, then it's no longer a war, but a genocide and any person of sound mind must definitely take a stand against that. Rest assured, it is only a few puppet masters that are pulling the strings to cause these civil unrests. The vast majority of the Hausa people are likewise good people and just like you albeit of a different culture. Extremists are no good, not in the North and definitely not in the South. We must not be like our enemies. Our enemies are not the Hausa people, nor the muslims. Our enemies are simply those who don't want peace in the country, those who want for war, those who call for separation. Those who don't believe in Unity, those who are hypocrites, who will go to their church and mosque then turn around and embrace evil. So I plead and urge you kind folks. My people, we are no longer the leaders of tomorrow, we are the leaders of today, and we must ignore these useless people that wish to lead us into the gutters of wrath instead of into the light. The solution to our problems as a nation is that of dialogue and education. Tis nothing more but ignorance that's keeping our people behind. The more educated people are, they more they will resolve to have peace. Say no to war. If you think it's pretty, look at Iraq, look at Afghanistan, look at what's going on in Syria today. They would have been better off finding another route to get to a peaceful future than war. Peace |
KnowAll:It is true that the thought of killing is different from the act of killing. But it's not the case that his crime was that of a thought crime. He actually attempted to kill, but he failed due to his inexperience and inadequate planning. He didn't try to kill one person, but multitude. Even if he was charged with first degree attempted murder, he would easily face 10yrs. Now when you take in per count for each passenger on that plane then you see he it will add up just as much as a life sentence. Take into his account of not being repentant for what he has done, and you will see he deserves no mercy and absolutely no parole. Life in sentence without the possibility of parole is a present for him. He deserves death, but then again, it's arguable that would be an easy escape too. He needs to spend the rest of his miserable life behind bars and hopefully he will find enlightenment and truth, so he can have salvation when he meets his maker. |
dominique, thanks! |
I don't see the option, thanks. |
if I wanted to send a private message to someone else, how would I do that? I don't see the options. Thanks. |
thats cool.i'm curious, do u program for a living? if you do, do you program full time?if you don't program for a living, do you program for fun or to advance hacker culture i.e improve somethings (maybe go on to be a wealthy software giant kinda thing).LOL@read economics by mistake. I wish I had studied economics in school! I don't program for a living, I haven't programmed much for fun either, and the hacker culture is dead in my opinion. The only serious project I want to tackle is true AI and that's because no one else is doing, partially motivated by the challenge, the fun and the wealth. Knowing how to write efficient algorithms comes with learning algorithms, if you don't study them, you will never learn some of them or figure them out. Get a book on data structures and algorithms. The cool thing about lisp tho is that it provides alot of those algorithms and data structures to you, so you don't have to reimplement them, you have resizeable arrays, lists, vectores, it's easy to implement queues and a stack, built in hashtables, sort, search. So Common Lisp does a lot for you so you don't have to be a pro. |
Learn python, don't bother much with perl. ![]() Yeah, there are tools that allows one to use common lisp to develop web application, but I personally wouldn't for now. I have done my web applications in python and php, and I will probably stick to that until I'm much comfortable. If I really need something complex, then I can code it in Lisp and have my python or php code call it. I'm currently working on a php webapp. Yesterday, I needed to generate a bunch of javascript code from some data around 300 lines. I did it with 18 lines of lisp code. :-) |
yeah, MIT Scheme is probably keeping to standards. Yeah, I have been strictly common lisp, this is the first time I'm installing and playing with scheme. But I really want to read through that book "Structures and Interpreations of Computer Programs" so I will probably learn scheme while reading it, but I probably wouldn't use it. |
Home is where the heart is at. Home is where you make it. I'm in the US and this is my home. I love it here, If I don't ever go back to Naija, I really wouldn't give a F! A few things need to be correct before I can make Naija home. decent roads, safety, constant supply of clean water, constant supply of electric, then internet connection. That's it, some people are managing, good for them, I don't want to manage. Some people are going to say, come back and implement the change, I'm not a politician or have any interests in politics or working on things like that. Yup, Naija is my roots, but it's not my home anymore! |
Your problem more than anything else is not that of getting the concepts and idea, but that of making simple mistakes and then not debugging. For cond you had the [ and ] as tags eg [(< n 3) n], I changed those to ( and ) then you defined calc as (define (calc counter n1 n2 n3) which means, it takes 4 argument, in the one without lexical scope it took 5 since it had to read n. however when you called, you kept passing it n as well, 5 arguments. (calc n (+ counter 1) (step-up n1 n2 n3) n1 n2))) and ((> n 5) (calc n 5 25 11 4)) so I took out that extra n and it worked. guile> (define (func-n n) (define (step-up n1 n2 n3) (+ n1 (* 2 n2) (* 3 n3))) (define (calc counter n1 n2 n3) (if (= n (+ counter 1)) (step-up n1 n2 n3) (calc (+ counter 1) (step-up n1 n2 n3) n1 n2))) (cond ((< n 3) n) ((= n 3) 4) ((= n 4) 11) ((= n 5) 25) ((> n 5) (calc 5 25 11 4)))) guile> (func-n 6) 59 guile> (func-n 7) 142 guile> (func-n 10) 1892 guile> (func-n 20) 10771211 perhaps the scheme I'm using is giving a much better description of error? In which case, I will suggest you download 2 more different type of scheme interpreters. and run your code on them. here is an example of the message I got, after fixing the [ and ] in the cond guile> (func-n 6) Backtrace: In standard input: 34: 0* [func-n 6] In unknown file: ?: 1 (letrec ((step-up #) (calc #)) (cond (# n) (# 4) (# 11) , )) In standard input: , 29: 2 [calc 6 5 25 11 4] standard input:29:14: In procedure calc in expression (calc n 5 , ): standard input:29:14: Wrong number of arguments to #<procedure calc (counter n1 n2 n3) It correctly points out that the error is at line 14, then it shows me that it's calling calc with 6 5 25 11 4 (five arguments), then it tells me wrong number of arguments to the calc procedure which is defined with just 4 arguments (counter n1 n2 n3). So you have the right ideas, it's just silly mistakes and seeing them then debugging em. :-) |
tundebabzy:hmm for some reason, I'm not seeing this topic in the mainthread, I had to look at your last post to see it. I wonder if it's an issue with nairaland, |
Can you post your version making use of lexical scope? |
thanks man, another friend just gave me the solution too, same exact as yours. thanks again. |
I don't do scheme, but common lisp, so I just intalled guile, but when I run it, I get error on (square) is (square) defined in your implementation? also, (average), does your scheme implementation provide those? (expt) works for me so to square 3 (expt 3 2) so i changed square to expt and i implemented my own average and it works. So you have it right, the code really works without modification if you have average and square. guile> (define (sqrt x) (define (good-enough? guess) (< (abs (- (expt guess 2) x)) 0.001)) (define (average num1 num2) (/ (+ num1 num2) 2)) (define (improve guess) (average guess (/ x guess))) (define (sqrt-iter guess) (if (good-enough? guess) guess (sqrt-iter (improve guess)))) (sqrt-iter 1.0)) guile> (sqrt 81) 9.00001129879022 |
I'm one helluva programmer but suck at design. I can get around my way HTML/CSS but don't have mastery thus the reason I ask for your help. ![]()
When it renders it renders like Abc Foo Bar Feh _________________________________________ Xyz Woo where _ is space now this is fine, but if we shrink the width of the browser, then Xyz Woo and Bar Feh overlay each other. Where what I will like is something like Abc Foo Bar Feh ______ Xyz Woo Google does this with their menu Web, Images, Videos, ______________________________ Search Settings, Sign In Abeg help. :-D |
The images of the vounteers cooking and having their lunch are just normal vegetarian lunch and have no connection to the deceased body or the dissected flesh. 
