Create Image over network in Linux

Create image of hdd over network with linux

Copy Image over network

# on receiving machine
nc -l -p 9000 | dd of=tablet.sda
# on sending machine
dd if=/dev/sda | nc 9000

Business Group Questions

A few questions to stimulate conversation for our business group.

  1. Have you recently read any thing that may be of interest to the group?
  2. Have you heard of anyone failing in business lately, what was the reason?
  3. Have you heard of any business thriving lately, what was the cause?
  4. Do you know of anyone that has lately done something worthwhile, what was it? Who has committed an error that we sho uld do our best to avoid?
  5. Is there anything at present that we may do to help mankind, the country, our friends or ourselves?
  6. Is there anyone you want to meet that the group can somehow arrange?
  7. In what ways can the group assist you in your pursuit of success?
  8. Do you have any ideas which would be a good fit for this group to execute?
  9. Do you have any other questions that you feel should be added to this list?

Some VIM Commands

Every once in a while I try to review some vim information to get additional practice with the editor. Today I reviewed file buffers, visual mode and markers. All very useful in editing files with vim.

File buffers are great when editing more than file.
:b1 :b2 :b3
:bn :bp
:sbn :sbp

Visual Mode
In normal mode use v, shift-v or ctl-v (block edit)
Use >, <, r, c, d, etc.

In normal mode use ma, mb, mc, etc
Then use ‘a, ‘b, ‘c etc.

:sp, :open, ctl-Wn, etc.
ctl-w, ctl-w to switch windows
Buffer commands above come in useful here

Completion, Omni-completion
ctl-p, ctl-n to complete with words from file
ctl-x, ctl-o to use syntax completion
Very useful things in a text editor!

My Diet

Several people have asked me how I lost weight over the last year. In an attempt to pass what worked for me on here are the details.

It all started with a goal, I wanted to get to 200 lbs by vacation. That meant that I had to loose 38 lbs in approximately 12 weeks. I don’t believe there are any shortcuts in this writeup so if that is what you need you might as well stop here.

The two most important things necessary to complete this for me were to have a solid goal, to be able to measure progress toward that goal and to have the discipline to stick to my program. I used to think that I didn’t have to weight myself, I knew whether or not I was in shape, what did I need a scale for? After gaining weight for the past several years I came to realize that this was just a rationalization for me and that the measurement really was important (As in anything else that you want to make progress towards).
So here is what I did:

  • 3 Workouts a week, one hour each, half weight lifting, half cardio (bike)
  • Ate grilled chicken ceasar salads for lunch (light on the dressing)
  • Ate grilled chicken garden salads for dinner
  • Stopped driking all soda and juice (except for a morning orange juice, 4-6 ounces)
  • Ate a banana for breakfast

With this routine I was able to lose ruffly 4 lbs a week. I was very strict with myself and had no snacking between meals. Over the course of 12 weeks I lost the weight and was around 201-202 lbs for vacation.

Perl Tidy and Vim

Perl Tidy and Vim Options I find useful. Mostly so I have it conveniently located for future machines.

Perl Tidy Options

-l=78     # max line width
-i=4       # Indent level 4 cols
-ci=4     # Continuation Indent 4 cols
-st         # Output to STDOUT
-se        # Errors to STDERR
-vt=2     # Maximal vertical tightness
-cti=0    # No extra indention for closing brackets
-pt=1     # Medium parenthesis tightness
-bt=1     # Medium brace tightness
-sbt=1    # Medium square bracket tightness
-bbt=1    # Medium block brace tightness
-nsfs     # No space before semicolons
-nolq     # Don't outdent long quoted string
-wbb="%  + - * / x != == &gt;= &lt;= =~ !~ &lt; &gt; | &amp;  &gt;= &lt; = **= += *= &amp;= &lt;&lt;=  &amp;&amp;= -= /= |= &gt;&gt;= ||= .= %= ^= x="  # Break before all operators

Standard VIM options

set nocompatible     " We're running Vim, not Vi!
filetype on              " Enable filetype detection
filetype indent on    " Enable filetype-specific indenting
filetype plugin on    " Enable filetype-specific plugins

set display+=lastline
set statusline=%&lt;%f%h%m%r%=%b\ 0x%B\ \ %l,%c%V\ %P
set laststatus=2
set ruler
syntax on
set tabstop=2
set paste

Entrepeneurial Lessons

In this post I will describe the lessons I learned from a failed start-up I was part of. It was a small company, underfunded and understaffed. We were naive and probably expected too much from too little work.

Need CEO leadership, responsible for final decisions It doesn’t seem to work to have multiple people as co-presidents (ceos). There needs to be an ultimate decision maker that is responsible for the company as a whole. This doesn’t mean that discussions and buy in aren’t necessary, just that someone has to be ultimately responsible and push to create action. With out these decisions and leadership there is limited action and none of it seems to be focused on the same mission.

Comitment is required, determining if someone is really committed or just riding along is the difficult part How do you determine if someone is committed to the company or just afraid of missing out? It is essential because someone uncommitted to the company will not provide the results required. Commitment means more than just doing your tasks, it means being proactive and trying to make the company better in all ways. It means trying to improve yourself so that you can better perform you tasks.

Everyone must wear many hats, somehow you have to figure out the value of the corresponding hat? If someone on the management team feels like someone else on the team is not performing as required then there will be issues.

Need performance measurement and consequences To avoid finding out too late that someone is not performing you need a way to measure results. If the measurements are showing weakness then you must act quickly to resolve the issue. If the issue cannot be resolved then that exec must be moved to tasks that can be performed to the appropriate levels or the exec must be replaced.

Ask for evidence on a claim before making decisions It is easy to make a claim, but much harder to provide real evidence of that claim. On any proposals ask what evidence they have supporting their claim. If it’s not real, they haven’t done their homework. Tell them to come back when they have evidence.

Money and cash flow management are essential Someone responsible must be in charge of money and cash flow management. This is the health of the business and if no one is handling this properly then a lot of other information is not going to be available and this information is required for proper analysis.

Financial analysis essential, what makes money, how much does it cost? How do you know what is making money and what is not? How do you compare what is more profitable to spend time on? Financial analysis is extremely important in business, it is the report card or medical report of the company, ignore it at your own peril.

Focus on one project at a time, ensure that projects success before attempting new opportunities There are always other opportunities, everything is always better than what your doing now. If you follow every opportunity you will never succeed at any. Focus on one at a time and you will be much more successful.

Have a mission, values and goals. Guide day to day operations by goals, create goals based on values and make sure your mission and values are consistent.

People don’t always deliver (almost always don’t) on their promises

It’s much easier for someone to talk about their expertise that to demonstrate it, measure on execution

Everything is easy until you are the one responsible for it

Assign responsibilities and hold people to them

If money is the only goal then the focus may be lacking or the persistence might not be there

Lots of ideas, not much follow through, again execution

Time management is important, are your partners spending time on the most important things? Are you?

Don’t forget to account for your time and your expertise.

Real competence isn’t always easy to find