Journaling on estrip is free and easy. get started today

Last Visit 2024-11-20 13:02:24 |Start Date 2007-04-01 15:09:25 |Comments 9,863 |Entries 1,011 |Images 1,430 |Sounds 30 |SWF 1 |Videos 219 |Mobl 27 |Theme |

Category: goals

07/17/11 02:33 - ID#54716

Project Armstrong

(E:strip) has sort of changed for me in the past couple months as more of a personal referencing and note-taking environment. (e:Paul) told me that wildcard searching and grepping could be a likely feature in the near future, so I am pretty excited about how else I can push (e:strip)'s limits.

I started some experimentation with establishing habits through journalling a couple years back but that wasn't so very successful. My "goals" category is littered with decapitated angels of change. I think I murdered them all because I lacked the correct motivation. I think I have it now. The thing is I tried the urdhva dhanurasana just now and could not repeat the success at yoga class from last week. So frustrating! And I pretty much know why. I really really really would like some functional muscles on my arms. They are weak and a complete disgrace to the 13,550,471,400+ human arms on the planet. They have no muscle definition and look like they were grafted on me from an early 1700s graveyard-spare-bones-and-cadavers-department.

So push ups it is. At 10:13 PM everyday, as many push-ups as I can do in 5-10 minutes. (I can't do a "real" push-up yet so I am going to start with push-ups-on-my-knees.)

Of course, now how does (e:strip) come into it? I am not sure yet... maybe a post checking in on success or failure immediately after I finish the task? They say that if you keep it up for 21 days, a habit is established (personally, I think that is such tripe... but I could be wrong. I kind of want to be wrong on this one.) Who wants to be in my accountability peanut gallery and throw rocks? Or better still, does someone else have a 10:13 or even 10:31 goal they want to implement? Brush your teeth every night, perhaps?

A single push-up for me, a giant floss for you? It's project Armstrong!

See you around 10:30-ish.

print add/read comments

Permalink: Project_Armstrong.html
Words: 324
Location: Buffalo, NY
Last Modified: 07/17/11 02:51


Category: linux

07/16/11 01:38 - ID#54713

Greppetty Grep

Another set of commands I need to burn into my brain:

Find all files in the current directory that contain blah in their file names
  • ls |grep blah

Wildcards in grep: all files that start with a b and end in a g with ONLY one character in between
  • grep b.g file

The asterisk * in a grep command stands for repetition. .* means "repeat any character any number of times"
  • grep "b.*g" file

Escaping characters. Preceding backslashes either remove an implied special meaning from a character or add special meaning to a "non-special" character
  • grep 'hello\.gif' file

An expression consisting of a character followed by an escaped question mark matches one or zero instances of that character.
  • bugg\?y matches bugy , buggy but not bugggy

An expression surrounded by "escaped parentheses" is treated as a single character.
  • Fred\(eric\)\? Smith matches Fred Smith or Frederic Smith

Match a selection of characters, use []
  • [Hh]ello matches lines containing hello or Hello
  • [A-Ca-k] is the same as [ABCabcdefghijk]
  • [[:alpha:]] is the same as [a-zA-Z]
  • [[:upper:]] is the same as [A-Z]
  • [[:lower:]] is the same as [a-z]
  • [[:digit:]] is the same as [0-9]
  • [[:alnum:]] is the same as [0-9a-zA-Z]
  • [[:space:]] matches any white space including tabs

The [] may be used to search for non-matches. This is done by putting a carat ^ as the first character inside the square brackets.
  • grep "([^()]*)a"

matches (hello)a, (aksjdhaksj d ka)a But not
x=(y+2(x+1))a (I don't get this part, does it match (y+2(x+1))a?)

This matches phone numbers, possibly containing a dash or whitespace in the middle.
  • grep "[[:digit:]]\{3\}[ -]\?[[:digit:]]\{4\}" file

The $ character matches the end of the line. The ^ character matches the beginning of the line.
  • grep "^From.*mscharmi" /var/spool/mail/elflord
  • grep "^[[:space:]]*hello[[:space:]]*$" file

The expression consisting of two expressions seperated by the or operator \| matches lines containing either of those two expressions.
  • grep "I am a \(cat\|dog\)" matches lines containing the string "I am a cat" or the string "I am a dog"

The expression \n where n is a number, matches the contents of the n'th set of parentheses in the expression
"Mr \(dog\|cat\) came home to Mrs \1 and they went to visit Mr \(dog\|cat\) and Mrs \2 to discuss the meaning of life matches the respective dog/cat pairs

The following characters are considered special and need to be "escaped":
? \ . [ ] ^ $

A $ sign loses its meaning if characters follow it and the carat ^ loses its meaning if other characters precede it.

Square brackets behave a little differently. The rules for square brackets go as follows:
  1. A closing square bracket loses its special meaning if placed first in a list. for example []12] matches ] , 1, or 2.
  2. A dash - loses it's usual meaning inside lists if it is placed last.
  3. A carat ^ loses it's special meaning if it is not placed first
  4. Most special characters lose their meaning inside square brackets
  • grep "$HOME" file searches file for the name of your home directory, while
  • grep '$HOME' file searches for the string $HOME


