Clark – Death Peak

PHP Encoding issues

Had an issue we were running into regarding encoding while trying to render content that had been parsed by DOMDocument()

utf 8 – Getting ’ instead of an apostrophe(') in PHP – Stack Overflow

Solution:
echo mb_convert_encoding($content,"HTML-ENTITIES","UTF-8");

mb_convert_encoding is your friend 🙂

Hong Kong

40-twilight-flight

39-panorama

38-slow

37-super-hero-figure

36-oldies

35-buildings-graffiti

34-bruce-lee

33-adam-rowan

32-fireworks

31-vodka-kirin

30-baby-in-car

29-espresso

28-gillian-fortress

27-st-pauls-ruins

26-macau-old-disctrict

25-grand-lisboa

24-macau-terminal-pattern

23-mind-your-head

22-gillian

21-julia-gillian-monkies

20-new-year-lights

19-yo-mama

18-spiral-staircase

17-diamond-manhole

16-art-seat

15-eye-exam

14-fever

12-subway-floor

11-bonsai

10-quarry-bay-apartments

09-projects

08-crustaceans

07-neon-art

06-seat-top

05-ziggy-yarndust

04-bridge-lines

03-wing-islands

02-paper-cup

01-pi-water

Site Layout sketch w/ Paper

  

Forest Hills

One of the best bits in comedy…

Cabin Trip, pt. 1

      

LIC

Mobile Browser User Agents

We’ve recently run into a lot of issues with the In-App Mobile Browsers on Facebook and Twitter, so I thought I’d publish the User Agents for these browsers to help others looking for the same information.

Particularly, the issue we were experiencing was sites that were linked to from Facebook and Twitter, which had links in a post that were supposed to open in a new window with target=”_blank” were just leading to “about:blank” pages and not redirecting. Based on the user agent we’ve changed the links to target="_self", which I know is bad practice but until we notify all the editors to stop using target="_blank" I don’t see an easier workaround.

Safari

Mozilla/5.0 (iPhone; CPU iPhone OS 8_1_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B466 Safari/600.1.4

Twitter

Mozilla/5.0 (iPhone; CPU iPhone OS 8_1_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12B466

Facebook

Mozilla/5.0 (iPhone; CPU iPhone OS 8_1_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12B466 [FBAN/FBIOS;FBAV/23.0.0.7.11;FBBV/6551639;FBDV/iPhone5,1;FBMD/iPhone;FBSN/iPhone OS;FBSV/8.1.3;FBSS/2; FBCR/AT&T;FBID/phone;FBLC/en_US;FBOP/5]

https://gist.github.com/NerdyDillinger/5e1083f65b8a3c406719

Coney Island

Today was the Puerto Rican day parade. Went to Coney Island.