September 2010
M T W T F S S
« Jun «-»  
 12345
6789101112
13141516171819
20212223242526
27282930  

Leaving Chris World?

Why not bring back a souvenir?

Archives

Status Added to Site

I think they're called bash scripts because I want to bash my own
head in when i get them wrong. This was suppose to be a simple
task. But python broken, and my site cached the page conveniently giving
me the run around before I could figure out where my website changes
went.

And for what? Getting a 2 line shell script to run to update
my status from my computer.

Bleck. This whole day hasn't been going that well.

What You want to know what the first paragraph meant?
Certainly...

I think they're called bash scripts because I want to bash my own
head in when I get them wrong. This was suppose to be a simple
task. But python broke, and my site conveniently cached the
page giving me the run around before I could figure out where my
website changes
went.

bash scripts
There's a lot of ways to tell a computer what to do.
And by that I mean to run programs. Double clicking isn't
the only way to have dancing graphics and harmonious tunes
appear before you.
Nope, a bit more old school and you'll find you can type
words directly into the machine and it will do things.

In theory.

bash is just the name of another program but instead of double clicking
it lets the user type in commands to talk to the computer.
All 1980's style yo.

python broke
I don't break snakes nor am I afraid of
them. Python is the name of a computer programming language and
the program that understands that language.
Basically, it's a way to tell the computer what to do.
And sometimes
when a program like python doesn't get what it wants it
gets unhappy. And my python couldn't find it's own files
so it was all upset. And I couldn't write the program the way
I wanted to so I was frustrated and so I started writing
some other way to tell the computer what to do instead.

cached the page
Nope, I'm not making money here.
The content you see when you visit a site
is often generated by a computer as soon as you
request the page. This means a computer somewhere
is doing a lot of work to give you the page you want.
to prevent the computer from working as hard to create
pages on which to serve up to you we can cache them or in
other words save the page and deliver it to the next
web user whom ventures along. This way the computer
can take a load off and you can get your web page.

However, since the computer isn't generating the page
every time while caching is turned on developers
(as in myself tonight) can't see changes they make to the website.
I swear I turned caching off but apparently I hadn't
made it and so I thought my code wasn't doing anything when
it was.

And that was very annoying.

shell script
You know that bash thing? It's what is known
as a shell. And the commands we type into it are
a bit like scripting out a play so that the computer
takes certain actions. In other words, I wrote a computer
script that tells twitter to update my status so that I could
update my status from the terminal.

So re-read the first paragraph armed with this info.
Does it make a bit more sense?

3 comments to Status Added to Site

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Security Code: