Friday, November 23, 2012

.nfs files and how to remove them

Under linux/unix, if you remove a file that a currently running process still has open, the file isn't really removed. Once the process closes the file, the OS then removes the file handle and frees up the disk blocks. This process is complicated slightly when the file that is open and removed is on an NFS mounted filesystem. Since the process that has the file open is running on one machine (such as a workstation in your office or lab) and the files are on the file server, there has to be some way for the two machines to communicate information about this file. The way NFS does this is with the .nfsNNNN files. If you try to remove one of these file, and the file is still open, it will just reappear with a different number. So, in order to remove the file completely you must kill the process that has it open.

If you want to know what process has this file open, you can use 'lsof .nfs1234'. Note, however, this will only work on the machine where the processes that has the file open is running. So, if your process is running on one machine (eg. bobac) and you run the lsof on some other burrow machine (eg. silo or prairiedog), you won't see anything.

Example
% lsof .nfsC23D

Unix: lsof: Command not found

Instead try
/usr/sbin/lsof .nfsC23D

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
tail 1257 robh 0r VREG 176,6 5 3000753 .nfsC23D
 
%kill
 

Monday, October 22, 2012

Support British Businesses


Why British small business needs to pay corporation tax and other companies which have head quarters other than the UK but do business in the UK can avoid paying corporation tax.
What is fair. What the government can do is not the question
Question is what we can do? What you will do to get UK out of recession. 
Starbucks/Amazon/Ebay does not help the British economy to come out of recession and does not help in building Britian. 
When it comes to drinking coffee I am option out from Starbucks. 


We the people of UK can and should get UK out of recession. This model of Big Corporations does not help us in our long term goal of getting UK out of recession and ultimately people of UK out of recession.
If we want our system to work we need to support our own companies. It is really important to do so.
It is we the people of UK can stop this. 
I would let the people decide on what needs to be done then making conclusion on what I feel I am going to do.

There is nothing worst then living in poverty -M K Gandhi


Wednesday, October 17, 2012

Unfair to small coffee shops: Starbucks avoid paying Corporation tax


Why British small business needs to pay corporation tax and other companies which have head quarters other than the UK but do business in the UK can avoid paying corporation tax.
What is fair. What the government can do is not the question
Question is what we can do? What you will do to get UK out of recession. 
Starbucks does not help the British economy to come out of recession and does not help in building Britian. 
When it comes to drinking coffee I am option out from Starbucks. 

Facts of Starbucks :
The real sting in the allegations about Starbucks is that it could be telling such different stories to tax officials and investors.
Investors heard that the UK business was profitable and performance was pleasing, while the tale told to HM Revenue & Customs was that profits were so low that no tax was due.
The Treasury claims that an extra £6bn was brought in last year as a result of the diligent work of the Large Business Service, the department within HMRC which monitors bigger companies.
One wonders how much more they could be collecting if they adopted a different approach to Starbucks, Google and Facebook, who have joined Vodafone and Barclays as targets of tax campaigners.
There is a view within Starbucks that the company does bring in a lot of tax by paying National Insurance for its employees and charging VAT to customers.
But other companies do that as well as paying corporation tax, including small coffee bars who are trying to compete.

Tuesday, October 16, 2012

Starbucks UK tax : Let us support British Businesses


The disparity in its turnover and what it pays in UK corporation tax has made Starbucks the latest US company to come under the spotlight for its negligible contribution to Her Majesty’s Revenues & Customs.
Its nearest UK rival, Costa, owned by Whitbread, had a similar amount of turnover, with £377m of sales in the year ending March 3 2011. But Costa’s tax bill came to £15m - 30.5pc of its profits.
We the people of England can and should get UK out of recession. This model of Starbucks does not help us in our long term goal of getting UK out of recession and ultimately people of UK out of recession.
If we want our system to work we need to support our own companies. It is really important to do so.
It is we the people of UK can stop this. 
I would let the people decide on what needs to be done then making conclusion on what I feel I am going to do.

There is nothing worst then living in poverty -M K Gandhi

Friday, September 7, 2012

Have faith in engineering and invest in technology – the numbers will follow

"Our progress is built on a simple principle: have faith in engineering and invest in technology – the numbers will follow - James Dyson"

It is really important for ordinary people to understand. Manufacturing, production, innovation and entrepreneurship are the life and blood of any economy.

Only through economic success then only can all the people enjoy  the benefit. What is enjoying benefit , is enjoying healthcare, enjoying living and having a prosperous life. 

I think every government should embed in the culture of the country that government can only perform only if its citizens can perform. The citizens should also understand that as a citizen we can enjoy the benefits of the system is only if we perform.

There can be free service for some people but it is not possible to have free service for all the people.
There cannot be this possibility. There has to be people who make an effort.

To be more clear let me give you an example of a joint family.
To be honest joint family is really nice. There are so many benefits of staying together. When you are a child you can enjoy staying with your cousins playing with them and spending quality time with them. The backbone of the joint family is also to have everyone stay united and be with each other and help each other. 
The concept of joint family is everyone helps everyone. 

