Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,155 members, 7,815,024 topics. Date: Thursday, 02 May 2024 at 05:21 AM

Nosagold's Posts

Nairaland Forum / Nosagold's Profile / Nosagold's Posts

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

Programming / Re: Need Someone To Help With My Javascript Code by nosagold(m): 10:50am On May 14, 2020
Iamsheye:
So I've got that code there..
Everything's fine except that when a wrong input(one that is not in the array) is inserted I want it to show what's on line 16 but it doesn't it's just empty

Can someone please help??

There's a big in your code on line 15. You're using the assignment operator (=). Change it to == or just use if (!check)
Programming / Re: Programming!!! by nosagold(m): 10:47am On May 14, 2020
Ausrichie:

Bleep maths bro. To be a good programmer maths is not even part of the requirements, I love programming but i don't even like maths. Except if you want to go into that machine learning crap.

Lol are you sure you're a programmer?
Technology Market / Re: Infinix S4 For Sale - SOLD by nosagold(m): 8:04pm On May 12, 2020
Still available. Phone is barely used. Bought it brand new.
Technology Market / Re: **PHONE SWAP CENTRE**SWAP IT NOW!!! pin:265DA560 or 08033923897 by nosagold(m): 12:44pm On May 12, 2020
tblaze007:


Drop your number bro

09079711776
Technology Market / Re: Infinix S4 For Sale - SOLD by nosagold(m): 10:18pm On May 11, 2020
toniblacman:
30k my best.

Aruos:
I can pay 30k to pick it up

Phone is like new... 35k fixed. It's worth it
Technology Market / Re: Post Your Scrap/dead/faulty Phones For Sale Here by nosagold(m): 8:09pm On May 11, 2020
Lekzey933:
I need iCloud locked iPhone 7

Do you have it (Huawei Nexus 6p)? You quoted me that's why I'm asking.
Technology Market / Re: Infinix S4 For Sale - SOLD by nosagold(m): 7:52pm On May 11, 2020
Righteousman01:
If you will collect 25k. We can meet and deal tomao


Nah bro, price is 35k firm. Thanks though.
Technology Market / Infinix S4 For Sale - SOLD by nosagold(m): 7:04pm On May 11, 2020
[s]Perfectly working infinix S4 with box, charger and pouch. Going for 35k firm. 3Gb ram, 32 Gb storage capacity.

Location: Lagos[/s]

SOLD!!!

Technology Market / Re: **PHONE SWAP CENTRE**SWAP IT NOW!!! pin:265DA560 or 08033923897 by nosagold(m): 6:58pm On May 11, 2020
LegendaryAce:


Location ?
Will you swap with iPhone 6?

Nah bro... Location is Lagos though
Technology Market / Re: **PHONE SWAP CENTRE**SWAP IT NOW!!! pin:265DA560 or 08033923897 by nosagold(m): 6:31pm On May 11, 2020
Perfectly working infinix S4 with box, charger and pouch. Going for 35k firm. 3Gb ram, 32 Gb storage capacity.

Location: Lagos

Technology Market / Re: Post Your Scrap/dead/faulty Phones For Sale Here by nosagold(m): 2:55pm On May 11, 2020
Huawei Nexus 6p needed
Technology Market / Re: Post Your Scrap/dead/faulty Phones For Sale Here by nosagold(m): 6:55pm On May 07, 2020
lumide533:
Im selling this for 20k

Huawei Nexus 6p (Silver)
* Factory Unlocked
* Phone Only
* Crack @ rear light cover(camera and flashlight nt affected)
* Price = 20k

Do you still have this?
Gaming / Re: Wolfenstein 2 - Nintendo Switch Needed (preferably Used) by nosagold(m): 10:28am On May 06, 2020
Anybody?
Music/Radio / Re: Sinach No 1 On Billboard USA For Christian Song by nosagold(m): 9:21am On May 06, 2020
Awol1:
Just here to remind you all that Sinach is from Ebonyi state.

Ebonyi to the world.

Igbo Amaka abeg.

