Details
-
Abouti'm a freelancer
-
SkillsHTML5, CSS3, JavaScript, Python.
-
LocationDhaka, Bangladesh
Joined devRant on 7/16/2019
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
I have a doubt. I work as a freelancer. I always randomly charge my clients. Because I have no idea about other freelancer's pricing or market price. Currently, I'm working on a website that is very similar to DropBox. The only difference between my project and DropBox is the frontend design. I am doing the only backend of that project with python(flask). How much should I charge?5
-
can anyone tell me where I can find sample server log data? I need access log and error log for Nginx, Lighttpd, Apache Tomcat, Caddy, Hiawatha and NodeJS. Do you know any website for this?5
-
I'm trying my first withdraw. I requested at 7/7/2020. Freelancer.com says I'll receive my money on 23-24 July. Today is the 24th of July and now it shows I'll receive money on 9-10 July. But 9-10 July has been gone. Can anybody tell me what is the problem and what's going on?6
-
I did some of the front-end and whole backend. build and manage the SQL + elasticsearch database. After all of this, only 17 lines of mother fu**er code ruined my life. The client is asking for code. And.... And... Can't say anymore.
input {
file {
path => "/home/rsa-key-20200528 /aslogger.log"
type => "java"
start_position => "beginning"
}
}
output {
stdout {
codec => rubydebug
}
elasticsearch {
hosts => ["localhost:9200"]
index => "aslogger"
}
} -
8 rules of freelancing which newbie should know:
Rule 1: never pick up a half done website.
Rule 2: never take a job where they want to "do things themselves". And don't work with fixed prices if you calculate your price on a best case scenario.
Rule 3: don't do content management
Rule 4: don't promise a sales target on their website.
Rule 5: start sending invoices every money and not just at the end of the project.
Rule 6: Put every website on your own webserver and don't release it untill it's paid.
Rule 7: Don't work for free.
Rule 8: Don't work for free.
Credit: Jhon Dear5 -
I hacked Youtube. Here is all source code:
views = 0
if user.launch_youtubebe == True:
while user.internet=="connected" and user.battery != "empty":
user.exit_youtube_permission = "deny"
if user.clicked.on_a_video:
views +=1
play_video()
next=recommend_another_20(on_a_video)
if video.end==True:
play(next)4 -
I didn't care about commenting. Now opened my project after a long time.
Me: What does the white and red lines do?
Why even I wrote this?😕😕😓😭12 -
Is there are anybody who works in Toptal?
How's it's screening process and income for a full stack web developer?4 -
I can't count likes form my database for an specific post. I made a function that will count all the like by "post.id". It shows the like on the web page when I clicked on like button and it disappears when I refresh the browser. but likes are still remaining in the database but it won't appear on the webpage.
Here are the flask code:
def like_count(post_id):
if request.form.get('like') != None:
if (Like.query.filter_by(post_id=post_id).all())==[]:
return 0
else:
return Like.query.filter_by(post_id=post_id).count()
else:
return 0
def dislike_count(post_id):
if request.form.get('dislike') != None:
if (Dislike.query.filter_by(post_id=post_id).all())==[]:
return 0
else:
return Dislike.query.filter_by(post_id=post_id).count()
else:
return 0
Here are the html code:
<!--dislike-->
<form method="POST" action="">
<input name="dislike" value="1" class="input-style" >
<input value="{{post.id}}" name="post_id" class="input-style">
<button class="fas fa-thumbs-down" class="like-button" >
<div class="like-count" >
{{dislike_count(post.id)}}
</div>
</button>
</form>
<!--like-->
<form method="POST" action="" >
<input name="like" value="1" class="input-style" >
<input name="post_id" value="{{post.id}}" class="input-style" >
<button class="fas fa-thumbs-up" class="like-button" >
<div class="like-count" >
{{like_count(post.id)}}
</div>
</button>
</form>8 -
I'm working on a simple Flask project. But when I try to work with the database I got an error called "No module named MySQLdb". I also got error when I try to install "mysql clint" with this command:-pip install mysqlclient. So I searched for the solution of this problem but every time I find someone told to download "MySQL client" from this website:-
https://lfd.uci.edu/~gohlke/...
But the "MySQL client" file is no longer available on that website.
please help me by giving that file or any other way. You can also check my project from here:-
https://drive.google.com/file/d/...
unfortunately, my operating system is Android 6.0
Here is the code:-
from flask import Flask,render_template, request
from flask_sqlalchemy import SQLAlchemy
app= Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = "mysql://localhost/codingthunder/"
db = SQLAlchemy(app)
class Contacts(db.Model):
sno = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(80), nullable=False)
phone_num = db.Column(db.String(14), nullable=False)
mes = db.Column(db.String(120), nullable=False)
date = db.Column(db.String(12), nullable=False)
email = db.Column(db.String(20), nullable=False)
@app.route("/home")
def home():
return render_template("index.html")
@app.route("/about")
def about():
return render_template("about.html")
@app.route("/contact", methods=['GET','POST'])
def contact():
if(request.method=='POST'):
name=request.form.get('name')
email=request.form.get('email')
phone=request.form.get('phone')
message=request.form.get('message')
entry=Contacts(name=name,phone_num=phone,mes=message, date="2019-09-01 12:06:20", email=email)
db.session.add(entry)
db.session.commit()
return render_template("contact.html")
@app.route("/post")
def post():
return render_template("post.html")
app.run(debug=True)3 -
I learned Python3, HTML5, CSS3, JavaScript and Bootstrap 4. I also did some web design project. But I think I need more practice for being a good programmer. Now, I need A platform that will give me some design or programming exercises for practicing. The platform can be any website or android app. I don't looking for something that will say, "design a calendar or make a calculator" or something like that. I'm looking for more specific task. Example for html:- I need all tags and attribute based task. so that I can learn everything properly. something that will say do the array task in JavaScript, do the h1 task in html. I want to see the result of an exercise if I failed in that exercise. So that I can learn from there. I want to make sure that the exercise will cover all topic of that language. so that I can learn everything topic of a language.
IF YOU KNOW ABOUT THAT KIND OF APP OR WEBSITE THEN PLEASE HELP ME. I'M NEW IN PROGRAMMING.15