Thursday, September 12, 2013
Smarter playlist length calculations
For my playlist controller/generator application, I wanted to have a way to produce an accurate list length to reflect about one day's worth of songs. I figured that if I knew how long every track was in my library, I should be able to get a good estimate as to how many tracks I could potentially play in a single day. From that, I then can figure out how many tracks to load into the playlist. So, first I need to have the lengths, in seconds (and fractions of seconds) for each and every track in the library.
I have my library partitioned into different categories, one category per track. I did not want to use the genre for this, as the genre could be something that does not reflect my own personal preference for categorizing my music. I have the categories organized in my settings file so that they are listed in order of my preference. This is done in a two-dimensional list configuration in python. The placement order in this list determines the "weight" of a particular category, which effectively determines how much more or less I'd like to hear songs in that category.
I divide up the tracks based on category, and take the geometric mean of the lengths of each track in each category. For those who are unfamiliar with a geometric mean, it is another kind of average that can be taken. The more common arithmetic mean is you sum up the values, then divide the sum by the number of values present. The geometric mean is taken by multiplying all of the values, then take the Nth root of the product, where N is the total number of values. So, if you have three values, 3, 2, 4, the arithmetic mean of these would be (3 + 2 + 4) / 3 = 3. Th geometric mean would be the cube root of (3 * 2 * 4), or the cube root of 24, which would be 2.88... This kind of average tends to predict lower than the arithmetic mean, which in this particular scenario would be like assuming what might be possible if a lot of smaller-length tracks were played within a single day.
Unfortunately, the calculation for geometric means results in insanely huge numbers due to multiplication, and actually can end up going out of bounds for floating-point numbers due to the size of the number that is calculated. So, there is a trick that can be done to avoid this. The trick is to use the arithmetic mean, and the harmonic mean. The harmonic mean is summing the reciprocals of the values, and then multiplying that by the total number of values (in the above example, you would do 3 * (1/3 + 1/4 + 1/2) = 2.77...). then you do the geometric mean of the arithmetic and harmonic means (square root of 3 * 2.77... = 2.88...).
Because I process favorites vs non-favorites differently, I run this geometric mean on all tracks in a category, and then just the favorites in that category, and apply the weights I've defined in my settings file for favorites or normal tracks to the results, and sum the two together to get the adjusted geometric mean for the whole category.
I then do a weighted average for the adjusted geometric mean for each category, based on the weights I've calculated earlier. A weighted average is to multiply the category's geometric mean by the category's weight, and summing that with the product of each category, and dividing it by the sum of the weights. The end result is a very good estimate for the average length, in seconds, for each track. I divide the number of seconds in a day by this average length, and I get the total number of tracks per day, which will be the basis for the number of tracks I load into the playlist. The end result is that different tracks impact this calculation in different weights based on the category and whether it is a favorite track or not. My favorites in my favorite category have a bigger impact than a non-favorite track in my least favorite category. Smaller-length tracks have a bigger impact on this number than longer tracks.
Tuesday, September 10, 2013
Making my playlist processing be concurrent.
This may come as a shock to some people, but I have this itch to continually tweak my music playlist. It started with me having a set of songs I liked... And [un?]fortunately, this collection grew, and grew. Soon, I wanted to have a way to organize my music and ensure that I'm listening to a certain set of songs. Enter the iTunes Smart Playlists, which let me define, in Set Theory-like notation, multiple playlists each following a different set of rules, that I could combine together and randomize to produce a "daily playlist", which I loaded into my Gen 1 iPhone. This worked fairly well.
Well... eventually I replaced that phone, and chose a less technologically-advanced phone (read: not a smart phone), and had to come up with some other way to get my music. So I took my music, and used a plethora of different streaming servers, building the same kind of functionality as I had with the iTunes smart playlists, building a daily playlist to stream to me at work (or wherever I can get the stream from). I eventually got fed up with most of the streaming servers, and settled onto Music Player Daemon (MPD). I also found a nice python library to interface with the MPD server, and control it (python-mpd2). This meant I could basically write my own playlist generator, how I wanted it, and have my music streamed through MPD, without all of the annoyances that the proprietary streaming servers were doing.
Now, several generations and revisions later, I have my own music database (the backend is unimporant, it will work with any database backend that SQLAlchemy can use) for my playlist generator, which has transformed into a playlist controller (it continually runs, and updates as songs are played through the day, eventually loading in a new batch of songs as the internal playlist gets used up). I have rebuilt it so that the database updating, and the playlist generating is all done concurrently, with multiple "worker processes" that drive handles chunks of the processing of each independently of the other processes. The beauty of this is that I can leverage multi-core computers for the playlist controller, and be able to have the processes spread around the different cores, which gives a nice performance boost.
Now, I am trying to add in new features to it. I want it to scrobble to I want my holiday music playlist modifications to work again. I want it to play stuff from podcasts, I want to be able to mix in music from Pandora. These will keep m busy, now that I think I have the core processing working in a way I am comfortable with.
Thursday, May 23, 2013
A Christian's Response To: A Christian's View of World of Warcraft (published in 2008)
I found this little jewel out on the 'net, and feel a need to respond to the blatant misconstruing of what is or isn't OK with World of Warcraft. I am a Christian (Confessional Lutheran, to be precise), and I also enjoyed playing World of Warcraft. I don't like it when people muddy the name "Christian" with stuff that is not Christian, and feel compelled by my Christian Freedom and Christian Responsibility to respond to this, even if I am about 5 years late on finding it. I am not a fan of the Legalism or the Moralism that plagues American Protestantism. So... here we go:
Evil Character and Quests
The classic argument about playing "evil characters" in a game. This has recently been touched upon quite well by Rev. Jonathan Fisk at Worldview Everlasting. This is basically an arbitrary line in the sand being drawn. Why do I say that? Because in the game, you pretend to be a different person, basically, you lie. So this line is drawn claiming that one kind of lying (role-playing a good character) is better than another kind of lying (role-playing a bad character). Further, this argument could be applied to condemn any writer to ever have evil characters portrayed in their books. Because they have to get into the role of those characters to know how the characters would act/react in the book. Or, for that matter, you better just not read any book with conflicts between good and evil characters within it, because the author was obviously being evil when writing about the evil characters, and it is better to avoid it entirely. Oh, wait, this means you better skip reading the Bible, because it is filled with all kinds of conflicts between good and evil, most notably between the triune God and sin, death, and the Devil. Like I said, it is an arbitrary line... and one that is not made in the Bible at all. As it is not expressly forbidden in the Bible, it becomes a matter of Christian Freedom. The correct term for it is "adiophra", which means those things not expressly forbidden in the Bible.
Sorry, but psychology is not a study based on the Bible, or even remotely connected to the Bible (and in fact, is arguably contrary to the Bible on many points). This has absolutely nothing to do with Christianity, and everything to do with human reason. The jury is still out as far as gaming "addiction" is concerned, and I don't see this as any kind of point with merit when defining Christian reasons to oppose playing WoW.
So what? It is, by definition a game, with rules connected to how to play the game. A game without rules would be


text:
Balance of Plant construction refers to infrastructure and electrical work at a wind farm. The BoP construction includes everything except turbines.
We are involved in wind farms through our Balance of Plant concept which covers the construction of the necessary roads, lifting areas and foundations, as well as underground cabling and transformer deliveries, which are needed for joining the electricity grid.
Building a road
In order to get the machines, supplies and equipment on site, every power plant project starts with the construction of a road.
Well-designed and efficiently implemented lifting areas allow the smooth implementation of the next stages of the project.
The construction of foundations is one of the most demanding tasks of wind farm construction. The soil of the site must be taken into account, as well as the size of the power plant.
Underground cabling's share of the costs is relatively small, but even more important – the electricity produced must be transferred undisturbed via the substation to the national grid.

source: m-a-p/FineFineWeb


text:
If you want to determine if you are directly related to the ancestor, a technique is by using a DNA romantic relationship predictor test out. One such DNA test is the DBA-Z marker evaluation. This GENETICS relationship predictor test is employed in many cases to ascertain whether or not a relation is present between two individuals. GENETICS relationships will be determined through testing the Y chromosome and the mitochondrial DNA. There is thus a purpose to test the mother's and paternal DNA to find out when there is any familial relationship present between persons.
Centimorgen is usually an ancient measure of exactly how directly a person relates to her or his ancestor. Employing this centimorgen factor, a genetic relationship is measured between two individuals. The consequence of such a calculation is then used simply because input to a one marriage predictor. These types of ancestry and calculators are helpful in identifying the percentage of genetic relationship present between individuals. These DNA human relationships are important with regards to genealogical studies. The results of such a computation are also helpful to individuals who want to trace their very own family history.
The DNA relationship predictor centimorgen calculator can be used to discover if you write about a common ancestor with an individual. In cases such as these, the calculation of the centimorgen determines whether you are closely related to your ancestor or perhaps not. Hence, this particular DNA relationship predictor provides information in regard to your relationship to your ancestor. The result will determine whether you talk about a common ancestor with someone.
The percentage of genetic marriage found through using a DNA relationship predictor depend upon which DNA section that was used to calculate the centimeterorgen. Specifically, the calculation in the dna area rate consists of base-pair info. A GENETICS relationship predictor centimorgen _URL_ chart can easily calculate the percentages of the genetic relationships which can be specific to one person and others. The GENETICS centimorgans graph and or chart can also analyze the percentages that happen to be common to particular groups of persons.
Similarly, the calculation from the one romantic relationship predictor can also be conducted with the help of GEDmatch. The GEDmatch DNA calculator can help identify whether you share a common parent or perhaps different parents. In addition to this, the GEDmatch GENETICS calculator can calculate the odds of the sections distributed by the parents. This is valuable as it facilitates determine whether or not you share a common ancestral roots with your sibling. Furthermore, the GEDmatch DNA calculator also can determine regardless of whether you show a common antecedent, ascendant, ascendent, or distinct ancestors.
There are a lot of benefits to be gained by simply carrying out GENETICS tests and calculating the dna romantic relationship data with the adoptees. For example, such measurements can be used to understand the romantic relationships between the adoptees and their families. It can also be used to find out if the families of a person's own neurological family happen to be related to those of adoptees. More importantly, the research of such data can easily shed light on the familial connections among friends and family. Most importantly, such analyses can certainly help find out whether there are any connections among members of numerous pairs in a family history. Consequently, carrying out GENETICS tests and calculating dna marriage data belonging to the adoptees makes it easier to understand one's neurological family history better.

