₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,128 members, 8,420,486 topics. Date: Thursday, 04 June 2026 at 09:37 PM

Toggle theme

Badthinds's Posts

Nairaland ForumBadthinds's ProfileBadthinds's Posts

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

ProgrammingRe: What Is The Essence Of This "Programmed" Restriction On Nairaland? by badthinds: 8:50am On Jul 29, 2017
If you own a forum yourself, you'll understand. Simple.


Sincerely, badthinds
ProgrammingRe: Kotlin / JAVA For Android Development by badthinds: 8:46am On Jul 29, 2017
Well, sometimes I think its for the betterment of their services (eg. IOS apps, Android Apps etc) and other times, I feel its political.

Anyway, sometimes I feel lazy to gulp another language...but I get excited if it becomes compulsory...any android developer, right now should begin to gulp KOTLIN at all cost.

The good is that, I increase my vocabulary!!!

dhtml18, have you thought of dropping a KOTLIN for android tutorial here? e go make sense na. grin
ProgrammingRe: How Can I Create A Forum Script? by badthinds: 9:07pm On Jul 27, 2017
donblade85555:
I know his to code. what am asking is where to drop the codes?
Ah!, I now understand...wait o, I don't understand. Where to drop the code as in Text Editor, Folders or Hosting service?
ProgrammingRe: I Will Officially Quit Visiting This Section by badthinds:

Dear Seun



Don't Mind those saying you should evolve to the socalled web2.0 nonsense (silento, bassdow and co) .

When you do so...same people would start comparing you old good nairaland to ...well...existing so called web2.0 sites.

I've been in the game so long to understand originality.

Adding private messages and all that would make nairaland a social network ...ofcourse, facebook is also a social network...and people would begin to compare and it would be hard for nairaland to compete.

Note:
To those who are complaining...immediately you open nairaland...you'll be greeted with "Nairaland Forum" not "Nairaland Social Network".


Seun, be mindful of what glues people to Nairaland - the slightest deviation from it would ...well -


