tomo's blog

@tomosaigon Twitter Archive - 9-2012

Submitted by tomo on October 5, 2012 - 5:26pm
9/30 10:49 TIL about Facebook for SIM from an Argentine carrier, a FB "app" for dumbphones on a SIM card that only uses SMS: http://goo.gl/qIJYW #
9/30 10:42 @PiiSiiD Free or cheap license for disciples, but sold like multi-level marketing scheme :) Or freemium model. #
9/30 3:05 What if the Buddha had patented Buddhism? #
9/30 1:28 The next digital divide: those who have access to 3D printers and those who don't #
9/29 13:07 RT @wired: 48-Hour Adventure Time 'Jam' Produces 100 Weird, Weird Games http://bit.ly/PfapzU #
9/29 11:25 In case your research requires 10,000 cat images, including facial features: http://137.189.35.203/WebUI/CatDatabase/catData.html #
9/29 10:17 @free_thinker Yup, would need some new architecture outside of Javascript. But Dalvik is open source, so why not? Like Jolla. #
9/29 8:42 Wonder if Firefox OS Boot2Gecko should support running Android apps on top of HTML5/JS apps. We don't need more ghost town marketplaces #
9/29 4:03 Have duplicate contacts clogging your Android phone? Go to http://contacts.google.com (nice contact manager), More > Find & merge duplicates. Sync #
9/28 7:24 @connyb Hey Conny, I hear you work for Cambodian ISPs? Can you tell me more about it, just curious? Was nice meeting you at BarCampPP #
9/27 12:57 @patrizio_bui Are you still at ERC? #
9/27 10:56 Luck: (both good and bad) the sum of (a random % * # of opportunities * your own ability to take advantage of (or be affected by) them) #
9/27 8:42 Wish somebody would just ship the Internet on CD-ROMs to Vietnam. On a giant boat or something. #
9/27 7:32 @jobnomade Cool, a lot of startups. Let me know when code is more than a PHP object dump :D P.S. That 4sq API is nearly deprecated.. #
9/27 7:29 @tropixblue Yes. For motorbikes which are >90% of the people we must only use the smallest lane which is also used for car parking #
9/27 4:57 Vietnam has a thriving Facebook fan buying black market. If FB's fake user deleting doesn't crush some brands here many more fakes must go. #
9/27 4:31 A totally independent tourist police is needed. RT @VNNetBridge: Police declare war against crime in Saigon http://bit.ly/VL6oYN vietnam #
9/27 4:24 What is the proper, pragmatic, locale-appropriate (Vietnam, after all) response to a car driving in the wrong lane hitting you? voluat #
9/27 2:03 Maybe represent.vn can auto-aggregate Tech Startups already tagged on Foursquare (just found out it's a category!) cc @vutrinhan #
9/26 9:17 Banh dau xanh: Cookies made from sugar, mung bean, and bacon! Thus proving that bacon makes anything taste better. QED #
9/26 6:50 @lfopw Indeed, although same can be said for Vietnam: I see Bentleys, Royces daily. But a lot of beater Toyotas in Cambodia too. Ironic, eh? #
9/26 6:40 @john_weeks Enjoyed your webcomics session at BarCampPP. And thanks for the free print comics! Wonder if webcomics could be next Instagram #
9/26 6:35 @nguyenhimself When speaking of multiple iPhones the correct mass noun is herd. A herd of iPhone 5. #
9/26 5:21 @nostarwhere @ctcrowell Metro Detroit is livable enough for US. Research hospitals, international connections & trade, overall low crime, &c #
9/26 3:59 "It's like a war, because everybody seems to become very selfish once they are behind the wheel of a car" - on traffic in Sao Paolo #
9/26 1:10 @jon7b @aminhdo Difference is arrangement (& energy). Proteins that've broken down. Organs no longer self-repairing. What's this about 140g? #
9/26 0:34 @rockportrait I've been 4x and haven't seen any of those. I go for functional reasons, e.g. visa run or BarCamp. Otherwise, visit friends. #
9/25 4:45 Phnom Penh to Saigon in nearly 5 hrs flat. Took the 7am Sapaco bus, only Cambodians and Vietnamese. Breezed through immigration. #
9/24 9:07 @aminhdo There is no soul. We are just the sum emerging from our atoms which can be replaced. 3D human printing as easy as teleportation. #
9/24 8:42 SUVs are overwhelming Phnom Penh's streets due to a tax highly favoring large trucks over small cars. But cars aplenty despite high taxes. #
9/24 8:35 @dnghia Although I've heard others say the same thing, I've had dreams where I thought I was reading, although it could've been an illusion #
9/24 4:42 @playingwithsid Ouch. My tuk tuk just finally found Sumatra Indonesian restaurant #
9/24 4:14 @playingwithsid @Kounila @anirudhsbh Trying to find it now.... Do you know an address? #
9/24 3:54 @playingwithsid @anirudhsbh Somehow I slept for nearly 16 hours but now I'm back alive. #
9/23 2:54 2nd day of BarCampPP: out of water, out of coffee, out of wifi, out of sessions! Lightning talks, anyone? #
9/23 2:20 Making Webcomics at BarCamp Phnom Penh barcamppp http://instagr.am/p/P5wn-nMXpa/ #
9/23 2:10 Quickly drawing webcomics to tell stories about life in Cambodia, not make money, at BarCampPP. Free issues of QuickDRAW in Room B12! #
9/22 10:34 A consolation for any friends stuck on the side of the road due to the update: The Amazing iOS 6 Maps: http://theamazingios6maps.tumblr.com/ #
9/22 5:28 BarCampPP Topic board (one of two boards which are out of sync with each other). Talking Drupal at 3 http://instagr.am/p/P3hWQSsXqf/ #
9/22 3:41 Firefox phone not yet available (holding demo hardware now) but can run GAIA in Firefox nightlies, or use desktop emulator B2G @Boot2Gecko #
9/22 3:20 Dilemma: To learn Java for Android development or wait for Firefox OS + Web APIs for JavaScript/HTML5 mobile app development boottogecko #
9/22 2:01 Drupal experts panel at 3pm w/ @svenbergryen @viirak and myself BarCampPP (wish wifi worked here for presenting!) #
9/22 0:48 Barcamp Phnom Penh is about to begin. barcamppp http://instagr.am/p/P3BTbMMXlO/ #
9/21 11:40 There are plans for the US to fund 5 BarCamps around Cambodia each year, with hundreds of people bussed around the country. #
9/21 0:29 Approaching the Cambodian border at Bavet/Moc Bai en route to BarCampPP. No more Internet until Phnom Penh. #
9/21 0:07 @TylerWatts Is that your hood? I was just passing through so didn't try. I will back you financially if you want to give it a go. #
9/20 23:53 @lfopw Haha, this was actual heavy bass beats, rather than super crackly muffled distorted treble. banhchung banhgio #
9/20 23:48 @caffeinatedmatt Modern medicine's cure for opiate addiction: more addictive opiates. But cocaine, at least, is a hell of a drug #
9/20 23:26 "App Rice": Is it rice or an app? Either way it's only $1 at the app rice store onlyinvietnam #
9/20 8:24 @lfopw You went to some actual agents who said they couldn't do Vietnam visas but your hotel had the hookup? Last time agent took 4+ days #
9/20 7:52 If it wasn't 3 PM and Vietnam, I'd swear it was 3 AM with a Detroit warehouse rave pumping bass through the walls a few doors down. wishful #
9/20 7:00 @CotterVN What is your idea? :-) Not sure either supply or demand can be found or created cheaply. And better uses for marketing $$ exist. #
9/20 5:40 Vietnamese cybercrime: hacked accts send backdoor s/w over Yahoo chat, identitytheft to social engineer phone cards http://bit.ly/RAmLTQ #
9/20 5:32 TIL Some people drink 18+ cups of coffee a day. A decent cocaine habit would be cheaper, more effective. #
9/20 4:29 @ducthuan89dl Thanks for the Metfone rec. Is that the one owned by Vietnamese telcos? ;-) #
9/20 4:25 Going to Phnom Penh tomorrow morning but need to find a good travel agent to arrange a Vietnamese visa as soon as I get there #
9/20 4:04 @CotterVN 2 devs, 2 girls. My cousin tried already and struggled for years. 2-sided market problem. Still unproven demand. Your thoughts? #
9/20 4:01 @lfopw Down in Saigon homes range from cheap up to Bay Area but can only sell in the lower (<$100k) end now. Foreigners buying in Nha Trang? #
9/20 3:40 "Science & technology identified as key drivers of economic restructure in Viet Nam, but Gov't policies fail to attract young researchers" #
9/20 3:01 Do you think humans will ever walk on the sun? Yahoo Answers. http://imgur.com/ZCa6N crowdsourcing #
9/20 3:00 @CotterVN Sounds like Zulik. I mentored them. V. similar to another team, who was exactly a clone of my cousin's old (funded) @sweemo #
9/20 2:35 @CotterVN Which StartupWeekend team/product is this? #
9/19 9:14 @ChrisGNguyen Is that understood as correct use of the word? I could guess the meaning. OTOH "hoist" comes to mind. #
9/19 8:42 Influential Mexican anti-corruption masked blogger-hero missing, presumed kidnapped. http://goo.gl/BkH2u DondeEstaRuy5algado #
9/19 8:10 @lfopw Nha Trang specifically? In Saigon/Hanoi the real estate market is frozen. Can't get credit. Housing prices plummeting. Rates still hi #
9/19 7:35 @lfopw I guess foreign reserves are healthier than before, they can afford to hold for some time. Weak currency = more inflation = bad news #
9/19 7:34 @lfopw Up to the VN govt since exchange rate is controlled. Look for arbitrage in black market gold price signaling imminent VND drop. #
9/19 5:43 @lfopw I'm in the same boat, benefit from stronger dollar! But during years of strong growth, VND still lost 10s of % vs USD. Now, stable. #
9/19 3:18 Friends in Cambodia: can I get a cheap prepaid SIM w/ 3G (or GPRS) in Phnom Penh? If so any recommended phone companies? #
9/19 2:44 nationbrand RT @TheEconomist: Confidence in the Vietnamese economy, especially among Western investors, is tumbling http://econ.st/PPb7rF #
9/18 8:15 @chamada Wow! That's a lot of burnt DVDs sold! Could the source be fluffing numbers to make movie pirates look more criminal? #
9/18 5:27 @jon7b I started reading about autotomy and fell into the Wikipedia rabbit hole and found this cool article: http://en.wikipedia.org/wiki/Antipredator_adaptation #
9/17 11:40 @jobnomade @nguyenhimself I only captured 3 mm of tail which fell right off. Geckos know when to cut their losses. Good leaders. #
9/17 11:19 RT @ricowyder: What's at Stake in China-Japan Spat: $345 Billion to Start - China Real Time Report - WSJ http://on.wsj.com/SsXefi via @WSJ #
9/17 10:11 Just for fun I grabbed a gecko's tail and it fell off. He had run and hid. But wrongly estimated how long his tail was. So I grabbed it. #
9/17 2:02 RT @shilkytouch: Panasonic closes 3 factories in China due to anti-Japan demonstrators yelling "Japanese go home!" http://bit.ly/QdFyos #
9/17 1:57 "Japanese guests not welcome at hotel" RT @chinageeks: NEW POST: China’s Anti-Japan Riots Are State-Sponsored. Period. http://chinageeks.org/2012/09/chinas-anti-japan-riots-are-state-sponsored-period/ #
9/16 15:54 @ThangQ Does mail often get lost w/o using the "premium" class option? Waiting for mail from HCMC to be delivered to Hanoi... #
9/16 15:52 @ThangQ It's both fun and tiring to work with 13 teams, but even tougher for them b/c they build a product/business in 1 or 2 days! stress #
9/16 10:35 "Pitchfire" 2-min pitch offs now at Startup Weekend Ho Chi Minh showcase at the Intercontinental Hotel. #$$$ notramen #
9/16 1:33 2nd day of advising fresh product idea development teams at Startup Weekend Ho Chi Minh. Of 13 teams, 3 about to be eliminated. #
9/15 2:36 @Anita_Tran I recommend Catch. com app over Springpad which is slow. Catch can create new notes quickly, not waiting for slow internet #
9/14 10:35 @dynamicscholar Never lived anywhere w/o those + NatGeo, AXN, Animal Planet. No Cartoon Network? No Adventure Time? :( I do hate that woman. #
9/14 7:45 @dynamicscholar HBO subtitled in tieng Viet or dubbed? If the latter, eww wtf. You don't get Star, Cinemax (not Skinemax), other foreign ch? #
9/14 7:22 Anyone know how reliable the Vietnam domestic postal system is? Obviously, not for shipping items with any resale value. #
9/14 6:23 If you read actionable gmails on your phone then lose track of them despite starring them - just mark them unread. #
9/14 0:15 RT @wired: Vietnam threatens 'serious punishment' for bloggers writing about corruption. http://bit.ly/QIWaH9 via @AJstream #
9/12 14:57 @dynamicscholar This was at a cafe for foreigners downtown so they might have had satellite. You don't have ESPN, HBO, Discovery, etc.? #
9/12 14:52 @PamMcElwee Foot pedals aren't popular thus can be pricey. A $5 2nd USB mouse on the floor w/ padding can also do the trick. #
9/12 6:37 If you turn on CNN it looks like the entire world is on fire #
9/12 3:01 TC: Matt Tran / YC-backed Boosted Boards' electric 15 lb wireless-remote Kickstartered longboard http://tcrn.ch/PfgiNN #
9/12 2:51 @PamMcElwee Repetitive stress injury or carpal tunnel? Try a trackpad on the left, foot pedal to click on the floor. Mouse is frustrating. #
9/11 11:49 @nguyenhimself @CotterVN @aminhdo There's no way yet for random people to upload files to http://barcampsaigon.org. U/L to SlideShare and tag it #
9/11 8:45 Ready to call BarCampSaigon at (a record) 694 official participants not including organizers, volunteers, and "special circumstances" #
9/11 6:33 Anyone who wants to study various failure modes of Internet networks should come to Vietnam. Ping, traceroute don't tell the whole story. #
9/11 1:51 @aminhdo Can I really though? If so order me a new and improved brain, but keep most memories intact. And enlightenment already installed. #
9/11 1:42 @free_thinker I have one server on US east coast, latency from here sucks, when I'm personally using. Looking for closer VPS providers #
9/11 1:34 @aminhdo Nice! I experimented w/ that (stop eating early) independently and thought it helped, but not enough by itself. #
9/10 16:43 Almost ran over a giant cockroach crossing my tiny alley. Wait, no, that was a small crab. saigoncitylife #
9/10 7:16 @free_thinker Cool, which Linode data center did you pick? Not Tokyo? Wish they'd open one in Singapore #
9/10 3:06 Record turnout for BarcampSaigon 2012. Unfortunately, the thankless job of organizing behind the scenes is still far from finished! #
9/10 2:53 @CobraTran Empty tables? I've eaten pizza there many times and always needed a reservation before to get a table. Many say best pizza here. #
9/9 5:47 Frank Nguyen from Microsoft Vietnam introducing Windows 8 and an upcoming hackathon at BarcampSaigon #
9/9 2:03 barcampsaigon 2012 Schedule of topics http://goo.gl/VXe9L #
9/8 12:43 There is a very impromptu BarcampSaigon pre party going on at Saigon Xua va Nay, 33 Nguyen Trung Truc at Ly Tu Trong #
9/7 10:03 I wouldn't be surprised if we broke 1500 registrations for barcampsaigon this Sunday, by far a new record #
9/6 3:52 @benjaminbland @nostarwhere Under what definition is Vietnam good at electricity cabling? ;) Internet breaks due to single points of failure #
9/6 1:35 Anyone in Saigon know who can print business cards and cut rounded corners (preferably any size, any degree of roundness)? #
9/5 11:11 Nessus network vulnerability security scanner maker Tenable raises $50m Series A from Accel Ventures: http://tcrn.ch/Q4ILH6 by @anthonyha #
9/5 6:04 I wonder if publicly traded companies crowdsource business strategy by announcing plans and seeing how it affects stock price #
9/5 4:07 @CotterVN Topics are always decided on the morning of the event. People prepare ahead, of course, but no scheduling happens til day of. #
9/5 3:34 Having more frequent nightmares about BarCamp Saigon as the date approaches. This Sunday: http://barcampsaigon.org #
9/4 19:01 RT @sonnylebythebay: McDonald's opens its first vegetarian, meatless restaurant in India http://bbc.in/OKQhY7 // ht @atommetc health #
9/4 15:40 10 most popular sites by Opera Mini users in Vietnam: Google, Facebook, Dantri, YouTube, 24h, Vnexpress, Wap.vn, Baomoi, Vietbao, Vn-zoom #
9/4 9:49 @aminhdo @TylerWatts What we need is to crowdsource a 1000+ page tome (or two) entitled "You Didn't Build That" #
9/4 9:47 @nguyenhimself @TylerWatts @aminhdo The government banned Hunger Games. Would they allow a strongly anti-Communist writer to publish here? #
9/4 8:49 @aminhdo Sadly, I've noticed a recent surge of young Asians "discovering" Ayn Rand. Youth with no context easily fall under her spell. #
9/4 6:23 @Anita_Tran LOL, that's the best idea I've heard today. Another friend keeps his key on a long chain and wraps it around his mirror. #
9/4 6:22 @CotterVN Huawei G7300 is rated for 3 hours+ talk time, 200h standby. Don't expect the best battery technology for < $100 :-) android #
9/4 6:18 @rockportrait Google integration's handy when switching phones, sharing data w/ PC. That phone's screen's really cheap though. #
9/4 5:51 @aminhdo @dynamicscholar It's a misconception that enlightened people aren't on twitter? @MuJuShinKyo #
9/4 5:32 It finally happened. My motorbike's key fell out somewhere on the road with it still running, arrived with no key to turn off the bike #
9/4 2:30 Looks like Huawei G7300 is sub-$100 now. No 3G, and only 40 MB internal memory but bigger screen than Samsung S5300 and 2 sims. Android #
9/3 5:51 @mengwong Wouldn't many law firms do this for cash? #
9/3 5:49 @Vietnam720 Congratulations Ben, hope you will be able to retweet that in 5 years :-) #
9/3 4:56 More like Vietnamese embassies organize celebrations abroad RT @tuoitrenewsvn: Vietnam’s National Day celebrated abroad http://bit.ly/T8y7Uz #
9/2 13:39 @dynamicscholar Yup. When the economy is growing they and the people let things slide. #
9/2 13:30 @CotterVN Managed to work a badly hand-drawn chart made in Pixlr into it. Not the recommended app for that! Somewhat non-intuitive too. #
9/2 13:19 @chrisfharvey Haha, challenge accepted. BS'd for 20min with a browser, scribbles in a notebook, some websites preloaded, no presentation. #
9/2 8:51 Freestyle bmx compo, Saigon Outcast. Celebrating Vietnam's independence proper. http://instagr.am/p/PEYvHPsXk7/ #
9/2 8:39 Action shot on the Saigon Outcast half pipe. Watch out it's slippery! http://instagr.am/p/PEXSZ6MXkc/ #
9/2 7:54 Judging graffiti competition at Saigon Outcast http://instagr.am/p/PESLOQsXjD/ #
9/2 6:03 NYT: Communist Party nepotists hide in shame as Vietnam's growing wealth divide shines light on crony capitalism: http://nyti.ms/OB8h77 #
9/2 5:22 Sustainability RT @walterm: @sonnylebythebay In Cambodia the public phone is an old guy sitting in a chair by the road with a cell phone. #
9/2 2:07 There must be a better way for 2 partners to converse and collaborate over a period of months or years than email #
9/2 2:05 Thanks Tuoi Tre News for the very helpful/informative Brain-Eating Amoeba graphics:... #
9/1 10:18 Woohoo let's pop open the champagne! RT @tuoitrenewsvn: Quang Ngai declares H5N1 bird flu epidemic http://bit.ly/OEB6Ox #

