Thursday, December 27, 2012

Super Charge Your Energy at Work: 10 Ways

Feeling tired at work? Forget the triple shot latte and try these 10 tips instead. You'll be raring to go!


Chris Schmidt/Getty

222
Share






You may have read the stats. Workplace productivity is up and employment is down. That can only mean that fewer people are in the workplace but now they have to work harder and longer. No wonder so many people are always tired and sucking down coffee and energy drinks.
Since there are still only 24 hours in a day you not only have to be more productive, but also maintain high energy and stay happy. Otherwise you'll drag yourself down, end up a miserable, grumpy, scrooge, and take a lot of folks with you on the way.
The demands of work are keeping people so busy these days sometimes they forget the simple things that make them feel energized. Here are some tips to keep your energy soaring that don't require the use of drugs or an unlimited Starbucks card.

1. Start Your Day With a Workout

You would think a big workout would make you tired, but actually getting that blood pumping first thing will keep you going for the day. Don't forget a good breakfast as well, solid fuel to stoke the day's fire.

2. Take a 20-minute Power Nap

Of course you don't want your colleagues to see you sleeping on the job, but studies have shown that a brief power nap can help revitalize you for the whole day. One employer I know actually set up a motorized massage chair in a designated "nap room" for employees and requires they use it for breaks. Check out Inc. columnist Jessica Stillman's power nap primer.

3. Remove All Personal Grudges

All that emotional baggage takes its toll day in and day out. Whether it's anger you feel for a coworker or even someone who is distant from work, the emotions can be distracting and absorb energy. We like to think we can ignore the feelings, but often we just mask them and that takes energy in and of itself. Make a list of your grudges and commit time to reconcile each of them until they are gone. Soon you'll feel like someone added minutes to your clock every day.

4. Take a 15-minute Humor Break

Laughter is a natural energizer. Those endorphins from chuckles are as good for you as a solid workout. Sign up for the joke of the day, or cruise YouTube for some funny videos. Grab some colleagues and have a joke pow-wow. You'll lighten the atmosphere all around, and help everyone feel good about the rest of the day. This is a good one for 2:30 in the afternoon when the classic after lunch doze is coming on.

5. Take a 15-minute Walk

Sometimes we just need to get out. It doesn't matter if the weather is hot, cold or rainy, getting up from that chair and computer can rejuvenate your body and your mind. Leave the smartphone behind as well. Stretch, breathe and take in the outdoors to feel refreshed and awake.

6. Read Something Fun During Lunch

A little escape is good to clear the mind and reset your energy. Short stories are my favorite for lunch breaks. Not only are they entertaining, but finishing one at lunch gives you a sense of completion which helps boost your confidence to get back and fight through the day. Try a classic like Mark Twain or Rudyard Kipling, and you'll feel like you are doing something worthwhile with your time. 

7. Resolve Any Conflicts With Your Boss or Colleagues

Concern over conflict can eat away at your attention and tire you quickly. Don't hold back.  Confront issues head on. If you are open, empathetic, and diplomatic in your approach you may forge a closer bond that will make coming days easier to enjoy. 

8. Do Something Nice For a Colleague

Energy is easily transmitted from person to person. This tip helps on so many levels. It's energizing to think about someone else, the actual act of giving creates a natural high, and of course gratitude provides plenty of energy as well. Try this hat-trick every day for a week and feel the surprising buzz.

9. Call a Good Friend and Chat for 15 Minutes

Nothing perks up my day more than time with a close friend. Whether it's quick catch up, or a chance to vent some of the day's frustrations, this short, fun reconnect will recharge your batteries and give you the support required to battle any tough day. The best part is that you will give your friend the same benefit.

10. Make Sure Your Work Activity is Fulfilling

If you hate what you do then none of my suggestions and no amount of caffeine will energize you enough to grind out depressing workdays continuously. Find a way to get paid doing what you enjoy. No need to make yourself and everyone around you miserable. Life is short and you are entitled to enjoy every day of it.

Resources: http://www.inc.com/kevin-daum/super-charge-your-energy-at-work-10-ways.html

Wednesday, December 19, 2012

Five top tips to start a successful business

 
As LinkedIn is a business that started in a living room, much like Virgin began in a basement, I thought my first blog on the site should be about how to simply start a successful business. Here are five top tips I’ve picked up over the years.

1. Listen more than you talk