In Christ Jesus, this makes no difference
Gaming / Wolfenstein 2 - Nintendo Switch Needed (preferably Used) by nosagold(m): 11:02am On May 05, 2020
Hey guys, I need Wolfenstein 2 for the Nintendo switch. Location is Lagos.
Gaming / Re: What's Your Take On The New Ps5 Controller? by nosagold(m): 10:47pm On May 03, 2020
CloudKickin:
I think it looks good, I’m still going to buy the ps5 regardless!
A female gamer! Let's be friends �
Video Games And Gadgets For Sale / Re: Nintendo Switch Games For Sale. (soft Copy) by nosagold(m): 11:15pm On Apr 25, 2020
Sholzbankz:
More games available. Call/whatsapp 08171139023

How much to install a game? Note: my switch isn't hacked
Programming / Re: Coding For D Gurus:#challange by nosagold(m): 10:23pm On Apr 11, 2020
Lawren76:



Nice try

It does work. There's a shorter way though but this does work
Programming / Re: Coding For D Gurus:#challange by nosagold(m): 4:13pm On Apr 11, 2020
nosagold:


#assuming each matrix takes the following format
matrix = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9]
]


def transpose_matrix(matrix):
list = []
for row in range(len(matrix)):
ma = []
for item in range(len(matrix[row])):
ma.append(matrix[item][row])
list.append(ma)

return list

def dot_product(matrix, dot):
list = []
for row in range(len(matrix)):
ma = []
for item in range(len(matrix[row])):
ma.append(matrix[row][item] * 2)
list.append(ma)

return list

def create_matrix(rows, columns):
start = 0
list = []
for row in range(rows):
ma = []
for item in range(columns):
start += 1
ma.append(start)
list.append(ma)
return list

sorry about the indentation, somehow nairaland text editor keeps messing with it
Programming / Re: Coding For D Gurus:#challange by nosagold(m): 4:10pm On Apr 11, 2020
Lawren76:
Firstly am not a guru bt if u r then am sure this challange shld be a breeze for you the challange is to write a program to manipulate a matrix it shld be able to do the following to a matrix:
1.Transpose a matrix:
Input: 1 2 3
4 5 6
7 8 9

Output:1 4 7
2 5 8
3 6 9
2. Find the dot product of a matrix:
Input: 1 2 3
4 5 6 *2
7 8 9

Output: 2 4 6
8 10 12
14 16 18
3. Create a Matrix:
Input:4*3
Output: 1 2 3 4
5 6 7 8
9 10 11 12

##################################
This challenge is for those who just love a bit of a challange nd the gurus who i hav been seeing dishing out some nice pice of algo. Not for money or any cash prize just for the joy of CODE
Enjoy
##################################
P.s after 3 days i will post the answer written in python bt it is still an algorithm so just follow it to understand python is kinda like pseude - code
###################################

#assuming each matrix takes the following format
matrix = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9]
]


def transpose_matrix(matrix):
list = []
for row in range(len(matrix)):
ma = []
for item in range(len(matrix[row])):
ma.append(matrix[item][row])
list.append(ma)

return list

def dot_product(matrix, dot):
list = []
for row in range(len(matrix)):
ma = []
for item in range(len(matrix[row])):
ma.append(matrix[row][item] * dot)
list.append(ma)

return list

def create_matrix(rows, columns):
start = 0
list = []
for row in range(rows):
ma = []
for item in range(columns):
start += 1
ma.append(start)
list.append(ma)
return list
Programming / Re: Fizz Buzz by nosagold(m): 1:59pm On Apr 11, 2020
Shepherdd:


FizzBuzz is a simple interview question designed to weed out "programmers" who can't actually program.

The test:
Print every number between 1 and 100, However for numbers that are multiples of 3 print "Fizz" and for numbers that are multiples of five print "Buzz." For numbers that are multiples of both 3 and 5 print "FizzBuzz".

Like this...

Programming / Re: Fizz Buzz by nosagold(m): 1:48pm On Apr 11, 2020
.
Programming / Re: I Want To Start Programming Which Is Best To Start With by nosagold(m): 7:29pm On Apr 06, 2020
arejibadz:

How bout html css and xhtml

You can't really be an efficient JavaScript Developer if you don't have a solid knowledge of HTML and css
Technology Market / Re: Anker Sound Bar For Give Away. FREE. by nosagold(m): 6:37pm On Apr 06, 2020
stupidity:
I posted the sound bar few weeks ago but no body get mind buy am. Right now I’m giving it away for FREE. It’s new and still inside the carton. It cost 110k. It works perfectly but I have got a lot speakers already. No need keeping this when someone else will need it.


