Tuesday, June 5, 2007

cat, cat and cat

Cats conserve energy by sleeping more than most animals, especially as they grow older. Daily durations of sleep vary, usually 12–16 hours, with 13–14 being the average. Some cats can sleep as much as 20 hours in a 24-hour period. The term cat nap refers to the cat's ability to fall asleep (lightly) for a brief period and has entered the English lexicon – someone who nods off for a few minutes is said to be "taking a cat nap".

Due to their crepuscular nature, cats are often known to enter a period of increased activity and playfulness during the evening and early morning, dubbed the "evening crazies", "night crazies", "elevenses" or "mad half-hour" by some.[13][14]

The temperament of a cat can vary depending on the breed and socialization. Cats with "oriental" body types tend to be thinner and more active, while cats that have a "cobby" body type tend to be heavier and less active.

The normal body temperature of a cat is between 38 and 39 °C (101 and 102.2 °F).[15] A cat is considered febrile (hyperthermic) if it has a temperature of 39.5 °C (103 °F) or greater, or hypothermic if less than 37.5 °C (100 °F). For comparison, humans have a normal temperature of approximately 36.8 °C (98.2 °F). A domestic cat's normal heart rate ranges from 140 to 220 beats per minute, and is largely dependent on how excited the cat is. For a cat at rest, the average heart rate should be between 150 and 180 bpm, about twice that of a human






cat's and alot of cat's

Sunday, June 3, 2007

How does a universal remote control work?

Let me first give an overview, a simple explanation about how universal remote controls work, then give you some more details, including some links that provide more insight and which include cutaway views of the circuit boards from remote controls.

Universal remote controls today send control information using infra red light. When you touch a key on the universal remote control, the circuitry determines what sequence of
flashes of infrared light correspond to that key, and then the signal is sent as a sequence of voltages that turn an infred LED (light emitting diode) on and off. The appliance that
you are pointing at -- a TV or VCR or DVD or stereo or whatever -- has an infrared light detector that picks up the infrared light signals, converts the infrared light to electrical
signals, and then uses some digital circuitry to determine what function needs to be done in response to that signal sequence.

A universal remote control has to be flexible enough to handle both of the two international standards which are used by remote controls to encode the commands:
RC5 and
RECS 80 code.

RC5 coding represents each command as a series of "bits", just like the bits used in computers to represent numbers and letters. RC5 has a uniform duration of each "bit" that is
being transmitted, and uses what is caled a "biphase code". In the middle of the duration of a bit, a "0" is encoded by a transition from a high to a low voltage, and a "1" by a
transition from a low to a high voltage.

RECS 80 code uses pulse length modulation, where information about the bits to be encoded is contained in the length of each pulse. Each bit to be transmitted is encoded
by sending an initial high level of the duration T, followed by either a low level of duration 2T representing a logical '0', or following the initial level with a 3T to represent a
logical '1'.

Then, the code of bits (either RC5 or RECS 80 coding) is modulated with a 20-30 KHz oscillating signal, and the resulting pulses of oscillating signal are sent to the LED to
make the light flicker in bursts corresponding to the bits. The 20-30 KHz oscillation is added to make sure the receiving appliance is not confused by other lights flashing on and
off around the home. The receiver can receive the light, filterout the signals that don't include the 20-30KHz oscillation, then demodulate the signal to capture the bits from the
20-30 KHz modulated signal.


Posted By: Eric Maass, Director, semiconductors / communication products
http://www.madsci.org/posts/archives/nov2001/1005591590.Eg.r.html

Organic or not Organic?

Rebecca Roth

Lately whenever I go to the supermarket I see fruits and vegetables labeled as 'organic'. Both the non-organic and organic fruits and vegetables look fresh and plump, but the organic foods cost almost twice as much. There are now organic drugs, drinks, fruits, bread, yogurt, and vegetables. The market for organic foods is growing by 20 percent a year (1). I hear my father telling me that some of his friends only eat organic fruits and vegetables and would never think of buying the foods if they were not organic. When I spoke to one of his friends and asked why she chooses to purchase organic foods, she strongly stated, "we are being poisoned by pesticides". When I looked through my nutrition magazines I noticed that they often mention the word 'organic'. So I ask myself are organic foods really better than their non-organic counterparts?