source: openbmb/Ultra-FineWeb


text:
As family historians venture into cemeteries to look for more clues about their ancestors many wonder what, if anything, the symbols on headstones mean.
While most headstone symbols do have a textbook meaning, many were chosen simply because the person who died requested such a design, or because the person choosing the headstone liked how it looked. They may not have realised their chosen design had meaning. Fashion also played a big part, as did the need to impress. Therefore the true representation of a headstone symbol may never be known.
Nevertheless, it's interesting to know the potential meanings behind various symbols. Here are some examples I've found in the rural cemeteries of Canterbury, New Zealand. This is an ongoing project so please check back for updates or subscribe to this blog to receive automatic notifications of updates.
Flowers and Foliage
Trade and Occupation

source: HuggingFaceFW/fineweb-edu


text:
The information on Shangri-la climate could be helpful for preparing a Yunnan travel. Diqing enjoys a typical plateau climate, and it may snow in August. The city is surrounded by the Hengduan mountain range, and the terrain varies greatly, so the temperature difference throughout the day is large. Sometimes, travelers can even experience all four seasons within a day. July to September is the rainy season. Tourists usually choose to visit Diqing in summer or autumn, when the temperature is moderate.
Features of Diqing Climate
The climate in Diqing Tibetan autonomous prefecture is temperatecold temperate climate. The annual average temperature is 4.7- 16.5℃, the annual extreme maximum temperature is 25.1℃, and the minimum temperature is -27.4℃. With obvious three-dimensional climate, there is a saying of "A mountain has four seasons" in Diqing.
Diqing Weather and Climate by Month
What to Pack for a Diqing Trip
- Spring(March-May): In Spring, the temperature in Diqing slowly rises, from cold to mild, but the overall temperature is relatively low. Tourists to Diqing should wear sweaters and coats, and dress in layers to adapt to the large temperature difference.
- Summer(June-August): June to August is the rainy season, and Diqing has the highest temperature at this time. In summer, tourists are supposed to bring light clothes for the daytime and warm clothes for the night. Besides, remeber to bring an umbrella, hat, sunglasses and sunscreen.
- Autumn(September-November): As autumn goes on, the weather gets colder and drier. Long-sleeved clothes and warm coat are needed at this time.
- Winter(December-February): It's very cold in winter. If it snows, the temperature may drop below 0°C in the morning and evening. Therefore, it's important to keep warm in winter. Thermal underwear, sweaters, thick coat/down jacket, gloves, scarf, and warm hat are necesary when travelling in Diqing.
Best Time to Visit Diqing
Diqing is about 3,300 meters above sea level. Like all plateau, the temperature difference in Diqing between morning and evening is large and the wind is strong. It is recommended to visit Diqing from May to July and September to October. There are many festivals and activities at this time, the weather is also ideal for travel. Flowers are in full bloom, and there are green grass and trees everywhere, with the most beautiful scenery.
- MayJune: The end of spring and early summer is the most beautiful time of Shangri-La because of the full bloom of azalea (but the bloom time may delay along with the change of weather). In the middle of June, there are wild flowers in blossom everywhere, such as irises.
- JulyAugust: Flowers are blooming and colorful, but this is the rainy season of the year.
- SeptemberOctober: September to October is autumn. Wolf poison flowers are in bloom, and Diqing is rich in color. At this time, the scenery is beautiful and suitable for photography.
- November: It begins to snow in Diqing. Diqing is in single color, and the weather is colder.
- December: At this time, Diqing owns the most beautiful snow scene, and you can see the black-necked crane as well.
Avoid Public Holidays in China
Try to avoid the public holidays of China, such as May Day Holiday(May 1-3), National Day Holiday(October 1-7), Spring Festival Holiday(Usually early February), Qingming Festival(in early April), Dragon Boat Festival(in June). Spring festival and national day festival are the most crowded time to travel. During these holidays, there will be a large crowd in the tourist attractions and you can't really enjoy yourself. Flights and hotels are usually more expensive than usual.
High Altitude Sickness
Diqing is more than 3,300 meters above sea level. Some people may have a little altitude sickness, but it's usually not serious. If you want to go to the mountain pass, which is more than 4000 meters above sea level, it is better to take more preventive measures. Before going to the plateau, you can take some medicines to alleviate the altitude reaction, such as rhodiola rosea, American ginseng tablet and so on.


cage meets the minimum dimensions (120cm x 60cm). Small cages may increase dominant behaviour. Also make sure they have two of everything, including bottles, bowls, hide houses etc, so they do not have to share. Some male pairs go through phases of dominance, and this often sorts itself out given time and the correct habitat. If they still fight, unfortunately there isn't a simple solution to this, and sometimes their personalities are just not right for each other. You could keep them in a permanent split cage so they can still interact with one another but not hurt each other. This solution has worked very well in the past with my male guinea pigs who would just not get along together. Alternatively, if you have 2 fully grown males that don't get along, you can introduce very young guinea pigs to each of the adult males so you have 2 pairs of guinea pigs; this situation is ideal as it means they can still fully interact and live together. Remember that neutering the males will NOT stop the dominant behaviour, so do not do this unless you are going to introduce a male to females.
Scenario 2. A pair of female guinea pigs are both fighting for the boss role & neither will back down.
Solution 2. Although males have a reputation for fighting, females can fight just as serious! The females tend to bicker more than doing physical harm to each other, but they can still do damage if they are showing very dominant behaviour. The best solution to this problem is to add a neutered male to the pair. Males definitely act as peace makers around females, so the dominant behaviour should subside and they should get along much better with the presence of a boar (but he must be neutered otherwise you may end up with more guinea pigs than you intended to have..).
Scenario 3. In a pair of males/females one of the guinea pigs is getting bullied by the other.
Solution 3. You have to determine wether they are actually getting bullied, or if they are just the submissive guinea pig. It is actually not a bad thing for one guinea pig to be bossy and the other to be submissive, because these pairs will generally be stable together long term. With a pair of males, if you think the guinea pig is actually getting picked on, then you may want to consider pairing them up with different partners, but usually this is not necessary because it is most likely just a sign of being submissive. With a pair of females, see'solution 2'.
Scenario 4. In a group of females (+a male?), one of the guinea pigs is getting bullied by the others.
Solution 4. In this situation, you need to again, make sure that they aren't just behaving submissive. It is really common to have a variety of personalities in a herd, so some will be more dominant, and others will be quite laid back or submissive etc. If after a long time the guinea pig seems unhappy and you have evaluated the situation, and it seems they are getting picked on, you may want to separate them from the group and get them a friend of their own (either female or neutered male). I generally wouldn't advise separating them from the herd because it is possible they are just naturally submissive, but if you feel they are very unhappy, it may be the best thing to do. It is also important to remember that the hierarchy of a herd can change. Some things that can cause this to change include: when you add another guinea pig to the group, if the guinea pigs are getting older or starting to mature, if they move into a new accommodation, if you have changed their setup and much more. Different changes can cause the guinea pigs to behave differently, so give them time to and see how things go.
Scenario 5. In group of males, the guinea pigs are fighting.
Solution 5. Male groups should only be attempted by owners who have lots of experience. If you are in the situation where you have a group of males and they seem to be fighting, there are a few options. Firstly, is their cage big enough? Males need lots of space! If the cage is too small, this may provoke aggressive behaviour, so give them as much space as possible. Also, for each piggie you have, make sure they have access to a bottle, bowl, hide house etc so they do not have to share. If they still fight, you may need to separate. You can attempt to bond the guinea pigs into pairs - try to pair the more dominant guinea pigs with the more submissive guinea pigs. If this is not successful, I reccomend having a split cage so all the guinea pigs can interact but not do harm to one another. Also, if you have females guinea pigs nearby, this may encourage dominant behaviour.
Scenario 6. The guinea pigs will not cuddle up together and don't seem to be best friends.
Solution 6. Most guinea pigs like their own space, so if they do not cuddle up together, this does not mean they don't get along. Generally guinea pigs cuddle up to keep warm in the cold season as they use each others body heat for warmth, but in a warm setting, guinea pigs often like their own space.


text:
I would like to give you a real world experiment that proves that energy is not a conserved quantity.
I have built a Dawn Mission type yo-yo de-spin device. I question if NASA is correct in their assumption that the weights conserve the same energy as the spinning space craft. They claim that when the 3 kilogram weights have the 1400 kg spinning rocket stopped; that the weight have the same kinetic energy as the original spin of the satellite body.
Just for a point of reference I change the satellite into a one meter diameter hollow cylinder; rotating at one meter per second around the arc of the circle. I think this 1200 kilograms is a ballpark figure; so we have twelve hundred kilograms moving one meter per second.
For the satellite energy we have ½ * 1200 kg * 1 m/sec * 1 m/sec = 600 joules
For energy conservation of the 3 kilogram masses on the end of the tethers we would need to have ½ * 3 kg * 20 m/sec * 20 m/sec = 600 joules. This 20 m/sec is half the speed of the baseball in the majors.
For the satellite momentum we have 1200 kg * 1 m/sec = 1200 units.
For momentum conservation of the 3 kilogram masses on the end of the tethers we have 3 kg * 400 m/sec = 1200 units. This 400 m/sec is 20% above the speed of sound.
Quite a difference 20 or 400; which one is correct?
I built a yo-yo de-spin device to find out. Because only momentum can be transferred from small objects to large objects; and conservation of energy only gives use 20 m/sec * 3 kg = 60 units of momentum to return 1200 units. If the 3 kilogram masses only have 60 units of momentum they can not restart the spin of the satellite.
So now for the experimental answer that I obtained from a small de-spin device. After a complete stop of the cylinder the tethered spheres completely restore the spinning motion of the cylinder. The original and final spin rates of the cylinder are the same.
If the Dawn Mission tethers were not released the 3 kilogram masses would have rewound and restarted the spin of the satellite. For a complete restoration of motion. Momentum is conserved not energy.
Edited by DelburtPhend, 22 December 2016 - 06:44 PM.