The problem arrises in a joint family is when some people take things for granted and stop doing things for the family. Stop helping the family, stop providing for the family. This is when the real problem arrises. The problem is where team spirit is gone. Family come first. 
Issue arrises when you think you will be better off when you are allone. You will be better off when you start staying independently. You ignore the benefit of a joint family and start thinking that you will be better off going all by your own.

This mainly happens when an individual person in the joint family is doing well. But think about if for any point of time. He was not doing well. He would have thought it is nice to be in a joint family as my extended family will take care of me. 

This is also applicable to nations and now the Euro zone countries as well. 
To enjoy prosperity and benefits all or majority of the people have to work to provide for the rest privileged.

I think governments can only work if there are enough and sizable economic development, support and growth. 
Public service is achieved best when there are benefits of economic success.
Economic success is possible through large scale employment and investing in science, technology, production and growing all home grown industry.


Tuesday, September 4, 2012

vhdl use entity : vhdl top and verilog modules



         use entity pvrlib.spi_vcomp(module);
                          |
ncvhdl_p: *E,SELLIB (/user/kxa/work/spi_testing/main/spi_master_slave_test.vhd,1113|26): unit (spi_vcomp:module) not found in library (pvrlib).
        errors: 1, warnings: 0
irun: *E,VHLERR: Error during parsing VHDL file (status 1), exiting.


Whats New in '93

In VHDL-93, an entity-architecture pair may be directly instantiated, i.e. a component need not be declared. This is more compact, but does not allow the flexibility of configuration.
DIRECT: entity HA_ENTITY(HA_ARCH) port map(A, B, S, C);
In VHDL-93, a configuration specification for a component (or instance) may legally be overridden by a configuration declaration for the same item. This was not allowed in VHDL-87.


If you are using legacy code i.e. vhdl 87 and the top level files are trying to call some verilog modules. In

VHDL 87 used to use configuration but vhdl 93 do not require configuration to be used. Accept use the switch -v93 when using irun from cadence
------------------------------------------------
for all: sip_mm
use entity work.sip_mm(module);
end for
------------------------------------------------

Samsung following the technology

As patents become harder to define, afford and defend, many manufacturers think it is fair game to copy intellectual property.

Samsung defended its smartphone by saying it was “following the technology”. This is like telling the police that you were speeding to “follow the flow of traffic”. You are still breaking the law.


Monday, September 3, 2012

VHDL IO



• VHDL 1993
– file infile: text open read_mode is “inputdata.txt”;
– file outfile: text open write_mode is “outputdata.txt”;


VHDL 1987
– file infile: text in is “inputdata.txt”;
– file outfile: text out is “outputdata.txt”;

More information on file i/o is on the website
http://people.sabanciuniv.edu/erkays/el310/io_10.pdf

Denali Model Issue "Unable to load dynamic library"


The error reported was :-

irun: 10.20-s100: (c) Copyright 1995-2011 Cadence Design Systems, Inc.
TOOL: irun 10.20-s100: Started on Sep 03, 2012 at 15:30:19 BST
irun
-r S*_S*_TB
-gui
ncsim: *W,NOCIFDLL: Unable to load dynamic library: libfmi.
OSDLERROR: .
ncsim: *F,NOLIBT: foreign library 'DenClib: flashLeapfrog' (for @pvrlib.at25df321(behavior)) not found.
TOOL: irun 10.20-s100: Exiting on Sep 03, 2012 at 15:31:11 BST  (total: 00:00:52)

We were not able to get rid of the error by using a -64bit option in irun(i.e. cadence simulator)
Compile with cadence -64bit and also run with -64bit option.
Typical command would look like:
irun -64bit -r S*_S*_TB -gui

Steps to work with Denali 
a) Register yourself with Denali.
https://www.denali.com/
b) Once registered search for the denali model. The link is also given below.
https://www.denali.com/en/ememory/search/search.jsp?action=search&query=&button=Search&category=0&sizeMin=0&class=0&sizeMax=1099511627776
c) Once a soma file is downloaded/ you get the soma file by email.
d) Convert the soma file into vhd file
Steps for doing that

1) Setting the denali software
module load denali/3.3.011
2)
pureview &
3) 
Click open soma option in the pureview software
4)
Another window will open up 
5)
Then go to options --> Simulation Environment --> Cadence LeapFrog/NC VHDL
6)
Then go to the source in the same window
7)
Then go to File --> Save as sources --> Name of the file you would like to save this file as.


What does a soma file have
http://en.wikipedia.org/wiki/Soma_File


Wednesday, August 22, 2012

Key to leading people

Organizations depends on people who build the organization and leaders who lead the best people with a particular roadmap.

In this article I am trying to focus on leaders / leasdership.

In my opinion if we want to become great leaders we need to understand that the people who the leader will be leading do not care for how much the leaders know until they first know how much the leaders care about them.
Employees don't really care about what we want from them to do ntil they know how much we care about them.
But the secret is when an emplyee knows truly knows that the leaders do care about them, they care about the leader too.
And when tey know you care, they will listen to the leader and they will do anything for you.