I do not buy organic fruits or vegetables. However, whenever I buy fruits, I always rinse them properly before eating. I feel that this removes the pesticides and the surface microbes. Am I mistaken, or should I in fact be buying only organic foods?

There are increasing concerns about food safety and the fact that many processed foods are made from genetically modified products. Organically grown foods mean that these organic foods have been grown on land that is absent of any chemicals for a minimum of 3 years. The crops are grown without the use of pesticides or any chemicals whatsoever. Organic foods are processed and packaged without the use of artificial preservatives, colorings, irradiation or any other additives(2).

One of the strongest arguments in favor of organic farming is that it supposedly does not pose the threat of pesticide and chemical run-off and the resulting contamination of watersheds and drinking water (3). North American studies indicate that organic farms tend to be smaller and more socially supportive, have a greater diversity of crops in rotation, and reduce health risks associated with pesticides, antibiotics and nitrates (4). Organic farming creates a richer, more sustainable soil through the use of cover crops, diverse crop rotations and organic composts. In order to infuse their soil with essential nutrients, organic farmers might first plant a "cover" crop such as clover, which naturally puts nitrogen in the soil. Cover crops also can attract beneficial insects that help control pests. Instead of growing the same crop in the same field year after year, organic farmers use crop rotation, which means they vary the types of crops that are grown in any particular field each year. Crop rotation helps to deter pests from returning regularly. It can be beneficial in slowing soil erosion, and it also varies the nutrient demands placed on the soil (3).

One French study analyzed twelve foods, and concluded that organic is ahead in terms of nutritional quality and micronutrients. In organic food one finds more micronutrients essential for good health: vitamins A, C, E, vitamins of the B group, and other elements such as zinc and minerals such as calcium. These findings, coupled with health concerns linked to pesticides, antibiotics, nitrates and additives occurring in non-organic foods, suggests increased government support for organic production could have significant health benefits in addition to the environmental benefits already proven (5). A recent article in the Journal of Applied Nutrition gave credence to the notion that organic foods have higher nutrient levels that non-organic food. In this study the mineral content of organic apples, pears, potatoes, wheat, and sweet corn were compared to commercial varieties. Overall, the organic foods showed much higher levels of nutrient minerals and much lower levels of heavy metals (6).

However, on Feb. 4, 2000, the ABC News correspondent John Stossel hosted a report on "20/20" that probably surprised many fans of organic foods. It made the case that organic food is not necessarily healthier than conventional food -- and might actually be dangerous (7). Manure used in organic compost may be more harmful than the health risks from pesticide residues. Manure may contain E. coli bacterium, which can spread harmful animal-borne diseases to humans. However, the USDA's proposed regulations for organics include temperature guidelines to kill any human pathogens that could be present in the manure (3).

Despite its benefits, organic cropping faces greater management challenges. The most troubling constraint to organic cropping is when soil nutrients removed from land are not replaced to maintain soil balance. Current organic standards limit fertilizer use, placing organic fields at risk of nutrient depletion. Studies have shown organic fields to have low levels of soil phosphorus and sulfur (4).

The pros in 'going organic' is that organic food is free from artificial chemicals, pesticides, antibiotics, growth-promoters and fertilizers. It is produced using environmentally friendly methods and is free from genetically modified ingredients (term used to describe foods that have had genetic material from other edibles artificially inserted into them using a process known as 'genetic engineering'. The idea behind this is to transfer the beneficial properties found in some types of plants or animals - such as resistance to attack by diseases, insects or herbicides - to other plants or animals that normally lack these properties). Organic foods reduce dependence on non-renewable resources and places emphasis on animal welfare. Some people think organic food tastes better than non-organic. Organic foods according to some studies show that they have more vitamins and beneficial trace elements than conventionally grown food and so may be more nutritious (8).

