Welcome to my Blog

Posted: November 6, 2008 in General

Welcome to my Blog !!

This blog is being maintained as a part of my hobby. I blog usually the problems that i encounter in terms of software or the topics that i studied from various resources that i feel might be useful for others so that other people can get data collected from various resources under one post.

Disclaimer: The content shown in this site is an aggregation from various resources. There is no attempt to do any copyright infringement of any proprietary content or material. I, hereby, solemnly affirm on due notice I  shall immediately remove any material which comes under the preview of copyright laws. I’ll take utmost care to convey to others logos, images, content, material belongs to the said concern from where the congregation of material has been taken.

Suggestions and feedback always welcome!!

http://techbie.wordpress.com
http://www.techbugs.co.nr

mail me @ techbie.wordpress@gmail.com

FaceBook Free TShirt Scam

Posted: September 12, 2011 in General

Facebook scams are getting sneakier and sneakier – with the latest attack using the lure of a free T-shirt celebrating Facebook’s birthday in an attempt to steal the secret backdoor key to your account.

The offer seems attractive enough – a webpage claiming to celebrate Facebook’s 7th birthday, saying that it has over 1.9 million official T-shirts in stock.

The webpage tells you to visit Facebook Mobile, and find on that page the personalised email address that you can use to post status updates or upload photos and videos straight to your profile.

Here’s what the email id can do -

  • The email subject will be used as the caption of your photo or video if your email contains photo or video.
  • The email subject will be used as your updated status if your email contains no photo or video.

Many people are probably unaware that such a thing exists – but every Facebook user has a secret mobile email address they can use for this purpose.

The important thing, of course, is to keep it secret. Because if someone else finds it out, they’ll be able to post status messages to your Facebook page or upload videos and photos to your wall – which your friends will be able to see.

The scammers, unsurprisingly, want your secret mobile email address for Facebook. And so they claim that you have to hand it over to verify you are a legitimate Facebook user in order to get your T-shirt.

If you were hit by this scam then you must refresh your Facebook mobile upload email address – that way the bad guys you just gave it too won’t be able to use it as a secret backdoor into your account.

How to refresh your Facebook Mobile upload email address

1. Visit www.facebook.com/mobile.

2. Click on “find Out More”  under “Upload Via Mobile” Section.

3. Click on “Refresh your upload Email” from window that appears on performing step2.

Google has recently released new feature which allows user to search web using an image as search query. Search By Image lets you begin your search with an image and Google will (try to) tell you what it is and show visually similar images. One thing that Google emphasized is that Search By Image does not use facial recognition.

You can add your image as search query using any of the above options:-

  • you can copy and paste the mage URL.
  • Upload from desktop.
  • Drag and drop images from the desktop.
  • Chrome and Firefox extensions.

 

Here is a Google video below of how Search by Image is supposed to work: www.youtube.com/watch?v=t99BfDnBZcI.

Search By Image is available now at images.google.com or via the “Images” tab in the left-side menu on Google.com

When we watch any video in web browser from sites like Youtube etc, browsers used to keep the video in its cache area. Now retrieving it from browser cache area is not so easy specially in new Firefox version but is not impossible and moreover different browsers have different cache location. With “Video Cache” utility from Nirsoft this is quite easy, it automatically scans all the cache directories from different browsers like Firefox, IE, Opera etc and identifies video/flv files and gives the user option to either play or copy the videos. It allows you to easily copy the cached video files into another folder for playing/watching them in the future. If you have a movie player that is configured to play flv files, it also allows you to play the video directly from your browser’s cache.

Download this utility!

Real numbers are basically actual numbers that exists. That includes rational, irrational, whole, integers, and natural numbers.

Rational numbers are numbers able to be put as a fraction.

Irrational numbers cannot be put as a fraction (ex: 3.141592)

Whole numbers are: 0, 1, 2, 3, 4, 5….
Natural numbers are: 1, 2, 3, 4, 5… (basically 0 is not a natural number)

Integers are numbers that are both positive and negative

ex: -3, -2, -1, 0, 1, 2, 3, 4 (including 0)

For comparing two files on unix, diff utility is often used. In this tutorial I will cover on understanding output generated by diff utility. Unix diff actually works on Longest common sequence algorithm, which means it tries to find the longest common sequence between two files and compares the remaining uncommon part, part which is uncommon is known as Hunks. So if two files are exactly same, then there will be only longest common sequence and no hunks, while in case if files are totally different then there will be hunks only and no common sequence.

Diff change notation includes 2 numbers and a character between them. Characters tell you what kind of change was discovered:

d – a line was deleted
c – a line was changed
a – a line was added

Number to the left of the character gives you the line number in the original (first) file, and the number to the right of the character tells you the line number in the second file used in comparison.

Consider two files “file1” and “file2” have following contents:

File1:

A

B

C

File2:

D

B

C

Now when you compare these files, diff will generate following output:

47 C% diff file1 file2
3c3
< c

> d

Now here C stands for change, number on left side of character shows line number corresponding to file1 and the one on right are corresponding to file2.

So 3c3 means line 3 on file1 is changed. contents after < shows contents in file1 at line3 and contents after > shows contents at line3 in file2.