We have two ears and one mouth, using them in proportion is not a bad idea! To be a good leader you have to be a great listener. Brilliant ideas can spring from the most unlikely places, so you should always keep your ears open for some shrewd advice. This can mean following online comments as closely as board meeting notes, or asking the frontline staff for their opinions as often as the CEOs. Get out there, listen to people, draw people out and learn from them.

2. Keep it simple

You have to do something radically different to stand out in business. But nobody ever said different has to be complex. There are thousands of simple business solutions to problems out there, just waiting to be solved by the next big thing in business. Maintain a focus upon innovation, but don’t try to reinvent the wheel. A simple change for the better is far more effective than five complicated changes for the worse.

3. Take pride in your work

Last week I enjoyed my favourite night of the year, the Virgin Stars of the Year Awards, where we celebrated some of those people who have gone the extra mile for us around the Virgin world. With so many different companies, nationalities and personalities represented under one roof, it was interesting to see what qualities they all have in common. One was pride in their work, and in the company they represent. Remember your staff are your biggest brand advocates, and focusing on helping them take pride will shine through in how they treat your customers.

4. Have fun, success will follow

If you aren’t having fun, you are doing it wrong. If you feel like getting up in the morning to work on your business is a chore, then it's time to try something else. If you are having a good time, there is a far greater chance a positive, innovative atmosphere will be nurtured and your business will fluorish. A smile and a joke can go a long way, so be quick to see the lighter side of life.

5. Rip it up and start again

If you are an entrepreneur and your first venture isn’t a success, welcome to the club! Every successful businessperson has experienced a few failures along the way – the important thing is how you learn from them. Don’t allow yourself to get disheartened by a setback or two, instead dust yourself off and work out what went wrong. Then you can find the positives, analyse where you can improve, rip it up and start again.


Related post: Super Charge Your Energy at Work: 10 Ways

Friday, December 7, 2012

CSS - Background image gradient

background-image: -webkit-gradient(linear, 0 0, 100% 100% ,
 color-stop(0.25, red),
 color-stop(0.25, yellow),
 color-stop(0.5, yellow),
 color-stop(0.5, red),
 color-stop(0.75, red),
 color-stop(0.75, yellow),
 to(yellow));


Friday, October 26, 2012

Gartner: Top 10 Strategic Technology Trends For 2013

http://www.forbes.com/sites/ericsavitz/2012/10/23/gartner-top-10-strategic-technology-trends-for-2013/

Friday, October 12, 2012

The art of life balance: 8 tips for entrepreneurs

  1. Make times for loved ones
  2. Make time for yourself
  3. Make time for your employees
  4. Make time for fun
  5. Make time for nature
  6. Make time to write
  7. Make time for your spirituality
  8. Make time to exercise

Friday, September 21, 2012

Why Business Meetings Are Often a Waste of Time — and Productivity


Getty Images/Cultura RF
Internal meetings are the bane of corporate life. There are too many meetings, they take too long, and they get too little accomplished.
Why? Because most meetings are really not necessary. Before you call a meeting, think about whether you can accomplish your goals through email or a quick phone call. You rarely need to call a meeting if you’re just planning on sharing information or issuing action instructions. By contrast, meetings may be needed to debate issues or to develop new approaches.
You also shouldn’t feel the need to attend every meeting to which you’re invited. Quite often, you can politely refuse an invitation by pointing out your imminent deadlines. Even if you can’t avoid the meeting completely, it can give you a good excuse for bowing out after a set time limit (30 or 60 minutes, for instance).
Even if a meeting is necessary, you can still reduce the employee-hours spent in meetings by limiting invitations to only those employees who are vitally necessary—letting as many people as possible avoid the meeting entirely. Empirical research suggests that a smaller group (five to seven) is more effective at decision-making, so making your meetings smaller should make for a more productive meeting as well.
Most importantly, you should keep your meetings as short as possible. Meetings rarely need to last for more than one hour, and virtually never past 90 minutes. After that, employees will lose concentration and little more will get done. One way to enforce time limits is to take the chairs out of the meeting room; when standing up, participants get down to business very quickly.
When there are meetings, good preparation is the key to their productivity. When some participants don’t prepare for a meeting, the first part must be devoted to getting everyone up to speed. This is a disincentive for anyone to prepare for future meetings.
To encourage good preparation, the leader should send out background materials and an agenda, at least a day in advance. If you find that a particular leader often forgets this step, you can make your attendance conditional on receiving these materials with enough lead-time. But be sure to fulfill your end of the bargain: if the leader sends out advance materials, read them carefully before the meeting.
If everyone prepares, you can have a more productive meeting. After brief introductory remark by the leader (15 minutes or so), participants can debate the issue in question or develop new approaches. But often the introduction goes on and on, leaving little time for discussion. That totally undercuts the primary purpose for having a meeting.
Long introductions are particularly irritating when they take the form of PowerPoint presentations. We have all been bored to death when someone marches through 20 or 30 PowerPoint slides, reading every word on each slide. If that starts to happen, nicely say, “Your points are really interesting, so I hope we can have as much time as possible to discuss your presentation.”
At the end of any meeting, all participants should agree on the next steps, along with a deadline for each step. The leader should resist the urge to make this decision himself or herself: if participants can set their own goals, they’ll be more likely to buy into them.
In short, you cannot eliminate meetings totally. But you can get rid of most of them, limit their size, and keep them short. And you can structure the necessary meetings to maximize their productivity.