PayPal in Vietnam

Submitted by tomo on October 5, 2012 - 4:11pm

Search for PayPal in Vietnam and you won't get many good results.

If you're American or from another Western country and just traveling to or working in Vietnam temporarily and you already have a PayPal account then heed this one warning: DO NOT access your PayPal account WITHOUT a VPN! (If you don't already have a VPN get one. Ref: StrongVPN) Doing so will flag your account (similar to what happens when you use your credit card overseas without warning your bank first) and your PayPal account will be limited to receiving money only until you "verify" it. This can be a PITA so just DON'T access PayPal using a Vietnamese IP address. You can Google "what's my IP" to make sure your traffic is being tunneled properly.

History: PayPal started as a service for eBay sellers who didn't have real businesses and therefore couldn't open merchant accounts to accept credit cards to accept payment from buyers, both as bank transfers as well as credit and debit cards. It was eventually bought by eBay due to the symbiotic nature of the two. For many years PayPal was not available to Vietnamese users. due to the high amount of fraud originating from Vietnam. Fraud is one of PayPal's biggest problems and they spend a considerable amount of resources trying to detect fraud, often resulting in suspended accounts of legitimate users. Many non-Americans can't use it which has resulted in services like Moneybookers or Liberty Reserve.

PayPal's absence from Vietnam left open an opportunity for Vietnamese PayPal clones like MobiVi, etc. The problem with these is that none are as versatile as PayPal and some only allow transferring money between users of the service who also use the same bank!