text:
Riding, camping, and resupply are the daily routine on the Baja Divide. In most of Baja, resources are limited, although the route is designed to be ridden self-supported. Most sections of the route are defined by access to a paved road and major resupply points at either end, while a motel and a bus station are also common in larger towns. Daily mileage is shaped by resupply needs; in some places it may be required to ride longer days to reach a water source. Riding speeds will also vary greatly as the terrain changes, and winter days are short. As such, average daily distances will range from 35-45 miles for most riders with some longer days when resupply strategies require.
Free camping is possible on most of the route and is one of the highlights of traveling in Baja. Desert nights are cool and dry, although winter nights along the Pacific coast and in the Northern Sierra can be cold and moist, and lightly freezing temperatures are possible. Many nights may be enjoyed under the stars, although a simple shelter is useful. Rain is infrequent, but possible, while consistent and strong winds are not uncommon in Baja. There are very few free camping possibilities between San Diego and Tecate.
There are several strategies when selecting a shelter. A lightweight doublewall backpacking tent provides the best protection against wind and rain. Considering that the tent may not be required every night, a compact and lightweight package is important, yet the ability to withstand strong wind is part of what makes a tent valuable in Baja. At least half of the stakes for any shelter should be an oversized sand/snow specific model, such as the MSR Blizzard stakes. Tents we recommend include Big Agnes Seedhouse SL2, the Big Agnes Copper Spur UL series, and the MSR Hubba Hubba NX. There are lighter models from both manufacturers, but their ability to resist strong winds is compromised.
Single wall tents and tarps are also a good option. These designs feature minimal packed weight and volume, although they are not freestanding designs and require careful staking. Pyramid shaped tents provide a high ratio of internal space to packed size and weight. We recommend several models from Tarptent including the Double Rainbow, as well as the Hyperlite Mountain Gear Ultramid 2 and the pyramid Black Diamond Mega Light.
A bivy may be a suitable choice for anyone traveling alone that appreciates an ultralight system, and enjoys sleeping out on most nights. It's an emergency shelter that greatly reduces packed weight and size, but is not a comfortable place to spend a night in bad weather. A bivy is prone to developing condensation, moreso when it rains. We recommend the full-featured Outdoor Research Helium and Aurora bivies, the Mountain Laurel Designs FKT Soul, and the minimalist Montbell Breeze Dry-Tec and a number of minimalist models from SOL.
A lightweight sleep system and shelter is essential, to leave room for food and water on the bike. A summer weight sleeping bag rated 30-35°F is adequate and a high quality down bag in this range will be extremely light and small when packed. Sleeping pads are largely a personal preference and almost any pad will provide adequate ground insulation in this temperature range. Keep in mind, however, that many ultralight inflatable pads may be prone to puncture in Baja. Use a durable groundcloth, select campsites carefully, and consider bringing a patch kit. Foam pads are a safe bet in the desert if you can find a convenient way to pack one on the bike. We recommend the Western Mountaineering SummerLite and HighLite, both of which are the lightest full-featured sleeping bags in their category and are very well made in the USA.
While camping is easy along most of the route, site selection should consider drainage patterns if rain is likely, and prevailing wind patterns. Baja is safe and it is not unusual to be seen camping in the desert. If you are unsure where to camp, ask locally. Finally, limit the impact of your visit by using existing campsites, turnoffs, and clearings. Carry all of your trash out of the backcountry, no matter how many Tecate cans and Coke bottles you see by the roadside. Bury all of your shit. The deserts in Baja are vast yet sensitive, and face massive strain from ranching, off-highway vehicular activity, and us. Plants in the desert grow slowly. Respect the people and the land.
Hotels are available frequently along the route, although camping equipment is required to complete the route. Rates range from $15-35 dollars per night: services are simple, cold showers are not common, wifi is often available, while more upscale accommodations are available in touristic areas. Hotels or lodging are available in: San Diego, Tecate, Ojos Negros, Colonet, El Coyote/Rancho Meling, Vicente Guerrero, San Quintín, Cataviña, Santa Rosalillita, Rosarito, Bahía de los Ángeles, Rancho Escondido (El Progresso), Rancho Piedra Blanca, Vizcaíno, San Ignacio, Mulegé, San Miguel de Comondú, Ciudad Constitución, La Paz, Los Barriles, La Ribera, Cabo Pulmo, San José del Cabo, Todos Santos, and El Triunfo.
Clothing needs are minimal. Winter weather in Baja is generally warm and dry. Use this to your advantage to pack light, leaving room for necessary food and water. During most days, shorts and a t-shirt will suffice for riding equipment. A waterproof shell and long underwear top and bottom layers are nice for cold nights and cool days. An extra pair of warm socks, a light pair of gloves, and a down vest are a few items that might be nice. Find what works for you, but don't bring everything. Commit to one pair of shoes that are comfortable to walk and ride in. Protect yourself from sun exposure. Consider using sunscreen and a helmet with a visor.
Water defines the way you travel in Baja. Purified water is available from purificadas in cities or from small purification stations within stores in small towns. Bottled water is available for purchase at all stores. Surface water is not widely available on the route except in a few mountainous sections where it may lessen the requirement to carry water on the bike. Bring the smallest possible water purification system that you are comfortable using, as you won't use it frequently, or don't bring one at all and commit to carrying all of your water between resupply points. Chemical treatment tablets or a Steripen should suffice, in-line gravity filters are also a good choice. The best way to carry water includes a combination of bottles and bladders or a hydration pack. 4-6 liters of water is typical for most sections of the route. However, longer sections require 8-12 liters. In the backcountry, locals rely on wells and surface water, and in some places locals rely on water that is delivered by truck. Their resources are limited and riders should not expect to rely on their supply, except in an emergency.
Food is available almost as frequently as water along the route, although carrying several days of food poses less of a challenge. Carrying 2-3 three days of food is reasonable, while the equivalent amount of water– which would weigh up to 40lbs– is not. Tortillas, cheese, packaged beans, vegetables, fruits, canned fish, machaca (dried shredded beef), chips, cookies and nuts are foods common in small stores on the route. Prepared specialities include tacos, ceviche, pan dulce, and hard cheeses such as cotija. Plan some time in towns to enjoy eating out in the evening. Usually the busiest street vendor is the best.
If you choose to bring a stove, some types of fuel are hard to find. Gasoline is the only reliable fuel source and is available at government-run Pemex gas station, alcohol is found in some cities in paint stores and pharmacies (ask for alcohol industrial in paint/hardware stores, pharmacies sell a low-strength topical ethanol), while isobutane-propane canisters are non-existent. A small wood burning stove might be useful given the amount of small, dry biomass in the desert. Due to these limitations we have traveled in Baja without a stove, enjoying fresh tortillas, cheese, beans, and sliced fresh vegetables for many meals. During the day we often snack on nuts, chips, fruit and packaged cookies. If carrying a stove, rice, lentils, oats, and noodles are commonly available. Supermarkets in the largest towns along the route are very well-stocked, much like in the USA or Europe.
Traveling in Baja is fairly inexpensive. Expenses include food, water and the occasional hotel if you choose. Groceries are about half the price of the US, tacos cost a dollar or less, hotels range from $15-$35 and camping is free most of the time. A typical budget would be about $20 per day if you occasionally stay inside and buy your friends a beer, but it would be easy to spend less than $10 per day. Water is an expense which must be considered, purified water is much cheaper than bottled water.
A GPS device is required for navigation. Route cues are not published and would be impossible to produce, as most roads on the route are unnamed and unsigned, while a few are barely known to locals. Preferred devices include the handheld Garmin eTrex series and the cycling-specific Garmin Edge, while smartphones offer competitive functionality, if enough power is available.
The eTrex 20 is simple, rugged, inexpensive


text:
Question: What is the difference between silicone compression molding and silicone injection molding?
Answer: In the compression molding process, the mixed silicone is filled into an open mold. For a core and cavity mold, the cavity side is usually filled with excess material. Once filled, the two halves are then uniformly compressed under hot platens. After a certain amount of curing time, the two halves are either manually or mechanically opened. The final part is removed after excess material is detached.
In the injection molding process, the A and B component materials are mixed from the mixing unit, and immediately travel through the cool barrel. The mixed material is then injected in a hot closed mold. After the curing and mold-open phase, the final part is removed from the mold.


text:
As CPIJ proceeds with its series of Q&As about the impact of public interest journalism and its measurement, beginning with AxisPhilly's CEO Neil Budde, we thought it would be helpful to explain the purpose of this project.
In an environment with shrinking subscriptions and viewership for mainstream media, it's urgent that news organizations be capable of making a case for why public interest news matters. In short, we believe that a focus on impact will help Philadelphia news organizations develop better models for measurement of impact and aid in the development of sustainable financial models for local public interest news organizations, in line with the mission of the Center.
Through this project, we're hoping to achieve:
- Knowledge-sharing of how local news organizations (particularly ones with increasingly limited resources) conceive of and determine the effects of their news mission and whether they're achieving it.
- An improved ability to define and measure the impact of public interest news and information on a local/regional level
- Methods of demonstrating impact to ensure funders and audiences understand the value proposition of their support
- Spotlighting the role of media in performing a watchdog function and how decision-makers are adapting to changes in how public interest information is delivered and developed
- Increased transparency among news organizations in allowing their community of users to understand their mission.
We hope this context is helpful in establishing our expectations for this work and in keeping us focused on achieving the outcomes stated above. Feel free to let us know what other aims we should be seeking in the comments below, and thanks for following our work.


