These are pictures of Indian widows. They are living in temples/ashrams in the city of Vrindavan. Because, they are widows they can no longer enjoy life and must live in misery. That is what the evil Hinduism religion has decried as their fate. That, and the fact they are poor and have shitty relatives who couldn't care less about them. Their plight makes me want to cry.
Wednesday, December 4, 2013
my solution to the Fizz Buzz programming interview question
This is my solution to the Fizz Buzz programming question / challenge as posted on this web page.
Click here to output the results.
Click here to output the results.
<script> for (i=1; i < 101; i++) { if ( (i%3 == 0) && (i%5 == 0) ) { document.write(i + " FizzBuzz<br>"); } else if (i%3 == 0) { document.write(i + " Fizz<br>"); } else if (i%5 == 0) { document.write(i + " Buzz<br>"); } else { document.write(i + "<br>"); } } </script>
People napping at lunch time in China - Sleep On Homies
Paramilitary policemen take a break at the site of a coal mine explosion in Yichuan county, Henan province, April 2, 2010.
Credit: Carlf Zhang/Reuters
Parents of freshmen students sleep on mats laid out on the floor of a gymnasium at Huazhong Normal University in Wuhan, Hubei province Sept. 3, 2011. The university set out mats for some 600 parents accompanying freshmen students on their first day of school, local media reported.
Credit: China Daily/Reuters
A salesman, manning an exhibit of x-ray equipment, sleeps next to an image of a man with weapons attached to his body at the China International Exhibition on Police Equipment in Beijing, April 21, 2010.
Credit: David Gray/Reuters
A vendor selling pork sleeps while still holding onto her knife at a market in Beijing, Sept. 7, 2012.
Credit: David Gray/Reuters
A child sleeps on a couch on a flooded street in Chongqing municipality, July 20, 2010.
Credit: Shi Tou/Reuters
A man sleeps on a life buoy next to his belongings collected from a flooded street as he waits for the flood water to withdraw near the Yangtze River in Chongqing municipality, July 25, 2012.
Credit: Reuters
A worker takes a nap surrounded by ducklings at a duck farm on the outskirts of Jiaxing, Zhejiang, China, April 5, 2011.
Credit: Reuters
Laborers who work nearby nap on a road as cars drive past in Chongqing Municipality, China, July 23, 2013.
Credit: Ranjit Sandhu
A vendor sleeps on packs of grapefruit at a market in Wuhan, Hubei province, Oct. 15, 2012.
Credit: Reuters
A young man sleeps on chairs at the backyard of his father's restaurant in Aksu, Xinjiang Uighur Autonomous Region, China, Aug. 12, 2012.
Credit: Reuters
A delegate of the Chinese People's Political Consultative Conference (CPPCC) sleeps in the gallery during explanations of the draft amendment to the Criminal Procedural Law at the second plenary meeting of the National People's Congress (NPC) at the Great Hall of the People in Beijing, March 8, 2012.
Credit: Jason Lee/Reuters
A man sleeps next to his bicycle on a footpath along a Chinese alley known as a "Hutong", during a hot day in central Beijing, June 21, 2012.
Credit: David Gray/Reuters
An ethnic Uighur man takes a nap on a board as his goat, which is tied to the board, stands next to him at a demolition site in Aksu, Xinjiang Uighur Autonomous Region, China, Aug. 13, 2012.
Credit: Reuters
A man takes a nap in the back of his cycle cart at the gate of the Tayuan Diplomatic Office Building in Beijing, Oct. 27, 2012.
Credit: Petar Kujundzic/Reuters
A security guard sleeps next to stock trading machines at a brokerage house in Taiyuan, Shanxi province, China, May 15, 2012.
Credit: Reuters
A resident walks past two young men, asleep on cement blocks, on a street in Nanjing, Jiangsu province, China, July 17, 2012.
Credit: Reuters
A boy takes a nap on luggage as passengers are stranded at Shenyang Railway Station in Shenyang, Liaoning province, China, Aug. 4, 2012.
Credit: Reuters
An employee sleeps on a couch outside a bar at Houhai area in central Beijing, Aug. 23, 2012.
Credit: Jason Lee/Reuters
A vendor selling watermelons naps as he waits for customers at a market in Taiyuan, Shanxi province, China, July 17, 2013.
Credit: Jon Woo/Reuters
Children sleep on the floor of the Qiaosi subway station in Hangzhou, Zhejiang province, China, July 25, 2013.
Credit: Reuters
A vendor naps beside packages of cabbage at a food market in Suining, Sichuan province, China, Dec. 11, 2009.
Credit: Reuters
A garbage collector sleeps on a couch on the edge of a hilly road in Lijiang, Yunnan province, China, Aug. 2, 2013.
Credit: Reuters
A worker naps on the railway at the construction site of Wuhan North Railway Marshalling Station in Wuhan, Hubei province, China, April 1, 2009.
Credit: Reuters
A vendor sleeps inside her store next to walls lined with mink fur at a fur market in Chongfu township, Zhejiang province, China, Sept. 13, 2013.
Credit: Reuters
A worker sleeps in the backstage area of a makeshift theater during the Chinese Hungry Ghost Festival in Hong Kong, Aug. 20, 2013.
Credit: Tyrone Siu/Reuters
A vendor sleeps at a shop in Beijing, Nov. 17, 2013.
Credit: Jason Lee/Reuters
Wednesday, February 20, 2013
netbeans re-create build-impl.xml
netbeans - return the 'Libraries Folder' text box to its default state
in a netbeans java project -> properties -> library, there is a field called "libraries folder". i selected a value for it and realized that i didn't need it. i saw no way to remove it. to remove it, find the file project.xml under the nbproject folder and remove this:
<libraries xmlns="http://www.netbeans.org/ns/ant-project-libraries/1">
<definitions></definitions>
</libraries>
this creates a problem if you try to build your project. the error is something like:
..\nbproject\build-impl.xml:63: Source resource does not exist: ..\nblibraries.properties
basically build-impl.xml is looking for the nblibraries property you had specified earlier. the way to fix this is to delete and re-create the build-iml.xml
delete / remove build-impl.xml close your project and then re-open your project. the file will be re-created.
in a netbeans java project -> properties -> library, there is a field called "libraries folder". i selected a value for it and realized that i didn't need it. i saw no way to remove it. to remove it, find the file project.xml under the nbproject folder and remove this:
<libraries xmlns="http://www.netbeans.org/ns/ant-project-libraries/1">
<definitions></definitions>
</libraries>
this creates a problem if you try to build your project. the error is something like:
..\nbproject\build-impl.xml:63: Source resource does not exist: ..\nblibraries.properties
basically build-impl.xml is looking for the nblibraries property you had specified earlier. the way to fix this is to delete and re-create the build-iml.xml
delete / remove build-impl.xml close your project and then re-open your project. the file will be re-created.
netbeans java project add lib jar/folder
i created a netbeans standard java project. i wanted to add a folder which had the jars (such as spring.jar, etc.) to the project. right click on project name -> properties -> libraries menu. right hand side add jar/folder option. you can select the folder and add it. However, this does not work correctly. Adding the ENTIRE FOLDER does not work. It creates a default package and puts the jars below it and your source classes cannot see them. You have to go inside the folder you want to include and select all the jars you want included. Then they are displayed correctly and you can expand them in the libraries tab.
Subscribe to:
Posts (Atom)