Thursday, December 22, 2011

YOUTUBE-REWIND

[2011-THE YEAR IN REVIEW]



See what the world watched on YouTube in 2011 with YouTube Rewind.

You can goto YouTube Rewind timeline from here: YouTube-Rewind-2011

Monday, December 19, 2011

Google Does 13 Things Other Than Search!!!

 Google Search Features


Google have some features to get specialized or specific results.
  1. Weather: To see the weather for worldwide cities, type “weather” followed by the city and state, or city and country. i.e, for weather information in Dhaka, Bangladesh, type "weather Dhaka, Bangladesh" in the google search box and you'll see the weather condition of Dhaka, the capital city of Bangladesh.
  2. Calculator: To use Google’s built-in calculator function, simply enter the calculation you’d like done into the search box. suppose: 5*9+(sqrt 10)^3+ln(3E8)=
  3. Converter: You can use Google to convert between different units of measurement of height, weight, and volume among many others. Just enter your desired conversion into the search box and Google will do the rest. Search example: 1light year in km or -40 celsius in fahrenheit.
  4. Public Data: To see trends for population and unemployment rates of  states and counties, type "population" or "unemployment rate" followed by an US state or any county. i.e: GDP Bangladesh, or unemployment rate US.
  5. Synonym Search: If you want to search also for your search terms synonyms, place the tilde sign (~) immediately in front of your search term. ex: ~fast food
  6. Dictionary: To see a definition for a word or phrase, simply type the word “define” then a space, then the word(s) you want defined. Note that the results will define the entire phrase. example: Define ambiguous.

Thursday, December 15, 2011

RMI plug-in for Eclipse

RMI plug-in from Genady. This tool is for the development of RMI in eclipse.

How to install Genady plug-in:

  1. Save your work and exit  from Eclipse.

  2. Delete previous version if installed any.

  3. Download the plug-in zip from here.

Wednesday, December 7, 2011

CARGO BRIDGE-2


Design a bridge that will allow you to safely move your cargo from one side to the other. You have a limited amount of money to build each bridge.

Tuesday, December 6, 2011

Syntax Highlighter wordpress

How to hightlight codes you published in wordpress.com?

Here is the solution:

You have to post your code in between the tag. Write down your language name replacing your_language. That's all. :)

[sourcecode language="your_language"]
//your code here
[/sourcecode]

Here is an example of how to represent a python code in WordPress:
[sourcecode language="python"]
import turtle # allows us to use the turtles library
window = turtle.Screen() # creates a graphics window
rightAngle = turtle.Turtle() # create a turtle named rightAngle
rightAngle.forward(150) # tell rightAngle to move forward by 150 units
rightAngle.left(90) # turn by 90 degrees
rightAngle.forward(75) # complete the second side of a rectangle
window.exitonclick() # graphics window wait for your click to exit
[/sourcecode]

This will look similar to this:
import turtle # allows us to use the turtles library
window = turtle.Screen() # creates a graphics window
rightAngle = turtle.Turtle() # create a turtle named rightAngle
rightAngle.forward(150) # tell rightAngle to move forward by 150 units
rightAngle.left(90) # turn by 90 degrees
rightAngle.forward(75) # complete the second side of a rectangle
window.exitonclick() # graphics window wait for your click to exit

The language parameter in the tag controls how the code is syntax highlighted. Default language parameter
is "text"[No highlighting].

At this moment wordpress.com is supported the following language:

  1. actionscript3
  2. bash
  3. coldfusion
  4. cpp
  5. csharp
  6. css
  7. delphi
  8. erlang
  9. fsharp
  10. diff
  11. groovy
  12. html
  13. javascript
  14. java
  15. javafx
  16. matlab (keywords only)
  17. objc
  18. perl
  19. php
  20. text
  21. powershell
  22. python
  23. r
  24. ruby
  25. scala
  26. sql
  27. vb
  28. xml

