Sunday, February 01, 2004
I woke up at 5:30 AM but let Mae sleep in. I went to what I thought was P. E. C. meeting, in the Guimba 2nd branch. I was confused as to who was there. After returning home I took a 15 minute nap, and then we went back for the block program. I realized that the meeting was Branch Missionary Correlation. We attended the block program and then they held P. E. C. which we also attended. We ate lunch on the way to Tarlac to visit with the Hyers. Elder Hyer had bought me a map and showed me where to go. It was 10:15 PM before we got home. I filled out my journal and we soon went to bed.
Monday, February 02, 2004
We got up at 5:30 AM and went walking at C. L. S. U., which is the first time for some time now. We got home and showered and had breakfast. Mae got on the computer and finished writing the letter to our family. We also had some reports to send into the office. At 10 AM we got on line with Scott and Jeff. We enjoy that, although sometimes it gets a little confusing as to the mixed conversations. Jeff informed us that he was going with Josh and Charlyn to the top of Mt. Timpanogus this coming Saturday. Scott is concerned about that hike this time of year. Mae told Jeff that she was concerned, but that didn’t make much difference. We will just have to keep him in our prayers and hope it goes ok. David later got on line with us. Things seem to be working out for them with the move to Utah. They put their house up for sale and within hours have an offer on it. That is sure different than Jeff and Gail’s sale of their home. I called the Honda dealer and they are not sure if the parts will get here this week or not. They may have to be shipped in from Japan. I called President Clark and told him the problem. This evening President Brimhall called and said, to bringing our car to the mission home and trade President Clark cars, until ours is repaired or replaced. Mae and I worked all afternoon on presentations for this coming Saturday. When President Brimhall called I left the computer to answer the call.  I was afraid that I had lost a lot of work, but I was lucky that there had been an automatic save. I was glad to find that out. It was after 10 PM before we got to bed.
Tuesday, February 03, 2004
We didn’t go walking this morning because we invited the Elders to come over for breakfast. Only Elder Clam and Elder Webber came, so we had plenty. We wanted to have Elder Clam because this will be his last time to eat with us, as he is being transferred this time. I think he is ready for the transfer, because he has been here in the San Jose and Guimba Districts for nine months. He has certainly been an obedient and enjoyable Elder to work with, we will miss him. President Clark called and said that he had arranged for us to get a van until our car was repaired. He will have the vehicle pool get the repairs done on our car. I asked concerning the parts that I had put a deposit on and he asked me to check on canceling the order. I called the Honda dealer in Tarlac. They said they didn’t have the parts and was not sure when they would be in. I asked them to then cancel the order and return my deposit. I was told that they couldn’t refund the deposit. I said that the agreement was that they would have the parts with in a week and if that wasn’t possible, they should refund my deposit. Again I was told that they couldn’t refund the deposit. I asked to talk to the manager. I was told that he was out, but would be back in a few minutes. I asked them to have him return my call in fifteen minutes. With in a few minutes I received a text saying that the parts would be in tomorrow. I text back and asked for a time that I could bring the car in and I received a text back saying to be there by 9 AM. I let President Clark know that they will get it repaired for me and that will save the shuffling of vehicles. I worked the rest of the day on my presentation for the Paniqui High Council training on Saturday the 7th. Mae also worked most of the day on her training materials. I did take the car to a tire shop and had them repair the back tire that keeps leaking. After repairing it, he said I should use it as the spare. I think the tires are getting about ready for replacement.
Wednesday, February 04, 2004
We were too tired to get up and go walking this morning. I left at 7:30 AM for Tarlac to get the car repaired. Just as I got to Baloc, I received a text that the Honda dealer was not sure if the parts had come in. I pulled over to read the text and think of what to do, when he text back saying that they were there. I drove on in and got there just after 8:30 AM. They worked all day to get it done, but got me out about 3:30 PM. I studied part of the time, and watched the show “The Patriot” on the TV this afternoon. I guess they had to do some repair to the shock absorber mount also. That was probably damaged when we first got here and we were forced off the road by a truck, I think that is when the problem first started and the trip to Baler just made it worse. It was 5 PM when I got home. I was tired, but Mae wanted to take some sheets to the Book Store to have copied and we went to the grocery store in San Jose for a few items. We worked on our presentations for Saturday, until almost mid-night.
Thursday, February 05, 2004
We were too tired to go walking. We left about 9 AM for Manila, stopping in Angeles for a few minutes, so Sister Clark could get me the reimbursement money on the car repairs. We got to Manila about 3:30 PM, but then we tried to find the Hotel. We got off Ortigas Avenue, but I must have misunderstood the directions of Elder Hyer, and thought we were to go off on Shaw Blvd. We spent the next 3 hours trying to find the Holiday Inn. When we finally found it, we realized that we had passed right in front of the hotel. When we went to check in, they couldn’t find our reservation. They had to put us up in a suite , and thought they gave us a good price (after several minutes of arguing with them) , but it was still very expensive. (About P9000, this is about $180). We went out to eat, and then found a place to get Mae’s watch repaired. We got a little sleep before we met Clem. He took us to the airport at 11:45 PM to pick up the girls. The plane arrived at 11:55 PM, but they were over ˝ hour getting off and getting their baggage. We paid Clem P500 for doing it, but it was well worth it.
Friday, February 06, 2004
We didn’t get to bed until after 2 AM. It was so good to see the girls, we just couldn’t quit talking. We got up about 8 AM and went down stairs for breakfast. We really enjoyed just visiting. We went to a session at the Manila Temple, and really enjoyed that. We stopped at the distribution center and got some Hand Book of Instructions for the High Council at Paniqui District’s leadership training I am giving tomorrow. It was 5 PM when we got to the mission home. President Brimhall took the four of us, the Hyer’s, and the Clark’s, to dinner. Sister Brimhall gave Sandi a quilted wall hanging as a gift. It was a very enjoyable evening. We left for home about 8:30 Pm, so it was after 11 PM when we got there. We were again very late getting to bed.
Saturday, February 07, 2004
We had planned on sleeping in for a little while, but I think we were all up by 7 AM. We prepared a nice breakfast, and then I worked on my presentation. I mainly read the instructions on the projector that Sandi had brought me. Time goes so fast and Mae was soon reminding me that we had to leave to get to Paniqui. We got to Paniqui about 12:30 PM. President Nadado met me and we went into his office where he gave me his High Councilor’s assignments. I made some changes to the presentation slides before we went into the training meeting. While the opening of the meeting was taking place, I realized that I had not brought the power cord for my computer. I had used the computer in President Nadado’s office for at least 20 to 25 minutes, so I estimated that would leave me, at most 40 minutes of power left. I didn’t know what else I could do except ask my Father in Heaven for help. When we separated for group instruction, I set up and used the computer as I had planned. I went for well over an hour. It went well and I had the power to keep the computer going as long as I needed it. I think things went fairly well. Just before the meeting, Mae was setting up for her training. She got some brothers to help her, but they couldn’t get the VCR to work. I stopped in mainly to get the car keys, and was able to get it working for her. We both felt good about our training. All the people visited with Sandi and Shellie, continually commenting as to our beautiful daughters. We stopped at Cindy’s and ordered some fried chicken and bought Sandi, Shellie and Mae a Holo Holo, we wanted them to try one while they were here. It was dark by the time we got to Guimba, so we didn’t stop at President Cabuyaban’s. We will have to try another time to take the girls to meet his family ands see his farm. We went to the Lozano family in Munoz and visited there for just a few minutes, then stopped and introduced Sandi and Shellie to Roger and Hyde Silvia & visited a few minutes. We then came home and watched some pictures that Sandi and Shellie had brought. I was able to project some them onto the wall. We also listened to a tape that Chelci had made for us, singing many beautiful songs. It was great. Time just goes too fast, but we sure had a good day.
Sunday, February 08, 2004
I woke up at 4 AM and updated my journal. I finally went back to bed and everyone else started getting up. Mae cooked French toast and eggs for breakfast. We ate a very relaxing breakfast. It seemed like we were busy getting ready to go. We stopped at President Gajonera’s to introduce the girls to them. We then went to Guimba and attended the 2nd Branch meetings. After meetings while Mae & I was attending branch correlation meeting, the girls were outside visiting with the sisters. Many of them wanted to go home with our daughters and be their maids. When we came out we found them playing with many of the children. They were glad we finally came as they said they were getting worn out. We stopped at the home of President and Sister Cabuyaban to introduce the girls to them and also the home of the Doria boys.
Monday, February 09, 2004
Packed for Baler trip and left home about 10 AM. We stopped in San Jose at the bank to get the girls some money changed from dollars to pesos, and then at the palanki for them to experience that. We then went to CVC where Shellie and Mae bought some groceries to take with us. Sandi and I went over to LBC to mail some letters for Sandi. We took the route from San Jose through Rizal, to Pantabangan, to Maria, Aurora and to Baler. We got to Baler about 5PM. After checking in at the Bahia de Baler Garden Hotel, we went for a walk along the beach. We then ate dinner at the adjoining restaurant. We were going to play Rook but Sandi started talking about Terry. I had wanted her to, that we might understand more of what had happened and how things are working out financially for her. I think it helped Sandi to talk to us about what had happened. She is sure young to have to go through such a trial, but she is strong.
Tuesday, February 10, 2004
We got up early so we could be on the beach to see the sun rise. It was a beautiful sun rise. The girls started out just wading in the surf, but soon got wet, so went back to the hotel and changed to swimming suits and went in swimming. They had a lot of fun. We went back to the hotel to eat breakfast on our porch. Elder Stewart and Elder Mortinson came by with two Books of Mormons, that I had requested and also some coconuts for us to try. We enjoyed visiting with them for a few minutes. We went up to some waterfalls that they told us about. The first ones which we went to, we could drive almost to them with just a short easy walk to see them. We wanted to see some larger falls and the people there told us they were a long ways off and a long walk. We continued to look and ask for the “mother falls”. A man had us follow him on his motorcycle and he led us out of the area. When we came to the next road, he waved down a trike driver, who was the brgn. Captain. He had us follow him to the main road and west through San Luis. He showed us a road and told us to follow it to the river. We would have to walk from there. I tried to pay him for helping us, but he wouldn’t accept anything. He did say that his daughter was collecting donations for her school and if we wanted to help her that way he would give it to her. I gave him P20. As we started up the road, a pickup came up behind us. I moved over and let him pass. He motioned for us to follow them. We did and we went right up to the river, where we parked. They were also going up to the falls and invited us to go with them. They were a family from South of Manila and were on vacation there in Baler. We started trying to keep dry as we would have to cross the river several times; however we soon slipped and fell in the water so often, that we gave up trying to stay dry. The one young man with the family really helped us as we hiked up the very difficult trail. Although the trail was hard, the beauty made it worth while. We had to hike 2km to get to the falls. It was beautiful and well worth the effort and time to get there. From there we went to the palanki where we hired two trikes to take us to the swinging bridge. It was a long suspended cable bridge crossing a river that went into the ocean. We next went to a souvenir shop where the girls found several items they wanted to take home to family and friends. We again went out to eat dinner.
Wednesday, February 11, 2004
We again went to the beach this morning, the sky was overcast, but it was a wonderful morning.
We looked for sea shells and coral. We then went back to the motel and ate breakfast, we packed and checked out. As we started out of town, we stopped to buy some ice, as we went to get into the car; I noticed that the back tire was low. We went to a small tire shop and had it repaired. After getting the tire repaired we went to Maria Aurora where we saw the Balete tree (Asia’s largest tree). Shellie climbed up the inside of the tree to the top and stood out where we could see her and take pictures. From there we then went to Berry Phillips place and introduced the girls to he and his family. Mr. Phillips welcomed us and showed us around his place and showed the girls how they made the paper from the banana tree stock. Of course Mae and the girls had to buy some of their product. We were there for 2 or 3 hours. We left for home after 4:30 PM, going back to Baler and over to Bongabon, then to Rizal and San Jose and on home. It was late when we got home but we had to bring things in from the car so we could prepare to leave tomorrow.
Thursday, February 12, 2004
We were a little late getting up this morning, so we didn’t go walking. I think it was this morning that Shellie gave me a hair cut and cut it into a butch cut. It isn’t the way Mae likes it but it’s much easier to take care off. After breakfast I washed the car, while Mae and the girls were busy packing. Sandi came out and gave me a hand with the car. We were just about through when Shellie called for our help. Mae had tripped on the step going from the living room to the hallway.  We helped her up and into the bed room and laid her on the bed. Shellie got ice, put it in a towel and held it on her head. Mae just wanted me to giver her a Priesthood Blessing, which I did and she soon was up to finish preparing for our trip. I am sure a lot of it was that she didn’t want to spoil the trip for the girls. We drove to Baguio getting there about 4:30 PM. On the way I got sleepy, so let Shellie drive for about 20 minutes while I took a short nap. Shellie was glad that she got to drive here in the Philippines, but she was also glad when I woke and could take over. We checked into Camp John Hay hotel, and then went for a walk around the hotel and grounds. It is a beautiful place to stay and we were very happy with our decision to stay there. We drove down town but couldn’t find any parking space for the car, plus I was soon lost. When we did find our way back to the hotel area, we stopped at a drive inn and got dinner. I decided this evening that tomorrow we would leave the car parked and use a taxi to get around town.
Friday, February 13, 2004
After a good night sleep, we checked out of the hotel, putting all of our luggage in the car and leaving it parked at the hotel, I hired a van & driver for P200 per hour to take us around town. First we had him take us to a McDonalds where we ate breakfast. Next we went to Eva Silver Store where the girls enjoyed shopping. We also watched them manufacture the jewelry. Next we went to Easter Weaving store. I quickly looked through the store while the girls got to the first rack. I found a soft couch to set on and laid back and took a nap while Mae and the girls had fun. Our driver then took us to the wood shops, where they carved the items, as he said they were much cheaper from them. Sandi had a ring worked on at the Silver shop, so we had to go back to get it. The driver then took us back to the hotel so we could get our car. I then had him lead us to the S M mall, where we paid the driver for 6 hours time for the driver and van. That was very worth while. We enjoyed the mall and one of the unique things was the construction of the mall. It was four levels but had no roof, only a canvas tent covering and no exterior walls. This was great to over look the city. The city is beautiful and we could see everywhere. We left the mall for home about 4PM. We had to stop at one more souvenir shop on the way out of town. We also stopped at a resort and looked around for a few minutes. It was almost 9PM when we got home and we were very tired but it was a good trip.
February 14, 2004
We slept in until 7AM and ate breakfast about 8 AM. Marlyn came to do some house work that she hadn’t got quite done on Friday. She also did up the dishes before she left. I also found that she had cleaned up my shoes that I had got muddy and wet from our Baler trip. She is special in looking for ways to help us. Marlin Dator came and washed our car. I asked him if he would have time to take Sandi and Shellie for a trike ride. He took them to downtown Munoz to the palanki where they bought two machetes and a few other small items. He also showed them around the area. They really enjoyed the time with him.
We went to a Returned Missionary reunion for Guimba District that was held at the Munoz Chapel. Mae and I both had been asked to speak at it. It also gave Sandi and Shellie a chance to meet many of the members there. Everyone made Sandi and Shellie feel very welcome. From there we took the girls to meet the Umipig’s and President Neito and his family. President Nieto wasn’t there at that time. We came home and ate dinner. As we finished, President Nieto came to visit us, he brought us a valentine cake and apologized for not being there when we had came to his home. He visited for several minutes before leaving. We felt that that was very special of him. Shellie and Sandi gave Mae and I a box of three fresh roses for Valentine Day. Marlin and Imelda also gave us an artificial rose that Mae put in a vase. They had written a sweet message on the Valentine card attached to the rose. I down loaded all the pictures, which we had taken during this week, for the girls to take home on two DVD’s. The girls packed most of their items this morning and only had a few things to get in this evening. We were late getting to bed again, but that’s ok.
Sunday, February 15, 2004
We got up and finished packing the girls things. They really had to work at packing to get all they had bought in their bags. We left at 8:30 AM and stopped in Capas at a World War II shrine honoring those that gave their life’s during the Japanese invasion of the Philippine Islands. We had to ask directions and it was interesting that the ones we asked in a local gas station didn’t know about the shrine. We asked another trike driver and he told us how to get there. I thought it interesting that we often do not know some of the things of interest in our own back yard. As we viewed the shrine, it was incredible the number of Philippines’s and American lives that were lost at the encampment of prisoners, over 55,000 Philippine’s and 5,000 Americans. Our knowledge of what took place at this Prisoner of War camp is mainly because of the books, “Children of the Promise”. We got to Clark shortly after noon. We traded cars with the Clark’s, as vehicles that have plates ending in 1 can not drive in Manila on Mondays and our car had a license plate with #1. We went on to Manila, getting there about 3:30 PM. We didn’t have any trouble finding the hotel this time, and our room was ready for us. We often feel that most days are like Sunday since we have been on our mission, but today didn’t seem like Sunday, as we didn’t get to attend any meetings. We also had to purchase our evening meal at the mall. There was a stand in the Mall that sold frozen yogurt, so I bought one. It had much more sugar in it than what I am used to, and it gave me problems during the night.
Monday, February 16, 2004
We got up at 2:45 AM so we could be ready to meet Clem in the lobby at 4 AM. We hired Clem to again drive us to the airport. We stayed with the girls until they entered the building and then came back to the hotel. We went back to sleep for a while. Before checking out we enjoyed the complimentary breakfast buffet. We got to Clark about 12:15 PM and exchanged some American currency, which Sandi & Shellie had given us in exchange for Filipino pesos. When we got to the mission home to trade our car back, the Clark’s invited us for lunch. We sure enjoyed being with them. President and Sister Brimhall also came before we finished so we visited with them for a few minutes. We left Clark Base about 3:30 PM and got home about 6 PM. I got sleepy so Mae drove part of the way. Marlyn had the house nice and clean when we got there. It has been a wonderful week and we are going to miss those girls very much, but we are tired. Bob sent us two packages. The one was another bucket of whey and the other contained hair spray and corral calcium plus there was a video that had JAG recordings on it. We watched two of the shows before going to bed.
Tuesday, February 17, 2004
We slept in. We worked on getting an e-mail off to our family with some pictures attached. It seems to always take a long time when we get on the internet. We went down town and paid our electric bill, then went to San Jose this afternoon grocery shopping and bought another transformer to replace the one we left at Baguio. I worked on catching my journal up to date. It was sure hard to keep it up while the girls were here.
Wednesday, February 18, 2004
We were again late getting to bed last night, so when the alarm went of a 6 AM, we shut it off and slept in. We had to hurry to be dressed before Marlyn came this morning. Time went by fast this morning and before we knew it Marlyn had dinner ready for us. After lunch we went to San Jose to get some T shirts for Mae to use in her talk which she is to giving on Saturday at the YW New Beginnings program in Paniqui. We also paid our phone bill at the PNB in San Jose as the phone company office is closed in Munoz. We stopped to drop off the T-shirts at President Gazmanas as he will print the words on the T-shirts for Mae. While there I visited with President Gazmana while Mae trained Eliza since she is the YW President in Munoz 2. Eve is a counselor in Munoz 1 YW so she will be training her and the rest of their presidency on the 29th. We came home and listened to the recording of Terry Thomas’s funeral. It was a very good program, but brought some tears. I finished catching my journal up to date, while Mae studied her talk. It was a good thing I had made daily notes, or I would have never been able to have remembered what all we had done this past 10 days. I popped some pop corn to eat while we watched the last JAG show which Bob had recorded for us. We enjoyed relaxing,
Thursday, February 19, 2004
We got up just before 6 this morning. We picked up the Munoz Elders at 9:15 AM and went to Cabanatuan where half of the mission elders gathered to meet with President Dallin H. Oaks of the Quorum of Twelve Apostles and President of the Philippines Area. We first had pictures taken and then ate lunch. The lunch was sweet and sour chicken over rice. They gave me a special dish leaving the sweet & sour sauce off. President & Sister Oaks, President & Sister Brimhall, President & Sister Clark and Mae & I were all served lunch in a separate area where we could visit. It was neat to be with an Apostle to just visit and eat. When we met in the missionary conference, Sister Brimhall spoke first on the Light of Christ, then President Brimhall spoke on Love, Sister Oaks spoke bearing testimony that she know that Jesus is the Christ and that he love each of us. President Oaks then covered several topics and gave great council. From the conference we drove to Paniqui, taking the Munoz Elders as far as Baloc, where they took a jeepnie on to Munoz. At Paniqui we attended a Member & Investigator Fireside with President Oaks being the main speaker. It was well attended with almost half of the congregation coming from the Guimba District. It was a special day to be at the feet of President Oaks. We were going to go out to eat after at Cindi’s, with President and Sister Clark, but they were closed. We stopped at the Total Station and got some refreshments and visited for a few minutes. It was 9:45 PM before we got home.
Friday, February 20, 2004
We attended District Development meeting with the Guimba District this morning. Marlyn had dinner ready for us when we got home. She asked us about some concerns that she has with the Branch President keeping confidentiality of the members and the concerns about the interpretation of the law of tithing. I did call President Clark and visit with him about it. We got on the inter-net and were there for quite a while. Mae did a lot of studding for the talk she has been asked to give tomorrow at the Panique Young Women New Beginnings program. President Gasmenia painted some lettering on tee shirts for Mae, so I went over and got them.
Saturday, February 21, 2004
I had a frustrating dream which woke me in a depressed mode. Mae was concerned about her talk today, so we didn’t have the best morning. We went out to Paniqui where Mae gave her talk and it went well. I set out in the car and did some studying of the Handbook. We came back home and ate lunch. I then went to the Munoz Chapel where I met President Clark and President Mercado and we discussed the Temple Recommend situation, and if I understand what is happening it is being handled right. I stayed for the Mission correlation before coming home. We went out to Paniqui for a special evening called “Couples Night Out”. It was put on by the youth for the couples to have an evening out together. It was a lot of fun and a very enjoyable evening. It was 10:30 PM before we got home.
Sunday, February 22, 2004
We slept in this morning and it seemed good since this is the first morning in a long time that we were able to do so. We didn’t have breakfast until 10:00 a.m., but it was delicious as I made hash browns with bacon in it, scrambled eggs and toast. We worked on church items and got ready to go to Guimba 2nd Branch. When we got almost to the Church, Mae remembered that she had left the meat cooking on the stove and we would be gone for at least 5 hours, so it would be burned. I left after Sacrament Meeting to go home and put it in the fridge. It is a good thing that I did, otherwise we might have had the house on fire. Mae feels there is some progress being made in Primary, but still more progress needs to be made. We wish we had another month instead of only one more week with this branch. They still need lots of help. We stayed for their PEC which didn’t start until about 5:00 p.m. as the Branch Presidency had to help with tithing first. The Elders texted us wanting to know what time they should come over for dinner. We told them we were just leaving the Church, so it would be about 7:00 p.m. They texted us back asking if we could pick them up at President Neito’s as they were in a PEC meeting with them. We did and it was 7:45 before we ate dinner. The Elders visited until 9:15 when they had to leave as they have to be in their home by 9:30 p.m. I called President Brimhall about a concern which was made to me in PEC meeting. Goodnight.
Monday, February 23, 2004
I think that I must have turned the alarm off and didn’t realize it, so we slept in until about 6:30 AM. That made it to late to go walking. Marlyn came at 8 AM and Marlin came shortly after that to wash the car. We did some planning and then studied the scriptures for a while. We had some new thought as we read Section 138, of the Doctrine and Covenants. That took us a lot longer as we discussed it and cross referenced it. We got on the instance messaging with Mike, Scott and Jeff. When Jeff gets on Gale is usually there with him. We sure enjoy that hour with the children. Mae then worked on the Family Letter, while I took a short nap. After lunch we kept busy on the computer with various projects. Our landlord came over and we signed the rental contract for the coming year. He is going to come Friday to do some work on the bathroom trying to stop the leak in the wall which leaves a poodle of water on the floor. Roger Silvia came over at 5 PM and talked to us about finances and their temple wedding. As we visited the thought came to me, that we might take his computer on consignment until he could buy it back from us. As I thought about it, Mae made the same suggestion to him, then turning to me and asking if it would be alright to do that. We felt the Lord had prompted us to do that to help them. We will give them P1,000 for a wedding gift (transportation to the temple in Manila for his family) and P3,000 for his computer. He will bring the computer to our house that we might use it. Any time he can repay the P3,000 and it can be in payments, then we will return the computer to him. Next we had a problem of getting Roger and Heideilyn to President Brimhall to get their temple recommends signed. I called and talked to President Brimhall and he scheduled Thursday 26th for them to meet him at the Tarlac Stake Center at 2:30 PM. Later I looked at the calendar and the schedule didn’t seem right, so while I was talking to President Clark, on other matters, I asked about the Thursday schedule. He said I had better recheck with President Brimhall. When I did the day was changed to Friday. I had to call Roger to let him know. We just hope things will work out for them. We plan to attend the Temple with them, but we will drive our own car. I visited Elder Elison as to Friday and found that they will not be having District Development meeting on Friday. That will leave us free Friday morning. We will go out to Panique at 3:30 PM to train the District Clerk. I called Elder Gardner and visited with him about visiting with President Dela Cruz concerning releasing Roberto Sargan as 1st counselor and putting him in as Young Men President, and then calling a new counselor. I asked elder Gardner to pray about it tonight and then to call me back. I think it would be a good change for the Branch.
Tuesday, February 24, 2004
We went walking at the college this morning. After breakfast, studying our scriptures, etc., Mae and I worked on finding pictures for our presentations and scanning them into the computer. I then finished them up in adobe Photo Shop. After lunch, we went to the bank, then grocery shopping at CVC and then to Roger & Heidi Silvia’s where we are buying their computer on consignment so they can have the money to catch up their tithing for last year and be able to get a temple recommend. They are very thankful we could help them, and we are thankful to the Lord as both Mae and I received the same inspiration last night to take their computer on consignment as they are planning to get married in the temple on Saturday. Roger is in Manila today to interview for some jobs and then he will go to the temple to make arrangements for their wedding on Saturday. We came home, put the groceries away and then took brownies and a “thank you” card to President Gasmena and his family as President Gasmena had printed words on 3 t-shirts for Mae to use as visual aids for her talk last Saturday at the New Beginnings program in Paniqui. We came home, had supper and I read in the Handbook of Instructions for Bishop/Branch President’s interviews while Mae worked on Primary work on the computer. We also put on the CD which Scott had sent to us of their family. Goodnight.
Wednesday, February 25, 2004
We were a little late getting up but went walking anyway. We took our showers and finished just about the time Marlyn came. After eating breakfast and reading our scriptures, we set up Roger’s computer for us to use. It makes it nice to have two computers, so we can both be working on the computers at the same time. I got a good start on my interview presentation. We went out to Guimba 2nd Branch, leaving here at 3:00 p.m., to see the mid-week activity, which was to start at 4:00 p.m. It was an “Sports Fest” for the YM, YW and the Primary. The Primary President, Sister Delia, her husband and 4 children arrived at 4:00p.m. Shana, the YW President and her boyfriend, Bong, arrived shortly after, but were not prepared with the items needed for the activity, so they left to go get them. Sister Delia and Mae visited about Primary and then had a good visit about family life, etc. I visited with Roberto and others. Brother Delia drew pictures on the blackboard with his children, keeping them entertained for a while. The branch clerk was in his office watching the movie “The Other Side of Heaven” which he thought the YM & YW were watching for the activity that night. Sister Delia had told Mae that her husband had given the children chores to do and said after that, they would go to the branch activity. The children were excited and had worked hard so they could go. Mae was concerned since they had already been there for an hour and no one was there to start the activity. Other youth and children were coming by now, so she asked the branch clerk to bring the TV/VCR out to the cultural hall and start the movie, which he did. About 45 minutes later, Shana and Bong returned with the items and equipment for the sports fest and they got that going. Wow, we sure wish we would break the Filipino members of starting their meetings and activities late. This is so unfair for the members who come on time. We always stress to start and end on time – that this is Gospel Culture and they need to change from Filipino culture to gospel culture.
We also came for the Baptismal of the Fernandoz family. Brother and Sister Fernandoz had to be married, (they have been in common law marriage for thirteen years). President Cabuyaban performed the marriage, and then Brother Fernandoz had to be ordained to the Aaronic Priesthood to the office of Priest, and then he baptized his wife, his son and one of his daughters. The youngest daughter is only three years old. We went over to their home afterwards for a small wedding reception. It was quite a walk, from where we had to park the car. We walked on just a trail through several different yards. There was no light, so the Elders led the way. They stopped to hold up the wires for us, so we wouldn’t run into them in the dark and get hurt. They had to show us where there were boards to cross some ditches, and other ditches which we had to step across, and low handing roofs which we had to duck under. One place we had to step over a fence and at the same time, watch out for a low hanging branch. One of the Elders mentioned that we were on an obstacle course. On the way back, we had an older lady follow us with a flashlight so that gave us some help. It’s a good thing because the Elders didn’t wait for us on the way back and we might have had problems. They are used to that path as they go to these homes quite often. It was very interesting. There We then went with Elder Gardner and his companion to President Dela Cruz’s and visited with him about making some changes to the Branch Presidency and Putting Roboto in as Young Men’s President. Mae visited with Sister Dela Cruz and the children and I wondered how she would do since Sister Dela Cruz speaks very little English and mainly speaks in Ilicano which doesn’t resemble Tagalog. Mae said it turned out better than she anticipated also. I guess the two of them spoke the language of Love, as we do love these people. It was some walk to get to the car, but President Dela Cruz walked out to the car with us. It is one of the customs of these wonderful people to do that. Mae had packed us a lunch, but we hadn’t had time to eat it until we were on our way home. Mae had eaten some cake at the reception, but I couldn’t have any. It was 10:30 PM before we got home. I filled out my journal and we went to bed. I had to sleep part of the night in the chair since I had eaten so late.
Thursday, February 26, 2004
We got up and went walking at the collage this morning. After showering and eating breakfast, we read in the scriptures for a while. We worked on presentations most of the day. Mae worked on a presentation to teach the importance of financial planning and budgeting. I continued to work on a presentation for bishops and branch presidents about interviews. I did take time to visit with Brother and Sister Umipig and asked them to attend a meeting with Elder and Sister Swenson, Brother Garcia, Mae & I and the staff of the Guimba District Hospital. I also went down to visit Roger Silvia, but he wasn’t home. Heidi said he got a job and was in Cabanatuan getting some tests. He called me later and all is well. He also helped me with a computer problem. It was late before we got to bed.
Friday, February 27, 2004
Today being my 65th Birthday Anniversary, Mae gave me this card, which expresses our feelings and goals. I added the “and it can be”, as that is the knowledge the Gospel gives to us. Marlyn also brought me a crochet cap, which she made. She is special and so thoughtful. Marlyn saw the calendar that we have on our refrigerator and saw that my birthday was today.
We left just before noon and went to Guimba to visit with President Cabuyaban. Mae made a large chicken casserole to take out for lunch with them. We enjoyed eating and visiting during our lunch. I then had him show me his farm crop. The insects have truly destroyed that crop. He has a good plan, but the problem is capital to do it with. Am not sure if I can do any thing about it, but we went over the expenses and figured a probable return on the investment. I think it look very good. We will see what can be done. From there we went to Paniqui and met with President Nadado and his clerk. I sowed the clerk how to update the Branch Organizational reports, and got them transferred to him. Elder Elison and Elder Lopez came and helped also. Before coming home we went out to eat at Cindi’s for my Birthday. Mae made a lunch for tomorrow, before we went to bed. Elder Weber and Elder (he looks like Brady) stopped by to bring us a letter and the branch organizational reports from the Guimba District.
Saturday, February 28, 2004
We got up at 3:30 AM and had planned on leaving for Manila at 4:30, but didn’t make it until 5 AM. The traffic was light at that time of the day so we made good time. After getting on the freeway we stopped at a Jollibees and got some breakfast. We had a little trouble, in Manila, getting turned around and finding the right road to the Temple, but got there at 9 AM. We were early so that gave us time to go to the Distribution Center for some items we wanted. When we got back to the Temple at 9:45, Roger and his family were there and looking for us. We had a wonderful session, after going into the Sealing room and witnessing Roger and Heidi being sealed to each other and then their children, Darrin and Karen being sealed to them.  Mae had made a nice lunch that we ate in the pavilion in back of the Temple. We took some pictures before leaving them and returning home. I felt bad that we couldn’t help them more with transportation, for they had to use the bus system. I got to tired to drive so we stopped in Tarlac and took a ˝ hour nap. We got home at 9 PM very tired. I didn’t feel the best so slept propped up on pillows most of the night and then in the chair the rest of the night.
Sunday, February 29, 2004
Because I didn’t sleep to well last night Mae let me sleep in. We attended meetings at Guimba 2nd Branch again today. I had to write a note to remind the Branch Presidency to Present for a sustaining vote, the ordination of Brother Fernandoz to the Aaronic Priesthood to the office of Priest. I went into Primary with Mae and realized the great need this people have to be taught leadership. I visited with the Elders about the Guimba area map, so that I might make recommendations as to the possibility of making a couple of Basic Units. I also visited with Brother Sargon about the changes that I had suggested having him released from the Branch Presidency and called to be the Young Men’s President. When we went to leave the church, the roads were blocked by a parade. We got back to Munoz in time for Mae to teach some leadership to the Young Women’s presidency in the Munoz branches. When we got home Mae was tired, so I prepared some super for us. We got on the e-mail for a few minutes getting some letters from Sandi and Mike. We also got a e-mail from President Brimhall with a copy of Sandi’s letter to him. Mike attached some pictures with his letter. They are special, but they sure made me homesick for my family. I called and visited with President Clark concerning some problems, and then called President Brimhall about the problems of President Cabuyaban. He felt my solution sounded ok, he feels that I will be teaching President Cabuyaban more about farming and how to keep records. He also thinks I should encourage him to teach others once he has learned.


