Archive

Archive for the ‘Uncategorized’ Category

Gmail’s status: POP is enabled for all mail that has arrived since 8/26/06

April 21, 2011 1 comment

This is pretty funny. I don’t know how it happened nor why this can solve it. All I know is this will work out somehow.

Brief descriptions: POP did not download e-mails from Gmail account before a specific date.

Symptoms: I set up POP in Thunderbird and download e-mails from Gmail account. All went well except that e-mails arrived before  8/26/06 were not downloaded to my computer. No matter what I did the emails wouldn’t get downloaded. So I revisited the setting in the Gmail account >mail setting>Forwarding and POP/IMAP>POP Download and I found that it showed “POP is enabled for all mail that has arrived since 8/26/06” which corresponding exactly with the not-downloaded emails in the gmail account. However, I don’t know how to change the date. I ticked at “Enable POP for all mail (even mail that’s already been downloaded)” and saved the changes, but that did not help.

Here is the trickery…I don’t know how or why though. I ticked on “Enable POP for mail that arrives from now on” then save the changes. After that I ticked “Enable POP for all mail (even mail that’s already been downloaded)” then save the changes. Now it works!

Here they discussed the same problems too

http://www.google.com/support/forum/p/gmail/thread?tid=279f64a3240921b4&hl=en

Advertisements
Categories: Uncategorized Tags: , , ,

Problems with Gmail and Thunderbird

April 21, 2011 Leave a comment

If your Gmail is full and you think you need to store all your old e-mails to your computer, you may consider using Thunderbird. But you might encounter some problems when using it. Here I collected some links regarding the problems and solutions.

Gmail: Move all emails in trash to inbox
http://www.google.je/support/forum/p/gmail/thread?tid=4850b696820287a5&hl=en

How to Uninstall Thunderbird Completely and Then Reinstall It
http://www.ehow.com/how_8102988_uninstall-thunderbird-completely-then-reinstall.html

“Thunderbird is already running, but is not responding. To open a new window, you must first close the existing Thunderbird process, or restart your system.”
http://forums.mozillazine.org/viewtopic.php?f=39&t=824865

Categories: Uncategorized Tags: , ,

Comparing 2 text files

March 24, 2011 Leave a comment

Most of the time when you want to compare 2 text files, you might get used to using the command

diff old.tex new.tex

in terminal. Recently, I just found a program to do the job beautifully and, most importantly, FREE. Try ExamDiff, it works pretty well for me.

Categories: Uncategorized Tags: , ,

pdflatex gives error when compiled with .eps figures

March 24, 2011 2 comments

The command pdflatex can take only figures with .pdf extension, and unfortunately I mostly output my figures in .eps, which means that I have to convert all figures to .pdf. If there are only a handful of figures, manually converting the figures one by one is acceptable using the command (in the terminal)

epstopdf figure_file.eps

However, when there are hundreds of figures, we may not want to do that. Instead, one might want to simply write a batch file to convert all the figures automatically. Instructions for writing a batch file can be found in this web page:

http://commandwindows.com/batch.htm

I have my very easy code available to try here. For an advanced user, you can list all the file names inside a directory and use for-loop to convert the file one by one. There are some people suggest using ImageMagick, but I found that is not so convenient :-P.

Which is better…(int* nPtr) vs (int *nPtr)?

February 24, 2011 Leave a comment

Compare 2 functions in the main.cpp

#include <iostream>

using std::cout;
using std::endl;

int fn_CubeByValue(int);
void fn_CubeByReference(int *);

int main()
{
	int number, result;
	number = 5;

	cout << "number =" << number;
	result = fn_CubeByValue(number);
	cout << "\n after result = fn_CubeByValue(number);, number =" << number;
	cout << "\n, result =" << result;

	cout << "========================================";
	cout << "\nnumber =" << number;
	fn_CubeByReference(&number);
	cout << "\nafter fn_CubeByReference(&number), number =" << number <<endl;

}

int fn_CubeByValue(int n)
{
	return n*n*n;
}

void fn_CubeByReference(int *nPtr)
{
	*nPtr = *nPtr * *nPtr * *nPtr;
}

In the first function, fn_CubeByValue, if I were to compare

int fn_CubeByValue(int n)

with

result = fn_CubeByValue(number);

, I would equate int n and number, represented by n <– number.

What if I use the same analogous to the second function, fn_CubeByReference, I would get that  int *nPtr must be equated to &number, that is, *nPtr<–&number which is not semantically true because *nPtr is would take a variable whereas &number is address.

Perhaps it makes more sense to say nPtr<–&number which indirectly conveys that we should write int* nPtr instead of int *nPtr. In which case we can interpret that the input nPtr takes value of type int* (indicating memory address). However, one can argue that another way to interpret int *nPtr is to say nPtr is the input variable taken by the function, but “int” restricts that whatever in “*nPtr” MUST be integer, hence, nPtr is automatically a memory address. In both cases, the address &number is brought into the function via the variable nPtr, that is, nPtr<–&number. I’m not sure which interpretation is better?

Categories: Uncategorized Tags: ,

Interesting papers in ICASSP 2010, Dallas, TX (Unfinished)

March 17, 2010 Leave a comment

Wednesday, March 17

IVMSP-P4.1: MULTISCALE SEGMENTATION FOR MRC DOCUMENT COMPRESSION USING A MARKOV RANDOM FIELD MODEL
Eri Haneda, Charles Bouman, Purdue university, United States

IVMSP-P4.3: A LOW COMPLEXITY METHOD FOR DETECTION OF TEXT AREA IN NATURAL IMAGES
Katherine L. Bouman, University of Michigan, United States; Golnaz Abdollahian, Mireille Boutin, Edward Delp, Purdue University, United States

– Application on cell phone worth thinking about…we have to use simple and efficient.

– This work is simple and seems to work well in practice.

IVMSP-P4.4: FAST SEMI-SUPERVISED IMAGE SEGMENTATION BY NOVELTY SELECTION
Antonio Paiva, Tolga Tasdizen, University of Utah, United States

-Simple, but very important idea…very practical. Just change the perspective, we gain the speed!

IVMSP-P4.5: IMPROVING IMAGE SEGMENTATION VIA SHAPE PCA RECONSTRUCTION
Hui Wang, Hong Zhang, University of Alberta, Canada

– Simple idea, but very interesting, and should be applied to more complicated contour objects

IVMSP-P4.8: COMPLEXITY-BASED BORDER DETECTION FOR TEXTURED IMAGES
Tomas Crivelli, University of Buenos Aires, Argentina; Agustin Mailing, Bruno Cernuschi-Frias, University of Buenos Aires and Consejo Nacional de Investigaciones Científicas y Técnicas, Argentina

– Use Taylor series to approx log likelihood and get Gaussian. Check out paper by Kashyap and Chellappa “Estimation choice of neighbors..”

IVMSP-P4.9: ON SAND RIPPLE DETECTION IN SYNTHETIC APERTURE SONAR IMAGERY
David Williams, Enrique Coiras, NATO Undersea Research Centre, Italy

– Smart way to formulate using 2 orthogonal (Gabor) filters in absolute value

Branch and Bound for discrete optimization

SPSA Algorithm

Factor Graph for Optimization Problem

Optimization Problem –> Dynamic Programming

My work should change to Deformable Factor Graphs

Topic Model + Image Segmentation

Categories: Uncategorized

LDA

February 9, 2010 Leave a comment
Categories: Uncategorized