The shortcode also takes variety of parameter to customize output, but they are optional:


  1. autolinks (true/false) — Makes all URLs in your posted code clickable. Defaults to true.
  2. collapse (true/false) — If true, the code box will be collapsed when the page loads, requiring the visitor to click to expand it. Defaults to false.
  3. firstline (number) — Use this to change what number the line numbering starts at. It defaults to 1.
  4. gutter (true/false) — If false, the line numbering on the left side will be hidden. Defaults to true.
  5. highlight (comma-seperated list of numbers) — You can list the line numbers you want to be highlighted. For example “4,7,19?.
  6. htmlscript (true/false) — If true, any HTML/XML in your code will be highlighted. This is useful when you are mixing code into HTML, such as PHP inside of HTML. Defaults to false and will only work with certain code languages.
  7. light (true/false) — If true, the gutter (line numbering) and toolbar (see below) will be hidden. This is helpful when posting only one or two lines of code. Defaults to false.
  8. padlinenumbers (true/false/integer) — Allows you to control the line number padding. true will result in automatic padding, false will result in no padding, and entering a number will force a specific amount of padding.
  9. toolbar (true/false) — If false, the toolbar containing the helpful buttons that appears when you hover over the code will not be shown. Defaults to true.
  10. wraplines (true/false) — If false, line wrapping will be disabled. This will cause a horizontal scrollbar to appear for long lines of code.


Courtesy: en.support.wordpress.com

Saturday, July 23, 2011

All folder became shortcuts!!!

This is new kind of virus, I guess.I was infected by it too. All my folder in external hard-drive had become shortcut. I didn't know how to get my folder back that had turned to shortcut to become a folder again without loosing any files. I was searching through web, and suddenly found a strange solution, which worked nice.

Go to Start->Run ->cmd
change your directory to the affected drive or folder. i.e  H:/  and press Return/Enter.
Now write or paste this in your command prompt: attrib -r -a -s -h /s /d


After a while it'll be OK and you'll get access to your data.  But it'll be safe if you update your anti-virus and run a full check and open the drive.
Hope this will solve the problem. 

Monday, July 18, 2011

How to Set Path Variable in Windows 7

a. Checking  if java is set as path environment variables:

1. Go to Start-> Run-> cmd

2. write: java -version and hit Return/Enter. If the path variable set properly it will show your java version.


b. Setting path variable in windows 7:

1. Go to start menu -> control panel -> system and security -> System.
or simply paste this in your windows explorer address bar-->
Control Panel\System and Security\System

2. Now select "Advanced system settings" from the left panel.

3. A new window appears. Click on "Environment variables..."
4. under System Variables, find PATH, and click on it.
 
5. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value. 

6. the location looks like: "C:\Program Files (x86)\Java\jdk1.6.0_23\bin;" end it with a semicolon.

7. Click ok. 

8. Close all these windows.

C. Check if path variable is set properly:

1. Go to command prompt/cmd.

2. write: "java -version" end hit Return/Enter. if the path variable set properly it will show your java version.

3. If it still not working reboot your computer and try step c1 & c2.

Hope, now your path variable for java is set. Else read steps of "b" carefully.

Saturday, July 2, 2011

Basic Programming Knowledge, What to know before interviews??

1. Basic programming on
  • string processing, 
  • recursion,
  • number theory etc.
2. Data Structures -
  • Stack, 
  • Queue,
  • Linked list etc,
3. Algorithms-
  • Searching, 
  • sorting, 
  • DFS, 
  • BFS, 
  • shortest path etc
4. OOP programming concept
5. Database concepts:

  • Very typical database orientated questions like
    • joining, 
    • normalization,
    • De normalization
  • Query writing using joining -
    • inner join, 
    • outer join, 
    • left outer join etc.
  • Design E-R diagram of a small system like result processing
6. Questions on projects that you've done so far at your university & in your professional life.
7. Asp.Net/C#/Vb.Net
8. Sql Server 2000 or 2005:
9. Basic knowledge on SS 2000 or 2005
10. Write down
  • stored procedures, 
  • views,
  • functions & 
  • cursors to use them in projects.