Saturday, October 25, 2014

Seagate NAS 220 HDD 1 vs HDD 2 hard drive identification

In case you're wondering, when you place the NAS down with the metal casing up and the black side down. The HDD 1 refers to the hard drive on the bottom, HDD 2 refers to the hard drive on top.

The red highlighted HDD is HDD 2 vs the other is HDD 1.
No thanks to Seagate for publishing this information at all.

Sunday, June 1, 2014

Midtown Manhattan to St Pauls London minute by minute, 11 to 14 hours travel time

I'm a bit of a timing nut. With that said, here's Bryant Park, New York to Paternoster Square, London. 

The travel options chosen here are: 


  • Using Subway/MTA/AirTrain in NYC to get to JFK ($7.50, approximately 105 minutes to get to Terminal 7 gates) 
  • Using Underground/Tube in London to get from LHR to the city. (3-5 GBP or $5 to $8.3 USD, approximately 70 minutes to get to St Pauls)


More expensive options: 


  • Using Taxi to JFK (Approximately $60, anywhere from 27 minutes no-traffic (late night only) to 60 minutes with traffic, save 30-60 minutes best case) 
  • Using LHR Express to Paddington (Approximately 21-26 GBP, depending on where you bought the ticket, 34-39 GBP if you get a return ticket, cant give an estimate on time savings, would guess about 20-25 minutes)

start

  1. 16:15 | Move towards Bryant Park subway station 
  2. 16:17 | Take F train to Kew Gardens then E to AirTran 
  3. 18:00 | Arrived past security at Terminal 7 (includes physical checkin and baggage drop off) (105 minutes to get from midtown to gate basically by MTA/Subway+AirTrain) 
  4. 20:15 | Boarding started 
  5. 21:12 | Gate departure 
  6. 21:45-EST | Takeoff (39 mins late from 8:55) JFK is inefficient like that, 
  7. 04:00-EST 09:00-GTC | Landed 6:15 minutes later, prepare to race ahead of business class/priority ticketed passengers 
  8. 04:52-EST 09:52-GTC | Once past border control, walk to the underground/tube/picadilly line. Keep in mind, this does not include baggage claim. 
  9. 04:55-EST 09:55-GTC | Take the Picadilly line to Holborn 
  10. 05:55-EST 10:55-GTC | Transfer at Holborn station to the Central line south 
  11. 05:59-EST 10:59-GTC | Central line to St Pauls 
  12. 06:01-EST 11:02-GTC | St Pauls or Paternoster Square 


Total travel time: 13:45
Slippage: 2 hours at JFK wasted, 39 minutes sitting on runway.
Best case travel time: 11 hours 6 minutes

Wednesday, June 22, 2011

Things I've learned from James Bond

  •   Nothing is more valuable than your life, if you value that.
  •   Stay away from single women. Keeps things simple.
  •   In poker, you're not playing your hand, you're playing the man across from you.
  •   If you can't read a woman in 5 minutes, she might be the one.
  •   Omega.
  •   Work and pleasure should be equally balanced.
  •   Don't trust anyone.

Sunday, June 19, 2011

Things I've learned from Jason Bourne.

Jason Bourne has taught me that if you get shot in the shoulder, inject yourself with pain killers if found, then walk it off.

If you're going to jump from a moving train, jump and roll, then walk it off.

If you've got to jump onto a moving boat from a bridge, jump and roll, then walk it off.

If you need to contact someone you think is being tracked at their office, call them at a colleague's desk, this will prevent the conversation from being heard.

If you know someone is watching you, let them know you know they're watching you by looking at the camera as if you were looking right at them, this will throw them off.

If you're going to meet someone in public you've never met before and you need to be avoid actually being seen, buy a prepaid phone walk by them and slip it in their pocket. Call them and give them instructions in real-time to avoid rotating cameras and 2 mobile counter-strike teams.

If you're going to break into a CIA office, use the staircase to get in, lock down all their doors. Call up the director there and record his greeting when he answers the call. Pull a finger print off of his mouse and then use the voice print and finger print to open his safe. Take all his documents. If he lies to you in the phone conversation, tell him the truth.

If you're looking for a car to hot wire, choose Audi. They're easy to hot wire.

If you find yourself in the middle of a fire fight between NYPD and CIA operatives, just jump in the NYPD's Impala and drive off. They won't care.

If you're even involved in road rage and a crash is imminent, YANK the passenger side seat belt and hold on tight. Remember, avoid road rage at all costs when you have other passengers.


If you need to drive through a concrete wall or large SUV with a car, pull a 180 degree turn and ram through using the rear of the car. Don't forget to yank the seat belt before impact.

If you don't remember any of this, don't worry because decisions made in real-time are never perfect.
Hope for the best, plan for the worst.
Never second guess an operation from an arm chair.

-Ebrahim

Saturday, September 18, 2010

My fantastic .vimrc file.

I get a lot of "wow what editor is that?!" around my desk at work these days. I'm going to be brief about this: its vim 7.