If you're Vietnamese or working in Vietnam and want to open a Vietnamese PayPal account it is now possible to do so and receive money. You simply need to open a debit/credit card account at one of these banks: Techcombank, ACB, Đông Á, Eximbank. Then you can connect it to a Vietnamese PayPal account. Remember that PayPal won't allow you to change your country once you open an account.

Final warning: Don't access your US PayPal account from a Vietnamese IP address. Always use a VPN like StrongVPN. I learned the hard way and ended up with a locked and useless PayPal account. Whether you should even use PayPal is another issue altogether.

Daily Twitter Posts - 09/28/2012 - 10/05/2012

Submitted by tomo on October 5, 2012 - 12:45pm

10/04 06:20 @thomaswanhoff Surely everyone was clued in from the start but the AP tattling on Zing forced the hands of these public companies. #
10/04 04:30 @aminhdo MOOC? I guess it's a good idea, although can we do it remotely over the Internet? #
10/04 01:29 Vietnam is free too :) RT @alansoon: How is it that you can always find free wifi all over #Ulaanbaatar but never in a city like #Singapore? #
10/03 12:54 @sitesnbites If you follow me I can DM you some Vietnamese tutors' contact info #
10/03 10:29 Zing gets zinged by advertisers after AP outs them as pirate music d/l site: Coca Cola, Samsung, Yamaha, etc pull ads: http://t.co/W8Mx2syy #
10/03 07:03 @jon7b @TylerWatts I don't know Watt you are talking about. Teehee. #
10/03 05:22 @PiiSiiD Haha, I don't think that they will guarantee 30 minute delivery time or your food is free if delivering from NYC to Phnom Penh :) #
10/03 04:31 Incroyable. RT @SharingTheValue: "2/3 of VN consumers are online everyday" #Vietnam http://t.co/xxl83AMI - Cimigo #
10/03 04:26 What if FourSquare let you virtually travel to restaurants and order from them online? J/K That would never work. #
10/03 04:23 @jon7b I get yelled at when I leave the bathroom light on at my own house. I used to leave PCs running 24/7, now more watt-conscious. #
10/03 02:01 @devwil Lol where is this? Worth the price of a "punani" to hear that #
10/02 23:29 How much electricity does Vietnam's grid save per day by people accessing Facebook on phones instead of PCs? (Charging iPhone5 costs $.41/y) #
10/02 04:44 @MienHPham Try turning off social media outside pomodoro breaks. And don't listen to music with vocals (in a language you underatand) #
10/02 02:39 @aminhdo It's not every day that I say this but. Batshit f'n insane. #
10/02 02:14 @MienHPham #pomodoro #timeboxing #hourofpower #meditation Weekly todo lists, etc. Listen to techno and turn off social media. Etc. :) #
10/02 02:03 @etienne Which begs the question: Apple, religion or philosophy? I think they've copied the Church in more than one way ;-) #
10/02 01:58 @aminhdo How much of Buddhism isn't philosophy? Potentially a really easy book to write :-) Philosophy of Mormonism OTOH... #
10/02 01:33 @chrisfharvey Gubmint don't want scientists to research, artists to create, businesses to innovate, information to be translated & shared :( #
10/02 01:15 @caffeinatedmatt Quick, throw some cough & cold medicine in the coffee pot and see if meth comes out! #
10/01 23:33 Here. RT @michaelcoyote: So anyone here think that the thieving and molesting TSA wouldn't throw us under the bus for cash or extortion? #
10/01 23:31 EarBook: A human-compiled Zuckerberg-voiced personalized podcast of your Facebook feed. Cute cat photos described in detail. #
10/01 23:12 @aminhdo There are many more vastly different British accents than in the US, and much more American movies for them to watch than from UK #
10/01 04:30 Vietnam product and content websites are being hindered by lack of millions of local bloggers writing and linking. Can't compete globally. #
09/30 23:53 When people complain about the cool rainy weather in Saigon I smile and think about April. #
09/30 07:49 TIL about Facebook for SIM from an Argentine carrier, a FB "app" for dumbphones on a SIM card that only uses SMS: http://t.co/omQlOu82 #
09/30 07:42 @PiiSiiD Free or cheap license for disciples, but sold like multi-level marketing scheme :) Or freemium model. #
09/30 00:05 What if the Buddha had patented Buddhism? #
09/29 22:28 The next digital divide: those who have access to 3D printers and those who don't #
09/29 10:07 RT @wired: 48-Hour Adventure Time 'Jam' Produces 100 Weird, Weird Games http://t.co/J8KUHBv9 #
09/29 08:25 In case your research requires 10,000 cat images, including facial features: http://137.189.35.203/WebUI/CatDatabase/catData.html #
09/29 07:17 @free_thinker Yup, would need some new architecture outside of Javascript. But Dalvik is open source, so why not? Like Jolla. #
09/29 05:42 Wonder if Firefox OS #Boot2Gecko should support running Android apps on top of HTML5/JS apps. We don't need more ghost town marketplaces #
09/29 01:03 Have duplicate contacts clogging your Android phone? Go to http://t.co/Nn2We1yn (nice contact manager), More > Find & merge duplicates. Sync #
09/28 04:24 @connyb Hey Conny, I hear you work for Cambodian ISPs? Can you tell me more about it, just curious? Was nice meeting you at #BarCampPP #