Reference: http://blogs.wsj.com/speakeasy/2012/09/20/why-business-meetings-are-often-a-waste-of-time-and-productivity/?mod=e2tw

Picture of the week


Thursday, September 6, 2012

Six tips for more effective meeting


We always have meeting with team and other people in many purpose. We really want our meeting to be more effective. There are six tips for more effective meeting.

1. Don't meet
Avoid a meeting if the same information could be covered in a memo, e-mail or brief report.

2.  Set objective for meeting
Before planning the agenda, determine the objective of the meeting. The more concrete your objective, the more focused your agenda will be.

3. Provide a agenda before hand
Your agenda needs to include a one sentence description of the meeting objective, a list of the topics to be covered and a list starting who will address each topic for how long, follow the agenda closely during the meeting.

4. Assign meeting preparation
Give all participants something to prepare for the meeting and that meeting will take on a new significance to each group member.

5. Assign action items
Don't finish any discussion in the meeting without decide how to act on it.

6. Examine your meeting process
Don't leave the meeting without assign what take place and making a plan to improve.

To be more effective meeting are six tips such as don't meet, set objective for meeting, provide a agenda before hand, assign meeting preparation, assign action items, and examine your meeting process. I hope it will help you success for each meeting and get good result.

Thursday, August 30, 2012

អ្នក​គណិត​វិទ្យាពីរនាក់​ចូល​ហាង

អ្នក​គណិត​វិទ្យាពីរនាក់​ចូល​ទៅ​ហាងផឹក​ស៊ី​មួយ។ បុរស​ទី​មួយ​បាន​និយាយ​ថា “ នៅ​កន្លែង​ហ្នឹង អ្នក​ចេះ​ម៉ាត់​ មាន​មិន​ដល់​ពាក់​កណ្តាល​ទេ.. “ ។ បុរស​ទី​ពីរ​បដិសេធ។
បុរស​ទី​មួយ​ចេញ​ទៅ​បន្ទប់​ទឹក​បន្តិច។ បុរស​ទី​ពីរ​ក៏​ហៅ​ស្រី​បំរើ​មក​ជិត ហើយ​និយាយ​ប្រាប់​ថា “ បន្តិច​ទៀត​ពេល​ពួក​ម៉ាក​ខ្ញុំ​ត្រលប់​មក​វិញ ខ្ញុំ​សួរ​អី​ក៏​ដោយ នាង​ត្រូវ​ឆ្លើយ​ថា មួយ​លើ​បី​អ៊ិច គូប” ។
នាង​ក៏​និយាយ​តាម​ថា “ មួយ លើក​បី​អ៊ិច​គប់” ។
បុរស​នោះ​ក៏​និយាយ​ថា “ មិន​មែន​ទេ..គឺ មួយ​លើ​បី​អ៊ិច គូប” ។
នាង​ក៏​និយាយ​តាម​ថា “ មួយ លើ ​បី​អ៊ិច​គប់” ។
បុរស​និយាយ​ថា “ ត្រូវ​ហើយ…” ។
នាង​នោះ​ក៏​ទន្ទេញដដែល​ៗ​ថា “ មួយ លើ ​បី​អ៊ិច​គប់ ៗ…” ។
នៅ​ពេល​ដែល​បុរស​ទី​មួយ​ត្រលប់​មក​វិញ បុរស​ទី​ពីរ​ក៏​បបួល​បុរស​ទី​មួយ​ភ្នាល់​គ្នា។ គាត់​ថា បើ​គាត់​ហៅ​ស្រី​បំរើ​នោះ​មក​សួរ ហើយ​នាង​ឆ្លើយ​ត្រូវ គាត់​នឹង​ឈ្នះ។ បុរស​ទី​មួយ​ក៏​យល់​ព្រម។
បុរស​ទី​ពីរ​ក៏​ហៅ​ស្រី​បំរើ​មក​សួរ​ថា “ អាំង​តេក្រាល x^2 ស្មើ​អី?” ។
នាង​នោះ​ក៏​ឆ្លើយ​ថា “ ស្មើ មួយ​ភាគ​បី​អ៊ិច​គូប” (\frac{1}{3}x^3) …តែ​បាន​បន្តិច​នាង​ក៏​បន្ថែម​ទៀត​ថា “ អូហ អត់​ទាន់​ត្រូវ​ទេ គឺ​បូក​នឹង​ចំនួន​ថេរ​មួយ​ទៀត” ។ …
អឺស្មានតាស្រីបំរើអត់ចេះ ខ្មាស់គេទាំងព្រលឹមវើយ

