With the recent instability in Facebook access and some people reporting it blocked on one ISP or area of Vietnam while others can access it just fine... Is it time for you to rethink your choice in internet service provider?
There are a dozen or so ISPs in Vietnam but I've only looked at the biggest: Viettel, VNPT, FPT, SPT, and Netnam. They also all provide fiber internet (FTTH - fiber to the home) and not just ADSL. Here are their prices for selected packages:
Read the rest of this article...I've tracked down a source of the bug which breaks jquery (1.2.6) in FireFox (Chrome is fine) where you'll see a debug message of "z.indexOf is not a function". If you're running a minified jquery then the line number won't help locate the bug, but in this case it was around line 1715:
type == "^=" && z && !z.indexOf(m[5])
This code is triggered by jquery attribute filters like ^= (starts with) or *= or ~= and in this case I found that if z had been 0 then the code which checks "&& z" would short circuit and not try to reference indexOf of z.
Looking deeper, I found that z == -1 (not a string) and that this was because I was filtering on the 'value' attribute, and that in FireFox, the 'li' node was being given some value of -1. You can check this by running "$('li')" and checking out the returned values. In Chrome, there is no value. This difference causes a bug in FireFox.
One workaround is to use only use attribute filters when using selectors that select for specific tags which exclude 'li', at least for filtering on 'value'. For example, use 'input[value^=whatever]' instead of just '[value^=whatever]'.
PHP 5.2 has support for showing the percentage uploaded for a file upload in progress. If you're not running Apache as your web server,
Drupal's FileField module automatically detects for and uses upload progress support on the server end. This can either be APC (Alternative PHP Cache) with rfc1867 support or with the uploadprogress PECL extension. In Drupal, the upload progress bar looks like this:
You can check to see if you already have support by going to admin/reports/status.
If the report shows that your server has support yet FileField CCK fields aren't updating the upload progress bar then your server has a problem.
Read the rest of this article...Getting Drupal to stream video using PHP and the FlashVideo module to manage video uploads is not easy. It involves 5 distinct pieces of software, which means 5 places where things could go wrong with little error logging.
Here's what you need:
1. FlashVideo http://drupal.org/project/flashvideo
2. ffmpeg
3. flvtool2
4. xmoov-php
5. JW Player
- tomo's blog
- Login to post comments
- Read more
- Comments
I used to run a hosting company back in the states. I wouldn't want to get into that business again as it's capital-intensive (for a tech company) and highly competitive.
Looking at the server colocation market in Vietnam it seems small and expensive for what you get, and maybe there is far more demand from Vietnam-based businesses to host in the US because that's where their customers are. But companies that aim for the domestic market need to consider hosting locally since the Internet link to the US is relatively narrow and expensive with high latency.
When I searched for colocation servers in Vietnam, the #1 result, vn84.com, was down; webhosting.com.vn's account has been suspended; aacecom.net is now a parked domain just showing ads. Not very good results.
After distilling the first 100 or so results on Google:
Conclusion: FPT is definitely a stable business, yet prices aren't out of line, with higher upload speeds. It's always best to avoid anything priced in USD since the Vietnam dong is certainly going to weaken against the dollar soon. But even the cheapest colo at 1.3 million VND is more than I can lease a dedicated server for in the US.
So how much are dedicated servers at these places?
Oddly, for pavietnam.com the price to lease a dedicated server is cheaper than to buy and colo your own!
Virtual Private Servers are another option. Let's compare:
They come out to roughly a third of the cost to colo. You'd be better off finding a friend to chip in and get pavietnam's dedicated server deal.
UPDATE April 3, 2012:
There are a lot of small providers in Vietnam outside of the big ones listed above. If you want to check some out, many even have free trials. Check out the forum at vn-zoom.com if you can read Vietnamese.
For colocation, Viettel's IDC "Sóng Thần" datacenter in Binh Duong is the largest in Vietnam, and possibly all of southeast Asia.
When considering Singapore as an alternative hosting center, be aware that generally prices for VPSs in Singapore are significantly higher than what you would pay in the US, while latency is still around an order of magnitude (10x) that of a Vietnam-based host, while still 1/2 to 1/3 of a North American host. YMMV.
There's been a lot of talk about the decrease in quality of Google search results over the years due to spammers / content farms with strong SEO skills. I'm glad I'm not the one who's been annoyed by this.
Google should know which sites are spam, content farms, or duplicated content. That they aren't properly filtering or demoting them could be due to a conflict of interest - they make money from the ads on those crap sites.
But we, as individuals, can easily distinguish the spam results from the quality ones and we do so everyday. If only there were a way to stop duplicating this effort.
If Google won't do this for us, then we can do this ourselves.
Here's what I want:
1. When I've been tricked into opening an ad-filled page without meaningful content, I want to go back to Google and mark that link as "spam", have that noted somewhere in the cloud so I can access it from any computer, and have future search queries filter out that link.
2. I probably don't want to see any pages from that domain show up on any other queries.
3. I probably don't want to see any pages that my friends have also marked as spam.
4. I probably don't want to see any pages that friends of my friends have also marked as spam.
5. I may even want to befriend / "follow" strangers just because they're good at marking spam.
Read the rest of this article...Pliggmeme Redux is a slightly modified, debugged and fixed, and despammed version of the Pliggmeme theme for Pligg. The original Pliggmeme was inspired by Tweetmeme and based on skins4webs's Silverbullet theme. The new Pliggmeme was made for the Detroit Institute of Techno.
Some shady hidden spam was removed, some JavaScript was fixed, and you can actual submit stories and make comments now. This works with Pligg 1.1.3.
Read the rest of this article...Here's an easier way to access Facebook again in Vietnam, as a follow-up to my earlier post Bypass Vietnam's Block on FaceBook - or China's Block on YouTube.
Just change your DNS settings to use 65.111.171.175 as your DNS server like before. I've set up a DNS server which returns different IP addresses for facebook (facebook.com and fbcdn.net). You can also do this on your computer by setting entries for all subdomains of facebook.com to 153.16.15.71 and for fbcdn.net to 60.254.175.11.
For detailed instructions on changing your computer's DNS settings refer to http://code.google.com/speed/public-dns/docs/using.html but remember to use the address 65.111.171.175 instead of Google's 8.8.8.8 and 8.8.8.4.
Read the rest of this article...If, after upgrading from an old version of Pligg to 1.1.2, you notice that the front page is sorted completely backwards and you can't change the sorting even by fiddling with the sort-query code in index.php, it may be because of the new Groups feature. A new groups table has been added and all queries join this table but the Pligg upgrader only creates the table and sets the new link_group_id to 0 for all rows in links. The solution is to populate the groups table. An easy way is to head to groups/submit/ and create a generic catchall group. Then in your database, change the group_id for the newly created row in groups to 0 (if it's 1).
If the Pligg group submitter is broken (as Pligg is prone to be buggy) then just:
INSERT INTO groups (group_id) VALUES (1);
Now those queries like:
SELECT link_id FROM links LEFT JOIN groups ON links.link_group_id = groups.group_id WHERE link_status='published' AND (groups.group_privacy!='private' OR ISNULL(groups.group_privacy) OR groups.group_id IN(1)) GROUP BY link_id ORDER BY link_published_date DESC, link_date DESC LIMIT 0,10
will work again!
- tomo's blog
- Login to post comments
- Comments
Here's a trick for storing and compressing information in a pinch.
Let's say you have an address or a set of directions or maybe a shopping list.
Example: "Calle de la Magdalena N8, 5D Floor, Madrid, Spain 28012"
Stick it into http://bit.ly but prepend "http://" to the text, to make it look like a URL: "http://Calle de la Magdalena N8, 5D Floor, Madrid, Spain 28012 "
When we go to the resulting shortened URL http://bit.ly/dL9MXS we get an error, but Chrome displays back:
"Oops! Google Chrome could not find calle de la magdalena n8, 5d floor, madrid, spain 28012" and voila! we have the text we wanted.
All we have to write on our hands, remember, or pass around via text message is the string "dL9MXS". It takes less work than using a pastebin and the resulting URL is shorter anyways.
Any other practical uses for this trick? Leave a comment!
Recent comments
1 year 11 weeks ago
2 years 3 days ago
2 years 1 week ago
2 years 3 weeks ago
2 years 19 weeks ago
2 years 19 weeks ago
2 years 19 weeks ago
2 years 19 weeks ago
2 years 19 weeks ago
2 years 19 weeks ago