Search

Just Another Tech Blog

A mind is like a parachute. It doesn't work if it is not open.

Category

Tech News and Gossip

How to Bypass Adblock Detection on Websites that Bombard You With Ads


Easy One-click Solution to Bypass Ad Block Detection

The easiest way you can bypass ad block detection on a website is by disabling JavaScript using the Site Info option on the browser. Just click on the Site Info icon as shown in the screen shot and disable the JavaScript option.

java-script

Bypass Adblock Using Tamper Monkey Script

If there are more than one website you wish to bypass, than installing anti-adblock killer makes more sense. The UserScript helps you keep your ad-blocker active when you visit a website even when it asks you to disable it. As this is a script, you will have to install Greasemonkey on Firefox or Tampermonkey for Opera or Chrome. Once these add-ons are installed, you will have to download this JS file and add it to the Tampermonkey extension.

Selection_015

Now you do not need to disable the adblocker on any site, instead the JS script will prevent that site’s anti-adblocker script and let you browse the site smoothly.

Happy browsing!!

Source: http://www.guidingtech.com/60376/bypass-ad-block-detection-sites/

Python Robot Framework Install


To install Robot Framework, you need to pre-installed the following items:

  1. Python 2 or 3
  2. Selenium
  3. PIP
  4. PATH setting in Environment Variables

See How to Install Python, PIP, Selenium, Chrome Driver post if you already have not the above things.

Install Robot:

Open CMD as an administrator user.

Type:

pip install robotframework
pip install robotframework-selenium2library

After completion you can start working on the Robot framework.

You can simply create a .txt file and put the following codes to check the Robot framework is working or not:

*** Settings ***
Library     Selenium2Library
Suite Setup     Go to homepage
Suite Teardown  Close All Browsers

*** Variables ***
${HOMEPAGE}     http://mytestsite/wp-admin
${BROWSER}      chrome
${user}         abc@example.com
${pass}         password

*** Test Cases ***
Open Browser To Login Page
    Input Username    abc@example.com
    Input Password    password
    Submit Credentials

*** Keywords ***
Open Browser To Login Page
    Maximize Browser Window
    Open Browser    ${HOMEPAGE}    ${BROWSER}
    Login Page Should Be Open

Go to homepage
    Open Browser    ${HOMEPAGE}     ${BROWSER}

Input Username
    [Arguments]    ${username}
    Input Text    id=user_login    ${username}

Input Password
    [Arguments]    ${password}
    Input Text    id=user_pass    ${password}

Submit Credentials
    Click Button    xpath=//input[contains(@id, 'wp-submit')]

Save this code in a text file like, demo-robot.txt

Now from CMD or terminal type

pybot demo-robot.txt

It will run the script and generate the detail report, log file and other necessary output.

You can also save the file as robot file like, debo-robot.robot

It that case you need to add “C:\Python27\Lib\site-packages\robot” in your Environment Variable.

Now type the following code to run the robot script:

robot demo-robot.robot

Please Note: If you are using any IDE like Pycharm, some notification will appear after installing Robot framework, which will say that there are some plugins for Robot, do you want to install it or not. In that case you should install it in the IDE.

10 Common Bad Habits Of Bloggers


source: 10 Common Bad Habits Of Bloggers.

“Pobody is Nerfect”. This rule applies to bloggers too who work hard daily to explore new things on the web and give new information through their blog. But lots of bloggers do mistakes in their early stage of blogging. It’s hard and rare to accept those mistakes. I want to explore some common bad habits of Bloggers which results in loss of productivity. One should avoid these habits.

Common Bad Habits

CREDIT: FENSTERBME

List of common bad Habits:

Though, I’m writing this post by keeping Bloggers in mind, but some of these bad habits, applies to normal Internet users too. So, you can start working on them and change your habits to be a better person.

1. Social media addiction

Social media is good to bring traffic on blog. But involving too much in social media and forget your original work (generating content) is not good for your blog. Try to avoid too much social media involvement. Remember that content is the king and it is responsible for traffic. Social media is secondary thing.

2. Work from bed

There are many bloggers who work from bed and they stick to this habit. If you work 1 hour then it would not a serious issue but if you are giving 7 to 10 hours daily for your work then it is a serious matter. For those people we already give some tips to  setup office at home for professional blogging.

3. Never proofread articles

I already told you that proofreading article is a best way to find your errors inside the post. Try to read two or three times to find mistakes of your post. Also ensure that don’t start editing your post while writing it.

4. Giving current news

If your blog has some decent traffic then providing breaking news is not incorrect because your post will get a good exposure. But if your blog gets a fever traffic then it is not a good idea to show current news through your blog. Remember, there are several good blogs which are doing this work properly and efficiently.

5. Too much coffee

Coffee is good when you take breaks during your work. But consuming too much coffee (nicotine) is not good for your health and for your work. It will effect your mind and overall productivity.

6. Working in cluttered space

Either you are working from home or you work in office you need to take care of one thing that your work space should be separated from rest of your home. If you are making your bed room as your office then make sure that your room should be spacious, having windows for natural lights and free from any disarrangement.

7. Being non social

My friends always complain that I never find too much time for them. I involve in my work so much that I never found time for any social activities which is actually not good. I am trying to improve my habit. I generally take break from my work (on Sunday) and plan movies and dinner with friends.

8. Working late night

Bloggers love to work late night. Probably this is because in night they found no disturbance. They free to do all their pending work in silence. But I suggest you to work in day time. Try to wake early morning and start working with fresh mind. You don’t need to follow strict 9 to 6 office time but completing all work early in a day would invite some relief to you.

9. Drinking habit

We came up with post Why Bloggers Drink and How to Avoid Drinking in which we discussed about rise of drinking and smoking culture in bloggers. We also give ideas to get rid of this habit.

10. No vacations

Working all the time causes lots of strain inside our brain. It increases stress level and you may lose your interest from your work. Vacation give us opportunity to recharge and regenerate our power. Try to schedule your post in WordPress and fly off somewhere. In this period do not do any work instead of checking important mail and replying to clients.

These are some common bad habits of bloggers. Do you want to add something more in the list? Add them through your valuable comments.

Read more: http://www.shoutmeloud.com/10-common-bad-habits-of-bloggers.html#ixzz2BVtWAZqm
Under Creative Commons License: Attribution No Derivatives

Perform while loop in the Selenium IDE


Below is an example of while loop in selenium IDE:

drupal_test
getEval array=new Array(2);
getEval index=0;
store javascript{array.length} x
gotoIf ${x}>19 target_2
while index<array.length
label target_1
open /drupal-7.14/?q=user/register
randomText id=edit-name
randomEmail id=edit-mail
type id=edit-field-age-und-0-value 24
type id=edit-field-first-name-und-0-value Jack
type id=edit-field-last-name-und-0-value sparrow
type id=edit-field-sex-und-0-value Male
clickAndWait id=edit-submit
waitForText css=div.messages.status Status message Thank you for applying for an account. Your account is currently pending approval by the site administrator.
In the meantime, a welcome message with further instructions has been sent to your e-mail address.
verifyTextPresent Status message Thank you for applying for an account. Your account is currently pending approval by the site administrator.
In the meantime, a welcome message with further instructions has been sent to your e-mail address.
getEval index++;
endWhile
label target_2
echo Either completed or you attempted to create more then 20 user accorunt, are you sure? To continue change the value in line 5.

Customization:

  • In this script I use a limit, for this maximum 19 users can create using this script. One can change the limit easily by customizing line number 4.

Create a free website or blog at WordPress.com.

Up ↑