Sunday, January 22, 2017

How to fix Wireless LAN (WLAN) issue Kali Linux virtualbox (wlan Not Showing)?

Type ifconfig command in Terminal
If wlan0 option is not displayed then follow the below step to fix -

1. Download 'Compact Wireless Driver' from http://linuxwireless.org/download/compat-wireless-2.6/
Select 'compat-wireless-2010-06-26-p.tar.bz2' file and download

2. Navigate to the download folder in Termainal

3. Extract the file with below command
# tar -jxvf compat-wireless-2010-06-26-p.tar.bz2

4. File is extracted in folder name same as file name.

5. Now got to extracted folder
# cd compat-wireless-2010-06-26-p.tar.bz2

6. Run the following command to fix the issue -
# make unload
# make load

7. Verify the wlan (Wireless adaptor) added in kalilinux
# ifconfig
# airmon-ng

Thanks for reading post. Comment/share post.

Saturday, September 17, 2016

[SOLUTION] Content Assistant CTRL+Space Not Working in Eclipse

Recently I faced the issue in Eclipse were my CTRL+Space (Content Assistant) was not working. Everytime I press CTRL+Space eclipse shows nothing. Finally I managed to find the solution by changing the Preferences of my Eclipse editor.

Windows > Preferences > Java > Editor > Advanced. Make sure 'Java Proposals' is checked.


Friday, July 8, 2016

[TIPS] Extract digit or non-digit from String using JAVA

Single line command to extract digit from a String
Eg. text = All (68)

text = text.replaceAll("\\D+", "");

Output - text = 68

Now \D represent the digit character i.e. 68
Also \d represent the non-digit character i.e. All ()
+ represent one or more time

Read CSV from S3

 import csv def count_records(csv_file):     record_count = 0     first_line = None     last_line = None     # Open the CSV file and read it...