Categories
Bangladesh Mobile Companies

How to Stop Value Added Service in BanglaLink

So what are the BanglaLink Value added services (VASs)? They are of various types of services that you usually don’t need, when you have internet and alternative apps. You can see the current list of VASs here https://www.banglalink.net/en/apps-and-services/vas

Here is the current list of services they offered when I was writing this post:-

  1. Banglalink Emergency Alert (charged 6 taka/ month),
  2. Call Block (charged 30 taka/ month),
  3. Banglalink Amar Tune (charged 30 taka/ month),
  4. Banglalink Priyo Tune (charged 30 taka/ month),
  5. Banglalink SMS News Service (charged about 60 taka/ month),
  6. Banglalink Train Tracking (charged about 120 taka/ month),
  7. Banglanews24 (charged 30 taka/ month) ,
  8. Banglalink Megamind (charged about 60 taka/ month),
  9. Banglalink Mind Care (charged about 60 taka/ month)

If you have accidentally enabled any of these services you turn all of them together by typing STOP ALL and send it to 6888

Categories
Upwork

A job post in upwork that is worst than slavery

Guys I just come across this job post, it’s absolutely insane. He is looking for someone / a team to do a job that is simple enough but tedious to the level that is absolutely unacceptable. He posted a video tutorial where he explained the task by basically going through it. It took him about 2.5 minutes. Which translates to 250,000 Minutes which means 4166.67 hours. And he has posted his budget as only $80. Upwork has a fee of 20% so that means the freelancer will get $64 dollars. That translate to about $0.015/hour!!! This is absolutely crazy man!!!

If one person works about 12 hours a day he/she will basically have to work throughout the year to earn that 64 bucks.

And what is more bizarre that some poor souls are applying for this without doing the math! and some with even lower rates.

I hope upwork brings in policies to control these types of irresponsible job posts.

Categories
Bangladesh Phone

How to stop all promotional sms from Grameen Phone (GP) Free

I was getting sms everyday from grameen phone for the offers I don’t remember using them. So I needed to stop it somehow. There might be more ways to that but probably the easiest and cost free is by chatting with them on their website https://www.grameenphone.com/

Simply click on the chat icon on the right bottom corner of the website and ask them to stop the all annoying promotional sms. They will do it for you instantly and activate DND (Do not Disturb). As simple as that!

Categories
Data Science Kaggle.com

Kaggle changed Kernels to Notebooks

I’m new to Kaggle.com , If you don’t know Kaggle it’s a home for data scientists and engineers to to learn, compete and win huge amount of money making sense / predictions of data. People code with python and R. So when you enter into a competition you can see other people’s code in kernels. So I was looking for it but couldn’t find it, I thought they probably disabled it. No more looking into other people’s code 🙁 . Later I realized it was renamed to Notebooks. Which is probably a better name for it. But kernel sounds better to me.

Before

After

Categories
Fixes WordPress

wordpress “This site is experiencing technical Difficulties”

The Problem

I shifted to new host recently and I didn’t realize a lot of my pages were down and showing this error message. Then gradually I found out that the problem is with my bank category and pages that are under bank category. This are “custom post” considering wordpress term. They were called item in my wordpress theme that I’m using. It’s directory theme from Ait-Themes.

The Fix

The fix was simple, after several correspondence with my new host they said the fixed the problem by increasing MEMORY_LIMIT to 256MB for the websites to work. Just in case you don’t know where MEMORY_LIMIT is it’s in php.ini . But that is not the only place where you can change and they didn’t change from there. Rather they changed it in wp-includes/default-constants.php . I still don’t know why! and how is it different.

Categories
Excel

Excel Formula for CGPA Letter grade to points

I wrote this formula for excel to figure out the grade points when I insert certain letter grade .

Since I study in North South University, I’m following their grading policy.

Numerical ScoresLetter GradeGrade Points (Per Credit)
93 and aboveA Excellent4.0
90 – 92A-3.7
87 – 89B+3.3
83 – 86B Good3.0
80 – 82B-2.7
77 – 79C+2.3
73 – 76C Average2.0
70 – 72C-1.7
67 – 69D+1.3
60 – 66D Poor1.0
Below 60F* Failure0.0
 I** Incomplete0.0
 W** Withdrawal0.0
 R** Retaken0.0

Assuming the following is 3 credit course. I have to put formula in the green bordered cell D7 below.  When I put the letter ‘B’ for example it will multiply 3 (grade point) with 3(credit hours) which resulted in 9.  If it was A, the result would have been 3*4=12. 

