Programming World👨💻
Відкрити в Telegram
All programming language tutorials,courses and more..! For HTML: @html_web_learn For CSS: @CSS_web_learn For JS: @JavaScript_js_learn For PHP: @learn_php_web For Programming courses @Programmingworld_dev For CEH,Cybersec: @technical_stark
Показати більшеКраїна не вказанаТехнології та додатки34 732
1 412
Підписники
Немає даних24 години
-57 днів
-1330 день
Архів дописів
1 412
If you're 47 or younger, you're a time billionaire.
Are you using that time wisely?
IMPORTANT , READ WISELY
1 billion seconds = 31.7 years
The average human lives about 79 years.
If you're 47 or younger, that means you're a time billionaire.
You likely have 1 billion+ seconds left in your life.
If you're 20, there's a decent chance you're a multi-time billionaire.
But almost NOBODY thinks this way.
Why is that?
It's because our society places more value on being a dollar billionaire.
We severely overvalue the dollar billionaire and undervalue the time billionaire.
This is flawed.
Warren Buffett is worth billions of dollars.
No young person in their right mind would switch lives with him if they had to be in their 90s.
Time billionaire > Dollar billionaire
Time is the most precious asset in the world.Everybody has the same amount of time each day.
You can't buy more of it.
It's the only thing in our lives that we can't reacquire once it's gone.
On average, here's how we spend it:
• Sleeping = 26 years
• Trying to fall asleep = 7 years
• Working = 13 years
• TV = 8.3 years
• Eating = 4.5 years
• Chores = 4.3 years
• Social media = 3 years
• Commuting = 3 years
• Grooming = 1.8 years
• Exercise = 1.3 years
With an average life expectancy of 79 years that leaves us with 6.8 years of free time.
What falls into this bucket?
• Reading
• Falling in love
• Going to concerts
• Holidays/Vacations
• Time with friends/family
• Giving back to the community
Only 8.6% of our lives!
How much of your 6.8 years have you already used up?
What would you do differently with your time if you cut that number in half?
Think about these questions.
Then ask yourself:
"How can I optimize my time in the other buckets?"
Stop the timepass. Work harder
1 412
JavaScript Features critical to understand
https://mega.nz/folder/wQ1lyQab#iJ7pacvWt5oYKFUcBtjz3A/folder/JRcHSCjY
Udemy - Spring boot Microservices
https://mega.nz/folder/z5MghYZQ#OJXC1YdmnRG5xgS_jmkHLA
Udemy - Programming for kids
https://mega.nz/folder/f5NRjKjA#nQqEpOka_VJ7XnCKPxWv7g
Udemy - Visual Studio code
https://mega.nz/folder/lVVH0S5Z#WFhaKyETBuz4tTp9ltzIdg
Udemy - Web development
https://mega.nz/folder/qx5QQILR#ZBaTPewL9wrR_M0QSJZZYg
Udemy - Php
https://mega.nz/folder/208kkKIB#TOyaWtNPs5nLv8ECBBoWqw
Udemy - Angular 8
https://mega.nz/folder/LoIUkArT#4KoPer_i1KZs-uJug8yvqw
Udemy - Learn about python
https://mega.nz/folder/RRFEyIYB#jRVC4FK87WmvtEbgSsSp5g
1 412
Finding Any Ebook Using Index Search (Hidden Trick)
Basically use this in google (ugh, gonna get some hate for saying that ain’t I?)
-inurl:htm -inurl:html intitle:"index of" +("/ebooks"|"/book") +(chm|pdf|zip) +"BookName"
Replace BookName with the title of the ebook, you’ll find FTP servers hosting said file, should get a hit in the first site or two.
EXAMPLE:
-inurl:htm -inurl:html intitle:“index of” +("/ebooks"|"/book") +(chm|pdf|zip) +" *Scary stories* "
You get any format or file by changing ‘‘epub’’ to mobi, pdf, and all other extensions that available for book, See below, replace the * epub * with extension you need.
-inurl:htm -inurl:html intitle:“index of” +("/ebooks"|"/book") +(chm|pdf|zip| *epub* ) +"Scary stories"
#Collected
1 412
Google Just launched a Free DSA Course💥
https://www.udacity.com/course/data-structures-and-algorithms-in-python--ud513
1 412
Expanding Google Summer of Code in 2022
Now it's open for everyone🥳
https://opensource.googleblog.com/2021/11/expanding-google-summer-of-code-in-2022.html?m=1
1 412
Hello people ,
I found an app to earn money without doing anything .
So here I am with this app which will work on Android , Mac os and windows
You can sign up with my referral and get 5$ without any loss on your side . Or you can simply sign up and get nothing ...
It's upon you .
So what is this app ?
-> The name is honeygain .
It basically uses your leftover internet to do things ( everything is legal so no
worries ) and give you credits in return which you can redeem for real money .
You simply have to turn it on once while using your device . It will automatically earn for you .
Isn't it awesome ?
Sign up : https://r.honeygain.me/PAVAN607D1
( and get free 5$ )
If you have more doubts , you can visit their site . It's 100% real and authentic . Also lots of proofs is available on YouTube .
Best wishes😇❤️
1 412
Roadmaps by roadmap.sh
Frontend : https://roadmap.sh/frontend
Backend : https://roadmap.sh/backend
Devops : https://roadmap.sh/devops
Reactjs : https://roadmap.sh/react
Android : https://roadmap.sh/android
Angular : https://roadmap.sh/angular
Python : https://roadmap.sh/python
Golang : https://roadmap.sh/golang
Java : https://roadmap.sh/java
1 412
We thank this person for supporting us a lot and being a part of us
We wish we get his/her support forever.
1 412
💕 May This Diwali Fill Into Our Lives New Hopes For Future And New Dreams For Tomorrow. With Lots Of Love, Wishing You A Very Happy Diwali 2021 💞
1 412
Hey there all, today, in this post,I will explain you a proper way to extract text from a pdf.
Installation
For extraction , we need a python module named ‘pdf2image’. We can install this module by using this command in your terminal.
pip install pdf2image
Import the Module
First, we will import all the packages. You need pdf2image to convert PDF files to ppm image files.
We will also manipulate the paths to join and rename text files, so that we can import the os and sys packages. The following part calls a PIL library and imports the image with pytesseract:
import pdf2image
import os, sys
try:
from PIL import Image
except ImportError:
import Image
import pytesseract
In the next step we have initialize the path of your documents and the counter to be used later.
PATH = 'Enter your path'
#initialize the counter that you will use later in your pdf extraction function
i = 1
Some unrequired files will also be created with this function. So in this step , we will delete these files which are not required.
def delete_ppms():
for file in os.listdir(PATH):
if '.ppm' in file or '.DS_Store' in file:
try:
os.remove(PATH + file)
except FileNotFoundError: pass
Sorting Files
Now will sort the pdf files according to their types.
pdf_files = []
docx_files = []
for f in os.listdir(PATH):
full_name = os.path.join(PATH, f)
if os.path.isfile(full_name):
name = os.path.basename(f)
filename, ext =os.path.splitext(name)
if ext == '.pdf':
pdf_files.append(name)
elif ext == ('.docx'):
docx_files.append(name)
After this piece of code, we can extract text from pdf using pdf_extract function.
Last Step
This print function will help you see which file is currently checked out:
def pdf_extract(file, i):
print("extracting from file:", file)
delete_ppms()
images = pdf2image.convert_from_path(PATH + file, output_folder=PATH)
j = 0
for file in sorted (os.listdir(PATH)):
if '.ppm' in file and 'image' not in file:
os.rename(PATH + file, PATH + 'image' + str(i) + '-' + str(j) + '.ppm')
j += 1
j = 0
f = open(PATH +'result{}.txt'.format(i), 'w')
files = [f for f in os.listdir(PATH) if '.ppm' in f]
for file in sorted(files, key=lambda x: int(x[x.index('-') + 1: x.index('.')])):
temp = pytesseract.image_to_string(Image.open(PATH + file))
f.write(temp)
f.close()
The last step in this project , when you will run the below command,you will go to the directory you will see a text file by the name of result1.txt with all the text extracted from the PDF file.
Code :
for i in range(len(pdf_files)):
pdf_file = pdf_files[i]
pdf_extract(pdf_file, i)
Thats all for today .
Hope this is useful 😇
1 412
⚡️ 10 Ways to Speed Up Your Python Code ⚡️
1. List Comprehensions
numbers = [x**2 for x in range(100000) if x % 2 == 0]
instead of
= []
for x in range(100000):
if x % 2 == 0:
numbers.append(x**2)
2. Use the Built-In Functions
Many of Python’s built-in functions are written in C, which makes them much faster than a pure python solution.
3. Function Calls Are Expensive
Function calls are expensive in Python. While it is often good practice to separate code into functions, there are times where you should be cautious about calling functions from inside of a loop. It is better to iterate inside a function than to iterate and call a function each iteration.
4. Lazy Module Importing
If you want to use the time.sleep() function in your code, you don't necessarily need to import the entire time package. Instead, you can just do from time import sleep and avoid the overhead of loading basically everything.
5. Take Advantage of Numpy
Numpy is a highly optimized library built with C. It is almost always faster to offload complex math to Numpy rather than relying on the Python interpreter.
6. Try Multiprocessing
Multiprocessing can bring large performance increases to a Python script, but it can be difficult to implement properly compared to other methods mentioned in this post.
7. Be Careful with Bulky Libraries
One of the advantages Python has over other programming languages is the rich selection of third-party libraries available to developers. But, what we may not always consider is the size of the library we are using as a dependency, which could actually decrease the performance of your Python code.
8. Avoid Global Variables
Python is slightly faster at retrieving local variables than global ones. It is simply best to avoid global variables when possible.
9. Try Multiple Solutions
Being able to solve a problem in multiple ways is nice. But, there is often a solution that is faster than the rest and sometimes it comes down to just using a different method or data structure.
10. Think About Your Data Structures
Searching a dictionary or set is insanely fast, but lists take time proportional to the length of the list. However, sets and dictionaries do not maintain order. If you care about the order of your data, you can’t make use of dictionaries or sets.
🔗Source
━━━━━━━━━━━━━
Share nd support 🤟😉1 412
How To Grow From Non-Coder to Data Scientist in 6 Months
A complete guide with all required resources
https://towardsdatascience.com/how-to-grow-from-non-coder-to-data-scientist-in-6-months-197f465dfa9f
1 412
Cheatsheet on Quantitative aptitude . So go through it and prepare yourself for the placements and other competitive exams.
1 412
Competitive-Programming in Python 128 Algorithms to develop your Coding Skills