We follow those who lead bot because we have to but because we want to and we follow them for ourselves.

The goal of the final leader is that people who are following them beleive in him.

People don't buy for what the leaders do. But they buy for why they do things.


Tuesday, August 21, 2012

BMW and Mini Service Center, Luton

After going through various loal service stations and official BMW center near Luton.

I have personally experienced and recommend that Fensomes has been value for the money. They are quick responsive and you get great customer service.

Link to their website and address is given below:

Fensomes, 100 Crescent Road, Luton, Bedfordshire, LU2 0AH Tel: 01582 486677 | Fax: 01582 484754

http://www.fensomes.co.uk/

Note:
a) They still needs to improve on the waiting area
b) They do not provide replacement car

But they offset by quick response, amazing service, better value for the money and friendly approach.

Friday, August 17, 2012

VHDL: input_output_control ncsim error


Ncsim error obsereved due to input_output_control

Error observed is this:-
ASSERT/FAILURE (time 3785380 NS) from process :input_output_control (architecture <>: <>:test)
Simulation Completed Sucessfully
Assertion at 3785380 NS + 0
/*_tb.vhd:739 assert false report "Simulation Completed Sucessfully" severity failure;
ncsim> exit

Resolution for this is to check the paths if there any files read in the test bench or behavioural model.
Please do rectify the paths and the issue will be fixed.

Wednesday, August 15, 2012

Receipe for Simple French Cake

1 tab chocloate
4 eggs
250 gms of white flour
250 gms of butter
150 gms of sugar
Rasing powder (2-3 tbsp)
bit of salt as per taste

The butter needs to be slowly melted and added while mixing
Key is mixing it well.

Keep it in the owen for 30 minutes @ 170 degrees

Sunday, August 12, 2012

Coastereing and Kayaking Wales

Kayaking and Coasting near Pembrokeshire

Place: Stackpole Quay
PostCode: SA715LS

Half day £45 Adult £38 Junior
Full Day £80 for adults and £70 for Juniors

Advance Booking 01646661425
www.nationaltrust.org.uk/stackpole@NTStackpole

Tuesday, August 7, 2012

Unpaid work schemes ruled lawful. What pay without work relate to

Unpaid work  results as slave labour.
"Pay without work" what does it that relate to ?

I agree that unpaid work results for slave labour.

But then what are we doing with the benefit system for the people who can work, who are fit and just want to stay in the benefit system.

"Pay without work" what message are we giving to the people who work.

What culture are we trying to build ?

To be honest I like what Borris Johnson said "Kids in this country are seeing that there is a direct correlation between effort and achievement, and the more you put in, the more you get out. That is a wonderful, conservative lesson about life."

What a contradiction, what kind of British culture we are trying to develop

Thursday, July 5, 2012

Prisoners should be paid & People in Benefit should be given volunatary service

This blog I am only trying to express my opinion.
In no opinion it is trying to biass people.

I just came across this video on BBC website if Prisoners should be paid for their work.
To be honest there was a while that I was thinking of writing to the British Prime Minister David Cameron and definitely not thinking that I will get a reply back.

I feel really annoyed to see people who can't get work when they really want to work.
And people who do not try for work and do not have any plan to go into work.

Sometimes I feel does it worth working / will it help to stay in the benefit system. What should the benfit system really do. Do they create a culture of not doing anything. Does it really want to help people to come back to the working system.

To be honest as a tax payer I want to get better for my money. I want to be part of the culture where many people pay their taxes and there is work for all and people are more interested in working rather than claiming benefits. Yes it benefits me as a tax payer and yes it also benefits the person who will be going into work.

The attitude and the culture developed in Britain should be it is okay to work and then there is nothings as free food in this world.

I am sure many eyes will be on me when I say this statement "There is no free food in this world".
I feel there is no free food and let me back this with a example in our daily life. To create bunch of vegetable's to eat I really need to have the right atmosphere for make them grow. Right protection from the snails and the slugs. Organic compost so that no chemicals enter the food chain. If you see there is so much effort required to do so. But when it comes to weed, it just grows, but we do not eat them.
Normal analogy what I learnt from nature is we need to make an effort for feed ourselves.

There has to be a purpose for one's life and it should be part of the government to build a happy culture of adding value to the society and being happy.

I am sure that there are people for whom we need to help as a society. But the help needs to be to help them to fish and not give them fish.
We need to help a person to fish and we are helping him to feed his family.  The assistance should be to help them become self reliant.

But I am really convinced with the fact that a person who works should be paid to create value and that applies to every person in the world and it is true to Prisoners too. Prisoners should also be paid for their work. It is really important to value their work even if it is in prison and then they are serving life sentence.
But that does not mean the money should be given to the prisoners. A prisoners service should be paid to the victim and let the prisoner know his work is serving the victim.

So on that note I have a strong opinion that people on benefit should also be given compulsory service to serve the community. It is really important for them to feel that they are doing a bit for the society and feel their worth and value they add to the society.

I think they will feel by serving the community they will feel the sense of pride and a sense of positiveness.

I think positiveness is very important.