Wednesday, August 29, 2012

Three Tips using Skype or other communication tools effective












I want to share you some tips on Skype communication tool chatting, ignore this email if you not interested. And sorry for have no time to write it short.

I have share one time with my classmate DOP, and I have noticed that some of us is doing this all the time.

this is not a must that you have to do, it is a tips which is consider as Objective (Objective=something people see the same in general not the only one opinion ).

1/ Should not say only “Hi” and waiting them to reply back hi
 -  this means if you have something to talk about or asking, type the question in that greeting message. And I am 1000% sure that an expat (foreigners) doesn’t like this at all, and in my company we got one warning from out boss already. look like not professional at all, like a kids try to play around with Skype.

2/ Try to type a complete meaning before press”Enter”
- Imagine that you talk with a group of people or even only 1 person. And you all type with a little piece of sentence and enter, for example :

[Pherum]: hello friend
[Martin levis]: hello I also have one question
                          how can I install Linux on windows
                         without using VMware?
[Pherum]: I want to ask you one question.
[Jonh harves]: but this is not the best problem at all.
[Pherum]: how can I make this thing work
[Lovely girl]: how can we solve this Jonh?
[Pherum]: if I never know how to configure it
[Pherum]:and I really not sure what this mean

See this if you talk in group of at least 10 people like me. Someone might interrupt the talk. And those entire questions of PHERUM becoming meaningless, because they don’t understand what a little piece of separate sentences are. It take much time to investigate what pherum mean.

3/ If you see someone typing let them finish
- let them finish their writing, maybe they want to give more info that you willing to ask. Amazing if you talk in group then if you only type what you want to type without waiting to see your partner reason, then you both or group not understand each other. Otherwise it becoming like number 2.
Author: Mr.Phearum Un


Related post: 21 Ways to Be a Better Leader Without Breaking a Sweat

Friday, August 24, 2012

Google Chart Tools


Introduction to Using Chart Tools

Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.

Picture of the week (Doctor vs Programmer)


Girl's problem vs Boy's problem


Thursday, August 23, 2012

តោះ! ច្រៀងបទមានសង្ឃឹមទាំងអស់គ្នា


I.   មនុស្ស​យើង​កើតលើលោកទាំងប្រុសទាំងស្រី សុទ្ធតែមានក្តីសង្ឃឹម តែងតែមានស្នាមញញឹម
សង្ឃឹមទុកក្នុងចិត្តគិតប៉ងប្រាថ្នា​ ទោះការគិតនោះធំ​ រឺ តូច  ស្រួល រឺ​​ លំបាក ក៏មិនកំសាកនៅតែសង្ឃឹម
សង្ឃឹមថា ធ្វើអោយបានសំរេច ធ្វើអោយបានសំរេច
អូ...ត្រូវមានសង្ឃឹម ញញឹមគិតទុកនៅក្នុងចិត្​ គិតអោយបានលំអិត​ហើយច្បាស់​ ព្រោះវា​​សំខាន់ខ្លាំងណាស់
អូ....ត្រូវមានស្នាមញញឹម ​សង្ឃឹមថាយើងអាចធ្វើបាន ទោះនឿយហត់ កំសត់​លំបាក​ប្រាណ​
យ៉ាងណាក៏នៅតែទ្រាំ ព្រោះយើងមានសង្ឃឹម​.