However, with all these pros come some cons. Organic foods are not mass-produced and traditional organic farming often produces lower yields than modern intensive farming methods. That is why organic food is generally more expensive than non-organic. For example, a half gallon of non-organic milk in New York City is $1.49, while the cost of organic milk is $2.99 The fruits and vegetables produced organically sometimes look less appealing than conventional produce that's been specially bred for the commercial benefits (8).

In conclusion, there are different views on whether organic foods are really helpful to us, or in fact may be harmful. Science is always subject to challenges based upon new observations. There are still many questions that I am not sure of the answer. For instance, can a processed food be called organic if it also contains some non-organically produced ingredients? If so, what percentage of ingredients should be organically grown and what percentage can be non-organically grown? Consumers may pay up to double the price for organic foods. What happens to those people who can not afford organic foods, are they really at a disadvantage? I believe that the organic food label is not enough to prove that it is better than non-organic foods. I mean what about the nutrition of the food itself? How about the soil in which the crops were grown? What about the post-harvesting handling of the foods? Soil management will vary from farm to farm. I guess this just proves that science does not have an ending loop or a conclusion.

In the future science will have to address these issues. As more studies are being done, our views about organic foods might change. In the past, we thought the egg was the perfect food. Now we know that although nutritious it contains high levels of cholesterol. Who knows what will be considered healthy eating in the future? At this point, organic foods seem to be beneficial.

how to fold money into a t shirt

A shirt, usually buttonless, collarless, and pocketless, with a round neck and short sleeves, that is pulled on over the head and covers most of a person's torso. The sleeves of the T-shirt extend at least slightly over the shoulder but not completely over the elbow. A shirt that is either longer or shorter than this ceases to be a T-shirt, at least in the classic sense.

T-shirts are typically made of cotton or polyester or a mix of the two knitted together in a jersey stitch that gives a T-shirt its distinctive soft texture. T-shirt fashions include styles for men and women, and for all age groups, including baby, youth and adult sizes.

---wikipedia---

follow these...

As with all these designs, try to start with a relatively clean, crisp bill. It will make it much easier. All folds should be sharply creased. It helps to go over the fold with a fingernail on a flat, hard surface.


Start by folding the bill precisely in half lengthwise. (I prefer to fold in toward the front of the bill. I think it produces a nicer design on the end product. For your first attempt, it will be easier to follow exactly the same orientation on the bill as shown in the photos.) Unfold the bill, leaving the crease produced by the fold for the next step.





Fold the bill one quarter of the way in from each side lengthwise. The edge of the bill should just meet the crease made by the fold in the previous step. Do this for both sides as shown.













Turn the bill over. Fold the white of one end over as shown. This will become the collar in the next step. (If the bill is printed unevenly, use the wider edge.)







Turn the bill over again. From this side, angle-in the two corners from the end you folded in the last step. The two points should meet precisely at the centerline. The angle is not terribly important, but should be about the same as shown in the photo.





Fold a little less than one third of the bill lengthwise from the opposite end as shown. If you're following in the same orientation as the photos, use the markings on the bill for a fold point. (Notice that the edge of the bill just meets the word "OF" on the reverse printing.) If you fold too little, the shirt will appear too long in the end. If you fold too much, the next step will not work. See below.











Now you will fold inward in the same direction, tucking the previous fold under the "collar" created in step 4. So far it looks kinda 'nifty, and if you know it is supposed to look like a shirt, you get the collar concept. But wait, there's more...









Gently unfold the previous two folds, keeping the creases. On the lateral fold furthest from the collar, refold it strait across as shown. (On the flatbed scanner, this made a bit of a mess of it, but it is fairly easy in 3D.)











(This step is hard to describe, but it is actually fairly easy.) You are going to introduce two new folds on each "sleeve". I do this by holding each side of the previous fold between thumb and forefinger in the orientation shown, just on either side of the vertical fold as shown. Just force the angle to close slightly, and force the extra paper inside the vertical folds. Once you've got it looking right, force the insides to crease by pressing on a hard surface. (Try looking at the next photo - like I said, it is hard to describe!)




(This is a close-up of what the fold should look like when complete.) Do this for both sides.









(This is what it should look like after both sides are complete.)