If need arises to add anything...
1. Following individual comments ( ie, sometimes I open a thread, I don't want to follow it but I become very interested in the future of a specific comment...)
- the word "Follow" would be appended to end of every comments
- those who followed would be notified of peoples replies to that comment in a page called ...maybe / FC / = followed comments

2. I almost support people being able to delete their posts...its may be disastrous...so My advise is: Make it such a way that I can hide my any post I want from my profile...Ie - someone who visits my profile will not see those I hid...but it should, STILL be indexed by search engines.


3. ...Brb


Seun, I have many things to say about this 'features stuff' but I don't know if i'm making sense...I can even give technical support...Ie code, psudocode and algorithms if the need arises.

I may continue later...Lastly, Seun, you know customer satisfaction matters right?...there is a way you can satisfy "social network need" of some without transforming Nairaland. I know of a unique way.



Sincerely, badthinds
ProgrammingRe: How Can I Create A Forum Script? by badthinds: 11:07am On Jul 27, 2017
In addition to what those above me said...here is the summary:


1. Pay someone (If you're too lazy or busy)

2. Copy and paste, as Olyboy16 said

3. Learn how to code.



Sincerely, badthinds.
ProgrammingRe: QUIZ: How Many Lines Of Code Can You Use To Reverse A List by badthinds(op): 10:46am On Jul 27, 2017
bjboss:
i think you av to update the list>>
LOL. I was looking at the code and grinding my teeth...but there was nothing I could hold against it being technically 1 line or not. grin
ProgrammingRe: QUIZ: How Many Lines Of Code Can You Use To Reverse A List by badthinds(op): 10:42am On Jul 27, 2017
adejumoadeoluwa:
reverse = lambda x: x[::-1]


#one liner bitch!
Nice one Motherfcuker! grin
ProgrammingRe: QUIZ: How Many Lines Of Code Can You Use To Reverse A List by badthinds(op): 5:04pm On Jul 09, 2017
Febup:
In that case you will need to add 9 more lines to JavaScript as you cannot run JavaScript and display your output without the lines below. This will also apply to all the other languages as you will have to make some language declarations before you can run your code.

<HTML>
<head>
<script type="text/javascript">
</script>
</head>
<body>
<div> </div>
</body>
</html>
How about the nodeJs console grin

Lol. The examples you gave, eg in the case of javascript, all those html,body stuffs ain't necessary (the <script> is only necessary if its gonna be executed by a browser)...above all, they are not part of Javascript.


But anyway, all those with....eg java codes, same principles would be followed in ranking...so, it is fair.
ProgrammingRe: QUIZ: How Many Lines Of Code Can You Use To Reverse A List by badthinds(op): 8:45am On Jul 09, 2017
Febup:
At op. Java code is 4 lines, you need to ignore the framework.
I know, but what we want is something anyone can copy and run successfully. Its possible to do it without all those inclusion
ProgrammingRe: QUIZ: How Many Lines Of Code Can You Use To Reverse A List by badthinds(op): 6:38pm On Jul 08, 2017
Sync201:
#python just 1lines
L=['a','b','c','d'] ; print(L[::-1])


<<<Output>>>
['d','c','b','a']
grin grin grin

Lol. If you read the first post...after semicolon...like the one you used, its a line++
ProgrammingRe: Login Username From One Table And Password From Table 2 by badthinds: 11:43am On Jul 07, 2017
I think I understand you.

You've stored usernames in one table and password in another table.

But wait

The logic is like this...I enter a room and tell them my name. I leave the room and go to the password room to tell them my password.

Now, for password to work well, the username and password should ideally be in a table ie in different rows. So if username is valid, the corresponding password row is checked.

But

In your case, if username is valid in one row...you then go to another table...what of if I just put someone else's password? Would I be authenticated?

I suggest you keep them in a table. It goes against some ideal data structure principles sef.

But anyway, one must'nt do the ideal, so if its possible and secure, guys would soon let you know.

###
But wait oo, who's the most active female programmer here on Nairaland ? Any female prog. Sef?
###


Sincerely, badthinds
ProgrammingRe: Hacking by badthinds: 10:37pm On Jul 06, 2017
One question for you. Who / what do you think made the person who is to teach you a hacker?

If you know how to build a plane, you'll definitely know where to attack the plane from.

Anyway ...I recommend this thread https://www.nairaland.com/3902766/want-learn-ethical-hacking#58165306
ProgrammingRe: Habits You Should Develop As A Programmer! by badthinds: 10:25pm On Jul 06, 2017
The first day I saw a computer program...I felt something...like First Love !!! grin

Since I was born...I've never liked football, despite the 'yabbing' my friends and siblings chuk me. I can't even mention 4 players in ManU (I'll try to catch up).

I can't play football games, but I play chess alot.

But

Doing things programmers seldom do will make you unique and stand out! So DONT limit yourself.
CrimeRe: Woman Strips Her Neighbour During Public Fight In Front Of Their Family. Photos by badthinds: 8:06pm On Jul 06, 2017
Akalia:
shame on you pervert
I smell hypocrites here.
Kondomatic, no mind this guy, why did he enter this thread if he doesnt wanna see boobbs...or women fighting is now a new thinghuh
ProgrammingRe: QUIZ: How Many Lines Of Code Can You Use To Reverse A List by badthinds(op): 2:05pm On Jul 06, 2017
Febup:
3 Lines with C#
List<int> yourList = new List<int>() {1,2,3,4,5}; yourList.Reverse(); yourList.ForEach(items => Console.Write(items));
Clean code, but you used inbuilt ".Reverse()". Not allowed.
ProgrammingRe: You Have A New GF/BF. Code Down You Rules/principles For Him Or Her. by badthinds(op): 9:13am On Jul 06, 2017
logicalhumour:
Lol.
Anyway,
  //some global variables first
  var fu*kups
  var goods
  var fu*ckups_stack
  var goods_stack
class whatNext: func breakup() reletionship.end func reward() //buy moinmoin for her func forgive(/ //hmmm...complex
func check(score): if action is good: goods+= score WhatNext.reward() if action is bad: f*ckups += score //balance if goods > 9: goods_stack+=1 goods = 0 if fu*kups > 9: fu*kups_stack +=1 fu*kups = 0
if fu*kup_stack > 3: WhatNext.breakup
Lol. Fair enough sha...but from time to time, clear the fuckup stack na grin
ProgrammingYou Have A New GF/BF. Code Down You Rules/principles For Him Or Her. by badthinds(op): 8:38am On Jul 06, 2017
Well, todays excercise is just as the topic says. You are just to simulate how your relationship will work. Just for fun.
Psudo codes are accepted.
Guys and Ladies, please show a little kindness in your AI ooo. LOL grin

Oya.
ProgrammingRe: C++ Programming Quiz by badthinds: 10:45pm On Jul 05, 2017
Done. Do you need it? Be sincere. grin
Sincerely, badthinds
ProgrammingRe: Don't Make The Mistake I Made About Programming by badthinds: 10:37pm On Jul 05, 2017
Who is that person discouraging the use of books there huh

Well, maybe individual differences...but if a video was to give me what a good book will give, the size would be just too large.

There is always a difference (huge intellectual difference) between the video guys and the book guys.
ProgrammingRe: I Want To Learn Ethical Hacking by badthinds: 10:22pm On Jul 05, 2017
Those days I used to think I could actually "learn" hacking. (I didn't say you can't).

I paused my quest for be-a-hacker ...I began to do ordinary learning.

The easiest way to be a "guru" in mathematics is to study and understand the subject very well.

What you want today shall come when you'll not even notice it did. Just keep learning and solving real problems.

Sincerely, badthinds
ProgrammingRe: Php Vs Python by badthinds: 10:11pm On Jul 05, 2017
olamil34:
to see the true power of python check out my site www.quickfinda.com
Nice site. But turn off DEBUG in your settings oo grin
ProgrammingRe: QUIZ: How Many Lines Of Code Can You Use To Reverse A List by badthinds(op): 9:57pm On Jul 05, 2017
webdeveloperqx:
one single line in python

print range(5,-1, -1)
Nice one...but your code didn't show clearly what you reversed. Ie. Where is the reversed one?
ProgrammingRe: Php Vs Python by badthinds: 7:38pm On Jun 07, 2017
abula112:
php is the most widely used web language, its only used for web , but python is a general lang like java.
For me i will go for php, because python is not widely used for web app in production, most host does not support python.
But python has more application than php
Well, individual differences. But I think I can use DJango (Python) and the likes to create better webapps
ProgrammingRe: Php Vs Python by badthinds: 7:35pm On Jun 07, 2017
kelrob:
thank you.
UWC
ProgrammingRe: QUIZ: How Many Lines Of Code Can You Use To Reverse A List by badthinds(op): 7:23pm On Jun 07, 2017
Kodejuice in Javascript
2 lines
ProgrammingRe: QUIZ: How Many Lines Of Code Can You Use To Reverse A List by badthinds(op): 7:14pm On Jun 07, 2017
Kodejuice:
JavaScript


// 2 Lines

1. let list = [1, 2, 3];
2. for (var d=0, rev=[];d<list.length;d++)
rev[rev.length] = list[list.length - d - 1];

console.log(rev);

---------------------

// 1 Line smiley

1. var list=[1, 2, 3],
rev = list.reduce((x, y, i)=>x.concat(list[list.length - i - 1]), []);

console.log(rev);

I know this may lead to arguments but I count the "console.log" line (there are ways you can do it in less lines

Anyway. 1st in Javascript with a clever code. grin
EducationRe: Nigerian Defence Academy Admission Processes..........68-76RC by badthinds: 1:30am On Jun 07, 2017
ricoric:
1. Yes,not only getting angry but also feeling sad 2. I forgive so easily ones they apologize 3. Yes,my friends that are social always ignore me when they are free with ladies and other friends of theirs,I ' m always alone and I feel so depressed!
Look, it wouldn't matter how smart you are (when facing the board)...and If they find you too shy or feverish while speaking...

Look, this is how to begin.

1. Begin to look people (girls) in the eyes, even while speaking. Don't bother trying it out with boys yet. It may become awkward grin

- When you look at a girl in the eyes..especially a pretty one it feels good (especially when she locks it with you)
- You strengthen your courage
- You may be surprised the on the long run, you make her shy and submissive (some)
- From the start, some girls who know the techniques more than you do, would win and humble you but...They like it!!!


Infant, when I started this long time ago. Girls began liking me so much. (not that I do it awkwardly but moderately ie I do it when necessary ...they'll feel your smart!.
Infant, when

2. Next, try boys out.

3. Mostly, I don't do it with my family elders. It seem disrespectful to me.
But with girls and ladies, women outside, when I look them in the eye, I smile a bit...most, if not all, smiled back and became interested....you know. I repeat. I don't do it awkwardly ...I know when to look or look away .

4. When you want to start. Do it only when they're speaking to you. Not you to them....till you become good in it....

- You'll become good speaking in public etc
- Try all these out before facing AFSB (I you are selected)

69rc Ladies and gentle men. Forgive me...was just trying to help a brother.
Finally, forgive my typos(if any). I'm using a tiny mobile phone for tonight.
ProgrammingRe: Php Vs Python by badthinds: 1:04am On Jun 07, 2017
Star mouth screwdriver and Flat mouth screwdriver which is better for loosening a screw nut?.


It depends on the kind of nut right ? grin

Python and PHP are screwdrivers.
ProgrammingRe: QUIZ: How Many Lines Of Code Can You Use To Reverse A List by badthinds(op): 12:46am On Jun 07, 2017
TheLordIsGr8:
I don't think you understand python very well.

Python doesn't do all this list declaration thing as in java, c++, fortran.
My code is still in one line which is

print([x[len(x)-1-i] for i in range(len(x))])

I am only spreading it out for ease of understanding.

Also, you won't really consider a print statement part of a code because it does nothing other than show you the result of all that has been done by the main code.
Either way, my code is a one-liner. I can break it down and explain if you'd like to see.
Sir, this is my case with the code...you're one of the smartests here to revise in one line. But in reality, whats the content of x? (do something)

Your code cannot run successfully yet.
Pardon my 'declaration', I only mean "show clearly the origin and content of your list"
ProgrammingRe: QUIZ: How Many Lines Of Code Can You Use To Reverse A List by badthinds(op): 12:43am On Jun 07, 2017
TheLordIsGr8:
I don't think you understand python very well.

Python doesn't do all this list declaration thing as in java, c++, fortran.
My code is still in one line which is

print([x[len(x)-1-i] for i in range(len(x))])

I am only spreading it out for ease of understanding.

Also, you won't really consider a print statement part of a code because it does nothing other than show you the result of all that has been done by the main code.
Either way, my code is a one-liner. I can break it down and explain if you'd like to see.
Sir, this is my case with the code...you're one of the smartest here to revise in one line. But in reality, whats the content of x? (do something)

Your code cannot run successfully yet.
ProgrammingRe: Learnt Web Development, What Next? (web-dev challenge) by badthinds: 10:28pm On Jun 06, 2017
undecided Why do I feel there'll be people silently following this thread (with a cup of coffee in hand) just to pick and overtake Ideas. huh
ProgrammingRe: Guys Check Out This Micro-blogging Website by badthinds: 10:21pm On Jun 06, 2017
Not the first shaa. Many have failed. But I hope you'll stand out. Wish you luck.

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