Archiving Twitter to Blog Post

Submitted by tomo on October 5, 2012 - 10:30am

Step 1: Install t (Ruby Twitter command line client). Run the following (substitute your own Twitter ID):

t timeline @tomosaigon --csv --number 3000 > tweets.csv

Step 2: Convert CSV to JSON using http://www.cparker15.com/wp-content/uploads/csv-to-json/csv-to-json.html

Step pre-3:

cached=$(/usr/bin/grep $1 $CACHE)
if [[ $cached != "" ]]; then
        echo $cached|/usr/bin/cut -d' ' -f2 ; 
        exit
fi
 
url=$(/usr/local/bin/curl -v $1 2>&1|/usr/bin/grep '^< Location: '|/usr/bin/sed -e 's/< Location: //')
echo $1 $url >> $CACHE
echo $url

Step 3: Open Chrome Developer Tools and in the command line type "var a = " then paste the copied JSON. Hit enter.

var out = '';
for (var i = 0; i < a.length; i++) {
    var t = a[i]; 
    var d = new Date(t['Posted at']); 
    if (d >= new Date('2012-09-01 00:00') && d <= new Date('2012-10-01 00:00')) {
        var tweet = t['Text'];
        var tcos = tweet.match(/http:\/\/t.co\/\w+/g);
        if (tcos) {
            for (var m = 0; m < tcos.length; m++) {
                tco = tcos[m].replace(/\//g, '%252F');
                $.ajax({url:'http://www.saigonist.com/saigonist/untco/' + tco, async:false, success:function(data){
                    tweet = tweet.replace(tcos[m], data.trim());
                }});
            }
        }
 
        tweet = tweet.replace(/("")/g, '"').replace(/(^|\s)@(\w+)/g, '\$1<a href="https://twitter.com/\$2" rel="nofollow">@\$2</a>').replace(/(^|\s)#(\w+)/g, '\$1<a href="https://twitter.com/#!/search/%23\$2" rel="nofollow">\$2</a>')
        out += ((d.getMonth() + 1) + '/' + d.getDate() + ' ' + d.getHours() + ':' + d.getMinutes() + ' ' + tweet + ' ' + '<a href="http://twitter.com/' + t['Screen name'] + '/statuses/' + t['ID'] + '" rel="nofollow">#</a>');
        out += '\n';
    }
}

Vietnamese Girls Showing Off Nipples

Submitted by tomo on October 4, 2012 - 10:57am
A gallery of Vietnamese girls, models, actresses, and singers showing off their nipples in public.

Daily Twitter Posts - 09/25/2012 - 10/02/2012

Submitted by tomo on October 3, 2012 - 1:30am

10/02 04:44 @MienHPham Try turning off social media outside pomodoro breaks. And don't listen to music with vocals (in a language you underatand) #
10/02 02:39 @aminhdo It's not every day that I say this but. Batshit f'n insane. #
10/02 02:14 @MienHPham #pomodoro #timeboxing #hourofpower #meditation Weekly todo lists, etc. Listen to techno and turn off social media. Etc. :) #
10/02 02:03 @etienne Which begs the question: Apple, religion or philosophy? I think they've copied the Church in more than one way ;-) #
10/02 01:58 @aminhdo How much of Buddhism isn't philosophy? Potentially a really easy book to write :-) Philosophy of Mormonism OTOH... #
10/02 01:33 @chrisfharvey Gubmint don't want scientists to research, artists to create, businesses to innovate, information to be translated & shared :( #
10/02 01:15 @caffeinatedmatt Quick, throw some cough & cold medicine in the coffee pot and see if meth comes out! #
10/01 23:33 Here. RT @michaelcoyote: So anyone here think that the thieving and molesting TSA wouldn't throw us under the bus for cash or extortion? #
10/01 23:31 EarBook: A human-compiled Zuckerberg-voiced personalized podcast of your Facebook feed. Cute cat photos described in detail. #
10/01 23:12 @aminhdo There are many more vastly different British accents than in the US, and much more American movies for them to watch than from UK #
10/01 04:30 Vietnam product and content websites are being hindered by lack of millions of local bloggers writing and linking. Can't compete globally. #
09/30 23:53 When people complain about the cool rainy weather in Saigon I smile and think about April. #
09/30 07:49 TIL about Facebook for SIM from an Argentine carrier, a FB "app" for dumbphones on a SIM card that only uses SMS: http://t.co/omQlOu82 #
09/30 07:42 @PiiSiiD Free or cheap license for disciples, but sold like multi-level marketing scheme :) Or freemium model. #
09/30 00:05 What if the Buddha had patented Buddhism? #
09/29 22:28 The next digital divide: those who have access to 3D printers and those who don't #
09/29 10:07 RT @wired: 48-Hour Adventure Time 'Jam' Produces 100 Weird, Weird Games http://t.co/J8KUHBv9 #
09/29 08:25 In case your research requires 10,000 cat images, including facial features: http://137.189.35.203/WebUI/CatDatabase/catData.html #
09/29 07:17 @free_thinker Yup, would need some new architecture outside of Javascript. But Dalvik is open source, so why not? Like Jolla. #
09/29 05:42 Wonder if Firefox OS #Boot2Gecko should support running Android apps on top of HTML5/JS apps. We don't need more ghost town marketplaces #
09/29 01:03 Have duplicate contacts clogging your Android phone? Go to http://t.co/Nn2We1yn (nice contact manager), More > Find & merge duplicates. Sync #
09/28 04:24 @connyb Hey Conny, I hear you work for Cambodian ISPs? Can you tell me more about it, just curious? Was nice meeting you at #BarCampPP #
09/27 09:57 @patrizio_bui Are you still at ERC? #
09/27 07:56 Luck: (both good and bad) the sum of (a random % * # of opportunities * your own ability to take advantage of (or be affected by) them) #
09/27 05:42 Wish somebody would just ship the Internet on CD-ROMs to Vietnam. On a giant boat or something. #
09/27 04:32 @jobnomade Cool, a lot of startups. Let me know when code is more than a PHP object dump :D P.S. That 4sq API is nearly deprecated.. #
09/27 04:29 @tropixblue Yes. For motorbikes which are >90% of the people we must only use the smallest lane which is also used for car parking #
09/27 01:57 Vietnam has a thriving Facebook fan buying black market. If FB's fake user deleting doesn't crush some brands here many more fakes must go. #
09/27 01:31 A totally independent tourist police is needed. RT @VNNetBridge: Police declare war against crime in Saigon http://t.co/7vzFAfmm #vietnam #
09/27 01:24 What is the proper, pragmatic, locale-appropriate (Vietnam, after all) response to a car driving in the wrong lane hitting you? #voluat #
09/26 23:03 Maybe represent.vn can auto-aggregate Tech Startups already tagged on Foursquare (just found out it's a category!) cc @vutrinhan #
09/26 06:17 Banh dau xanh: Cookies made from sugar, mung bean, and bacon! Thus proving that bacon makes anything taste better. #QED #
09/26 03:50 @lfopw Indeed, although same can be said for Vietnam: I see Bentleys, Royces daily. But a lot of beater Toyotas in Cambodia too. Ironic, eh? #
09/26 03:40 @john_weeks Enjoyed your webcomics session at #BarCampPP. And thanks for the free print comics! Wonder if webcomics could be next Instagram #
09/26 03:35 @nguyenhimself When speaking of multiple iPhones the correct mass noun is herd. A herd of iPhone 5. #
09/26 02:21 @nostarwhere @ctcrowell Metro Detroit is livable enough for US. Research hospitals, international connections & trade, overall low crime, &c #
09/26 00:59 "It's like a war, because everybody seems to become very selfish once they are behind the wheel of a car" - on traffic in Sao Paolo #
09/25 22:10 @jon7b @aminhdo Difference is arrangement (& energy). Proteins that've broken down. Organs no longer self-repairing. What's this about 140g? #
09/25 21:34 @rockportrait I've been 4x and haven't seen any of those. I go for functional reasons, e.g. visa run or BarCamp. Otherwise, visit friends. #

It's that time of the year again. Flood time!

Saigon and Vietnam's Mekong Delta generally has two seasons - rainy and wet. But at the end of the year somewhat coinciding with the dry season is high tide season where the highest tide level maxes out some meters above low tide. Each year the effects of high tide on Ho Chi Minh City get worse, not just due to climate change or rising sea levels, but due to 1) urban sprawl taking over former urban flood plains which would have absorbed some rain water (rain water just makes the problem worse but isn't the root cause) with construction and paving over of land with impermeable surfaces, as well as 2) a general sinking of the city due to (illegal) leaching of underground water supplies reducing the water table level and 3) lost efficiency of canals where piles of trash thrown in the rivers is blocking the flow of water back out