When you re-tuck the fold you've been working on back under the collar, you're done! It should look about like this. With the basic shape, the collar and the sleeves, it should be recognizable. Once you've done a few, you can try folding the whole thing into the reverse side, leaving the obverse side out. (Like I said, I think this looks better. This is especially true with 1 dollar bills where the edge seal on the reverse under the collar looks a little bit like a necklace.)

Friday, June 1, 2007

My Dream House


Yeah, we are now in our dream house. And we actually found a new construction home that was perfect for us. We never thought that would be a possibility (we can't be so freaking picky and have specific needs). I’m still going to be adding an outbuilding for my studio/office, but otherwise it is exactly what we’ve afford for years. So, this is a big goal I and mark off.

Before it, my dream house is :

I would want a 4 bedroomed one , detatched, with a HUGE garden, both out the back and the front... I would also like a small area to walk in with trees.. really natural - I adore walking first thing in the morning when the sun is coming up.

I would have a master bedroom, a study for Mr Linux and a study for myself and a spare bedroom....

I would also want a home gym in my house so that I could stay relatively healthy and stop having to go to the uni gym where strange people seem to hang out at times.

And I would HAVE to have more cats..... (ok, not house related but hey )

So... what would your dream house be like? in the country or city? or abroad? or are you mega lucky and already have your dream house?

Thursday, May 31, 2007

Game : tekken 3 for pc


To get these secret characters, you must beat the game a certain number of times.

Kuma Complete Arcade mode once.
Julia Complete Arcade mode with two characters.
Gun Jack Complete Arcade mode with three characters.
Mokujin Complete Arcade mode with four characters.
Anna Complete Arcade mode with five characters.
Bryan Complete Arcade mode with six characters.
Heihachi Complete Arcade mode with seven characters.
Ogre Complete Arcade mode with eight characters.
True Ogre Complete Arcade mode with nine characters.

Alternate Anna Outfit:
Play as anna 25 times in arcade mode.


Tiger:
To play as the superfly Tiger, beat Arcade Mode 16 times. Now highlight Eddy and press Start.

Gon:
To play as the dinosaur Gon, beat him in Tekken Ball mode.

Alternate Gon Selection - Another way to play as the cute dinosaur is to play Survival Mode well enough so that it asks you for your initials after you lose. Put in the letters GON and the next time you check the roster Gon will be selectable.

Dr. Boskonovitch:
Finish the Tekken Force Mode 3 times to gain 3 keys. Finish it again until you reach the 5th stage and face the doctor. Beat him and he becomes a selectable character.

Panda:
Highlight Kuma at the Character Select screen and press Circle.

Tekken Ball and Theater Modes:
Beat all 10 main characters in Arcade Mode to extract Tekken Ball mode and Tekken Theater mode

Alternate introductions:
Complete the game with the ten base characters to view an alternate introduction featuring the characters in their two-player mode costumes. For another one, complete the game with all characters including the secret ones.

Alternate winning poses:
To see your character's secret winning pose, hold either Kick button during the replay of your win. To see the original pose hold either Punch button.

Alternate costumes:
Play as any character the indicated number of times. Then, highlight that fighter on the Character Select screen and press Start:
Xiaoyu: 50 times
Jin: 50 times
Anna: 25 times
Gun Jack: 10 times

Replay Mode:
Go to Practice, then go to the Freestyle Menu. Press R1+R2+L1+L2+Circle for Recorder Mode (if you did it right, you should see a message on the screen). This lets you save and replay moves in practice mode.

Mokujin the block of wood:
After choosing Mokujin in any mode simply press and hold Down on the D-pad until the fight starts. Mokujin will now sound like a block of wood when he's hit.


* free tekken 3 for pc
Download here....

FOOD JOKES


Top ten ways to annoy your waiter
From the Late Show with David Letterman - Friday, January 13, 1995 with revisions made by John Insor.
10. Eight hour lunch, two dollar tip.

9. Ask, "Excuse me, are you a really bad singer, or a really bad actor?"

8. After he describes each special, you shout, "Garbage!"

7. Whenever he walks by, cough and mutter, "Minimum wage".

6. Every few seconds, yell, "More waffles, Cuomo!"

5. Insist that before ordering, you be allowed to touch the London broil.

4. Tie tablecloth around neck and say, "You wouldn't charge Superman for dinner, would you?"

3. Every time you eat or drink, cough really hard.

2. As he walks by to the kitchen, scream, "He's gonna spit in the chowder!"

1. Three words: eat the check.


Bad convenience foods
The Eight Worst Convenience Foods

And I thought nothing could top Hormel's pickled eggs ...

8. Meeter's Kraut Juice (Stokely USA): Yes, that's sauerkraut juice, which is even worse than it sounds. The taste and smell can be a bit, well, harsh, but KJ is reputed by its fans to have medicinal benefits (as a source of vitamin C, cure for intestinal bugs, etc.), which adds up to a classic case of the cure being worse than the disease.

7. Guycan Corned Mutton with Juices Added (Bedessee Imports): The best thing about this Uruguayan canned good is the very pouty-looking sheep on the package label -- he seems to be saying, "Go on, eat me already." The second-best thing is the presence of both "cooked mutton" and "mutton" in the ingredients listing, which would seem to have all the mutton bases covered.

6. Armour Pork Brains in Milk Gravy (Dial Corp.): If you're really looking to clog up those arteries in a hurry, you'll be pleased to learn that a single serving of pork brains has 1,170 percent of our recommended daily cholesterol intake. All the more ingenious, then, that the label on this product helpfully features a recipe for brains and scrambled eggs.

5. Sweet Sue Canned Whole Chicken (Sweet Sue Kitchens, Inc.): From its size (think growth-impaired Cornish hen) to its overall appearance (it's stewed in a quivering mass of aspic goop), this product may change forever your idea of what constitutes a chicken. Gives new meaning to the old line about meat "falling off the bone."

4. Musk Life Savers (Nestle Confectionery): You may think musk is a scent, but over in Australia, they think it's a candy flavor. A candy flavor that tastes disturbingly like raw meat, to be precise. But what did you expect from a country where everyone happily consumes Vegemite?

3. Blind Robins Smoked Ocean Herring (recently discontinued by Bar Food Products): Possibly the world's most bizarre prepackaged tavern snack. Interestingly, the product's titular robin isn't actually blind, he's blindfolded -- the better, presumably, to avoid looking at these heavily salted herring strips, which look like giant slugs.

2. Kylmaenen Reindeer Pate` (Kylmaenen Oy): This Finnish canned good may not be particulary tasty, but at least it answers the age-old question of why Rudolph was so eager for that safe, steady job on Santa's sleigh team -- he didn't want to end up as a cracker spread.

1. Tengu Clam Jerky (Tengu Co.): Nothing you've ever consumed can prepare you for the horror that is clam jerky. Still, this product does score a sort of conceptual coup: If you're the sort who's always found raw clams too slimy and gelatinous for your taste, these dried, shriveled mollusks will help you dislike clams on a whole new level.

CAR ( Automobile)


An automobile (also motor car or simply car) is a wheeled passenger vehicle that carries its own motor. Most definitions of the term specify that automobiles are designed to run primarily on roads, to have seating for one to eight people, to typically have four wheels, and to be constructed principally for the transport of people rather than goods.[1] However, the term is far from precise.
As of 2002, there were 590 million passenger cars worldwide (roughly one car for every eleven people)
Some sources suggest Ferdinand Verbiest, whilst a member of a Jesuit mission in China, may have built the first steam powered car around 1672.[3][4] François Isaac de Rivaz, a Swiss inventor, designed the first internal combustion engine which was fuelled by a mixture of hydrogen and oxygen and used it to develop the world's first vehicle to run on such an engine. The design was not very successful, as was the case with Samuel Brown, Samuel Morey, and Etienne Lenoir who each produced vehicles powered by clumsy internal combustion engines.[5]
An automobile powered by an Otto gasoline engine was built in Germany by Karl Benz in 1885 and granted a patent in the following year. Although several other engineers (including Gottlieb Daimler, Wilhelm Maybach and Siegfried Marcus) were working on the problem at about the same time, Benz is generally credited with the invention of the modern automobile.[5]
Approximately 25 of Benz's vehicles were built before 1893, when his first four-wheeler was introduced. They were powered with four-stroke engines of his own design. Emile Roger of France, already producing Benz engines under license, now added the Benz automobile to his line of products. Because France was more open to the early automobiles, more were built and sold in France through Roger than Benz sold in Germany. From 1890 to 1895 about 30 vehicles were built by Daimler and his assistant, Maybach, either at the Daimler works or in the Hotel Hermann, where they set up shop after falling out with their backers. Benz and Daimler seem to have been unaware of each other's early work and worked independently.
In 1890, Emile Levassor and Armand Peugeot of France began producing vehicles with Daimler engines, and so laid the foundation of the motor industry in France. The first American car with a gasoline internal combustion engine supposedly was designed in 1877 by George Selden of Rochester, New York, who applied for a patent on an automobile in 1879. In Britain there had been several attempts to build steam cars with varying degrees of success with Thomas Rickett even attempting a production run in 1860.[6] Santler from Malvern is recognized by the Veteran Car Club of Great Britain as having made the first petrol-powered car in the country in 1894[7] followed by Frederick William Lanchester in 1895 but these were both one-offs.[7] The first production vehicles came from the Daimler Motor Company, founded by Harry J. Lawson in 1896, and making their first cars in 1897.[7]
In 1892, Rudolf Diesel got a patent for a "New Rational Combustion Engine". In 1897 he built the first Diesel Engine.[5] In 1895, Selden was granted a United States patent(U.S. Patent 549,160 ) for a two-stroke automobile engine, which hinderd more than encouraged development of autos in the United States. Steam, electric, and gasoline powered autos competed for decades, with gasoline internal combustion engines achieving dominance in the 1910s.
The large-scale, production-line manufacturing of affordable automobiles was debuted by Ransom Olds at his Oldsmobile factory in 1902. This assembly line concept was then greatly expanded by Henry Ford in the 1910s. Development of automotive technology was rapid, due in part to the hundreds of small manufacturers competing to gain the world's attention. Key developments included electric ignition and the electric self-starter (both by Charles Kettering, for the Cadillac Motor Company in 1910-1911), independent suspension, and four-wheel brakes.
Although various pistonless rotary engine designs have attempted to compete with the conventional piston and crankshaft design, only Mazda's version of the Wankel engine has had more than very limited success.
Since the 1920s, nearly all cars have been mass-produced to meet market needs, so marketing plans have often heavily influenced automobile design. It was Alfred P. Sloan who established the idea of different makes of cars produced by one company, so buyers could "move up" as their fortunes improved. The makes shared parts with one another so larger production volume resulted in lower costs for each price range. For example, in the 1950s, Chevrolet shared hood, doors, roof, and windows with Pontiac; the LaSalle of the 1930s, sold by Cadillac, used cheaper mechanical parts made by the Oldsmobile division.

think twice to make Application with Flash

Flash is very excellence when come to animate an object, but if you really thinking want to build a huge application (connect to data base) with flash, think twice because my problem is:
1. If you using web based application and then using ASP or PHP, then get ready to array almost everything
2. Twice coding, one result, lack of wasted time
3. If you beginner like me then try to organize your movie clip with pattern that obvious, like first movie clip, not in the object !!
4. One more time!! Don’t put action script in the object, like a button with animation from very small size to normal, you will end up with just a dot with full of script. If you want to edit it, then you will never find it in your movie screen
5. Have plenty of time of developing, than make application using flash it’s amazing
6. Don’t lose your source code !!!
7. Use MDM zinc , it’s marvelous , but it’s not cheap

example communication database with Flash.


The metode that we will use in the proses is using LoadVars. In this case, the data that will be shown at Flash, is being comunicatewith methode GET using protokol HTTP. BasicallyFlash accept the data from HTTP header, using several format. Which is with seperating sign ‘&’ and ‘=’, for example ‘&variabel01=isi01$variabel2=isi02’.

So to make an output containt like showing above, then server side scripting must be able to make an aoutput data like this:

“&welcome=Web site ini adalah media memberikan informasi kepada masyarakat mengenai kebutuhan ketenaga kerjaan di rumah sakit kami. Disini anda di persilahkan memperkenalkan diri anda kepada kami, ada formulir dasar yang harus anda isi. Anda dapat memberikan data kepada kami dalam bentuk file (dokumen atau pun gambar). Anda akan mendapatkan user dan login yang akan anda pergunakan untuk melakukan test pendahuluan, melihat hasil test dan mengisi forum.&judul=SELAMAT DATANG”

Which the text ‘&welcome’ to explained containt variable and ‘$judul’ to explain header variable . Data after sign mark ‘=’ is a data that shown at Flash.

The code at server side using php code as follow:

include"lib/sambung.php";

$query=mysql_query("select * from welcome where id = 1");

$dataquery=mysql_fetch_array($query);

echo "&welcome=";

echo"$dataquery[isi]";

echo "&judul=";

echo"$dataquery[judul]";

?>


Then at Flash we write the code at first frame movie on the first layer with array function as follow :

System.useCodepage = true;

format = new TextFormat();

text1.html = true;

text1.text = "Loading news...";

temp = new LoadVars();

temp.load("welcome.php");

temp.onLoad = function(){

myArray = new Array();

for(var a in this){

myArray.push(this[a]);

}

text1.text = myArray[1];

}


Here we can see that to make a record from data base to Flash must be done in repeating step of coding. First you must array it at PHP and by flash the data must we array it one more time in order to get the data array. This happened because the data array consist of one line or paragraf data.

Wednesday, May 30, 2007

how to Combine Flash with data base

First of all, Flash made to make the look of data or picture so good looking, which is user can easily make animation or movie flawlessly. There for no need for data that can change dinamicaly and grow this being developed.

As the developmnet of programing language Action Script that grow beyond a blink of an eyes, the comiunication between clien (flash) and webserver starting posible. But this facility for Flash non profesional vertion is not available yet so for connecting to sever server, must be customize it first.

there for i will trie to make samenotes aboutmy research of several methode that we can use so Flash can comunicate with server so we can get data that change dinamicaly , without change it and re compile it.

1 LoadVars

Load vars or load variabel is basic form provide by Flash to connect with server, at first it made only for opening html link or other internet address, similar with html.

On the next development, LoadVars function, allowed to send data between flash with web server and provide the return data procedure from server. Data that server accept will be process by server side script such as PHP, ASP, coldfusion and etc.

Here will decide of what methode that data will be sent (GET or Post) through HTTP protokol . But this is only assumed that this data transfer is using HTML browser, it can't be using directly if Flash compiled in the form of pojector or EXE.

2 XML load methode


3 Flash Remoting


4 Kompilasi kedalam format ber ekstensi EXE


Containt Management System (CMS) With Flash


As technology grows exponentially, the needs for system that can dynamicaly change the data despite by an admin that have no knowledge about programing become popular in web based aplication. A system design using CMS (Containt Management System) can easily change the data by every one or every where.

But in other hands, most of the software can not support animation and further graphic improvement. Although the software can produce animation, it still need a lot of hard works, skills and extra knowledge from a programmer. Flash technology now a days can make a communication between data base and Flash happened, and acting like client server topology. This type of topology can act as web based technology or can be compiled as EXE extension file, that no need other plug in to works.

Finally I can made this CMS with Flash happened for me to used over and over again. It’s not an easy to make it for me, because I’m a beginner as always. It took a lot of time to make a flash can show simple query from data base, because we have to used separate coding media to make it.

I’m using web based Flash, joined with php and my sql as data base. For the back office or admin interface I’m compiling the flash with MDM zinc. Its not that really pretty, but I can use it if I want to make another web site with an instant

When I start to design the software I never thought that coding flash for html that can connect data base using php will be pain in the a**. But after I’m done with it and start to code full using only flash and compile it with MDM zinc, surely open my eyes that Flash will be come one of visual programmer in the next generation.

For the web based, you must take a deep breath for a while, because you code the query in the php and then u array it than passing it with url, and in the flash u must array it one more time so you can display the data. Not like using MDM zinc, that allow u to make a query in action script.

This is my screen shot for my CMS with FLASH :