R1.ពោល៖ មនុស្សយើង​ម្នាក់ៗ គឺមានការងារ​ធ្វើ​ខុស ៗ​គ្នា​ ​មិនថាលំបាក នឿយហត់ត្រូវពុះពារ ហាលខ្យល់ហាល​ភ្លៀង រងា​វេទនា​​ តស៊ូគ្រប់គ្នា ដើម្បីធ្វើការ​ ​​រកប្រាក់ចិញ្ចឹមគ្រួសារ​ តែ​មានស​ង្ឃឹម​នៅ​ ក្នុង​ចិ​ត្ត​ថា​​ ការងារ​អ្វី​ក៏​ដោយ​ មិន​ថា​ការ​ងា​រ​រោ​ងចក្រ​ មិន​ថា​ការ​ងារ​សំណង់​ មិន​ថា​ការ​ងារ​ប៉ះកង់​
មិន​ថា​ការ​ងារ​សន្តិ​សុខ​ បុ​គ្គ​លិក​​ធ្វើការ​តាម​ក្រុម​ហ៊ុន​​ បងប្អូន​អ្នក​សំអាត​ទី​ក្រុង​ មិន​ថា​ការ​ងារ​តូច​ រឺ ធំ​ សុំ​ត្រឹម​កុំ​អោយ​លួច​គេ ទាំង​អស់​នេះ​ សុ​ទ្ធ​តែ​ជា​ការ​ងារ​ដែល​ល្អ ត្រូវគិត​ថា​ ជី​វិត​យើង​មិន​មែន​តែ​ប៉ុណ្ណឹងទេ​ តទៅមុខគឺ​មាន​ទៀត​​ ជីវិត​មនុស្ស​​យើង​មិន​ទៀង​​ ថ្ងៃ​នេះ​ក្រ​ថ្ងៃ​ស្អែក​មាន ត្រូវ​មានសង្ឃឹម ត្រូវ​មានសង្ឃឹម​​​ មានសង្ឃឹម មានសង្ឃឹម​ មានសង្ឃឹម មានសង្ឃឹម

II.        មនុស្ស​យើង​កើតលើលោកទាំងប្រុសទាំងស្រី សុទ្ធតែមានក្តីសង្ឃឹម តែងតែមានស្នាមញញឹម
សង្ឃឹមទុកក្នុងចិត្តគិតប៉ងប្រាថ្នា​ ទោះការគិតនោះធំ​ រឺ តូច  ស្រួល រឺ​​ លំបាក ក៏មិនកំសាកនៅតែសង្ឃឹម
សង្ឃឹមថា ធ្វើអោយបានសំរេច ធ្វើអោយបានសំរេច
អូ...ត្រូវមានសង្ឃឹម ញញឹមគិតទុកនៅក្នុងចិត្ត​ គិតអោយបានលំអិត​ហើយច្បាស់​ ព្រោះវា​​សំខាន់ខ្លាំងណាស់
អូ....ត្រូវមានស្នាមញញឹម ​សង្ឃឹមថាយើងអាចធ្វើបាន ទោះនឿយហត់ កំសត់​លំបាក​ប្រាណ​
យ៉ាងណាក៏នៅតែទ្រាំ ព្រោះយើងមានសង្ឃឹម ព្រោះយើងមានសង្ឃឹម ព្រោះយើងមានសង្ឃឹម  ព្រោះយើងមានសង្ឃឹម

