Skip to main content

Posts

Showing posts from June, 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

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 Li…

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 Bi…