Here it basically is (I removed some references to custom python modules which I won't places here.)


"""                                                                                      
""" Indentation settings                  
"""                                       
""" Since I use python, I prefer using spaces
"""     Yes this makes the code bigger    
"""     However, if you use: set list     
"""     You can visually identify where a \t or "^I" came in
"""
set tabstop=4       "Tabs at 4 spaces     
set shiftwidth=4    "Not sure             
set autoindent      "Auto indent helps    
set expandtab       "Expand tabs to spaces

"""
""" Visual settings
"""     
"""     These settings are the "WOW" factor
"""     syn on is just syntax
"""     cursorline gives you a horizonal line
"""     cursorcolumn gives you a vertical line
"""     Together they give you a crosshair,
"""         which means you cant miss your cursor
"""         even if your screen is 30" big
"""
syn on              " syntax
set cursorline      " Horizontal bar
set cursorcolumn    " Vertical bar
set nu              " Line numbers
set ruler           " Position

"""
""" Search and semi-word completion settings
"""     
"""     Searching in code can be really easy with the right settings
"""
set ignorecase      "Case insensitive search
set infercase       "This is for autocompletion (ctrl-p or ctrl-n)
set incsearch       "Emacs like incremental search, search as you type
set hlsearch        "Highlight the search pattern
" I like a green search
highlight Search ctermfg=Black ctermbg=Green cterm=NONE


"""
""" General and misc
"""
set autoread        "Automaticall check if the file was modified
set history=100     "Cmd history (:,:)
set novisualbell    "NO BELL, I use putty/screen combo, visual bell HURTS ME
set bs=0            "Backspace set to 0, This means I wont erase what I didn't write

"""
""" Tabs key bindings
""" 
""" New tab with ctrl+y (I use ctags, ctrl+t is reserved for that)
"""     Normal mode ONLY
nmap :tabnew                    
""" New tab with ctrl+y (I use ctags, ctrl+t is reserved for that)
"""     Insert mode (Escapes out and types in tabnew)
imap :tabnew
""" Normal mode only, YOU dont want this in insert mode
""" You'll never use capital X or Z again
nmap X :tabnext
nmap Z :tabprev                       

"""
"""                                       
""" Basic vim Fix/Canonical functions     
"""
"""                                       
function! GetFixCanonicalToReadable()     
python << EOF
import vim
import sys                                
print sys.argv                            
print len(vim.current.buffer)             
for each in vim.current.line.split( "^A" ):
    each = each.strip()
    if not each:
        continue
    print each.split("=")
EOF
endfunction

comm! -nargs=? -bang PP call GetFixCanonicalToReadable()

Friday, August 27, 2010

Slightly off topic: .screenrc for ... screen ofcourse

  I've been using screen for only like 5 years now, not even really. I'm very into the tools I use and carving them to my tastes. So... I often find myself looking for new ideas for my .screenrc file. Here are some links to places that have tons of .screenrc ideas. Also, my .screenrc is posted here.
#Being xeio .screenrc


#change the hardstatus settings to give an window list at the bottom of the                         
#screen, with the time and date and with the current window highlighted
hardstatus alwayslastline

bind ' ' windowlist -b

defscrollback 2000

#caption always "%{= kc}%H (system load: %l)%-21=%{= .m}%D %d.%m.%Y %0c"
#caption always "%{= kw}%?%-Lw%?%{+b kw}%n*%t%f %?(%u)%?%{= kw}%?%+Lw%?"
#caption always "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
#caption always "%?%F%{.bW}%?%3n %t%? [%h]%?"
#caption always "%{rk}%H %{gk}%c %{yk}%M%d %{wk}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%?"
#caption always "%{kG}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{kG}%?%+Lw%?"
#caption always "%=%c:%s %Y-%m-%d"
#caption always "%?%{+b kw}%-Lw%?%{yK}%n*%f %t%?(%u)%?%?%{wk}%+Lw%? %{gk}%=%c %{yk}%d/%M/%Y"
#caption always "%{wk}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{wk}%?%+Lw%?"

#11 classic
#hardstatus alwayslastline "%?%{wk}%-Lw%?%{yK}%n*%f %t%?(%u)%?%?%{wk}%+Lw%? %{gk}%=%c %{yk}%d/%M/%Y"
#hardstatus alwayslastline "%{+b kr}[ %H ] %{kw} Load: %l %-=%  %{kb} %c:%s  %d.%m.%Y "
#hardstatus alwayslastline "%{+b kr}[ %H ] %{ky} Load: %l %-=%{kb} %c  %d.%m.%Y"

# usual red
#hardstatus string '%{= rK}%-Lw%{= KW}%30>%n%f* %t%{= rK}%+Lw%< %{= kG}%-=%D %d %M %Y %c:%s%{-}'
hardstatus string '%{= kg}%-Lw%{= KW}%30>%n%f* %t%{= kg}%+Lw%< %{= kg}%-=%D %d %M %Y %c:%s%{-}'


bind = resize =
bind + resize +1
bind - resize -1
bind _ resize max


#End


Utah.edu ( The screen manual )
http://www.cs.utah.edu/dept/old/texinfo/screen/screen.html



Linux Journal (Explains some powerful uses for screen)
http://www.linuxjournal.com/article/6340

Guckes.net ( The holy grail on .screenrc files )
http://www.guckes.net/Setup/screenrc



blog.eater.org 
http://blog.eater.org/2008/12/new-screenrc-hardstatus-string.html

Softpanorama (.screenrc)
http://www.softpanorama.org/Utilities/Screen/screenrc_examples.shtml

Archlinux (Screenshots and .screenrc files!)
https://bbs.archlinux.org/viewtopic.php?id=55618

UAlberta.ca (Setting up titles in screen, NOT VERIFIED BY ME)
http://sunsite.ualberta.ca/Documentation/Gnu/screen-3.9.4/html_node/screen_50.html

Slaptijack.com (Mutltiple users on ONE screen, shared terminal for true paired programming)
http://slaptijack.com/system-administration/multiuser-gnu-screen-long-distance-teaching-tool/

Saturday, August 7, 2010

Need to do some shelves...

With a new apartment, you have nothing.

Here's a link to some shelving ideas.
http://notbeige.wordpress.com/2009/04/29/6-great-diy-shelving-tutorials/