But first, you’ll have to work for it.

Tell me 4 correct physical features about me grin

E.g.

short
Black
Ugly
Fat



Let the guessing begin.

Please note. when I ship to your address, you’ll be the one to pay. Though after this Coro craze is over.


I’ll pick the winner and contact you.

Please let’s all respect ourselves. DONT INSULT ME. Just use your sense leave my moniker out of the topic. #Everyone should sit down and no wakaring about please#

More give away after this.

Lol short, black, ugly, fat
Gaming / Re: What Game Are You Currently Playing? by nosagold(m): 12:30pm On Apr 05, 2020
sammyfrosh:
Playing machinarium

Do you have game cartridges or are they installed on your switch? If you do have game cartridges please sell me one

1 Like 2 Shares

Programming / Re: Please Help With Javascript by nosagold(m): 11:11am On Apr 05, 2020
nosagold:


Here's what I did... I created on the HTML side
1. A drop down with the names of the DJs
2. A read-only input field for displaying the votes
3. A button which when clicked, will increment the value of the DJ votes by 1.

On the JavaScript side,
1. I created an object that contains the names of each DJ with the corresponding vote count.

I then added an event listener to the click to vote button that loops through the object and checks if the selected dj value is the same as the object. If it is, then increment it and display it.

I also added an event listener to the drop down for changing the value of the count.

You should use local storage to save the states. Lemme know if you need help with that! Cheers.


Here's the output...
Note: I didn't style it

1 Like

Programming / Re: Please Help With Javascript by nosagold(m): 11:09am On Apr 05, 2020
manando1:
Hy, i'm making a site were i have a page that have a number of dj's and i put a button for everyone to vote. However, i don't know how to count the votes per dj and display votes
Please help

Here's what I did... I created on the HTML side
1. A drop down with the names of the DJs
2. A read-only input field for displaying the votes
3. A button which when clicked, will increment the value of the DJ votes by 1.

On the JavaScript side,
1. I created an object that contains the names of each DJ with the corresponding vote count.

I then added an event listener to the click to vote button that loops through the object and checks if the selected dj value is the same as the object. If it is, then increment it and display it.

I also added an event listener to the drop down for changing the value of the count.

You should use local storage to save the states. Lemme know if you need help with that! Cheers.

1 Like

Gaming / Re: What Game Are You Currently Playing? by nosagold(m): 6:10am On Apr 03, 2020
sammyfrosh:
Going for full sync

What game is that bro?
Technology Market / Re: Post Your Scrap/dead/faulty Phones For Sale Here by nosagold(m): 10:01am On Apr 02, 2020
lumide533:
Im selling this for 20k

Huawei Nexus 6p (Silver)
* Factory Unlocked
* Phone Only
* Crack @ rear light cover(camera and flashlight nt affected)
* Price = 20k

I also have this phone, but mine is unable to read cell coverage... Thinking of getting this one for the parts
Religion / Re: Pastor U. Uden Dennis Arrested Over Sunday Service In Abuja by nosagold(m): 8:18pm On Mar 29, 2020
Okay, maybe what he did was wrong but why do people hate the good God so much?!!! Jesus keeps showing love and we pay Him back with hate... We deserve all the evil that has befallen us!!! Honestly embarassed
Politics / Re: Coronavirus: Lagos Has Broken The Circle Of Transmission - Health Commissioner by nosagold(m): 9:28pm On Mar 14, 2020
APCNig:
USA, Italy, China, Canada, UK, Germany should all swallow their non existing pride and come and beg Nigeria to teach them how to arrest and wipe out diseases. We wiped out Ebola and now Corona. This can't be a coincidence, this s result of proper planning and execution.

We did not do anything, all the glory be to God... As it is written 'He strengtheth the spoiled against the strong, so that the spoiled come against the fortress'...
Religion / Re: Meaning Of Ash Wednesday And Why Anglicans Celebrate It by nosagold(m): 2:31pm On Feb 26, 2020
Matthew 6:16
Moreover when ye fast, be not, as the hypocrites, of a sad
countenance: for they disfigure their faces, that they may appear
unto men to fast. Verily I say unto you, They have their reward.

1 Like

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

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 41
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.