Webmasters › Re: My Wampserver Isnt Working. by spikesC(m): 9:34pm On Apr 17, 2016 |
romme2u: hi boss it has been long i sight u for here, its like u went on break.
thanks for the insight
what u said is absolute truth, all os have their good and terrible part. win 8 has a terrible UX and third party software issues but it is not a problem to professionals (we know how to wiggle our way through even if it requires cmd) though it may be an uphill task for beginners as they may have a hard time getting use to the new style Yeah, Nairaland kind of went stale for me and I've been very busy. Quite true, but then it's Microsoft. We expect the worst from them  |
Webmasters › Re: My Wampserver Isnt Working. by spikesC(m): 10:45pm On Apr 16, 2016 |
romme2u: win 7 is more developer friendly than win 8. i heard a lot of guys had that problem with win8 initially but if fresh install won't work which i doubt, u can consider downgrading to win 7. personally i hate win 8 with passion, it just freaks me out.
Download a fresh wamp online for win8, that should solve ur problems I've been developing with windows 8 for a very long time now and I haven't had any problem that is not fixable. All OS has compatibility problems from time to time. KINGinVALHALA3: Database Administrators in the house, please I need help on my non working WampServer. Whenever I open my wampserver on my system and click on phpMyAdmin, I end up getting an open browser with "403 Forbidden, Forbidden, You don't have permission to access /phpmyadmin/ on this server". I have uninstalled all suspected apps on my laptop, e.g modem apps, Skype, games, etc, and I have also browsed it online for a solution without getting a concrete answer. I will appreciate if anyone here can help me with the solution that I seek for. Thanks as I await worthy responses. If you're still having this problem, download a fresh and latest version of wamp from their website. Download and install all vcredist versions they ask you to (2010 - 2015 x86 and x64 for each) Install wampserver as administrator (i.e right click on installation program and chose Run as Administrator) This fixes most of wamps problems you'll ever encounter |
Travel › Re: Uk Student Visa/tier 4 Pbs - Your Questions Answered Part 3 by spikesC(m): 11:07pm On Mar 25, 2016 |
Luggi007: Im dealing directly with the school. I think the IELTS is part of the requirement for embassy. IELTS is a requirement by universities. It would be very dumb of you to take an English lesson from the same university and take the exam rather than just taking the exam right now. Unless ofcourse you're not proficient in English, which a two months course still won't help you with it |
Travel › Re: Uk Student Visa/tier 4 Pbs - Your Questions Answered Part 3 by spikesC(m): 5:22pm On Mar 08, 2016 |
justwise: Anybody that uses an agent for AR or visa application is not fit to study in the UK  |
Webmasters › Re: Why Facebook,google,youtube Are Not Paying Taxes In Nigeria? by spikesC(m): 2:49pm On Mar 04, 2016 |
They do not have companies in Nigeria but do in those countries. |
Programming › Re: Who Else Does Copypasting? by spikesC(m): 3:27pm On Feb 16, 2016 |
Nmeri17: spikesc alt account  See me see trouble  That's not me ooo  Regardless, I believe this is all a misunderstanding. Every one copies a piece of code, the questions is, do you understand what that code does? Can you modify that code to suite your needs? And did you reference if it's required? |
Travel › Re: Nigerian Students In The Uk How Do You Survive? by spikesC(m): 12:22am On Feb 02, 2016 |
adaigbo99: Pls what's the minimum requirement of maintaince fees for someone that is going for a 3 months short course in the UK? If inside london: 3 * £1,265 Outside london: 3 * £1,015 |
Programming › Re: HELP: I Need WYSIWYG INTEGRATED INTO A CMS by spikesC(m): 3:13pm On Jan 27, 2016 |
cyan2008: Thanks so much for the reply. What i did was to submited the formatted text in mysql database, create Master page which displays a link such that when someone clicks the link, the entire record is printed in the Detail page.
Database ------> Master Page.php(contains links to be clicked) ------->Detail page.php (displays links to be clicked).
It put relevant css/style in Detail page.php so that it formats the text as it is echoed on the page. It has not worked yet.
Any more practical help is much appreciated. Thanks. A code snippet would do. Use pastebin Regardless, view the row in phpmyadmin and see if the full html is saved in the database. That would help you in debugging (to know if your problem is stripping tags before save or stripping tags before display |
Programming › Re: HELP: I Need WYSIWYG INTEGRATED INTO A CMS by spikesC(m): 6:35pm On Jan 26, 2016 |
I use TinyMCE and it works just fine. Maybe you're encoding the html output (as you should for XSS attacks) |
Programming › Re: Experienced Programming Opportunities Available Abroad!! by spikesC(m): 4:13am On Jan 25, 2016 |
Orioner: ... Just to clarify...Your monthly salary for a developer in Belgium is $1000? |
Programming › Re: Dhtmlconsole - A Google Chrome Plugin For Sending Real-time From Server by spikesC(m): 10:41am On Jan 21, 2016 |
dhtml18: Keep in mind that my console is not limited to PHP - but to any server language that can create http headers (which is like everything).
So in essense, if you create a header called 'X-DHTML-CONSOLE-MSG' and the value is 'alert:Hello World' then the console will execute alert('Hello World'); instantaneously! Yes, I understand that. My question is, can the value of that header be any javascript code or the plugin executes only the few you select, like the alert |
Programming › Re: Dhtmlconsole - A Google Chrome Plugin For Sending Real-time From Server by spikesC(m): 5:40pm On Jan 20, 2016 |
Can you send arbitrary JS codes to be run (just like your alert) or it has its own syntax |
Programming › Re: Can I Create .php File Using "Fopen" Function. by spikesC(m): 9:22am On Jan 18, 2016 |
Kensharval: Hello, please is there a way or function used to create .php file. Can you explain a bit more what you want to do. .php file is like any normal text file, just CHMOD correctly if your server demands |
Programming › Re: How Facebook Manages It Users Database by spikesC(m): 3:36pm On Jan 17, 2016 |
sinequanon:
You were the one arguing that "NoSQL is not the answer". I think you have lost track of the point.
I was saying WHY NoSQL is useful. It is because it is better suited to TEMPORARY inconsistency and loss of referential integrity.
Referential integrity does not require any joins. You are confusing two concepts.
You are missing the point. Stored procedures were not intended to maintain referential integrity of data distributed across boxes.
That is why I was saying that NoSQL is a better solution.
I don't know why you are arguing. Some systems lend themselves easily to distributive systems. My point is that distributing other systems is intractable. I once worked on a migration project where they discovered that they data could not be decoupled. They nearly decided to can the project, which had already cost 10 million dollars. We really had to jump through hoops to migrate the data, and it was a good job that the data was only temporarily distributed for a few months, while it was being migrated. We were probably misunderstanding each other, but i get where you're coming from now. I was giving my opinion on how mysql can be performance-tuned, while you're providing a different solution, being the use of NoSql DBs. My bad though  |
Programming › Re: How Facebook Manages It Users Database by spikesC(m): 1:38am On Jan 17, 2016 |
sinequanon: Referential integrity cannot be maintained in the code base.
Stored procedures would be very clumsy and inefficient, even if you could access data on another server with your stored procedure.
Data denormalization is a design choice, but it is wouldn't help solve the distribution problem of some systems. You realize that not all databases are RDBMS. How do you maintain references with NoSql databases or document based databases? Facebook in particular uses hive for some backend data warehousing tasks. It's sql like database which is based on hadoop. There's literally no data-based referential integrity. You have to maintain that in your code. Even RDBMS databases are decoupled just to maintain reliability and performance (everyone knows JOINS are very costly). Stored procedures are inefficient, yes, but it has always been used to maintain data integrity right from time when we didn't have foreign keys. Database developers write the codes and give the application developers the api. Super simple stuff. Ofcourse it wouldn't solve every problem but it's a start in the right way if your system permits. And it can get you a huge increase in performance (this article can help explain: https://msdn.microsoft.com/en-us/library/cc505841.aspx or search 'solving database problems with denormalization') |
Programming › Re: How Facebook Manages It Users Database by spikesC(m): 12:59pm On Jan 16, 2016 |
sinequanon: It is not that simple. For some systems, referential integrity needs to be maintained, and you cannot denormalize the bulk of the data. I never said it's all simple. Referential integrity can be maintained in the codebase or even with stored procedures. Data normalization is a design choice |
Webmasters › Re: Intergrate Quick Teller To My Website by spikesC(m): 11:22am On Jan 16, 2016 |
9jawebdev: He needs to develop a REST api?
HE WANTS TO INTEGRATE QUICKTERLLER bro, quickteller ALREADY HAS A RESTFUL API, so why will he WANT to create ANOTHER api?
You can only CONSUME the quickterller API THAT EXISTS ALREADY.
I do lots of integrations of api, so i know what am saying or doing bro.
i have integrated interwsitch web pay in many website, integrated airvend api, mobifin api too and others. i speak from how i do it.
if you need to create a RESTUFL API, the procedure are different. for that take a look at PHP SLIM FRAMEWORK. 5hyguy: ... Now my issues what i am trying to do is i am required to create an http service that would accept (raw xml requests) , this request would be made because a customer entered his / her unique number at quickteller. then the service i am supposed to create would in return send a response back telling them if the user existed. is there anyone who has gone through such project or integration, any help will be appreciates. Cheers He needs to create his own api for quickteller's webhook. He supplies the url to quickteller, and they call it when customers make requests on his account. |
Programming › Re: How Facebook Manages It Users Database by spikesC(m): 5:19am On Jan 16, 2016 |
enmacmedia: Oracle can manage a lot more than 100 Million user. That's what most big companies use. Facebook still uses Mysql, but not exactly the Mysql we all use. They've done a lot of customization on it, the same way they have using customized php (and called it Hack). Facebook has about 1.4 Billion users not 400 Million. They have multiple servers in different parts of the world, so the load is distributed. Did I answer your question? This is your answer. Mysql is able to handle billions of records and facebook use it for data that the users access. So yes, Mysql powers Facebook per say (though a heavily modified version and well distributed/load balanced) They also use other kinds of databases for different tasks and data. Booyakasha: NoSql. Google it. NoSql is not the answer. It's just a different kind of data storage model. It still needs to be tuned and distributed while your data grows. rushman003: ...what if I want to use MySql and expand it base... It is very possible and practical and most companies do so. You just have to tune, distribute and balance. Another best bet is also to use a cache server in front of the database(s), like memcached. sinequanon: ... A slightly different question concerns database consistency and concurrency. That is where NoSQL comes in. It allows for the database to be distributed on different domains, at the expense of temporary inconsistency. This means that users can log in independently on different domains, and your connection limit scales by the number of such domains. That is my understanding. Actually, any database can be distributed, you just have to denormalize and separate data concerns (example, using different servers for different kinds of data, which are all still used in a single page call) |
Webmasters › Re: Intergrate Quick Teller To My Website by spikesC(m): 5:02am On Jan 16, 2016 |
9jawebdev: you can read my article on www.tutsplus.com.ng for how to consume a web service or integrate it into your website
i do lots of api integration. just concluded integrating a web service for online airtime recharge via xml.
what you are trying to do is consume a web service of quickteller,
1, use php SOAPCLIENT object.
i believe also you have the http url , or a WSDL file, WSDL stands for web service description language , which is the language the api was written .
so in a open a php file, call it xml.php , then place the codes below:
$wsdl = "place_api_url_here";
$client = new SoapClient($wsdl); $methods = $client->__getFunctions();
//the response from the api and list of functions it offers echo '<pre>'; var_dump ($methods); echo '</pre>'; ?>
Then you can start using the methods available , like this
$sample_method = $client->method_name($parameters);
and get response like this:
var_dump($sample_method );
hope this helps,
... No offense, but i don't think you know what you're doing. He needs to develop a REST api. I don't see how SOAP and WSDL came into this |
Programming › Re: Most Used Mysql Database Functions by spikesC(m): 3:48am On Jan 15, 2016 |
JD123: Sorry to say,but mysqli is well outdated .expect its deprecation. It still has its own loopholes. I use PDO ,search that out. It's secured and beyond deprecation.
... Are you sure you know what you're saying? or you mean mysql not mysqliPDO is only good when you might be changing databases in the future, but mysqli is better if you're gonna stick to mysql database. Nevertheless, you should always abstract your database/library codes, this solves the PDO case |
Webmasters › Re: Php/mysql Gurus, Please Help Solve This Problem... by spikesC(m): 4:25pm On Dec 13, 2015 |
DualCore1: Create a second table called "rules" with the following structure
table: rules fields: id, symptoms, sickness
the "id" field is an auto increment field. The "symptoms" field is a varchar field that will hold a json string of all the symptoms making up one sickness, the "sickness" field will hold the name of the sickness.
So, an example of one of the data records in this new table will be: id: 1 symptoms: ["1", "2", "5"] sickness: malaria
You can have as many rulesets as you want like the one above with different set of symptoms and disease.
Now the processing. On the first page, display all the symptoms as you have said with checkboxes. For reference purpose let us name your checkboxes "symptoms[]"
On the form processor, the page that handles the user request and tells the user what sickness they have... it should have this kind of flow:
//get the list of "checked" symptoms from the symptoms[] array that has come in through the form's POST data. //now you have an array of all the checked symptoms, let's call it $user_symptoms //do a database query of your rules table "select * from rules" //traverse through the result of the db query discarding any rulesets that do not have the same amount of checked symptoms first, like this:
foreach(put appropriate code here depending on how you query db){ $db_symptoms = $result['symptoms'] //i am assuming your db query result has been placed into the $result array.
//now you have gotten a json formatted string of symptoms, convert this to an array $symptoms_array = json_decode($db_symptoms, 1);
//up to this point we now have 2 arrays. The array of the checked symptoms ($user_symptoms) and that of the symptoms for each ruleset ($symptoms_array) //next compare both arrays, if both arrays are not the same in length, discard.
if(count($symptoms_array) == count($user_symptoms)){ //both arrays are the same in length, now check to find match the two arrays, they must be exact $match = array_diff($symptoms_array, $user_symptoms)
//if there is a match, the $match will hold an array with no elements if(count($match) == 0){ //you have a match echo "you dey suffer from ".$result['sickness']; } } }
I hope you get the logic, others may have a better logic but do not take the option of deciding the sickness with decision constructs as opposed to creating a "rules" table. If you use decision constructs, for each sickness you want to profile you will need to write a new set if if/elseif/else block. But with my suggested method above, you just write this code once and add new sicknesses to your database without needing to write any new code. Wouldn't this be an overhead? Selecting all the rules and comparing in code? why don't he use the power of RDBMS and do a one to many relationship. Or even when using JSON, filter the results with a WHERE clause. The only problem is, he has to make sure the data is always in a predetermined format (example; symptom IDs must be in ascending order) |
Travel › Re: Uk Student Visa/tier 4 Pbs - Your Questions Answered Part 3 by spikesC(m): 4:33am On Dec 10, 2015 |
To whom it may concern Tier 4 Visa Applications: Increase in Maintenance
The UK Government has increased the maintence requirements for visa applications. Students must now show they have enough funds for the number of extra months of their programme, up to 9 months. The ‘established presence’ rule, which allowed students to show only 2 months of maintenance, has been removed.
Central London Students require: £1265 per month of study up to a maximum of 9 months Others require: £1015 per month of study up to a maximum of 9 months
This must be held in your bank account for a minimum of 28 days, plus any outstanding tuition fees, to make a valid Tier 4 visa application |
Travel › Re: Nigerian Students In The Uk How Do You Survive? by spikesC(m): 4:32am On Dec 10, 2015 |
To whom it may concern Tier 4 Visa Applications: Increase in Maintenance
The UK Government has increased the maintence requirements for visa applications. Students must now show they have enough funds for the number of extra months of their programme, up to 9 months. The ‘established presence’ rule, which allowed students to show only 2 months of maintenance, has been removed.
Central London Students require: £1265 per month of study up to a maximum of 9 months Others require: £1015 per month of study up to a maximum of 9 months
This must be held in your bank account for a minimum of 28 days, plus any outstanding tuition fees, to make a valid Tier 4 visa application |
Travel › Re: Nigerian Students In The Uk How Do You Survive? by spikesC(m): 1:31pm On Nov 17, 2015 |
GeneralShepherd: So because worry359 doesn't like my post I must be childish. Guy abeg swerve this na early morning, make I enjoy my coffee first He is right you know. Coming here to repost this every now and then is very childish and constitutes spamming. You have no experience in USA, Canada nor Australia, so you have no authority to advise people on where to go and study. Sorry to say this but you came to the UK, had your opportunity and failed. Failed woefully you couldn't even accept it and move on with your life. Please, we beg you, the travel section has been up and running even before you thought about travelling abroad. You came here seeking for help just like all of us at some point, so do not destroy it for others. |
Travel › Re: Uk Student Visa/tier 4 Pbs - Your Questions Answered Part 3 by spikesC(m): 4:45pm On Nov 08, 2015 |
juniremix: Hi my good naira lander, can I use 2 bank statements ( savings and current ) both jointed between mum and dad for my application and is there any other documents I need to support the statement? Thanks Yes you can. You need a sponsorship letter from either of them |
Travel › Re: Nigerian Students In The Uk How Do You Survive? by spikesC(m): 2:17pm On Nov 07, 2015 |
jc2xl: Hi my sweethearts, I just got an offer from Conventry University to do an M.Sc. Please what is the accommodation like?? The accommodation fees I'm seeing online 'no be here ooo'. Please is there a better way I can go around it?? Thank you. You can get accommodation off campus |
Travel › Re: Uk Student Visa/tier 4 Pbs - Your Questions Answered Part 3 by spikesC(m): 4:46pm On Oct 27, 2015 |
Lexyp: Good day,please i need help to know the next step i should take on my application,did my submission on 2nd of September and was told will get a feed back in 15 working days,am worried now because is now 5 weeks and 5days and i haven't heard from them and have been to the submission centre it's not there,so i need to know if everything is going on fine,need you advise on what to do,is a visiting visa am applying for. Thanks. You need to contact UKBA immediately. https://www.gov.uk/contact-ukvi-outside-uk |
|
Programming › Re: Do Not Disturb A Programmer by spikesC(m): 11:55pm On Oct 23, 2015 |
|
Travel › Re: Uk Student Visa/tier 4 Pbs - Your Questions Answered Part 3 by spikesC(m): 8:19pm On Oct 19, 2015 |
BarrEgo: Boy! Am I happy that your "blunt"negativity was wrong! Visa granted within 4 days. Lesson: don't be hasty in arriving at negative conclusions. Don't take it personal. Like I said before, am not the one issuing visas. We deal with facts and common sense around here. When people ask for help, we give them 'advice' based on past experiences and UKBA guidelines. I just don't get why you don't understand that. You getting denied does not benefit me in anyway, but rather, I am well overjoyed when someone I help is successful. Congrats on your visa  |
Romance › Re: Annie Teriba, Nigerian Lesbian In Oxford University Resigns After Rape Scandal by spikesC(m): 9:54pm On Oct 16, 2015 |
cao: You do know that animals have actually exhibited homosexual tendencies, right? https://en.wikipedia.org/wiki/List_of_animals_displaying_homosexual_behavior
Plus, since NL likes to remind us on a daily basis about the rapes that have been committed by useless excuses of the human race, rapes usually committed by heterosexual men (unless stated otherwise). Now are those useless excuses of human excreta also classified as animals? Or does their heterosexual-ness still make them prime examples of human beings? Evil is evil, regardless of its sexuality, ethnicity or gender identity. Discussing homosexuality on Nairaland is a waste of time and resources. Most Nigerians, especially here, do not know when to differentiate between religion and common sense driven by education. Heck they don't even know what Human rights are |
Romance › Re: Annie Teriba, Nigerian Lesbian In Oxford University Resigns After Rape Scandal by spikesC(m): 9:51pm On Oct 16, 2015 |
InvertedHammer: / Failure to obtain full consent.
I don't understand.
Full consent vs. partial consent. Who decides?
I understand "no consent"
\ RedCapChief: It took some guts to own up to her actions, even the ones committed years ago.
However, I don't understand this matter of full consent, intermediate and partial consent?
Before you meet the person, you get consent. Before you kiss the person, you get consent. Before groping, you get consent. Before taking off clothes, you get consent. Before getting on the bed, you get consent. Before wearing protection, you get consent. Before penetration, you get consent After the job is done, you get consent
This is what feminism has caused
This is more about having sex with someone you got drunk with in a social environment, and they regret it the next day because they were intoxicated, therefore, they didn't know what they were doing. Also, that you're kissing a girl doesn't mean she wants you to have sex with her. The full consent of a thing came in last year (i believe) after a series of law suites in the UK and US surrounding misunderstanding of affections. I believe it is being pushed now to be made a law. Therefore, you have to ask someone, literally, to have sex with you and they're required to respond, literally, in affirmation. It has nothing to do with feminism but protecting and preventing unintentional rape cases (something only developed countries understand) |