THAT THING YOU DO 1996 A film review by Timothy Voon Copyright 1997 Timothy Voon
Cast: Tom Everett Scott, Jonathan Schaech, Liv Tyler, Steve Zahn, Ethan Embry, Tom Hanks, Charlize Theron, Obba Babatunde Director: Tom Hanks Screenplay: Tom Hanks Music: Howard Shore U.S.
Some of us carry the burden of two jobs in our life time - the job we do for a living, and the job which we wished we were doing for a living. Then there are those who find the two are actually one and the same - how blessed are they.
So it is not surprising when a talented drum player (Everett Scott), locked in the confines of a stuffy hardware store, doomed to follow in the footsteps of his father the owner, breaks free of his paternal chains to seek his life long dream - playing music. Dreams become reality and soon the band 'The Wonders' is formed. Their one hit 'That Thing You Do' climbs the record charts at a record-breaking, phenomenal rate. This song is repeated so many times during the movie, that you will either be jumping up and down on the dance floor with the 'Go Go' dancers, or tearing your hair out with utter insanity.
Tom Hanks in his directing debut, has chosen a movie piece well suited to his genre. He seems to relish and thrive on anything 60'ish. Namely, the chocolate eating, mother loving 'Gump Man', or plummeting rockets of the 13th attempt which both fall somewhere on the JFK timeline. So where does 'That Thing You Do' fit into this picture - well probably some where between Vietnam and the Moon.
Hanks has decided to fill his movie with youth, colour and music. These new faces Everett Scott, Tyler, Schaech and Zahn makes the most of their opportunity to display their talents in 'That Thing You Do'. Knowing full well that this 'make it' or 'break it' movie could terminally label them as 'One Hit Wonders' or 'Multi-hit Contracts'. An adventurous directing effort by Hanks, who also contributed to the musical score of this movie.
Whatever caused the ultimate destruction of the 'Beatles'? Some people will say Yoko Ono, others will say anti-psychotic medication. Who knows? Maybe they just got tired of each other. In this movie, it only requires the selfish ambition of one individual, to destroy the web of friendship which was in truth the basis of this band's success. A pleasant movie at any level, but unfortunately, 'That Thing You Do' doesn't quite do it for me.
Pop Feel Scale: 0% Madonna / *THE WONDERS* / The Beatles 100%
Timothy Voon e-mail<EMAIL_ADDRESS>The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


