i always get confused of the order but the command to build symbolic links is:
ln -s source_file myfile
Author: Greg Tam
Mac OSX Mavericks 10.9
creating a USB install disk is super easy now.
1. Download the Mavericks installer
2. it should be located /Applications/Install\ OS\ X\ Mavericks.app
3. Open up terminal and navigate into the Resources section of the app
/Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources
4. Run the following command:
sudo ./createinstallmedia --volume /Volumes/ToFormat --applicationpath /Applications/Install\ OS\ X\ Mavericks.app
* notice that we named our volume “ToFormat”, you must insert the name of the volume you want to reformat.
** there are some other instructions on the internet, which require you to search for the base system.dmg, but the issue with that method is that it does not automatically create a recovery hd partition, so that features like file vault are not available.
php 1&1 microframeworks
When attempting to use php micro frameworks on 1and1, the key is having the correct .htaccess file
if should look like this:
Options +FollowSymLinks -MultiViews
AddType x-mapp-php6 .php
AddHandler x-mapp-php6 .php
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]
Javascript Frameworks Vs
Stevens Anderson JS Comparisons
was written in august 2012, it is now 2014 – it would be nice to see how the javascript frameworks compare. if we go with the premise that github is a good indicator of community, here are the new numbers:
Name | Follows | Forks |
---|---|---|
AngularJs | 18,982 | 5,493 |
Marionette | 4,319 | 739 |
EmberJs | 9,112 | 1,910 |
Knockout | 4,514 | 743 |
Meteor | 11,073 | 1,498 |
google trends does a good job
Google Trends
OutOfMemory
If you are having concurrency issues as a result of high loads, something to check if the JVM is complaining about:
java.lang.OutOfMemoryError : unable to create new native Thread
$ ps -eLF| grep -c java
$ ulimit -u
Citrix IE 8 JS Minify
When you hear the words IE 8 or any derivative, you shudder at the thought of having to hack away at nice standards compliant code to get it to work. Unfortunately in an enterprise setting, you can’t just ignore the IE users. Microsoft has in-grained themselves in the big enterprises and IE is one of those staple products that you must support.
Today we (some other colleagues) learned that IE 8 running on Citrix, Windows Server 2003, does not like minified javascript. We had instances of it crashing/disconnecting the browser/session when attempting to invoke it inside an ExtJs application. Basically the ExtJs application has a hidden tab, that hits a standalone site, the standalone site contains uglify compressed code, whether its a processing limitation or a strictly IE behavior, we are unsure. we just know that if we don’t minify the code, it no longer crashes.
So beware of minify/compress on javascript if you wish to support IE 8. Also, if you are using grunt or uglify, make sure to turn on es3:true.
Git Macro and Auto Completion
This lil hack really helps when using Git cli. Basically the script will auto-detect if you are in a git repository, display the current branch as well as different colors depending on the status.
You will need to put this in your .bash_profile (these are Mac OS X specific instructions, not sure how to do it on a Windows box, on a *nix box- you should be able to use .bashrc)
source ~/.git-completion.sh
source ~/.git-prompt.sh
GIT_PS1_SHOWDIRTYSTATE=1
GIT_PS1_SHOWCOLORHINTS=1
PROMPT_COMMAND='__git_ps1 "\u@\h:\w" "\\\$ "'
You will need to copy git-completion.bash to .git-completion.sh and git-prompt.sh to .git-prompt.sh in your home directory.
You can get it here
Macbook Pro 2012
The other day I spilled naked juice on my macbook pro, I immediately shut it off, and dried it out. I quickly wiped it off with some isopropyl alcohol and let it dry overnight upside down. I waited about 2 days.
I took the laptop apart, looking for any signs of liquid damage, luckily there was none. It did smell fruity tho. I even checked the logic board to see if there were any issues. None.
So I put the laptop back together and pressed the power button. NOTHING. I did a quick search online, found iFixIt…I’ve known about them for a long time, and usually use their site as a way to see the basic steps of how to disassemble. Looked around and found that its possible that only the keyboard shorts, and if that happens then the power button wont work.
There is a way to jump the keyboard so that the laptop will turn on. On the keyboard connector, near the middle there are 2 pins that you just have to jump together, I used my screwdriver to do it. And miraculously my laptop turned on. Awesome. My trackpad was still working also.
I looked further on the iFixIt site, and they only sell the full upper assembly for $299, and not the individual keyboard, I don’t need the full upper assembly because only the keyboard is shorted, not the trackpad. So I looked online and found some keyboard replacements for $30. I went with PT Supermarket, the website looks kinda sketch, but we’ll see how it goes.
Another site that I found pretty useful was:
EveryMac – you can search for your computer model by serial number. This is how I verified that the keyboard model would work in my laptop.
My macbook pro was a MacBook Pro “Core 2 Duo” 2.26 13″ (SD/FW) 2.26 GHz Core 2 Duo (P8400)
and the Keyboard (A1278) matches.
iOS 6.1.3 iPhone 4s Battery Issues
After the upgrade to iOS 6.1.3, I experienced massive degradation on the battery performance; to a point where the phone was unusable. I’ve tried many things, from turning off gps locations, turning off wifi, setting it in airplane mode, removing access to calendars, turning off iCloud related functionality, and closing out all the apps.
Temporarily Fixed.
I think I found a decent solution. It seems that iOS 6.1.3 somehow breaks the push and exchange process, by turning off push on exchange accounts, my phone seems to work normally again. the only drawback is now when getting email, you have to load up mail for it to go fetch.
Things to Eat and Do in NYC by Region
I’ve attempted to compile a decent mix between, good places to go and the somewhat “must do” things on a trip to the big apple. New York is the best state i’ve ever lived in and as such i wanted to give it the culinary respect it deserves.
* denotes a McCoy recommendation. Peter John Martin McCoy is my favorite person, and as i’ve said 100s of times he’s a quasi Asian. His sushi making abilities are second to no one except maybe Jiro
//———————
// Upper West Side
//———————
not much to do up here
Flor de Mayo – decent peruvian, try the chicken
484 Amsterdam Ave
New York, NY 10024
(212) 787-3388
//———————
// Upper East Side
//———————
MET (touristy) – i prefer the MoMA
1000 5th Ave
New York, NY 10028
(212) 535-7710
Guggenheim (touristy) – its smaller than what it looks like in movies
1071 Fifth Avenue
New York, NY 10128
(212) 423-3500
//———————
// Flatiron
//———————
ABC Kitchen – american/french food
35 E 18th St
New York, NY 10003
(212) 475-5829
Gramercy Tavern – decent american food
42 E 20th St
New York, NY 10003
(212) 477-0777
Eataly – lots of italian food, upstairs is a beer garden
200 5th Ave
New York, NY 10010
(646) 398-5100
Shake Shack – usually compared to In n’ Out burgers, its different, more gourmet; multiple locations
E 23rd St & Madison Ave
New York, NY 10010
(212) 889-6600
//———————
// Midtown -ish
//———————
Yakitori Totto – japanese, awesome skewers
251 W 55th St
New York, NY 10019
(212) 245-4555
MoMA (touristy)
11 W 53rd St
New York, NY 10019
(212) 708-9400
Times Square (touristy) – see all the lights and stuff, better when dark
Broadway and 42nd St
New York, NY 10036
Grand Central Terminal (touristy) – check out the whispering archway, iconic terminal
42nd St
New York, NY 10017
(212) 340-2583
Empire State Building(touristy) – wasteful to go up, unless you’re into that
350 5th Ave
New York, NY 10118
(212) 736-3100
Kyotofu – nice dessert place, tofu centric
705 9th Ave
New York, NY 10019
(212) 974-6012
//———————
// East Village
//———————
Ippudo – japanese, best ramen, soup base is good, noodles are not so great; their pork bun thing is ok.
65 4th Ave
New York, NY 10003
(212) 388-0088
Artichoke Basille – like eating pizza with a thick clam chowder on top
328 E 14th St
New York, NY 10003
(212) 228-2004
*Pommes Frites – belgian fries, lots of sauces, better when drunk
123 2nd Ave
New York, NY 10003
(212) 674-1234
Chickalicious – dessert stuffs
203 E 10th St
New York, NY 10003
(212) 995-9511
Sake Bar Decibel – nice japanese feel, sake bar
240 E 9th St
New York, NY 10003
(212) 979-2733
//———————
// Lower East Side
//———————
Il Labratorio Del Gelato – best sorbet every, wide variety of interesting sorbet, their gelato is ok
188 Ludlow St
New York, NY 10002
(212) 343-9922
Katz (touristy) – known for pastrami
205 E Houston St
New York, NY 10002
(212) 254-2246
Elsa – one of my favorite bars, try the black book
217 E 3rd St
New York, NY 10009
(917) 882-7395
*Top Hops – awesome beer place, has all sorts of beers in refrigerators
94 Orchard St
New York, NY 10002
(212) 254-4677
WD-50 – very interesting one of those molecular gastronomy places
50 Clinton St
New York, NY 10002
(212) 477-2900
//———————
// West Village -ish
//———————
Minetta Tavern – best burger ever ($25), its called black label
113 Macdougal St
New York, NY 10012
(212) 475-3850
Babbo – Mario Batali restaurant
110 Waverly Pl
New York, NY 10011
(212) 777-0303
/———————
// Lower Manhattan
//———————
*Public – nice brunch place
210 Elizabeth St
New York, NY 10012
(212) 343-7011
/———————
// Brooklyn
//———————
Grimaldi’s (touristy) – pretty good pizza, there are multiple locations
1 Front St
Brooklyn, NY 11201
(718) 858-4300
Brooklyn Bridge (touristy) – you can walk across, its nice
Brooklyn, NY 11201
Brooklyn Brewery – avg priced beer
79 N 11th St
Brooklyn, NY 11211
(718) 486-7422
Peter Luger – really big steak, has a mafia-like feel
178 Broadway
Brooklyn, NY 11211
(718) 387-7400
/———————
// Other Touristy Stuff
//———————
Battery Park – see the statue of liberty from here
State St & Battery Pl
New York, NY 10079
World Trade Center – the waterfalls are nice, need to make reservations
http://www.911memorial.org/
1 Albany St
New York, NY 10007
(212) 312-8800
SoHo – South of Houston, where all the shopping is done, spend all day here
5th Ave – more shopping, more expensive stores, the glass apple store
767 5th Ave
New York, NY 10153
(212) 336-1440
Central Park – its big, you can walk around
/———————
// Cautions
//———————
Momofuku – there are different ones, the Ko is probably worth going to, the regular one, not so much
Any restaurant mentioned in a movie – they all suck (ex: Serendipity, Cafe Lalo)
Baked by Melissa – horrible mini cupcakes
Try not to eat in Times Square, super touristy
Circle Line (boat tour) – waste of time
Gray’s Papaya – just sweet sauce on a tiny hot dog
Crumbs,Magnolia’s – pale in comparison to Sprinkles cupcakes
Continental – cheap drinks, 5 shots for $10, watered down, super young crowd
/———————
// Notes
//———————
* Starbucks – are your friend, theres almost one every corner; use them for bathrooms
* Public transportation – 3 or more visitors, cheaper to take taxi
* smart phone users should download NYCMate – for a compilation of subway, transportation maps
Michelin Stars
Three Stars:
Chef’s Table at Brooklyn Fare
Daniel
Eleven Madison Park
Jean Georges
Le Bernardin
Masa
Per Se
Two Stars:
Atera
Corton
Gilt
Gordon Ramsay at the London
Marea
Momofuku Ko
Soto
One Star:
Adour
Ai Fiori
Aldea
Annisa
Aquavit
Aureole
A Voce Columbus
A Voce Madison
Blanca
Blue Hill
Bouley
The Breslin
Brushstroke
Cafe Boulud
Café China
Casa Mono
Danji
Danny Brown Wine Bar & Kitchen
Del Posto
Dovetail
Dressler
15 East
Gotham Bar and Grill
Gramercy Tavern
Hakkasan
Jewel Bako
Jungsik
Junoon
Kajitsu
Kyo Ya
Lan Sheng
Minetta Tavern
The Modern
The Nomad
Oceana
Peter Luger
Picholine
Public
The River Cafe
Rosanjin
Rouge Tomate
Saul
Seasonal
Spotted Pig
Sushi Azabu
Sushi of Gari
Tamarind Tribeca
Tori Shin
Torrisi Italian Specialties
Tulsi
Wallse
Wd~50