change NIC in Centos 6 VM


While building a clustered vm in kvm/qemu, i needed to clone a system so it could run in a high availability configuration. after cloning the system, i wanted to clear out all traces of the old NIC, but there were still files that held into the original MAC address of the original.

thank goodness for google… ask the question properly, and the genie delivers a usable answer.

  1. in the cloned vm, i deleted the following files:
  2. shutdown the vm
    virsh <domain> shutdown
  3. edited the vm to remove the old vNIC and added a new one
  4. booted vm and ran system-network-config
  5. created new NIC and restart network service.

Shanghaied into cooking rice…

i was recently Shanghaied into making rice for a Japanese cultural event, these are my notes for myself for the following years’ conscripted duties… funny, it’s expected that anyone of a specific ethnicity should know how to (fill in the specific verb of misconception here: cook/talk/act/manufacture/translate/dance, etc) perform that ethnically unique task. in this case, being half-japanese automatically qualifies me to be an expert rice cooker.

ok, eye shoyu how make lice!

these instructions are specific to the kitchen@heiwa terrace, but could be easily transferred to another commercial kitchen with similar equipment, YMMV.

use the proper measuring container. this container is a 4ℓ container, measure 7ℓ of rice. wash rice of starch/talcum until water runs clear or 10-15 rinse cycles. after washing rice, drain in colander, use cloth to prevent rice from falling thru the big drain holes. washing rice and overnight draining is not necessary, washing rice immediately before cooking is acceptable, but increases overall prep time.

before putting rice in the cooking vessel, make sure to spray the container with oil. spread the rice evenly in the container, add enough water to measure to knuckles of your open hand when palm is flat on top of rice in middle of the pot*. or use the measure markings on the side of the pot, about 7ℓ. i personally prefer a slightly harder grain of rice and will decrease water next year slightly.

* measuring like this is imprecise, but that doesn’t mean it’s inaccurate. measurements based on the human body are unique and don’t translate accurately from person to person. it’s a generalization, so witnessing first hand is the best way to transfer these measurements.

place cooking vessel with rice and water into the commercial automatic gas rice cooker/oven(the one i used is a 3-tiered rinnai brand cooker). turn on the oven and prep the pilot by pressing and holding the pilot button for up to 20 sec. press the on button to start the cooking.

this oven doesn’t have a buzzer or bell, the only indicator is a tiny lamp that turns off when the cooking is finished, so it requires attention. cooking time is about 25 min. honestly there should be an indicator lamp for cooking(red) and finished cooking(green), or something that can be seen from across the room…

move cooking vessel  out of the oven and wait 5 minutes, then mix rice. the mixing helps the steam finish the cooking by providing more space for the steam to travel as opposed to firmly packed rice. don’t fucking forget the initial mix. and don’t forget cover the pot. if the rice looks like it’s not soft enough, now would be the time to add a skosh more water for a final steam. if rice is looking a bit soft, leave the cover off and allow for faster cooling to prevent further cooking.

wait another 5 min. after the mix to allow rice to finish cooking. impatient amelican! you wait 5 mo minute!

transfer half the cooked rice into a smaller container. pour vinegar mix on top of rice and use a cutting action to mix to prevent mashing of rice grain. use a fan to cool hot rice during mixing process.

seasoned rice is pressed into form and inserted into inari pockets in assembly line fashion.
as the important rice chef, no need to get involved in this function. watch and observe to make sure they are not running out of rice. 30-40 minute cook cycle means be prepared to make more rice and prevent idle assembly line. …also as important rice chef, you can taste broken inari that will not be sold.

filled inari pockets are transferred to transportation trays(two layers per tray), approx 100 pieces per tray when filled.

don’t forget wash up the rice from all cooking vessels when finished to avoid hardening like glue. lice grue berry sticky and hard to crean.

use the coffee filter to catch waste rice to prevent clogging pipes.


disk usage analyzers

Image result for pies

sometimes you need more than df or du, you need a disk usage analyser tool to show other metrics in a visual way. these are handy tools, and there are a few great examples out there, commercial and open source. the following are a few unix/linux notable examples:

qdirstat – powerful, perhaps too much for an analyzer… you could use this as an interface to navigate the file structure and actually review files(and delete them), review statistics and locate files by type. histograms, pie charts, medians, percentiles, this is an analysts dream tool, but i really hate tree view.

disk usage reports – one of may favorite, but slow and long in the tooth. it’s easy to navigate and review top 100, by age, by size and by type, but lacks the ability to define file types the way qdirstat performs. it’s also not the kitchen sink, so it only shows what is taking space, via web interface.

agedu – a heat map based on age and size. not bad at all for quick analysis. potential to perform remote reports to be dumped to another server make it handy.

flamegraph – flame maps not my thing, but you can use this for more than disk analysis. the fact that it generates an svg means it’s possible to create web enabled reports

ncdu – Ncurses disk usage is nice, clean, simple and easy to use, but lacks the ability to sort by date… BTW, why do disk usage analyzers need the ability to manipulate files, like delete?

Ncdu asking for confirmation to delete a file.

disk usage analyzer – builtin to the gnome environment, it provides the ability to review size, age, and directory path with an interactive sunburst display. i find the sunburst style chart to be intuitive even though it’s not factually accurate like the flame graph style, its close enough for government work. unfortunately there’s no web interface, only x11.

7 Great Apps to View Disk Usage in Linux linux disk analyzers baobab

JDiskReport – it’s not a commercial product, but it does have a restrictive license preventing modifications and derivations. it’s pretty intuitive and on par with disk usage report, but lacks a web interface.

not specific to disk analysis, but worthy of an honerable mention:

phpsysinfo – this is more of a system status dashboard, with the ability to report on disk usage, but only in a df capacity

dammit i forgot to sudo…

before editing a file in vi.

no sweat, there’s a way to fix that without redirecting to another file.

:w !sudo tee %

thats’s a nice way to elevate your privileges, so long as you have sudo access.

Brocade FibreChannel switch Admin console

Browsers are moving away from plug-ins for things like switch consoles:

“Mozilla continues to work with the Oracle Java Platform Group to ensure a smooth transition for those web sites that use Java. More information from Oracle about Java transition plans can be found in a post from the Oracle team. Oracle recommends that sites currently using Java applets consider switching to plugin-free solutions such as Java Web Start.”


Use this command in terminal for gui admin on brocade:

Javaws http://<switch ip>/switchExplorer_installed.html

Physician heal thyself…

instructor train thyself, AI defeat yourself.

AI researchers have taught an AI to beat human players at the game go, thought to be one of mans oldest documented board games dating back 2500BCE.

Then, researchers had a second generation AI trained by this champion Go player. It basically trained a version of itself to be a supreme Go master.

WTF AI scientists! Why don’t you take the oldest human strategy game and teach a machine to be superhuman.

Hampering a new golden age of discovery

With oppressive copyright, trademarks, and other defensive tools to milk all of the cultural wealth out of the mouse and honey bear….


At some point these cultural icons should make it into the public domain before they are ruined by over-milking their commercial value.

Remixing a cultural icon is one way to revitalize a trademark… release the mouse and the bear, follow the example of the neurotic detective!