Find with specific strings on filenames
  • find . -name "*.jpg"
  • find . -iname "*.jpg" #case insenstive version

Look for specific filetypes
  • find . -type d #directories
  • find . -type f #files
  • find . -type l #links (wth?)
  • find . -type s #sockets (wth?)

Find by size:
  • find ~/Movies/ -size +1024M

Find by last modified time (last 1 day)
  • find /etc/ -user root -mtime 1
Arguments
-atime: when the file was last accessed
-ctime: when the file's permissions were last changed
-mtime: when the file's data was last modified
-amin: when (in minutes) the file was last accessed
-cmin: when (in minutes) the file's permissions were last changed
-mmin: when (in minutes) the file's data was last modified

!
exclude everything that comes after this...

Collect files that are not owned by valid users and delete them
  • find / -nouser -print0 | xargs -0 rm

Clean the images off of your *nix desktop
  • find ~/Desktop -name "*.jpg" -o -name "*.gif" -o -name "*.png" -print0 | xargs -0 mv --target-directory ~/Pictures
  • The -print0 option terminates results with a null character instead of the default newline, making it cleaner and less likely to balk in many cases

Correct the permissions on your web directory
  • find /your/webdir/ -type d -print0 | xargs -0 chmod 755
  • find /your/webdir -type f | xargs chmod 644

Show a list of files in /etc that have been modified since last month
  • find /etc -mtime -30


Refs (~completely taken with gratitude from)
print addComment

Permalink: Greppetty_Grep.html
Words: 754
Location: Buffalo, NY
Last Modified: 07/17/11 02:37


Category: music

07/16/11 11:37 - ID#54712

We are the Custard Pie Appreciation Consortium!

This gem by The Kinks is SO (e:matthew). haha

We are the Skyscraper Condemnation Affiliates
God save Tudor houses, antique tables, and billiards!



(But I love the Kate Rusby version a lot!)


She infuses something indescribably rustic and precise into the classic.

The already super-awesome Classic:


print addComment

Permalink: We_are_the_Custard_Pie_Appreciation_Consortium_.html
Words: 56
Location: Buffalo, NY
Last Modified: 07/16/11 11:37


Category: i-tech

07/16/11 10:32 - ID#54711

Candara and Droid Sans

Welcome to my Candara and Droid Sans Obsession. I am completely sold on these fonts.
Candara
image

Droid Sans
image

Love the way the letters curve, everything about these fonts is so perfect.

Candara is native to windows and droid sans is native to Android. But I want them both on both of my windows and linux systems. So here goes:

Installing both fonts on Linux.
From:
  • Copy the fonts in their own folders under /usr/share/fonts/truetype
  • Make these fonts available to the system: chmod 0775 -R droid/ candara/
  • Cache the fonts so they are loaded on all the applications: chmod 0775 -R candara/ droid/


Installing droid fonts on Windows.
This is way simpler.
  • Just download the fonts from this
  • Extract to the Windows/Fonts folder.


While hunting for stuff, I found this, a complete image of a running android system ripe for hacking.
Hmm...

print addComment

Permalink: Candara_and_Droid_Sans.html
Words: 183
Location: Buffalo, NY
Last Modified: 07/16/11 12:21


Category: linux

07/16/11 09:53 - ID#54710

The TermKit Philosophy

I read with interest this nifty commentary by Steven Wittens on his extreme redesign of the concept of the bland linux terminal.

One of the Unix principles is nobly called "Least Surprise", but in practice, from having observed new Unix users, I think it often becomes "Maximum Confusion".


From:

And I can't help laughing. How true.

I would love this on my system. I think it's still in development (on not). It's SO confusing to find out what's good to install and what isn't on linux sometimes...


I also want the CLICompanion: But again, is there a Debian port? or isn't there? Who knows... See the confusion here? Basic questions like "Alright, can I install this application now?" grow into gargantuan complex flowcharts on linux. For eg. the simple question above can only be answered after ALL the following have been sorted.
  • What distro are you on?
  • What kernel are you on?
  • What architecture are you on?
  • What are the dependencies of the program you want?
  • What are the versions of these dependencies specific to the program you want to install?
  • Do you have the source repository of the versions of the dependencies that is best suited to the program in your sources.list?
  • Do you have an updated sources.list?

Fine then, you can install the program but... I can only give you the source code because I am SO open source. Here you go, my precious tarball lovingly gift-wrapped in some cryptic archival format for you: Sourcecodeblablaobscureversion000.tar.bz

Which leads to:
  • Can you compile this source code on your system?
  • What are the developer tools you need to compile the code?
  • What are the dependencies of the developer tools you need?
  • Are these dependencies in the repositories on your sources.list?
  • Do you have the requisite linux kernel headers (what the hell does that even mean?)
And finally, you compile the source into an executable binary and you are met with more challenges because some of the other dependencies can STILL be missing and you have go hunt all round the internet and repeat the above algorithm for each dependency.

God forbid, you find an easy way to do things on Linux. Because you see, the great Linus Torvalds didn't plan on the system being used and abused by novices and nobodies like you.

print addComment

Permalink: The_TermKit_Philosophy.html
Words: 398
Location: Buffalo, NY
Last Modified: 07/16/11 10:10


Category: science

07/15/11 09:02 - ID#54709

Google actually increases our IQ

I took a break and read some fun studies that came out this week in Science (pdfs below). A professor at Columbia conducted some experiments about how our memories operate in the presence and absence of assured information sources online such as Google and Wikipedia.

She found, not surprisingly, that our priorities have moved not towards memorizing trivia but towards more efficient ways to retrieve this trivia from where it might be stored online. And since remembering trivia is a relatively easier task than remembering techniques and algorithms to retrieve this trivia, our IQs are actually getting sharper as technologies progress and our environments become richer with information.

As (e:paul) said to me not long ago, Google has pretty much become everyone's mother. And we are constantly thinking of ways to jog her memory and get relevant information out.

Science is an interesting magazine/journal. For people in academia, publishing in Science and Nature are the pinnacle of achievement. But somehow, a large number of studies from humanities and behavioural sciences which do get published in these journals (Science way more than Nature) seem to get away with the simplest of experiments, approaches and super-obvious hypotheses. More arduous basic and clinical science that takes a ton of effort to perform gets rejected routinely.