This week's high tide times so you know when your streets will be flooded: (data comes from Saigon Port dumped into a Google Doc which is then proxied through this site to overcome cross-site script hacking in order to hide the days outside of this week)

Bypass Basic Auth for Localhost on Nginx

Submitted by tomo on October 1, 2012 - 12:45am

During development sometimes I hide a server behind a shared password for http basic auth, based on an Apache configuration (if you still want to use .htpasswd but don't have Apache and htpasswd installed you can still generate the password entries using openssl). nginx can use the same format of .htpasswd files by using the HttpAuthBasicModule. But sometimes I need a service to crawl pages on the server (for example Drupal's linkchecker module). And sometimes storing the basic auth login and password in a script isn't wanted or advisable. Instead we can configure nginx to skip authentication when connecting from localhost/127.0.0.1.

Open up your nginx configuration which already contains your auth_basic directives. Assuming you are running a PHP site and you have a "location ~ \.php$" block, make it look more like this:

location ~ \.php$ {
  satisfy any;
  allow 127.0.0.1;
  deny all;
 
  auth_basic            "Restricted";
  auth_basic_user_file  /yoursite/path/.htpasswd;
}

Remember that the order of the allow/deny directives matters. More on the nginx_http_access_module module.

How can we store tables or spreadsheets in Drupal content nodes?

