Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,151,369 members, 7,812,063 topics. Date: Monday, 29 April 2024 at 07:33 AM

Gbolly1151's Posts

Nairaland Forum / Gbolly1151's Profile / Gbolly1151's Posts

(1) (2) (3) (4) (5) (6) (7) (8) ... (10) (11) (12) (13) (14) (15) (16) (of 16 pages)

Programming / Common good python programming practices you should know by gbolly1151(m): 9:04am On Nov 26, 2019
Hello this thread is open to post series of code in python that can less the amount of code written for simplicity in coding and creating your project with less code as possible.

I wish this thread will be clean as possible hope the admin can grant the creator of each post power to screen out spammers
Programming / Re: Guide To Deploy A Frappe Web Application To A Cloud Server Like Digital Ocean, by gbolly1151(m): 1:13pm On Nov 24, 2019
legendsergio:
Hello,

Please I need help, I need a tutorial that can assist me on how get my Frappe Web application running on cloud.

Frappe is a new Python framework that is not so popular and has little community support.

Besides, this is my first time of attempting to deploy an application to cloud.

Please I will appreciate any form of assistance.

You can send a DM to 08054494334 on WhatsApp or reach me on legendsergio@gmail.com

Please this is very important. Thank you.

I dont think digital ocean support such framework for easy deployment.... Else,you need to download the framework manually to the server and do the mannual setup yourself
Programming / Re: How Do I Make An App With Python by gbolly1151(m): 1:05pm On Nov 24, 2019
Vernna:
For some months now I have been learning python and i think I know a little about it now

But all I have always wanted was to make an app with python and I'll be glad if you can really tell me the procedures I'll need to go in other to make an app with python

Thanks allot

You need to learn framework to begin building an user friendly app

1. Mobile app - framework should learn is kivy, support both android and ios
2. Web app - framework should learn is flask or django
3.Desktop app - framework should learn pyQt5 or kivy

1 Like

Programming / Re: Things you need to know as an upcoming programmer and MY CODING DAIRY by gbolly1151(m): 12:15am On Nov 24, 2019
Logical errors are frustrating than syntax error most time
Programming / Re: Coding Looks Cool. by gbolly1151(m): 12:00am On Nov 24, 2019
Lolz....I can't really denied the fact that python is simple because of its easy syntax and a very recommendable programming language for anyone starting the joining as a programmer.

I started with python and it was very easy for me to switch to other high-level programming. With my knowledge in python am able to code in c++, java, JavaScript and solidity

Currently learning how to deploy django on server after learning the framework itself. I have scanned through node.js,angular.js and some other popular js framework and see that, it was what can be learned easily with strong knowledge in JS

Coding is sweet,when you are able to solve many problems as possible and really help the brain especially your thinking faulty. Hoping to start earning form it soon.

2 Likes

Programming / Re: Data Scientist Only by gbolly1151(m): 12:36pm On Nov 22, 2019
saheedniyi22:

for x in range(99) :
if x%3==0 and x%5==0:
print(x)

Good but range(100) cos range(99) will stop at 98

1 Like

Programming / Re: Guide To Deploy A Frappe Web Application To A Cloud Server Like Digital Ocean, by gbolly1151(m): 12:30pm On Nov 22, 2019
Do you have an account with digital ocean because i dont think they offer free service for testing?
Education / Re: Learn How To Trade Cryptocurrencies (most Popular Is Bitcoin) HUOBI GLOBAL by gbolly1151(m): 9:25am On Nov 21, 2019
Yea huobi is good cryto exchange but their are more opportunity on kucoin exchange to earn more profit like lending, staking ,pool staking and kucoin bonus for holding are referring people

You can check them here:

https://www.kucoin.com/?rcode=7K4rKc
Programming / Re: Regular Programming Challenges With The Odd Money To Win by gbolly1151(m): 7:18am On Nov 19, 2019
faucon:

I'm glad you liked it. More to come soon...

But before that, I'll post my own answers with explanations tomorrow.

Looking forward to that
Programming / Re: Regular Programming Challenges With The Odd Money To Win by gbolly1151(m): 8:47pm On Nov 18, 2019
I really learn alot from this challenge let it keep coming @faucon
Programming / Re: Regular Programming Challenges With The Odd Money To Win by gbolly1151(m): 8:42pm On Nov 18, 2019
Congrat @kaylhey20
Programming / Re: Regular Programming Challenges With The Odd Money To Win by gbolly1151(m): 9:06am On Nov 18, 2019
Hmm....loving those questions
Programming / Re: Regular Programming Challenges With The Odd Money To Win by gbolly1151(m): 2:12pm On Nov 17, 2019
Here is my answers,i will be updating them as i will be solving them

I am coding in python

1.

def A_base_B(num):
num[0]=str(num[0])
AbaseB=0
for i in range(len(num[0])):
value=int(num[0][len(num[0])-(i+1)])*(num[1]**i)
AbaseB += value
return AbaseB

if __name__== '__main__':
a=[ '10' , 2 ] # 10 base 2
b=[ '10' , 8 ] # 10 base 8
c=[ '10' , 16 ] # 10 base 16

#collect the base numbers into a list

base=[ a,b,c ]

#result of addition of a,b,c
result=0

for i in base:
r=A_base_B(i)
result += r
print(result)


Output : 26

2. The answer is (a) UNIX timestamp system start with 1,January 1970 , all dates before that will result in negative value


3.

numbers = ' '
for num in range(1,1000):
numbers += str(num)

numbers=list(numbers)

point_count = 0
odd_num = 0

for odd in range(1,len(numbers)):
numbers[odd] = int(numbers[odd])
if numbers [odd] == 1 or numbers[odd]%2 == 1:
if numbers [odd - 1] == odd_num:
point_count += 1
odd_num = numbers [odd]