I often wonder if we, as basic and clinical scientists, place undue importance to getting published in these so-called lofty journals, and agonize too much about where we get published. After all, some of the finest nobel-winning impact-making science was not published in these journals but obscure journals with lowly impact factors when they first came out. (It's another matter however that these "lowly journals" have since become really prominent and elitist.)

Academia is a funny twisted world.
---
Refs:
::READ PDF::
::READ PDF::
print addComment

Permalink: Google_actually_increases_our_IQ.html
Words: 301
Location: Buffalo, NY
Last Modified: 07/15/11 09:02


Category: buffalo

07/15/11 06:40 - ID#54707

Wish they were playing the 7th or Strauss instead

I wanted to go to the BPO concert on canalside today. But I had forgotten what Beethoven's 5th sounded like... So I just put it on and it's too much military turmoil packed into one symphony. I am not sure it fits well in my mind with a perfect sunset on a balmy summer's day.

Why can't they have chosen Beethoven's 7th instead?! It's so much more stately, beautiful, nostalgic and fitting.


Or even some of the Strauss family waltzes...


I am not going. I cannot hear mismatched music over sunset.

print addComment

Permalink: Wish_they_were_playing_the_7th_or_Strauss_instead.html
Words: 97
Location: Buffalo, NY
Last Modified: 07/15/11 06:41


Category: linux

07/15/11 11:35 - ID#54706

Purge Purge Purge

I need to remember these four commands

Purges configuration files.
  • sudo apt-get purge PACKAGENAME

Purges dependencies
  • sudo apt-get --purge autoremove

Finds any stragglers
  • find / -iname '*PACKAGENAME*'

Purge configuration files for ALL the packages removed.
  • aptitude purge ~c
print addComment

Permalink: Purge_Purge_Purge.html
Words: 39
Location: Buffalo, NY
Last Modified: 07/15/11 11:36


Category: the odes

07/14/11 09:21 - ID#54704

Instead of going to the harbour...

I made my own Gmail theme.
image

I was just about to head out but I was super-irritated that the clouds seemed to have rolled in from some forsaken place and completely squashed my hopes of seeing a spectacular sunset.

The new Gmail theme is so washed out and sterile, I can't stand it. All the other themes are starting to look tired and the Android theme that I have had for quite a while has no saturation to speak of. Considering I stare at this Gmail interface for a good chunk of time in a day, it was high time I tweaked the damn colours.

Another variation on the theme (this one has legible formatting buttons as opposed the the earlier one that was just too black and drowned out all the buttons in the pane where you compose messages). I like the earlier one, it looks dramatic and sharp but the invisible formatting buttons are a dealbreaker.
image

Colour Codes for Reference:

Main Background
Background Colour: #000000
Text Colour: #9fc5e8
Link Colour: #ffffff
Background Image: Black to Transparent blur gradient on this awesome pic:
Allign: Right
Tiling: Horizontal



Frame
Background Colour: #bcc896
Text Colour: #000000
Link Colour: #444444



Box
Border Colour: #444444



Box Content
Background Colour: #000000
Text Colour: #bfde83



Button Bar
Background Colour: #bcc896
Text Colour: #000000
Link Colour: #674ea7



Messages
Background Colour: #bfde83
Text Colour: #000000
Snippet Text Colour: #444444



Selected Message
Background Colour: #d6c6ff



print add/read comments

Permalink: Instead_of_going_to_the_harbour_.html
Words: 258
Location: Buffalo, NY
Last Modified: 07/15/11 09:27


Category: buffalo

07/14/11 05:12 - ID#54702

Canalside Festival This Weekend

One of my wonderful colleagues just forwarded this absolutely dazzling array of fun stuff going on at the harbour and Erie central wharf this week and weekend and early next week. All events are here:

Thinking of hitting the Beethoven's 5th tomorrow evening. Who is coming with me?

This week at Canalside there are 30 events, and they are all free to the public.



Wednesday, July 13
Damn, missed this! I wanted to go on that boat.
  • Boat Ride with Buffalo Maritime Center aboard the White Elektra or OK Clark Canalside: Commercial Slip – Central Wharf side 5 p.m. – Weather Permitting - Free (First come–first served with no reservations accepted.)
  • Jack Civiletto Sings Sinatra: Concert aboard USS Little Rock Buffalo Naval & Military Park 7 to 9 p.m. – Free
  • “Erie Canal Sal” The Story of Sal McMurray An Irish cook aboard a packet boat in 1840 Performed by Gretchen Murray Sepik Canalside: Central Wharf 6 to 7 p.m. – Free
  • “From Albany to Buffalo: Erie Canal History, Culture and Music” Performed by Dave Ruch Canalside: Central Wharf 7:30 to 8:30 p.m. – Free
  • Sunset Yoga Canalside: Lawn 7:30 to 8:30 p.m. – Free
  • Thursday, July 14 Thursday at the Square presented by M&T Bank Featuring: Court Yard Hounds Canalside: Central Wharf & Cobblestone Streets 5 to 9 p.m. – Free

Friday, July 15
  • Erie Canal Story by Buffalo Tours: One Hour Guided Walking Tour Canalside: Whipple Truss Bridge – Central Wharf side Noon to 1 p.m. – Free
  • Friday Family Fun on the Central Wharf with Explore & More Children’s Museum The Sky’s the Limit Canalside: Lawn Noon to 4 p.m. – Free Groups of more than 10 children must pre register by calling 716/655-5131.
  • An Evening with the Buffalo Philharmonic Orchestra conducted by Matthew Kraemer Central Wharf: Main Stage 7 to 9:30 p.m. – Free

Saturday, July 16
  • Saturday Family Fun on the Central Wharf with Explore & More Children’s Museum “The Sky’s the Limit” Canalside: Lawn Noon to 4 p.m. – Free Groups of more than 10 children must pre-register by calling 716/655-5131.
  • Erie Canal Story by Buffalo Tours: One Hour Guided Walking Tour Canalside: Whipple Truss Bridge – Central Wharf side Noon to 1 p.m. – Free
  • “A Mule Named Sal – A Children’s Concert at the Erie Canal” Performed by Dave Ruch Canalside: Central Wharf 5 to 6:30 p.m. – Free
  • “Mary Jemison” The story of a young girl captured by the Indians – years later when offered her freedom she chose to remain with her Indian family. Performed by Gretchen Murray Sepik Canalside: Central Wharf 6:45 to 7:45 p.m. – Free
  • “From Albany to Buffalo: Erie Canal History, Culture and Music” Performed by Dave Ruch Canalside: Central Wharf 8 to 9 p.m. – Free

Sunday, July 17
  • Beginner’s Yoga Canalside: Lawn 10 a.m. to 11 a.m. – Free
  • Intermediate Yoga Canalside: Lawn 11:30 a.m. to 12:30 p.m. – Free
  • Erie Canal Story by Buffalo Tours: One Hour Guided Walking Tour Canalside: Whipple Truss Bridge – Central Wharf side Noon to 1 p.m. – Free
  • Yogalates Canalside: Lawn 1 to 2 p.m. – Free Boat Ride with Buffalo Maritime Center aboard the White Elektra or OK Clark Canalside: Commercial Slip – Central Wharf side 2 p.m. – Weather Permitting - Free (First come–first served with no reservations accepted.)
  • “A Mule Named Sal – A Children’s concert at the Erie Canal” Performed by Dave Ruch Canalside: Central Wharf 2 to 3 p.m. – Free
  • “Dug’s Dive” Performed by Kevin Cottrell Stop in at the popular waterfront basement saloon for a visit the proprietor William Douglas – operator of one of the most infamous saloons in all of the Canal District - a one-person interpretive performance Canalside: Historic Ruins – Commercial Slip 3:30 to 4:15 p.m. - Free
  • “Mary Jemison” The story of a young girl captured by the Indians – years later when offered her freedom she chose to remain with her Indian family. Performed by Gretchen Murray Sepik Canalside: Central Wharf 5 to 6:30 p.m. – Free
  • “From Albany to Buffalo Erie Canal History, Culture and Music” Performed by Dave Ruch Central Wharf 6:45 to 7:45 p.m. – Free
  • “An American History Songbook: A program of songs of the 19th Century” Performed by the Hutchinson Family Revival Canalside: Central Wharf 8 to 9 p.m. – Free

Monday, July 18
  • Science Outdoors with Tifft Nature Preserve Learn more about the rich biodiversity of the plants and animals of WNY and how everything connects. Canalside: Lawn 11 a.m. to 2 p.m. – Free
  • Zumba on the Waterfront: exercise and dance to Music Central Wharf 6 to 7 p.m. – Free

Tuesday, July 19
  • Yogalates Canalside: Central Wharf 6 to 7 p.m. – Free

Wednesday, July 20
  • Boat Ride with Buffalo Maritime Center aboard the White Elektra or OK Clark Canalside: Commercial Slip – Central Wharf side 5 pm – Weather Permitting - Free (First come–first served with no reservations accepted.)
  • Friends of Harmony: Concert aboard USS Little Rock Buffalo Naval & Military Park 7:30 to 9:30 p.m. – Free
  • Sunset Yoga Canalside: Lawn 7:30 to 8:30 p.m. – Free
print addComment

Permalink: Canalside_Festival_This_Weekend.html
Words: 793
Location: Buffalo, NY
Last Modified: 07/14/11 05:53


Search

Chatter

New Site Wide Comments

joe said to joe
Never send a man to do a grandma's job...

sina said to sina
yes thank you!
Well, since 2018 I am living in France, I have finished my second master of science,...

paul said to sina
Nice to hear from you!! Hope everything is going great....

paul said to twisted
Hello from the east coast! It took me so long to see this, it might as well have arrived in a lette...