Drupal is a Content Management System as well as a Content Management Framework. It's meant for facilitating the creation and editing of content, where content doesn't just mean simple text. CCK allows Drupal site managers to easily enable complex data types for their content. But sometimes it's not so easy to manage lots of simple data in the way that a spreadsheet (meaning Excel or Google Spreadsheet) easily manages many rows and columns of related data.

Sometimes you really want tabular data and you may not know for sure how many rows or columns you'll want beforehand, which is never a problem for Excel or Google Spreadsheet (which is also why sometimes people abuse Excel as a general purpose database). Maybe you are importing spreadsheets or are using spreadsheets with many rows and columns, and only want to use a section of the spreadsheet. Maybe you need to use spreadsheets because you are using formulas and want to do some graphing based on some numbers too. In fact, Excel can do much more. Rather than hoping all of those use cases will make it into a Drupal module anytime soon, wouldn't it be nice if you could just embed a spreadsheet in a node?

There are some modules for attaching tables or tabular data to nodes but in the end the interface can be a bit unwieldy. I discussed building something like a spreadsheet to quickly edit many values and below I present a demonstration.

What is already available that we could use to attach spreadsheets or something similar to nodes?

1. You could: Configure a Google spreadsheet that's either public or somehow accessed via a Google api, perhaps using OAuth2 or just assuming the viewer also has edit access to the spreadsheet. Google already lets you embed spreadsheets including the editable spreadsheet but they don't let you limit the view of the spreadsheet (limiting the view still lets everyone access the whole spreadsheet by changing the URL).