“How you look at it is pretty much how you'll see it” - Rasheed Ogunlaru
2+ Years
6+ Months
2+ Months


EmpowerKids Foundation's mission is to empower children in developing countries through education. We are committed to supporting small communities in developing countries by creating supportive environments for learning. We build infrastructures that will allow children to learn and develop without being impeded by economic hardships.
EmpowerKids Foundation, Inc.
4698 W Campbell Ave
San Jose, CA 95130


${properties['emptyText'] || "No downloads pending" @ i18n}
Please refrain from using this component on AEM 6.5.


One dollar can be earned if you complete both surveys and active tasks 3-days in a row.
Each survey or active task is also worth 30 points. Sunday's survey is longer, but you can earn 50 extra points.


The game is simple. You must figure out the code to bypass the puzzle.
This is done by entering digits into the control panel above, which will tell you how close you are.
CORRECT - The digit in this box is 100% correct: both the right digit and in the right location.
PART CORRECT - The digit in this box is in the code, but not at this location.
INCORRECT - The digit in this box does not feature in the code at all.


Home
About us
Data source
"You want to study medicine? let's see what future holds for you"
income and unemployment rate
Academic Data
compare


You can integrate Apigee features into your app by including the SDK in your project. You can do one of the following:
If you've already got an Android project, you can integrate the Apigee SDK into your project as you normally would:
Add apigee-android-<version>.jar
to your class path by doing the following:
Copy the jar file into the /libs
folder in your project.
apigee-android-<version>.jar
, then click Open.apigee-android-<version>.jar
at the top of the class path:
IMPORTANT: Select the checkbox for apigee-android-<version>.jar
, then click the Top button.
If you are using Ant to build your application, you must also copy apigee-android-<version>.jar
to the /libs
folder in your application.
Add the following Internet permissions to your application's AndroidManifest.xml
file if they have not already been added. Note that with the exception of INTERNET, enabling all other permissions are optional.
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
To initialize the App Services SDK, you must instantiate the ApigeeClient
class. There are multiple ways to handle this step, but we recommend that you do the following:
Application
class, and add an instance variable for the ApigeeClient
to it, along with getter and setter methods.
public class YourApplication extends Application { private ApigeeClient apigeeClient; public YourApplication() { this.apigeeClient = null; } public ApigeeClient getApigeeClient() { return this.apigeeClient; } public void setApigeeClient(ApigeeClient apigeeClient) { this.apigeeClient = apigeeClient; } }
Application
subclass in your AndroidManifest.xml
. For example:
<application> android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:name=".YourApplication" … </application>
ApigeeClient
class in the onCreate
method of your first Activity
class:
import com.apigee.sdk.ApigeeClient; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); String ORGNAME = "{{currentOrg}}"; String APPNAME = "{{currentApp}}"; ApigeeClient apigeeClient = new ApigeeClient(ORGNAME,APPNAME,this.getBaseContext()); // hold onto the ApigeeClient instance in our application object. YourApplication yourApp = (YourApplication) getApplication; yourApp.setApigeeClient(apigeeClient); }
This will make the instance of ApigeeClient
available to your Application
class.
The following classes will enable you to call common SDK methods:
import com.apigee.sdk.data.client.DataClient; //App Services data methods import com.apigee.sdk.apm.android.MonitoringClient; //App Monitoring methods import com.apigee.sdk.data.client.callbacks.ApiResponseCallback; //API response handling import com.apigee.sdk.data.client.response.ApiResponse; //API response object
Once initialized, App Services will also automatically instantiate the MonitoringClient
class and begin logging usage, crash and error metrics for your app.
To verify that the SDK has been properly initialized, run your app, then go to 'Monitoring' > 'App Usage' in the App Services admin portal to verify that data is being sent.
The DataClient
and MonitoringClient
classes are also automatically instantiated for you, and accessible with the following accessors:
DataClient dataClient = apigeeClient.getDataClient();
Use this object to access the data methods of the App Services SDK, including those for push notifications, data store, and geolocation.
MonitoringClient monitoringClient = apigeeClient.getMonitoringClient();
Use this object to access the app configuration and monitoring methods of the App Services SDK, including advanced logging, and A/B testing.
With App Services you can quickly add valuable features to your mobile or web app, including push notifications, a custom data store, geolocation and more. Check out these links to get started with a few of our most popular features:
The SDK includes samples that illustrate Apigee features. You'll find the samples in the following location in your SDK download:
apigee-android-sdk-<version> ... /samples
The samples include the following:
| Sample | Description |
|---|---|
| books | An app for storing a list of books that shows Apigee database operations such as reading, creating, and deleting. |
| messagee | An app for sending and receiving messages that shows Apigee database operations (reading, creating). |
| push | An app that uses the push feature to send notifications to the devices of users who have subscribed for them. |


