My Tech notes: June 2009
Subscribe

Unix Documentation

Free Online Unix Training Materials

Lists many links to free Unix training materials.

Pointers and Arrays Materials

Pointers and Arrays materials Explained for C beginners

C FAQ and General Questions C Interview Questions

Powered By

Free XML Skins for Blogger

Powered by Blogger

Wednesday, June 10, 2009

Create File Of Any Size in Linux Using DD Command

How do I create a file of any given size on Linux?
using the dd command.

$ dd if=/dev/zero of=testss bs=1024 count=1048576

This will create a file of size 1024 * 1048576 bytes (or 1 GB).
where
if - input file
of - output file or the file to be created
bs - block size in bytes
count - # of blocks of size bs

Easiest and fasted way to create file of 250GB using DD command

$ dd if=/dev/zero of=tests bs=1 count=0 seek=250G

read dd(1) - Linux man page

Friday, June 5, 2009

Xilinx's Interview Questions

Xilinx is the world's one of largest supplier of programmable logic devices. It has started R & D department in Hyderabad, India. It has broad scope for embedded system programming in device driver in linux.

Before the interview you have to feel the Xilinx form with information containing all academic details, current/previous employer, contacts of employer( to check out info about you), current ctc, expected ctc and expected date of joining, etc.

I appeared two back to back technical interviews.

The first interview was taken by a young man look like just crossed 30's.

He asked me to tell me about myself.

Then he asked my experience.

He checked my expertise in resume.

He asked questions about RTOS, and Linux Device Drivers.
What is RTOS ? Define it.
How a linux device driver works?
How a character driver works?

He looked at my project summaries and started to ask in depth questions about each project.

After that he asked me to write to delete nth node from starting in Singly Linked List.
Then asked how would you delete the nth node from ending?

Then he asked to set and reset the nth bit of a byte.

After the first interview the second interview was unexpected for me.
This second interview was taken by a lady in mid 40's.

She asked me about why I chose embedded system as my carriar instead of the post graduation.

She had copy of my resume with her and noted down on resume years when I compledted graduation and diploma.

She asked me my expertise in embedded system.

Then she offered me to choose any of my projects which I did in my previous company and explore about them.

She started grilling on each and every, sentence and words about that project.

At the end she asked me to write a string reversing program as she gave some intial start of the code as

char * strrev( const char * string){

}

So these are some technical questions were asked me in Xilinx interview.

SCALA Programming Language Secret Behind Twitter's Growth

SCALA programming language and Secret behind Twitter's growth
Scala is a general purpose programming language designed to express common programming patterns in a concise, elegant, and type-safe way. It smoothly integrates features of object-oriented and functional languages, enabling Java and other programmers to be more productive. Code sizes are typically reduced by a factor of two to three when compared to an equivalent Java application.
http://www.scala-lang.org/
Introducing Scala

Scala is a general purpose programming language designed to express common programming patterns in a concise, elegant, and type-safe way. It smoothly integrates features of object-oriented and functional languages, enabling Java and other programmers to be more productive. Code sizes are typically reduced by a factor of two to three when compared to an equivalent Java application.

Programming Scala book

Programming in Scala Some books

A comprehensive step-by-step guide
by Martin Odersky, Lex Spoon, and Bill Venners
Book ToC at
http://www.artima.com/shop/programming_in_scala
Sample chapters from SCALA book
A scalable language http://www.artima.com/samples/chapter1.pdf
First steps in Scala http://www.artima.com/samples/chapter2.pdf

Secret behind Twitter's growth

Scala programming language helped Twitter scale
http://www.technologyreview.com/blog/editors/23282/?nlid=1908
Also do visit slides of the Scala talk given at Twitter headquarters.
http://www.slideshare.net/raffikrikorian/scala-wattzon-sitting-in-a-tree

Tuesday, June 2, 2009

Debugging Defined Testing DOTNET

 

Tags: Debugging, Testing, DOTNET, windows