​​R2. ពោល​៖​ ជីវិត​ជា​អ្នកក្រលំបាកណាស់ លំបាកណាស់ តែង​ជួប​​ឧប​សគ្គ​គ្រប់​វេលា តែខំពុះពារ​ព្រោះ​ជីវិត ដើម្បីបាន​រស់​តទៅមុខ​ រក​ព្រឹក​ខ្វះ​ល្ងាច រក​ល្ងាច​ខ្វះ​យប់​ រកអ​ង្ករ​ច្រក​ឆ្នាំង​ស្ទើរ​តែ​មិន​គ្រប់ ជួន​កាល​ដេក​អត់​ ព្រោះ​គ្មាន​អី​ហូប តែនៅតែខំ ដើម្បីជីវិតនិងក្តី​សង្ឃឹម ព្រោះស្នាម​ញញឹម​ ​នៅមាន​តំលៃ​​ មាន​តំលៃ​ មាន​តំលៃ មាន​តំលៃ  ​ព្រោះក្តីស​ង្ឃឹម​ ក្តីស​ង្ឃឹម ក្តីស​ង្ឃឹម ក្តីស​ង្ឃឹម នៅក្នុង​ជី​វិត​  ក្នុង​ជី​វិត​ ក្នុង​ជី​វិត ក្នុង​ជី​វិត គឺ​ក្តី​សង្ឃឹម ក្តី​សង្ឃឹម​ ក្តី​សង្ឃឹម​ ក្តី​សង្ឃឹម ក្តី​សង្ឃឹម

R1.ពោល៖ មនុស្សយើង​ម្នាក់ៗ គឺមានការងារ​ធ្វើ​ខុស ៗ​គ្នា​ ​មិនថាលំបាក នឿយហត់ត្រូវពុះពារ ហាលខ្យល់ហាល​ភ្លៀង រងា​វេទនា​​ តស៊ូគ្រប់គ្នា ដើម្បីធ្វើការ​ ​​រកប្រាក់ចិញ្ចឹមគ្រួសារ​ តែ​មានស​ង្ឃឹម​នៅ​ ក្នុង​ចិ​ត្ត​ថា​​ ការងារ​អ្វី​ក៏​ដោយ​ មិន​ថា​ការ​ងា​រ​រោ​ងចក្រ​ មិន​ថា​ការ​ងារ​សំណង់​ មិន​ថា​ការ​ងារ​ប៉ះកង់​
មិន​ថា​ការ​ងារ​សន្តិ​សុខ​ បុ​គ្គ​លិក​​ធ្វើការ​តាម​ក្រុម​ហ៊ុន​​ បងប្អូន​អ្នក​សំអាត​ទី​ក្រុង​ មិន​ថា​ការ​ងារ​តូច​ រឺ ធំ​ សុំ​ត្រឹម​កុំ​អោយ​លួច​គេ ទាំង​អស់​នេះ​ សុ​ទ្ធ​តែ​ជា​ការ​ងារ​ដែល​ល្អ ត្រូវគិត​ថា​ ជី​វិត​យើង​មិន​មែន​តែ​ប៉ុណ្ណឹងទេ​ តទៅមុខគឺ​មាន​ទៀត​​ ជីវិត​មនុស្ស​​យើង​មិន​ទៀង​​ ថ្ងៃ​នេះ​ក្រ​ថ្ងៃ​ស្អែក​មាន ត្រូវ​មានសង្ឃឹម ត្រូវ​មានសង្ឃឹម​​​ មានសង្ឃឹម មានសង្ឃឹម​ មានសង្ឃឹម មានសង្ឃឹម

Thursday, August 9, 2012

How to Display Module Positions in Joomla 2.5

You will wonder how you know the module position in your joomla  template. What is module position in joomla template? why do we need to know it?
  1. Module position is a position that we manage in template to display our module.
  2. We need to know it when we create module or install module to display in position of template. Ex: You create module menu. You would know where you should display this menu in your template. We don't know the module position because we download or use someone else template and we don't want to check the code position in template.
So I will guide you the way we do fast to know the position of module.
Goto Administrator > Extensions > Template Manager > Options > Global Configuration for Templates > Preview Module Positions set Enabled. View all modules positions by adding ?tp=1 to the end of your URL such as http://example.com/index.php?tp=1

see figure1:


Saturday, June 23, 2012

Some Linux Questions that you should answer in the weekend

Linux Questions Today ! 

1: What is open source? List linux distribution at least 10?
2: How many mode in vi editor? Please describe each mode briefly?
3: How to changing run level 5 to 3 automatically boot up? and how to find out run level of linux system?
4: How many run level in linux boot process? Please describe it briefly ?
5: What is difference between rpm and yum command please briefly?



Enjoy your weekend by answer these questions before go out!

Wednesday, May 23, 2012

How @font-face Works

The great news about CSS3 support of the @font-face selector, is that - unlike work-a-round techniques - it's easy to use. Yay! Fonts without hoops!
Just upload the font file you want to use to your server - making sure that you're not violating any copyright rules
In example here I am using font name Ubuntu. you can download this font from here
 - then embed it, using the following CSS:
