In our old version of gcc, the size of the bool type was apparently 4 bytes, but in gcc-3.2.3, it is 1 byte. As you can imagine, if you had previously written files using the old software, you might have a hard time reading it if you didn't know this! Arg. More about this can be found here. Adding three more reads to bool seems to make everything work fine. This means I should probably convert all my old files to new files...
To read from files, I used to use
m_fs.read(reinterpret_castI'm not really sure what to do now, since the (new) compiler gives 'invalid reinterpret_cast'. Ok, I fixed it with
m_fs.read(reinterpret_castApparently, the new gcc doesn't treat iterators so kindly. A simlar problem showed up when I tried to do
memcpy(m_event,&event2.Event1,sizeof(EVENT1));In this case m_event is an iterator, and even though it technically is a pointer, the new gcc does not like it. I switched it to
memcpy(&(*m_event),&event2.Event1,sizeof(EVENT1));and it worked. Which means I could have done &(*m_electlocs.begin()) though that is a lot uglier.
Oh man, Stanford just updated it's gcc and gcc libraries - and now my precious code won't compile. Seems like it'll be a nightmare to sort out. I made some headway adding 'using namespace std;' right after the included files. But what is this 'implicit typename is deprecated'. I found a hint here. When getting the type of object T inside of container using value_type, e.g., valarray
copy(&data,&data+data.size(),ostream_iterator< valarrayNow I should have:
copy(&data,&data+data.size(),ostream_iterator< typename valarrayHmmm, this is also a problem with iterators. You need to preface iterators with typename. Note that use of the term 'typename' is for when one is using templates.
To submit Matlab jobs to a batch system, e.g., using qsub, you need to use the following tags: -nosplash -nojvm. More information is available here.
Wow, so cool, I love the the web. I've been storing a lot of my data - about 50,000,000 rows, in MySQL and doing queries and manipulations via PHP from another PC. I was planning on writing a PHP script to format my data into Matlab readable files when I discovered, to my great joy, that a Matlab mysql tool has already been written. Rock and roll! I think the original one came from here. But maybe they are separate efforts...
I installed the Windows version without a hitch though the Unix version I have to mess around with still. At Stanford the school computers run Solaris.
Acutally, there was a hitch. I was getting segmentation fault on my queries. The problem turned out to be the version of Matlab I was using (6.1). I downloaded the Toronto mysql.cpp mex file and compiled it by their instructions and now it works just fine. Robert Almgren, you rock.
I have 380250 rows, in those rows are, evenly distributed, 15 channels. A query for max value by channel prior to indexing the channels takes 21.5415 sec. - ugh 19 sec
I recently tried to load a csv file I generated using C++ via 'cout', commas, and 'endl' into MySQL. Man, I wasted so much time. Here's what was wrong. First, I needed to use LOAD DATA INFILE instead of LOAD DATA LOCAL INFILE. The default is DATA LOCAL. Second, because my file was very large (>15MB), I would click on send and it would put me back on the same page because my php.ini was set for a maximum upload of 2MB. It's hard to diagnose what the problem is if there is no error messaging. Finally the 'endl' corresponds to '\n', rather than '\r\n'.
Doing some preliminary work on S10 I found something interesting. There were two experiments, a 24 sentence experiment and a 48 sentence experiment. I chopped up the 48-sentence experiment into two. Here are the results using a very very coarse grid (l,h,s,e). The interesting thing is that the best grid point seems to be about the same...
For those of you making forms in word, this microsoft tech note may be of use to you. It talks about how to underline the form field. What I'm still unsure on is how you put in a form field in the first place... sigh.
If you are ever in the Fresno area, you should check out Brighton Crest Golf & Country Club. It is a Johnny Miller Signature Course. San Francisco 49ers all-pros Steve Young and Jerry Rice, NBA superstar Michael Jordan, and country music stars John Michael Montgomery and Clay Walker have all chosen play there. It was rated one of the top 10 private courses in California by California Golf Magazine!
Dear Mr. Doudou,
Your comments that I am "a reliable foreign partner, who have good good business relationship with the public and God fearing" are too kind. I understand the urgency of your situation, and I'm sorry about your father, Emile. I have, however, a counter-proposal. Robert Howe, an associate of mine, has uncovered an excellent opportunity which may be less risky, both physically and financially, and more lucrative than dealing with an evil administration. With just a small investment on your part, and with some luck, we can claim thirty-seven million dollars ($37,000,000.00) from the State of California.
For your kind assistance in this matter, 20% the total amount will be set aside to you, 30% for taxes and other fees, and the balance of 50% for my partners and I to invest in Cote D'Ivoire, under your direction.
Please contact me as soon as possible.
FROM: MR DOMINIQUE BOGA DOUDOU.
KIND ATTN: HONOURABLE FRIEND.
THANK YOU VERY MUCH INDEED FOR ACKNOWLEDGING THIS BUSINESS PROPOSAL, HAVING GOT YOUR CONTACT FROM A RELIABLE SOURCE, DESCRIBING YOU, AS A RELIABLE FOREIGN PARTNER, WHO HAVE GOOD BUSINESS RELATIONSHIP WITH THE PUBLIC AND GOD FEARING.
I THEREFORE, DECIDED WRITING YOU IN ABSOLUTE CONFIDENCE PRIMARILY, SEEKING YOUR ASSISTANCE ON A POSSIBLE BUSINESS PROPOSAL, WHICH I DO HOPE, IT WILL MEET YOU IN GOOD CONDITION AND IF GIVEN URGENT ATTENTION SHALL BE OF A POSSIBLE BENEFIT TO BOTH PATIES.
MY NAME IS: DOMINIQUE DOUDOU. SON TO THE EX-INTERIOR MINISTER OF COTE D' IVOIRE (IVORY COAST) HIS EXCELLENCY: MR EMILE BOGA DOUDOU. FROM THE WEST AFRICA. WHO WAS SHOT DEAD ON 19TH SEPTEMBER 2002. BY MULTINEER TROOP, FOLLOWING THE MILITARY MUTINY IN MY COUNTRY.
I CONTACTED YOU, HENCES, MY NEED TO DEAL WITH PERSON WHOM MY FAMILY ASSOCIATES, HAVE HAD NO PERSONAL BUSINESS RELATIONSHIP, WITH. SINCE THE DEATH OF MY FATHER, I HAVE BEING SUBJECTED TO ALL KIND OF HARRASMENT AND INTIMIDATIONS WITH LOT OF NEGATIVES REPORTS EMANATING FROM THE GOVERNMENT AND THE PRESS ABOUT MY FAMILY.
THE EVIL ADMINISTRATION OF PRESIDENT LAURENT GBAGBO, HAS ALSO ENSURED THAT ALL OUR BANK ACCOUNTS FROZEN AND ASSETS BEING SEIZED. IT IS IN VIEW OF THIS, THAT I AM PLEADING FOR YOUR FULL CO-OPERATION AND ASSISTANCE AS BENEFICIARY, TO SECURE
THE SUM OF : THIRTY TWO MILLION DOLLARS ($32.000,000.00) BEING THE VERY LAST OF MY FAMILY FUND IN MY POSSESION AND CONTROL.
MY ONLY HOPE NOW IS ON YOUI AND THIS CASH, THAT WAS SECRETLY DEPOSITED BY MY FATHER IN MY FAVOUR, WITH A FINANCE SECURITIE FIRM IN AN UNDISCLOSE LOCATION WHERE THERE IS A BETTER POLITICAL PEACE AND ECONOMIC STABILITY, AS IF HE FORESAW
THE LOOMING CRISIS IN MY COUNTRY. BUT AS SOON AS YOUR WILLINGNESS TO ASSIST ME, IS INDICATED IN THIS TRANSACTION THE COUNTRY SHALL BE MADE KNOWN TO YOU.
TO SHOW MY APPRECIATION FOR YOUR KIND ASSISTANCE IN THIS BUSINESS, 20% (TWENTY PERCENT) OF THE TOTAL SUM HAVE BEING GENEROUSLY SET ASIDE FOR YOU, 5% SET ASIDE FOR ANY EVENTUAL COST THAT MIGHT ARISE IN THE CAUSE OF THIS TRANSACTION, WHILE
THE BANLANCE 75% IS TO BE INVESTED ON VIABLE BUSINESS, BY YOU, IN YOUR NAME AND COUNTRY, FOR ME AND MY FAMILY.
SHOULD YOU ARE INTERESTED IN THIS BUSINESS, I ONCE AGAIN PLEAD WITH YOU TO TREAT THIS ISSUE IN OUTERMOST SECRECY, STRICT CONFIDENTIALITY AND URGENCY, WITHOUT THE
KNOWLEDGE OF ANY OTHER PARTY. I WOULD ADVISE THAT YOU CONTACT ME VIA MY PRIVATE MAIL AS SOON AS POSSIBLE.
E-MAIL:firstname.lastname@example.org AS I WILL BE ASSESING MY PRIVATE MAIL ONLY. YOUR URGENT RESPONSE WILL BE APPRECIATED.
CHEERS AND GOD BLESS YOU, IN ALL YOUR ENDEAVOUR.