text:
- 1 What is the best way to preserve pears?
- 2 Do you need to peel pears for jam?
- 3 What to do with lots of fresh pears?
- 4 How do you preserve pears without canning them?
- 5 What can I do with a can of pears?
- 6 How ripe should Pears be for preserves?
- 7 Can you Recook pear preserves?
- 8 Can you use unripe pears for jam?
- 9 Do pear skins have pectin?
- 10 Do pears have pectin?
- 11 Should pears be kept in the fridge?
- 12 Do pears freeze well?
- 13 Can I freeze whole fresh pears?
What is the best way to preserve pears?
If properly sealed, pear preserves can be stored in a cool, dark place for up to one year. A simple storage option for pear jam, butter, and chutney. Storing halved or whole preserved pears in the freezer is not recommended due to their fragile texture. Preserves can be stored in the freezer for up to six months.
Do you need to peel pears for jam?
The fine quality and great taste of USA Pears will shine through in every batch of this delightful homemade jam! If preferred, peel pears. Cut pears lengthwise into quarters and remove cores and stem ends. Chop pears into chunks, bigger for chunky jam, smaller for a smooth batch.
What to do with lots of fresh pears?
A pear bumper harvest doesn't have to be overwhelming. These simple preservation techniques will allow you to enjoy these fruits this season and throughout the year.
- Canned Pears.
- Pear Juice.
- Frozen Pears.
- Pear Pie.
- Pear Butter.
- Pickled Pears.
- Refrigerate Pears.
- Pear Salads.
How do you preserve pears without canning them?
Blanch pears in fruit juice (apple or white grape) or water for 2 minutes. Let cool. Then, pack the pears in jars or other freezer-safe containers and fill in the empty space with the juice or water, being sure to leave the proper headspace. Use a piece of crumbled up wax paper to keep the pears submerged.
What can I do with a can of pears?
Five Ways to Turn Canned Pears into Sweet and Delicious Meals
- Produce-Packed Goodness: Pear Salad. Need to eat more fruits and veggies? (Who doesn't?)
- A Twist on a Classic: Pear Quesadilla.
- The Sweet and Savory: Cobb Salad with Pears.
- Mix, Scoop and Enjoy: Pear Party Salsa.
- A Pear-y Delicious Dessert: Frozen Pear Pops.
How ripe should Pears be for preserves?
Clean the rims of the jars with a clean, damp towel and tightly secure the lids. Using tongs, place the jars on the rack in the canner. The water should cover the jars by at least 1 inch. Cover the canner.
Can you Recook pear preserves?
It can be fixed! Here's how! If the jam is too thick, before you put it in the jars, just heat 1 or 2 cups of grape juice (or any other fruit juice of similar or neutral taste, like apple or white grape) to boiling. Then, gradually pour and stir it in until you reach the desired consistency, then continue canning!
Can you use unripe pears for jam?
If you want to get jam with pear pieces, use hard, slightly unripe pear varieties. Soft and ripe pears make a great pear puree. Be sure to add lemon juice.
Do pear skins have pectin?
Since they're related to apples, they also have higher-than-average pectin levels. Pears break down quite a bit when cooked, however. Mix pears with other fruits if you want to make a jam or spread out of them to counteract their mushiness. Alternatively, just use their skins to create pectin for other recipes.
Do pears have pectin?
Sources and production. Pears, apples, guavas, quince, plums, gooseberries, and oranges and other citrus fruits contain large amounts of pectin, while soft fruits, like cherries, grapes, and strawberries, contain small amounts of pectin.
Should pears be kept in the fridge?
Leave firm, unripe pears at room temperature so that they can ripen. Once the pear is ripe, it can be refrigerated to slow the ripening process and saved for use up to five days later.
Do pears freeze well?
Any variety of pear can be frozen, but stick with pears that are ripe. Test for ripeness by pressing gently near the top of the "neck." If it gives, it's ready for freezing—or eating!
Can I freeze whole fresh pears?
Rinse and drain small quantities of whole, fresh pears through several changes of cold water. Lift fruit out of the water; do not let it soak. Peel, halve, and core pears, then cut into slices or wedges. Place the sheet and pears in the freezer and allow to freeze solid.


text:
Everything Is Under Control
"[This exhibition] explores the wide field predictability and uncertainty, the instability and relative balances of systems and the processes which unfold in them."
Susanne Jaschko and Lucas Evers, curators.
✦ Everything Is Under Control is a prototype originally built for the Process As Paradigm workshop at LABoral. A light beam moves over the soil in a seemingly random fashion. Only over time the grass will grow in to a pattern, eventually revealing the message. How readable the message will be however is uncertain. This ongoing process is a silent dialogue between natural emergence and mechanical control. Designed in collaboration with Cathrine Kramer. Developed with Daniel Artamendi and Raquel Gallego de Lorenzo.
- Process As Paradigm, LABoral, April 2010


text:
The grass is greener near greenspaces
A recent UGA study revealed that environmental protection equals additional property tax revenue-good news for local governments looking to preserve greenspace.
The study, conducted by UGA's Institute of Ecology, looked at a variety of greenspace types, including bike and pedestrian trails, parks, tree-protected neighborhoods and lands adjacent to streams protected by Part V of the Georgia Planning Act. It found that, in general, property values rise as a result of proximity to protected greenspace.
The areas studied included Sandy Creek Park in Athens-Clarke County, the Silver Comet Trail in Cobb County and properties impacted by either Fulton County's tree protection ordinance or Habersham County's riparian (stream) buffer law. Houses within 1,500 feet of wildlife habitats were found to generate from $70 to as much as $1,566 more per year in tax revenue than similar homes not adjoining such areas.
Such income could offset the loss in local revenue normally associated with protected areas, said the study's author, Nanette Nelson, because such lands are often tax exempt or taxed at a lower rate. With this kind of information, local governments that rely on property tax revenue might think twice before developing "unused" land, especially since residential developments, on average, do not generate as much in revenue as they require in services, added Nelson, an economist and policy analyst at the Institute.
"Governments also don't consider the indirect revenue that protected areas can generate," said Nelson, citing recreational, restaurant and other consumer businesses that prosper near protected greenspaces. "It would be useful to see if that income differs significantly from nonprotected areas."


text:
Lane Targeting Light
The Torch is a simple light targeting tool used to help with accuracy and alignment. Using LED lights, it reflects a path of light on the lane to help you select the correct launch angle and hit your target time after time. As the player moves left and right, the light will change its position showing you exactly where you should throw the ball.
The Torch was designed to explain the aiming process in a way that can be easily understood by everyone. From children, to beginning bowlers, to special needs bowlers, the Torch is an easy and fun way to quickly improve this important fundamental skill.
- Helps define a bowlers starting point
- Helps bowlers to see the laydown point
- Helps keep the swing path in-line with the target path
- Helps keep the head stable throughout the approach
- Shows how the target changes if a bowler drifts left or right


Hawaii Entry Requirements
Double Lines
Please note the following entry requirements for travel to the United States:
 - You must hold a passport valid for at least six months from the date you enter the US.
 - You must be on a short and temporary visit.
 - You must agree to leave the US before the expiration of your visa.
 - You must hold a valid passport for the intended period of stay.
 - You must hold a valid visa issued by the US Embassy or Consulate.
 - You must maintain your identity as a foreigner during your stay.
 - You must comply with all requirements on visa issuance.
 - For more information, please contact the US Embassy or Consulate in your country.
Citizens of the following countries; the United Kingdom, Andorra, Australia, Austria, Belgium, Brunei, Denmark, Finland, France, Germany, Iceland, Ireland, Italy, Japan, Liechtenstein, Luxembourg, Monaco, the Netherlands, New Zealand, Norway, Portugal, San Marino, Singapore, Slovenia, Spain, Sweden and Switzerland may be eligible to travel to the United States visa-free under the Visa Waiver Program if they are travelling for business, pleasure or are in transit, and they meet all of the following requirements.
When your plane arrives in Hawaii, airline staff will direct you to Immigration Review where you will wait in line for your turn. During the review, hand your passport, a completed entry or exit record card and your customs declaration to the examiner (these will be distributed on the plane). The inspector will ask you some simple questions about your reasons for staying in the United States, the length of your intended stay and may ask you for your return ticket for reference. After the review has been completed, the reviewer will stamp your passport and issue a formal 1-94 form to you. This form will clearly indicate to US Customs the type of entry and potential duration of stay. Once this is finished, you may move on to Customs Declaration.
The natural beauty of Hawaii's fragile environment comes from its geographical isolation from other ecosystems. It's important to know that bringing plants, produce or animals can introduce pests and non-endemic species that could be destructive to Hawaii's environment.


Tag "Perinaldo"
Perinaldo, the small village in the Verbone valley behind Vallecrosia, is mainly known as the birthplace of Giovanni "Gian" Domenico Cassini, a great XVII century astronomer who was chosen by "le Roi-Soleil" to supervise the Paris observatory. He was the
In the hinterland of West Liguria, 572 metres above sea level, stands Perinaldo, an ancient medieval town steeped in history and science in addition to legends balanced between magic and esotericism, the sacred and the profane. Born around the year


View on
MetaCPAN
search.cpan.org is shutting down
For details read Perl NOC. After June 25th this page will redirect to MetaCPAN.org
Tony G. Rose > HTML-Summary-0.017 > HTML::Summary
Download:
HTML-Summary-0.017.tar.gz
Dependencies
Annotate this POD (1)
CPAN RT
New 2
Open 0
View/Report Bugs
Module Version: 0.017 Source Latest Release: HTML-Summary-0.022
NAME ^
HTML::Summary - module for generating a summary from a web page.
SYNOPSIS ^
 use HTML::Summary;
 use HTML::TreeBuilder;
 my $tree = new HTML::TreeBuilder;
 $tree->parse( $document );
 my $summarizer = new HTML::Summary(
 LENGTH => 200,
 USE_META => 1,
 );
 $summary = $summarizer->generate( $tree );
 $summarizer->option( 'USE_META' => 1 );
 $length = $summarizer->option( 'LENGTH' );
 if ( $summarizer->meta_used( ) )
 {
 do something
 }
DESCRIPTION ^
The HTML::Summary module produces summaries from the textual content of web pages. It does so using the location heuristic, which determines the value of a given sentence based on its position and status within the document; for example, headings, section titles and opening paragraph sentences may be favoured over other textual content. A LENGTH option can be used to restrict the length of the summary produced.
CONSTRUCTOR ^
new( $attr1 => $value1 [, $attr2 => $value2 ] )
Possible attributes are:
VERBOSE
Generate verbose messages to STDERR.
LENGTH
Maximum length of summary (in bytes). Default is 500.
USE_META
Flag to tell summarizer whether to use the content of the <META> tag in the page header, if one is present, instead of generating a summary from the body text. Note that if the USE_META flag is set, this overrides the LENGTH flag - in other words, the summary provided by the <META> tag is returned in full, even if it is greater than LENGTH bytes. Default is 0 (no).
 my $summarizer = new HTML::Summary LENGTH => 200;
METHODS ^
option( )
Get / set HTML::Summary configuration options.
 my $length = $summarizer->option( 'LENGTH' );
 $summarizer->option( 'USE_META' => 1 );
generate( $tree )
Takes an HTML::Element object, and generates a summary from it.
 my $tree = new HTML::TreeBuilder;
 $tree->parse( $document );
 my $summary = $summarizer->generate( $tree );
meta_used( )
Returns 1 if the META tag description was used to generate the summary.
 if ( $summarizer->meta_used() )
 {
 # do something ...
 }
SEE ALSO ^
 HTML::TreeBuilder
 Text::Sentence
 Lingua::JA::Jcode
 Lingua::JA::Jtruncate
AUTHORS ^
 Ave Wrigley <_EMAIL_>
 Tony Rose <_EMAIL_>
 Neil Bowers <_EMAIL_>
COPYRIGHT ^
Copyright (c) 1997 Canon Research Centre Europe (CRE). All rights reserved. This script and any associated documentation or files cannot be distributed outside of CRE without express prior permission from CRE.
syntax highlighting:


text:
A chemical process known as clearing and staining reveals the skeletal anatomy (bones and cartilage) of an animal. The process helps scientists compare different species, determine evolutionary relationships, and study developmental stages.
A digestive enzyme called Trypsin is used to remove all tissue except for transparent connective tissue. Two dyes are added. Alcian blue colors cartilage and Alizarin red dyes bone. Cleared and stained specimens are fragile and stored suspended in glycerin.
KU researchers in our Ichthyology division have developed further methods to help scientists understand the anatomy and movements of fish as well as other animals. Learn more about their work, which was featured in National Geographic magazine, Skeleton photos are getting a boost with the help of gelatin.


text:
Received Signal Strength Indication (RSSI) plays a vital role in the range-free localization of sensor nodes in a wireless sensor network and a good amount of research has been made in this regard. One important factor is the battery voltage of the nodes (i.e., the MICAz sensors) which is not taken into account in the existing literature. As battery voltage level performs an indispensable role for the position estimation of sensor nodes through anchor nodes therefore, in this paper, we take into a account this crucial factor and propose an algorithm that overcomes the problem of decaying battery. We show the results, in terms of more precise localization of sensor nodes through simulation. This work is an extension to and now we also use neural network to overcome the localization errors generated due to gradual battery voltage drooping.
|Number of pages
|International Journal of Electronics and Telecommunications
|Published - 1 Sept 2011


Recently i had to work on a form design having labels inside the text inputs. There are many ways to do that using javascript/jquery. The easiest way to do it is
<input type="text" value="First Name" name="yourname" onfocus="this.value = ''">
Being the basic it has limitations like once you focus on it the label is cleared and it will not come back or if you want to edit a field you can not, focusing on it second time will clear the value you entered previously.
Moreover i had to add features like, return of the default value when the cursor is moved from an empty input and initial label text (default value) in different color. And the fully functional code looks like :
$(document).ready(function(){
 //assigning css style for light color
 $('.lebelinput').addClass('lightcolor');
 // clearing input on focus
 $('.lebelinput').live('focus', function()
 {
 if($(this).val()==$(this).attr('title'))
 {
 $(this).val('').removeClass('lightcolor');
 }
 });
 //restoring input value on blrr if the input is left blank
 $('.lebelinput').live('blur', function()
 {
 if($(this).val()=='')
 {
 var inputtitle=$(this).attr('title');
 $(this).val(inputtitle).addClass('lightcolor');
 }
 });
});
all the input with css class ".lebelinput" will have the desired effect. I have used additional attributes "title" so that the default value can be restored if the field is left blank and that attribute also works like "tooltip". CSS class ".lightcolor" is used to overwrite the default color to different color.
You can find the demo here
There is a simpler solution in HTML5 using attributes "placeholder", but it does not work on focus.
Leave a Reply
Your email address will not be published. Required fields are marked *


text:
Winnett Cemetery, established in 1916, is the archetypical prairie cemetery of eastern and central Montana communities. The markers represent the homestead settlement era, the oil boom of the 1920s, and the slow decline in rural population thereafter. While relics of the homestead settlement era are representative of many communities east of the Divide, the oil boom relics are specific to the Winnett area. The grave markers are made from locally available materials, which is typical of the prairie communities in the early 1900s. These materials include sandstone, iron spikes, and railroad ties. Furthermore, the cemetery is a physical reminder of the hardships endured by the settlers of the early 20th century.
The cemetery included misaligned rows, lost markers, and areas filled with undocumented graves. The disorganization made it difficult to locate family plots and individual graves. Using a grant from the History Foundation, the Petroleum County Conservation District employed Archaeo-physics and the University of Montana Archaeological School to complete a geophysical survey. This data was used to create a field map locating all known burials.


text:
The internet is full of fabulous facts about everything from current events to the history basket weaving. Because of this, as we research for our daily content on food trucks, food carts and street food, we stumble upon some items of knowledge that we just did not know. We have decided when these fun facts pop up, that we would share them with our readers in our section titled "Did You Know?"
For today's Did You Know will look at Boston Cream fun facts.
The Facts: This pudding and cake combination comprises two layers of sponge cake filled with vanilla flavored custard or crème pâtissière. The cake is topped with a chocolate glaze (such as ganache) and sometimes powdered sugar or a cherry.
- The Boston Cream Pie was created by Armenian-French chef M. Sanzian at Boston's Parker House Hotel in 1856.
- Although it is called a Boston cream pie, it is in fact a cake, and not a pie.
- A Boston cream doughnut is a name for a Berliner filled with vanilla custard or crème pâtissière and topped with icing made from chocolate.
- October 23rd is Boston Cream Pie Day.
- The Boston cream doughnut was designated the official doughnut of Massachusetts in 2003.
- The Boston Cream Pie was proclaimed the official Massachusetts State Dessert on December 12, 1996.
Boston Cream Fun Facts We Missed
If so, please feel free to let us know in the comment section below. We always love to add to these lists. If we can verify that the facts is just that, a fact, we will give the reader credit in the article.
Reference: Wikipedia: Fun Facts about Boston Cream.


text:
Due to the relative levels sometimes it is required to lower the bed of the irrigation channel of the drainage channel at their crossing.
When the bed of the irrigation channel is depressed and taken under stream it is called an irrigation siphon.
When the bed of the stream is depressed and taken under an irrigation channel it is called a drainage siphon.
The siphon crossing can be a rectangular closed masonry channel of circular brickwork of Rcc or pipe of the required diameter and number approach and exit may be through a masonry drop pit or of masonry slopped channel. The downstream end is kept lower than the upstream end by at least 15cm for better flow.


A Survey of Norse Castles in Orkney
Orkney is perhaps best known, in the context of castles, for Cubbie Roo's
castle (Figure 16.1, 1), thought to be one of the earliest stone-built keeps in Scotland. However, its relationship to other fortified buildings in the earldom, and the role of these buildings in 12th-century Orcadian society, is less well understood. Why was a stone keep built in Orkney in the mid 12th century? From where did the inspiration come? Was it exceptional or did it form part of a wider pattern of 'castle' architecture? To address these questions, Cubbie Roo's castle will be discussed in the context of 12th-century Orkney society and compared with other similar buildings, with particular emphasis on their placement. This study aims to evaluate the evidence in the context of Northern European maritime power and the recent revision of ideas of kingship and feudalism in the wider Scandinavian world.
Original languageEnglish
Title of host publicationCastles and Galleys
Subtitle of host publicationA reassessment of the historic galley-castles of the Norse-Gaelic seaways
EditorsPaula Martin
Place of PublicationLaxay
PublisherIslands Book Trust
Number of pages23
ISBN (Print)9781907443763
Publication statusPublished - 1 Aug 2017
Fingerprint Dive into the research topics of 'A Survey of Norse Castles in Orkney'. Together they form a unique fingerprint.
Cite this


text:
- This event has passed.
Long Island City, New York: Kate Lacour at Book Culture LIC
August 15 @ 6:00 pm - 8:00 pm PDT
Join us at Book Culture LIC on Thursday, August 15th at 6pm as we welcome Kate Lacour for the launch of her new book, Vivisectionary.
From "vivisection," the act of dissecting living specimens, and "bestiary," a compendium of real and mythical creatures. Kate Lacour's Vivisectionary is a series of visual sequential experiments in the physiological, the pathological, and the occult. A bizarre and mesmerizing investigation through the marvels of biology and myth to uncover the extraordinary in the ordinary, the magic in science, the sublime in the grotesque. Part art comic, part surrealist textbook, Vivisectionary is a delightfully grotesque mix of the mundane and the macabre.
What if lactating snakes gestated inside fetuses? What if factory-farmed pigs were bred as giant, insentient cubes? What if the human spine generated methamphetamine capsules? These single page sequential images illustrate these and many other marvelous, hideous, enigmatic physiological mysteries. Each comics sequence is stitched together (pun intended) by a narrative thread that forms a strange and mesmerizing voyage through the body.


text:
8. Predicates and Utilities
Now that we know how to create classes, access slots, and define
methods, it might be useful to verify that everything is doing ok. To
help with this a plethora of predicates have been created.
- Function: class-v class
- Return a vector with all the class's important parts in it. This vector
is not a copy. Changing this vector changes the class. The CLOS method
find-class will have the same effect.
- Function: find-class symbol &optional errorp
- CLOS function. In EIEIO it returns the vector definition of the class.
If there is no class,
nil is returned if errorp is
- Function: class-p class
- Return nonnil if class is a class type.
- Function: object-p obj
- Return nonnil if obj is an object.
- Function: slot-exists-p obj-or-class slot
- Return Nonnil if obj-or-class contains slot in its class.
- Function: slot-boundp object slot
nil if OBJECT's SLOT is bound.
Setting a slot's value makes it bound. Calling slot-makeunbound will
make a slot unbound.
OBJECT can be an instance or a class.
- Function: class-name class
- Return a string of the form # which should look
similar to other lisp objects like buffers and processes. Printing a
class results only in a symbol.
- Function: class-option class option
- Return the value in CLASS of a given OPTION.
(class-option eieio-default-superclass :documentation)
Will fetch the documentation string for
- Function: class-constructor class
- Return a symbol used as a constructor for class. This way you can
make an object of a passed in class without knowing what it is. This is
not a part of CLOS.
- Function: object-name obj
- Return a string of the form # for obj.
This should look like lisp symbols from other parts of emacs such as
buffers and processes, and is shorter and cleaner than printing the
object's vector. It is more useful to use
object-print to get
and object's print form, as this allows the object to add extra display
information into the symbol.
- Function: object-class obj
- Returns the class symbol from obj.
- Function: class-of obj
- CLOS symbol which does the same thing as
- Function: object-class-fast obj
- Same as
object-class except this is a macro, and no
type-checking is performed.
- Function: object-class-name obj
- Returns the symbol of obj's class.
- Function: class-parents class
- Returns the direct parents class of class. Returns
it is a superclass.
- Function: class-parents-fast class
- Just like
class-parent except it is a macro and no type checking
- Function: class-parent class
- Deprecated function which returns the first parent of class.
- Function: class-children class
- Return the list of classes inheriting from class.
- Function: class-children-fast class
- Just like
class-children, but with no checks.
- Function: same-class-p obj class
t if obj's class is the same as class.
- Function: same-class-fast-p obj class
- Same as
same-class-p except this is a macro and no type checking
- Function: object-of-class-p obj class
t if obj inherits anything from class. This
is different from
same-class-p because it checks for inheritance.
- Function: child-of-class-p child class
t if child is a subclass of class.
- Function: generic-p method-symbol
method-symbol is a generic function, as
opposed to a regular emacs list function.
It is also important to note, that for every created class, a two
predicates are created for it. Thus in our example, the function
data-object-p is created, and return
t if passed an object
of the appropriate type. Also, the function
is created which returns
t if the object passed to it is of a
type which inherits from
This document was generated
by XEmacs Webmaster on October, 2 2007


Quick Answer: Are Red Nose Pitbulls more aggressive than blue nose?
Red nose pit bulls may appear more intimidating than blue nose pit bulls, mostly because of their muscular build. … However, if trained and loved, red nose pit bulls can be extremely friendly, soft, and loyal companions. They possess a stocky frame, which is quite apparent in all pit bulls.
Are Red Nose Pitbulls more aggressive?
Red Nose Pitbull is More Aggressive Than Other Breeds
Though it has a small body compared to other breeds, people still find it intimidating because they did not find them friendly enough until recent times. The title of being aggressive comes from their ancestors, who were used in the blood-spattering fights.
What is the difference between red nose and Bluenose pitbulls?
Blue Noses have more of a grayish or charcoal color nose, and the coat is often a similar gray color. Red Noses have a reddish/pinkish nose, often with red or auburn fur. With both types, inbreeding is a concern with breeders whose focus is physical characteristics over the health of the dog.
IT IS INTERESTING: Is dads a good dog food?
Are blue nose pitbulls more aggressive?
Blue nose pit bulls are actually extremely loving, loyal, and even good with children. This particular breed of dog was NOT bred to be aggressive or to fight, which is a common misconception with many dog breeds, especially the blue nose pit-bull.
Why are Red Nose Pitbulls illegal?
A banned breed? Pitbull are now outlawed in the UK as part of the 1991 dangerous dogs act. This was done in part due to the dangerous reputation of these dogs, but also because of their use in dog fighting rings. 'Bully' breeds often stem back to the days of bear baiting and other similar 'sports'.
Why do pits turn on their owners?
Fear aggression is a major reason why dogs attack their owners. If your dog has a bad history or she has been beaten and mistreated before, then they feel threatened and become defensive.
Are Red Nose Pitbulls good family dogs?
A Red Nose Pitbull craves interaction and the companionship with their favorite humans. They're good pets for the family and are renowned for being superb with children! This breed is ideal for families that have experienced taking care of larger breeds.
What is the rarest pitbull color?
By far the rarest of Pit Bulls are those that are Merle. The Merle Pit Bull is distinct in its genetics and many times exhibit unique color schemes and a trademark blue eye. The blue eye or eyes are also referred to as crystal and glass eyes.
How can you tell if a pitbull is purebred?
How to Tell if It's a Pitbull Breed
 - Look at the size and ratios of the dog. Pitt bulls are two and one-half feet tall at the shoulder or shorter. …
 - Look at the dog's coat. The color is irrelevant. …
 - Examine the dog's head and neck. A pit bull's head is extremely wide from ear to ear, across the brow and from cheek to cheek.
IT IS INTERESTING: Why is my puppy restless at night all of a sudden?
Do blue nose pitbulls bark a lot?
These dogs naturally love people. Like, love-love people so much that you'll have to do training to keep them from jumping up on people. They rarely bark so they don't make great watch dogs either.
What are blue pits worth?
The Blue Pit is no different from other pit bulls, and it's becoming popular among breeders, but it's still rare to find. A Blue Nose Pitbull puppy can cost around $1,000 to $3,000.
Can blue nose pitbulls swim?
Pit bulls are capable of swimming and liking water, but their build and facial structure make it harder for them than other breeds. If you have a water-loving pitbull, you don't have to keep them dry, instead find them safer alternatives for aquatic play, such as a kiddie pool, shallow stream, or gently sloping beach.
How do I make my red nose pitbull muscular?
You can start with simple exercises such as walking, running, and making him run through poles. These exercises will surely make your Pitbull gain more muscles. Exercise alone, on the other hand, will not make your Pitbull gain more muscles. You also have to closely monitor his diet.
How do you tell if your pitbull is a red nose?
If it is red or reddish-brown in color, then you have a red-nose pit bull. If it is gray or light black, then you have a blue-nose pit bull. Other colors include black and pink. "Butterfly" noses are red with lighter pink patches.
Dog Blog


text:
This article is about the NPC in the quest Meeting History. For other uses, see Max (disambiguation).
|Release date||5 August 2008 (Update)|
|Quest NPC||Meeting History|
|Location(s)||Past East Ardougne, reached via the enchanted key|
|Examine||He looks and smells like he's been in the wild for some time.|
Max is resting at a small campsite south of Roger's farm, where he is preparing to travel further abroad. To reach the farm, players must use the Enchanted key obtained after the Making History or Meeting History quests.
|Laura †||Roger †|
|Jack †||Sarah †||Max †|
|Part 2 of the Enchanted key quest series|


text:
From Creatures Wikia
The Laokoon Statue COB was made by Stefan Kuske.
From the readme: Laokoon Statue for your norns. Once installed in your world it will affect all creatures in front of the statue with the following results:
- Need for Pleasure Decrease: 50
- Boredom Decrease: 50
- Fear increase (don't know why?!?!): +10
- Energy (because of some magical effects): +70


Specify ciphers allowed for protocol version 2
Use this group policy to specify the ciphers allowed for SSH protocol version 2. If you enable this policy, you can add or delete ciphers to increase the speed of SSO.
Multiple ciphers must be separated by commas. If you want to add a cipher to the list, use the '+' character at the beginning of the name. If you enter the name only, you will replace the existing ciphers with the new cipher.
The order of the cipher list will determine the order that sshd uses the ciphers. For example, if you want to increase the speed of SSO, you can place the cipher, aes128-ctr, at the beginning of the list.
When this policy is disabled, the default cipher list, which is the most secure grouping, is used, but may cause delays in SSO.
To enable this group policy, you must be running Centrify OpenSSH 5.3.0 or later.
This group policy modifies the Ciphers setting in the following file: /etc/centrifydc/ssh/sshd_config


text:
If you ever go to Mallorca the first thing you'll see when you look down from the plane are windmills. When you take a bus or taxi from the airport you'll see about a million more windmills. When you google "Why does Mallorca" it autocompletes "have so many windmills?" So we're here to answer that question.
In our town of Manacor I don't think I could count how many windmills there are. In one block alone there are at least 10. The vast majorities of the windmills here and in Palma don't have their spokes/vanes/blades anymore. Also most don't have their coned top. Most look like they're falling apart like in this picture.
Even without blades or a roof they used to be windmills. And the questions are: why are there so many windmills all over Mallorca? Are they all the same? Are they still in use? How long have they been here?
How long have they been here?
The concept of windmills were probably brought over by the Romans or Moors. So a long time ago. They've changed a lot since then to have a unique Mallorcan flare. Some had a steering pole so you could change the direction to the wind. Some were painted blue and white which has become the traditional coloring of them. In the 1600s they were so important that millers got together and created a guild. The guild owned all of the repair tools so everyone had to work together (and couldn't buy their own stuff individually). This guild chose Saint Lawrence as their patron saint and some windmills have his image on them.
Some were covered in cotton or wool which made a great impression on Pope Pius IX who visited Mallorca in the 1850s/1860s. Maybe. This could just be a rumor.
Are they all the same?
No, there are 2 kinds: Flour and water windmills.
Probably the vast majority of windmills in Manacor are former flour mills. They've been written about since the 1400s. They were probably around before then (Romans/Moors probably brought them to the island) but maybe no one wanted to write about them. The ones still around probably date from between the 1600s-1800s. You can tell, the stairs are worn down severely from people walking up and down for hundreds of years.
The World Monument Fund says there used to be around 900 on the island but 200 have probably been lost – but First Mallorca says over 3,000 flour mills are on the island (this feels more accurate when you look around) 600 are considered "classical." On a short walk through Manacor we counted over 15.
The base of these mill is called the cintell and it's actually a small house. It serves as the foundation of the windmill as well as the home of the miller and his family. Most of the former flour mills in Manacor are now homes.
Some are remodeled and others are dissolving from age. When we were looking at apartments there were at least 3 listings for windmill homes. They're gorgeous, obviously with arched ceilings and intricate stone work.
Some have the coned top intact. Most still have the cylindrical stone tower above them – while others have chopped the whole tower off and continue living in the stone base. There are many guilds and groups "Friends of the Windmills" which will help you remodel your windmill at little to no cost to you. Additionally some tourist taxes have gone into remodeling the windmills.
The tower used to hold the millstones. Some of the remolded versions online have been converted into bedrooms.
The vanes were made of metal and would be covered with cotton or wood to make sails. I've never seen one that still has fabric on the sails.
People deposited their grain at the top, the wind would turn the sails which would turn a driveshaft. There were two millstones inside the tower, one was fixed and the other is connected to the driveshaft which turned with the wind. The grain would be milled into flour between the stones. As more grain is added it would push the finished product down onto ramps where it could be bagged.
In the 1890s the railway made the grain mills less important since you could just bring food anywhere on the island. According to Mallorca Incognita the last one stopped milling in 1964. 500+ years is a pretty good run for any piece of technology.
These were used to extract water from underground wells or reservoirs. This water was usually for irrigating crops.
These are the most common windmills you'll see in the Palma area. First Mallorca says there are around 2,500 water extraction windmills. They can have a platform below them but many just stand directly on the ground.
The tower can be square or rounded – the top may have angles to it. There are modern versions with metal blades (that are still in use in agricultural areas like Pla de Sant Jordi). In short there are loads of different kinds of windmills – you can see a whole list here.
The first water mill dates back to 1845. It wasn't actually made to irrigate agriculture. It was made, as Trump would say, to drain the swamp. There was a swampy bit of land and a Dutch engineer was like "I can fix that." A local man figured he could use it to actually irrigate something so he tweaked the design to have wooden blades but no real sails – called a ramell (after a flower in Catalan). Every man since then took a look at the design and made tweaks to the blades or the shapes. One was even close-able like an umbrella if it got too windy.
At the best of times they could pump 40,000 liters and hour which is way too much and ended up causing people to dig deeper and deeper each year. They were still being used until the 1970s. Three things happened almost at once that killed off the mainstream use of the water mill
- The 60s and 70s was the beginning of the tourism boom for Mallorca. Tourism began bringing more people than the island could provide water or food for. So there was a push for electric mills.
- Underground aquifers were ruined by sea water and it wasn't worth it anymore to get underground water.
- Franco died in 1975 and the whole country underwent a giant political remodel. Many people moved after his death so many mills and farms were just abandoned.
So these mills didn't last as long as the flour mills. They barely made over 100 years.
So in short why are there so many windmills all over Mallorca?
People need to eat and drink. Mills provided water to crops and mills crushed the crops into delicious flour to make bread. We didn't always have railroads or boats to bring things over and people needed to grow their own food.
The only reason you can still see them is because they're extensively (and expensively) remodeled – some say this is only done to please tourists. And some people blame the tourists for destroying the mills in the first place. If you want to be accurate: wind and water are destroying the mills which is ironic because they were designed to use wind to get water.


text:
HP OpenVMS Systems Documentation
OpenVMS System Manager's Manual
19.8.3 System Load Test Phase
The purpose of the system load test is to simulate a number of terminal users who are demanding system resources simultaneously. The system load tests, directed by the file UETLOAD00.DAT, create a number of detached processes that execute various command procedures. Each process simulates a user logged in at a terminal; the commands within each procedure are the same types of commands that a user enters from a terminal. The load test creates the detached processes in quick succession, and the processes generally execute their command procedures simultaneously. The effect on the system is analogous to an equal number of users concurrently issuing commands from terminals. In this way, the load test creates an environment that is similar to normal system use.
The load test uses the logical name LOADS to determine the number of detached processes to create. When you initiate the UETP command procedure, it prompts for the number of users to be simulated (see Section 19.4.3) and consequently the number of detached processes to be created. Your response, which depends on the amount of memory and the swapping and paging space in your system, defines the group logical name LOADS.
The UETP master command procedure deassigns all group logical names assigned by its tests as part of the termination phase. The group logical name LOADS remains assigned only if the UETP package does not complete normally.
The command procedures executed by the load test can generate a large amount of output, depending on the number of detached processes created. For each detached process (or user), the test creates a version of an output file called UETLOnnnn.LOG (nnnn represents a string of numeric characters). The console displays only status information as the load test progresses.
Whether the load test runs as part of the entire UETP or as an individual phase, UETP combines the UETLOnnnn.LOG files, writes the output to the file UETP.LOG, and deletes the individual output files.
If DECnet for OpenVMS software is included in your OpenVMS system, a run of the entire UETP automatically tests DECnet hardware and software. Because communications devices are allocated to DECnet and the DECnet devices cannot be tested by the UETP device test, UETP will not test the Ethernet adapter if DECnet for OpenVMS or another application has allocated the device. The DECnet node and circuit counters are zeroed at the beginning of the DECnet test to allow for failure monitoring during the run.
The DECnet for OpenVMS test will work successfully on OpenVMS systems connected to all DECnet supported node types, including routing and nonrouting nodes and several different types of operating systems (such as RSTS, RSX, TOPS, and RT). To copy files between systems, the remote systems must have some type of default access. The DECnet phase tests the following nodes and circuits:
No limit exists on the number of communication lines supported by the tests. A test on one adjacent node should last no more than two minutes at normal communications transfer rates.
184.108.40.206 How the DECnet Phase Works
19.8.5 Cluster-Integration Test Phase
The cluster-integration test phase consists of a single program and a command file that depend heavily on DECnet for OpenVMS software. This phase uses DECnet for OpenVMS software to create SYSTEST_CLIG processes on each OpenVMS node in the cluster and to communicate with each node. SYSTEST_CLIG is an account that is parallel to SYSTEST, but limited so that it can only be used as part of the cluster-integration test. The following restrictions on the SYSTEST_CLIG account are necessary for a correct run of the cluster test phase:
These items are necessary to ensure the security and privacy of your system. If the test cannot create a SYSTEST_CLIG process on an OpenVMS node, it gives the reason for the failure and ignores that node for the lock tests and for sharing access during the file test. Also, the test does not copy log files from any node on which it cannot create the SYSTEST_CLIG process. If a communication problem occurs with a SYSTEST_CLIG process after the process has been created, the test excludes the process from further lock and file sharing tests. At the end of the cluster-integration test, an attempt is made to report any errors seen by that node.
UETCLIG00.EXE has two threads of execution: the primary and the secondary. The first, or primary thread, checks the cluster configuration (OpenVMS nodes, HSC nodes, and the attached disks that are available to the node running the test). For selected OpenVMS nodes, the primary thread attempts to start up a SYSTEST_CLIG process through DECnet software. If the primary thread was able to start a SYSTEST_CLIG process on a node, the node runs the command file UETCLIG00.COM, which starts up UETCLIG00.EXE and runs the secondary execution thread.
The process running the primary thread checks to see that it can communicate with the processes running the secondary threads. It then instructs them to take out locks so that a deadlock situation is created.
The primary thread tries to create a file on some disk on selected OpenVMS and HSC nodes in the cluster. It writes a block, reads it back, and verifies it. Next, it selects one OpenVMS node at random and asks that node to read the block and verify it. The primary thread then extends the file by writing another block and has the secondary thread read and verify the second block. The file is deleted.
The secondary processes exit. They copy the contents of their SYS$ERROR files to the primary process, so that the UETP log file and console report show all problems in a central place. DECnet for OpenVMS software automatically creates a NETSERVER.LOG in SYS$TEST as the test is run, so that if necessary, you can read that file later from the node in question.
During the test run, the primary process uses the system service SYS$BRKTHRU to announce the beginning and ending of the test to each OpenVMS node's console terminal.
You can define the group logical name MODE to the equivalence string DUMP to trace most events as they occur. Note that the logical name definitions apply only to the node on which they were defined. You must define MODE on each node in the cluster on which you want to trace events.
|Using the Error Formatter (ERRFMT)||Section 20.3|
|Using ERROR LOG to produce reports||Section 20.4|
|Using DECevent to report system events||Section 20.5|
|Setting up, maintaining, and printing the operator log file||Section 20.6|
|Using security auditing||Section 20.7|
|Using the Monitor utility to monitor system performance||Section 20.8|
This chapter explains the following concepts:
|System log files||Section 20.1|
|Error logging||Section 20.2|
|Error Log utility (ERROR LOG)||Section 20.4.1|
|DECevent Event Management utility||Section 20.5.1|
|Operator log file||Section 20.6.1|
|OPCOM messages||Section 20.6.2|
|Security auditing||Section 20.7.1|
|Monitor utility (MONITOR)||Section 20.8.1|
In maintaining your system, collect and review information about system events. The operating system provides several log files that record information about the use of system resources, error conditions, and other system events. Table 20-1 briefly describes each file and provides references to sections that discuss the files in more detail.
|Log File||Description||For More Information|
|Error log file||The system automatically records device and CPU error messages in this file.||Section 20.2|
|Operator log file||The operator communication manager (OPCOM) records system events in this file.||Chapter 2 and Section 20.6|
|Accounting file||The accounting file tracks the use of system resources.||Chapter 21|
|Security audit log file||The audit server process preallocates disk space to and writes security-relevant system events to this file.||Section 20.7|
The error logging facility automatically writes error messages to the latest version of the error log file, SYS$ERRORLOG:ERRLOG.SYS. Error log reports are primarily intended for use by Compaq support representatives to identify hardware problems. System managers often find error log reports useful in identifying recurrent system failures that require outside attention.
Starting with OpenVMS Version 7.2, DECevent Version 2.9 or later is required for analyzing error log files. DECevent Version 2.9 provides a separate utility, the Binary Error Log Translation utility, in the DECevent kit. This utility converts the new Common Event Header (CEH) binary error log file into a binary error log file whose header format and structure can be read by earlier versions of DECevent and by the older Error Log utility.
For more information about the Binary Error Log Translation utility, refer to its documentation, which is included in the DECevent kit shipped with the OpenVMS kit.
The error logging facility consists of the parts shown in Table 20-2.
|Executive routines||Detect errors and events, and write relevant information into error log buffers in memory.|
|Error Formatter (ERRFMT)||
ERRFMT process, which starts when the system is
booted, periodically empties error log buffers, transforms the
descriptions of


Dilshad (Name) | Meaning of Dilshad | Origin of Dilshad at MFnames.com
A Dictionary of Names with Name Meanings and Name Origins
The Name Dilshad - Origin and Meaning of Dilshad
The Name Dilshad - Origin and Meaning of Dilshad
Masculine and Feminine
Origin of the Name Dilshad
Usage of the Name Dilshad
Meaning of the Name Dilshad
The name Dilshad means "happy, cheerful" in Persian.
Famous Bearers
Bearers of the name include Dilshad Khan (born 1945), an Indian male singer; Dilshad Said (born 1958), a Kurdish male musician, singer, and composer; Dilshad Vadsaria (born 1985), an American actress.
Names Related to Dilshad
List of names related to Dilshad.
Did you find the information about the origin and meaning of Dilshad interesting and helpful? Share this page with your friends or leave a comment:


The World'S Strongest Acid Hexahydrate, Fluoroantimonic Acid
Fluoroantimonic acid Identifiers Properties
IUPAC name Fluoroantimonic acid
CAS number 16950-06-4
Molecular formula HSbF6
Molar mass 236.808 g/mole
Appearance colourless syrup
Density g cm–3
Melting point
°C at mmHg
Boiling point
decomposes
Fluoroantimonic acid HSbF6 is a mixture of hydrogen fluoride and antimony pentafluoride in various ratios.
Đang xem: The world's strongest acid
<1> The 1:1 combination affords the strongest known superacid, which has been demonstrated to protonate even hydrocarbons to afford carbocations and H2.
The reaction of hydrogen fluoride (HF) and SbF5 is exothermic. HF releases its proton (H+), and its conjugate base (F−) is sequestered by one of more molecules SbF5 to give the octahedral SbF6−. This anion is classified as noncoordinating, because it is both a very weak nucleophile and a very weak base. The proton effectively becomes "naked", which accounts for the system"s extreme acidity. Fluoroantimonic acid is 2×1019 times stronger than 100% sulfuric acid. The reaction of hydrofluoric acid and antimony pentafluoride proceeds as follows
Additional recommended knowledge
*
Safe Weighing Range Ensures Accurate Results
*
*
1 Structure
*
Structure
Two related products have been crystallised from HF-SbF5 mixtures, and both have been analyzed by single crystal X-ray crystallography. These salts have the formulas and . In both salts the anion is Sb2F11−.<2> As mentioned above, SbF6− is classified as weakly basic; the larger monoanion Sb2F11− would be expected to be still weaker.
Xem thêm: Star – Please Wait
Comparison with other acids
The following values are based upon the Hammett acidity function. Acidity is indicated by large negative values of H0.
Fluoroantimonic acid (1990) (H0 Value = −31.3) Magic acid (1974) (H0 Value = −19.2) Carborane superacid (1969) (H0 Value = −18.0)
Applications
Main article: Superacid#Applications
This extraordinarily strong acid protonates nearly all organic compounds. In 1967, Bickel and Hogeveen showed that HF-SbF5 will remove H2 from isobutane and methane from neopentane:<3><4>
(CH3)3CH + H+ → (CH3)3C+ + H2(CH3)4C + H+ → (CH3)3C+ + CH4
Safety
HF-SbF5 is rapidly and explosively decomposed by water. It reacts with virtually all known solvents.<1> A solvent that has proven compatible with HF-SbF5 is SO2ClF. Chlorofluorocarbons have also been used as solvents. Containers forHF-SbF5 are made of Teflon.
Xem thêm: Amoniac: Công Thức Amoniac Lỏng, Amoniac Là Gì
References
Categories: Antimony compounds | Fluorides | Inorganic compounds | Superacids
This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article "Fluoroantimonic_acid". A list of authors is available in Wikipedia.
Xem thêm bài viết thuộc chuyên mục: Hóa học
READ: Trộn 250Ml Dung Dịch Hỗn Hợp Hcl 0 08M Và H2So4 0 01M, Trộn 250 Ml Dung Dịch Hỗn Hợp Gồm Hcl 0,08M Và H


Dec 192019
ADM
How to measure execution time in Golang
 - December 19 2019
 - ADM

How to measure execution time in Golang - golang

To mesure the time used by an application in Golang or of a code section the functions time.Now() and time.Since() can be used.
Code Section Timing
package main
import (
 "fmt"
 "time"
)
func main() {
 fmt.Println("Simple time measurement Golang Example")
 fmt.Println("")
 start := time.Now()
 //measuring the durration of the for loop
 for index := 0; index < 10; index++ {
 time.Sleep(500 * time.Millisecond)
 }
 elapsed := time.Since(start)
 fmt.Printf("The 'for' loop took %s", elapsed)
}
Note: For this simple example it was used a for loop with 10 iterations having a 500 milliseconds sleep period.
Output
Simple time measurement Golang Example
The 'for' loop took 5.000286s
Note: The result is this example is expected based on the loop. 10 iterations X 500 milliseconds = ~ 5 sec
Function Timing
To measure the execution time for a function it's easier to create an separate function that measure the time, and using defer to the measuring function in the beginning of the function we want to measure will ensure that the measuring function will be executed the last before leaving the current function.
package main
import (
 "fmt"
 "time"
)
func timeMeasurement(start time.Time) {
 elapsed := time.Since(start)
 fmt.Printf("Execution time: %s", elapsed)
}
func workerFunction() {
 defer timeMeasurement(time.Now())
 fmt.Println("Running 'workerFunction' function")
 for index := 0; index < 10; index++ {
 time.Sleep(500 * time.Millisecond)
 }
}
func main() {
 fmt.Println("Function time measurement Golang Example")
 fmt.Println("")
 workerFunction()
}
Output
Function time measurement Golang Example
Running 'workerFunction' function
Execution time: 5.001286s
Compile&Run
To compile the code navigate to the file location and run the following command.
$ go build timeMeasurement.go
Assuming that timeMeasurement.go is the name of your file.
Then depending on if you are on Linux or Windows the binary file is created.
To run the application execute the command.
Linux
$ ./timeMeasurement
Windows
c:\Users\adm\go\tutorials> timeMeasurement.exe
If you want to compile and run the application in one single step run the following command:
go run timeMeasurement.go
References


text: In this study, the effects of gamma-ray and neutron radiation on multi-walled carbon nanotubes (MWCNTs) at different doses were investigated. The samples in powder form were exposed to thermal neutrons, fast neutrons, and 10 kGy and 20 kGy doses of gamma-ray radiation. Virgin and irradiated MWCNTs were investigated through structural, optical, morphological, and chemical analysis by Raman spectroscopy, x-ray diffraction (XRD), x-ray photoelectron spectroscopy (XPS), transmission electron microscopy (TEM), and scanning electron microscopy (SEM) to investigate the damage produced by the radiation. The Raman spectroscopy measurements show that the I-D/I-G ratio increased with the irradiation except for the 10 kGy gamma rays. XPS measurements display a higher degree of oxygen incorporation with the neutron irradiation. Detailed analysis of the Cls spectra also shows lower percentages of C=C sp(2) and higher percentages of C-C sp(3) in the MWCNTs irradiated by neutrons. Dark black spots were observed in the MWCNTs by irradiation, which is attributed to the formation of an amorphous structure by TEM measurements. The results show that, overall, the 10 kGy gamma irradiation dose improves the structural quality while the 20 kGy dose gamma rays, fast, and thermal neutrons caused a decrease in the degree of the structural quality of the MWCNTs.


Researchers study french fry oil from fast-food chains vs. small businesses
University of Hawaiʻi at Mānoa
Posted: Jan 21, 2010
With more Americans eating out, at least three times a week, and a lack of adequate nutritional information available to consumers, University of Hawai'i at Mānoa geobiology professor A. Hope Jahren and postdoctoral researcher Brian A. Schubert wanted to examine the oil content in a growing trend on American restaurant menus: french fries. What they found was that the majority of national chain restaurants on O'ahu served fries containing corn oil—which is higher in cholesterol-raising saturated fat than other vegetable oils such as canola, soy and safflower—as compared to small mom-and-pop restaurants.
The team found that the majority (69 percent) of the national chain restaurants served fries containing corn oil, whereas this was true for only a minority (20 percent) of the small businesses. Jahren and Schubert concluded that fries at the mom-&-pop restaurants are slightly healthier than at the big chains, thus making them a better dining choice.
Jahren and Schubert conducted their research over a year and a half by purchasing fries at 134 restaurants on the island of O'ahu and analyzing the expressed oil for carbon isotope value. Because O'ahu is geographically small, Jahren and Schubert were able to sample 68 of the 101 national chain fast food restaurants on the island, as well as a similar number of small local restaurants. Thus, they captured a profile of fast-food fries available to a population. Local restaurants sampled include Big City Diner, Rainbow's Drive Inn, Like Like Drive Inn, Kanpai Bar and Grill and South Shore Grill.
 "Surprisingly, there was such a clear difference between the amount of corn oil in fast-food chains and the local mom-and-pop restaurants," said Jahren. "Since corn oil is more expensive than other vegetable oils, we hypothesized that it would be a simple function of what was cheapest."
However, Jahren and her team discovered that to make corn oil cost-effective, it is necessary to contract ingredients on a large scale from preferred distributors, which makes sense for national chains, but not from a small business profit perspective.
Fast-food restaurants are not providing enough ingredient and nutrient content at the point of purchase. "People want to eat right, they just don't know how," noted Jahren. "Multiple studies have demonstrated that knowledge of ingredients leads to changed eating habits."
The study was not supported by any public or private agency. All participants donated their money, time, travel and expertise. Jahren and Schubert's article "Corn content of French fry oil from national chain vs. small business restaurants" is published in Proceedings of the National Academy of Sciences at:


text:
(Santa Ana, CA)—When Rancho Santiago Community College District (RSCCD) Trustees visits the Santa Ana College Early Childhood Education Center on December 15, they will read aloud to children, who are students at the lab school. Following the reading, they will visit classrooms and present a gift book to each child. Included with that book will be a card which includes the following tips for reading aloud to children for parents:
- Read to children from birth-short board books are best for babies.
- Take children to the library or store to choose a book.
- Find a quiet comfortable place to read-make sure your child can see the pictures.
- Select books with great pictures and rhyming words to engage children.
- Read a variety of books, but repeat favorites.
- Use enthusiasm and expression when reading-use sounds and gestures.
- Explain some new words that your child may not have heard before.
- Alter stories by putting in your child's name.
- Read slowly to allow children to build a mental picture of the story.
- Encourage children to turn the pages of the book.
- Ask question and have children make predictions about the story.
- Limit the amount of time your children watch television; read to a child instead.
- Read every day to children—make reading a habit!
These additional resources will also be provided for parents:
For more information, please contact Janneth Linnell, RSCCD director of Child Development Services at _EMAIL_ or _PHONE_.
About Rancho Santiago Community College District
Santa Ana College and Santiago Canyon College are public community colleges of the Rancho Santiago Community College District, which serves the residents of Anaheim Hills, Orange, Santa Ana, Villa Park, and portions of Anaheim, Costa Mesa, Irvine, Fountain Valley, Garden Grove, and Tustin. Both colleges provide education for academic transfer and careers, courses for personal and professional development, and customized training for business and industry.
# # #