Code:
 <html>
    <head>
        <title>
            Test font embeded
        </title>
    <style type="text/css">
            @font-face {
              font-family: yourFontName ;
              src: url( /ubuntu_title/Ubuntu-Title.ttf ) format("truetype");
            }
    
            /* Then use it like you would any other font */
            .yourFontName { font-family: yourFontName , verdana, helvetica, sans-serif;
            }
    </style>
    </head>
    <body>
        <h1 class="yourFontName">ubuntu title</h1>
    </body>
</html>

The CSS code above defines a font called "yourFontName". You may use the actual font name - or - for testing purposes a unique, made-up name. Whichever you use, all you need to do is reference it again in the CSS, wherever you want to use it.
That's it! Note: the CSS3 specification provides for several font formats: "truetype" (ttf), "opentype" (ttf,otf), "truetype-aat (ttf), "embedded-opentype" (eot) and "scalable-vector-graphic" (svg,svgz).

The result:
more references here


Tuesday, May 22, 2012

Connecting to a Remote Oracle Database with PHP


1, Download Oracle Instant Client package that match with Oracle Database version
    Example: http://www.oracle.com/technetwork/topics/winsoft-085727.html
2, Unzip file to directory C:\Program Files\Oracle Instant
3, Create a new file in that same directory named tnsnames.ora
     This is an important configuration file that allows you to create kind of a local reference to a remote Oracle database server. Paste the following into that new file:
YourServiceName =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = YourHost)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = YourServiceName)
    )
  )
4, Add Environment Variable to your system
-          User variable: variable name: Path , variable value:  C:\Program Files\Oracle Instant
-          System variable: add new variable name: TNS_ADMIN , variable value C:\Program Files\Oracle Instant
This environment variable ensures that PHP will be able to find your tnsnames.ora file when it tries to connect via oci_connect(), so it's important.
5, To get your PHP scripts talking to the remote Oracle server, you'll use the oci_connect() function. you'll need to enable support for the oci8 module. To do this, open up your php.ini file and uncomment (remove the leading semicolon from) the line that reads:
;extension=php_oci8.dll 
it might be possible to only restart Apache (or whatever web server you're running), so you might give that a shot first just to see if you're lucky.


Then try code connect
<?php
$db = "(DESCRIPTION=(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = YourHost)(PORT = 1521)))(CONNECT_DATA=(SID=ServiceName)))";$conn = oci_connect("UserName","Password",$db);

if ($conn) {
            echo "Connected<br>\n";
} else {
            echo "Connected fail<br>\n";
}

Note: if you still see the message Fatal error: Call to undefined function oci_connect()
Copy all files from directory Oracle Instant to directory apache/bin

Reference:
http://www.bernzilla.com/item.php?id=784

How to create Virtual Host in Apache













The term Virtual Host refers to the practice of running more than one web site (such as company1.example.com and company2.example.com) on a single machine. Virtual hosts can be "IP-based", meaning that you have a different IP address for every web site, or "name-based", meaning that you have multiple names running on each IP address. The fact that they are running on the same physical server is not apparent to the end user.
Apache was one of the first servers to support IP-based virtual hosts right out of the box. Versions 1.1 and later of Apache support both IP-based and name-based virtual hosts (vhosts). The latter variant of virtual hosts is sometimes also called host-based or non-IP virtual hosts.

You can configure in your Apache server step by step below:

1, Enable LoadModule rewrite_module modules/mod_rewrite in file httpd.conf in apache/apache_v_x/conf directory

2, Enable Virtual hosts
Remove # in this line Include conf/extra/httpd-vhosts.conf in file httpd.conf in apache/apache_v_x/conf directory

3, Add virtual host in httpd-vhosts.conf in apache/apache_v_x/conf/extra directory
Add following script

<VirtualHost *:80>
ServerAdmin webmaster@angkordigitalsolutions.localhost
DocumentRoot "C:\wamp\www\angkordigitalsolutions"
ServerName angkordigitalsolutions.localhost
#ServerAlias www.dummy-host.localhost
#ErrorLog "logs/dummy-host.localhost-error.log"
#CustomLog "logs/dummy-host.localhost-access.log" common
</VirtualHost>

4, Create host in C:\Windows\System32\drivers\etc
127.0.0.1 angkordigitalsolutions.localhost

Last, you need to restart your server

Related post: How to increase web app performance better