=IF(C7=”A”,4B7,IF(C7=”A-“,3.7B7,IF(C7=”B+”,3.3B7, IF(C7=”B”,3B7, IF(C7=”B-“,2.7B7, IF(C7=”C+”,2.3B7, IF(C7=”C”,2B7, IF(C7=”C-“,1.7B7, IF(C7=”D+”,1.3B7, IF(C7=”D”,1B7,0))))))))))

These are just nested if statements. You just need to be careful of those parentheses. 

Categories
Code Python Tricks

Adding item to a list with slice in python

If you have been coding for a while in python you already know you can add an item in a list using

list.append(value)

where list here is a variable that contains list of variables, append is a function and as parameter you will input the value you want to add at the end of the list.

However, you can’t add a value by stating an index number that has not been defined already.

But you can use slice to add that with trick. Look at the screen shot, it’s pretty self explanatory!

 

Categories
Code Python Tutorial

Learning Python (Automate the boring Stuff) Chapter 3 problem’s alternative solution

Number Guessing Game in python!

I was learning python from this wonderful video tutorial and I usually try the problem before the tutor gives the solution. I found out that my solution is better and more full proof than theirs. It’s probably because they are still teaching the concepts and not worried about the details. I thought I could share what I wrote. Let me know if you have better solution and if you find any bug in mine.

You can also learn this from the website

http://automatetheboringstuff.com/chapter3/

#This is guess the number game
import random

print('Hello, What is  your name?')
name = input()
print('well ' + str(name) + ', I am thinking of a number between 1 and 20.')

myGuess = random.randint(1, 20) #between and including 1 & 20


for guessesTaken in range(1, 7):
    print('Take a guess')
    guess = input()
    try:
        if guessesTaken < 6:
            if int(guess)> myGuess:
                print('Your number is too High')
            elif int(guess)< myGuess:
                print('Your number is too low')
            elif int(guess)== myGuess:
                print('You got that right in '+ str(guessesTaken) + ' attemp(s)')
                break
        else:
             print('okay you tried ' + str(guessesTaken) + ' times you failed, it was ' + str(myGuess))
            
    except ValueError:
        print(' You didn\'t enter a number')
    
 
    

 

Categories
Uncategorized

My Samsung phone doesn’t charge. What to do?

As my Samsung Galaxy Grand Prime getting older new problems are popping up. Recently I was struggling to charge my phone. When I plug it in, It was charging and stop charging frequently almost like the twinkling lights. Then I removed my battery and found out that one of the teeth that connects the battery was a bit bent. I fixed that but still the problem didn’t go away. As days pass by I saw my phone was only charging when it’s off. After that I found out if I turn it off it charges and continues to charge even if I turn it on. So after that I continued to simply plug in the charger and hit restart in my phone.

Summary

  1. Connect your phone to your charger
  2. Restart your phone

This fix working for me, I can’t guarantee that it will work with you as well. Let me know if it did or didn’t In the pool below.

Did my charging method worked for you?
Yes
3 Vote
No
1 Vote
Categories
Fixes Tricks Tutorial

How to download big files like full site backup from Cpanel and avoid download interruption

How to download big files like full site backup from Cpanel and avoid download interruption? specially in slow connection.

I have been having this problem for a while now until I finally figured out what was cooking. When you generate full site backup in cpanel it keeps the file in home directory of the site.

Since full backups are usually huge for most sites (in my case it was about 1.3 GB) and I right now have only 1.5 Mbps speed I needed a download manager to make sure it utilizes all my allowed download speed. Browser downloads are usually slow. So downloading the file directly from file manager was not a good option. It was slow and if session ended it breaks everything and doesn’t resume from where it left off.

I downloaded internet file manager and it added an extension in firefox so I could download the file using it. But even now I noticed that it didn’t have resume capabilities and still slow!?

Then it got me thinking, how do we download files from the internet from website using these download managers. These files are in public_html (means under certain domain and with a static link).

I moved the file to public_html and wanted to download using the static link example.com/backup.tar.gz guess what it was not working still!?

Then suddenly I thought there must be some kind of file permission problem. I changed file permission to 0644 (possibly could have worked for 0755 as well) and voila! I was able to download it with a static link like example.com/backup.tar.gz  and with full speed. Download manager software was able to make multiple connections and it had resume capabilities