print(point_count)


Output: 775

4.
I am trying to analyze is this way, the 1st integer number with 1's as prime number in its binary is 3, the 2nd integer is 7

The this code will work for the 1000th integer



def prime(num):
if num > 1:
for i in range(2,num//2):
if (num % i) == 0:
return False
break
else: return True
else: return False

#target is the nth term of prime with 1's in its binary
def n_term(target=1):
binary = '0b'
count = 0
while count < target:
binary += '1'
deci=int(binary,2)
if prime(deci):
count += 1
return deci

print(n_term())



Got into an inifinite loop for valves greater than 8 on my PC

For output of 1st,2nd and 3rd integer The output are 3,7,31 respectively
Programming / Re: Regular Programming Challenges With The Odd Money To Win by gbolly1151(m): 8:04am On Nov 17, 2019
Hope am not too late to the party?
Programming / Re: Help On How To Use Threading.lock() In Python by gbolly1151(m): 7:30am On Nov 17, 2019
stanliwise:

When creating app that run multiple processes(threads). There are chances that two or more threads may access one variable, which may lead to data leakage, to avoid this, you have to synchronize access to such variable.
Meaning you have to lock it and give key to a thread, to maintain linear access.

Thanks so much... Got it,but is process the same as thread?
Programming / Help On How To Use Threading.lock() In Python by gbolly1151(m): 11:21am On Nov 15, 2019
I was trying to get the concept of threading.Lock() on python but can't really figure out how it work with the two method acquire() and release()

Can some explain in details how to use it effectively and when to use?
Religion / Re: Life Puzzle - How Does God Process Prayer Requests? by gbolly1151(m): 1:02pm On Nov 07, 2019
otipoju:
Thats the greatness of God.

In the vision i saw many years back. I saw millions if angels ascending and descending with prayer request and answers to them.

To some the answers were "wait" to some "no" and to some "okay".

My point is The Almighty Jehovah works in collaboration with his holy angels in ad ministering the universe.
How long were the Angels waiting before it reach their turns?
Religion / Life Puzzle - How Does God Process Prayer Requests? by gbolly1151(m): 10:13am On Nov 07, 2019
Am just curious to know....How does God really process billions of prayer request daily?

It really amaze me...let hear your views in the comments box

1 Like

Culture / Life Puzzle - What Is Impossible? by gbolly1151(m): 10:09pm On Nov 05, 2019
Does the word impossible real?
Programming / Re: Python Programmers Hang-out by gbolly1151(m): 9:55pm On Nov 05, 2019
benob:
To learn python programming for starters. What's the best laptop to buy
Specs and brand
Thanks

Core i5
8gb ram
Nairaland / General / Life Puzzle (needed And Responsibility ) by gbolly1151(m): 7:34am On Oct 23, 2019
Do you actually be needed to take responsibility?
Politics / Life Puzzle (episode 1) by gbolly1151(m): 11:33pm On Oct 01, 2019
SUBJECT AND DEFINITIONS
MR.A - neighbor to MR.B
MR.B - neighbor to MR.A

Storyline[/b]
MR.A borrowed money from MR.B which was promised to be returned few days later but promise was failed. 3 weeks later,MR.B ask of the money but the reply was "I always forget please am sorry.I will return your money soon". Few weeks later,MR.B asked again still same reply.

It is obvious that MR.A has the money but didn't want to pay

[b]Question

In other to settle the matter peacefully what should MR.B do?
Crime / Re: Corruption Puzzle by gbolly1151(m): 7:35am On Sep 29, 2019
Meaning to do what is really right
Crime / Corruption Puzzle by gbolly1151(m): 8:10am On Sep 28, 2019
SUBJECT AND THEIR DEFINITION
Mr. A - An employee who has final say on the worker to be employed into a government work

Mr.A1 - Blood brother to Mr.A who graduated with pass from university due to unseriousness

Mr.B - A first class graduate

STORYLINE
Government need to employ only one person,they call for interview in which Mr.A1 and Mr.B apply for the interview and only Mr.B was qualify for the job in the normal settling but the entire family of Mr.A has been disturbing Mr.A that he must give Mr.A1 the job.


In this case what will Mr.A do to be justify?
Programming / Re: Are You Interested In Robotics And Artificial Intelligence? by gbolly1151(m): 3:08pm On Jul 23, 2019
Glad to be here,any group chat for this?
Programming / Re: Python Programmers Hang-out by gbolly1151(m): 2:33pm On Jul 23, 2019
iCode2:
What's the frequency of getting web development job with python/django? Most I see on here are php/laravel.
Well,your client dont care what language you use to development a website in as much it does the job require of it,simple to use,scalable and fast

2 Likes

Programming / Re: Python Programmers Hang-out by gbolly1151(m): 7:43pm On Jul 21, 2019
johnbendie:


Nice, I know a bit of Python. I have done some rough homework with it on and off. What domain are you currently pursuing with Python?

Web development with django
Politics / Re: BREAKING: We Didn’t Transmit Results Electronically – INEC Chair by gbolly1151(m): 6:35pm On Jul 16, 2019
bigdot1759:
see my bloda server is d cheapest tin to hack
Even CIA, FBI or CTU server got hacked

Lolz....Blockchain is a distributed server not centralized
Politics / Re: BREAKING: We Didn’t Transmit Results Electronically – INEC Chair by gbolly1151(m): 5:46pm On Jul 16, 2019
We need Blockchain for election in Nigeria, it is the only server than can never be hack and still be private with the aid of cryptography. Let employ more technology.

(1) (2) (3) (4) (5) (6) (7) (8) ... (10) (11) (12) (13) (14) (15) (16) (of 16 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. 32
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.