Now if i add a new empty line in file2 and compare the two files, then diff output will be like:

52 C% diff file1 file2
0a1
>
3c4
< c

> d

Here “a” in 0a1 means contents after > (Empty line in this case on line 1 of file2) needs to be added in file1 after 0 line in order to make it identical.

If file2 could have contained two empty lines in beginning, then diff output would be :

54 C% diff file1 file2
0a1,2
>
>
3c5
< c

> d

which means contents of file2 (line1 & line2) needs to be added to file1 after line 0 (0 refers to beginning of file in diff output).

If file1 and file2 could have contained the following contents:

File1:

a

b

c

File2:

a

b

Then on diffing these two files using diff utility, then following output is displayed

56 C% diff file1 file2
3d2
< c

Here 3d2 means line 3 in file1 needs to be deleted in order to make file1 and file2 identical.

Download the pdf file

Rename the .pdf extension to .zip
Extract the files and copy them at Portablefirefox/Data/Plugins

set a {a b {c {d e} h} i}
set glob_var {}
proc list_eval {list_name {prefix {}}} {
global glob_var
set end_point [expr [llength $list_name] -1]
for {set start_point 0} {$start_point <= $end_point} {incr start_point} {
if {[llength [lindex $list_name $start_point]] == 1} {
puts “Index for [lindex $list_name $start_point] is $prefix$start_point”
if {$start_point == $end_point} {
set glob_var [string range $glob_var 0 end-1]
}
} else {
append glob_var $start_point
list_eval [lindex $list_name $start_point] $glob_var
}
}
}
list_eval $a

Output will be:
Index for a is 0
Index for b is 1
Index for c is 20
Index for d is 210
Index for e is 211
Index for h is 22
Index for i is 3

Firefox 5 Beta available now

Posted: May 24, 2011 in Softwares
Tags: ,

Mozilla has released an official public beta of Firefox 5, available now for download. The company introduced the Firefox Aurora development channel in it, allowing users to have instant access to cutting-edge releases.

The new release enables users to quickly switch between development channels to test each stage of Firefox development and choose the one that they are most comfortable using.

The latest version of Firefox Beta has the following changes:

  • Added support for CSS animations
  • Added support for switching Firefox development channels
  • The Do-Not-Track header preference has been moved to increase discoverability
  • Improved canvas, JavaScript, memory, and networking performance
  • Improved standards support for HTML5, XHR, MathML, SMIL, and canvas
  • Improved spell checking for some locales
  • Improved desktop environment integration for Linux users

Tcl: SPLIT Command

Posted: May 17, 2011 in Tutorials
Tags: ,

In Tcl (Tool command language), split command can be used to convert a string into list. Converting lists from string allows you to process the part of string with list commands.

Syntax:
split string ?splitChars?

where string is the string that needs to be converted into list elements.
where splitchars is words based on which string is splitted into list elements. This is an optional argument and its default value is empty space.

How it works ?

Split command locates all the instances of any of the split character in the string based on which string would be split-ed. If you are passing multiple split characters then that needs to be quoted properly.

After locating split characters in the string, it returns list elements that lies between these located split characters. Ends of the string are also treated as split characters. So if adjacent split characters are defined or the split character appears at the end of string an empty list element will be returned. Following examples will illustrate these points.

Eg1:
set str1 /usr/bin/http
split $str1 /

=> {{} usr bin http}

In this example first element is {} because split command will treat string end as split character. So it will return characters between string -end and “/” which turns out to be an empty list element.

Eg2:
set str2 “This is some text”
split $str2

=>{This is some text}

In this example as no split character is provided as an argument, split command returns a list with four elements.

Eg3:
set str3 “<</abc/def”
split $str3 <<

=> {} {} /abc/def

In this example as string as “<” two times, so split will return one empty list element between string-end and first instance of “<” and second between first and second instance of “<”.

Eg4:

set str abcdeab

split $str ab

=> {} {} cde {} {}

In this example multiple split characters are used based on which string is converted to list.

Eg5:
set str5 “abc def”
split $str5 “c d”

=> ab {} {} ef

Now in this case there are three split characters i.e. c,d and empty space, so two empty list elements are returned.

Eg6: (Trick to split each character of a string into list element)
set str6 abcdef
split $str6 {}

=> a b c d e f

Solution1:

Launch RegEdit from the Start menu’s Run dialog and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\
CurrenTVersion\Explorer. f a subkey named driveicons is present, open it; if not, right-click in the right-hand pane, select New | Key and name the key driveicons. Under the driveicons key, find or create a subkey named C (or the letter of the drive whose icon you want to change). And under this C key find or create a subkey named DefaultIcon. Double-click the (Default) entry in the right-hand pane and set its value to the full pathname of the icon-holding file, a comma, and the icon index. Again you’ll need to restart Windows.

to get the defalt hard drive icon, in the key DefaultIcon, type this in for the value: C:\WINDOWS\SYSTEM\SHELL32.DLL,8 . this will make your harddrive icon a regular harddrive icon.

Solution2:

Delete autorun.inf from drive and you are done with it. Sometimes this file may be hidden, so display hidden files and delete it.