# Simple markdown parser in Blogger
TL;DR I wrote a small script that let me use few simple markdown features in Blogger, the code can be found on GitHub
When writing a blog post it is much easier to insert code blocks using 3 backticks `\`\`\`` (GitHub Flavored Markdown), for example:
```js
```js
function foo() {
console.log('Im foo !!');
}
\```
```
Or, adding code quotes using a single backtick, like: `\`quote\``.
There is a `bug` if we have single escaped backtick \` followed by real `backtick` on the same line
If there are only single escaped backticks \` then that's ok \`, ok?
Or, adding titles using hashes, like: `# This is a title`
There is a [support for links](http://www.google.com){_blank}, by using: \[text\](url){target}
This can be done by parsing the html and do some replacements of the text with html tags, there are 2 methods I came up with.
## Using Regex
Here is one options with `RegExp` only
```js
function parseWithRegex(post) {
var html = post.innerHTML;
// Replace all titles (h1/h2/etc), regex explanation:
// ^[\s]* - Line can start with spaces, we ignore those
// ([#]+) - Match a sequence of #
// (?:\s)* - After the hash we can have many spaces, we ignore those
// (.*?)(?:<br>)?$ - Then match everything in non-greedy mode (as little as possible) until the end, line can end
// with <br> so we ignore it
html = html.replace(/^[\s]*([#]+)(?:\s)*(.*?)(?:<br>)?$/gm, function(match, hashes, title) {
var headerLevel = hashes.length;
return '<h' + headerLevel + '>' + title + '</h' + headerLevel + '>'
});
// Replace all code blocks, regex explanation:
// ^``` - line should start with ```
// ([a-zA-Z]+)? - Then optionally we could have a language (characters only)
// ((?:.|\n)*?)``` - Then we match anything until ```, since '.' doesn't match \n we need (.|\n),
// and we don't want that brackets in the match so adding ?:
// and we want to match until first occurrence of ``` (non-greedy) so adding *?
// (?:\
)?$ - Then we expect br tag or end-of-line
html = html.replace(/^```([a-zA-Z]+)?((?:.|\n)*?)```(?:
)?$/gm, '
$2
');
// Next replace code quotes, regex explanation:
// Match anything between backticks, the character before the closing backtick should not be "\" (escaped backtick)
html = html.replace(/`(.*?[^\\])`/g, '$1');
// Next replace all escaped backticks (\`) with backticks
html = html.replace(/\\`/g, '`');
post.innerHTML = html;
// Loop thru all the created code blocks and remove all
, also remove the first "\n"
var codes = post.querySelectorAll('pre > code');
for (var i = 0; i < codes.length; ++i) {
var code = codes[i].innerHTML;
code = code.replace(/
/g, '').replace(/^\n/, '');
codes[i].innerHTML = code;
}
}
```
The problem with the method above is that it will replace non-escaped single backticks (`\`xxx\``) within a code block with a <code> tag, which is not desirable.
This can be solved by escaping all backticks within the code block, but lets try another approach which will keep `code blocks` untouched
## Parsing line-by-line
We can take our post html, split it into array using `\n` (so each line is a cell in the array), then we loop thru all
the lines and do replacements, if we identify that there is a code block starting, we can mark it and not do anything
until the code block closes (actually there is one replace we should do in code block, and that is if we have an escaped end block backticks, `\\`\`\``)
```js
function parseWithArray(post) {
// See regex explanations in `parseWithRegex`, it is quite similar
var brRegex = /
/g;
var beginCodeRegex = /^```([a-zA-Z]+)?(?:<br>)?/;
var endCodeRegex = /^```(?:\s)*$/;
var codeQuoteRegex = /`(.*?[^\\])`/g;
var escapedCodeQuoteRegex = /\\`/g;
var titleRegex = /^[\s]*([#]+)(?:\s)*(.*?)(?:
)?$/;
var html = post.innerHTML;
var lines = html.split('\n');
var incode = false;
for (var j = 0; j < lines.length; ++j) {
var line = lines[j];
if (line === null) {continue;} // See later that we put null in the array[j+1], skip those cells
// Check if we are in code block
if (incode) {
// No
 allowed in code blocks
line = line.replace(brRegex, '');
// Check if this is the end of the code block
if (endCodeRegex.test(line)) {
incode = false;
line = '
';
}
lines[j] = line;
continue;
}
/* Not in code block */
// Check if this is a beginning of code
var m = line.match(beginCodeRegex);
if (m) {
incode = true;
// The first line in a pre block must be on the same line of the pre block,
// otherwise we will get an empty space (as pre render \n)
lines[j] = '
' + lines[j+1].replace(brRegex, '');
lines[j+1] = null;
continue;
}
/* This a regular line */
// Replace titles (#)
line = line.replace(titleRegex, function(match, hashes, title) {
var headerLevel = hashes.length;
return '<h' + headerLevel + '>' + title + '</h' + headerLevel + '>'
});
// replace any inline code quotes `xxx`
line = line.replace(codeQuoteRegex, '$1');
// Next replace all escaped backtick (\`) with backtick
lines[j] = line.replace(escapedCodeQuoteRegex, '`');
}
post.innerHTML = lines.filter(function(l) {return l !== null;}).join('\n');
}
```
That's it, again, the code can be found on GitHub
Enjoy!


--- layout: post title: ADFS from a .Net SDK application categories: [] tags: dotnet-sdk adfs authentication status: publish type: post published: true meta: {} ---
In a previous post I examined how to configure RM to authenticate via ADFS when using the native client, in this post I show how to write a .Net SDK application to authenticate via ADFS.
This is the console application I used in the video above
class Program { private static ClientAuthenticationMechanism getAuthenticationMechanism(string dbId) { foreach (int authenticationMethod in new int[] { 3, 2, 0 }) { if (Database.IsAuthenticationMethodSupported("G1", (ClientAuthenticationMechanism)authenticationMethod)) { return (ClientAuthenticationMechanism)authenticationMethod; } } throw new ApplicationException("No Authentication method found."); } static void Main(string[] args) { TrimApplication.TrimBinariesLoadPath = "D:\\82\\x64\\Debug"; TrimApplication.HasUserInterface = true; TrimApplication.Initialize(); using (Database database = new Database()) { database.Id = "G1"; database.WorkgroupServerName = "local"; database.AuthenticationMethod = getAuthenticationMechanism("G1"); database.Connect(); Console.WriteLine("{0} - {1}", database.CurrentUser.FullFormattedName, database.CurrentUser.Uri); } } }
As I mention in the video the method Database.IsAuthenticationMethodSupported will only return a valid response if the native client has connected previously from the current machine. If no connection has been made previously then all authentication mechanisms will return true.


PURPORMANCE OF HYDROFOIL SYSTEMS
on Cannon, dr.
ty of Rochester
Submitted in Partial Fulfillment of the Requirements for the Degree of Doctor of Science
TE OF TECENOLOGY
MASSACHUSETTS INS”
Slgenature of Author SORT ee Ee Department of Me@hanical Engineering
ertified by
seen ene nce ae cee cn lef NE Ang Coane ner E nll py ca 4 on om, . Yoéeis Supervis
Lee e ee CR 2 Ghairman, Departmen
ConnitYye on Graduate Sfadents —


Polymorphism is the ability of an object to take on many forms. The most common use of polymorphism in OOP occurs when a parent class reference is used to refer to a child class object.
Any Java object that can pass more than one IS-A test is considered to be polymorphic. In Java, all Java objects are polymorphic since any object will pass the IS-A test for their own type and for the class Object.
It is important to know that the only possible way to access an object is through a reference variable. A reference variable can be of only one type. Once declared, the type of a reference variable cannot be changed.
The reference variable can be reassigned to other objects provided that it is not declared final. The type of the reference variable would determine the methods that it can invoke on the object.
A reference variable can refer to any object of its declared type or any subtype of its declared type. A reference variable can be declared as a class or interface type.
Let us look at an example.
public interface Vegetarian{} public class Animal{} public class Deer extends Animal implements Vegetarian{}
Now, the Deer class is considered to be polymorphic since this has multiple inheritance. Following are true for the above examples −
When we apply the reference variable facts to a Deer object reference, the following declarations are legal −
Deer d = new Deer(); Animal a = d; Vegetarian v = d; Object o = d;
All the reference variables d, a, v, o refer to the same Deer object in the heap.
In this section, I will show you how the behavior of overridden methods in Java allows you to take advantage of polymorphism when designing your classes.
We already have discussed method overriding, where a child class can override a method in its parent. An overridden method is essentially hidden in the parent class, and is not invoked unless the child class uses the super keyword within the overriding method.
/* File name : Employee.java */ public class Employee { private String name; private String address; private int number; public Employee(String name, String address, int number) { System.out.println("Constructing an Employee"); this.name = name; this.address = address; this.number = number; } public void mailCheck() { System.out.println("Mailing a check to " + this.name + " " + this.address); } public String toString() { return name + " " + address + " " + number; } public String getName() { return name; } public String getAddress() { return address; } public void setAddress(String newAddress) { address = newAddress; } public int getNumber() { return number; } }
Now suppose we extend Employee class as follows −
/* File name : Salary.java */ public class Salary extends Employee { private double salary; // Annual salary public Salary(String name, String address, int number, double salary) { super(name, address, number); setSalary(salary); } public void mailCheck() { System.out.println("Within mailCheck of Salary class "); System.out.println("Mailing check to " + getName() + " with salary " + salary); } public double getSalary() { return salary; } public void setSalary(double newSalary) { if(newSalary >= 0.0) { salary = newSalary; } } public double computePay() { System.out.println("Computing salary pay for " + getName()); return salary/52; } }
Now, you study the following program carefully and try to determine its output −
/* File name : VirtualDemo.java */ public class VirtualDemo { public static void main(String [] args) { Salary s = new Salary("Mohd Mohtashim", "Ambehta, UP", 3, 3600.00); Employee e = new Salary("John Adams", "Boston, MA", 2, 2400.00); System.out.println("Call mailCheck using Salary reference --"); s.mailCheck(); System.out.println("\n Call mailCheck using Employee reference--"); e.mailCheck(); } }
This will produce the following result −
Constructing an Employee Constructing an Employee Call mailCheck using Salary reference -- Within mailCheck of Salary class ailing check to Mohd Mohtashim with salary 3600.0 Call mailCheck using Employee reference-- Within mailCheck of Salary class ailing check to John Adams with salary 2400.0
Here, we instantiate two Salary objects. One using a Salary reference s, and the other using an Employee reference e.
While invoking s.mailCheck(), the compiler sees mailCheck() in the Salary class at compile time, and the JVM invokes mailCheck() in the Salary class at run time.
mailCheck() on e is quite different because e is an Employee reference. When the compiler sees e.mailCheck(), the compiler sees the mailCheck() method in the Employee class.
Here, at compile time, the compiler used mailCheck() in Employee to validate this statement. At run time, however, the JVM invokes mailCheck() in the Salary class.
This behavior is referred to as virtual method invocation, and these methods are referred to as virtual methods. An overridden method is invoked at run time, no matter what data type the reference is that was used in the source code at compile time.


{{formErrors.password}}
Delete this user will delete all relation emails and CANNOT BE UNDONE.
To delete this user, please type the user full email address {{user.email}}


{% extends "account/base.html" %} {% load django_tables2 django_bootstrap_breadcrumbs datetime_filter %} {% block head_title %}Teams{% endblock %} {% block breadcrumbs %} {% breadcrumb "Home" "/" %} {% breadcrumb "Teams" "team-list" %} {% breadcrumb team.name "team-detail" team.slug %} {% breadcrumb competition.name "team-detail" competition.slug %} {% render_breadcrumbs "breadcrumbs.html" %} {% endblock %} {% block content %}
| Event | Time |
|---|---|
| {{ result.event.name }} | {% include 'partials/time.html' with individual_result=result %} |


As we saw in a previous post, generics aim for providing to the compiler the required information to properly check the code despite delegating the choice of the type to a later time (instantiation for generic types, call for generic methods). As such, it allows to specify constraints like which types are acceptable and how the different variables are related to these types.
Usually, when speaking about Java, resources about Generic Programming focuses on the use of generics, although we saw in a previous post that it is not the only way to make generic programs.
Yet, generics have been introduced in Java to improve type checking at compile time, not to unlock the ability to make generic programs in the broad sense: the Oracle tutorial may say so, but what can be done with generics can be done without them by using the type Object
and proper casting.
This is what was done before the introduction of generics, with what is called now raw types: it was important to remain retrocompatible with "generic" programs of the time, but generics only improve the already present ability to make generic programs, it does not bestow it.
However, generics is not everything there is to know about to be able to produce generic programs in Java. In this post, we do not speak here about pieces of code that do not compile because of a misuse of generics, aspects which are already detailed elsewhere, but compilable code which leads to non-generic programs. Said another way, valid uses of generics which nevertheless show that something has gone wrong in the design, what one would call anti-pattern.
There is two evidences to provide to show that generics and generic programs are different things: by showing that generic programs do not require generics, and by showing that generics do not require programs to be generic. We show here an example for each of them.
As mentionned, generics have been introduced with Java 5 in 2004, but people were already able to make generic programs before this introduction.
ArrayList
for example was introduced in Java 2, and at that time was dealing with Object
items, as shown by the Java 2 documentation.
This is how it was able to deal with any kind of instances, and this was possible because it needs no information about the item itself.
Surely, it was possible to add a String
to a list which should contain only Integer
instances without even a warning, meaning that this kind of mistakes should be checked at run time, but it was already possible to implement generic classes without generics.
This class, and all the classes which existed before Java 5 and were refined to use generics from this version, provide a great evidence that generics are not a requirement for generic programming in the broad sense.
The other way around, and probably the most striking example of it, is made by Giovannelli, who makes a really good point by comparing the parametric polymorphism and ad-hoc polymorphism of Strachey.
Polymorphism in Java is the ability for a piece of data to be treated in different ways by changing its type.
For example, an instance of LinkedList
can be stored in a variable of type LinkedList
, List
, Collection
, and many other compatible types, and any instance can be treated as an Object
independently of its actual type.
The actual type of the instance is obviously an instantiable class, but the apparent type of the instance (i.e. the type of the variable which stores it) decides what is visible at that time (the LinkedList
methods of the instance are unavailable if we store it in a Collection
variable).
Parametric polymorphism is a polymorphism which only cares about the apparent type of the instance, like LinkedList<T>.addFirst(T item)
which adds item
at the beginning of the list, whatever it is.
Ad hoc polymorphism, at the opposite, simply hides the type-specific details, like the following method:
<T> T add(T a, T b) {
if (a instanceof Integer) {
// Add 2 integers
return (T) new Integer((Integer) a + (Integer) b);
} else if (a instanceof Double) {
// Add 2 doubles
return (T) new Double((Double) a + (Double) b);
} else if (a instanceof String) {
// Concatenate 2 strings
return (T) ((String) a + (String) b);
} else {
throw new RuntimeException("Unmanaged type: " + a.getClass());
}
}
We can criticise this method in several ways, but let's focus on the polymorphism aspect.
With this code, it is true that the method can receive any type, but this is an example of code which needs to know the actual type of the instance to be implemented.
This is an example of program which uses generics while it is not generic in the broad sense, because it only manages the implemented types, not any type for which such a method would make sense (e.g. Float
and Long
are not managed).
We give later a more detailed explanation of why it is not generic, but this is again an evidence that generics is not all what there is to make generic programs.
Bounding generics is useful to ensure that only a given kind of instances is used, but producing generic code implies to seek for the least specific design.
In particular, the bounding of generics should be motivated by their use: if a generic method bounds a generics to List
but only uses its iterator()
method, then the generics is over constrained.
In this situation, List
should be replaced by Iterable
, which is the one specifying the iterator()
method.
For a generic type, the reasoning applies on the whole class or interface which specifies it: if the class or interface use nothing specific to the bounding type, then a parent class or interface should be considered or the bounding should be simply removed.
A tricky case is the bounding in interfaces and abstract classes, which are supposed to be extended: one may think that the bounding is motivated because we expect child classes to use these features. But one should not forget that any child class can apply a more restricted bounding to the generics its parent requires, thus ensuring that the relevant methods are available at the child level. So although programming with generics does not forbid it, producing generic programs does: if the current level does not motivate for such bounding, such bounding is irrelevant at the current level. Consequently, a generic programmer should seek for the least bounded definition, which allows to use the class or interface in the most various contexts. This is an application of the information layering assumption.
Additionally, the introduction of default methods in Java 8 allows to implement methods in interfaces, which can then be used as a motivation for bounding the generics. However, default methods are the ones which should be motivated based on the aim of the interface, not the reverse. For example, it makes sense for an abstract class having no member to be transformed into an interface with default methods, because it was designed with a functional purpose in mind. Nevertheless, aiming for a more generic design remain a goal of the generic programmer, so if two designs fulfill the same (relevant) requirements, then the most generic one should be preferred.
Pushing the reasoning of useless bounding further, which is an example of removal of useless constraints, one should pay attention to useless generics, which is another example of useless constraints. As we saw, generics helps the compiler to align types of instances, but if no such alignment is required, then generics are not required either. For example:
public <T> void print(T object) {
System.out.println("Object recieved: " + object);
}
This method specifies a generics T
for the instance object
, but this instance is never used in a situation where the type T
is required.
In such a case, the generics should be replaced by its bound, so T extends Number
sould be replaced by Number
, or by Object
if it is unbounded.
This preference comes from the law of parsimony, or for a more software-oriented reasoning the KISS principle.
By simply requiring an Object
, one does not have to care about the generics, while by adding the generics T
, additional care must be provided regarding which type to choose when calling the method.
This is particularly obvious for a generic type: if a generic type specifies a useless generics, people will still have to ask themselves which type to use when instantiating or extending it.
An exception to this rule is the use of multiple bounds: Java does not allow a parameter or a returned value to be a composition of several types, at the opposite of a generics T extends A & B & C
.
It is possible to do it without generics by using the adapter design pattern: the adapter implements the various interfaces the method requires, and any instance implementing all the interfaces can be wrapped into an adapter instance before to be provided to the method.
In order to avoid such extra work, a generics can be used as a reliable way to fulfil this requirement.
It is important to understand that a useless generics is a design issue, not an implementation issue: if this design is imposed by an interface that we implement, then such a design choice should not be argued because of this specific implementation. At best, we can argue about the relevance of implementing this interface, or implementing it in this way, but the relevance of the design of this method should be considered at the interface level, where it is required. This is again an application of the information layering assumption.
Raw types are generic types for which we omit to specify the type at instantiation time, like new ArrayList()
which omits to tell which type of item is listed.
These raw types act as if we provide the most generic type possible, so new ArrayList<Object>()
in this example.
However, it only does so loosely: a raw type is not strictly specified, for instance while the compiler complains with ArrayList<Object> list = new ArrayList<String>()
, it does not for ArrayList list = new ArrayList<String>()
.
This behaviour is for retrocompatibility with legacy code made before Java 5, when generics did not exist yet.
Consequently, you may then write s.set(1)
, which only generates a warning at compile time but fails at runtime because you provide an Integer
instead of a String
.
If we ignore the technical details which allow such weakness in the compiler checking, one may instead rely on a conceptual explanation: Java is a strongly (or statically) typed language, so the type is supposed to be chosen based on what one needs to do with it. As such, generics allow to delegate the choice of the type to the instantiation time, while raw typing simply refuses to take this decision, which breaks the strong typing assumption. One may argue that it is also true for generic methods which can infer the type implicitly from the data, but a generic method call is atomic: all the information is there, we cannot "loose" it. At the opposite, a generic type spread the type information over all its methods, which can be used far away from each other, thus allowing to loose the relevant information.
A last justification is that, for advanced generic programming, a particular care is needed to identify the right concepts to use. Consequently, refusing to decide which type to use is not a behaviour compatible with a generic programming mindset.
When designing a generic program, one should pay a particular attention not to be bound to a set of contexts which are over-restricted, for example by implementing a generic type which is applicable to specific implementations only, like the code provided at the beginning.
Despite the method accepting a pair of parameters with any type, the implementation clearly shows that it only covers pairs of Integer
, Double
, or String
instances.
Such a method builds on a contradiction: on one side the assumption that we don't need to know the type of the parameters, so using generics is enough, and on the other side the assumption that we need to know the type of the parameters, otherwise we cannot apply the proper operation.
Said another way, it is a consequence of the inability for the designer to answer this very basic question: should the code be generic or not?
Being generic is not a quality, it is a design choice: a generic code aims for reusability, which means that context-specific aspects must be ignored, at least at this level, otherwise we loose the ability to use it in more contexts. The opposite of generic code is not bad code, it is optimised code: code which exploits at best the specific properties of the context to improve one or more aspects, like exploiting specific CPU or GPU instructions to compute some operations faster. Of course, it does not mean that generic and optimised codes are incompatible, one can make a generic interface with specific, highly optimised implementations, but one cannot implement a piece of code which is at the same time generic and optimised. Like a building can have a 1st and a 2nd floor but no floor can be at the same time the 1st and the 2nd, generic and optimised code can coexist but no piece of code can be both at the same time.
In our case, a smarter choice is to establish a generic interface, which gives the global shape that will be reused, and context-specific implementations, which can be used in the relevant contexts. For example, we may have the generic interface:
public interface Adder<T> {
T add(T a, T b);
}
Additionally, this is a functional interface, which means that you can use lambda expressions to implement it, which reduces the effort significantly:
Adder<Integer> intAdder = (a, b) -> a + b;
Adder<Double> doubleAdder = (a, b) -> a + b;
Adder<String> stringAdder = (a, b) -> a + b;
Adder<List<?>> listAdder = (a, b) -> Stream.concat(a.stream(), b.stream()).collect(Collectors.toList());
System.out.println(intAdder.add(3, 5));// Display 8
System.out.println(doubleAdder.add(1.2, 3.4));// Display 4.6
System.out.println(stringAdder.add("Te", "st"));// Display Test
System.out.println(listAdder.add(Arrays.asList(1, 2), Arrays.asList(3, 4)));// Display [1, 2, 3, 4]
Meanwhile, at the cost of some loss in the semantics, one can use standard functional interfaces for the simplest cases, like BinaryOperator
instead of our Adder
here, which replaces the method add(a, b)
by a less informative apply(t, u)
.
Considering that generic programs are motivated by a better understanding, we cannot recommended such a replacement here, but it is important to know about the various standard functional interfaces available to give inspiration for better designs.


|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbox2d.p5.Physics
public class Physics
A wrapper class to make using JBox2d with Processing dead simple.
The basics...
Required import:
import org.jbox2d.p5.*;Optional imports (if you're doing anything substantial with the physical objects, you'll want some or all of these), ordered by the likelihood of your needing them:
import org.jbox2d.common.*; import org.jbox2d.dynamics.*; import org.jbox2d.dynamics.joints.*; import org.jbox2d.collision.*; import org.jbox2d.dynamics.contacts.*;The above files make up the full JBox2d library. If you're worried about importing too much stuff, you're welcome to figure out exactly what you do and don't need, but there are way too many class files to go through individually here.
Physics physics = new Physics(this, sketchWidth, sketchHeight);You do not need to add anything special to your draw loop to cause the physics to be simulated and/or rendered. This is done automatically.
physics.destroy();To create a static (immobile) body:
physics.setDensity(0.0f); physics.createRect(x0, y0, x1, y1);To create a normal moving body:
physics.setDensity(someNonZeroDensity); physics.createRect(x0, y0, x1, y1);You can also setFriction(float) and setRestitution(float) to change the way your objects collide. This wrapper retains the last set values, much like Processing does with stroke and fill.
| Constructor Summary | |
|---|---|
Physics(processing.core.PApplet parent,
float screenW,
float screenH)
Set up a default physics world. |
|
Physics(processing.core.PApplet parent,
float screenW,
float screenH,
float gravX,
float gravY,
float screenAABBWidth,
float screenAABBHeight,
float borderBoxWidth,
float borderBoxHeight,
float pixelsPerMeter)
Set up a physics world. |
| Method Summary | |
|---|---|
void |
applyForce(org.jbox2d.dynamics.Body b,
float fx,
float fy)
Apply a force to the body at the center of mass. |
void |
applyForce(org.jbox2d.dynamics.Body b,
float fx,
float fy,
float pointX,
float pointY)
Apply a force to a body at a point. |
void |
applyForce(org.jbox2d.dynamics.Body b,
org.jbox2d.common.Vec2 f)
Apply a force to the body at the center of mass. |
void |
applyForce(org.jbox2d.dynamics.Body b,
org.jbox2d.common.Vec2 f,
org.jbox2d.common.Vec2 point)
Apply a force to a body at a point |
org.jbox2d.dynamics.Body |
createCircle(float x,
float y,
float r)
Create a circle in screen coordinates |
org.jbox2d.dynamics.joints.DistanceJoint |
createDistanceJoint(org.jbox2d.dynamics.Body a,
org.jbox2d.dynamics.Body b,
float xa,
float ya,
float xb,
float yb)
Create a distance (stick) joint between two bodies that holds the specified points at a constant distance. |
org.jbox2d.dynamics.joints.GearJoint |
createGearJoint(org.jbox2d.dynamics.joints.Joint pj1,
org.jbox2d.dynamics.joints.Joint pj2,
float ratio)
Create a gear joint, which binds together two existing revolute or prismatic joints (any combination will work). |
org.jbox2d.dynamics.Body[] |
createHollowBox(float centerX,
float centerY,
float width,
float height,
float thickness)
Create a hollow box of the given screen dimensions. |
org.jbox2d.dynamics.Body |
createPolygon(float... vertices)
Create a polygon based on vertices. |
org.jbox2d.dynamics.joints.PrismaticJoint |
createPrismaticJoint(org.jbox2d.dynamics.Body a,
org.jbox2d.dynamics.Body b,
float dirX,
float dirY)
Create a prismatic (piston) joint between two bodies that allows movement in the given direction. |
org.jbox2d.dynamics.joints.PulleyJoint |
createPulleyJoint(org.jbox2d.dynamics.Body a,
org.jbox2d.dynamics.Body b,
float groundAnchorAx,
float groundAnchorAy,
float groundAnchorBx,
float groundAnchorBy,
float anchorAx,
float anchorAy,
float anchorBx,
float anchorBy,
float ratio)
Create a pulley joint between the The pulley joint is connected to two bodies and two fixed ground points. |
org.jbox2d.dynamics.Body |
createRect(float x0,
float y0,
float x1,
float y1)
Create a rectangle given by screen coordinates of corners. |
org.jbox2d.dynamics.joints.RevoluteJoint |
createRevoluteJoint(org.jbox2d.dynamics.Body a,
org.jbox2d.dynamics.Body b,
float x,
float y)
Create a revolute (pin) joint between the two bodies at the given position. |
void |
defaultDraw(org.jbox2d.dynamics.World world)
Draws the scene using the default render options. |
void |
destroy()
Destroy this world, unregistering it from the PApplet. |
void |
draw()
Called automatically by Processing. |
float |
getAngle(org.jbox2d.dynamics.Body b)
Get the angle (in radians) |
org.jbox2d.dynamics.Body[] |
getBorder()
Get the border Body[] array, or null if the border has been removed. |
boolean |
getBullet()
Are newly created bodies being created as bullets? |
org.jbox2d.common.Vec2 |
getCMPosition(org.jbox2d.dynamics.Body b)
Get the center of mass position (screen coordinates) |
float |
getDensity()
Get the density being used for newly created shapes. |
float |
getFriction()
Get the friction being used for newly created shapes. |
org.jbox2d.common.Vec2 |
getPosition(org.jbox2d.dynamics.Body b)
Get the location of the body's origin (screen coordinates) - note that this does not usually correspond to the center of mass position, which may be obtained by calling getCMPosition(Body) . |
float |
getRestitution()
Get the restitution being used for newly created shapes. |
boolean |
getSensor()
Are newly created shapes being created as sensors? |
org.jbox2d.testbed.TestSettings |
getSettings()
Get an editable copy of the current TestSettings so that you may change certain aspects of the simulation and display. |
org.jbox2d.dynamics.World |
getWorld()
Get the current physics world. |
void |
removeBody(org.jbox2d.dynamics.Body b)
Remove a body from the world. |
void |
removeBorder()
Remove the solid border if it exists. |
void |
removeJoint(org.jbox2d.dynamics.joints.Joint j)
Remove a joint from the world. |
float |
screenToWorld(float length)
Screen space to world space conversion for length. |
org.jbox2d.common.Vec2 |
screenToWorld(float x,
float y)
Screen space to world space conversion for position. |
org.jbox2d.common.Vec2 |
screenToWorld(org.jbox2d.common.Vec2 v)
Screen space to world space conversion for position. |
org.jbox2d.common.Vec2 |
screenToWorldVector(float sx,
float sy)
|
org.jbox2d.common.Vec2 |
screenToWorldVector(org.jbox2d.common.Vec2 screenV)
|
float |
screenToWorldX(float x,
float y)
Screen space to world space conversion for position. |
float |
screenToWorldY(float x,
float y)
Screen space to world space conversion for position. |
void |
setBullet(boolean bullet)
Set to true to create new bodies as "bullets," which use (slower) continuous collision detection against other moving bodies. |
void |
setCustomRenderingMethod(java.lang.Object object,
java.lang.String methodName)
For advanced users only. |
void |
setDensity(float d)
Set the density used for newly created shapes. |
void |
setFriction(float f)
Set the friction used for newly created shapes. |
void |
setRestitution(float r)
Set the restitution used for newly created shapes. |
void |
setSensor(boolean sensor)
Set to true to create new shapes as sensors. |
void |
unsetCustomRenderingMethod()
Clear any custom rendering method that has been set, and revert to the default Box2d debug renderer. |
float |
worldToScreen(float length)
World space to screen space conversion for length. |
org.jbox2d.common.Vec2 |
worldToScreen(float x,
float y)
World space to screen space conversion for position. |
org.jbox2d.common.Vec2 |
worldToScreen(org.jbox2d.common.Vec2 v)
World space to screen space conversion for position. |
org.jbox2d.common.Vec2 |
worldToScreenVector(float wx,
float wy)
|
org.jbox2d.common.Vec2 |
worldToScreenVector(org.jbox2d.common.Vec2 worldV)
|
float |
worldToScreenX(float x,
float y)
World space to screen space conversion for position. |
float |
worldToScreenY(float x,
float y)
World space to screen space conversion for position. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Physics(processing.core.PApplet parent, float screenW, float screenH)
parent
- public Physics(processing.core.PApplet parent, float screenW, float screenH, float gravX, float gravY, float screenAABBWidth, float screenAABBHeight, float borderBoxWidth, float borderBoxHeight, float pixelsPerMeter)
parent
- The PApplet this physics world should usegravX
- The x component of gravity, in meters/sec^2gravY
- The y component of gravity, in meters/sec^2screenAABBWidth
- The world's width, in pixels - should be significantly larger than the area you intend to usescreenAABBHeight
- The world's height, in pixels - should be significantly larger than the area you intend to useborderBoxWidth
- The containing box's width - should be smaller than the world width, so that no object can escapeborderBoxHeight
- The containing box's height - should be smaller than the world height, so that no object can escapepixelsPerMeter
- Pixels per physical meter| Method Detail |
|---|
public void draw()
public void setCustomRenderingMethod(java.lang.Object object, java.lang.String methodName)
void myDrawMethod(World world) { // Do a bunch of stuff }then inside either the draw or setup functions you could write:
setCustomRenderingMethod(this, "myDrawMethod");to register that function. Use unsetCustomRenderingMethod() to go back to the default renderer.
object
- The object in which your method is defined ('this' should work if
the object is defined in a .pde file and not within a class)methodName
- The name of the method (without the parenthesis) to callpublic void unsetCustomRenderingMethod()
public void defaultDraw(org.jbox2d.dynamics.World world)
public org.jbox2d.testbed.TestSettings getSettings()
public int hz; // "frame" rate of physics simulation - best to leave at 60 public int iterationCount; // number of constraint iterations - set to 10 normally public boolean enableWarmStarting; // makes constraints work better by reusing last results public boolean enablePositionCorrection; // leave this on...without it, things turn to mush public boolean enableTOI; // enable/disable continuous collision detection public boolean drawShapes; public boolean drawJoints; public boolean drawCoreShapes; public boolean drawOBBs; public boolean drawCOMs; public boolean drawImpulses; public boolean drawAABBs; public boolean drawPairs; public boolean drawContactPoints; public boolean drawContactNormals; public boolean drawContactForces; public boolean drawFrictionForces;Note: the drawing settings only affect the default debug renderer. If you have specified your own renderer, you will have to manually read off and apply these settings if you wish to use them.
public org.jbox2d.dynamics.Body[] createHollowBox(float centerX, float centerY, float width, float height, float thickness)
centerX
- Center of box x coordinate (in screen coordinates)centerY
- Center of box y coordinate (in screen coordinates)width
- Width of box (screen scale)height
- Height of box (screen scale)thickness
- Thickness of box edge (screen scale)
public org.jbox2d.dynamics.Body createRect(float x0, float y0, float x1, float y1)
x0
- y0
- x1
- y1
-
public org.jbox2d.dynamics.Body createCircle(float x, float y, float r)
x
- y
- r
-
public org.jbox2d.dynamics.Body createPolygon(float... vertices)
createPolygon(x0,y0,x1,y1,x2,y2,x3,y3);or
createPolygon(x0,y0,x1,y1,x2,y2,x3,y3,x4,y4,x5,y5);or
float[] xyInterleaved = {x0,y0,x1,y1,x2,y2,x3,y3,x4,y4}; createPolygon(xyInterleaved);are all fine.
vertices
- Any number of pairs of x,y floats, or an array of the same (screen coordinates)
public org.jbox2d.dynamics.joints.DistanceJoint createDistanceJoint(org.jbox2d.dynamics.Body a, org.jbox2d.dynamics.Body b, float xa, float ya, float xb, float yb)
a
- First bodyb
- Second bodyxa
- x component of anchor point on first body (screen coordinates)ya
- y component of anchor point on first body (screen coordinates)xb
- x component of anchor point on second body (screen coordinates)yb
- y component of anchor point on second body (screen coordinates)
public org.jbox2d.dynamics.joints.RevoluteJoint createRevoluteJoint(org.jbox2d.dynamics.Body a, org.jbox2d.dynamics.Body b, float x, float y)
a
- First bodyb
- Second bodyx
- x coordinate of pin joint location (screen coordinates)y
- y coordinate of pin joint location (screen coordinates)
public org.jbox2d.dynamics.joints.PrismaticJoint createPrismaticJoint(org.jbox2d.dynamics.Body a, org.jbox2d.dynamics.Body b, float dirX, float dirY)
a
- First bodyb
- Second bodydirX
- x component of allowed movement directiondirY
- y component of allowed movement direction
public org.jbox2d.dynamics.joints.PulleyJoint createPulleyJoint(org.jbox2d.dynamics.Body a, org.jbox2d.dynamics.Body b, float groundAnchorAx, float groundAnchorAy, float groundAnchorBx, float groundAnchorBy, float anchorAx, float anchorAy, float anchorBx, float anchorBy, float ratio)
a
- First bodyb
- Second bodygroundAnchorAx
- x coordinate of (fixed) ground anchor for body a, in screen coordinatesgroundAnchorAy
- y coordinate of (fixed) ground anchor for body a, in screen coordinatesgroundAnchorBx
- x coordinate of (fixed) ground anchor for body b, in screen coordinatesgroundAnchorBy
- y coordinate of (fixed) ground anchor for body b, in screen coordinatesanchorAx
- x coordinate of body anchor for body a, in screen coordinatesanchorAy
- y coordinate of body anchor for body a, in screen coordinatesanchorBx
- x coordinate of body anchor for body b, in screen coordinatesanchorBy
- y coordinate of body anchor for body b, in screen coordinatesratio
- "Block and tackle" ratio
public org.jbox2d.dynamics.joints.GearJoint createGearJoint(org.jbox2d.dynamics.joints.Joint pj1, org.jbox2d.dynamics.joints.Joint pj2, float ratio)
pj1
- First joint (revolute or prismatic)pj2
- Second joint (revolute or prismatic)ratio
- Gear ratio
public void setDensity(float d)
d
- public float getDensity()
public void setRestitution(float r)
r
- public float getRestitution()
public void setFriction(float f)
f
- public float getFriction()
public void setBullet(boolean bullet)
bullet
- public boolean getBullet()
public void setSensor(boolean sensor)
sensor
- public boolean getSensor()
public void destroy()
public org.jbox2d.dynamics.World getWorld()
public org.jbox2d.dynamics.Body[] getBorder()
public void removeBorder()
public void removeBody(org.jbox2d.dynamics.Body b)
public void removeJoint(org.jbox2d.dynamics.joints.Joint j)
public void applyForce(org.jbox2d.dynamics.Body b, float fx, float fy)
b
- Body you wish to apply force tofx
- x component of force (in pixel units)fy
- y component of force (in pixel units)public void applyForce(org.jbox2d.dynamics.Body b, org.jbox2d.common.Vec2 f)
b
- Body you wish to apply force tof
- force to apply (in pixel units)public void applyForce(org.jbox2d.dynamics.Body b, float fx, float fy, float pointX, float pointY)
b
- Body you wish to apply force tofx
- x component of force (in pixel units)fy
- y component of force (in pixel units)pointX
- x coordinate of application point (in screen/pixel coordinates)pointY
- y coordinate of application point (in screen/pixel coordinates)public void applyForce(org.jbox2d.dynamics.Body b, org.jbox2d.common.Vec2 f, org.jbox2d.common.Vec2 point)
b
- Body you wish to apply force tof
- force to apply (in pixel units)point
- application point (in screen/pixel coordinates)public org.jbox2d.common.Vec2 getPosition(org.jbox2d.dynamics.Body b)
getCMPosition(Body)
.
b
-
public org.jbox2d.common.Vec2 getCMPosition(org.jbox2d.dynamics.Body b)
public float getAngle(org.jbox2d.dynamics.Body b)
public float screenToWorldX(float x, float y)
public float screenToWorldY(float x, float y)
public org.jbox2d.common.Vec2 screenToWorld(float x, float y)
public org.jbox2d.common.Vec2 screenToWorld(org.jbox2d.common.Vec2 v)
public float worldToScreenX(float x, float y)
public float worldToScreenY(float x, float y)
public org.jbox2d.common.Vec2 worldToScreen(float x, float y)
public float worldToScreen(float length)
public org.jbox2d.common.Vec2 worldToScreen(org.jbox2d.common.Vec2 v)
public float screenToWorld(float length)
public org.jbox2d.common.Vec2 screenToWorldVector(org.jbox2d.common.Vec2 screenV)
public org.jbox2d.common.Vec2 screenToWorldVector(float sx, float sy)
public org.jbox2d.common.Vec2 worldToScreenVector(org.jbox2d.common.Vec2 worldV)
public org.jbox2d.common.Vec2 worldToScreenVector(float wx, float wy)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


Join Now & be one of Our Investors.
Dramatically enable one-to-one solutions excellent. Lorem ipsum, dolor sit.
Become an Investor


| Elements has text: | | Elements has no text: | | One element has no text: |
|
Lorem ipsum 1
Lorem ipsum 2
Lorem ipsum 3
Lorem ipsum 4
Lorem ipsum 5
|
Lorem ipsum 6
Lorem ipsum 7
Lorem ipsum 9
Lorem ipsum 10
|


{% extends "layout.html" %} {% block page_title %} Behaviour {% endblock %} {% block content %} {% include "../includes/phase_banner_beta.html" %} Back Is your condition a physical condition? Is your condition a physical condition? Yes No {% include "../includes/help.html" %} {% endblock %} {% block body_end %} {% include "includes/scripts.html" %} {% endblock %}


Bridge is a platform designed to connect the St. Louis municipality to its constituents. It provides a place for people to look into their warrants and violations, find respective court houses, handle fines, set up alerts about issued warrants and new violations, as well as providing valuable data to low income residents. Bridging ease of use and information is the first step towards a more transparent legal system. Click below to begin.


|
Big Data Challenges, Research, and Technologies in the Earth and Planetary Sciences |
||
|
Time |
Title |
Presenter/Author |
|
8:00am - 8.05am |
Introduction |
|
|
8:05am - 8:25am |
Using Cloud Bursting to Count Trees and Shrubs in Sub-Saharan Africa |
Michael Requa, Garrison Vaughan, John David, and Ben Cotton |
|
8:25am - 8:45am |
A New Parallel Python Tool for the Standardization of Earth System Model Data |
Kevin Paul, Sheri Mickelson, and John Dennis |
|
8:45am - 9:05am |
Three-Dimensional Spatial Join Count exploiting CPU Optimized STR-R-Tree |
Takahiro Nishimichi, Ryuya Mitsuhashi, Hideyuki Kawashima, and Osamu Tatebe |
|
9:05am - 9:25am |
SciSpark: Highly Interactive In-Memory Science Data Analytics |
Brian Wilson, Rahul Palamuttam, Kim Whitehall, Chris Mattmann, Alex Goodman, Maziyar Boustani, Sujen Shah, Paul Zimdars, and Paul Ramirez |
|
9:25am - 9.45am |
Visualization and Diagnosis of Earth Science Data through Hadoop and Spark |
S. Zhou, X. Li, T. Matsui, and W.-K. Tao |
|
9:45am - 10.05am |
Modeling Martian Thermal Inertia in a Distributed Memory High Performance Computing Environment |
Jason Laura and Robin Fergason |
|
10:05am - 10:20am |
Coffee Break |
|
|
10:20am - 10:40am |
Implementing Connected Component Labeling as a User Defined Operator for SciDB |
Amidu Oloso, Kwo-Sen Kuo, Thomas Clune, Paul Brown, Alex Poliakov, Hongfeng Yu |
|
10:40am - 11:00am |
Distributed and cloud-based multi-model analytics experiments on large volumes of climate change data in the Earth System Grid Federation (ESGF) eco-system |
S. Fiore, M. Płóciennik, C. Doutriaux, C. Palazzo, J. Boutte, T. Żok, D. Elia, M. Owsiak, A. D'Anca, Z. Shaheen, R. Bruno, M. Fargetta, M. Caballer, G. Moltó, I. Blanquer, R. Barbera, M. David, G. Donvito, D. N. Williams, V. Anantharaj, D. Salomoni, and G. Aloisio |
|
11:00am - 11:20am |
Where Big Data meets Linked Data: Applying standard data models to environmental data streams |
Adam Leadbetter, Adam Shepherd, Damian Smyth, Robert Fuller, and Eoin O'Grady |
|
11:20am - 11:40am |
Dynamic Topic Modeling to Infer the Influence of Research Citations on IPCC Assessment Reports |
Jennifer Sleeman, Milton Halem, Tim Finin, and Mark Cane |
|
11:40am - 12:00pm |
Community Reports - George Percival - Open Geospatial Consortium |
|
|
12:00pm - 12:20pm |
Community Reports - Ben Evans - National Computational Infrastructure, Australia |
|
|
12:20pm - 12:30pm |
Open Discussion, Closing Remarks |