A GOOD food-site…

http://eating-properly.blogspot.co.uk/2013/05/egg-fried-rice-with-pork-and-vegetables.html

egg-fried rice with pork and vegetables

Fried rice is a great dish to have in your repertoire. You can easily turn all sorts of left overs into another meal. Once you’ve mastered the basic principles you can vary the vegetables, seasoning and chosen protein with ease. Following this method the key to success is cutting your veg up to a suitably small size so that it cooks quickly, preparing everything before you get started and keeping your wok on full heat while you’re cooking.

 
Ingredients Serves 2-3
200g (uncooked) long grain rice
3 eggs, beaten
1 1/2 cups of cooked meat – I used the left overs from my slow-cooked crispy chinese pork belly
1 stick of celery, finely sliced
3 small carrots, halved lengthways then finely sliced
1 red pepper, finely sliced
1 cup of frozen peas
3 cloves of garlic, sliced
small piece of ginger, finely sliced
2 green chillies, chopped (optional)
2 spring onions, sliced
1 tbsp vegetable oil
Soy sauce/fish sauce/chilli oil or whatever you fancy to serve
  1. Cook the rice: Use what ever method you like but this always works for me. Boil the kettle. Put the rice in a saucepan then add the freshly boiled water to the rice so that it comes to a centimetre above the rice. Put the lid on the pan then boil rapidly on a high heat for exactly 5 minutes. Once the time has passed, turn off the heat then leave the rice until you’re ready to use it. Don’t lift the lid and make sure you leave it for at least 10 minutes as it needs to finish cooking.
  2. Stir-fry: Make sure you’ve got everything to hand now as things are going to move pretty fast. The key to success here is being ready to go. Put a large wok on the highest heat you have and get it smoking hot. Add the oil then swirl it around to coat the lower third of the wok. Add the beaten egg swirl around then once it is bubbling round the edges start to stir it around.
  3. Add the meat, ginger, garlic and chilli if using. Stir for a couple of minutes until the garlic starts to go crispy and brown round the edges.
  4. Add the remaining vegetables then continue to keep things moving for a couple more minutes and the vegetables are starting to cook through then add in the rice. Continue to cook and stir for another 3-5 minutes until everything is cooked through and well combined. Add the chopped spring onions then serve. Add some soy sauce or chilli oil if you want some extra flavour.
Categories: Food - num num

Finding information on Telkom Exchange DSL speeds…

http://www.broadbandstats.co.za

After searching high-and-low and not getting much joy on Telkom’s phone service (10210), I stumbled over the above site.  It gives you the full information and inter-connectivity between exchanges…

I hope you finally enjoy!

Categories: Internet, IT, Utilities

getting “wu-ftpd” to work on a LAMP (turnkey) installation.

I had to look high and low for this, but it is as easy as running:

dpkg-reconfigure wu-ftpd

this will create the entire structure for your ftp site…

Categories: IT, Unix, Utilities, VM

“for” loop in unix.

Some quick tips:

writing a quick string of numbers to a file:

# for i in {1..255}; do echo $i>>/file; done

the above will write 1 to 255 to file.

for i in {1..90}; do cp access.log.$i ..; done

the above will copy files from one dir to another (in my case an OLD dir used to store apache logfiles)

Categories: Unix

vMware ESXi Change “host memory usage warning”…

Our ESXi hosts are running out of memory – oh no they’re not!

Scenario:
ESXi 4.1 host with 60GB memory, 17 X Windows 7 guests with 2GB memory, 3 x Windows 2008 guests with 4GB memory, and 1 x Windows 2008 guest with 8GB memory; and the host reports a “Host memory usage” warning – how come VMware’s superb memory management systems have not kicked in?
Answer:
In the scenario above; adding up the memory given to the guests, this comes to 54GB, and when looking at the host memory usage, it was recording nearly 56GB memory usage (57344MB.)
Any VMware veteran would look at this situation and think “How odd, how come the TPS (Transparent Page Sharing) has not kicked in!”
The image below shows host memory claimed by the guests and configured memory size.
To see that TPS is not working, quickest way is to click on a guest in the vSphere client, and go to the resource allocation tab. In the image below notice there is no shared memory (below was for one of the Windows 7 guests)
To see shared memory in action, one would expect to something more like the example in the below image where there is 1.64GB shared, or greater than 50% (this was for a Windows 7 guest configured with 3GB memory.)
What is going on?
The answer is found in Matt Liebowitz’s excellent article – VMware KB Clarifies Page Sharing on Nehalem Processors:
And specifically the paragraph:
VMware has published a KB article that gives more information on TPS with Nehalem processors and why it appears TPS isn’t working (this affects modern AMD processors also). The short version is that TPS uses small pages (4K), and Nehalem processors utilize large pages (2MB). The ESX/ESXi host keeps track of what pages could be shared, and once memory is over-comitted it breaks the large pages into small pages and begins sharing memory.”
And yes, the host in question had a Nehalem processor (easy to check in Wikipedia -http://en.wikipedia.org/wiki/Nehalem_(microarchitecture) )
There is a solution if this behaviour is proving to be unsettling (will not say fix as technically everything is fine.)
You can force the use of small pages on all guests all the time by changing the value of the advanced option Mem.AllocGuestLargePage to 0 on your hosts and then VMotion the VMs off and back on to the host, or cold boot them.
In the scenario above; with TPS in effect, very roughly around 50% of the memory consumed by guests would be reclaimed, and the 60GB host would be showing only around 30GB memory usage.
THE END

 

Categories: Firewall, Internet, IT, Unix, VM

Installing VMware tools on Centos without a GUI.

To install is as easy as starting the Install/Upgrade and on your console:

yum -y install perl
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
cp /mnt/cdrom/VMwareTools-*.tar.gz /root
umount /mnt/cdrom
cd /root
tar -zxf /tmp/VMwareTools-*.tar.gz
cd vmware-tools-distrib
vmware-install.pl –default

BAM! Done!

Categories: IT, Unix, Utilities, VM, Zimbra

Linux: Find a file containing a string.

February 20, 2013 Leave a comment

I have not posted for a while, but found a couple of gems to find a file containing a string.

Very easy:

find / -type f -exec grep -i pattern ’{}’ \; -print

or:

grep -rl “STRING THAT YOU WANT” *

or:

find / -type f | xargs grep -l pattern

 

Categories: IT, Unix, Utilities
Follow

Get every new post delivered to your Inbox.