DualCore1's Posts
Nairaland Forum › DualCore1's Profile › DualCore1's Posts
1 2 3 4 5 6 7 8 ... 20 21 22 23 24 25 26 27 28 (of 371 pages)
You could not cite the original author of this. This piece was written by Abraham Lincoln and you can see a cleaner, well formatted piece of it here: http://www.netyorum.com/bolum/dostluk-sevgi/20030320-10.htm Edited |
ActiveMan: THINKING OF GOING TO INTERWSTICH DIRECTLY JOORThis solves nothing. When you go to Interswitch directly, you meet this problem directly. ...and I don't think Interswitch speaks English, they speak error codes. |
Voguepay please disable the GTPay option until this is resolved. This is infuriating a lot of customers across different sites when they are debited and still get a failed transaction message. This is not your fault but do some damage control. Disable that option or put a message on the transaction details page advising people not to use it as its temporarily down. The people who use Voguepay see Voguepay as the people they are dealing with not GTPay or GTBank. |
moderatorr: Facebook is in PHP Google is in Python. Who do you want to be?I want to keep being me: A web solutions provider. My goal is not to write solutions in this language or that language but to write the best solutions in the language that is best fit for it. |
Make una leave this thing |
sunical: Good quiz by Dual Core but I really don't know the importance of it. Dual Core: This is totally senseless for a real life scenario but we can learn a thing or two about PHP's randomness from this. Dual Core: The aim of the quiz was to create the awareness of creating a seed before using the php random functions. nollyj: It is just a learning process. Doing something I have not thought of before |
Oya take your medal, Nolly J! |
afam4eva: I think such a mod already exists. I came across one sometime back.Do you have any pointers as per search keywords you used when you saw it? I did a hasty search with keywords like "frontpage mod", "featured topics mod" etc but could not pull up any mod. |
emmykk: Senseless did not communicate at all-just tell us u ka do a thing like that and leave ur cöntactSorry I don't speak English too well, I speak PHP and please don't contact me...cant help you. Please I don't create threads with a general appeal, I create threads that will most likely be understood by only webmasters... this thread should not be on the frontpage. I don't want bankers and office clerks making comments, on this. The webmasters who would need it would naturally make their way to the Webmasters section to gerrit. ![]() |
[quote author=Jo.dazzle]9ja hoster is fraud!!!!do not buy anything from that site... nothing!..they stole my 6500 from me..and their packages are fake.they dont have anything other than only reseller.there is no money back guarantee. to be fore warned is to be fore armed[/quote]Bro its still the same you who has been posting this link around here (as the best webhost): http://hostcoal.com/ WHOIS: hostcoal.com =================== Name Servers: ns1.9jahoster.com ns2.9jahoster.com Creation date: 03 Aug 2012 16:33:00 Expiration date: 03 Aug 2013 08:33:00 Maybe they delayed the processing of your order forever but you still got it from them, so where is the "fraud" or you may want to give us more explanation about this. |
^^ As a result of oga's inspiration, I have created this: https://www.nairaland.com/1017004/nairaland-frontpage-mod-smf |
First things first, I am not an SMF enthusiast so I dunno jack about their terminologies and procedures. Problem: Several people have been posting request for a module that will give them something like the Nairaland frontpage on their own forums. Solution: I spent some 2 hours coding a "mod" that does that. This is a very quick solution to this problem so don't expect anything wow. See screenshots below: I will want to install this for anyone who wants it on his/her forum. All I ask for in return is that you don't cry or shout sey dual core don scam you if I scatter ya forum during installation (remember I told you I dunno jack about SMF, I'm just providing a solution to a problem). ...ok ok I wont break your forum... just pulling your legs/hair. Admin Area https://easycaptures.com/fs/uploaded/626/5028128114.png https://easycaptures.com/fs/uploaded/626/9168953956.png Homepage https://easycaptures.com/fs/uploaded/626/3400835846.png Sorry I cannot pack this up into an SMF mod/addon cuz I dunno how to and won't learn. SMF is not my kinda thing. |
nollyj: This is the simple way I can think of but there might be other ways to solve it.This is the best solution. The aim of the quiz was to create the awareness of creating a seed before using the php random functions. The best way to create a seed is by using php's microtime function as the seed as this is a fast changing number, something like: srand((double)microtime() * 1000000) and mt_srand((double)microtime() * 1000000) for rand() and mt_rand() respectively. Thanks all for your input and respect to the guys who posted solutions with the ternary operator. I am glad my life doesn't depend on the ternary operator (yet). |
LoL |
DAvIt0: dual core so yu dont own trudigits ha tot yu b ceoKeep totting ![]() |
sisqology: <?phpNice effort, I haven't run this code but from looking at it I can say this will create 99 lines of the same random number and when I refresh it will create 99 lines of another randomly chosen number. The probability of it being the same number as the first is 1/99 which is 0.01. So this isn't a solution to the quiz. The other example using sessions, thanks for your approach. Any other approaches to this? This na our own olympics. |
I asked for a simple solution but any solution you have to this is fine... we could learn a thing or two from your solution. |
https://easycaptures.com/fs/uploaded/623/9282139322.jpg Beat that and I will beat your new record. ![]() If you are unbeatable then we can just have a thread with pluasible reasons why we think you are on steroids and have passed all of Google's doping tests easily.....and we will trace your lineage to the point where we can see that Angel Hernandez is your distant relative and two developers working at Adobe (Photoshop department) are from your family tree. |
My suggestion: have two tables like so: like_types (like_type, like_id); likes (like_id, foreign_key, member_id) For now, the like_types table will contain four rows with an auto_incremented ID (like_id). In the future you may have other things you may want people to like, for instance you may want people to start liking pictures or videos. You simply add that to the like_types table. The 'foreign_key' in 'likes' table is the primary key of any of the for types of likes from the four tables you have for them. |
For you to enforce normalisation you must be dealing with at least two tables. Normalisation is used to prevent redundancy so in a case like this you can have the following 3 tables. first table: members (member_id, member_name) second table: comments (comment_id, poster_id, comment) third table: likes (comment_id, member_id) That structure above is normalised. This structure below is not normalised first table: members (member_id, member_name) second table: comments (comment_id, member_id, comment, member_name) third table: likes (comment_id, member_id, comment, member_name) The fields in bold are not necessary and will cause an update anomaly when you update the member's name in the member table. This will cause redundancy of information because once that member_name is updated in the members table, the member_name fields in the other tables will not be updated except you intend to update all in the code layer which wont be sensible. |
spikes C: How can u give this kind of quiz by this timeI still don't understand where you are coming from o. Would you like to explain? |
spikes C:Bros are we okay? ![]() |
jarva:Drop your email address. |
Look at the following code: <?php echo rand(1,100); ?> Everytime this code is run, it shows a number randomly chosen between 1 and 100. Now kill the randomness. Add some (simple) stuff to the code above so that anytime the code is run it outputs the very same number chosen between 1 and 100. This is totally senseless for a real life scenario but we can learn a thing or two about PHP's randomness from this. Note: Just add to the code, don't remove ![]() For simplicity I used rand().... the whole thing can also be achieved (even better) with mt_rand(). |
lifestyle |
Create yours here: http://www.imagechef.com/ic/make.jsp?tid=Newspaper+Headline See others here: http://www.imagechef.com/ic/search.jsp?mode=2&tag=newspaper This is a shame to Nairaland and its frontpage system. "Jokes" should not be put on the frontpage without very clear indications that they shouldn't be taken seriously. |
rufaai: @DualCore you ioncubed the source codes.I could send you the source via email if you drop you addy here. I encode all my finished addons cuz if unencoded some people may just make one careless change on the script which may result in a bug and it will kill the whole WHMCS system.... and I will be blamed (naturally) they won't know its the change they made. Bottomline: Even a missing delimiter ( in you addon's syntax will shutdown the whole WHMCS system if the addon is activated. Only way (I know of) to get the system working again is to fix the bug. |
utimatedes: Where did you pick the banner from?Your own banner bin loss? |
Download link added. |
Gmmail: if you use WHMCS, prepare to get hacked.One half of me is developer, the other half isn't a dunce...the other half is a Linux admin and your assertion is redundant. You woulda sounded better if you actually said "if you use the internet prepare against attacks". WHMCS remains the best webhosting client management/billing system this world has known... its a fact we can decide to take or leave...it won't affect their income. rufaai: Good job @DualCoreNot a problem, I will package it up later tonight and put up the download link. lagoshost: Hello Sir,Maybe my point wasn't too clear at the onset, just showcasing a set of custom modules that will make up a new brand of plans to come up on trudigits.com later. However I am going to make the Expense Monitor available here for download later tonight. The other modules will come bundled with the TD plans. |
WHMCS Addon: Expense Monitor I am through with this plugin and its fully tested. A few other features will be considered in the future. Here's a screenshot below. Note all records on it are not real and were added just for tests and all tests were carried out on a freshly installed WHMCS system. https://easycaptures.com/fs/uploaded/614/7346600006.png Download http://bit . ly/Qy8ht7 Remove the spaces between the link, dunno Seun's beef with bit . ly |
1 2 3 4 5 6 7 8 ... 20 21 22 23 24 25 26 27 28 (of 371 pages)






What if i wish to extend it