We would also need new nodes to automatically create sheets in the spreadsheet or new spreadsheets altogether and embed them in node edit. This would need to use their APIs since the embeddable Google Spreadsheets require an existing spreadsheet, otherwise this step needs to be done manually for each node - a new Google spreadsheet created per node.

This Redmine Google Docs plugin takes a similar approach and shows how the resulting data could be embedded.

(This might be worth investigating as well.)

2. Another approach would be to take an existing JavaScript or Java spreadsheet that could be embedded. This could be exactly what you want if you need the full functionality of Excel in each node. One such online spreadsheet is ZK Spreadsheet which is written in Java, and would let you have full formula and charting support.

3. Embed a widget like the form below as a CCK field in a node. It would be a new CCK field type where the editing widget is the below spreadsheet-like table and the display widget might be the same thing, an uneditable table, or the raw JSON string representation. In the database, the actual value of the field would be JSON (unless you wanted to use PHP's serialize() which would require POSTing values first instead of just posting the json value). This means you wouldn't relate or compare this field to anything else, as with any serialized data in a database. You could come up with some other schema involving columns and rows to store the table's values for each field in a node but I'm not sure it's worthwhile.

I created this demonstration but haven't turned it into a Drupal module. There is code to dump the edited values into a single JSON value to be stored in the database but the storage would be module-specific.

Get the JavaScript - then combine it with html and CSS, which you also see below.

.
A
B
C
+
1
2
3
+
JSON: "

"

Drupal ImageCache Image Quality

Submitted by tomo on September 26, 2012 - 11:04am

The problem is this. ImageCache is a great simple way to transform random images into useful dimensions, etc. But sometimes the uploaded image is already exactly the quality and even dimensions we want. But after imagecache module runs, the file size is actually larger than the original while the quality has gone down, despite JPG image quality being 100% (default is set to 75%). One workaround can be to re-sharpen the image (imagecache_sharpen) but this also loses some quality.

1. Check that the uploaded image (metadata saved as CCK field, file stored directly in sites/default/files) has not been degraded in quality.

2. Check that minimum/maximum resolution for the image fields (CCK) are set to 0 (no restriction) so that they aren't accidentally resized at the upload to CCK step.

3. Run "drush imagecache-flush" in case you have files left over from a recent imagecache configuration change.

4. Try replacing GD with ImageMagick. If you stick with GD, and try compiling a newer GD library. ImageMagick by default can output higher quality images than GD.

How does Drupal's image resizing and processing work?

ImageCache goes through imageapi which uses different image processing functions based on the library (by default GD and ImageMagick support are provided) used.

Any resizing operation will result in a change (loss) in quality. That is to be expected since upsizing creates new pixels from single original pixels without having new information (unlike the magical effects of zooming into images on CSI shows) and downsizing will generally cause information to be lost and many pixels will "store" the information from several surrounding pixels.

So only operations that keep the image the same dimensions or crop the image (in which case the cropped portion has the same dimensions in both old and new files) will retain the same quality and avoid any blurring.

When using PHP's GD, Drupal will make calls to imagecopyresampled which will affect image quality unless image width and height are kept the same or cropping is performed. This is partly due to imagecopyresampled and partly the way it is called. "Fastimagecopyresampled" is a possible replacement: (from http://us.php.net/manual/en/function.imagecopyresampled.php#77679) - this is a higher quality version of PHP's imagecopyresampled. It does result in higher quality but requires hacking Drupal code instead of overriding any hooks.

I've found that it's better to use ImageMagick than GD. The only remaining problem is that for similar quality images, the file size is something like twice as big after ImageMagick processing. You could mess around with ImageMagick's quality settings by hacking Image API code or by copying imageapi_imagemagick.module into a custom module and configuring it for use instead. But you risk breaking quality for other images. I haven't found the reason why IMagick makes image file sizes larger.

Syndicate content
© 2010-2014 Saigonist.