Whenever I read this kind of 10″(W)x5″(D)x8″(H) for a product dimension, I am confusing what it stands for and it is hard to imagine from time to time.

Here, for my record, I put this here:

Dimension for width, depth, and height

That is basic geometry dimension. :) Easy if you know.

 

Here is an information not to use cache in linux while reading the kernel newbie mailing list.

Hi!
On 19:29 Fri 04 Dec     , Lal wrote:
> Dear list members,
>
> I have a question about Linux page cache. I create a 10MB file using
> following application code:
>
> int fd=open(“foo.txt”, O_CREAT|O_RDWR|O_SYNC);
> char* content=(char *)malloc(1024*1024*10);
> write(fd, content, 1024*1024*10);
> free(content); close(fd);
>
> Immediately before and after this code execution, command “free -m”
> shows free memory decreased by 10M and cache incresed by 10M.
>
> If I delete foo.txt, then free memory increases by 10M and cache
> decreases by 10M.
>
> My question is why the cache is growing even after O_SYNC flag? Even
> fsync does not help. But deleting file freeing the cache.

O_SYNC does not mean “do not cache”. It means “make sure the data is written
to disk. The data is kept in memory even after writing to speed up subsequent
reads. If you do not want this, you can pass the O_DICECT flag. But be aware
that using this can easily slow you down.
Either way, if you want to write zeros to the file, make sure the buffer is
initialised after malloc, e.g. via memset or bzero. If you only want to
allocate a file with zeros, you can also consider using fallocate or sparse
files.

-Michi

 

Here is the nice visual explanation from commoncraft.com about RSS.

 

In order to make and install mathtex.cgi, latex and dvipng are prerequisite. You need to install latex first and divpng will come along with it.

You can follow the instruction

  1. http://www.forkosh.dreamhost.com/source_mathtex.html#install

Following will show how I have done with it for example.

# wget http://www.forkosh.com/mathtex.zip
# mkdir mathtex
# cd mathtex
# unzip ../mathtex.zip
# cc mathtex.c –DLATEX=\\"$(which latex)\\" \\
–DDVIPNG=\\"$(which dvipng)\\" –o mathtex.cgi
# cp mathtex.cgi /public_html/xxx.../cgi-bin/

For test of mathtex.cgi, in your web browser, you can do it by

www.example.com/cgi-bin/mathtex.cgi?x^2+y^2

It will give you the gif image showing equation by latex syntax.

 

The latex can be installed by following instruction:

Followings are showing how I installed for example.

# wget http://carroll.aset.psu.edu/pub/CTAN/systems/texlive/tlnet/install-tl-unx.tar.gz
# tar -xvzf install-tl-unx.tar.gz
# cd install-tl-20091126
# ./install-tl

While running “install-tl”, I used ‘D’ option to change the directory to be installed, and ‘O’ to select ‘use letter size instead of A4 by default’ option.

It took around 1 hour to be installed. I have installed it in “~/texlive/” and latex and divpng are installed in “~/texlive/bin/x86_64-linux”

If you want to test the latex, please do

# latex small2e

It will give small2e.dvi in your directory. Using dvipng tool, you can make it gif or png image file.

 
  1. Pride: Pride will have a fall
  2. Covetousness: Never covet wealth and power
  3. Lust: When she (a wild camel) is in heat, who can control her? (Jeremiah 2:24)
  4. Anger: A fit of anger is a nail in your coffin
  5. Gluttony
  6. Envy
  7. Sloth: While the slothful man sleeps, poverty will attack him like an armed robber (Proverbs 6:11)

I don’t know where I have gotten above though. (Of course, the Bible says about it, but I have not seen about 7 sins specifically. I guess somebody has summarized.)

 

Captured from Woman's Health Free Brochure

The university of Tennessee study found that if you eat three serving of yogurt per day, you could lose your weight comparing to the people does not eat.

Interesting. Could it be true? Not sure, but it could be worth to try, isn’t it?

 

As of July 2nd, 2007, I am starting write English blog.

 

February 2012
S M T W T F S
« Jan    
 1234
567891011
12131415161718
19202122232425
26272829  

Follow Me

© 2011 Bread & Cup Suffusion theme by Sayontan Sinha